changeset 10842:b64fb9d83655

8041529: Better parameterization of parameter lists Reviewed-by: twisti, ahgross
author kizune
date Thu, 08 May 2014 21:09:57 +0400
parents c00459402cd6
children 0f023dd9a5a6
files src/java.base/share/classes/java/lang/invoke/MethodType.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/invoke/MethodType.java	Wed Apr 23 09:06:22 2014 -1000
+++ b/src/java.base/share/classes/java/lang/invoke/MethodType.java	Thu May 08 21:09:57 2014 +0400
@@ -727,7 +727,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() {