diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-04 18:44:53 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-04 18:44:53 +0000 |
commit | ecc74eeaa9039b5cca365292229f95e4ff0df24b (patch) | |
tree | 53c5cc5b6cfb9186e5f76d34fc5fec1124c7e943 /libjava/prims.cc | |
parent | bbfdda8b30845a74660e87202c4bcc24e4c25e2f (diff) | |
download | linaro-gcc-ecc74eeaa9039b5cca365292229f95e4ff0df24b.tar.gz linaro-gcc-ecc74eeaa9039b5cca365292229f95e4ff0df24b.tar.bz2 linaro-gcc-ecc74eeaa9039b5cca365292229f95e4ff0df24b.zip |
2006-05-04 Andrew Haley <aph@redhat.com>
* class.c (make_field_value): Always build_address_of fdecl if
there is an initializer.
2006-05-03 Andrew Haley <aph@redhat.com>
PR libgcj/27352
* expr.c (maybe_rewrite_invocation): New function.
(rewrite_arglist_getclass): Likewise.
(rules): New.
(expand_invoke): Call maybe_rewrite_invocation.
* parse.y (patch_invoke): Likewise.
* java-tree.h: (maybe_rewrite_invocation): New function.
2006-05-03 Andrew Haley <aph@redhat.com>
PR libgcj/27352
* java/lang/Class.java (getClassLoader(Class)): New.
forName(String, Class): New.
* java/lang/natClass.cc (getClassLoader(Class)): New.
2006-05-02 Andrew Haley <aph@redhat.com>
* prims.cc (_Jv_NewMultiArray): Check for phantom class.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r-- | libjava/prims.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc index 5e016c94c78..e0cdc0ae585 100644 --- a/libjava/prims.cc +++ b/libjava/prims.cc @@ -762,6 +762,11 @@ _Jv_NewMultiArray (jclass type, jint dimensions, jint *sizes) jobject _Jv_NewMultiArray (jclass array_type, jint dimensions, ...) { + // Creating an array of an unresolved type is impossible. So we throw + // the NoClassDefFoundError. + if (_Jv_IsPhantomClass(array_type)) + throw new java::lang::NoClassDefFoundError(array_type->getName()); + va_list args; jint sizes[dimensions]; va_start (args, dimensions); |