You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Allen Wittenauer (Jira)" <ji...@apache.org> on 2020/04/13 23:14:00 UTC

[jira] [Updated] (YETUS-943) Test patch fails to extract version information from a JDK11 jvm

     [ https://issues.apache.org/jira/browse/YETUS-943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allen Wittenauer updated YETUS-943:
-----------------------------------
    Release Note: 
<!-- 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.

  was: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.


> Test patch fails to extract version information from a JDK11 jvm
> ----------------------------------------------------------------
>
>                 Key: YETUS-943
>                 URL: https://issues.apache.org/jira/browse/YETUS-943
>             Project: Yetus
>          Issue Type: Bug
>          Components: Precommit
>    Affects Versions: 0.11.1
>            Reporter: Nick Dimiduk
>            Assignee: Nick Dimiduk
>            Priority: Minor
>             Fix For: 0.12.0
>
>          Time Spent: 7h 50m
>  Remaining Estimate: 0h
>
> 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
> {noformat}
> 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)
> {noformat}
> which Yetus parses as "1.8.0_232".
> For JDK11, it's
> {noformat}
> 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)
> {noformat}
> which Yetus parses as "2020-01-14".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)