From bee44e3be82e19f00c3cd1a7e25e59d3149b22c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Ga=C5=82ek?= Date: Fri, 11 Mar 2022 22:35:25 +0100 Subject: [PATCH] parboiled-java update (#48) * parboiled-java update * gradle update * Update build.gradle.kts --- build.gradle.kts | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- src/main/java/pl/allegro/tech/opel/OpelParser.java | 13 ------------- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 43c93d0..e7df152 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,7 +24,7 @@ java { dependencies { implementation("org.apache.commons:commons-lang3:3.12.0") - implementation("org.parboiled:parboiled-java:1.3.2-jdk17") + implementation("org.parboiled:parboiled-java:1.4.1") implementation("org.slf4j:slf4j-api:1.7.32") testImplementation("org.spockframework:spock-core:2.0-groovy-3.0") diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ffed3a2..2e6e589 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/main/java/pl/allegro/tech/opel/OpelParser.java b/src/main/java/pl/allegro/tech/opel/OpelParser.java index 7894ca6..991e5e9 100644 --- a/src/main/java/pl/allegro/tech/opel/OpelParser.java +++ b/src/main/java/pl/allegro/tech/opel/OpelParser.java @@ -369,17 +369,4 @@ protected OpelNode namedValueNode(OpelNode valueIdentifierNode) { } return nodeFactory.namedValueNode(valueIdentifierNode); } - - // JDK16+ required fix for parboiled bug - public static Class findLoadedClass(String className) throws IllegalAccessException { - try { - return MethodHandles.lookup().findClass(className); - } catch (ClassNotFoundException e) { - return null; - } - } - - public static Class loadClass(byte[] code) throws IllegalAccessException { - return MethodHandles.lookup().defineClass(code); - } }