stephen mallette created TINKERPOP3-783:
-------------------------------------------
Summary: asVertex Does Not Always Return Correct State
Key: TINKERPOP3-783
URL: https://issues.apache.org/jira/browse/TINKERPOP3-783
Project: TinkerPop 3
Issue Type: Bug
Components: process
Affects Versions: 3.0.0-incubating
Reporter: stephen mallette
Assignee: Marko A. Rodriguez
Fix For: 3.0.1-incubating
In {{AddPropertyStep}} the {{asVertex}} member variable is currently set as
follows:
{code}
this.asVertex = null != cardinality || this.vertexPropertyKeyValues.length > 0;
{code}
which basically means that {{asVertex}} will get the "wrong" value if
{{property}} is called like this:
{code}
g.V().addV().property("this", "thing")
{code}
I would expect {{asVertex}} to return true in this case. This value is relied
upon internal to the {{Step}} and by {{TraversalStrategy}} implementations to
determine the nature of what the the {{Step}} is processing so it's important
that it return properly under this condition.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)