Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > The hierarchy of the type is inconsistent

Reply
Thread Tools

The hierarchy of the type is inconsistent

 
 
=?iso-8859-1?B?bW9vcJk=?=
Guest
Posts: n/a
 
      01-06-2006
Hi,
Eclipse warns me that some classes of mine are inconsistent in
hierarchy, I cannot understand what is going wrong, appreciated for
helps!

 
Reply With Quote
 
 
 
 
Luc The Perverse
Guest
Posts: n/a
 
      01-06-2006
"moopT" <> wrote in message
news: ups.com...
> Hi,
> Eclipse warns me that some classes of mine are inconsistent in
> hierarchy, I cannot understand what is going wrong, appreciated for
> helps!
>


Please copy and paste the exact error message.

--
LTP




 
Reply With Quote
 
 
 
 
knop knop is offline
Junior Member
Join Date: Feb 2008
Posts: 1
 
      02-15-2008
In my case, I encounter this error and an error like:

The type org.eclipse.core.commands.common.EventManager cannot be resolved. It is indirectly referenced from required .class files

at the same time.

These errors happend because some interface/class in the hierarchy cannot be resolve.
For example: the error is occur in your class - class x, x inherits y, and in turn, y inherits z. However, the compiler cannot resolve z (in above error is EventManager), because z is belong to a library that is not included.
Therefore, you have to add package containing z to the classpath/ or project's Java Build Path (if you are using eclipse).

hope it may help.
 
Reply With Quote
 
zcanji zcanji is offline
Junior Member
Join Date: Feb 2008
Posts: 1
 
      02-21-2008
Hello,

I'm facing the same problem - just that class y is not extending/implementing class z. The class y jar is refered in class x.
Could there be any other problem? I read elsewhere while checking this out on google that the jar containing class y may be improperly packed. Is this possible? I can refer to other classes in class y jar in class x.
Please advice.
Thanks!
 
Reply With Quote
 
NickyJung NickyJung is offline
Junior Member
Join Date: Jul 2009
Posts: 1
 
      07-21-2009
i just check my JDK.

i used wrong version AND wrong position of JDK.
 
Reply With Quote
 
sagar1982misal@gmail.com sagar1982misal@gmail.com is offline
Junior Member
Join Date: May 2011
Posts: 1
 
      05-25-2011
i had same problem on eclipse GAE project then i went through all jar file used/referred and fixed it,my serialization policy was referring a gwt.jar which went missing somehow i added it and problem was solved.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
type, object hierarchy? 7stud Python 21 02-04-2008 09:46 PM
Type specific flags in a class hierarchy Marco Nef C++ 7 01-26-2008 03:51 PM
solving java.lang.ClassFormatError: Field "has inconsistent hierarchy" in class vizlab Java 3 08-26-2007 05:18 PM
solving java.lang.ClassFormatError: Field "has inconsistent hierarchy" in class hiwa Java 1 12-29-2004 01:51 PM
Pattern for recursive variable setting over type hierarchy John McC Java 2 08-20-2003 07:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57