JEP 330 and MemoryClassLoader.getResourceAsStream

John Rose john.r.rose at oracle.com
Sat Aug 25 07:00:11 UTC 2018


On Aug 24, 2018, at 9:34 PM, Jonathan Gibbons <jonathan.gibbons at oracle.com> wrote:
> 
>> I also believe that this shouldn't require a workaround at all,
>> but should be somehow native to the JVM, as $0 is to
>> the shell.  So I also filed JDK-8209963 to track this RFE.
> We could define and use a system property with the filename.

Yep.  My sample code is designed around the hope that
we'd do that someday.  At that point, the nasty stuff at the
top could be stripped, up to the second shebang "#!",
and without the explicit -D options.

— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20180825/c7165c61/attachment.html>


More information about the compiler-dev mailing list