RFR: 8306678 os version

Roger Riggs rriggs at openjdk.org
Fri Apr 21 16:50:48 UTC 2023


Create an internal Version record to hold and compare versions of the form (major, minor, micro).
Add `OperatingSystem.version()` to return the version of the running OS.
Replace uses of os.version in java.base.
Subsequent PRs will apply to uses in other modules including, jdk.jlink, jdk.jpackage, and java.desktop.

-------------

Depends on: https://git.openjdk.org/jdk/pull/13357

Commit messages:
 - Simplify exception handling
 - Simplify version parsing
 - 8306678: Replace use of os.version with an internal Version record

Changes: https://git.openjdk.org/jdk/pull/13584/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13584&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8306678
  Stats: 306 lines in 7 files changed: 277 ins; 22 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/13584.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13584/head:pull/13584

PR: https://git.openjdk.org/jdk/pull/13584


More information about the nio-dev mailing list