diff -urEbwB glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/impl/ModulesRegistryImpl.java glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/impl/ModulesRegistryImpl.java --- glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/impl/ModulesRegistryImpl.java 2020-03-24 16:11:30.751539739 +0100 +++ glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/impl/ModulesRegistryImpl.java 2020-03-24 16:11:47.559629638 +0100 @@ -55,8 +55,8 @@ return new ModulesRegistryImpl(this); } - protected Module newModule(ModuleDefinition moduleDef) { - Module m = new ModuleImpl(this, moduleDef); + protected com.sun.enterprise.module.Module newModule(ModuleDefinition moduleDef) { + com.sun.enterprise.module.Module m = new ModuleImpl(this, moduleDef); for (ModuleLifecycleListener l : getLifecycleListeners()) { l.moduleInstalled(m); } @@ -64,7 +64,7 @@ } protected List parseInhabitants( - Module module, String name, ServiceLocator serviceLocator, List postProcessors) + com.sun.enterprise.module.Module module, String name, ServiceLocator serviceLocator, List postProcessors) throws IOException { return ((ModuleImpl)module).parseInhabitants(name, postProcessors); } @@ -86,7 +86,7 @@ } ModuleId id = AbstractFactory.getInstance().createModuleId(moduleName, version); - Module module = modules.get(id); + com.sun.enterprise.module.Module module = modules.get(id); if (module!=null) { ModuleImpl privateModule = (ModuleImpl)newModule(module.getModuleDefinition()); @@ -141,7 +141,7 @@ } ClassLoaderProxy cl = new ClassLoaderProxy(new URL[0], parent); for (ModuleDefinition def : defs) { - Module module = this.makeModuleFor(def.getName(), def.getVersion()); + com.sun.enterprise.module.Module module = this.makeModuleFor(def.getName(), def.getVersion()); cl.addDelegate(module.getClassLoader()); } @@ -172,7 +172,7 @@ } - public Module find(Class clazz) { + public com.sun.enterprise.module.Module find(Class clazz) { ClassLoader cl = clazz.getClassLoader(); if(cl==null) return null; if (cl instanceof ModuleClassLoader) diff -urEbwB glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/single/ProxyModule.java glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/single/ProxyModule.java --- glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/single/ProxyModule.java 2020-03-24 16:11:30.751539739 +0100 +++ glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/single/ProxyModule.java 2020-03-24 16:11:47.559629638 +0100 @@ -27,7 +27,7 @@ * * @author Jerome Dochez */ -public class ProxyModule implements Module { +public class ProxyModule implements com.sun.enterprise.module.Module { final ClassLoader classLoader; final ModuleDefinition moduleDef; @@ -89,15 +89,15 @@ return classLoader; } - public List getImports() { - return new ArrayList(); + public List getImports() { + return new ArrayList(); } - public void addImport(Module module) { + public void addImport(com.sun.enterprise.module.Module module) { //To change body of implemented methods use File | Settings | File Templates. } - public Module addImport(ModuleDependency dependency) { + public com.sun.enterprise.module.Module addImport(ModuleDependency dependency) { throw new UnsupportedOperationException("Inports cannot be added dynamically to static modules"); } diff -urEbwB glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/single/SingleModulesRegistry.java glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/single/SingleModulesRegistry.java --- glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/single/SingleModulesRegistry.java 2020-03-24 16:11:30.751539739 +0100 +++ glassfish-hk2-2.5.0-RELEASE/hk2-core/src/main/java/com/sun/enterprise/module/single/SingleModulesRegistry.java 2020-03-24 16:11:47.559629638 +0100 @@ -41,7 +41,7 @@ public class SingleModulesRegistry extends ModulesRegistryImpl { final ClassLoader singleClassLoader; - final Module[] proxyMod = new Module[1]; + final com.sun.enterprise.module.Module[] proxyMod = new com.sun.enterprise.module.Module[1]; public SingleModulesRegistry(ClassLoader singleCL) { this(singleCL, null); @@ -66,34 +66,34 @@ } @Override - public Module find(Class clazz) { - Module m = super.find(clazz); + public com.sun.enterprise.module.Module find(Class clazz) { + com.sun.enterprise.module.Module m = super.find(clazz); if (m == null) return proxyMod[0]; return m; } @Override - public Collection getModules(String moduleName) { + public Collection getModules(String moduleName) { // I could not care less about the modules names return getModules(); } @Override - public Collection getModules() { - ArrayList list = new ArrayList(); + public Collection getModules() { + ArrayList list = new ArrayList(); list.add(proxyMod[0]); return list; } @Override - public Module makeModuleFor(String name, String version, boolean resolve) throws ResolveError { + public com.sun.enterprise.module.Module makeModuleFor(String name, String version, boolean resolve) throws ResolveError { return proxyMod[0]; } @SuppressWarnings({ "rawtypes", "unchecked" }) @Override - protected List parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List postProcessors) + protected List parseInhabitants(com.sun.enterprise.module.Module module, String name, ServiceLocator serviceLocator, List postProcessors) throws IOException { ArrayList allPostProcessors = new ArrayList(); diff -urEbwB glassfish-hk2-2.5.0-RELEASE/hk2-testing/collections/src/main/java/org/glassfish/hk2/testing/collections/AbstractCollectionTest.java glassfish-hk2-2.5.0-RELEASE/hk2-testing/collections/src/main/java/org/glassfish/hk2/testing/collections/AbstractCollectionTest.java --- glassfish-hk2-2.5.0-RELEASE/hk2-testing/collections/src/main/java/org/glassfish/hk2/testing/collections/AbstractCollectionTest.java 2020-03-24 16:11:30.791539954 +0100 +++ glassfish-hk2-2.5.0-RELEASE/hk2-testing/collections/src/main/java/org/glassfish/hk2/testing/collections/AbstractCollectionTest.java 2020-03-24 16:11:47.559629638 +0100 @@ -769,7 +769,7 @@ public void testCollectionToArrayWithArgumentWithNullThrows() { Collection collection = createEmptyCollection(); - collection.toArray(null); + collection.toArray((String[])null); } /**