JDK-8330194 : Add source 24 and target 24 to javac
  • Type: CSR
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 24
  • Submitted: 2024-04-12
  • Updated: 2024-10-24
  • Resolved: 2024-04-15
Related Reports
CSR :  
Relates :  
Relates :  
Description
Summary
-------

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

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 `24` as a valid argument to the options in question.

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

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

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

As a consequence of adding support for the new argument to `javac`, support is also added to `javadoc` and the `java --source` option.


Comments
Moving to Approved.
15-04-2024