From 9c224ec391839808bb91e6d28bb51e015d61e9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 30 Sep 2023 17:24:19 +0200 Subject: [PATCH] ABCExplorer - show number of exceptions near methodbody --- .../jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java b/src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java index dc28e88ab..621564fe6 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java @@ -1260,7 +1260,11 @@ public class ABCExplorerDialog extends AppDialog { return new ValueWithIndex(parent, currentLevelIndex, index, valueType, null, "Unknown(" + index + ")", title); } MethodBody b = abc.bodies.get(index); - return new ValueWithIndex(parent, currentLevelIndex, index, valueType, b, "mi" + b.method_info + ", " + b.getCodeBytes().length + " bytes code", title); + String exceptionsAdd = ""; + if (b.exceptions.length > 0) { + exceptionsAdd = ", " + b.exceptions.length + " exceptions"; + } + return new ValueWithIndex(parent, currentLevelIndex, index, valueType, b, "mi" + b.method_info + ", " + b.getCodeBytes().length + " bytes code" + exceptionsAdd, title); case INSTANCE_INFO: if (index >= abc.instance_info.size()) { return new ValueWithIndex(parent, currentLevelIndex, index, valueType, null, "Unknown(" + index + ")", title);