mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
new inference: avoid resolveGenericMethod on new expressions as diamond types are expanded and cached on class reference (IDEA-133297)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
new A<>(new B<>(of("")));
|
||||
}
|
||||
|
||||
static <E> List<E> of(E element) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static class A<K> {
|
||||
A(String s) {}
|
||||
A(B<K> b) {}
|
||||
}
|
||||
|
||||
static class B<T> extends ArrayList<List<T>> {
|
||||
public B(List<T> l) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user