equal
deleted
inserted
replaced
48 import jdk.internal.misc.Unsafe; |
48 import jdk.internal.misc.Unsafe; |
49 import jdk.internal.misc.VM; |
49 import jdk.internal.misc.VM; |
50 import jdk.internal.reflect.CallerSensitive; |
50 import jdk.internal.reflect.CallerSensitive; |
51 import jdk.internal.reflect.Reflection; |
51 import jdk.internal.reflect.Reflection; |
52 import sun.reflect.misc.ReflectUtil; |
52 import sun.reflect.misc.ReflectUtil; |
|
53 import sun.security.action.GetPropertyAction; |
53 import sun.security.util.SecurityConstants; |
54 import sun.security.util.SecurityConstants; |
54 |
55 |
55 /** |
56 /** |
56 * |
57 * |
57 * {@code Proxy} provides static methods for creating objects that act like instances |
58 * {@code Proxy} provides static methods for creating objects that act like instances |
579 .forEach(c -> System.out.println(toDetails(c))); |
580 .forEach(c -> System.out.println(toDetails(c))); |
580 } |
581 } |
581 } |
582 } |
582 |
583 |
583 private static final String DEBUG = |
584 private static final String DEBUG = |
584 AccessController.doPrivileged(new PrivilegedAction<>() { |
585 GetPropertyAction.getProperty("jdk.proxy.debug", ""); |
585 public String run() { |
|
586 return System.getProperty("jdk.proxy.debug", ""); |
|
587 } |
|
588 }); |
|
589 |
586 |
590 private static boolean isDebug() { |
587 private static boolean isDebug() { |
591 return !DEBUG.isEmpty(); |
588 return !DEBUG.isEmpty(); |
592 } |
589 } |
593 private static boolean isDebug(String flag) { |
590 private static boolean isDebug(String flag) { |