Java实战技术

The hierarchy of the type is inc

2017-12-29  本文已影响22人  JavaQ

问题

eclipse中类A继承了类B,提示错误,错误信息“The hierarchy of the type is inconsistent”

原因

类B的父类或类B的父类的父类所在的jar没有被加到当前工程的classpath下,引入依赖或手动加入path下即可。

上一篇 下一篇

猜你喜欢

热点阅读