RFR: 8350041: Make libstringPlatformChars support static JDK

Alan Bateman alanb at openjdk.org
Tue Feb 18 19:23:44 UTC 2025


On Fri, 14 Feb 2025 18:31:52 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

> Please review the fix to make `java/lang/String/nativeEncoding/StringPlatformChars.java` jtreg test: 
> 
> - Lookup `JNU_GetStringPlatformChars`, `JNU_ClassString` and `JNU_NewStringPlatform` dynamically
> - Remove `#include "jni_util.h"` and don't link `libstringPlatformChars.so` with `libjava.so`
> - Link with `-ldl` explicitly
> 
> The test passed on Linux, macos and Windows in GHA testing, https://github.com/jianglizhou/jdk/actions/runs/13320840902/job/37206171224

I don't object to changing this test but it might be simpler to just skip this test, once we can use `@requires !jdk.static`.

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

PR Comment: https://git.openjdk.org/jdk/pull/23646#issuecomment-2666321144


More information about the build-dev mailing list