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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to