Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jasm reporting [BUG]: <Unknown> [java.lang.NullPointerException #56

@alexgarzao

Description

@alexgarzao

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

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions