< prev index next >
test/gc/shenandoah/jni/TestCriticalNativeArgs.java
Print this page
rev 10790 : [backport] Prefix Shenandoah tests with "Test"
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2018, Red Hat, Inc. and/or its affiliates.
+ * Copyright (c) 2018, Red Hat, Inc. All rights reserved.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
@@ -19,19 +19,17 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
-public class CriticalNativeArgs {
+public class TestCriticalNativeArgs {
static {
- System.loadLibrary("CriticalNative");
+ System.loadLibrary("TestCriticalNative");
}
-
static native boolean isNull(int[] a);
-
public static void main(String[] args) {
int[] arr = new int[2];
if (isNull(arr)) {
throw new RuntimeException("Should not be null");
@@ -40,6 +38,5 @@
if (!isNull(null)) {
throw new RuntimeException("Should be null");
}
}
}
-
< prev index next >