IGNITE-1387 Platform .Net: cache.Invoke does not work with portable objects 
without Java counterpart


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

Branch: refs/heads/ignite-843
Commit: 2326bb53fd62104b8816fe6da6f388963dc268cd
Parents: 6592208
Author: ptupitsyn <[email protected]>
Authored: Tue Sep 8 12:29:34 2015 +0300
Committer: ptupitsyn <[email protected]>
Committed: Tue Sep 8 12:29:34 2015 +0300

----------------------------------------------------------------------
 .../platform/cache/PlatformCacheEntryProcessorImpl.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2326bb53/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCacheEntryProcessorImpl.java
----------------------------------------------------------------------
diff --git 
a/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCacheEntryProcessorImpl.java
 
b/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCacheEntryProcessorImpl.java
index 16124fe..f59a63f 100644
--- 
a/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCacheEntryProcessorImpl.java
+++ 
b/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCacheEntryProcessorImpl.java
@@ -175,7 +175,7 @@ public class PlatformCacheEntryProcessorImpl implements 
PlatformCacheEntryProces
 
         switch (state) {
             case ENTRY_STATE_VALUE_SET:
-                entry.setValue(reader.readObject());
+                entry.setValue(reader.readObjectDetached());
 
                 break;
 
@@ -205,7 +205,7 @@ public class PlatformCacheEntryProcessorImpl implements 
PlatformCacheEntryProces
                 assert state == ENTRY_STATE_INTACT;
         }
 
-        return reader.readObject();
+        return reader.readObjectDetached();
     }
 
     /** {@inheritDoc} */

Reply via email to