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

Number string concatenation uses arithmetic operations instead of string concatenation #969

Open
kosukeymzk opened this issue Aug 4, 2023 · 0 comments

Comments

@kosukeymzk
Copy link

Hello, thanks for this useful software !

I found an incident that seems to be a problem with string concatenation.

Version: 3.1.1.RELEASE

Environment:
OpenJDK 17.0.2
Spring 5.3.23

Source:

<p th:text="${'1' + '2'}"><p>

my expectations

12

actual output

3

Since we are dealing with numbers as strings, we think that string concatenation will be performed in operations using +.
Please point out if there are any mistakes.

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

1 participant