mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8158851: MH.publicLookup() init circularity, triggered by custom SecurityManager with String concat and -limitmods java.base
Reviewed-by: alanb, redestad, jlaskey
This commit is contained in:
parent
3097f1a54d
commit
41b6361f34
3 changed files with 41 additions and 19 deletions
|
@ -2204,15 +2204,7 @@ return mh1;
|
|||
}
|
||||
}
|
||||
|
||||
private static final Class<?> PUBLIC_LOOKUP_CLASS;
|
||||
static {
|
||||
PrivilegedAction<Class<?>> pa = new PrivilegedAction<Class<?>>() {
|
||||
public Class<?> run() {
|
||||
return createClass();
|
||||
}
|
||||
};
|
||||
PUBLIC_LOOKUP_CLASS = AccessController.doPrivileged(pa);
|
||||
}
|
||||
private static final Class<?> PUBLIC_LOOKUP_CLASS = createClass();
|
||||
|
||||
/**
|
||||
* Lookup that is trusted minimally. It can only be used to create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue