diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-24 12:19:42 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-24 12:19:42 +0000 |
commit | 101c7b073d5eef5db26a89b9dbe3722c92309e59 (patch) | |
tree | 729b8f856369680c08ca2aeda398277d212dfe4e /libjava/jni.cc | |
parent | 7d8ca8b7ad7202c662ef55779e9db73f3144e3d6 (diff) | |
download | gcc-101c7b073d5eef5db26a89b9dbe3722c92309e59.tar.gz |
2004-11-24 Michael Koch <konqueror@gmx.de>
* java/nio/DirectByteBufferImpl.java
(ReadWrite.ReadWrite): New constructor.
(DirectByteBufferImpl): Likewise.
* jni.cc (_Jv_JNI_NewDirectByteBuffer):
Use DirectByteBufferImpl.ReadWrite.
* Makefile.am:
Generate java/nio/DirectByteBufferImpl$ReadWrite.h.
* Makefile.in: Rgenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index 6d8fd9db321..6bfc4812d96 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -42,6 +42,7 @@ details. */ #include <java/lang/Thread.h> #include <java/lang/IllegalAccessError.h> #include <java/nio/DirectByteBufferImpl.h> +#include <java/nio/DirectByteBufferImpl$ReadWrite.h> #include <java/util/IdentityHashMap.h> #include <gnu/gcj/RawData.h> @@ -1723,8 +1724,8 @@ _Jv_JNI_NewDirectByteBuffer (JNIEnv *, void *address, jlong length) { using namespace gnu::gcj; using namespace java::nio; - return new DirectByteBufferImpl (reinterpret_cast<RawData *> (address), - length); + return new DirectByteBufferImpl$ReadWrite + (reinterpret_cast<RawData *> (address), length); } static void * JNICALL |