Spring SpEL operator - incorrect syntax

Hello,

I have noticed that IntelliJ IDEA shows me the "incorrect syntax" when I use the SpEL "first matching selection" operator

.^[]
in the spring xml config file.
I have attached the screenshot with that problem:
example.jpg

Is this a bug or a correct behaviour?
There are no problems with others SpEL operators.

(IntelliJ IDEA 12.0.4 build 123.169)



--
Regards,
Jarek
4 comments

This construction is not supported yet. Please create a ticket.

0

Hi,
i have a similar issue with a spEL expression in property placeholder:

    @Value("#{ ${sleep_interval:5} * T(org.apache.commons.lang3.time.DateUtils).MILLIS_PER_SECOND }")
    private int SLEEP_INTERVAL;

I get numerous (incorrect?) warnings/errors from IntelliJ  code analysis even tho' there is no problem with actually compiling and running this code:
warning: cannot resolve namespace 'sleep_interval'
error: Identifier expected
warning: cannot resolve function '5'
error: ( expected


Is this a known limitation in support for SpEL or is there a way around it?

thx,
arun

0

Please sign in to leave a comment.