8021246: Fix regression for 8021189

Reviewed-by: lagergren, sundar
This commit is contained in:
Attila Szegedi 2013-07-24 12:48:09 +02:00
parent 91e5fbd2e0
commit 85d68499be
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ final class JavaAdapterBytecodeGenerator {
// Package used when the adapter can't be defined in the adaptee's package (either because it's sealed, or because
// it's a java.* package.
private static final String ADAPTER_PACKAGE_PREFIX = "jdk/nashorn/internal/javaadapters/";
private static final String ADAPTER_PACKAGE_PREFIX = "jdk/nashorn/javaadapters/";
// Class name suffix used to append to the adaptee class name, when it can be defined in the adaptee's package.
private static final String ADAPTER_CLASS_NAME_SUFFIX = "$$NashornJavaAdapter";
private static final String JAVA_PACKAGE_PREFIX = "java/";

View File

@ -124,7 +124,7 @@ function compile(source) {
var env = getEnvMethod.invoke(getContextMethod.invoke(null))
var parser = ParserConstructor.newInstance(env, source, new ThrowErrorManager());
var parser = ParserConstructor.newInstance(env, source, ThrowErrorManager.class.newInstance());
var func = parseMethod.invoke(parser);
var compiler = CompilerConstructor.newInstance(env);