changeset 7540:0e9223dd4775

8041529: Better parameterization of parameter lists Reviewed-by: twisti, ahgross
author igerasim
date Mon, 12 May 2014 15:07:32 +0400
parents 460c1277644d
children 78fd07d646e8
files src/share/classes/java/lang/invoke/MethodType.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/invoke/MethodType.java	Fri May 09 09:18:51 2014 -0700
+++ b/src/share/classes/java/lang/invoke/MethodType.java	Mon May 12 15:07:32 2014 +0400
@@ -628,7 +628,7 @@
      * @return the parameter types (as an immutable list)
      */
     public List<Class<?>> parameterList() {
-        return Collections.unmodifiableList(Arrays.asList(ptypes));
+        return Collections.unmodifiableList(Arrays.asList(ptypes.clone()));
     }
 
     /*non-public*/ Class<?> lastParameterType() {