Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 242561 - URLStreamHandlerProxy does not delegate new Java 5 method: openConnection(URL u, Proxy p);
Summary: URLStreamHandlerProxy does not delegate new Java 5 method: openConnection(URL...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4.1   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 133048
Blocks:
  Show dependency tree
 
Reported: 2008-07-30 09:03 EDT by Thomas Watson CLA
Modified: 2008-07-30 10:46 EDT (History)
5 users (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 2008-07-30 09:03:33 EDT
Consider for 3.4.1

+++ This bug was initially created as a clone of Bug #133048 +++

In eclipse Build id: I20051102-1600 I am creating a new HTTP/HTTPS url handler to provide failover support and more transparent proxy/authentication usage.  

I have registered my URLStreamHandlerService with the BundleContext, however it seems that since the new Java 5 method URLStreamHandler.openConnection(URL u, Proxy p) is not handled by URLStreamHandlerProxy it must be handled by the superclass, URLStreamHandler - which has not implemented this method.

It seems it would be nice to add something like this to URLStreamHandlerProxy so that my handler can deal with the call:
	
protected URLConnection openConnection(URL url, Proxy p) throws IOException 
{
   return realHandlerService.openConnection(url,p);
}
Comment 1 Thomas Watson CLA 2008-07-30 10:46:54 EDT
Fixed in 3.4.1.  Will not be available until August 6th 3.4.1 build.