Project: JDT
Bug 130317 ASTParser with IClassFile as source creates type bindings that are not isEqualTo(..) binary bindings
Reported: 2006-03-03 09:50:05 | Status: verified fixed

I20060301-0800 Create an AST from an IClassFile with source attachment, e.g. java.lang.Integer -> was: the ITypeBinding for Integer answers true for isFromSource() -> expected: false On the other hand, when I create an AST for a compilation unit that refers to Integer and resolve a type binding for Integer there, the binding is not a source binding (as expected). Comparing these two different kinds of type bindings with isEqualsTo(..) returns false, although their keys are equal.

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringCoreMessages.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java