ClassLoader.getParent to throw exception for module classloader
    Paul Sandoz 
    paul.sandoz at oracle.com
       
    Fri Jun 22 01:55:45 PDT 2012
    
    
  
On Jun 21, 2012, at 6:10 PM, Alan Bateman wrote:
> On 21/06/2012 17:03, Paul Sandoz wrote:
>> :
>> 
>> In a off-list discussion there was a side comment about making ClassLoader.getParent throwing an exception for a module class loader. This type of thing is easy to loose so marking this down in email.
>> 
> There is commented out implementation of getParent in org.openjdk.jigsaw.Loader that we should probably remove too (commented out because getParent is final).
> 
Ah, well spotted.
> On the exception then wouldn't UOE be more suitable than IllegalStateException?
> 
Yes. 
I updated the webrev for future reference.
Paul.
    
    
More information about the jigsaw-dev
mailing list