JEP 330 class loader getResourceAsStream (original) (raw)

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 27 17:47:26 UTC 2018


On 27/08/2018 15:47, David Lloyd wrote:

: AFAIK any code would expect that resources available as streams would generally also be available as URLs. I'm not sure that distinguishing between basic and advanced code really clarifies anything in terms of the question. I think you've mis-read my mail. I was just observing that newbie/simple programs executed by the source file launcher are unlikely to need to locate the class bytes via the getResourceXXX APIs. That doesn't mean the issue should be ignored, it just means it may not be high priority. In any case, I see Jon has created an issue to track this. Also the URL protocol handler pluggability that was added in Java SE 9 will help as it makes me it easy for the jdk.compiler module to include a URLStreamHandlerProvider.

-Alan



More information about the core-libs-dev mailing list