Uploaded image for project: 'Yetus'
  1. Yetus
  2. YETUS-943

Test patch fails to extract version information from a JDK11 jvm

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.11.1
    • 0.12.0
    • Precommit
    • None
    • Hide
      <!-- markdown -->
      This patch alters `report_jvm_version` to extract JVM vendor and version information from Java system properties. It now returns a string that is the concatenation of verdor and runtime versions.
      Show
      <!-- markdown --> This patch alters `report_jvm_version` to extract JVM vendor and version information from Java system properties. It now returns a string that is the concatenation of verdor and runtime versions.

    Description

      Trying to use pre-commit with AdoptOpenJDK11 in the test matrix, the logic for extracting the version information is incorrect.

      For JDK8, the output is

      root@ab2cb99dbf34:/# /usr/lib/jvm/jdk8u232-b09/bin/java -version
      openjdk version "1.8.0_232"
      OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
      OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)
      

      which Yetus parses as "1.8.0_232".

      For JDK11, it's

      root@ab2cb99dbf34:/# /usr/lib/jvm/jdk-11.0.6+10/bin/java -version
      openjdk version "11.0.6" 2020-01-14
      OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10)
      OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)
      

      which Yetus parses as "2020-01-14".

      Attachments

        Issue Links

          Activity

            People

              ndimiduk Nick Dimiduk
              ndimiduk Nick Dimiduk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 7h 50m
                  7h 50m