aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-04-27 23:13:31 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-04-27 23:13:31 +0000
commit40f4ae3280413b4b7f15093b4e983a6588945367 (patch)
treea3f0341510abbe2d0ab09a84e4642d2e8f8a9400 /libjava
parent739fb04929e87db9a40f9e1395cc776b6c37a6e2 (diff)
downloadgcc-40f4ae3280413b4b7f15093b4e983a6588945367.zip
gcc-40f4ae3280413b4b7f15093b4e983a6588945367.tar.gz
gcc-40f4ae3280413b4b7f15093b4e983a6588945367.tar.bz2
Runtime support for PR gcj/2:
* prims.cc (_Jv_ThrowNullPointerException): New function. * include/jvm.h (_Jv_ThrowNullPointerException): Declare. From-SVN: r33492
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/include/jvm.h1
-rw-r--r--libjava/prims.cc6
3 files changed, 13 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 69c44f8..e5065fa 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,9 @@
+2000-04-05 Tom Tromey <tromey@cygnus.com>
+
+ Runtime support for PR gcj/2:
+ * prims.cc (_Jv_ThrowNullPointerException): New function.
+ * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
+
2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
* prims.cc (_Jv_NewObjectArray): Fix typo.
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index 8660443..57f449b 100644
--- a/libjava/include/jvm.h
+++ b/libjava/include/jvm.h
@@ -186,6 +186,7 @@ _Jv_GetArrayElementFromElementType (jobject array,
}
extern "C" void _Jv_ThrowBadArrayIndex (jint bad_index);
+extern "C" void _Jv_ThrowNullPointerException (void);
extern "C" jobject _Jv_NewArray (jint type, jint size)
__attribute__((__malloc__));
extern "C" jobject _Jv_NewMultiArray (jclass klass, jint dims, ...)
diff --git a/libjava/prims.cc b/libjava/prims.cc
index c632c63..606aeab 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -303,6 +303,12 @@ _Jv_ThrowBadArrayIndex(jint bad_index)
(java::lang::String::valueOf(bad_index)));
}
+void
+_Jv_ThrowNullPointerException ()
+{
+ throw new java::lang::NullPointerException ();
+}
+
// Allocate some unscanned memory and throw an exception if no memory.
void *
_Jv_AllocBytesChecked (jsize size)