Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CeylonModuleLoader: put back the bit that loaded the langauge module …

…first

Otherwise it's just never initialised
  • Loading branch information...
commit c96dd0594c7e2f0a76e2e25a97a07a6f1c10a2d1 1 parent 1446aaf
@FroMage FroMage authored
View
1  impl/src/main/java/ceylon/modules/jboss/runtime/AbstractJBossRuntime.java
@@ -53,6 +53,7 @@ public ClassLoader createClassLoader(String name, String version, Configuration
throw cre;
}
try {
+ moduleLoader.setupRuntimeModuleSystem();
Module module = moduleLoader.loadModule(moduleIdentifier);
return SecurityActions.getClassLoader(module);
} catch (ModuleNotFoundException e) {
View
6 impl/src/main/java/ceylon/modules/jboss/runtime/CeylonModuleLoader.java
@@ -343,4 +343,10 @@ static ModuleIdentifier createModuleIdentifier(ArtifactResult i) {
public String toString() {
return "Ceylon ModuleLoader: " + repository;
}
+
+ public void setupRuntimeModuleSystem() throws ModuleLoadException {
+ org.jboss.modules.Module languageModule = org.jboss.modules.Module.getBootModuleLoader().loadModule(LANGUAGE);
+ ArtifactResult languageModuleArtifactResult = findArtifact(LANGUAGE);
+ com.redhat.ceylon.compiler.java.Util.loadModule(LANGUAGE.getName(), LANGUAGE.getSlot(), languageModuleArtifactResult, SecurityActions.getClassLoader(languageModule));
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.