You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/05/05 16:14:21 UTC

DO NOT REPLY [Bug 27747] - [configuration] ClassCastException not thrown by getBoolean()

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

smanux@lfjr.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From smanux@lfjr.net  2004-05-05 14:14 -------
Actually for all other types (double, short, byte...) a NumberFormatException is
thrown instead of a ClassCastException if the value of the property is not
compatible with the type. I'm not sure throwing a ClassCastException for
incompatible values is the best choice because we are not casting a reference
there, maybe an IllegalArgumentException is best suited for this case.

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