ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject new JDK version scheme
Date Tue, 28 Nov 2017 16:36:55 GMT
Hi

with
http://mail.openjdk.java.net/pipermail/jdk-dev/2017-November/000089.html
we'll be seeing a new "major release" of Java every six months.

So far we've created new constants and detected the java version via
classes we know have been added in JavaEnvUtils but TBH I'm not sure
we'll be able to do that for every new release of Java.

Other places need to get adapted as well, javac with compiler names is
one that springs to mind, but there will be more cases.

Maybe we really need to start parsing the java.version system property
if the version detected would at least be JAVA_9 and adapt JavaEnvUtils
to deal with the outcome. This will also require us to drop some of the
switch statements there as the case labels couldn't be pre-determined.

Has anybody got a better idea than parsing the version number?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message