JDK-6627364 : javac needs Float and Double on the bootclasspath even when not directly used
  • Type: Enhancement
  • Status: Closed
  • Resolution: Fixed
  • Component: tools
  • Sub-Component: javac
  • Priority: P3
  • Affected Version: 7
  • OS: generic
  • CPU: generic
  • Submit Date: 2007-11-08
  • Updated Date: 2011-05-18
  • Resolved Date: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u10Resolved 7 b34Fixed
Related Reports
Relates :  
Relates :  
Description
javac needs Float and Double on the classpath, even when float and double values are not being used.

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

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 Should work to have empty classes for Float and Double on the bootclasspath for compilation.
2007-11-08

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