Coming later in JDK 9: dropping support for javac -source/-target of 5/1.5 and older

Joe Darcy joe.darcy at
Fri Jan 24 14:49:16 PST 2014


Preparatory work [1] has already occurred in JDK 9 for the implementation of

     JEP 182: Policy for Retiring javac -source and -target Options

in the release. According the policy described in this JEP, the javac in 
JDK 9 would only support -source and -target options in the set:

     {6/1.6, 7/1.7, 8/1.8, 9/1.9}

Consequently, -source/-target options like 5/1.5, 1.4, etc. will *not* 
be supported anymore. However, javac and related tools would still be 
able to recognize and process older classfiles.



[1] 8031651: Remove unneeded -source and -target flags in jdk repo 
regression tests

8031745: Remove unneeded/obsolete -source/-target options in javac 
tests, part 1

More information about the jdk9-dev mailing list