mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 14:16:39 +00:00
[fixes #2358] self-referential generics could cause endless loops in javac.
... unfortunately eclipse's val resolver is now very slightly worse in very exotic circumstances - spent about 4 hours trying to fix it, can't figure it out, let's move on.
This commit is contained in:
8 files changed
+88
-19
No files matched your search
@@ -0,0 +1,14 @@
|
||||
public class ValWithSelfRefGenerics {
|
||||
public void run(Thing<? extends Comparable<?>> thing, Thing<?> thing2, java.util.List<? extends Number> z) {
|
||||
final java.util.List<? extends java.lang.Number> y = z;
|
||||
final Thing<? extends java.lang.Comparable<?>> x = thing;
|
||||
final Thing<?> w = thing2;
|
||||
final java.lang.Comparable<?> v = thing2.get();
|
||||
}
|
||||
}
|
||||
|
||||
class Thing<T extends Comparable<? super T>> {
|
||||
public T get() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user