RFR: 8304914: Use OperatingSystem, Architecture, and Version in jpackage [v4]

Roger Riggs rriggs at openjdk.org
Fri May 19 15:08:04 UTC 2023


> Refactor the Platform class in jdk.jpackage to use the internal OperatingSystem, Architecture, and Version classes.
> The OperatingSystem.isXXX() and Architecture.isYYY() methods replace comparisons in the Platform class.
> The checks of the os.version are replaced but may not be needed if OpenJDK no longer supports them.
> 
> It is recommended to remove os version checks that apply only to Mac versions before 10.15.
> Mac OS X 10.15 is the oldest version supported.

Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:

  Revert "The OperatingSystem enum treats AIX separately from Linux."  AIX is NOT an alias for Linux.
  This reverts commit 802456d52a3c85a2abd8830ea80147b212d2a5b0.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13586/files
  - new: https://git.openjdk.org/jdk/pull/13586/files/64ab7126..d40a07d6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13586&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13586&range=02-03

  Stats: 10 lines in 8 files changed: 0 ins; 3 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/13586.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13586/head:pull/13586

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


More information about the core-libs-dev mailing list