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

Error on @ConditionalOnExpression #1349

Closed
hugograf opened this issue Sep 10, 2024 · 3 comments
Closed

Error on @ConditionalOnExpression #1349

hugograf opened this issue Sep 10, 2024 · 3 comments
Assignees
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: validation type: bug

Comments

@hugograf
Copy link

Describe the bug
There is an error for @ConditionalOnExpression(“${gt.use.websocket:false}”).

To Reproduce
Annotation

@ConditionalOnExpression("${gt.use.websocket:false}")

produces

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

Version

Spring Tool Suite 4 

Version: 4.24.0.RELEASE
Build Id: 202407191504
@martinlippert
Copy link
Member

Thanks a lot @hugograf for reporting. Moved this to the 4.26.0 release, will unfortunately not make it at the last minute into the upcoming 4.25.0 release.

@BoykoAlex
Copy link
Contributor

Fixed with fca3fc0

@martinlippert
Copy link
Member

@hugograf Thanks again for reporting. If you want to try the fix, feel free to grab a snapshot build from https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: validation type: bug
Projects
None yet
Development

No branches or pull requests

3 participants