mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8264561: javap get NegativeArraySizeException on bad instruction
Reviewed-by: vromero
This commit is contained in:
parent
b8856b1c47
commit
cf97252f3f
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue