Skip to content

Commit c822b18

Browse files
committed
Fix testMethodReferencesElementPatternSingleTypeParameter05
Signed-off-by: Rob Stryker <[email protected]>
1 parent 313812d commit c822b18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,9 @@ public void reportSearchMatch(MatchLocator locator, ASTNode node, SearchMatch ma
13711371
}
13721372
if( preferParamaterizedNode() ) {
13731373
if( node instanceof MethodInvocation iv) {
1374+
if( methodBinding != null ) {
1375+
updateMatch(methodBinding.getTypeArguments(), this.pattern.methodArguments, this.pattern.hasMethodParameters());
1376+
}
13741377
List<?> l = iv.typeArguments();
13751378
if( l != null && l.size() > 0 ) {
13761379
int start = ((ASTNode)l.get(0)).getStartPosition();

0 commit comments

Comments
 (0)