< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandles.java

Print this page

        

@@ -2593,11 +2593,11 @@
                 return lookup.getDirectConstructorNoSecurityManager(ctor.getDeclaringClass(), ctor);
             } else {
                 // static init factory is a static method
                 assert(ctor.isMethod() && ctor.getReturnType() == ctor.getDeclaringClass() && ctor.getReferenceKind() == REF_invokeStatic);
                 assert(!MethodHandleNatives.isCallerSensitive(ctor));  // must not be caller-sensitive
-                return lookup.getDirectMethodNoSecurityManager(ctor.getReferenceKind(), ctor.getDeclaringClass(), ctor, null);
+                return lookup.getDirectMethodNoSecurityManager(ctor.getReferenceKind(), ctor.getDeclaringClass(), ctor, lookup);
             }
         }
 
         /**
          * Produces a method handle giving read access to a reflected field.
< prev index next >