From 595420bfea88f5c0117e887cf70345a61f26e893 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Thu, 22 Mar 2001 06:37:16 +0000 Subject: 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 --- libjava/java/lang/reflect/Method.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libjava/java/lang/reflect/Method.java') diff --git a/libjava/java/lang/reflect/Method.java b/libjava/java/lang/reflect/Method.java index 119a56f2141..e616670e587 100644 --- a/libjava/java/lang/reflect/Method.java +++ b/libjava/java/lang/reflect/Method.java @@ -1,6 +1,6 @@ // 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. @@ -39,6 +39,8 @@ public final class Method extends AccessibleObject implements Member public Class[] getExceptionTypes () { + if (exception_types == null) + getType(); return (Class[]) exception_types.clone(); } -- cgit v1.2.3