例えば
import com.example.util.AInterface; class A implements AInterface { static abstract class InnerA implements AInterface { enum AnEnum { Apple, Peach; } } }
のような source で InnerA が implements する AInterface を認識できないという現象が今日起こった・・・(javac 1.8.0_66
実際には上記のような source ではないが(もっと実装 code が書いてある)、要約すれば上記の source となる。
簡略化した上記の source で compile したら AInterface を認識できないという現象は起きない。
つまり、その他の記述による弊害?のせいで起こっているのだと推定される。
eclipse での compile は何も問題ないのだが・・・
import com.example.util.AInterface; class A implements AInterface {
enum AnEnum { Apple, Peach; }
static abstract class InnerA implements AInterface { } }
としたら、エラーは出なかった。(何なんだ・・・
いや、厳密には違うのだが、認識するようになったしもう時間の無駄なのでやめたーぁー