ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/2] ignite git commit: correct predefined classes IDs mapping (portable context)
Date Thu, 27 Aug 2015 10:58:58 GMT
Repository: ignite
Updated Branches:
  refs/heads/master b132006f8 -> c279fca96


correct predefined classes IDs mapping (portable context)


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

Branch: refs/heads/master
Commit: 28c8dc7e9d92fb95aa1a9bdef82944697aac95e6
Parents: 3d46b62
Author: Denis Magda <dmagda@gridgain.com>
Authored: Thu Aug 27 13:57:58 2015 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Thu Aug 27 13:57:58 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/portable/PortableContext.java  | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/28c8dc7e/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableContext.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableContext.java
b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableContext.java
index 723113e..cd3abc1 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableContext.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableContext.java
@@ -159,6 +159,8 @@ public class PortableContext implements Externalizable {
         mapTypes.put(ConcurrentHashMap8.class, GridPortableMarshaller.CONC_HASH_MAP);
         mapTypes.put(Properties.class, GridPortableMarshaller.PROPERTIES_MAP);
 
+        // IDs range from [0..200] is used by Java SDK API and GridGain legacy API
+
         registerPredefinedType(Byte.class, GridPortableMarshaller.BYTE);
         registerPredefinedType(Boolean.class, GridPortableMarshaller.BOOLEAN);
         registerPredefinedType(Short.class, GridPortableMarshaller.SHORT);
@@ -205,9 +207,10 @@ public class PortableContext implements Externalizable {
         registerPredefinedType(IgniteBiTuple.class, 61);
         registerPredefinedType(T2.class, 62);
 
-        registerPredefinedType(PortableObjectImpl.class, 63);
+        // IDs range [200..1000] is used by Ignite internal APIs.
 
-        registerPredefinedType(PortableMetaDataImpl.class, 64);
+        registerPredefinedType(PortableObjectImpl.class, 200);
+        registerPredefinedType(PortableMetaDataImpl.class, 201);
     }
 
     /**


Mime
View raw message