commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27747] New: - [PATCH] Wrong behavior when reading not boolean properties usinf Boolean methods
Date Wed, 17 Mar 2004 16:15:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27747>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27747

[PATCH] Wrong behavior when reading not boolean properties usinf Boolean methods

           Summary: [PATCH] Wrong behavior when reading not boolean
                    properties usinf Boolean methods
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: gufo99@yahoo.com


Reading an existing not boolean property using the method
public boolean getBoolean(String key)
throws a NoSuchElementException instead of a ClassCastException as correct
using 
public boolean getBoolean(String key, boolean defaultValue)
public Boolean getBoolean(String key, boolean defaultValue)
we get a null value instead of a ClassCastException as correct

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message