JDK-8306626 : Add source 22 and target 22 to javac
  • Type: CSR
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 22
  • Submitted: 2023-04-20
  • Updated: 2023-11-03
  • Resolved: 2023-04-21
Related Reports
CSR :  
Relates :  
Description
Summary
-------

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

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

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

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

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.
21-04-2023