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/before/SneakyThrowsPlain.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/transform/resource/before/SneakyThrowsPlain.java') diff --git a/test/transform/resource/before/SneakyThrowsPlain.java b/test/transform/resource/before/SneakyThrowsPlain.java index 261e1b53..871086b7 100644 --- a/test/transform/resource/before/SneakyThrowsPlain.java +++ b/test/transform/resource/before/SneakyThrowsPlain.java @@ -5,6 +5,11 @@ class SneakyThrowsPlain { System.out.println("constructor"); } + @lombok.SneakyThrows SneakyThrowsPlain(int x) { + this(); + System.out.println("constructor2"); + } + @lombok.SneakyThrows public void test() { System.out.println("test1"); } -- cgit