I have a class that implements an abstract class. The abstract class is in another package of my project. Added the package where the class is abstract by Configure build path/Project. In class that implements is accusing the following error: The hierarchy of the type class is inconsistent
Have I to add this package somewhere else?
Thank you!
I also face this issue in my
maven
project using withEclipse oxygen.1a
IDE,Error showing on class name level,
thereafter I took complete svn update from repository and later
Maven -> Update Project
and laterProject Refresh
.The error was gone...
As per my understanding, this were happening due to unmanaged project version.
In the Eclipse, OSGi environment, the required package can be added to the MANIFEST.MF-> Dependencies tab -> Imported packages. This will solve the issue. Or the plugin which contains the class can be added to the Required Plugin-ins
springframework.aop jar is depends on aopalliance.jar add it to your class path it will resolve ur problm hope it works cos i was facing same prob I added dependent jar so it resolved
this worked for me and correctly.
Go to the Project Explorer.
The errors will be resolved.
That means class which implemented by you has reference to the interface or class which again references some other classes or interfaces in other libraries and those are not available.