interface A<T> {
interface B {
// Results in non-static type variable T cannot
// be referenced from a static context
T foo();
}
}
어쨌든 이것을 반올림하고 있습니까? A.B에서 참조 할 때 T가 정적으로 보이는 이유는 무엇입니까?Java Generics : 정적이 아닌 유형의 변수 T는 정적 컨텍스트에서 참조 할 수 없습니다.
@BheshGurung 예 - 의도적입니다. – auser
관련 : http://stackoverflow.com/a/74400/697449 –