[
https://issues.apache.org/jira/browse/TINKERPOP3-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stephen mallette updated TINKERPOP3-250:
----------------------------------------
Component/s: process
> Suspicious use of binarySearch
> ------------------------------
>
> Key: TINKERPOP3-250
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-250
> Project: TinkerPop 3
> Issue Type: Bug
> Components: process
> Reporter: Mike McMahon
> Priority: Critical
> Fix For: 3.0.0.GA
>
>
> For example,
> [{{PropertyFilterIterator.upNext}}|https://github.com/tinkerpop/tinkerpop3/blob/master/gremlin-core/src/main/java/com/tinkerpop/gremlin/structure/util/PropertyFilterIterator.java#L60-L66].
> I cannot see anything in the calling contract that guarantees that the keys
> are sorted.
> {code}
> gremlin> g = TinkerGraph.open()
> ==>tinkergraph[vertices:0 edges:0]
> gremlin> v = g.addVertex('name', 'fred', 'age', 60, 'gender', 'M', 'height',
> 1.75)
> ==>v[0]
> gremlin> v.properties('age', 'height', 'name')
> ==>vp[name->fred]
> ==>vp[age->60]
> ==>vp[height->1.75]
> gremlin> v.properties('name', 'height', 'age')
> ==>vp[height->1.75]
> gremlin> v.properties('zzz', 'yyy', 'age')
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)