JEP 330 class loader getResourceAsStream

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 27 18:09:24 UTC 2018


On 27/08/2018 18:49, Jonathan Gibbons wrote:
>
> Alan,
>
> It looks like we don't even need to register a 
> URLStreamHandlerProvider, we can provide the URLStreamHandler when we 
> create the URL. :-)
This will only work for URL objects returned by getResource. If you 
create the URL by other means, and without specifying the 
URLStreamHandler, then the URL constructor will fail as the protocol 
won't be known.

-Alan.


More information about the core-libs-dev mailing list