Re: Ugly things done to support multiple ContentHandlerFactory and URLStreamHandlerFactory

2016-10-17 Thread Chris Hegarty
Alan, Tom, On 13/10/16 19:59, Alan Bateman wrote: .. Speaking of net-dev, then maybe this thread should move there as this topic is really more of a URL issue rather than module system issue. I have replied to this over on net-dev [1] ( I hope that is ok ). We can continue the discussion

Re: Ugly things done to support multiple ContentHandlerFactory and URLStreamHandlerFactory

2016-10-13 Thread Alan Bateman
On 13/10/2016 17:23, Thomas Watson wrote: : Thanks for the pointer Alan. I'll have a look. Is there any additional documentation on this besides the javadoc? At first glance it is unclear to me what discovers the providers? Is the the URL class itself based on the thread context class

Re: Ugly things done to support multiple ContentHandlerFactory and URLStreamHandlerFactory

2016-10-13 Thread Thomas Watson
> From: Alan Bateman > Have you looked at the changes in this area in JDK 9, specifically the > changes on how protocol handlers are located and the new URL stream > handler service-provider type URLStreamHandlerProvider? > > -Alan > Thanks for the pointer Alan.

Re: Ugly things done to support multiple ContentHandlerFactory and URLStreamHandlerFactory

2016-10-13 Thread Alan Bateman
On 13/10/2016 16:46, Thomas Watson wrote: If not, are there going to be command line options that will allow us to open up deep reflection of specific VM types as a compatibility mode until we can get a proper solution? There is a command-line option, in this case `--add-exports-private