mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
Added tests for this() call in SneakyThrows (issue 381)
This commit is contained in:
1 parent
960761a298
commit
8e24e2e123
4 files changed
+24
-1
No files matched your search
@@ -10,6 +10,16 @@ class SneakyThrowsPlain {
|
||||
throw lombok.Lombok.sneakyThrow($ex);
|
||||
}
|
||||
}
|
||||
@lombok.SneakyThrows SneakyThrowsPlain(int x) {
|
||||
this();
|
||||
try
|
||||
{
|
||||
System.out.println("constructor2");
|
||||
}
|
||||
catch (final java.lang.Throwable $ex) {
|
||||
throw lombok.Lombok.sneakyThrow($ex);
|
||||
}
|
||||
}
|
||||
public @lombok.SneakyThrows void test() {
|
||||
try
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user