Bug 79288 - Code assist offers types which are out of scope ==> compile errors
Summary: Code assist offers types which are out of scope ==> compile errors
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-23 10:07 EST by Dani Megert CLA
Modified: 2005-05-12 13:28 EDT (History)
0 users

See Also:


Attachments
Fix (989 bytes, text/plain)
2005-04-13 10:59 EDT, David Audel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2004-11-23 10:07:26 EST
I200411230800

Test Case:
1. start fresh workspace
2. import plug-in org.eclipse.jdt.core as Binary project (not linked)
3. create new plug-in project P (enter name, click Next and click Finish)
4. add org.eclipse.jdt.core as pre-req into plugin.xml
5. open PPlugin.java
6. in the constructor code add a third line and type "DefaultL"
7. Ctrl+Space
==> DefaultLineTracker is suggested which is wrong.
8. Select it
==> errors: import cannot be resolved
Comment 1 David Audel CLA 2005-04-13 10:57:10 EDT
The JavaSearchScope of the SearchableEnvironment contains not exported entries
of required project.
Comment 2 David Audel CLA 2005-04-13 10:59:01 EDT
Created attachment 19867 [details]
Fix
Comment 3 David Audel CLA 2005-04-13 11:05:02 EDT
Fix released and test added
  CompletionTests2#testBug79288
Comment 4 Olivier Thomann CLA 2005-05-12 13:28:04 EDT
DefaultLineTracker is not offered anymore.
Verified in I20050510-0010 + JDT/Core v_556