8301721: lookup.findSpecial fails on Object method call from interface

Reviewed-by: alanb
This commit is contained in:
Mandy Chung 2023-06-06 16:19:46 +00:00
parent 0f0fda7abc
commit 74dc50b7f0
2 changed files with 80 additions and 1 deletions

View file

@ -4071,7 +4071,7 @@ return mh1;
if (refKind == REF_invokeSpecial &&
refc != lookupClass() &&
!refc.isInterface() &&
!refc.isInterface() && !lookupClass().isInterface() &&
refc != lookupClass().getSuperclass() &&
refc.isAssignableFrom(lookupClass())) {
assert(!method.getName().equals(ConstantDescs.INIT_NAME)); // not this code path