--- 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>");
}