svn commit: r1856455 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1856455 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java

jleroux@apache.org
Author: jleroux
Date: Thu Mar 28 07:50:32 2019
New Revision: 1856455

URL: http://svn.apache.org/viewvc?rev=1856455&view=rev
Log:
Improved: Improve ObjectInputStream class
(OFBIZ-10837)

The white list was still not complete as reported by Ed Mack
This adds all arrays of primitives and java.math.BigDecimal

Thanks: Ed Mack at OFBIZ-10876

Modified:
    ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java

Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java?rev=1856455&r1=1856454&r2=1856455&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java Thu Mar 28 07:50:32 2019
@@ -145,7 +145,8 @@ public final class UtilObject {
                         java.util.Arrays.asList("byte\\[\\]", "Number", "Long", "foo", "SerializationInjector",
                                 "java.util.HashMap", "Boolean", "Number", "Integer", "FlexibleStringExpander",
                                 "sun.util.calendar.ZoneInfo", "java.sql.Timestamp", "java.util.Date",
-                                "java.math.BigDecimal", "\\[B"));) {
+                                "java.math.BigDecimal", "[Z ","[B ","[S ","[I ","[J ","[F ","[D ","[C ",
+                                "org.apache.ofbiz.widget.renderer.VisualTheme"));) {
             return wois.readObject();
         }
     }