< prev index next > test/hotspot/jtreg/native_sanity/JniVersion.java
Print this page
* @test
* @run main/native JniVersion
*/
public class JniVersion {
- public static final int JNI_VERSION_20 = 0x00140000;
+ public static final int JNI_VERSION_21 = 0x00150000;
public static void main(String... args) throws Exception {
System.loadLibrary("JniVersion");
int res = getJniVersion();
- if (res != JNI_VERSION_20) {
+ if (res != JNI_VERSION_21) {
throw new Exception("Unexpected value returned from getJniVersion(): 0x" + Integer.toHexString(res));
}
}
static native int getJniVersion();
< prev index next >