Thursday, March 19, 2009

Inconsistent Hierarchy Error in Eclipse

Occasionally I run into an error using Eclipse where it reports that the hierarchy for type XYZ is inconsistent. The problem isn't that there is a problem with the given class, but instead that the class it extends is not compiling properly. In my most recent case, the base class was missing a needed class in it's classpath.

1 comment:

Michael Easter said...

Thanks for this post! This helped me track down my issue.

(In my case, class BaseFoo is in project A with dbunit.jar. DerivedFoo is in project B without dbunit.jar, and the error was a vague attempt to tell me to include dbunit.jar into Project B).