mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8210496: Improve filtering for classes with security sensitive fields
Reviewed-by: plevart, mchung
This commit is contained in:
parent
a17816f881
commit
9c70e26c14
8 changed files with 138 additions and 66 deletions
|
@ -33,6 +33,7 @@ import jdk.internal.reflect.Reflection;
|
|||
import sun.nio.ch.DirectBuffer;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -56,7 +57,7 @@ import java.lang.reflect.Field;
|
|||
public final class Unsafe {
|
||||
|
||||
static {
|
||||
Reflection.registerMethodsToFilter(Unsafe.class, "getUnsafe");
|
||||
Reflection.registerMethodsToFilter(Unsafe.class, Set.of("getUnsafe"));
|
||||
}
|
||||
|
||||
private Unsafe() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue