Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 46510

Summary: display source attachment in JRE lib list
Product: [Eclipse Project] JDT Reporter: paul moore <moopa06>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description paul moore CLA 2003-11-12 14:07:34 EST
If you change the source dir for rt.jar to point at a private copy of the 
source then the JRE 'manager' thinks that the binaries are coming from an non 
standard place too. SO the checkbox 'use default system libraries' gets checked 
off.
This is important becuase then programs gets run with explicit classpath set 
rather than defaulting, this stops JCE from working (or anything that wants 
trusted code). You have to keep going back to the JRE settings page (and this 
in turn blows away the source binding)
Comment 1 Darin Wright CLA 2003-12-01 10:54:43 EST
The JCE problem has been fixed by allowing the bootpath to be pre-
pened/appended to. You could leave the classpath alone and instead, only change 
the source lookup path (put the desired source first on the source lookup path).

*** This bug has been marked as a duplicate of 38370 ***
Comment 2 Darin Wright CLA 2003-12-01 12:47:05 EST
I'll re-open this. The problem here is that changing a source attachment 
creates a non-default runtime classpath. The classpath is actually unchanged - 
only the source is different.
Comment 3 paul moore CLA 2003-12-01 13:30:19 EST
repro steps
1. install java source code in, say, c:\javasource
2. ensure JRE set to 'use default lib path'
3. in package explorer browse to rt.jar in some project, choose any class and 
double click
4. when prompted 'rt.jar has no source code' - point eclipse at c:\javasource
5. now go back to windows preferences and look at JRE. 'use default library 
path' is checked off

Comment 4 Darin Wright CLA 2004-06-11 11:19:43 EDT
This isn't a bug. You have changed the default source attachment, which means 
the libs are not in their default settings anymore. We should however display 
the source attachments in the list, so you can see what they are. This does 
not affect the bootpath computation when launching.
Comment 5 Darin Wright CLA 2005-07-06 16:18:31 EDT
This is now fixed. The source attachments are displayed as children of the 
archives (same as in the build path). See bug 89935, where this problem was 
fixed.
Comment 6 Darin Wright CLA 2005-07-06 16:18:50 EDT

*** This bug has been marked as a duplicate of 89935 ***