|
The generated equals(Object other) method checks to see if this and other are compatible using other instanceof MyConcreteClass. If MyConcreteClass has a proxy declared, and "other" is a lazy proxy, then this instanceof check fails. The check should be to the proxy class.
Also I believe the use of instanceof in the equals implementation is undesirable and it would be better to check that the classes are equal?
|