JDK-8214906 : [TESTBUG] jfr/event/sampling/TestNative.java fails with UnsatisfiedLinkError
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-12-05
  • Updated: 2020-04-27
  • Resolved: 2018-12-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12 Other
12 b24Fixed openjdk8u262Fixed
Related Reports
Relates :  
Description
Failure: java.lang.UnsatisfiedLinkError: jdk.jfr.event.sampling.TestNative.longTime()V
Solution: need to rename the native method to reflect the new package path.
Comments
Replacing jdk8u-fix-request with link to JDK-8239140
17-02-2020

RFC: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-January/011063.html
30-01-2020

======== The proposed fix is rather simple: --- a/test/jdk/jdk/jfr/event/sampling/libTestNative.c +++ b/test/jdk/jdk/jfr/event/sampling/libTestNative.c @@ -30,7 +30,7 @@ #include <unistd.h> #endif -JNIEXPORT void JNICALL Java_com_oracle_jfr_event_sampling_TestNative_longTime +JNIEXPORT void JNICALL Java_jdk_jfr_event_sampling_TestNative_longTime ========= Testing Locally (Linux-x64): - ran via 'jtreg -nativepath: " commands - PASS - ran via "make test": PASS Lab: - ran automatically on multiple platforms - PASS
05-12-2018