[ https://issues.apache.org/jira/browse/TINKERPOP-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabio Lorenzi updated TINKERPOP-2227: ------------------------------------- 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) > 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)