mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 21:54:33 +00:00
#1125 Missing catch block when decompiling try{}catch{} block
This commit is contained in:
@@ -438,6 +438,17 @@ public class ActionScript3Test extends ActionScriptTestBase {
|
||||
+ "trace(\"end\");\r\n", false);
|
||||
}
|
||||
|
||||
//@Test //todo: enable test
|
||||
public void testTryShouldHaveCatchOrFinally() {
|
||||
decompileMethod("testTryShouldHaveCatchOrFinally", "try\r\n"
|
||||
+ "{\r\n"
|
||||
+ "trace(\"try body\");\r\n"
|
||||
+ "}\r\n"
|
||||
+ "finally\n\n"
|
||||
+ "{\r\n"
|
||||
+ "}\r\n", false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSwitch() {
|
||||
decompileMethod("testSwitch", "var a:* = 5;\r\n"
|
||||
|
||||
Reference in New Issue
Block a user