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 26616] - ClassCastException in Enum.equals(Object)
Date Wed, 11 Feb 2004 22:38:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26616>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26616

ClassCastException in Enum.equals(Object)





------- Additional Comments From ggregory@seagullsw.com  2004-02-11 22:38 -------
The issue is that it looks like the author of the code had clear intentions when
writting the catch block, which this patch seems to circumvent. What that last
else and catch blcok do is allow Enum instance to work even though they might
come  from different class loaders. I think your patch might break this feature.
I also do not think there is a unit test that validates this feature. So, that
would be the first thing to do: add a unit test that checks that Enums from
different class loaders can be tested.

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