Bug 41444 - [navigation] error dialog on opening class file
Summary: [navigation] error dialog on opening class file
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-12 13:52 EDT by Adam Kiezun CLA
Modified: 2004-02-12 10:16 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (721 bytes, patch)
2003-12-18 11:26 EST, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2003-08-12 13:52:00 EDT
smoke test for 20030812
try opening a .class file from the navigator - you get an error dialog.
the class file should be not from an archive
Comment 1 Dani Megert CLA 2003-08-15 05:36:04 EDT
Probably caused by a change in J Core: in 2.1 the source was found for class
files that were in the same folder as their Java files (i.e. when project is the
source folder).

Moving to J Core to comment.
Comment 2 Philipe Mulet CLA 2003-09-01 04:33:56 EDT
Please reopen once steps to reproduce are added.
Comment 3 Dani Megert CLA 2003-09-08 08:55:45 EDT
You have to open a generated .class file from the Navigator. Here are the
individual steps to reproduce:

1. Start fresh workspace
2. Create a new Java project - name it "JUnit"
3. Create a new class - name it "Test"
4. Open the Navigator
5. Select the generated class file Test.class
6. Open it
Comment 4 Jerome Lanneluc CLA 2003-12-18 11:26:36 EST
Created attachment 7226 [details]
Proposed patch
Comment 5 Jerome Lanneluc CLA 2004-01-06 05:34:03 EST
Released patch and added regression test AttachSourceTests.testClassFileInOutput
()
Comment 6 David Audel CLA 2004-02-12 10:16:33 EST
Verified for 3.0M7