Bug 392171 - Hierarchy sometimes not working
Summary: Hierarchy sometimes not working
Status: VERIFIED DUPLICATE of bug 393192
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.3 M6   Edit
Assignee: Jesper Moller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-17 10:03 EDT by Maxime Go CLA
Modified: 2013-03-12 06:26 EDT (History)
5 users (show)

See Also:


Attachments
Eclipse project to reproduce the bug (2.95 MB, application/x-zip-compressed)
2012-10-17 10:03 EDT, Maxime Go CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Go CLA 2012-10-17 10:03:51 EDT
Created attachment 222472 [details]
Eclipse project to reproduce the bug

Dear Eclipse users, members, and comitters,

We are experiencing a "chaotique" functioning of the Type hierarchy indexing in Eclipse since 3.7 and even more with 4.2. Note that we never had this problem before. So we think this is bug.

The problem is that sometimes when we have a class implementing an interface, pressing F4 on either the class or the interface will not show its supertype or its child class in the Hierarchy view. And the ctrl-T will neither work on a method declaration in the interface. 

I mentionned "chaotique" because it is only doing it for few classes. Our project contains dozens of other interfaces/classes for which the Hierarchy does work. 

However, it is always doing it for the same classes, so hopefully we were able to reproduce this bug. We isolated those classes, took out 99% of our project to clean this up, made a nice zip file, and attached it to this report. Normally, you should be able to reproduce this bug in your environment.

Our environment is: 
- Eclipse Juno SR1 (Build id: 20121004-1855)
- Using JDK 1.6.0_34
Optionaly:
- This project used to be a web app running on a tomcat server 5.5. It's totally not workable/launchable has you have it here, but this is not the goal here.

To see the bug:
- Open the project in Eclipse
- Goto the MyDAOImpl.java file 
- Press F4 -> You should see that the hierarchy window shows no parents, when there should be BaseDAOImpl and MyDAO
- Same if you go in the MyDAO class

Now the strange things:
- Deleting the comments /** ... */ before the getC() function 
- or Deleting the getD() and getD2() functions 
- or Deleting the package-info.java 
will make the hierarchy work again ..... this looks really strange to us. 

I guess some others "actions" can make the hierarchy work again but I didn't find them all. In the case it is really a bug, hopefully they can help investigate on this.

If you need any more details or have any remarks please don't hesitate to ask.

Maxime
Comment 1 Dani Megert CLA 2013-01-08 11:25:16 EST
Looks like bug 362775.

*** This bug has been marked as a duplicate of bug 362775 ***
Comment 2 Dani Megert CLA 2013-01-08 11:25:39 EST

*** This bug has been marked as a duplicate of bug 393192 ***
Comment 3 Srikanth Sankaran CLA 2013-03-06 16:38:34 EST
Jesper, Thanks for capturing this scenario in a junit test.
Comment 4 Srikanth Sankaran CLA 2013-03-07 22:01:11 EST
Please confirm this is indeed a duplicate of bug 393192 and that the issue is 
resolved. If there is something unique about the test case, we want to capture
it as a junit.
Comment 5 Jesper Moller CLA 2013-03-08 05:25:02 EST
This is exactly the same pattern as bug 393192:

Java source file with:
 * More than 10 annotations
 * JavaDoc error which is suppressed
 * package-info.java present in class's package

Just in case, I verified it against the committed fix in master, and it works now.

Thanks for reporting!

*** This bug has been marked as a duplicate of bug 393192 ***
Comment 6 ANIRBAN CHAKRABORTY CLA 2013-03-12 03:27:26 EDT
Agreed and VERIFIED.