Re: Issue with BuiltinClassLoader.ucp field not being visible

2021-08-10 Thread Luke Hutchison
On Tue, Aug 10, 2021 at 1:34 AM Luke Hutchison wrote: > Maybe that should be part of the Instrumentation class, so that it is only > accessible to Java agent code that is able to get a reference to an > Instrumentation object. > Actually I take that last part back, that would not be very helpful

Re: Issue with BuiltinClassLoader.ucp field not being visible

2021-08-10 Thread Alan Bateman
On 10/08/2021 07:58, Luke Hutchison wrote: On Tue, Aug 10, 2021 at 12:51 AM Luke Hutchison wrote: Could a getURLClassPath() method please be added to BuiltInClassLoader? For security reasons, the getURLClassPath() method should return a copy of ucp, not the reference to ucp, to prevent the c

Re: Issue with BuiltinClassLoader.ucp field not being visible

2021-08-09 Thread Luke Hutchison
On Tue, Aug 10, 2021 at 12:51 AM Luke Hutchison wrote: > Could a getURLClassPath() method please be added to BuiltInClassLoader? > For security reasons, the getURLClassPath() method should return a copy of ucp, not the reference to ucp, to prevent the caller from modifying the system classpath.