Skip to content

TINKERPOP-1743: LambdaRestrictionStrategy does not catch lambdas passed to sack()#689

Merged
asfgit merged 2 commits into
tp32from
TINKERPOP-1743
Aug 9, 2017
Merged

TINKERPOP-1743: LambdaRestrictionStrategy does not catch lambdas passed to sack()#689
asfgit merged 2 commits into
tp32from
TINKERPOP-1743

Conversation

@okram
Copy link
Copy Markdown
Contributor

@okram okram commented Aug 8, 2017

https://issues.apache.org/jira/browse/TINKERPOP-1743

Fixed a lambda-leak in SackValueStep where BiFunction must be tested for true lambda status.

@okram
Copy link
Copy Markdown
Contributor Author

okram commented Aug 8, 2017

gremlin> g = TinkerFactory.createModern().traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g = g.withStrategies(LambdaRestrictionStrategy.instance())
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g.withSack(0).V().limit(1).sack{ v,s -> System.exit(1) }
The provided step contains a lambda bi-function: SackValueStep(lambda)
Type ':help' or ':h' for help.
Display stack trace? [yN]
gremlin>

@okram
Copy link
Copy Markdown
Contributor Author

okram commented Aug 8, 2017

VOTE +1

@okram okram changed the base branch from master to tp32 August 8, 2017 16:32
@spmallette
Copy link
Copy Markdown
Contributor

I rebased this on tp32 and force pushed to get rid of that extra "fix" commit for bigdecimal. @okram you should:

git fetch
git branch -D TINKERPOP-1743
git checkout TINKERPOP-1743

before you merge this to release branches.

VOTE +1

@dkuppitz
Copy link
Copy Markdown
Contributor

dkuppitz commented Aug 9, 2017

VOTE: +1

@asfgit asfgit merged commit b4463a9 into tp32 Aug 9, 2017
@asfgit asfgit deleted the TINKERPOP-1743 branch September 5, 2017 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants