You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by av...@apache.org on 2016/03/21 15:20:40 UTC

[15/50] [abbrv] ignite git commit: IGNITE-2681: Binary serialization warning is no longer printed to the log.

IGNITE-2681: Binary serialization warning is no longer printed to the log.


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

Branch: refs/heads/ignite-2801
Commit: 7d26ba8f4277774402e2e7e826c5770ce2273955
Parents: bbe9983
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Fri Feb 26 14:19:44 2016 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Mon Feb 29 13:06:54 2016 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/binary/BinaryClassDescriptor.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7d26ba8f/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryClassDescriptor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryClassDescriptor.java b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryClassDescriptor.java
index 88d1df4..1d536a1 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryClassDescriptor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryClassDescriptor.java
@@ -195,8 +195,8 @@ public class BinaryClassDescriptor {
                 mode = serializer != null ? BinaryWriteMode.BINARY : BinaryUtils.mode(cls);
         }
 
-        if (useOptMarshaller && userType && !cls.getName().startsWith(OAI_PKG)) {
-            U.quietAndWarn(ctx.log(), "Class \"" + cls.getName() + "\" cannot be serialized using " +
+        if (useOptMarshaller && userType && !cls.getName().startsWith(OAI_PKG) && !U.isJdk(cls)) {
+            U.warn(ctx.log(), "Class \"" + cls.getName() + "\" cannot be serialized using " +
                 BinaryMarshaller.class.getSimpleName() + " because it either implements Externalizable interface " +
                 "or have writeObject/readObject methods. " + OptimizedMarshaller.class.getSimpleName() + " will be " +
                 "used instead and class instances will be deserialized on the server. Please ensure that all nodes " +