JDK-4302078 : Boolean should have a static factory valueOf(boolean)
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1999-12-29
  • Updated: 2001-10-04
  • Resolved: 2001-07-29
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 Availability Release.

To download the current JDK release, click here.
Other
1.4.0 betaFixed
Related Reports
Relates :  
Description
The wrapper class java.lang.Boolean currently lacks a static factory that takes a boolean.  As a consequence, people use the constructor, which needlessly creates a new object.  Note that Boolean does have a static factory to go with its String constructor, so in addition to being inefficient, it's inconsistent that this method is missing.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin FIXED IN: merlin-beta INTEGRATED IN: merlin-beta VERIFIED IN: merlin-beta
14-06-2004

EVALUATION This would be a fine, albeit minor, API improvement. joshua.bloch@Eng 1999-12-29
29-12-1999