RFR: JDK-8319516 AIX System::loadLibrary needs support to load a shared library from an archive object [v17]
Martin Doerr
mdoerr at openjdk.org
Wed Apr 10 08:12:13 UTC 2024
On Tue, 9 Apr 2024 10:01:59 GMT, Suchismith Roy <sroy at openjdk.org> wrote:
>> test/jdk/java/lang/RuntimeTests/loadLibrary/aix/LoadAIXLibraryFromArchiveObject.java line 37:
>>
>>> 35: File awtSharedObjectPath = new File("/test/lib/libawt.so");
>>> 36: File awtArchivePath = new File("/test/lib/libawt.a");
>>> 37: awtSharedObjectPath.renameTo(awtArchivePath);
>>
>> This should work for this test. But, what if an AWT test gets executed after your test? I think copy is safer than renaming.
>
> Maybe i need to rename it back. If we just copy, it would take the .so itself, so we cant enforce it.
No, you would just need to change the name to maybe "libdummyarchive.a".
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17945#discussion_r1559030522
More information about the core-libs-dev
mailing list