AlbumenJ commented on a change in pull request #9616:
URL: https://github.com/apache/dubbo/pull/9616#discussion_r800125215



##########
File path: 
dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java
##########
@@ -74,7 +75,10 @@
     private static final Logger logger = 
LoggerFactory.getLogger(PojoUtils.class);
     private static final ConcurrentMap<String, Method> NAME_METHODS_CACHE = 
new ConcurrentHashMap<String, Method>();
     private static final ConcurrentMap<Class<?>, ConcurrentMap<String, Field>> 
CLASS_FIELD_CACHE = new ConcurrentHashMap<Class<?>, ConcurrentMap<String, 
Field>>();
-    private static final boolean GENERIC_WITH_CLZ = 
Boolean.parseBoolean(ConfigurationUtils.getProperty(CommonConstants.GENERIC_WITH_CLZ_KEY,
 "true"));
+    private static final boolean GENERIC_WITH_CLZ =
+            Boolean.parseBoolean(
+                    ConfigurationUtils.getProperty(
+                            ApplicationModel.defaultModel(), 
CommonConstants.GENERIC_WITH_CLZ_KEY, "true"));

Review comment:
       The proper way is to convert `PojoUtils` to a application scope bean to 
prevent use default model.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to