Frames are re-calculated for Large Methods
ASM Version: 5.1.0
The problem has been already described by Marc Hoffmann in #317551 which
contains patch, which was not verified and was not applied.
Together with Marc we made a reproducer for this case - see
https://github.com/jacoco/jacoco/pull/177#issuecomment-222227425
And unfortunately patch causes NPE:
Exception in thread "main" java.lang.NullPointerException
at org.objectweb.asm.Frame.push(Frame.java:691)
at org.objectweb.asm.Frame.execute(Frame.java:978)
at org.objectweb.asm.CurrentFrame.execute(CurrentFrame.java:50)
at org.objectweb.asm.MethodWriter.visitInsn(MethodWriter.java:747)
at org.objectweb.asm.ClassReader.readCode(ClassReader.java:1363)
at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1032)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:708)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:521)
at org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:1005)
at ResizeInstructions.main(ResizeInstructions.java:62)
Reproducer of this NPE attached.