[
https://issues.apache.org/jira/browse/TINKERPOP3-644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stephen mallette closed TINKERPOP3-644.
---------------------------------------
Resolution: Fixed
Assignee: stephen mallette
I think this is safe to close now without additional work now that
TINKERPOP3-645 is complete.
> Compute IDs changing from Long to Integer in groovy script
> ----------------------------------------------------------
>
> Key: TINKERPOP3-644
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-644
> Project: TinkerPop 3
> Issue Type: Bug
> Components: test-suite
> Reporter: Bryn Cooke
> Assignee: stephen mallette
> Fix For: 3.0.0.GA
>
>
> ElementHelper.idExists is used to detect if an ID is present in an array of
> IDs.
> However when executing a groovy compute script an ID that is of type long
> gets magically transformed in to an integer.
> {code:java}
> long v1Id = 23892384L
> ComputerTestHelper.compute("g.V(${v1Id}).hasNot('${propertyKey}')", g);
> {code}
> This means that when the vertex program eventually runs it won't work because
> the providedIDs in ElementHelper.idExists are of a differing type to the
> underlying element ID. ElementHelper.idExists will always return false.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)