JDK-8028563 : Remove javac support for 6/1.6 source and target values
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-11-19
  • Updated: 2019-02-27
  • Resolved: 2018-07-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12 b03Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8206439 :  
JDK-8206440 :  
JDK-8206443 :  
JDK-8206874 :  
JDK-8206950 :  
JDK-8219875 :  
Description
Per the general policy of evolving the set of supported source and target options in javac

    JEP 182: Policy for Retiring javac -source and -target Options
    http://openjdk.java.net/jeps/182

As of JDK 10, source 6 and target 6 should be removed and source and target 7 treated as obsolete.
Comments
Review threads: http://mail.openjdk.java.net/pipermail/compiler-dev/2018-July/012167.html http://mail.openjdk.java.net/pipermail/build-dev/2018-July/022653.html
09-07-2018

Based on the discussion thread, now targeting this work for JDK 12.
15-05-2018

Dropping -source/-target/--release 6/1.6 in JDK 11 under discussion: http://mail.openjdk.java.net/pipermail/jdk-dev/2018-May/001190.html
10-05-2018

With the faster release cadence, 6 months vs 2 years, 7 will remain a fully supported and non-deprecated option for javac's -source/-target/--release options in JDK 10 and 6 will remain a deprecated value to those options.
05-12-2017