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
- contains
-
YETUS-13 The different JDKs which versions are the same aren't distiguished on multi-JDK mode
- Resolved
- relates to
-
HBASE-22972 [JDK11] Support JDK11 LTS in HBase
- Resolved
- links to