8264561: javap get NegativeArraySizeException on bad instruction

Reviewed-by: vromero
This commit is contained in:
Adam Sotona 2021-05-17 15:23:18 +00:00
parent b8856b1c47
commit cf97252f3f
2 changed files with 5 additions and 1 deletions

View file

@ -106,7 +106,7 @@ public class CodeWriter extends BasicWriter {
for (InstructionDetailWriter w: detailWriters)
w.writeDetails(instr);
writeInstr(instr);
} catch (ArrayIndexOutOfBoundsException e) {
} catch (ArrayIndexOutOfBoundsException | IllegalStateException e) {
println(report("error at or after byte " + instr.getPC()));
break;
}