Bug 48460 - Invalid "hierachy of the type X is inconsistent" annotation in Java editor
Summary: Invalid "hierachy of the type X is inconsistent" annotation in Java editor
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 00:33 EST by Cagatay Kavukcuoglu CLA
Modified: 2003-12-12 15:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cagatay Kavukcuoglu CLA 2003-12-11 00:33:42 EST
Create the following files in a default package:

A.java

public class A implements W {
	public interface X {
	}
	
	public interface Y extends W {
	}
	
	public static class C extends B implements Y {
	}
}

B.java

public class B implements A.X {
}

W.java

public interface W {
}

Observe that B.java has a "hierarchy of type B is inconsistent" annotation on
"B" of "public class B ...". There are no compilation errors in the task list.

Remove class C from A.java. Observe that the annotation disappears from B.java.
Comment 1 Kent Johnson CLA 2003-12-11 17:49:07 EST
This problem is fixed in 3.0M5.

Its not critical so I don't think we'll backport the fix.

Is that ok?
Comment 2 Cagatay Kavukcuoglu CLA 2003-12-11 23:51:49 EST
It's not critical but it's certainly annoying. As a user, I'd like to have it backported to the next 
service release for 2.1, considering that 3.0 won't see a release version for at least six months. I 
wouldn't worry about a UI problem but giving incorrect information to the user about program 
structure should be important enough. How big is the fix?
Comment 3 Kent Johnson CLA 2003-12-12 11:45:19 EST
To be honest, its in code which has changed considerably over the last few 
months so we cannot simply copy the 'fixed' code over to 2.1.

This problem will only show up when member types are extended/implemented & 
will only appear in the editor if quick fix is enabled.

Relative to other problems, this isn't critical.
Comment 4 Cagatay Kavukcuoglu CLA 2003-12-12 12:34:08 EST
Ah, well. Go on and continue working on 3.0, maybe that'll be a few months earlier :)) 
Comment 5 Kent Johnson CLA 2003-12-12 15:49:14 EST
Fixed in the 3.0 stream.