From ccccfd8060eb345506128eec415efc9c9c3e4ecd Mon Sep 17 00:00:00 2001 From: yezi <86636468+Dawanyezhi@users.noreply.github.com> Date: Tue, 28 Nov 2023 10:09:33 +0800 Subject: [PATCH] fix:Fix the problem that the dynamicThreadPoolBeforeCheckBean method in the BeforeCheckConfiguration class cannot validate parameters effectively in the config mode. (#1521) --- .../java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threadpool/core/src/main/java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java b/threadpool/core/src/main/java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java index 20c2df30..d20573f6 100644 --- a/threadpool/core/src/main/java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java +++ b/threadpool/core/src/main/java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java @@ -46,7 +46,7 @@ public class BeforeCheckConfiguration { // TODO test boolean checkFlag = properties != null && properties.getEnable(); if (checkFlag) { - String propertiesClassName = properties.getClass().getName(); + String propertiesClassName = properties.getClass().getSuperclass() == Object.class ? properties.getClass().getName() : properties.getClass().getSuperclass().getName(); switch (propertiesClassName) { case bootstrapPropertiesClassName: { String namespace = properties.getNamespace();