-
Notifications
You must be signed in to change notification settings - Fork 206
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
Eclips shows error on @ConditionalOnExpression("${downlink.active:false}") #529
Comments
Thanks for reporting this, I can reproduce the described issue - will take a look at this for the upcoming 4.8.0 release. |
You can disable the validation completely in the preferences: |
Thank you. I'd rather not disable it, as I will most certainly forget to enable it again after it is fixed :) This is not a big issue so I will patiently wait for the fix. Thanks again. |
SpEL expressions are not ignore for validation when they contain property placeholders. In a running Spring application, those placeholders are replaced with their values before the SpEL expression is parsed and evaluated. Therefore those placeholders can basically contain anything and could even be used to turn an invalid expression into a valid one based on the actual value that is used. This makes it very complicated to validate those expressions statically. Therefore those expressions are ignored for now when the validation happens. This fix will be part of the STS 4.8.0 release (scheduled for late September). |
Thanks again for reporting this - which potentially affects many of our users. |
Why is this closed, already ? |
Fix got committed (then the issue is closed) and fix got released as part of the 4.8.0 release. |
Alright, I can see that. Thanks! No issue after I updated STS |
Hello,
I'm using Eclipse 2020-06 with spring-boot plugin (I also reported bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=566445 and installed fixed version) and I got the following error on aforementioned line:
The error is:
I believe that this line is ok - mainly because it does what it is supposed to do - and that error shouldn't be there.
More details of installation:
If anything else is required, please let me know.
The text was updated successfully, but these errors were encountered: