Bug 87570 - [1.5] weird code assist in package-info.java
Summary: [1.5] weird code assist in package-info.java
Status: RESOLVED DUPLICATE of bug 86167
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-09 16:50 EST by Olivier Thomann CLA
Modified: 2005-03-09 17:00 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2005-03-09 16:50:57 EST
In latest,

1) apply the patch from bug 86167.
2) create a package-info.java file in a package p;
3) Type the following without <code assist here>.

@Annot(id = 4) package p;

class Z extends <code assist here> {

}
4) Code assist where specified.
5) package-info is inserted. I have no idea where it is coming from. The fake
interface declaration package-info has been removed from the search or the indexer.
Comment 1 Olivier Thomann CLA 2005-03-09 17:00:34 EST
I think the problem comes from the fact that I need to exclude this fake type
binding.

Inserting:
if (sourceType.sourceName == TypeConstants.PACKAGE_INFO_NAME) continue;

after:
if (sourceType.sourceName == CompletionParser.FAKE_TYPE_NAME) continue;

solved the problem.
Closing as duplicate of bug 86167, because this fix should be released as a fix
for 86167. It is part of the support for the package-info file.

*** This bug has been marked as a duplicate of 86167 ***