Bug 318699 - Open Type does not show certain classes
Summary: Open Type does not show certain classes
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-02 07:44 EDT by Michael Heß CLA
Modified: 2011-01-25 11:18 EST (History)
4 users (show)

See Also:


Attachments
log of my workspace after starting helios (11.04 KB, text/plain)
2010-07-02 07:47 EDT, Michael Heß CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Heß CLA 2010-07-02 07:44:18 EDT
Build Identifier: 20100617-1415

I have a problem with at least three (probably more) source files. They are not found in the Open Type dialog.

I have tried deleting the contents of my .metadata\.plugins\org.eclipse.jdt.core but it does not change anything (apart from the indexer redoing its work).

What I do see in the log, is an exception (see attachment). I am not sure if it is related though, as this exception is already written into the log when my instance is started.

Other (probably) important facts:

The files in question can be found through the Open Resource dialog.

The files ARE part of the build path.

The java editor can work with the classes just fine. Also more complex operations, e.g. the call hierarchy, do work just fine.

The workspace this problem happens in is rather complex, made up of several 20-30 projects with interdependencies.

The problem can also be reproduced in my old Galileo SR1 installation (build ID 20100218-1602).

Reproducible: Always

Steps to Reproduce:
1. Start Eclipse
2. Hit <Ctrl>+<T>
3. Type class name -> nothing appears
Comment 1 Michael Heß CLA 2010-07-02 07:47:14 EDT
Created attachment 173292 [details]
log of my workspace after starting helios
Comment 2 Deepak Azad CLA 2010-07-02 08:01:53 EDT
(In reply to comment #0)
> Steps to Reproduce:
> 1. Start Eclipse
> 2. Hit <Ctrl>+<T>
I assume this is a typo and you meant 'Ctrl+Shift+T'? No?

> 3. Type class name -> nothing appears
Comment 3 Markus Keller CLA 2010-07-02 08:46:29 EDT
Moving to JDT/Core for the exception in comment 1.

Can you try whether other search operations for the affected classes work?
Select the class name and do Search > Declarations > Workspace, or use the Search dialog (Ctrl+H) and search for declarations of the class.

Are these source files special anyhow?
- Are they generated?
- Do they contain multiple type declarations or no type whose name matches the *.java file name?
- Do they contain compile errors?
Comment 4 Michael Heß CLA 2010-07-02 08:52:58 EDT
(In reply to comment #3)
> - Do they contain multiple type declarations or no type whose name matches the
> *.java file name?

Doooh, stupid me. Yes, they are indeed generated, and more important: the filename does NOT match the classes which are defined in there. If I search for the types defined in there, I can find them. So everything is working correctly. Cannot find a type that simply is not there. Sorry for that, guess it is time to get out of the office and start the weekend. ;-)

From my perspective this can be marked as CLOSED/INVALID. Don't know if you want to keep this bug for the exception? Leaving it as RESOLVED for now.

Thanks for the enlightenment!
Comment 5 Olivier Thomann CLA 2011-01-25 11:18:49 EST
Verified.