Closed dcabasson closed 3 years ago
Thanks for the report (and patch).
Would you mind opening an issue on Error prone itself to get the doc fixed for non-Gradle users too: http://errorprone.info/docs/installation ?
I'll take some time before merging this to try to find other similar cases.
Salut Thomas!
Unfortunately because of restrictions from my employer, I cannot open an issue on the errorprone project itself. While I am allowed to contribute fixes to this project that we are using, I have not been authorized to interact with other projects.
Sorry about that.
I just released v2.0.1 with the fix (using --add-exports
rather than --add-opens
as it's enough). I confirmed the change works using your provided test, but didn't include it as the list of flags follows what the ErrorProne doc says.
The provided test fails under Java 16 without the addition of
--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED