diff options
Diffstat (limited to 'libjava/java/lang/reflect/Method.java')
| -rw-r--r-- | libjava/java/lang/reflect/Method.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libjava/java/lang/reflect/Method.java b/libjava/java/lang/reflect/Method.java index 6fa2956e40e..878210abbd2 100644 --- a/libjava/java/lang/reflect/Method.java +++ b/libjava/java/lang/reflect/Method.java @@ -153,6 +153,15 @@ public final class Method return (Class<?>[]) parameter_types.clone(); } + // Just like getParameterTypes, but don't clone the array. + // Package private for use by VMProxy. + final Class<?>[] internalGetParameterTypes () + { + if (parameter_types == null) + getType(); + return (Class<?>[]) parameter_types; + } + /** * Get the exception types this method says it throws, in no particular * order. If the method has no throws clause, returns a 0-length array @@ -167,6 +176,15 @@ public final class Method return (Class<?>[]) exception_types.clone(); } + // Just like getExceptionTypes, but don't clone the array. + // Package private for use by VMProxy. + final Class<?>[] internalGetExceptionTypes () + { + if (exception_types == null) + getType(); + return (Class<?>[]) exception_types; + } + /** * Compare two objects to see if they are semantically equivalent. * Two Methods are semantically equivalent if they have the same declaring |
