JDK-8048626 : JNI call made without checking exceptions when required to from GetStringUTFRegion
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2014-06-28
  • Updated: 2014-06-28
  • Resolved: 2014-06-28
Related Reports
Duplicate :  
Description
A simplest hello.java program prints a lot of JNI warnings during bootstrap when run with -Xcheck:jni. This started happening this week.

cat hello.java 
public class hello {
  public static void main(String[] args) {
    System.out.println("hello");
  }
}

java -Xcheck:jni hello

JNI warnings printed on console are attached.

java -version
openjdk version "1.9.0-internal"
OpenJDK Runtime Environment (build 1.9.0-internal-akhil_2014_06_27_09_52-b00)
OpenJDK 64-Bit Server VM (build 1.9.0-internal-akhil_2014_06_27_09_52-b00, mixed mode)

Comments
Since removed the pedantic warnings for ArrayIndexOfOutBounds related functions. RFR for JDK-8046668 out on runtime ML
28-06-2014

David - is this related to JDK-8046662?
28-06-2014