It seems like try catch generates invalid bytecode in a few different scenarios:
importstdlib.IllegalArgumentException;
try {
} catch e as IllegalArgumentException {
}gives:
Illegal exception table range in class file script/trycatch
and
importstdlib.IllegalArgumentException;
for i in0 .. 10 {
try {
println("Working");
} catch e as IllegalArgumentException {
}
}gives:
Inconsistent stackmap frames at branch target 38
It seems like try catch generates invalid bytecode in a few different scenarios:
gives:
and
gives: