diff options
author | chibash <chiba@javassist.org> | 2017-11-15 07:02:05 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2017-11-15 07:02:05 +0900 |
commit | 40d3223b128887dffafb8d6f28438628ad72e039 (patch) | |
tree | 9767c69e56b4fb49d22c877b06f353ae6f278d77 /src/test/test5 | |
parent | bdc2b3784c99c5ca54a549af8f2015aaa15699dd (diff) | |
download | javassist-40d3223b128887dffafb8d6f28438628ad72e039.tar.gz javassist-40d3223b128887dffafb8d6f28438628ad72e039.zip |
fixes a bug reported in issue #155 (Javassist Incorrect Code when wrapping with try/catch)
Diffstat (limited to 'src/test/test5')
-rw-r--r-- | src/test/test5/Issue155.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/test5/Issue155.java b/src/test/test5/Issue155.java new file mode 100644 index 00000000..3782e10d --- /dev/null +++ b/src/test/test5/Issue155.java @@ -0,0 +1,22 @@ +package test5; + +public class Issue155 { + public void bar() {} + + public void foo() throws Throwable { + try { + bar(); + } catch (java.lang.IllegalArgumentException e) { + bar(); + } + } + + public int test() throws Throwable { + foo(); + return 1; + } + + public static void main(String[] args) throws Throwable { + new Issue155().foo(); + } +} |