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=17987>. 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=17987 Subclassing and EqualsBuilder is broken [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-03-14 07:28 ------- No wait, I take it back. I now see the code which checks for subclasses and forces equals to false in the relevant cases. The tests would probably be a bit clearer if they were broken apart in a greater number of test methods, with names which reflected the things they did. For what it is worth, here's the test I wrote which helped me see what was going on: public void testSubclassingIsCommutative() { TestObject superObj = new TestObject(4); TestSubObject subObj = new TestSubObject(4, 10); boolean superFirst = EqualsBuilder.reflectionEquals(superObj, subObj); boolean subFirst = EqualsBuilder.reflectionEquals(subObj, superObj); assertEquals(superFirst, subFirst); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
