Skip to content

Ternary mode: result with negative number causes error on SpEL expression import #1280

@enlightenedmouse

Description

@enlightenedmouse

Describe the bug
When using ternary mode and a result of any condition or default is a negative number e.g. -1, the SPEL expression is generated correctly but if that same expression is imported an error occurs: "Can't convert arg of type op-minus"

To Reproduce
Import the SpEL expression "(num > 0 ? num : -1)" into the demo query builder

Expected behavior
The expression should be successfully parsed and have the negative number displayed.

Metadata

Metadata

Assignees

Labels

bugonlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions