JSRInlineAdapter produces duplicate Labels
Hi,
the JaCoCo code coverage library is currently using the JSRInlineAdapter to
eliminate JSR/RET instructions from classes. The new event sequence produced by
the adapter produces multiple labels in sequence (without intermediate
instructions). For example:
...
L127
LINENUMBER 900 L127
GOTO L113
L130
L119 <-- Two Labels in sequence
ASTORE 19
ALOAD 4
IFNULL L131
...
All other ASM APIs never produce such a situation. Therefore I consider this as
a bug.
STEPS TO REPRODUCE
Pipe the method "isRebuildRequired" from attached class file
WeblogicDeploymentTool.class through an JSRInlineAdapter and dump the result.
EXPECTED BEHAVIOR
There is at most one label preceding each instruction.
ACTUAL BEHAVIOR
The JSRInlineAdapter produces two subsequent labels without instructions in
between.