Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version number 11-ea doesn't parse #1316

Closed
cayhorstmann opened this issue May 10, 2018 · 1 comment
Closed

Version number 11-ea doesn't parse #1316

cayhorstmann opened this issue May 10, 2018 · 1 comment

Comments

@cayhorstmann
Copy link

An easy fix is to add a hyphen to the split regex:

String[] parts = System.getProperty("java.version").split("[._-]");

@Marcono1234
Copy link
Collaborator

Was probably fixed by #1311. JavaVersion.getMajorJavaVersion("11-ea") returns 11.

@eamonnmcmanus eamonnmcmanus closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants