Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320807 - Use of deprecated File.toURL() on org.eclipse.pde.ui project
Summary: Use of deprecated File.toURL() on org.eclipse.pde.ui project
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 320803
  Show dependency tree
 
Reported: 2010-07-24 09:18 EDT by Petri Tuononen CLA
Modified: 2010-07-26 11:43 EDT (History)
1 user (show)

See Also:


Attachments
Changes calls from toURL() -> toURI().toURL() (3.95 KB, patch)
2010-07-24 09:18 EDT, Petri Tuononen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petri Tuononen CLA 2010-07-24 09:18:33 EDT
Build Identifier: 20100617-1415

Using deprecated method toURL() from the type File is not recommended and could be changed to toURI().toURL() to escape any special characters.

Reproducible: Always
Comment 1 Petri Tuononen CLA 2010-07-24 09:18:52 EDT
Created attachment 175146 [details]
Changes calls from toURL() -> toURI().toURL()
Comment 2 Curtis Windatt CLA 2010-07-26 11:43:44 EDT
You cannot simply change one usage to the other.  Once certain characters are escaped, they must be unescaped before using in various files/jobs.  Furthermore, any comparisons between unescaped and escaped urls will fail where they used to pass.

This has been considered before and it was decided that the consequences of changing are worse than the warning.