I tried to compile the following code:
public interface Foo<T> {
public interface Bar {
public void bar(T t);
}
void foo(T t);
}
But I get this error: "Foo.this cannot be referenced from a static context."
Specifically, I get it on the "T" in bar(T t). However foo(T t) does not produce the same error. I don't understand why that's a static context and what the error really means.