mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
starting with javac 1.9+ such code starting to compile, javac 8 rejects the code with the same language level used GitOrigin-RevId: 87a1e4d475927af0ee71cd74f5a66e130908ed82
17 lines
253 B
Java
17 lines
253 B
Java
class Foo<T> {
|
|
|
|
private T _value;
|
|
|
|
T getValue() {
|
|
return _value;
|
|
}
|
|
|
|
static Foo<?> getFoo() {
|
|
return new Foo<>();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
Foo<?> foo = getFoo();
|
|
double value = (double) foo.getValue();
|
|
}
|
|
} |