mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
check class accessible from another module: don't check parameters but check if method return type/param types are accessible
This commit is contained in:
+8
-2
@@ -1,10 +1,16 @@
|
||||
package p;
|
||||
abstract class B {
|
||||
void f(A a) {
|
||||
<error descr="Cannot access java.util.stream.Stream">a</error>.foo();
|
||||
<error descr="Cannot access java.util.stream.Stream">a.foo</error>();
|
||||
|
||||
Object o = a;
|
||||
|
||||
a.bar();
|
||||
|
||||
<error descr="Cannot access java.util.stream.Stream">a.myField</error>;
|
||||
}
|
||||
|
||||
void f(java.util.List<? extends A> a) {
|
||||
<error descr="Cannot access java.util.stream.Stream">a.get(0)</error>.foo();
|
||||
<error descr="Cannot access java.util.stream.Stream">a.get(0).foo</error>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user