Oddity in ModuleClassLoader.isModulePresent

Mandy Chung mandy.chung at oracle.com
Fri Dec 23 00:06:17 PST 2011


On 12/22/2011 11:07 AM, Jesse Glick wrote:
> In java.lang.module.ModuleClassLoader:
>
>     public boolean isModulePresent(String mn) {
>         return ((org.openjdk.jigsaw.Loader)this).isModulePresent(mn);
>     }
>
> And in org.openjdk.jigsaw.Loader this method is indeed overridden.
>
> Would it not be more straightforward to just mark isModulePresent 
> abstract?

I think you're right.  This method can be an abstract method.  I make a 
note to clean this up next.

Mandy



More information about the jigsaw-dev mailing list