On Fri, 5 May 2023 13:59:37 GMT, Roger Riggs <rri...@openjdk.org> wrote:
>> Refactor the Platform class of jlink to use jdk.internal.util >> OperatingSystem and Architecture instead of os.name and os.arch. >> They are direct replacements for the Platform enums except for UNKNOWN; its >> use is refactored to report errors via exceptions. >> >> Neither os.name nor os.arch should be assumed to be changeable; >> one test case is removed because it assumes os.name can be changed on the >> command line. > > Roger Riggs has updated the pull request incrementally with one additional > commit since the last revision: > > Source code cleanup suggested by reviewers src/jdk.jlink/share/classes/jdk/tools/jlink/internal/Platform.java line 64: > 62: */ > 63: public boolean is64Bit() { > 64: return Architecture.is64bit(); `Platform::is64Bit` tests if the target architecture is 64-bit but `Architecture.is64bit()` tests the runtime architecture. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13585#discussion_r1186816949