Open
Description
Describe GraalVM and your environment :
- GraalVM version or commit id if built from source: 20.0.2
- CE or EE: CE
- JDK version: JDK20
- OS and OS Version: macOS 13.5.2
- Architecture: aarch64
- The output of
java -Xinternalversion
:
Java HotSpot(TM) 64-Bit Server VM (20.0.2+9-jvmci-23.0-b14) for bsd-aarch64 JRE (20.0.2+9-jvmci-23.0-b14), built on 2023-06-27T19:36:11Z by "graal" with clang Apple LLVM 12.0.0 (clang-1200.0.32.29)
Have you verified this issue still happens when using the latest snapshot?
Yes, still happening with graalvm-espresso-community-openjdk-21+35.1
Describe the issue
When running my project's selftest jar, I see the following error message in the output (twice)
[java] WARNING: Failed to link native method: EspressoMethod<Lorg/newsclub/net/unix/NativeUnixSocket;.noop()V>
The method in question is a JNI no-op (hence the name, "noop"):
JNIEXPORT void JNICALL Java_org_newsclub_net_unix_NativeUnixSocket_noop
(JNIEnv *env, jclass clazz) {
// no-op
return;
}
Code snippet or code repository that reproduces the issue
selftest from https://github.com/kohlschutter/junixsocket/
Steps to reproduce the issue
wget https://github.com/kohlschutter/junixsocket/releases/download/junixsocket-2.7.2/junixsocket-selftest-2.7.2-jar-with-dependencies.jar
java -truffle -jar junixsocket-selftest-2.7.2-jar-with-dependencies.jar
Expected behavior
A clear and concise description of what you expected to happen.
No "Failed to link native method" warning
Additional context
Other than the warning, the code seems to work as expected, but the warning line is unwarranted.