Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329922 - StreamHanderFactory should be very careful to not throw errors or runtime exceptions
Summary: StreamHanderFactory should be very careful to not throw errors or runtime exc...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 11:41 EST by Thomas Watson CLA
Modified: 2010-11-19 16:20 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Watson CLA 2010-11-10 11:41:54 EST
There are cases where I have seen the StreamHandlerFactory throw errors or runtime exceptions.  Most of the time this is some kind of recursive call into the handler, like bug303842.

We should likely be more careful and catch all throwables in org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createURLStreamHandler(String) and log the error and return null to let the VM try to find a built-in URL handler.  Otherwise we completely blow up.
Comment 1 Thomas Watson CLA 2010-11-19 16:20:43 EST
Fixed in head.