Bug 132984 - parsing of classesd if more than one class in one file
Summary: parsing of classesd if more than one class in one file
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-23 07:08 EST by Klaus Dicks CLA
Modified: 2006-03-27 05:16 EST (History)
0 users

See Also:


Attachments
File with parsing errors (23.45 KB, text/plain)
2006-03-24 02:51 EST, Klaus Dicks CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Dicks CLA 2006-03-23 07:08:45 EST
on my project there is a class file which contains more than on class. On refresh or update the IDE won't find the second class defined in the file. If I change and save the file, the class is found.
Comment 1 Frederic Fusier CLA 2006-03-23 08:03:54 EST
What is your build ID? (Help->About Eclipse SDK)
Comment 2 Klaus Dicks CLA 2006-03-23 08:16:12 EST
Eclipse SDK

Version: 3.2.0
Build id: I20060223-1656
Comment 3 Frederic Fusier CLA 2006-03-23 09:23:54 EST
Thanks, that's 3.2 M5a, so secondary types should work.
Can you attach the class file to this bug?
How did you get it in your workspace: import, copy/paste, other?
Comment 4 Klaus Dicks CLA 2006-03-24 02:51:00 EST
Created attachment 36869 [details]
File with parsing errors
Comment 5 Klaus Dicks CLA 2006-03-24 02:52:08 EST
I've checked out the file via cvs to my workspace
Comment 6 Frederic Fusier CLA 2006-03-24 05:05:05 EST
I can't reproduce your problem. 
Using a simpler test case:
Test.java
  public class Test {}
  class Secondary {}

Here's my scenario:
1) Create Test class in a workspace (say wksp1)
2) Release this new class in CVS repository
3) In another workspace (say wksp2), I replace my project with HEAD content
4) Open Type Dialog and type "Secondary"
 => I correctly see the new secondary type "Secondary" on top of proposed classes

I got same correct result if at step 3) I do a syncronization + update or a check-out from repository in a third workspace where my project didn't exist.

I've done this test with last integration build I20060322-1335 and also 3.2 M5, same correct result.

Did I miss something?
Comment 7 Klaus Dicks CLA 2006-03-27 04:26:11 EST
This morning I installed build I20060322-1335 and created my projects new and the error doesn't occur any more. I think it's solved.
Comment 8 Frederic Fusier CLA 2006-03-27 05:16:08 EST
Fixed would imply that we have changed something in the code for this issue...
=> reopen to change resolution
Comment 9 Frederic Fusier CLA 2006-03-27 05:16:27 EST
As I didn't succeed to reproduce in 3.2 M5, I would prefer to say that it simply works for me (and for you now)...