JEP 330 class loader getResourceAsStream (original) (raw)
David Lloyd david.lloyd at redhat.com
Mon Aug 27 14:47:43 UTC 2018
- Previous message: JEP 330 class loader getResourceAsStream
- Next message: JEP 330 class loader getResourceAsStream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Aug 27, 2018 at 9:41 AM Alan Bateman <Alan.Bateman at oracle.com> wrote:
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.
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.
--
- DML
- Previous message: JEP 330 class loader getResourceAsStream
- Next message: JEP 330 class loader getResourceAsStream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]