Relates :
|
|
Relates :
|
Internally, javac uses com.sun.tools.javac.code.Source to track and distinguish properties of different source versions. JSR 269 has added javax.lang.model.SourceVersion for a similar purpose. The JSR 269 implementation now must compare objects representing these two different views of source code and the code uses the brittle idiom of comparing the (shifted) ordinal positions of the two enums in JavacProcessingEnvironment. This could be improved.