-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK11+ nashorn scripting, SecurityManager update, Gradle 7.6 #1426
Conversation
JDK 11+ buildable (nashorn is not built with 8) Gradle and dependency upgrades
# Conflicts: # build.gradle # buildSrc/build.gradle # buildSrc/src/main/groovy/LessCompiler.groovy # buildSrc/src/main/groovy/WikiFileListBuilderTask.groovy # gradle/wrapper/gradle-wrapper.properties
# Conflicts: # build.gradle # buildSrc/build.gradle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good.
If you are happy with it I think it might be mergeable once the release notes page is also updated (we'll also need to update the FitNesse.org site as well of course).
Do you have any open issues that should be addressed?
this(ENGINE_MANAGER.getEngineByName(engineName)); | ||
} | ||
|
||
public SlimExpressionEvaluator(ScriptEngine engine) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not keep this constructor and feed it the nashhorn engine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought to do it this way, so we had the nashorn import and scriptengine initialization only in this file. I can see the compatibility argument to keep the old constructor. Not really a preference for one or the other.
@jediwhale what do you think about switching to Java 11 and dropping Java 8 support. Is that an issue for you? |
OK with me |
# Conflicts: # build.gradle
For reference.
This branch runs scripting (slim symbol expressions) with Java 11 and up. It incorporates OpenJDK Nashorn instead of depending on the previously built in nashorn scriptengine.
Also removed the no-longer existed methods from the SecurityManager implementation (but it should be removed entirely imho) and upgraded Gradle and other dependencies.
Note: this branch can no longer be compiled using JDK8.