Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Annotation Processor Support for Java 1.7 on Android #778

Description

@TealOcean

When compiling with Android 4.4 Kitkat and using the new Java 7 support, I'm getting the following warning:

warning: Supported source version 'RELEASE_6' from annotation processor 'org.androidannotations.AndroidAnnotationProcessor' less than -source '1.7'

I'm not getting any strange behaviors from the warning so far in testing though.

Activity

  1. DayS commented on Nov 7, 2013

    @DayS
    Contributor

    Thanks for pointing this out. Please keep us updated with this configuration :)

  2. davidschreiber commented on Nov 26, 2013

    @davidschreiber

    I also encounter the same problem? Did you already find a solution to this? Thank you, David. (Nothing serious though, but I like to keep my compile warnings at a minimum ;-))

  3. DayS commented on Nov 26, 2013

    @DayS
    Contributor

    As it's "just“ a warning, it's not in my high priority task list. However feel free to contribute if you have some time :)

  4. Manabu-GT commented on Mar 26, 2014

    @Manabu-GT

    Overriding the getSupportedSourceVersion() inside AndroidAnnotationProcessor will fix the problem.

    In the following blog, the author mentions most annotation processors should "generally support the latest source version".
    https://blogs.oracle.com/darcy/entry/annotation_processor_sourceversion

    FYI, I've been using the lib with java 7 for a while, but so far not having any issue.
    I can issue a PR if you like.

    @Override
    public SourceVersion getSupportedSourceVersion() {
      return SourceVersion.latest();
    }
    
  5. DayS commented on Mar 29, 2014

    @DayS
    Contributor

    Thanks, this official article is what I was looking for :) I'll update his soon. I can't work on the project right now

  6. added this to the 3.1 milestone on Apr 6, 2014
  7. DayS commented on Apr 6, 2014

    @DayS
    Contributor

    Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions