Skip to content

fixed #587: invalid version "17.0.21.0.3" when checking JVM version - #588

Merged
missedone merged 1 commit into
masterfrom
fix/587-java-version-parsing
Nov 21, 2026
Merged

missedone merged 1 commit into
masterfrom
fix/587-java-version-parsing

Conversation

@missedone

Copy link
Copy Markdown
Collaborator

Fixes #587

TestNGLaunchConfigurationDelegate.launch() passed the JVM version straight to org.osgi.framework.Version, which accepts only major.minor.micro[.qualifier]. JEP 223 allows more numeric elements (e.g. 17.0.21.0.3, 25.0.5.0.3 on Ubuntu OpenJDK), causing IllegalArgumentException: invalid qualifier "0.3".

Note: tests were not run locally (Tycho build could not load the p2 repository due to a certificate error); the version regex was verified standalone.

Parse only the leading major.minor.micro of the JVM version, since JEP 223
allows extra numeric elements that are not valid OSGi version syntax.
@missedone
missedone merged commit bacb347 into master Nov 21, 2026
1 check passed
@missedone
missedone deleted the fix/587-java-version-parsing branch November 21, 2026 00:48
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

Successfully merging this pull request may close these issues.

Specific Java Version causes Crash in Version Check

1 participant