Skip to content

Commit

Permalink
parboiled-java update (#48)
Browse files Browse the repository at this point in the history
* parboiled-java update

* gradle update

* Update build.gradle.kts
  • Loading branch information
bgalek authored Mar 11, 2022
1 parent cd16056 commit bee44e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
13 changes: 0 additions & 13 deletions src/main/java/pl/allegro/tech/opel/OpelParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit bee44e3

Please sign in to comment.