[Issue 381] @SneakyThrows respects constructor calls

This commit is contained in:
Philipp Eichhorn committed 2012-06-24 20:38:00 +02:00
1 parent 3ed67fc8ae
commit 8fb4f79757
4 files changed
+37 -4

No files matched your search

@@ -1,7 +1,14 @@
import lombok.SneakyThrows;
class SneakyThrowsPlain {
SneakyThrowsPlain() {
@lombok.SneakyThrows SneakyThrowsPlain() {
super();
try
{
System.out.println("constructor");
}
catch (final java.lang.Throwable $ex) {
throw lombok.Lombok.sneakyThrow($ex);
}
}
public @lombok.SneakyThrows void test() {
try