summaryrefslogtreecommitdiff
path: root/asm-test/src/resources/java/jdk3/DumpArtificialStructures.java
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2023-06-09 10:38:59 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-06-09 10:38:59 +0000
commite3a486fb7576c71f45a7ad2bf2cea9e8677d6cda (patch)
treea1a569767f442e842b70624189dcf18611a070da /asm-test/src/resources/java/jdk3/DumpArtificialStructures.java
parent3b5b472eec28754840225bf7056cf4ae82bdd1e9 (diff)
parentd0cf7f023e0ff4424acd3b25c1e5ce0a2ed57314 (diff)
downloadow2-asm-e3a486fb7576c71f45a7ad2bf2cea9e8677d6cda.tar.gz
Import ASM 9.5 am: 09e8c429ce am: 8e71fe2ccd am: d0cf7f023e
Original change: https://android-review.googlesource.com/c/platform/external/ow2-asm/+/2617250 Change-Id: Ie52903d34317d78430fce8fb0cec1b86917dea55 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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);