Re: Source.baseURL() overhead when using custom URL protocol scheme / stream handler

2016-06-28 Thread Hannes Wallnöfer
Axel, I’ve filed this bug and looked at various options for fixing it: https://bugs.openjdk.java.net/browse/JDK-8160435 The simplest solution seems to be to use java.net.URI instead of java.net.URL. It provides a isOpaque() method which will properly recognize your URIs as non-hierarchical. It

Re: Source.baseURL() overhead when using custom URL protocol scheme / stream handler

2016-06-28 Thread Hannes Wallnöfer
Hi Axel, Thanks for the explanation and code to reproduce the problem. I’m looking at it right now. Hannes > Am 27.06.2016 um 23:53 schrieb Axel Faust : > > Hello, > > TL;DR : I use custom URL protocol schemes and stream handlers that are not > globally registered. This causes excessive hand