antkorwin / better-strings

Java String Interpolation Plugin
Apache License 2.0
98 stars 8 forks source link

Guide how to make it work in Eclipse #6

Open mojo2012 opened 4 years ago

mojo2012 commented 4 years ago

Hi, I really like the idea but I couldn't make it work with a maven-based project in eclipse. If I build with maven and immediately start, it works. But as soon as I change the source code, the eclipse compiler kicks in and it doesn't work anymore.

Furthermore somehow after the modifications no decompiler is able to decompile the method with an interpolated string anymore.

Any way to fix this?

antkorwin commented 4 years ago

Hi, @mojo2012

Thanks for your feedback!

As I know, the Eclipse javac is a pretty specific compiler, and I think that to make AST modifications with eclipse compiler we need to patch compiler (as it made by Lombok to do something like this)

I'll try to research this subject, maybe exists some workarounds.