Bug 216940

Summary: Order and Export settings do not affect source location at runtime
Product: [Eclipse Project] JDT Reporter: Brian Cort <briancort>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jerome_lanneluc
Version: 3.4   
Target Milestone: 3.4 M6   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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