JDK-8025979 : [TESTBUG] Write test to exercise uninitialized strings from JNI code
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs25
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-10-05
  • Updated: 2015-06-04
  • Resolved: 2015-05-14
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 9
9 b67Fixed
Related Reports
Blocks :  
Description
When JDK-8025922 was fixed, no regression test was added for that issue since jtreg does not support native code. But by using -XX:+ExecuteInternalVMTests it is possible to write a JNI test inside the JVM.
Comments
verified in jprt
24-04-2015

http://cr.openjdk.java.net/~stsmirno/8025979/webrev.01/
24-04-2015

Attaching my test for future reference.
08-10-2013

-Xcheck:jni does not help in this case.
08-10-2013

There are JNI tests in the VM/NSK testsuite. That would be a good place to land a JNI test.
07-10-2013

We need easier ways to write JNI regression tests but putting them in the VM is not the right thing to do in my opinion. Plus this kind of test should really be in the real JNI test suites - JCK?
07-10-2013