MethodHandles.Lookup.defineResource? (original) (raw)

Stephen Colebourne scolebourne at joda.org
Tue Aug 14 14:07:41 UTC 2018


A new method MethodHandles.Lookup defineClass() was added recently. But what about a defineResource? For adding a new resource to the classpath (such as a .txt file). I just needed such a thing, and though undoubtedly rare, all the recommended solutions use reflection and setAccessible().

thanks Stephen



More information about the core-libs-dev mailing list