Arguments swapped in call to cattrs.put in MethodWriter
The arguments maxLocals
and maxStack
are the wrong way round in the call to Attribute.put
in MethodWriter.java
cattrs.put(cw, code.data, code.length, maxLocals, maxStack, out);
Definition of Attribute.put: https://gitlab.ow2.org/asm/asm/blob/62819c139b8ac8e3012be96dfbe4ec423f425d4f/src/org/objectweb/asm/Attribute.java#L207
final void put(
final ClassWriter cw,
final byte[] code,
final int len,
final int maxStack,
final int maxLocals,
final ByteVector out) {
(I found this while evaluating a new Error Prone check for argument selection defects: http://errorprone.info/bugpattern/ArgumentSelectionDefectChecker)