8021294: --verify-code option results in AnalyzerException
authorsundar
Wed, 24 Jul 2013 21:01:22 +0530
changeset 19098 473dfe87bb7b
parent 19097 f544a2ea40ef
child 19099 30230d3febb8
8021294: --verify-code option results in AnalyzerException Reviewed-by: hannesw, jlaskey
nashorn/src/jdk/nashorn/internal/runtime/Context.java
--- 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));
             }
         }
     }