mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
Fixed issue 397: Rare java.lang.StackOverflowError in JavacResolution.
This commit is contained in:
1 parent
1865bd7309
commit
02446794b0
1 file changed
+6
@@ -456,12 +456,18 @@ public class JavacResolution {
|
||||
if (upper == null || upper.toString().equals("java.lang.Object")) {
|
||||
return maker.Wildcard(maker.TypeBoundKind(BoundKind.UNBOUND), null);
|
||||
}
|
||||
if (upper.getTypeArguments().contains(type)) {
|
||||
return maker.Wildcard(maker.TypeBoundKind(BoundKind.UNBOUND), null);
|
||||
}
|
||||
return maker.Wildcard(maker.TypeBoundKind(BoundKind.EXTENDS), typeToJCTree(upper, ast, false, false));
|
||||
} else {
|
||||
return maker.Wildcard(maker.TypeBoundKind(BoundKind.SUPER), typeToJCTree(lower, ast, false, false));
|
||||
}
|
||||
}
|
||||
if (upper != null) {
|
||||
if (upper.getTypeArguments().contains(type)) {
|
||||
return maker.Wildcard(maker.TypeBoundKind(BoundKind.UNBOUND), null);
|
||||
}
|
||||
return typeToJCTree(upper, ast, allowCompound, allowVoid);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user