JDK-4253782 : Boole need a Boolean.parseBoolean(string)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-07-13
  • Updated: 1999-12-18
  • Resolved: 1999-12-18
Related Reports
Duplicate :  
Description

Name: rlT66838			Date: 07/13/99


The definition of java.lang.Boolean.getBoolean as obtaining the boolean value of a *system property* is not at all intuitive. When I am looking for a method that returns information about system properties, I check java.lang.System, not java.lang.Boolean.
When glancing at the API for java.lang.Boolean, a method defined as "getBoolean(string)" appears to take a string argument that will be converted to a boolean.

The java.lang.Boolean.getBoolean method is more logically a method of java.lang.System.
(Review ID: 85543) 
======================================================================

Comments
EVALUATION I concede that the use the method names of the form <type>.get<Type> to access properties, rather than to provide conversions, was unfortunate. william.maddox@Eng 1999-12-17
17-12-1999