tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkupp...@apache.org
Subject [24/50] tinkerpop git commit: Don't use the canonical name when serializing to gryo.
Date Mon, 09 Jan 2017 14:58:45 GMT
Don't use the canonical name when serializing to gryo.

The canonical name won't recognize the inner classes when deserializing with Class.forName()
CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/34d9e584
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/34d9e584
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/34d9e584

Branch: refs/heads/TINKERPOP-1545-tp32
Commit: 34d9e584ac074f765ab99df64e94179f01a19a2e
Parents: 73b2d65
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Tue Dec 20 15:22:58 2016 -0500
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Tue Dec 20 15:22:58 2016 -0500

----------------------------------------------------------------------
 .../tinkerpop/gremlin/structure/io/gryo/UtilSerializers.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/34d9e584/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/UtilSerializers.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/UtilSerializers.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/UtilSerializers.java
index 958978c..c7095d6 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/UtilSerializers.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/UtilSerializers.java
@@ -84,7 +84,7 @@ final class UtilSerializers {
     public final static class ClassSerializer implements SerializerShim<Class> {
         @Override
         public <O extends OutputShim> void write(final KryoShim<?, O> kryo, final
O output, final Class object) {
-            output.writeString(object.getCanonicalName());
+            output.writeString(object.getName());
         }
 
         @Override


Mime
View raw message