Oddity in ModuleClassLoader.isModulePresent

Jesse Glick jesse.glick at oracle.com
Thu Dec 22 11:07:43 PST 2011


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?



More information about the jigsaw-dev mailing list