diff options
author | Andrew Haley <aph@redhat.com> | 2016-09-30 16:24:48 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2016-09-30 16:24:48 +0000 |
commit | 07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch) | |
tree | 3f22b3241c513ad168c8353805614ae1249410f4 /libjava/testsuite/libjava.jni/directbuffer.java | |
parent | eae993948bae8b788c53772bcb9217c063716f93 (diff) | |
download | gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.zip gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.gz gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.bz2 |
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com>
* Makefile.def: Remove libjava.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.
* configure.ac: Likewise.
* configure: Likewise.
* gcc/java: Remove.
* libjava: Likewise.
From-SVN: r240662
Diffstat (limited to 'libjava/testsuite/libjava.jni/directbuffer.java')
-rw-r--r-- | libjava/testsuite/libjava.jni/directbuffer.java | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/libjava/testsuite/libjava.jni/directbuffer.java b/libjava/testsuite/libjava.jni/directbuffer.java deleted file mode 100644 index ee844b9..0000000 --- a/libjava/testsuite/libjava.jni/directbuffer.java +++ /dev/null @@ -1,40 +0,0 @@ -// Test to make sure JNI implementation catches exceptions. - -import java.nio.*; - -public class directbuffer -{ - static - { - System.loadLibrary("directbuffer"); - } - - public static native ByteBuffer createDirectByteBuffer(); - - public static native void testDirectByteBuffer(ByteBuffer bb, int len); - public static native void testCharBuffer(CharBuffer b, int len); - public static native void testDoubleBuffer(DoubleBuffer b, int len); - public static native void testFloatBuffer(FloatBuffer b, int len); - public static native void testIntBuffer(IntBuffer b, int len); - public static native void testLongBuffer(LongBuffer b, int len); - public static native void testShortBuffer(ShortBuffer b, int len); - - public static void main(String[] args) - { - ByteBuffer bb = createDirectByteBuffer(); - CharBuffer cb = bb.asCharBuffer(); - DoubleBuffer db = bb.asDoubleBuffer(); - FloatBuffer fb = bb.asFloatBuffer(); - IntBuffer ib = bb.asIntBuffer(); - LongBuffer lb = bb.asLongBuffer(); - ShortBuffer sb = bb.asShortBuffer(); - - testDirectByteBuffer(bb, 1024); - testCharBuffer(cb, 512); - testDoubleBuffer(db, 128); - testFloatBuffer(fb, 256); - testIntBuffer(ib, 256); - testLongBuffer(lb, 128); - testShortBuffer(sb, 512); - } -} |