mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 09:05:52 +07:00
Make all tests have two variants: with and without debug info. Also, move bytecode fixtures out of BytecodeLineMappingTest because it adds too much noise there. Move it to the newly created testData directory instead. GitOrigin-RevId: 1b44b118d470ace068774d9714eafc2704119e86
75 lines
1.9 KiB
Plaintext
75 lines
1.9 KiB
Plaintext
// class version 67.0 (67)
|
|
// access flags 0x21
|
|
public class simple2/Main {
|
|
|
|
// compiled from: Main.java
|
|
// access flags 0x19
|
|
public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup
|
|
|
|
// access flags 0x9
|
|
public static Ljava/lang/String; name
|
|
|
|
// access flags 0x9
|
|
public static Ljava/lang/Object; obj
|
|
|
|
// access flags 0x1
|
|
public <init>()V
|
|
L0
|
|
LINENUMBER 3 L0
|
|
ALOAD 0
|
|
INVOKESPECIAL java/lang/Object.<init> ()V
|
|
RETURN
|
|
L1
|
|
LOCALVARIABLE this Lsimple2/Main; L0 L1 0
|
|
MAXSTACK = 1
|
|
MAXLOCALS = 1
|
|
|
|
// access flags 0x9
|
|
public static main([Ljava/lang/String;)V
|
|
L0
|
|
LINENUMBER 8 L0
|
|
GETSTATIC java/lang/System.out : Ljava/io/PrintStream;
|
|
LDC "hello world"
|
|
INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V
|
|
L1
|
|
LINENUMBER 9 L1
|
|
ALOAD 0
|
|
ARRAYLENGTH
|
|
ISTORE 1
|
|
L2
|
|
LINENUMBER 10 L2
|
|
GETSTATIC java/lang/System.out : Ljava/io/PrintStream;
|
|
ILOAD 1
|
|
INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [
|
|
// handle kind 0x6 : INVOKESTATIC
|
|
java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
|
|
// arguments:
|
|
"there are \u0001 args"
|
|
]
|
|
INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V
|
|
L3
|
|
LINENUMBER 11 L3
|
|
RETURN
|
|
L4
|
|
LOCALVARIABLE args [Ljava/lang/String; L0 L4 0
|
|
LOCALVARIABLE argCount I L2 L4 1
|
|
MAXSTACK = 2
|
|
MAXLOCALS = 2
|
|
|
|
// access flags 0x8
|
|
static <clinit>()V
|
|
L0
|
|
LINENUMBER 4 L0
|
|
LDC "Charlie"
|
|
PUTSTATIC simple2/Main.name : Ljava/lang/String;
|
|
L1
|
|
LINENUMBER 5 L1
|
|
NEW java/lang/Object
|
|
DUP
|
|
INVOKESPECIAL java/lang/Object.<init> ()V
|
|
PUTSTATIC simple2/Main.obj : Ljava/lang/Object;
|
|
RETURN
|
|
MAXSTACK = 2
|
|
MAXLOCALS = 0
|
|
}
|