New version schema and javax.lang.model.SourceVersion
Volker Simonis
volker.simonis at gmail.com
Fri Sep 15 14:35:41 UTC 2017
Hi,
one minor glitch with the newly proposed version schema [1] (i.e.
18.3, 18.9, etc.) is that we have the enum
javax.lang.model.SourceVersion which defines:
RELEASE_0 The original version
RELEASE_1 The version recognized by the Java Platform 1.1.
...
RELEASE_9 The version recognized by the Java Platform, Standard Edition 9.
As we can't use periods in constant names we'll probably have to stick to
RELEASE_10 The version recognized by the Java Platform, Standard Edition 18.3.
RELEASE_11 The version recognized by the Java Platform, Standard Edition 18.9.
in the future. So Java 10, 11 etc. will at least stay with us forever
(and if only through this little known API :)
Regards,
Volker
[1] https://mreinhold.org/blog/forward-faster
More information about the jdk10-dev
mailing list