Closed lorenzleutgeb closed 11 years ago
That would just make it impossible to build (and perhaps use) the project on JDK 6, which I suppose is still supported.
javac just issues this warning in case it cannot confirm that the processor is able to handle the current source level. In this case it can handle it, but there is no way to tell javac that since RELEASE_7 is only available in 7+ platform APIs, and JSR 269 APIs are not currently available in standalone form (though I have suggested it on compiler-dev@openjdk.java.net).
https://netbeans.org/bugzilla/show_bug.cgi?id=210286 is another example of the same annoyance.
BTW I fixed the No SupportedSourceVersion annotation found
warning.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7184902 (to appear soon) requests an -Xlint
category.
Rejected; and the resubmitted JDK-8037955 was again rejected, suggesting a reflective implementation of getSupportedSourceVersion
.
Note that the originally proposed change should produce a build error, but MANIMALSNIFFER-27 means it does not.
Is there a maven release published somewhere that contains this fix?
Does not look that way; up to @kohsuke to release 1.6.
Hello,
I got the following warnings during compilation:
It somehow seems strange (why would the default value be
RELEASE_6
when I'm compiling withjavac 1.7.0_03
?) but the fix was very simple:Just three lines (two
import
s and an annotation inorg.kohsuke.metainf_services.AnnotationProcessorImpl
):I was too lazy to fork and do a pull request :D
Best regards, Lorenz