-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't evaluate the same type twice when renaming a method #3561
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theoretically the PR looks good, but unfortunatly ReferenceBinding may have unexpected hash/equals contract, see #3412. It might work to use a IdentityHashSet instead.
WDYT @jukzi ? |
use java.util.IdentityHashMap or org.eclipse.jdt.internal.compiler.lookup.ReferenceBindingSetWrapper |
784be96
to
f9a75da
Compare
Thank you for the hint! I used |
please find out if this code is executed by any test |
I found these:
They run through the code, they run fast and they all pass. There may be more (I stopped the search after these 3 findings). |
ok, org.eclipse.jdt.core.tests.model\workspace\TypeHierarchy\src\p2\I1.java is extended by both I3 and X, and Y extends both X and I3, which forms a type hierarchy with redundant superinterfaces. |
Fixes eclipse-jdt/eclipse.jdt.ui#1945