Fix Version/s: 9
Compatibility Risk Description:While the set of source and target options is not promised to be stable part of the platform, it has been in place for a long time and some disruption can be expected. Publishing the policy in JDK 8 and marking all these old options as obsolete should mitigate the adoption issues.
Interface Kind:add/remove/modify command line option
Remove support for argument to
-target options for releases earlier than 6.
Per the policy described in
JEP 182: Policy for Retiring javac -source and -target Options http://openjdk.java.net/jeps/182
Starting in JDK 9, old source and target options will be retired to ease the maintenance of javac.
In javac, targets
1.1 1.2 1.3 1.4 1.5 / 5
are no longer recognized and target 6 / 1.6 is reported as obsolete.
1.0 1.1 1.2 1.3 1.4 1.5 / 5
are no longer recognized and source 6 / 1.6 is reported as obsolete.
The javac man page in JDK 9 only lists as supported: -source 6 / 1.6 (obsolete) 7 / 1.7 8 / 1.8 9 / 1.9 -target 6 / 1.6 (obsolete) 7 / 1.7 8 / 1.8 9 / 1.9