Bug 72468 - "hierarchy of ... type is inconsistent" error message
Summary: "hierarchy of ... type is inconsistent" error message
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor with 1 vote (vote)
Target Milestone: 3.0.1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-23 17:25 EDT by David Hanak CLA
Modified: 2007-01-05 03:59 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Hanak CLA 2004-08-23 17:25:52 EDT
I got the above message in Eclipse, and the only way I could make it go away was
to modify the source (insert a space) and then save it, thus forcing
recompilation.  To reproduce the problem, create the following files:

A.java:
interface A {
}

B.java:
interface B extends A {
}

C.java:
class C implements B {
}

Now delete A.java, and fix the compilation error in B.java by removing "extends
A". C should be OK now (if it was recompiled), but you get the above error
message instead.

The same error message has been reported in #35899, allegedly fixed.
Comment 1 Kent Johnson CLA 2004-08-24 14:11:34 EDT
bug 35899 is unrelated. This problem is much simpler.

The problem class file generated for B is the same as the 'new' class file for 
B after the missing type reference is removed.

We need to do more than compare the class files to see if B is structurally 
changed. Can occur with either an invalid superclass or superinterface 
reference.

Could add another marker to track types with invalid supertypes. Then we could 
detect any change to one of these types and recompile dependents.
Comment 2 Kent Johnson CLA 2004-08-26 10:32:26 EDT
Changed problem types so they will be structurally different when the 
offending supertype reference is removed.

Fix will appear in 3.1 M2 & 3.0.1
Comment 3 Kent Johnson CLA 2004-08-26 10:39:37 EDT
Added 2 tests to DependencyTests
Comment 4 David Audel CLA 2004-09-06 10:31:00 EDT
Verified for 3.0.1 RC1
Comment 5 Jagsir Singh Dhillon CLA 2004-09-27 03:54:32 EDT
Some how the bug is still reproducable in Eclipse 3.0.1.
Just compile 'jaxme.0.3.1' code, following message is produced.

The hierarchy of the type AnyAttributePropertySG is inconsistent
>> AnyAttributePropertySG is a jaxme class.

such an error does exist with a xerces2.6.2 project also.

its very annoying. please resolve.
Comment 6 Kent Johnson CLA 2004-09-27 11:56:11 EDT
Jagsir: We need you to attach a testcase that shows the problem.
Comment 7 Kent Johnson CLA 2004-09-29 08:33:07 EDT
No response.

Jagsir: Please open a new bug report with your complete testcase.