Skip to content

Commit bb85cfc

Browse files
committed
Fix testMethodReferencesElementPatternSingleParamArguments04 and others
Signed-off-by: Rob Stryker <[email protected]>
1 parent 9c4d56d commit bb85cfc

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/DOMMethodLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ protected int resolveLevelForNodeWithMethodBinding(ASTNode messageSend,
892892
retval = declaringLevel;
893893
} else if( isExactPattern || (!isErasurePattern && !isEquivPattern)) {
894894
retval = IMPOSSIBLE_MATCH;
895-
} else if( isEquivPattern && matchLevel == ERASURE_MATCH) {
895+
} else if( isEquivPattern && (matchLevel == ERASURE_MATCH || matchLevel == INACCURATE_MATCH)) {
896896
retval = IMPOSSIBLE_MATCH;
897897
}
898898
} else if (declaringFlavors != 0) {

0 commit comments

Comments
 (0)