Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpEL parsing issue in Query annotation #1320

Closed
elmuerte opened this issue Aug 13, 2024 · 1 comment
Closed

SpEL parsing issue in Query annotation #1320

elmuerte opened this issue Aug 13, 2024 · 1 comment

Comments

@elmuerte
Copy link

Describe the bug

I have the following SpEL expression in a @Query annotation

group by r having count(p) = ?#{[1].size().longValue()}

The input parameter is a Set<String>.

This produces the following error marker in Eclipse:

SPEL: extraneous input '[' expecting {'++', '+', '--', '-', '(', '#', '@', '^[', '![', '!', '&', '?[', '$[', LCURLY, 'true', 'false', 'new', 'null', 'T', IDENTIFIER, NUMERIC_LITERAL, STRING_LITERAL}

To Reproduce

Create a @Query where the value contains a SpEL expression referencing an input parameter, e.g. ?#{[1]}

I'm using Eclipse 2024-06 with STS 4.24

@BoykoAlex
Copy link
Contributor

Fixed with ece6380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants