Skip to content

Conversation

@bmarwell
Copy link

No description provided.

@rfscholte
Copy link
Member

This is similar to the -SNAPSHOT discussion. According to

@Test
public void testJEP223Short() {
// http://openjdk.java.net/jeps/223
assertTrue( JavaVersion.parse( "9-ea" ).compareTo( JavaVersion.parse( "9" ) ) < 0 );
9-ea is before 9.
Most likely you're not testing the java version, but the implementation version, in which case you should use https://codehaus-plexus.github.io/plexus-languages/plexus-java/apidocs/org/codehaus/plexus/languages/java/version/JavaVersion.html#JAVA_SPECIFICATION_VERSION

@bmarwell
Copy link
Author

Alright, makes sense! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants