Bug 247608

Summary: Editor cannot find te source for referenced libraries, containing a valid source location (based on an extended variable)
Product: [Eclipse Project] JDT Reporter: Arjen <arjenwisse>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, Olivier_Thomann, srikanth_sankaran
Version: 3.4Keywords: needinfo
Target Milestone: 3.6 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Arjen CLA 2008-09-17 04:29:52 EDT
In my project I have some referenced libraries. However when I want to open a class of such a library, which contains a valid source location (which is based on a variable, extended with some folders to get at the right place) it will not be able to find it. After modifying the source location, it is able to find it. For example:

My source exists at: C:\mysource\somelib\src\java
I have a variable (called 'MY_SRC') pointing to C:\mysource

My source location is: /MY_SRC/somelib/src/java
After starting Eclipse it is not able to find the source for a certain class within that library. When I remove the last part of the path and make it '/MY_SRC/somelib/src' it is able to find it. However, after restarting eclipse it cannot find it again. So, after changing it back to '/MY_SRC/somelib/src/java' it is able to find it again. Currently I am continuesly switching between those two settings for all my referenced libraries.
Comment 1 Jerome Lanneluc CLA 2008-09-17 07:00:42 EDT
Unfortunately, I cannot reproduce the problem. Would you have an example project and source directory that show the problem? Also what is your Eclipse build id?
Comment 2 Arjen CLA 2008-09-22 02:34:02 EDT
The Eclipse build id is: I20080617-2000

I will attach a sample project later
Comment 3 Olivier Thomann CLA 2009-12-11 17:07:14 EST
Closing as WORKSFORME.
No project was attached.
Please reopen if you can provide more information or steps to reproduce.
Comment 4 Ayushman Jain CLA 2010-01-25 05:42:07 EST
verified for 3.6M5.
Comment 5 Srikanth Sankaran CLA 2010-01-25 05:51:32 EST
Verified.