# HG changeset patch # User alanb # Date 1481867218 0 # Node ID d78543be1ebbb0de920b835a5f3c3e0f3ba83aa9 # Parent 53ad1084d4cc823b88f147b3a5ae753a93181625 8170987: Module system implementation refresh (12/2016) Reviewed-by: mchung diff -r 53ad1084d4cc -r d78543be1ebb jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/trax/TemplatesImpl.java --- a/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/trax/TemplatesImpl.java Wed Dec 14 20:23:24 2016 +0000 +++ b/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/trax/TemplatesImpl.java Fri Dec 16 05:46:58 2016 +0000 @@ -32,7 +32,6 @@ import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg; import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; import java.io.IOException; -import java.io.UncheckedIOException; import java.io.NotSerializableException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; @@ -42,6 +41,7 @@ import java.lang.module.ModuleDescriptor; import java.lang.module.ModuleFinder; import java.lang.module.ModuleReference; +import java.lang.module.ModuleReader; import java.lang.reflect.Layer; import java.lang.reflect.Module; import java.security.AccessController; @@ -403,10 +403,12 @@ private Module createModule(ModuleDescriptor descriptor, ClassLoader loader) { String mn = descriptor.name(); - ModuleReference mref = new ModuleReference(descriptor, null, () -> { - IOException ioe = new IOException("<dynamic module>"); - throw new UncheckedIOException(ioe); - }); + ModuleReference mref = new ModuleReference(descriptor, null) { + @Override + public ModuleReader open() { + throw new UnsupportedOperationException(); + } + }; ModuleFinder finder = new ModuleFinder() { @Override