Summary
Have javac
recognize "10" and "1.10" as a valid arguments for the -source and -target options and 10 as a valid argument for the --release option.
Initially, the "10" arguments will just be aliases for 9 until 10-specific features are added later in the release.
Problem
With a new JDK release, new source and target values are needed in javac
,
Solution
Add javac options -source 10 -source 1.10 -target 10 -target 1.10
Specification
-source 1.10 The compiler accepts code with features introduced in Java SE 10.
-source 10 Synonym for 1.10.
-target 1.10 The compiler outputs class files appropriate for the 10 platform.
-target 10 Synonym for 1.10.
The default source and target is also updated from 9 to 10.
- csr of
-
JDK-8028546 Add -source 10 and -target 10 to javac
-
- Resolved
-
- relates to
-
CCC-8028545 Add -source 9 and -target 9 to javac
-
- Closed
-
-
JDK-8191510 Bump class file version number to 54.0
-
- Closed
-