Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8152642

Remove sun.misc.Unsafe dependency from java.lang.reflect.Proxy

XMLWordPrintable

      Looks like a minor oversight that inadvertently introduced a dependency on sun.misc.Unsafe.

      diff --git a/src/java.base/share/classes/java/lang/reflect/Proxy.java b/src/java.base/share/classes/java/lang/reflect/Proxy.java
      --- a/src/java.base/share/classes/java/lang/reflect/Proxy.java
      +++ b/src/java.base/share/classes/java/lang/reflect/Proxy.java
      @@ -48,8 +48,8 @@
       
       import jdk.internal.loader.BootLoader;
       import jdk.internal.module.Modules;
      +import jdk.internal.misc.Unsafe;
       import jdk.internal.misc.VM;
      -import sun.misc.Unsafe;
       import sun.reflect.CallerSensitive;
       import sun.reflect.Reflection;
       import sun.reflect.misc.ReflectUtil;

            chegar Chris Hegarty
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: