-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Spoon generate duplicate brackets in invocations. #2330
Comments
Hi @nemo9cby thanks for reporting this one! |
Actually I just checked version 7.0.0, it already contains the code changes of #2113. This issue still exists. #2113 seems to solve the issue with CastExpression, yet this is an issue about StringLiteralConcatenation (or InfixExpression, i am not sure). For example, whenever there is one, e.g. |
My bad then: I though #2113 was not yet integrated in a Spoon release. So yeah it's a new bug. |
Resolved by #3024 |
After applying processing, there will be duplicate brackets inside invocations if they contain "+".
For example, if the original line is like:
logger.info("Value declared in if:" + c);
After parsing in Spoon, it would become:
logger.info(("Value declared in if:" + c));
Another example:
before:
LOG.warn("AuthenticationToken ignored: " + ex.getMessage());
after:
LOG.warn(("AuthenticationToken ignored: " + (ex.getMessage())));
The processor looks like:
Launcher code:
My guess is that it is because of the internal compiler, is there a way to fix this?
The text was updated successfully, but these errors were encountered: