From 8fb4f79757547378c7d8c29759d04037bdd47c7e Mon Sep 17 00:00:00 2001 From: Philipp Eichhorn Date: Sun, 24 Jun 2012 20:38:00 +0200 Subject: [Issue 381] @SneakyThrows respects constructor calls --- test/transform/resource/after-delombok/SneakyThrowsPlain.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/transform/resource/after-delombok') 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"); -- cgit