From fe9e489fa944fe130deab74da31dc41471bd29af Mon Sep 17 00:00:00 2001 From: Brian Stansberry Date: Tue, 26 Nov 2024 20:17:04 -0600 Subject: [PATCH] [WFCORE-7074] Use fromString instead of create since moduleName in theory could include a slot --- .../jboss/as/server/moduleservice/ExternalModuleService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/jboss/as/server/moduleservice/ExternalModuleService.java b/server/src/main/java/org/jboss/as/server/moduleservice/ExternalModuleService.java index 23a3fd2c1ef..737d1241ccf 100644 --- a/server/src/main/java/org/jboss/as/server/moduleservice/ExternalModuleService.java +++ b/server/src/main/java/org/jboss/as/server/moduleservice/ExternalModuleService.java @@ -55,7 +55,7 @@ public ModuleIdentifier addExternalModule(String moduleName, ServiceRegistry ser @Override public ModuleIdentifier addExternalModule(String moduleName, String path, ServiceRegistry serviceRegistry, ServiceTarget serviceTarget) { - ModuleIdentifier identifier = ModuleIdentifier.create(EXTERNAL_MODULE_PREFIX + moduleName); + ModuleIdentifier identifier = ModuleIdentifier.fromString(EXTERNAL_MODULE_PREFIX + moduleName); ServiceName serviceName = ServiceModuleLoader.moduleSpecServiceName(identifier); ServiceController controller = serviceRegistry.getService(serviceName); if (controller == null) {