mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-11 19:08:23 +00:00
8021246: Fix regression for 8021189
Reviewed-by: lagergren, sundar
This commit is contained in:
parent
91e5fbd2e0
commit
85d68499be
@ -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/";
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user