-
Notifications
You must be signed in to change notification settings - Fork 733
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
Custom checks can't be loaded when used as JavaC Plugin #974
Comments
I see that it was supposedly fixed in 2.2.0 by 3e44e10, but I double-checked and confirm that I reproduce the issue with 2.2.0 (with and without the |
3e44e10 didn't make it into 2.2.0, though. It works for me at head:
|
Ha, must have misread my Any ETA for 2.2.1? |
I'm on the hook for 2.2.1, but I'm swamped through 4/6. So let's say the week of 4/9-13. |
Snoozed the mail notification until then, will ping you if you're "late" 😉 |
2.3.0 has been released with the fix on 19 Apr, and then 2.3.1 on 21 Apr. |
What version of Error Prone are you using?
2.2.0 (latest)
What did you do?
I'm writing a new Gradle plugin that integrates Error Prone as a JavaC plugin rather than relying on internal Gradle APIs: https://github.com/tbroyer/gradle-errorprone-javacplugin-plugin/ and came across this issue while writing more tests; but this can be reproduced on the command-line.
If possible, provide a recipe for reproducing the error.
A complete small program is good.
What did you expect to see?
Class
Foo
should be compiled without error (or with Error Prone violations if any)What did you see instead?
Compilation fails with exception while trying to load the custom check; likely a classloader issue:
#928 could possibly provide a solution. Or maybe Error Prone could use
JavaFileManager.getServiceLoader
when used with Java 9+? Or should it be seen as a JavaC bug? (tested in OpenJDK 9.0.4 and Oracle JDK 10, both exhibit the issue)The text was updated successfully, but these errors were encountered: