Certain Java installs fail version check

Description

This was reported by a user who could not start a server

Here is the version of Java the user has installed

The "-ea" seems to be messing up the semver comparison done by the com.vdurmont.semver4j.Semver library

Activity

Show:
Brad Wood
November 23, 2020, 7:50 PM

Can you find out how to reproduce this, and then check if the latest version of the semver lib fixes it?

Miguel Mathus
December 14, 2020, 4:47 PM

Hello Brad, I did update the semver, and did several test, but I think the behavior is correct, since the early access is lower than the stable version,

If I try with a version like 1.8.1-ea, I got a true comparition, I think for this case we should allow the Early Access build removing the “-ea“ from the minimum version allowed.

so if the minimum is 1.8.0, 1.8.0-ea, will be allowed, I got a branch for this

Miguel Mathus
December 14, 2020, 5:27 PM

Assignee

Miguel Mathus

Reporter

Brad Wood

Labels

None

Affects versions

None

Fix versions

None

Priority

Major
Configure