Commit 12bf5757 authored by Per Bothner's avatar Per Bothner

* KawaScriptEngine.java (compile): Better fix to parse.

The 2020-03-24 change also set the PARSE_CURRENT_NAMES flag,
which causes new compiled classes to reference fields in old classes,
which is a problem when they have the same class name ...
Partially fixes GitLab issue #73 "[javax.script] In lambda,
name resolution does not include the EngineManager's global scope".
parent 63071f6b
Pipeline #132763632 passed with stage
in 11 minutes and 40 seconds
2020-04-03 Per Bothner <per@bothner.com>
* KawaScriptEngine.java (compile): Better fix to parse.
The 2020-03-24 change also set the PARSE_CURRENT_NAMES flag,
which causes new compiled classes to reference fields in old classes,
which is a problem when they have the same class name ...
Partially fixes GitLab issue #73 "[javax.script] In lambda,
name resolution does not include the EngineManager's global scope".
2020-03-28 Per Bothner <per@bothner.com>
* ConsumerTarget.java: Remove redundant stack push.
......
......@@ -104,7 +104,7 @@ public class KawaScriptEngine extends AbstractScriptEngine
try
{
Compilation comp =
factory.language.parse(port, messages, Language.PARSE_FOR_EVAL);
factory.language.parse(port, messages, Language.PARSE_IMMEDIATE);
if (messages.seenErrors())
throw new SyntaxException(messages);
ModuleExp mexp = comp.getModule();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment