Added an error if @Delegate is used recursively.

This commit is contained in:
Reinier Zwitserloot
2014-05-12 15:08:55 +02:00
parent 4996428ea1
commit 8cfa421ce5
19 changed files with 157 additions and 112 deletions
@@ -1,4 +1,5 @@
import lombok.Delegate;
//skip compare content: This test is to see if the 'delegate recursion is not supported' error pops up.
import lombok.experimental.Delegate;
class DelegateRecursionOuterMost {
@Delegate
private final DelegateRecursionCenter center = new DelegateRecursionCenter();
@@ -12,4 +13,4 @@ class DelegateRecursionCenter {
class DelegateRecursionInnerMost {
public void innerMostMethod() {
}
}
}