Bug 226259 - Open Type does not work with nested build path.
Summary: Open Type does not work with nested build path.
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 RC1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-09 06:21 EDT by Nikunj CLA
Modified: 2008-05-13 09:10 EDT (History)
2 users (show)

See Also:


Attachments
screenshot for "Open Type" error (11.93 KB, image/png)
2008-04-11 05:58 EDT, Nikunj CLA
no flags Details
Project reproducing the problem (1.75 KB, image/zip)
2008-05-12 12:26 EDT, Jerome Lanneluc CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikunj CLA 2008-04-09 06:21:23 EDT
I have my source tree like this.
Root-|
     |-A1-|
     |    |-A1.java
     |-A2
     |-File.java

In my build path I have added "Root" with inclusion pattern File.java.
Also I have A1 and A2 in build path.

It works till I refresh. After refreshing, "Open Type" does not find anything under A1 such as A1.java.
It shows "File could not be found in Root. Make sure all workspace resources are refreshed." Screenshot attached.

I've also tried with excluding A1,A2 from "Root", still same result.
Comment 1 Martin Aeschlimann CLA 2008-04-11 05:50:21 EDT
can you add the screenshot? or maybe the zipped project?
Comment 2 Nikunj CLA 2008-04-11 05:58:36 EDT
Created attachment 95654 [details]
screenshot for "Open Type" error
Comment 3 Jerome Lanneluc CLA 2008-05-12 12:26:54 EDT
Created attachment 99743 [details]
Project reproducing the problem

To reproduce:
1. Start a new workspace
2. Import the attached project
3. Open Type
4. Type A1
Observe: You get the error dialog reported above
Comment 4 Jerome Lanneluc CLA 2008-05-12 12:28:30 EDT
These steps reproduce the problem in 3.3.2. However they don't using  I20080510-2000. So this is fixed for 3.4. Marking as WORKSFORME.
Comment 5 Jerome Lanneluc CLA 2008-05-13 06:10:47 EDT
Note the last step was missing. Exact steps should be:
1. Start a new workspace
2. Import the attached project
3. Open Type
4. Type A1
5. Press OK
Observe: You get the error dialog reported above
Comment 6 Maxime Daniel CLA 2008-05-13 09:10:59 EDT
Could reproduce with jdk 1.5 only (jdk 6 gets it fine in all cases).
3.3.2 shows the erroneous behavior, while I20080510-2000 does not.
I wish we had a regression test, but I will nevertheless tag this as:
Verified for 3.4 RC1 using I20080510-2000.