Issue with BuiltinClassLoader.ucp field not being visible

Alan Bateman Alan.Bateman at oracle.com
Tue Aug 10 07:16:36 UTC 2021


On 10/08/2021 07:58, Luke Hutchison wrote:
> On Tue, Aug 10, 2021 at 12:51 AM Luke Hutchison <luke.hutch at gmail.com>
> 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.
I think you need more context here. This a JDK internal class so 
shouldn't be used directly. It reads like the original message was 
looking for the value of java.class.path as a sequence of URLs, is that 
right?

-Alan


More information about the core-libs-dev mailing list