ant-dev mailing list archives

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

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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message