summaryrefslogtreecommitdiff
path: root/asm-test/src/resources/java/jdk3/DumpArtificialStructures.java
diff options
context:
space:
mode:
Diffstat (limited to 'asm-test/src/resources/java/jdk3/DumpArtificialStructures.java')
-rw-r--r--asm-test/src/resources/java/jdk3/DumpArtificialStructures.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/asm-test/src/resources/java/jdk3/DumpArtificialStructures.java b/asm-test/src/resources/java/jdk3/DumpArtificialStructures.java
index 3701472d..b316d1c0 100644
--- a/asm-test/src/resources/java/jdk3/DumpArtificialStructures.java
+++ b/asm-test/src/resources/java/jdk3/DumpArtificialStructures.java
@@ -47,7 +47,7 @@ import org.objectweb.asm.Opcodes;
* <li>non standard class, field, method and code attributes,
* <li>the nop and swap instructions,
* <li>some variants of the dup_x2 and dup2_x2 instructions,
- * <li>several line numbers per bytecode offset.
+ * <li>several line numbers per bytecode offset, and line numbers equal to 0.
* </ul>
*
* Ideally we should not use ASM to generate this class (which is later used to test ASM), but this
@@ -103,7 +103,7 @@ public class DumpArtificialStructures implements Opcodes {
Label endIfLabel = new Label();
methodVisitor.visitJumpInsn(GOTO, endIfLabel);
methodVisitor.visitLabel(elseLabel);
- methodVisitor.visitLineNumber(1, elseLabel);
+ methodVisitor.visitLineNumber(0, elseLabel);
methodVisitor.visitLineNumber(3, elseLabel);
methodVisitor.visitLdcInsn("0");
methodVisitor.visitLabel(endIfLabel);