Project: JDT
Bug 124088 Generate equals() should check wether cast is possible
Reported: 2006-01-17 04:34:52 | Status: resolved fixed

Just checked out the new Source > Generate equals and hashcode feature. I wonder why in the method, the classes of the two Objects are not compared. I can see a check for super.equals and a cast afterwards. I had expected something like if (!getClass().equals(obj.getClass()) return false; Ben

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java