From 8e24e2e123bda37820aa9c2b944b6df4b3756186 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 25 Jun 2012 22:37:05 +0200 Subject: Added tests for this() call in SneakyThrows (issue 381) --- test/transform/resource/after-delombok/SneakyThrowsPlain.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/transform/resource/after-delombok/SneakyThrowsPlain.java') 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"); -- cgit