Bug 31225 - Source attachment not found
Summary: Source attachment not found
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-07 05:40 EST by Kai-Uwe Maetzel CLA
Modified: 2003-02-07 14:41 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai-Uwe Maetzel CLA 2003-02-07 05:40:43 EST
- install a JRE 1.4.1
- enable use of JRE containers
- create a Java project
   -> JRE container is on the class path
   -> the jsse jat does not have a source attachement
- Create a zip containing the package javax.net and the java files for each of 
the class files that are in the same package as in the jsse jar.
- attach it as source to jsse.jar
-> no effect, source is still not found for these classes
Is this on purpose?
Comment 1 Olivier Thomann CLA 2003-02-07 09:02:08 EST
None of the .class files contained in jsse.jar has its source in src.zip which
is contained in the JDK1.4.1 install dir. I don't see how we could find a source
in this case.
Do you have the source of these classes?
Comment 2 Olivier Thomann CLA 2003-02-07 09:03:29 EST
Could you please send me the source you used for the second part of the steps to
reproduce? Because in my JDK1.4.1 installation, I don't have the source for the
classes inside jsse.jar.
Comment 3 Kai-Uwe Maetzel CLA 2003-02-07 09:23:57 EST
For clarification:
- intially not having any source attachment is the expected behavior
- the source zip I attached is a fake and it is, as described, incomplete as it 
contains a single package only.
Comment 4 Olivier Thomann CLA 2003-02-07 11:52:36 EST
We retrieve the source according to the source attribute when one is available.
If I take the example of the javax.net.DefaultServerSocketFactory.class. The
source attribute is DashoA6275. So if you want the source to be retrieve, you
should create a zip file which contains a file called javax.net.DashoA6275. And
in this file you can define the 4 classes.
Then the source is mapped properly. I don't see why we would try to infer the
source name if there is a source attribute. If you absolutely want a source to
be attached, follow the source attribute name and everything will work fine.
Ok to close?

Comment 5 Olivier Thomann CLA 2003-02-07 14:41:17 EST
Closing. This is not a bug. The source attribute is completely different from
the class name. If the right file name is used to create fake source, the source
attachement works fine.
Reopen if you believe this is still a bug.