mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +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
@@ -8,6 +8,7 @@ any type in the form of static methods that take as first parameter an object of
|
||||
* BUGFIX: Eclipse refactor script 'rename method arguments' should work more often with lombok-affected methods.
|
||||
* BUGFIX: Using `val` in an enhanced for loop did not work if the iterable was a raw type.
|
||||
* BUGFIX: Using `@Getter(lazy=true)` when the data type is boolean, int, array, or some other type that requires special treatment for hashCode/equals, now works properly with `@Data`, `@EqualsHashCode` and `@ToString`. [Issue #376](http://code.google.com/p/projectlombok/issues/detail?id=376)
|
||||
* BUGFIX: `SneakyThrows` in constructor should not wrap this/super call in try-block [Issue #381](http://code.google.com/p/projectlombok/issues/detail?id=381)
|
||||
* FEATURE: ONGOING: Fix for using lombok together with gwt-designer.
|
||||
|
||||
### v0.11.0 (March 26th, 2012)
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user