mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
generics: inaccessible through wildcards bounds
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class JavacConfiguration {
|
||||
private final String mySettings = "";
|
||||
|
||||
public static void foo(Class<? extends JavacConfiguration> aClass) {
|
||||
Object o = getService(aClass).<error descr="'mySettings' has private access in 'JavacConfiguration'">mySettings</error>;
|
||||
JavacConfiguration configuration = getService(aClass);
|
||||
String string = configuration.mySettings;
|
||||
}
|
||||
|
||||
public static <T> T getService(Class<T> serviceClass) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user