Decouple the jdk.internal.util OperatingSystem and Version classes to simplify 
class loading and avoid an indirect cyclic initialization.

Move the method to get the current OS version from OperatingSystem to the 
Version class and its initialization.
Revert to using String.toUpperCase() instead of custom code to uppercase.

Update the uses of OperatingSystem.version to be Version.current.

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

Commit messages:
 - 8308960: Decouple internal Version and OperatingSystem classes

Changes: https://git.openjdk.org/jdk/pull/14181/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14181&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8308960
  Stats: 58 lines in 4 files changed: 24 ins; 29 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/14181.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14181/head:pull/14181

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

Reply via email to