https://bz.apache.org/bugzilla/show_bug.cgi?id=60845
--- Comment #32 from [email protected] --- Well, I was thinking since yesterday why and which one is preferable over the other and came to the conclusion that the method I used is maybe a bit more reliable, since a.getClass() == b.getClass() returns TRUE only, if the two Classes are really the same. In contrast, a instanceOf bClass returns also true, if a is of a subclass of b. I think that violates the equals contract on transitivity. I also found a website telling the same: http://onewebsql.com/blog/on-equals -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
