ClassLoader.getParent to throw exception for module classloader

Rémi Forax forax at univ-mlv.fr
Fri Jun 22 03:20:45 PDT 2012


On 06/22/2012 11:42 AM, Alan Bateman wrote:
> On 22/06/2012 09:55, Paul Sandoz wrote:
>> :
>>
>>
>> I updated the webrev for future reference.
>>
> BTW: What is the reason for Platform.isModuleClassLoader when you can 
> simply check if this is an instanceof ModuleClassLoader?

instanceof is evil :)
and having a method that document that a module classloader has not the 
same behavior
as a 'raw' classloader is a good idea (but maybe the method should be 
moved in ClassLoader).

>
> -Alan.

Rémi




More information about the jigsaw-dev mailing list