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

Nick Dimiduk reassigned YETUS-943:
----------------------------------

    Assignee: Nick Dimiduk

> 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
>          Time Spent: 1h 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)

Reply via email to