mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
during overload resolution it may lead to caching of a wrong hierarchy, because type of anonymous class with diamonds depends on the surrounding method call possible optimization: reject caching only for classes with diamonds or only during overload resolution GitOrigin-RevId: ebdb068fb9052741b8bba2b50e5faefcc541438c
18 lines
294 B
Java
18 lines
294 B
Java
|
|
interface P1<T1> { boolean test(T1 t);}
|
|
interface P2<T2> { boolean test(T2 t);}
|
|
|
|
class C {
|
|
public C(P1<String> c) { }
|
|
public C(P2<String> p) { }
|
|
}
|
|
|
|
class C1 extends C {
|
|
public C1() {
|
|
super(new P2<>() {
|
|
public boolean test(String s) {
|
|
return false;
|
|
}
|
|
});
|
|
}
|
|
} |