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
This commit is contained in:
committed by
Bryce McKinlay
parent
b5f1747c30
commit
595420bfea
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user