aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsundar <none@none>2014-01-30 19:04:00 +0530
committersundar <none@none>2014-01-30 19:04:00 +0530
commit070d7c55d4e2b53ed533bd5f5af37076c7599032 (patch)
tree554faff297e0de17db98a0daefb39db2f042652b /src
parentc45cf962b22600d2acaaa5a63dbaa21854fd76f3 (diff)
downloadnashorn-070d7c55d4e2b53ed533bd5f5af37076c7599032.tar.gz
8032954: Nashorn: extend Java.extend
Reviewed-by: attila, jlaskey, ahgross
Diffstat (limited to 'src')
-rw-r--r--src/jdk/nashorn/internal/runtime/linker/JavaAdapterFactory.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jdk/nashorn/internal/runtime/linker/JavaAdapterFactory.java b/src/jdk/nashorn/internal/runtime/linker/JavaAdapterFactory.java
index b221d000..878c0058 100644
--- a/src/jdk/nashorn/internal/runtime/linker/JavaAdapterFactory.java
+++ b/src/jdk/nashorn/internal/runtime/linker/JavaAdapterFactory.java
@@ -110,6 +110,8 @@ public final class JavaAdapterFactory {
for (Class<?> type : types) {
// check for restricted package access
Context.checkPackageAccess(type);
+ // check for classes, interfaces in reflection
+ ReflectionCheckLinker.checkReflectionAccess(type);
}
}
return getAdapterInfo(types).getAdapterClassFor(classOverrides);