JEP 330 class loader getResourceAsStream

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 27 14:41:16 UTC 2018


On 24/08/2018 18:27, David Lloyd wrote:
> Why not go ahead and implement getResource as well?  It's not *that*
> big of a deal to add a URL handler, and it would be a fairly trivial
> one.
Right, it wouldn't be too hard but it would require a bit of plumbing to 
have it backed by the Memory* classes in the source file launcher. That 
said, a newbie starting out with "java HelloWorld.java" is unlikely to 
be writing code that needs the class bytes so it's more likely the more 
advanced cases where the code is using a library that needs the bytes.

-Alan


More information about the core-libs-dev mailing list