diff options
author | Philipp Eichhorn <peichhor@web.de> | 2012-06-24 20:38:00 +0200 |
---|---|---|
committer | Philipp Eichhorn <peichhor@web.de> | 2012-06-24 20:38:00 +0200 |
commit | 8fb4f79757547378c7d8c29759d04037bdd47c7e (patch) | |
tree | fd41fdd53f79aeca77b93463eca9fb357c642b7a /test/transform/resource/after-delombok | |
parent | 3ed67fc8aecf50757d85bdfb55075015c6627740 (diff) | |
download | lombok-8fb4f79757547378c7d8c29759d04037bdd47c7e.tar.gz lombok-8fb4f79757547378c7d8c29759d04037bdd47c7e.tar.bz2 lombok-8fb4f79757547378c7d8c29759d04037bdd47c7e.zip |
[Issue 381] @SneakyThrows respects constructor calls
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/SneakyThrowsPlain.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/SneakyThrowsPlain.java b/test/transform/resource/after-delombok/SneakyThrowsPlain.java index 28c39b40..93f734f8 100644 --- a/test/transform/resource/after-delombok/SneakyThrowsPlain.java +++ b/test/transform/resource/after-delombok/SneakyThrowsPlain.java @@ -1,4 +1,12 @@ class SneakyThrowsPlain { + SneakyThrowsPlain() { + super(); + try { + System.out.println("constructor"); + } catch (final java.lang.Throwable $ex) { + throw lombok.Lombok.sneakyThrow($ex); + } + } public void test() { try { System.out.println("test1"); |