spotify / missinglink

Build time tool for detecting link problems in java projects
Apache License 2.0
146 stars 27 forks source link

Can't handle Java 17-ea version #167

Closed klaraward closed 3 years ago

klaraward commented 3 years ago

Got this when running version 0.2.3 of this plugin with JDK 17-ea+25

Caused by: java.lang.NumberFormatException: For input string: "17-ea"
    at java.lang.NumberFormatException.forInputString (NumberFormatException.java:67)
    at java.lang.Integer.parseInt (Integer.java:668)
    at java.lang.Integer.parseInt (Integer.java:786)
    at com.spotify.missinglink.ArtifactLoader.getClassesForCurrentJavaVersion (ArtifactLoader.java:121)
    at com.spotify.missinglink.ArtifactLoader.loadFromJar (ArtifactLoader.java:143)
    at com.spotify.missinglink.ArtifactLoader.load (ArtifactLoader.java:78)
    at com.spotify.missinglink.maven.CheckMojo.lambda$mavenDepToArtifact$20 (CheckMojo.java:606)
    at com.spotify.missinglink.maven.CheckMojo.doArtifactLoad (CheckMojo.java:613)
    at com.spotify.missinglink.maven.CheckMojo.mavenDepToArtifact (CheckMojo.java:606)
mattnworb commented 3 years ago

@klaraward this is solved after https://github.com/spotify/missinglink/pull/168 right?

klaraward commented 3 years ago

Yes