mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8228671: Fastdebug VM throws InternalError when publicLookup.in(T) is used to resolve a member
Reviewed-by: alanb
This commit is contained in:
parent
80ebfe9bba
commit
19ec64630a
1 changed files with 8 additions and 1 deletions
|
@ -1329,7 +1329,14 @@ public class MethodHandles {
|
||||||
|
|
||||||
// This is just for calling out to MethodHandleImpl.
|
// This is just for calling out to MethodHandleImpl.
|
||||||
private Class<?> lookupClassOrNull() {
|
private Class<?> lookupClassOrNull() {
|
||||||
return (allowedModes == TRUSTED) ? null : lookupClass;
|
if (allowedModes == TRUSTED) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (allowedModes == UNCONDITIONAL) {
|
||||||
|
// use Object as the caller to pass to VM doing resolution
|
||||||
|
return Object.class;
|
||||||
|
}
|
||||||
|
return lookupClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tells which access-protection classes of members this lookup object can produce.
|
/** Tells which access-protection classes of members this lookup object can produce.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue