ClassLoader.getParent to throw exception for module classloader
Alan Bateman
Alan.Bateman at oracle.com
Thu Jun 21 09:10:49 PDT 2012
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).
On the exception then wouldn't UOE be more suitable than
IllegalStateException?
-Alan
More information about the jigsaw-dev
mailing list