Skip to content

Try catch bytecode issues #130

@jaredlll08

Description

@jaredlll08

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions