aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-06-25 22:37:05 +0200
committerRoel Spilker <r.spilker@gmail.com>2012-06-25 22:37:05 +0200
commit8e24e2e123bda37820aa9c2b944b6df4b3756186 (patch)
tree498f5407e54e0cf2272943057e8beaac57a37ca7 /test/transform/resource/after-delombok
parent960761a29877510d6e59945656edb87a912f631d (diff)
downloadlombok-8e24e2e123bda37820aa9c2b944b6df4b3756186.tar.gz
lombok-8e24e2e123bda37820aa9c2b944b6df4b3756186.tar.bz2
lombok-8e24e2e123bda37820aa9c2b944b6df4b3756186.zip
Added tests for this() call in SneakyThrows (issue 381)
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/SneakyThrowsPlain.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/SneakyThrowsPlain.java b/test/transform/resource/after-delombok/SneakyThrowsPlain.java
index 93f734f8..5c0890b5 100644
--- a/test/transform/resource/after-delombok/SneakyThrowsPlain.java
+++ b/test/transform/resource/after-delombok/SneakyThrowsPlain.java
@@ -7,6 +7,14 @@ class SneakyThrowsPlain {
throw lombok.Lombok.sneakyThrow($ex);
}
}
+ SneakyThrowsPlain(int x) {
+ this();
+ try {
+ System.out.println("constructor2");
+ } catch (final java.lang.Throwable $ex) {
+ throw lombok.Lombok.sneakyThrow($ex);
+ }
+ }
public void test() {
try {
System.out.println("test1");
@@ -14,7 +22,6 @@ class SneakyThrowsPlain {
throw lombok.Lombok.sneakyThrow($ex);
}
}
-
public void test2() {
try {
System.out.println("test2");