Pavel created TINKERPOP-2186:
--------------------------------

             Summary: Wrong translation to bytecode from array
                 Key: TINKERPOP-2186
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2186
             Project: TinkerPop
          Issue Type: Bug
          Components: process
    Affects Versions: 3.4.1
            Reporter: Pavel


 Sample of code

{code:java}
 Graph graph = TinkerGraph.open();
 GraphTraversalSource traversal = graph.traversal().withRemote(new 
EmbeddedRemoteConnection(graph.traversal()));

traversal.addV("A").property("p", new String[] { "A" }).iterate();
 traversal.addV("A").property("p", new String[] { "A", "B", "C" }).iterate();
 System.out.println(traversal.V().valueMap(true).toList());
{code}

Result 
{code:java}
[{p=[A], id=0, label=A}, {p=[A], id=2, label=A}]
{code}

Actual bytecode
{code}
[[], [addV(A), property(p, A)]]
[[], [addV(A), property(p, A, B, C)]]
{code}

But expected

{code}
[[], [addV(A), property(p, [A])]]
[[], [addV(A), property(p, [A, B, C])]]
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to