Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320807

Summary: Use of deprecated File.toURL() on org.eclipse.pde.ui project
Product: [Eclipse Project] PDE Reporter: Petri Tuononen <petri.tuononen>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 320803    
Attachments:
Description Flags
Changes calls from toURL() -> toURI().toURL() none

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.