ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/2] incubator-ignite git commit: #ignite-51: fix GridCacheDeploymentSelfTest.
Date Sun, 08 Mar 2015 15:42:35 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-51-v2 [created] 25b7c8aea


#ignite-51: fix GridCacheDeploymentSelfTest.


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

Branch: refs/heads/ignite-51-v2
Commit: bd8339322c724f8bfdae6695b9d5ccf2a274b1c5
Parents: 1e7408e
Author: ivasilinets <vasilinetc.ira@gmail.com>
Authored: Sun Mar 8 16:17:10 2015 +0300
Committer: ivasilinets <vasilinetc.ira@gmail.com>
Committed: Sun Mar 8 16:17:10 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/UserCacheObjectImpl.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bd833932/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/UserCacheObjectImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/UserCacheObjectImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/UserCacheObjectImpl.java
index b7e90bb..b5e4bc7 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/UserCacheObjectImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/UserCacheObjectImpl.java
@@ -18,6 +18,7 @@
 package org.apache.ignite.internal.processors.cache;
 
 import org.apache.ignite.*;
+import org.apache.ignite.internal.util.IgniteUtils;
 import org.jetbrains.annotations.*;
 
 import java.util.*;
@@ -59,7 +60,8 @@ public class UserCacheObjectImpl extends CacheObjectImpl {
                         valBytes = ctx.processor().marshal(ctx, val);
 
                     if (ctx.unmarshalValues()) {
-                        Object val = ctx.processor().unmarshal(ctx, valBytes, this.val.getClass().getClassLoader());
+                        Object val = ctx.processor().unmarshal(ctx, valBytes,
+                                IgniteUtils.detectClass(this.val).getClassLoader());
 
                         return new CacheObjectImpl(val, valBytes);
                     }


Mime
View raw message