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

Fix version returning null when running on Java 9 #155

Merged
merged 1 commit into from
Feb 15, 2018

Conversation

ifrins
Copy link
Contributor

@ifrins ifrins commented Feb 15, 2018

A bug in JDK-9 (JDK-8190987) caused Package.getImplementationVersion() to return null. This commits adds code to read the Manifest file from the JAR to get the Implementation Version when it's not possible to retrieve the version through the normal way.

This PR contributes to #152

A bug in JDK-9 [JDK-8190987](https://bugs.openjdk.java.net/browse/JDK-8190987) caused `Package.getImplementationVersion()` to return null. This commits adds code to read the Manifest file from the JAR to get the Implementation Version when it's not possible to retreive the version through the normal way.
@shyiko
Copy link
Collaborator

shyiko commented Feb 15, 2018

Thank you, @ifrins! 👍 Merging in.

@shyiko shyiko merged commit 5dfef61 into pinterest:master Feb 15, 2018
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.

2 participants