-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Issue 3564 - Replace StringBuffer with StringBuilder to run against new eclipse ibuilds #3565
Conversation
This requires updating to the newest eclipse deps to even see if it works. |
Simply replacing every |
I went a little further with trying to separate out old and new method calls... but since I'm clearly a bit unfamiliar with the project, it's rough. ScriptBuilder.replaceMethodCall() would need to be updated to allow replacing both the old and new version of the method. I couldn't figure out how to chain this so I just stopped here for a bit. But the most difficult part imo will be EclipseHandlerUtil.java L1335...
The issue here is that Anyway, without knowing more about how to build and test this repo, I can't really do much more, but hopefully I've gotten the process moving a bit. |
There is no reason at all to replace these. For non hotspots, the gain is too low, and the modern hotspot compiler understands and eliminates locks that never escape the running thread. |
@rspilker Without fixes like this, lombok will be unable to work with new eclipse i-builds. Eclipse had API changes and lombok now fails with stack traces as follows:
|
Sorry, I should clarify. Eclipse didn't have "API changes" but rather changed the method signatures of their internal classes to use StringBuilder instead of StringBuffer. Because of this, Lombok fails when trying to call the print functionality. |
Oh, that does change things |
…der calls Signed-off-by: Rob Stryker <[email protected]>
Signed-off-by: Rob Stryker <[email protected]>
Signed-off-by: Rob Stryker <[email protected]>
Signed-off-by: Rob Stryker <[email protected]>
Signed-off-by: Rob Stryker <[email protected]>
Signed-off-by: Rob Stryker <[email protected]>
I think this patch is suitable for testing. I will admit that I have no idea what I'm doing in the |
@rspilker Any chance you can approve the workflows to build? |
@Rawi01 any progress? |
@robstryker Fixed the remaining stuff and run tests against the latest integration version. It should work now. Can you add yourself to the AUTHORS file? |
@robstryker is away as of today (I think until start of January). If that's the only remaining issue, feel free to go ahead and modify the AUTHORS file on his behalf based on the name/email in his author header. (ie. Rob Stryker [email protected] ) |
@rgrunber he has to add his name himself and do the commit for legal reasons |
Signed-off-by: Rob Stryker <[email protected]>
Thanks Rob! Looks to be ready now. |
- Fixes redhat-developer#3454 - Base version projectlombok/lombok@0089374 along with unmerged fix from projectlombok/lombok#3565 Signed-off-by: Roland Grunberg <[email protected]>
- Fixes redhat-developer#3454 - Base version projectlombok/lombok@0089374 along with unmerged fix from projectlombok/lombok#3565 Signed-off-by: Roland Grunberg <[email protected]>
- Fixes #3454 - Base version projectlombok/lombok@0089374 along with unmerged fix from projectlombok/lombok#3565 Signed-off-by: Roland Grunberg <[email protected]>
@rzwitserloot thanks! |
This is a naive PR by someone unfamiliar with the project.
I noticed there were only 11 references to StringBuffer in the entire project and it was likely that those references were only there because of eclipse API. I simply did an in-place sed and opened the PR to see what breaks.