8021294: --verify-code option results in AnalyzerException
Reviewed-by: hannesw, jlaskey
--- 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));
}
}
}