Community
Participate
Working Groups
When you have a class inside a package, both with the same name. For example package foo and class foo, and you use the search engine to find references to the class foo, in some instances it will return the offsets of the package. Speicifically where ever the string foo.foo appears it reports the offset of the first foo. For a demonstration of this create a package and class foo, then import this in another class in a different package. Then use the refactor->rename tool on the foo class. Look at your import statement and you will see that it is updated wrong. Kevin
Needed to change the MatchLocator to resolve the import refs since they cannot be resolved using Scope.getTypeOrPackage(char[][]). Olivier: you should check the senders of Scope.getTypeOrPackage(char[][]) in the DOM to see they are trying to resolve import references.
Verified for 3.1 M2 with build I200409230800.