United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8010179 : Remove transitional target values from javac

Details
Type:
Enhancement
Submit Date:
2013-03-15
Status:
Closed
Updated Date:
2017-05-17
Project Name:
JDK
Resolved Date:
2013-03-19
Component:
tools
OS:
generic
Sub-Component:
javac
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
The -target option of javac has supported a number of "transitional" values

* 1.4.2 (results in 48.0 class files with different code generation behavior)
* 1.4.1 (results in 48.0 class files with different code generation behavior)
* jsr14 (results in 48.0 class files with generics information)

The time has come for these transitional options to be transitioned out of the set of recognized targets.
                                    

Comments
Draft release notes text - JDK scope, behavioral change:
Recognition of the undocumented target values "1.4.1", "1.4.2" and "jsr14" have been removed from javac. The "1.4.1" and "1.4.2" targets used more up-to-date code generation idioms than than "1.4". The combination of options "-source 1.4 -target 1.5" will use those newer idioms, but also output a more recent class file format. The "jsr14" option was a transitional private option for when generics were first being added to the platform. Now generics should be compiled with a target of 1.5 or higher.
                                     
2013-03-19



Hardware and Software, Engineered to Work Together