[ 
https://issues.apache.org/jira/browse/TINKERPOP-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stephen mallette closed TINKERPOP-2227.
---------------------------------------
    Resolution: Not A Problem

You need to just account for multi-properties - place the property value in a 
{{List}}:

https://github.com/apache/tinkerpop/blob/cff4c161615f2b50bda27b6ba523c7f52b833532/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/util/detached/DetachedVertexTest.java#L194

> 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
>         Environment: java -version
> java version "1.8.0_181"
> Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
>            Reporter: Fabio Lorenzi
>            Priority: Major
>
> {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