This is what I've done to circumvent this issue. For my project to work, I need the
-parameters option and I also like the
-preserveAllLocals for debugging.
As IntelliJ accepts a custom ECJ jar, I figured I'd recompile ECJ with the options hardcoded to get around that bug. Unfortunately, the documentation is quite sparse and doesn't show an easy way to build ecj.jar.
I've decided to modify the jar instead! There is a neat tool called Recaf that does just that, decompiles a jar and allow you to easily modify it and repackage it. Neat!
- Head to mvn repo to download the latest jar
- Download recaf fat jar and execute it with `java -jar