Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901750

more benevolent java version check

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • jtreg4.2
    • None
    • tools
    • None
    • b04



      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.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: