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] - [configuration] ClassCastException not thrown by getBoolean()
Date Sun, 28 Mar 2004 15:18:48 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

[configuration] ClassCastException not thrown by getBoolean()





------- Additional Comments From epugh@upstate.com  2004-03-28 15:18 -------
Alessio,

I think that the correct behavior needs to be either throw the 
NoSuchElementException if the value is missing, or the ClassCastException if 
the value can't be casted.  However, can you submit a patch that applies this 
logic to ALL the various methods of AbstractConfiguration, like getDouble, 
getShort etc?  I don't want to have getBoolean operating differently from the 
others.   Also, a unit test would be good to verify which Exception was thrown.

Thanks!

Eric

---------------------------------------------------------------------
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