Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

fix java version detect #1017

Closed
wants to merge 2 commits into from
Closed

fix java version detect #1017

wants to merge 2 commits into from

Conversation

intellild
Copy link

@intellild intellild commented Oct 16, 2017

@rosen-vladimirov
Copy link
Collaborator

Hey @intellild ,
First of all, thank you for your efforts and please excuse us for the late reply.
You are correct that with Java 9, the version is printed on stdout. However, in JAVA 8, the javac -version is printed on the stderr. That's why the current code is reading the version from stderr.
Your fix will work for Java 9, but it will fail when Java 8 is used. That's why the unit tests are failing on this PR.
I've investigated the code and in fact we are not using the Java version detection - we care about Java Compiler version. So I've created a PR to remove the Java version detection and also fix the detection of Java Compiler version. You can take a look at the PR here.
So I'm closing this PR in favor of the other one.

Thanks again for your contribution - it allowed us to easily determine the issue with Java version detection and find the appropriate fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants