Skip to content

SPR-17606 @Profile mishandles "not" operand mixed with "&"#2066

Merged
jhoeller merged 4 commits intospring-projects:masterfrom
aleskiewicz:SPR-17606
Jan 8, 2019
Merged

SPR-17606 @Profile mishandles "not" operand mixed with "&"#2066
jhoeller merged 4 commits intospring-projects:masterfrom
aleskiewicz:SPR-17606

Conversation

@aleskiewicz
Copy link
Contributor

The root cause of the issue was that single-element inversions (not operator, '!) were greedy and consumed the whole expression prior to inverting it.

This fix provides some contextual information to the parsing method about currently processed element and based on it, returns to previous parsing context.

During the investigation, it turned out that brackets work in similar way (greedy) and some fix was provided as well.

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.

2 participants