From b8f94108bcc61685b09f452eb2cf55cf82eedff2 Mon Sep 17 00:00:00 2001 From: Jackisome Date: Thu, 21 Nov 2024 21:36:47 +0800 Subject: [PATCH] fix: spaces map type forcible transfer --- .../main/java/com/alipay/sofa/ark/container/ArkContainer.java | 2 +- .../com/alipay/sofa/ark/support/DefaultClassLoaderHookTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sofa-ark-parent/core-impl/container/src/main/java/com/alipay/sofa/ark/container/ArkContainer.java b/sofa-ark-parent/core-impl/container/src/main/java/com/alipay/sofa/ark/container/ArkContainer.java index 878b435ef..ce1fc622c 100644 --- a/sofa-ark-parent/core-impl/container/src/main/java/com/alipay/sofa/ark/container/ArkContainer.java +++ b/sofa-ark-parent/core-impl/container/src/main/java/com/alipay/sofa/ark/container/ArkContainer.java @@ -250,7 +250,7 @@ public List getProfileConfFiles(String... profiles) { * @throws ArkRuntimeException */ public void reInitializeArkLogger() throws ArkRuntimeException { - for (Map.Entry entry : MultiAppLoggerSpaceManager.getSpacesMap() + for (Map.Entry entry : ((Map) MultiAppLoggerSpaceManager.getSpacesMap()) .entrySet()) { SpaceId spaceId = entry.getKey(); SpaceInfo spaceInfo = entry.getValue(); diff --git a/sofa-ark-parent/support/ark-support-starter/src/test/java/com/alipay/sofa/ark/support/DefaultClassLoaderHookTest.java b/sofa-ark-parent/support/ark-support-starter/src/test/java/com/alipay/sofa/ark/support/DefaultClassLoaderHookTest.java index a27bc49ea..5bebf023b 100644 --- a/sofa-ark-parent/support/ark-support-starter/src/test/java/com/alipay/sofa/ark/support/DefaultClassLoaderHookTest.java +++ b/sofa-ark-parent/support/ark-support-starter/src/test/java/com/alipay/sofa/ark/support/DefaultClassLoaderHookTest.java @@ -142,7 +142,7 @@ public void testLoadClassFromClassLoaderHook() throws Exception { // case 7: find resource from master in multiple jar Assert.assertNotNull(bizModel.getBizClassLoader().getResource("Sample_Resource_Exported_A")); -: + // case 8: find resources from master but not set provided in biz model Assert.assertFalse(bizModel.getBizClassLoader().getResources("org/slf4j/ILoggerFactory.class") .hasMoreElements());