mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8301721: lookup.findSpecial fails on Object method call from interface
Reviewed-by: alanb
This commit is contained in:
parent
0f0fda7abc
commit
74dc50b7f0
2 changed files with 80 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue