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>
|
<mainClass>net.server.Server</mainClass>
|
||||||
|
|
||||||
<log4j.version>2.14.1</log4j.version>
|
<log4j.version>2.14.1</log4j.version>
|
||||||
|
<graalvm.version>21.1.0</graalvm.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -73,12 +74,12 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.graalvm.js</groupId>
|
<groupId>org.graalvm.js</groupId>
|
||||||
<artifactId>js</artifactId>
|
<artifactId>js</artifactId>
|
||||||
<version>21.0.0.2</version>
|
<version>${graalvm.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.graalvm.js</groupId>
|
<groupId>org.graalvm.js</groupId>
|
||||||
<artifactId>js-scriptengine</artifactId>
|
<artifactId>js-scriptengine</artifactId>
|
||||||
<version>21.0.0.2</version>
|
<version>${graalvm.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import javax.script.ScriptException;
|
|||||||
/**
|
/**
|
||||||
* Thread safe wrapper around Invocable.
|
* Thread safe wrapper around Invocable.
|
||||||
* Thread safety is achieved by synchronizing all methods.
|
* 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
|
@ThreadSafe
|
||||||
public class SynchronizedInvocable implements Invocable {
|
public class SynchronizedInvocable implements Invocable {
|
||||||
|
|||||||
Reference in New Issue
Block a user