You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2014/12/30 10:39:39 UTC

[08/10] incubator-ignite git commit: # ignite fixed portable deserialization on get

# ignite fixed portable deserialization on get


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

Branch: refs/heads/ignite-32
Commit: 6fd75f907c96a0b5eb31b0e118a4e88895a501fd
Parents: 8488174
Author: sboikov <sb...@gridgain.com>
Authored: Tue Dec 30 11:23:16 2014 +0300
Committer: sboikov <sb...@gridgain.com>
Committed: Tue Dec 30 11:23:16 2014 +0300

----------------------------------------------------------------------
 .../gridgain/grid/kernal/processors/cache/GridCacheAdapter.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6fd75f90/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheAdapter.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheAdapter.java b/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheAdapter.java
index 82098bb..2022680 100644
--- a/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheAdapter.java
+++ b/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheAdapter.java
@@ -1776,8 +1776,8 @@ public abstract class GridCacheAdapter<K, V> extends GridMetadataAwareAdapter im
                             else {
                                 val = ctx.cloneOnFlag(val);
 
-                                if (ctx.portableEnabled() && deserializePortable && val instanceof PortableObject)
-                                    val = ((PortableObject)val).deserialize();
+                                if (ctx.portableEnabled() && deserializePortable)
+                                    val = (V)ctx.unwrapPortableIfNeeded(val, false);
 
                                 map.put(key, val);