Files
networknt-json-schema-valid…/00-no-graalvm.patch

19 lines
1.5 KiB
Diff

diff -up json-schema-validator-1.5.2/src/main/java/com/networknt/schema/regex/ECMAScriptRegularExpressionFactory.java.p00 json-schema-validator-1.5.2/src/main/java/com/networknt/schema/regex/ECMAScriptRegularExpressionFactory.java
--- json-schema-validator-1.5.2/src/main/java/com/networknt/schema/regex/ECMAScriptRegularExpressionFactory.java.p00 2024-10-16 06:47:55.903353898 +0300
+++ json-schema-validator-1.5.2/src/main/java/com/networknt/schema/regex/ECMAScriptRegularExpressionFactory.java 2024-10-16 06:49:23.776484153 +0300
@@ -24,12 +24,9 @@ import com.networknt.schema.utils.Classe
public class ECMAScriptRegularExpressionFactory implements RegularExpressionFactory {
private static final boolean JONI_PRESENT = Classes.isPresent("org.joni.Regex",
ECMAScriptRegularExpressionFactory.class.getClassLoader());
- private static final boolean GRAALJS_PRESENT = Classes.isPresent("com.oracle.truffle.js.parser.GraalJSEvaluator",
- ECMAScriptRegularExpressionFactory.class.getClassLoader());
+ private static final boolean GRAALJS_PRESENT = false;
- private static final RegularExpressionFactory DELEGATE = GRAALJS_PRESENT
- ? GraalJSRegularExpressionFactory.getInstance()
- : JoniRegularExpressionFactory.getInstance();
+ private static final RegularExpressionFactory DELEGATE = JoniRegularExpressionFactory.getInstance();
public static final ECMAScriptRegularExpressionFactory INSTANCE = new ECMAScriptRegularExpressionFactory();