Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try catch bytecode issues #130

Open
jaredlll08 opened this issue Jan 8, 2024 · 0 comments
Open

Try catch bytecode issues #130

jaredlll08 opened this issue Jan 8, 2024 · 0 comments
Milestone

Comments

@jaredlll08
Copy link
Member

It seems like try catch generates invalid bytecode in a few different scenarios:

import stdlib.IllegalArgumentException;

try {
} catch e as IllegalArgumentException {
}

gives:

Illegal exception table range in class file script/trycatch

and

import stdlib.IllegalArgumentException;

for i in 0 .. 10 {
	try {
    	println("Working");
    } catch e as IllegalArgumentException {
    }
}

gives:

Inconsistent stackmap frames at branch target 38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants