nashorn/src/jdk/internal/dynalink/beans/StaticClassLinker.java
changeset 19093 49bb7e75b326
parent 18876 ada98218aaae
child 19455 b972b61a6921
--- a/nashorn/src/jdk/internal/dynalink/beans/StaticClassLinker.java	Tue Jul 23 18:28:58 2013 +0200
+++ b/nashorn/src/jdk/internal/dynalink/beans/StaticClassLinker.java	Wed Jul 24 11:13:24 2013 +0200
@@ -132,7 +132,9 @@
                 return new SimpleDynamicMethod(StaticClassIntrospector.editConstructorMethodHandle(
                         boundArrayCtor.asType(boundArrayCtor.type().changeReturnType(clazz))), clazz, "<init>");
             }
-
+            if(CheckRestrictedPackage.isRestrictedClass(clazz)) {
+                return null;
+            }
             return createDynamicMethod(Arrays.asList(clazz.getConstructors()), clazz, "<init>");
         }