Repository: tinkerpop Updated Branches: refs/heads/hasVarargs 5cd2bcaff -> 56d738cae
Updated upgrade docs. Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/56d738ca Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/56d738ca Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/56d738ca Branch: refs/heads/hasVarargs Commit: 56d738cae77f7e03491e5f7b3192051ae6b6069a Parents: 5cd2bca Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Authored: Fri Sep 16 19:09:41 2016 +0200 Committer: Daniel Kuppitz <daniel_kupp...@hotmail.com> Committed: Fri Sep 16 19:09:41 2016 +0200 ---------------------------------------------------------------------- .../upgrade/release-3.2.x-incubating.asciidoc | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/56d738ca/docs/src/upgrade/release-3.2.x-incubating.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/upgrade/release-3.2.x-incubating.asciidoc b/docs/src/upgrade/release-3.2.x-incubating.asciidoc index 5db0522..f9c62e2 100644 --- a/docs/src/upgrade/release-3.2.x-incubating.asciidoc +++ b/docs/src/upgrade/release-3.2.x-incubating.asciidoc @@ -83,6 +83,31 @@ gremlin> g.V().as('a').out('knows').as('b'). See: link:https://issues.apache.org/jira/browse/TINKERPOP-1330[TINKERPOP-1330] +Change In has() Method Signatures +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The TinkerPop 3.2.2 release unintentionally intoduced a breaking change for some `has()` method overloads. In particular the +behavior for single item array arguments was changed: + +[source,text] +---- +gremlin> g.V().hasLabel(["software"] as String[]).count() +==>0 +---- + +Prior this change single item arrays were treated like there was only that single item: + +[source,text] +---- +gremlin> g.V().hasLabel(["software"] as String[]).count() +==>2 +gremlin> g.V().hasLabel("software").count() +==>2 +---- + +TinkerPop 3.2.3 fixes this misbehavior and all `has()` method overloads behave like before, except that they no longer +support no arguments. + TinkerPop 3.2.2 ---------------