+2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
+
+ * 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.
+
2001-03-21 Tom Tromey <tromey@redhat.com>
* configure: Rebuilt.
// Constructor.java - Represents a constructor for a class.
-/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
This file is part of libgcj.
public Class[] getExceptionTypes ()
{
+ if (exception_types == null)
+ getType();
return (Class[]) exception_types.clone();
}
// Method.java - Represent method of class or interface.
-/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
This file is part of libgcj.
public Class[] getExceptionTypes ()
{
+ if (exception_types == null)
+ getType();
return (Class[]) exception_types.clone();
}
declaringClass,
¶meter_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