Update GraalVM to latest version (21.1.0)
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -18,6 +18,7 @@
|
||||
<mainClass>net.server.Server</mainClass>
|
||||
|
||||
<log4j.version>2.14.1</log4j.version>
|
||||
<graalvm.version>21.1.0</graalvm.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -73,12 +74,12 @@
|
||||
<dependency>
|
||||
<groupId>org.graalvm.js</groupId>
|
||||
<artifactId>js</artifactId>
|
||||
<version>21.0.0.2</version>
|
||||
<version>${graalvm.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.graalvm.js</groupId>
|
||||
<artifactId>js-scriptengine</artifactId>
|
||||
<version>21.0.0.2</version>
|
||||
<version>${graalvm.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import javax.script.ScriptException;
|
||||
/**
|
||||
* Thread safe wrapper around Invocable.
|
||||
* Thread safety is achieved by synchronizing all methods.
|
||||
* Needed to get around the restriction that GraalVM imposes on evaluated scripts: no concurrent access allowed.
|
||||
*/
|
||||
@ThreadSafe
|
||||
public class SynchronizedInvocable implements Invocable {
|
||||
|
||||
Reference in New Issue
Block a user