changeset 19098:473dfe87bb7b

8021294: --verify-code option results in AnalyzerException Reviewed-by: hannesw, jlaskey
author sundar
date Wed, 24 Jul 2013 21:01:22 +0530
parents f544a2ea40ef
children 30230d3febb8
files nashorn/src/jdk/nashorn/internal/runtime/Context.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nashorn/src/jdk/nashorn/internal/runtime/Context.java	Wed Jul 24 20:28:03 2013 +0530
+++ b/nashorn/src/jdk/nashorn/internal/runtime/Context.java	Wed Jul 24 21:01:22 2013 +0530
@@ -662,7 +662,7 @@
             // No verification when security manager is around as verifier
             // may load further classes - which should be avoided.
             if (System.getSecurityManager() == null) {
-                CheckClassAdapter.verify(new ClassReader(bytecode), scriptLoader, false, new PrintWriter(System.err, true));
+                CheckClassAdapter.verify(new ClassReader(bytecode), sharedLoader, false, new PrintWriter(System.err, true));
             }
         }
     }