Bug 216940 - Order and Export settings do not affect source location at runtime
Summary: Order and Export settings do not affect source location at runtime
Status: VERIFIED DUPLICATE of bug 207890
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-29 12:15 EST by Brian Cort CLA
Modified: 2008-03-25 12:50 EDT (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 Brian Cort CLA 2008-01-29 12:15:40 EST
Build ID: M20071023-1652

Steps To Reproduce:

1. Create a project with some source code --> project A.

2. Compile poject A into a jar file (a.jar) and place it in another project B.

3. Set up project B's build path to both reference project A (its source) and the compiled a.jar file. From project B, export a.jar file and not project A.

4. Create a project C referencing project B. In project C create a source file (C.java) referencing a class in project/jar A (A.class).

5. From the editor for C.java, jump to A.java (ctrl-click a reference to A.class)

--> Because the jar file is exported, as expected the decompiled A.class file is presented, rather than the source. ...But we want to use the source code, so:

6. Change the order and export settings of project B to export project A and not export a.jar.

7. Now try to jump from C.java to A.java.

==> We would now expect to be presented with the source of A.java from project A. Instead we are still presented with the decompiled source from the a.jar file.

More information:
Workaround: You need to restart eclipse for the order and export setting to take effect.
Comment 1 Jerome Lanneluc CLA 2008-02-05 13:14:45 EST
Fix for bug 207890 fixed this scenario as well.

*** This bug has been marked as a duplicate of bug 207890 ***
Comment 2 Kent Johnson CLA 2008-03-25 12:50:18 EDT
Verified for 3.4M6