[ 
https://issues.apache.org/jira/browse/TINKERPOP-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565724#comment-15565724
 ] 

Marko A. Rodriguez commented on TINKERPOP-1498:
-----------------------------------------------

Huh. The problem is that you are adding the bulk set to itself. Thus, 
{{toString()}} yields an infinite recurssion. This is not really a Gremlin 
issue as much as a "don't add a set to itself"-problem.

> choose() can throw StackOverflowErrors
> --------------------------------------
>
>                 Key: TINKERPOP-1498
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1498
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.2.2
>            Reporter: Daniel Kuppitz
>
> {noformat}
> gremlin> g = TinkerFactory.createModern().traversal()
> ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
> gremlin> g.V().choose(select("x"), select("x"), constant("not x")).store("x")
> java.lang.StackOverflowError
> Type ':help' or ':h' for help.
> Display stack trace? [yN]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to