mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
If the exception is a runtime exception then just propogate, don't wrap
This commit is contained in:
parent
e4dc32576c
commit
6e39b1688b
@ -2278,6 +2278,8 @@ magicSmotherExceptionsThrow[CommonTree body, string exception]:
|
||||
-> OPEN_BRACE["{"]
|
||||
^(TRY["try"]
|
||||
{ dupTree(body) }
|
||||
^(CATCH["catch"] ^(TYPE[body.Token, "TYPE"] IDENTIFIER[body.Token, "RuntimeException"]) { dupTree($v.tree) }
|
||||
OPEN_BRACE["{"] ^(THROW["throw"] { dupTree($v.tree) }) CLOSE_BRACE["}"])
|
||||
^(CATCH["catch"] magicThrowableType { dupTree($v.tree) }
|
||||
OPEN_BRACE["{"] ^(THROW["throw"] ^(NEW["new"] ^(TYPE["TYPE"] IDENTIFIER[exception]) ^(ARGS["ARGS"] { dupTree($v.tree) }))) CLOSE_BRACE["}"]))
|
||||
CLOSE_BRACE["}"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user