Skip to content

Commit 0efa752

Browse files
committed
Fix testBug306223a
Signed-off-by: Rob Stryker <[email protected]>
1 parent 420921e commit 0efa752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ public LocatorResponse resolveLevel(org.eclipse.jdt.core.dom.ASTNode node, IBind
565565
return toResponse(INACCURATE_MATCH);
566566
}
567567
if (binding instanceof ITypeBinding typeBinding) {
568-
if (!DOMTypeDeclarationLocator.matchSearchForTypeSuffix(typeBinding, this.locator.pattern.typeSuffix)) {
568+
if (!hasImportAncestor(node) && !DOMTypeDeclarationLocator.matchSearchForTypeSuffix(typeBinding, this.locator.pattern.typeSuffix)) {
569569
return toResponse(IMPOSSIBLE_MATCH);
570570
}
571571
if( hasImportAncestor(node) && !this.locator.isDeclarationOfReferencedTypesPattern) {

0 commit comments

Comments
 (0)