Fabio Lorenzi created TINKERPOP-2227:
----------------------------------------

             Summary: DetachedVertex public constructor ClassCast Exception
                 Key: TINKERPOP-2227
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2227
             Project: TinkerPop
          Issue Type: Bug
    Affects Versions: 3.4.1
            Reporter: Fabio Lorenzi


{code:java}
HashMap<String, Object> props = new HashMap<>();
props.put("name", "D");
DetachedVertex v = new DetachedVertex("fake", "entity", props);
{code}
returns
{code:java}
Exception in thread "main" java.lang.ClassCastException: java.lang.String 
cannot be cast to java.util.List
    at 
org.apache.tinkerpop.gremlin.structure.util.detached.DetachedVertex.lambda$new$2(DetachedVertex.java:82)
    at java.util.Iterator.forEachRemaining(Iterator.java:116)
    at 
org.apache.tinkerpop.gremlin.structure.util.detached.DetachedVertex.<init>(DetachedVertex.java:81)
{code}
which is directly related to the public constructor.

 

 



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

Reply via email to