Project: JDT
Bug 94062 [1.5][search][annot] search for annotation elements incorrect match range
Reported: 2005-05-08 14:43:04 | Status: verified fixed

When searching for references for the following annotation: public @interface Expected { Class value(); } The match range for a use of this annotation is as follows: @Test <|>@Expected(Error.class) public void expectedException() { This is confusing since when the editor doesn't have focus the caret isn't shown and therefore the match isn't visible.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/RenameMethodInInterface/testAnnotation1/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenameMethodInInterface/testAnnotation4/out/A.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/RenameMethodInInterfaceTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/MethodOccurenceCollector.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameMethodProcessor.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameNonVirtualMethodProcessor.java