RFR: 8287917: System.loadLibrary does not work on Big Sur if JDK is built with macOS SDK 10.15 and earlier
Yoshiki Sato
ysatowse at openjdk.java.net
Tue Jun 14 05:43:01 UTC 2022
On Fri, 10 Jun 2022 17:51:37 GMT, Mandy Chung <mchung at openjdk.org> wrote:
>> Please review this PR.
>> SDK 10.15 and earlier reports os.version as 10.16 on Big Sur. This fix will check if dynamic linker support, which is supported from Big Sur, is available or not on the OS even if os.version is reported as 10.16 instead of 11. The os.version 10.16 doesn't include the update version like y of 10.x.y. Hence the change only see if it is 10.16 or not.
>
> test/jdk/java/lang/RuntimeTests/loadLibrary/exeLibraryCache/LibraryFromCache.java line 45:
>
>> 43: public class LibraryFromCache {
>> 44: public static void main(String[] args) throws IOException {
>> 45: System.out.println("os.version = " + System.getProperty("os.version"));
>
> The copyright end year needs to be updated.
Thanks for catching.
-------------
PR: https://git.openjdk.org/jdk/pull/9077
More information about the core-libs-dev
mailing list