ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/7] ignite git commit: IGNITE-4009: Removed error message check for non-serializable fields in writeObjectOverride().
Date Thu, 08 Dec 2016 10:54:53 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-comm-balance-master 622f045aa -> 03593023d


IGNITE-4009: Removed error message check for non-serializable fields in writeObjectOverride().


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3ab5a2f1
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3ab5a2f1
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3ab5a2f1

Branch: refs/heads/ignite-comm-balance-master
Commit: 3ab5a2f126b08088bef444ad8b983f1654e5d215
Parents: 2c1881c
Author: shtykh_roman <rshtykh@yahoo.com>
Authored: Wed Dec 7 18:01:27 2016 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Wed Dec 7 18:01:27 2016 +0300

----------------------------------------------------------------------
 .../optimized/OptimizedObjectOutputStream.java  | 25 +-------------------
 1 file changed, 1 insertion(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/3ab5a2f1/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStream.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStream.java
b/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStream.java
index 96cbbcd..98d85a0 100644
--- a/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStream.java
+++ b/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedObjectOutputStream.java
@@ -26,7 +26,6 @@ import java.io.Serializable;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
-import java.util.Collection;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -66,13 +65,6 @@ import static org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.ge
  */
 class OptimizedObjectOutputStream extends ObjectOutputStream {
     /** */
-    private static final Collection<String> CONVERTED_ERR = F.asList(
-        "weblogic/management/ManagementException",
-        "Externalizable class doesn't have default constructor: class " +
-            "org.apache.ignite.internal.processors.email.IgniteEmailProcessor$2"
-    );
-
-    /** */
     private final GridHandleTable handles = new GridHandleTable(10, 3.00f);
 
     /** */
@@ -157,22 +149,7 @@ class OptimizedObjectOutputStream extends ObjectOutputStream {
 
     /** {@inheritDoc} */
     @Override protected void writeObjectOverride(Object obj) throws IOException {
-        try {
-            writeObject0(obj);
-        }
-        catch (IOException e) {
-            Throwable t = e;
-
-            do {
-                if (CONVERTED_ERR.contains(t.getMessage()))
-                    throw new IOException("You are trying to serialize internal classes that
are not supposed " +
-                        "to be serialized. Check that all non-serializable fields are transient.
Consider using " +
-                        "static inner classes instead of non-static inner classes and anonymous
classes.", e);
-            }
-            while ((t = t.getCause()) != null);
-
-            throw e;
-        }
+        writeObject0(obj);
     }
 
     /**


Mime
View raw message