United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6627364 : javac needs Float and Double on the bootclasspath even when not directly used

Details
Type:
Enhancement
Submit Date:
2007-11-08
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
tools
OS:
generic
Sub-Component:
javac
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
javac needs Float and Double on the classpath, even when float and double values are not being used.

                                    

Comments
EVALUATION

The problem occurs in the unboxing code, where the compiler looks to see if a target type is a subtype of any of the box types.
                                     
2007-11-08
EVALUATION

Should work to have empty classes for Float and Double on the bootclasspath for compilation.
                                     
2007-11-08
EVALUATION

Float and Double are required when checking if the unboxing conversion JLS 3, 5.1.7.
The difficulty here is that checking for unboxing is part of the third phase of method resolution, JLS3 15.12.2, and  15.12.2.4, so even overload resolution may indirectly use Float and Double.
                                     
2007-11-08
EVALUATION

Will consider synthesizing the classes if they are not available on the bootclasspath.
                                     
2007-12-06



Hardware and Software, Engineered to Work Together