A DESCRIPTION OF THE REQUEST :
Simply refiling #7184902 explicitly as an RFE as requested by Ingrid Yao. The original bug was incorrectly closed due to a misunderstanding of the request.
References:
http://bugs.java.com/view_bug.do?bug_id=7184902
https://netbeans.org/bugzilla/show_bug.cgi?id=210286
https://github.com/kohsuke/metainf-services/issues/3
Quick recap of issue: @SupportedSourceVersion(SourceVersion.RELEASE_6) must be used on an annotation processor which should be compiled by JDK 6. Often the processor developer knows that the processor also works with -source 7 (for example), yet does not want to require 7+ to build the processor; since Processor.getSupportedSourceVersion returns an enumeration value rather than a String, there is no way (without using reflection) to specify that. Given that situation, the simplest workaround is to change the existing javac warning about supported source version into a lint warning, so that the user of the annotation can suppress it and have a warning-free build.
JUSTIFICATION :
No other clear workaround.
Simply refiling #7184902 explicitly as an RFE as requested by Ingrid Yao. The original bug was incorrectly closed due to a misunderstanding of the request.
References:
http://bugs.java.com/view_bug.do?bug_id=7184902
https://netbeans.org/bugzilla/show_bug.cgi?id=210286
https://github.com/kohsuke/metainf-services/issues/3
Quick recap of issue: @SupportedSourceVersion(SourceVersion.RELEASE_6) must be used on an annotation processor which should be compiled by JDK 6. Often the processor developer knows that the processor also works with -source 7 (for example), yet does not want to require 7+ to build the processor; since Processor.getSupportedSourceVersion returns an enumeration value rather than a String, there is no way (without using reflection) to specify that. Given that situation, the simplest workaround is to change the existing javac warning about supported source version into a lint warning, so that the user of the annotation can suppress it and have a warning-free build.
JUSTIFICATION :
No other clear workaround.
- relates to
-
JDK-7184902 "Supported source version..." warning should be -Xlint aware
- Closed