Bug 210689 - [search] Type references are not found in import declarations when JUnit tests only use working copies
Summary: [search] Type references are not found in import declarations when JUnit test...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-22 12:15 EST by Frederic Fusier CLA
Modified: 2007-12-11 09:50 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (5.91 KB, patch)
2007-11-22 13:10 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2007-11-22 12:15:10 EST
Using HEAD.

In JavaSearchBugTests when only working copies are used for a test, then the references to types are not found in import declarations (see JavaSearchBugTests#testBug123679_wc() for a typical example).

Note that this seems to be a side effect of the fix for bug 48435 and so already exists since 3.0!
Comment 1 Frederic Fusier CLA 2007-11-22 12:31:14 EST
This is really annoying while writing complex tests for search and I would like to fix it. The first solution seems to remove the fix for bug 48435...
Comment 2 Frederic Fusier CLA 2007-11-22 13:10:48 EST
Created attachment 83557 [details]
Proposed patch

This patch passes the scenario described in bug 48435 comment 0 using the given projects zip file. It also passes all JDT/Core and JDT/UI tests.
Comment 3 Frederic Fusier CLA 2007-11-23 03:53:52 EST
Released for 3.4M4 in HEAD stream.
Comment 4 Jerome Lanneluc CLA 2007-12-11 09:50:37 EST
Verified for 3.4M4 using I20071211-0010