Skip to content

Commit

Permalink
Merge pull request #16262 from dnakamura/interface_lookup
Browse files Browse the repository at this point in the history
Update interface method resolution
  • Loading branch information
tajila committed Nov 4, 2022
2 parents 895a926 + e6328da commit f6c7bee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runtime/vm/lookupmethod.c
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2021 IBM Corp. and others
* Copyright (c) 1991, 2022 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -723,8 +723,11 @@ javaLookupMethodImpl(J9VMThread *currentThread, J9Class *targetClass, J9ROMNameA
goto done;
}
/* interface found inaccessable method in Object - keep looking
* as valid interface method may be found by the iTable search
* as valid interface method may be found by the iTable search.
* However, we need to reset the exception info.
*/
exception = J9VMCONSTANTPOOL_JAVALANGNOSUCHMETHODERROR;
exceptionClass = targetClass;
} else if (!isInterfaceLookup) {
/* success */
goto done;
Expand Down

0 comments on commit f6c7bee

Please sign in to comment.