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

Bug 256275

Summary: [sourcemapper] Change attached source not working
Product: [Eclipse Project] JDT Reporter: Thom Hehl <Thomas.Hehl>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Thom Hehl CLA 2008-11-24 08:39:27 EST
Build ID: M20080911-1700

Steps To Reproduce:
1. Click on the function name inside the java cryptography library. (update(byte[])).
2. Press F3 to bring up the source
3. Click Change Attached Source from the Source not found screen.
4. Point to the directory where the source lives, e.g., mine is d:\java\othersrc which contains javax\crypto\Cipher.java.

Source code never displays. Tried using folder, workspace, and file to no avail. Tried re-starting windows, no better.



More information:
I am attempting to attach the source for the Java Cryptography libraries (JCE) so that I can debug a problem with it. Simply can't attach the source.
Comment 1 Jerome Lanneluc CLA 2008-11-25 07:21:35 EST
To reproduce:
1. Create directory d:\temp\othersrc\javax\crypto
2. Add Cipher.java in this directory with the following content:
package javax.crypto;
public class Cipher {
}
3. Start a new workspace on a 1.6 JRE
4. Create a Java project
5. Open javax.crypto.Cipher.class
6. Press the "Changed Attached Source..." button in the .class file editor
7. Press External Folder
8. Choose d:\temp\othersrc
9. Press OK twice
Observe: The .class file editor still shows no source
Comment 2 Jerome Lanneluc CLA 2008-11-25 07:44:30 EST
Cipher.class says that its source file name is "DashoA13*.." which is highly unusual. I don't think you have a "DashoA13*...java" file in your othersrc directory, do you?
Comment 3 Thom Hehl CLA 2008-11-25 08:17:52 EST
(In reply to comment #2)
> Cipher.class says that its source file name is "DashoA13*.." which is highly
> unusual. I don't think you have a "DashoA13*...java" file in your othersrc
> directory, do you?
> 

I don't.
Comment 4 Eclipse Genie CLA 2020-05-15 13:12:08 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.