RFR: 8210839 Improve interaction between source launcher and classpath

Jonathan Gibbons jonathan.gibbons at oracle.com
Fri Sep 21 17:25:56 UTC 2018



On 09/21/2018 10:22 AM, Alan Bateman wrote:
> On 21/09/2018 18:15, Jonathan Gibbons wrote:
>>
>> The check at L616 is because super.getResources will do "the normal 
>> delegation thing" and will return an enumeration of the resources in 
>> the parent class loader followed by resources in the child class 
>> loader. Since we already have found the classes in the child class 
>> loader, we want to avoid the duplicate that will be found by 
>> super.getResources.
>>
> Shouldn't that be parent.getResources() rather than 
> super.getResources() ?
>
> -Alan

You're right; that would indeed be a simpler way ;-)

-- Jon


More information about the compiler-dev mailing list