[rfc] more benevolent java version check

Jiri Vanek jvanek at redhat.com
Wed Jul 27 18:28:36 UTC 2016


Hello!

Please accept attached patch which is making java version check for other vm more bullet proof.

Originally, the java version was strictly expecting the searched item on first line.
However, when eg $JAVA_TOOL_OPTIONS is used, the output of forked process got messy. EG:

java -version
Picked up JAVA_TOOL_OPTIONS: -XX:+UseShenandoahGC
OpenJDK 64-Bit Server VM warning: Compressed Oops not supported with ShenandoahGC
....

My patch is making the usage of JAVA_TOOL_OPTIONS possible, as it is searching the output of forked 
process by key.


Tahnx!

  J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: benevolent_java_version.patch
Type: text/x-patch
Size: 1199 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/jtreg-dev/attachments/20160727/97c5b328/benevolent_java_version.patch>


More information about the jtreg-dev mailing list