Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix PTBKey updateWhenSettingTypeAnnotations
Changing PTBKey.arguments[idx] changes PTBKey.equals() and PTBKey.hashCode(). So the old PTBKey has to be removed and a new has to be inserted. It was wrong to keep the PTBKey in hashedParameterizedTypes. Found by codereview. It is not clear if that could produce an error other then having bad performance by having garbage entries in the HashMap that could furthermore not found because the hash/equals contract was violated. Code is executed for example during compiler.apt.tests.Java8ElementsTests.testTypeAnnotations() relates to eclipse-jdt#3412
- Loading branch information