Integrated: 8308960: Decouple internal Version and OperatingSystem classes

Roger Riggs rriggs at openjdk.org
Tue May 30 17:10:11 UTC 2023


On Fri, 26 May 2023 14:57:21 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 323d6ced
Author:    Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/323d6ceda65910abff15e3358435533977519234
Stats:     310 lines in 6 files changed: 137 ins; 143 del; 30 mod

8308960: Decouple internal Version and OperatingSystem classes

Reviewed-by: mchung

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

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


More information about the core-libs-dev mailing list