-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Hello! I'm using jasm in a "toy compiler". It's an amazing project :-)
I assembled a lot of jasm files, without any problem. But, with the example bellow, I got a "[BUG]: [java.lang.NullPointerException".
I'm using jasm 0.7.0, installed from the binary distribution.
public class if_with_integers_with_and_or {
public static main([java/lang/String)V {
sipush 2
sipush 1
if_icmple L3
iconst_1
goto L4
L3:
iconst_0
L4:
ifeq L1
getstatic java/lang/System.out java/io/PrintStream
ldc "true"
invokevirtual java/io/PrintStream.print(java/lang/String)V
getstatic java/lang/System.out java/io/PrintStream
invokevirtual java/io/PrintStream.println()V
goto L2
L1:
getstatic java/lang/System.out java/io/PrintStream
ldc "false"
invokevirtual java/io/PrintStream.print(java/lang/String)V
getstatic java/lang/System.out java/io/PrintStream
invokevirtual java/io/PrintStream.println()V
L2:
return
}
}
Could someone help me?
Regards.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed