Skip to content

Commit

Permalink
Support 21-ea as value for java.version in JavaParser (#3242)
Browse files Browse the repository at this point in the history
For #3170
  • Loading branch information
timtebeek authored May 13, 2023
1 parent 139514e commit 35acf34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static List<Path> dependenciesFromResources(ExecutionContext ctx, String... arti
*/
static JavaParser.Builder<? extends JavaParser, ?> fromJavaVersion() {
JavaParser.Builder<? extends JavaParser, ?> javaParser;
String[] versionParts = System.getProperty("java.version").split("\\.");
String[] versionParts = System.getProperty("java.version").split("[.-]");
int version = Integer.parseInt(versionParts[0]);
if (version == 1) {
version = 8;
Expand Down

0 comments on commit 35acf34

Please sign in to comment.