blob: 060178783a80a05a07b03bf8468b87e3071a8ee6 [file] [log] [blame]
package p;
import p.Foo.Bar.FooBar;
public class Foo {
/**
*
*/
public static void bar() {
FooBar.foo();
}
Bar.FooBar bb;
static class Bar {
static class FooBar {
static void foo() { // <--- invoke here
}
}
}
Bar.FooBar getFooBar() {
return null;
}
{
Bar.FooBar b= new Bar.FooBar();
// not ok:
b.foo();
getFooBar().foo();
this.bb.foo();
bb.foo();
// ok:
Foo.bar();
Foo.bar();
Foo.bar();
}
}