On 12/04/2015 06:33 AM, Stephane Epardaud wrote:
On 04/12/2015 15:21, David M. Lloyd wrote:
IIRC there is *already* within Java 9 an option to compile against
previous JDK ABIs (which are bundled with JDK 9), isn't there?
Ah that's interesting, I got hit by calls to byteBuffer(int) which
compiled in JDK9 to ByteBuffer.position(int) which did not run in JDK8
which only had Buffer.position(int).
I'd love for that flag to exist ;)
This is the new javac "-release N" option, which functions like a
combination of "-source N -target N -bootclasspath rtN.jar", where
"rtN.jar" is the public API of the specified release.
-- Jon