Community
Participate
Working Groups
When attaching source to the default rt.jar, the package root is not automatically populated where it should (looking for corresponding entries from the binary jar). NOTES: EG (4/29/2001 4:28:38 PM) at this point the UI doesn't have special knowledge that the JAR is the rt.jar. The property page shows for any JAR. Given the browse button it isn't critical to hard code this know how. EG (5/31/2001 12:55:27 PM) the CORE should do this all behind the scenes and not expose the source path to the clients. Something for after June. PM (6/19/2001 12:51:03 PM) Should investigate a fix. This would however mean an API change (no more source root path).
Not critical
PRODUCT VERSION: SDK 46
Reopening
Clearing resolution
*** Bug 3359 has been marked as a duplicate of this bug. ***
Created attachment 2032 [details] Patch to compute the root path automatically
I don't want to lose this code. So I put it here for now.
We need a way to distinguish between no source root and an empty source root. The code to infer the source root is ready, but cannot be fully tested without resetting manually the source root to null when it is already set.
The source root is no longer persisted if set to null. Also changed the algorithm to compute the root from the first .java file's package declaration.
Verified.