The hierarchy of the type is inconsistent

问题

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

缘由

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