Summary: | Source not found in source attachment | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Robert Schröder <rosch75_news> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 2.1 | ||||||
Target Milestone: | 2.1.1 | ||||||
Hardware: | PC | ||||||
OS: | Windows NT | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Robert Schröder
2003-04-02 05:28:41 EST
I could not reproduce with a simple test case. Please attach one of your binary jars and its corresponding source jar with exact steps to reproduce. Without steps to reproduce, I will close this bug. I could not reproduce it with a simple example. So there is something specific about your jar files. Could you please attach one of each kind (source and binary)? Thanks. The same behavior occurs by me after the installation of version 2.1. M4 works well. Wrong source and bin jar can not probably cause this problem, because it doesn't work with all of them (commercial or my own). Could you please point me to where I could get such jar files? I tried to reproduce it and I could not. So without steps to reproduce, I cannot do anything on this PR. In this project, the developed sources are under the package DE.company_name.lots_of_subpackages. At my local disk are only the source-files (*.java) checked out, which I need. The rest of the project's sources are provided as compiled binaries at 107 jar-files and as 107 jar-files with the source-files (it's a big project). The packages in these jar-files also start with DE.company_name.* . I thought, the reason could be a malformed .classpath-file, but I reformatted the .classpath-file and checked with RC1 (fine) and 2.1 (didn't worked). (I attached a screenshot of the part of the .classpath-file I thought of to be broken.) My first eclipse-version was the M3 of 2.1. I created my project with this eclipse-version. I installed also the next eclipse-stable-builds: I deleted all directories beneath my eclipse-folder except the workspace-folder. Then I extracted the eclipse-zip-file. I added the jar-files to my project: - Window | Preference | Java | Classpath Variables | New Name: PCS_LIBS Path: Folder : /src (see structure in folder_index.txt). - myProject | right-mouse-click | Properties | Java Build Path | Tab Libraries - Add Variable--> I selected the Classpath Variable PCS_LIBS --> Extend --> I selected all jars under the lib directory (clicked on the first jar, pressed and hold SHIFT and clicked on the last jar). - I selected on the jars, choose Source Attachment and clicked on the button Edit: Variable: PCS_LIBS Extension: bst/src/<corresponding soource-jar> - Some of the sources I added this way. - But most of the sources I added by editing the .classpath-file at the root of my project-folder. And after the next eclipse start, all the jar-files were shown with their corresponding source-jar-files. With RC1 this worked fine - all the sources were found. I tested with this behaviour with a smaller number of source-attached jars (I only tested with a Classpath Variable with only 1 jar + attached source): 2.1 correctly showed the expected source. This was an external jar (http://www.jGoodies.com/download/commons/animation-nc-1_0_7.zip) Another test with one with our jar-files showed the (at my computer) typical behaviour: "The source attachment does not contain..." The jar-files are compiled under java version java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) Maybe this problem correlates with the number of the jar-files? I send a zip with jars to your mail-address. I reproduced the problem. It comes from the fact that you are using package names that don't follow the conventions. If you rename 'DE' to 'de', it should work fine. I will fix this problem since it is legal to define a package name starting with an capitalized letter even if this doesn't follow the conventions. Fixed and released in HEAD stream. Regression test added. Olivier - please backport to 2.1 maintenance stream. Backported to 2.1 maintenance stream. Fixed in 2.2 stream as well. Verified. Verified for 3.0M1. "the source attachment does not contain the source" this is from the latest release of eclipse! Is there a fix? Thanks, George This might be a new problem. Please open a new bug report with steps to reproduce. Created attachment 31863 [details]
sss
|