diff --git a/base/src/main/java/proguard/classfile/editor/AttributeAdder.java b/base/src/main/java/proguard/classfile/editor/AttributeAdder.java index cdcf36b90..bbe9303dd 100644 --- a/base/src/main/java/proguard/classfile/editor/AttributeAdder.java +++ b/base/src/main/java/proguard/classfile/editor/AttributeAdder.java @@ -509,7 +509,7 @@ public void visitRuntimeVisibleParameterAnnotationsAttribute( new RuntimeVisibleParameterAnnotationsAttribute( constantAdder.addConstant( clazz, runtimeVisibleParameterAnnotationsAttribute.u2attributeNameIndex), - 0, + runtimeVisibleParameterAnnotationsAttribute.u1parametersCount, new int[runtimeVisibleParameterAnnotationsAttribute.u1parametersCount], parameterAnnotations); @@ -538,7 +538,7 @@ public void visitRuntimeInvisibleParameterAnnotationsAttribute( new RuntimeInvisibleParameterAnnotationsAttribute( constantAdder.addConstant( clazz, runtimeInvisibleParameterAnnotationsAttribute.u2attributeNameIndex), - 0, + runtimeInvisibleParameterAnnotationsAttribute.u1parametersCount, new int[runtimeInvisibleParameterAnnotationsAttribute.u1parametersCount], parameterAnnotations);