aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/reflect/natConstructor.cc
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2001-03-22 06:37:16 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2001-03-22 06:37:16 +0000
commit595420bfea88f5c0117e887cf70345a61f26e893 (patch)
tree08734c6e8a2c1015192562c9270d8e20edcdca96 /libjava/java/lang/reflect/natConstructor.cc
parentb5f1747c3003fa07e3564daeaa267c2da7454f67 (diff)
downloadgcc-595420bfea88f5c0117e887cf70345a61f26e893.zip
gcc-595420bfea88f5c0117e887cf70345a61f26e893.tar.gz
gcc-595420bfea88f5c0117e887cf70345a61f26e893.tar.bz2
Method.java (getExceptionTypes): Call getType() to initialize if exception_types is null.
* java/lang/reflect/Method.java (getExceptionTypes): Call getType() to initialize if exception_types is null. * java/lang/reflect/Constructor.java: Likewise. * java/lang/reflect/natConstructor.cc (getType): Initialize exception_types to an empty Object array. From-SVN: r40730
Diffstat (limited to 'libjava/java/lang/reflect/natConstructor.cc')
-rw-r--r--libjava/java/lang/reflect/natConstructor.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/java/lang/reflect/natConstructor.cc b/libjava/java/lang/reflect/natConstructor.cc
index a8da794..2209ad9 100644
--- a/libjava/java/lang/reflect/natConstructor.cc
+++ b/libjava/java/lang/reflect/natConstructor.cc
@@ -34,6 +34,10 @@ java::lang::reflect::Constructor::getType ()
declaringClass,
&parameter_types,
NULL);
+
+ // FIXME: for now we have no way to get exception information.
+ exception_types =
+ (JArray<jclass> *) JvNewObjectArray (0, &java::lang::Class::class$, NULL);
}
jobject