[rfc] more benevolent java version check

Jiri Vanek jvanek at redhat.com
Sat Jul 30 12:35:45 UTC 2016


On 07/30/2016 03:38 AM, Jonathan Gibbons wrote:
> https://bugs.openjdk.java.net/browse/CODETOOLS-7901750
>
> now fixed.


That was quick :)
  TYVM!
   J.

>
> 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