changeset 9838:8a2c7d6e6b6c

8041529: Better parameterization of parameter lists Reviewed-by: twisti, ahgross
author kizune
date Wed, 14 May 2014 19:49:47 +0400
parents 9c8128ec5776
children c094b598f7ec
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	Wed May 14 15:32:30 2014 +0200
+++ b/src/share/classes/java/lang/invoke/MethodType.java	Wed May 14 19:49:47 2014 +0400
@@ -653,7 +653,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() {