mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-13 11:55:38 +00:00
8041529: Better parameterization of parameter lists
Reviewed-by: twisti, ahgross
This commit is contained in:
parent
5ce941b143
commit
6037f786bb
@ -727,7 +727,7 @@ class MethodType implements java.io.Serializable {
|
||||
* @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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user