Bug 81092 - [search] new type not picked up.
Summary: [search] new type not picked up.
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 05:57 EST by Tom Hofmann CLA
Modified: 2004-12-15 13:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2004-12-15 05:57:40 EST
M4 testing (I20041214-2000-gtk)

1. created a new 1.4 project, package src/com.example.m4testing
2. new interface wizard, create interface "ITester"
3. new class wizard, create class "Tester"
  - in the wizard, press A to add an interface
    Expected: ITester shows up in the Interface browser
    Actual: it does not

4. in "Tester", try to insert the implements clause to have Tester implement
ITester.
  Expected: ITester shows up as content assist proposal
  Actual: it does not show up

-> The new interface does not exist neither in the alltypes cache nor is it
returned from content assist (this is why I figured this is a core problem).

-> searching for ITester type declarations works
Comment 1 Tom Hofmann CLA 2004-12-15 05:58:41 EST
Note that compiling works fine, i.e. if I add ITester manually to the
implemented interfaces of Tester, I get the error that I need to implement the
declared methods.
Comment 2 Frederic Fusier CLA 2004-12-15 06:27:21 EST
Cannot reproduce using last 3.1 M4 candidate build (I200412142000).
Which build are you using?
Comment 3 Tom Hofmann CLA 2004-12-15 06:41:14 EST
> M4 testing (I20041214-2000-gtk)
Comment 4 Frederic Fusier CLA 2004-12-15 07:03:12 EST
So we have the same build... (I also test using Linux-GTK).
Did you create your interface/class in package com.example.m4testing or in
default package...?

When creating interface in default package and creating class in
com.example.m4testing package, I get the interface in the list when I push on
Add button of wizard but not in the code assist list. This behavior is normal as
since 1.4, default package is not in the classpath...

Conversly, when I create the interface in com.example.m4testing package and
creates class in default package I have no error...

But unfortunately, I never encounter your problem (ie. ITester neither in wizard
list nor in code assist list...).
Comment 5 Tom Hofmann CLA 2004-12-15 07:10:16 EST
I created it directly in the said package.
Comment 6 Frederic Fusier CLA 2004-12-15 07:20:24 EST
I really do not understand... I've also tried in WinXP and everything works well
as for Linux-GTK.

So, perhaps asking stupid questions will help:
1) create a new 1.4 project means create project using default 1.4.2 VM or did
you specify something special while creating it?
2) package src/com.example.m4testing means create source folder 'src', then
package com.example.m4testing in it?
Comment 7 Tom Hofmann CLA 2004-12-15 07:26:18 EST
yes to both - everything straight forward, no special tricks.

I can try on a fresh workspace, if you like (this was in my normal workspace).
Comment 8 Frederic Fusier CLA 2004-12-15 07:30:56 EST
yes it could be interesting...
Comment 9 Tom Hofmann CLA 2004-12-15 11:02:55 EST
cannot reproduce with fresh workspace, but it is consistently failing in my
existing workspace (also after restarting the workbench).
Comment 10 Tom Hofmann CLA 2004-12-15 11:08:52 EST
Ok, I've found it. The project *name* must contain numbers. 

The test case fails with projects name ZZZ14 and ZZZ15, but not with ZZZPickup.

Comment 11 Tom Hofmann CLA 2004-12-15 11:14:38 EST
Not true, now after failing, it consistently fails, even with non-numbered
project names.
Comment 12 Tom Hofmann CLA 2004-12-15 11:39:17 EST
The next time I will remember to check my type filters, which were set to ignore
all com* types.

sorry for the hassle!
Comment 13 Frederic Fusier CLA 2004-12-15 13:31:39 EST
no problem. happy that you found the reason... :-)