Project: JDT
Bug 142508 [rename] Refactoring text search fails to find occurences preceeded by #
Reported: 2006-05-18 11:11:25 | Status: verified fixed

On renaming a class (f.ex. myPack.MyClass ) via refactoring RefactoringScanner fails to find occurences in special comments looking like /*#myPackMyClass hiddenField*/ The reason is that code in RefactoringScanner around line 172 looks like: if (beforeQualifierPos >= 0) { char beforeQualifierChar= value.charAt(beforeQualifierPos); boolean charBeforeQualifierIsQualifierPart= isQualifierPart(beforeQualifierChar); // true if the char before the qualifier is a normal letter // (and therefore invalidates the whole string) return charBeforeQualifierIsQualifierPart ? NO_MATCH : MATCH_QUALIFIED; }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/RefactoringScanner/C.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/RefactoringScannerTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RefactoringScanner.java