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 Java Version Parsing #144

Merged
merged 1 commit into from
Apr 28, 2019
Merged

Conversation

ThadHouse
Copy link
Contributor

The Java Version Parsing did not work for OpenJDK 11. Updated to do exactly the parsing the redhat java extension does.

Also updates package-lock.json, because my npm install did that and they should match.

Closes #143

The Java Version Parsing did not work for OpenJDK 11. Updated to do exactly the parsing the redhat java extension does.

Also updates package-lock.json, because my npm install did that and they should match
@ThadHouse
Copy link
Contributor Author

The code is taken from https://github.com/Microsoft/vscode-java-debug/blob/7abda575111e9ce2221ad9420330e7764ccee729/src/launchCommand.ts which is MIT licensed so no license issue. The redhat version is very slightly different, but under the eclipse license, which might be an issue.

@ThadHouse
Copy link
Contributor Author

Either this or #145 will fix JDK parsing. Which one the owners would prefer is up to them, I will close the not merged one.

Copy link
Member

@akaroml akaroml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the change with openjdk 12 and the code worked fine.

@akaroml akaroml merged commit b5b3965 into microsoft:master Apr 28, 2019
@akaroml
Copy link
Member

akaroml commented Apr 28, 2019

Thank you for your contribution. @ThadHouse

@Fredholm
Copy link

doesn't work with

openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)

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.

Java Development Kit Required webview always showing
3 participants