JDK-8205647 : Add source 12 and target 12 to javac
  • Type: CSR
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 12
  • Submitted: 2018-06-26
  • Updated: 2018-11-30
  • Resolved: 2018-06-27
Related Reports
CSR :  
Relates :  
Description
Summary
-------

Add `-source` and `-target` options to `javac` corresponding to JDK 12.

Problem
-------

Part of starting development on a new JDK is adding .new  `-source` and `-target` options to `javac`. These options are used in the compilation of the JDK sources.


Solution
--------

Add support for  `javac -source 12 ...` and `javac -target 12 ...`.

The new value of -source/-target is also made the default.

Note: following the precedent set in JDK 11, "1.12" is *not* treated as an alias for "12".

Specification
-------------

No update is needed in `javac --help`; the conceptual man page should reflect the increased range of `-source`/`-target` values.

Comments
Moving to Approved.
27-06-2018