JDK-8225365 : Add -source 14 and -target 14 and --release 14 to javac
  • Type: CSR
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 14
  • Submitted: 2019-06-05
  • Updated: 2019-06-10
  • Resolved: 2019-06-10
Related Reports
CSR :  
Description
Summary
-------
Add `-source` and `-target` and `--release` options to `javac` corresponding to JDK 14.

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
--------

An overview of the solution. Alternative solutions may be discussed;
links to rationale documents or review threads welcome to provide
additional background to reviewers.

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


Add support for  `javac -source 14 ...`, and `javac -target 14 ...`, and `javac --release 14 ...`.

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

Comments
Good points Jon; it is a feature if a re-written man page doesn't need to be explicitly updated for such a change. Moving to Approved.
10-06-2019

Since this is a change to command-line options, it is worth noting (such as here) that no change to the command-line help is required, since the text is generated dynamically, and no change to the man page is required (assuming successful JDK-8219473) since the man page will soon have no explicit list of version numbers and will just defer to the command-line help.
10-06-2019