JLSの動作方法を考えると解決できない循環依存関係があります(ただし、JLSのどこに文書化されているかはわかりません)。
インターフェイス IPlayerity と IItemity は、NestedInterfaces クラス ヘッダー定義の内部にあるため、可視ではありません。プログラムを次のように変更することでこれを修正できます
public class NestedInterfaces implements
NestedInterfaces.IPlayerity, NestedInterfaces.IItemity
{
public interface IPlayerity {}
public interface IItemity {}
}
しかし、その後Eclipseは私にこのエラーを与えます。これははるかに明確です:
Multiple markers at this line
- Cycle detected: the type NestedInterfaces cannot extend/implement itself or one of its own member types
- Cycle detected: the type NestedInterfaces cannot extend/implement itself or one of its own member types