-
-
Notifications
You must be signed in to change notification settings - Fork 652
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 reports SNAPSHOT
on module-path
#770
Labels
Comments
sormuras
added a commit
to sormuras/lwjgl3
that referenced
this issue
Jun 13, 2022
Related to #644 - so, the new implementation proposed in needs to be checked, whether it works in a native image as well. |
Spasi
pushed a commit
to sormuras/lwjgl3
that referenced
this issue
Aug 24, 2022
- Package::getImplementationVersion is unspecified when loading a JAR file from the module path. The new multi-release code uses the module descriptor to retrieve the implementation version. - Restored code that retrieves the implementation version from the JAR manifest, as a fallback. Also added the suggested fix from LWJGL#644, when running on a GraalVM native image. - Changed the LWJGL version string to match the Java version format. Close LWJGL#770 Co-authored-by: Leon Linhart <[email protected]>
Spasi
pushed a commit
to sormuras/lwjgl3
that referenced
this issue
Aug 24, 2022
- Package::getImplementationVersion is unspecified when loading a JAR file from the module path. The new multi-release code uses the module descriptor to retrieve the implementation version. - Restored code that retrieves the implementation version from the JAR manifest, as a fallback. Also added the suggested fix from LWJGL#644, when running on a GraalVM native image. - Changed the LWJGL version string to match the Java version format. Close LWJGL#770 Co-authored-by: Leon Linhart <[email protected]>
Spasi
pushed a commit
that referenced
this issue
Aug 24, 2022
- Package::getImplementationVersion is unspecified when loading a JAR file from the module path. The new multi-release code uses the module descriptor to retrieve the implementation version. - Restored code that retrieves the implementation version from the JAR manifest, as a fallback. Also added the suggested fix from #644, when running on a GraalVM native image. - Changed the LWJGL version string to match the Java version format. Close #770 Co-authored-by: Leon Linhart <[email protected]>
Thank you @sormuras! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
3.3.1
Platform
Linux x64, Linux arm64, Linux arm32, macOS x64, macOS arm64, Windows x64, Windows x86, Windows arm64
JDK
JDK 9+
Module
LWJGL Core
Bug description
Actual
java --module-path lib --add-modules org.lwjgl org.lwjgl.Version
Expected
java --class-path lib/org.lwjgl.jar org.lwjgl.Version
This is due to the following specification in java.lang.Package
Therefore
Version.class.getPackage().getImplementationVersion()
as used here returnsnull
.Notes
Note that the compiled module descriptors do contain the correct version information.
java --module-path lib --list-modules
The text was updated successfully, but these errors were encountered: