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 <i30...@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. >