[rfc] more benevolent java version check
Jonathan Gibbons
jonathan.gibbons at oracle.com
Sat Jul 30 01:38:51 UTC 2016
https://bugs.openjdk.java.net/browse/CODETOOLS-7901750
now fixed.
On 07/27/2016 11:28 AM, Jiri Vanek wrote:
> 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.
More information about the jtreg-dev
mailing list