Skip to content

Commit 0b98db7

Browse files
committed
Fix fine grain matching permitted types reference
1 parent d107775 commit 0b98db7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/core/search/matching/DOMTypeReferenceLocator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,10 @@ private static boolean matchFineGrain(ASTNode node, int fineGrain) {
681681
&& Set.of(NormalAnnotation.TYPE_NAME_PROPERTY, MarkerAnnotation.TYPE_NAME_PROPERTY, SingleMemberAnnotation.TYPE_NAME_PROPERTY).contains(node.getLocationInParent())) {
682682
return true;
683683
}
684+
if ((fineGrain & IJavaSearchConstants.PERMITTYPE_TYPE_REFERENCE) != 0
685+
&& node.getLocationInParent() == TypeDeclaration.PERMITS_TYPES_PROPERTY) {
686+
return true;
687+
}
684688
return false;
685689
}
686690

0 commit comments

Comments
 (0)