MethodHandles.Lookup.defineResource?

Stephen Colebourne scolebourne at joda.org
Tue Aug 28 16:38:47 UTC 2018


On 28 August 2018 at 08:17, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> On 28/08/2018 07:55, Peter Levart wrote:
> Right, and any class injected with Lookup.defineClass can be located with
> methods such as Class.forName or Lookup.findClass. There is no equivalent
> for resources, at least not without extending the ClassLoader API in ways
> that would work with existing implementations.

OK, so maybe we've established what could be done - a new method on
ClassLoader that would initially not work on implementations outside
the JDK.

So, there is a functionality gap here, but I'm guessing no particular
desire to make a change.

Stephen


More information about the core-libs-dev mailing list