mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8307944: ClassFileDumper should only load java.nio.file.Path if enabled
Reviewed-by: rriggs
This commit is contained in:
parent
7891de331a
commit
de7fd1c306
6 changed files with 109 additions and 92 deletions
|
@ -56,7 +56,6 @@ import java.lang.reflect.Member;
|
|||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.file.Path;
|
||||
import java.security.ProtectionDomain;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
@ -2252,7 +2251,7 @@ public class MethodHandles {
|
|||
}
|
||||
|
||||
private static final ClassFileDumper DEFAULT_DUMPER = ClassFileDumper.getInstance(
|
||||
"jdk.invoke.MethodHandle.dumpClassFiles", Path.of("DUMP_CLASS_FILES"));
|
||||
"jdk.invoke.MethodHandle.dumpClassFiles", "DUMP_CLASS_FILES");
|
||||
|
||||
static class ClassFile {
|
||||
final String name; // internal name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue