Bug 94062 [1.5][search][annot] search for annotation elements incorrect match range
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.
org.eclipse.jdt.ui.tests.refactoring/resources/RenameMethodInInterface/testAnnotation1/out/A.java
package p;
class A {
	public static final int value= 12;
	
	@I
	boolean f1;
	@I(number=1)
	boolean f2;
	@I(number=value)
	boolean f3;
	@I(number=1)
	boolean f4;
	@I(number=1, x=2)
	boolean f5;
	@I(x=2)
	boolean f6;
}
@interface I {
    int x() default 0;
    int number() default 0;
}