Fwd: Bug in URLConnection?

Paulo Levi i30817 at gmail.com
Mon Dec 7 07:47:12 PST 2009


Just realized you might be confused about the saving of the original
proxyselector in the test code. To be clear:
What is called and throws the StackOverflowError is the UserProxySelector
class. I just expected calling url.openConnection(Proxy.NO_PROXY); not to
call the userproxyselector (or any ProxySelector) so it shouldn't recurse so
no StackOverflowException.

Saving the original proxy selector is just not to affect any other tests.

On Mon, Dec 7, 2009 at 3:43 PM, Paulo Levi <i30817 at gmail.com> wrote:

> Huh?
> But it throws StackOverflowError. after installing UserProxySelector and
> calling any method. Just to be clear it is the right class, it is attached.
> My java version:
> E:\java\bin>java -version
> java version "1.6.0_14-ea"
> Java(TM) SE Runtime Environment (build 1.6.0_14-ea-b04)
> Java HotSpot(TM) Client VM (build 14.0-b13, mixed mode)
>
> Windows xp.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20091207/77b30f16/attachment.html 


More information about the net-dev mailing list