Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 88267 - [doc] [API] Platform.asLocalURL javadoc incorrect
Summary: [doc] [API] Platform.asLocalURL javadoc incorrect
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC4   Edit
Assignee: Rafael Chaves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 99047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-16 18:29 EST by Jeff McAffer CLA
Modified: 2005-06-30 22:07 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff McAffer CLA 2005-03-16 18:29:23 EST
I believe that it is no longer possible for asLocalURL to return a jar:file: 
URL.  This is likely a throw back to the days before bundleentry: and friends.  
There should be three cases
1) plugin is a dir.  asLocalUrl is a no-op
2) plugin is a jar.  asLocalURL extracts adn returns a file: URL
3) plugin is somewhere whacky (http:...).  asLocalURL extracts and returns a 
file URL.

We should review the code and ensure that this is true and then update the 
Javadoc.
Comment 1 John Arthorne CLA 2005-03-30 14:29:12 EST
Moving confirmed bugs out of "inbox"
Comment 2 John Arthorne CLA 2005-03-31 10:16:11 EST
Moving milestone.
Comment 3 Jeff McAffer CLA 2005-04-18 10:27:00 EDT
See also bug 91525.

asLocalURL doc says that dirs cannot be extracted.
Comment 4 Rafael Chaves CLA 2005-06-20 13:52:36 EDT
*** Bug 99047 has been marked as a duplicate of this bug. ***
Comment 5 Rafael Chaves CLA 2005-06-22 13:13:21 EDT
Fixed in HEAD.