nashorn/src/jdk/internal/dynalink/beans/StaticClassLinker.java
changeset 16277 fd698c5ee684
parent 16245 6a1c6c8bc113
child 17247 607f6372b21b
--- a/nashorn/src/jdk/internal/dynalink/beans/StaticClassLinker.java	Wed Mar 06 22:38:18 2013 +0530
+++ b/nashorn/src/jdk/internal/dynalink/beans/StaticClassLinker.java	Sat Mar 09 21:49:32 2013 +0530
@@ -138,7 +138,7 @@
             final Constructor<?>[] ctrs = clazz.getConstructors();
             final List<MethodHandle> mhs = new ArrayList<>(ctrs.length);
             for(int i = 0; i < ctrs.length; ++i) {
-                mhs.add(drop(Lookup.PUBLIC.unreflectConstructor(ctrs[i])));
+                mhs.add(drop(SafeUnreflector.unreflectConstructor(ctrs[i])));
             }
             return createDynamicMethod(mhs, clazz, "<init>");
         }