mattrpav commented on code in PR #2026:
URL: https://github.com/apache/activemq/pull/2026#discussion_r3270341462


##########
activemq-client/src/main/java/org/apache/activemq/util/ClassLoadingAwareObjectInputStream.java:
##########
@@ -98,7 +104,7 @@ private boolean trustAllPackages() {
     }
 
     private void checkSecurity(Class clazz) throws ClassNotFoundException {
-        if (trustAllPackages() || clazz.isPrimitive()) {
+        if (trustAllPackages() || clazz.isPrimitive() || 
ALLOWED_JDK_TYPES.contains(clazz)) {

Review Comment:
   This is a good change to permanently support these core types



-- 
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]
For further information, visit: https://activemq.apache.org/contact


Reply via email to