-
Notifications
You must be signed in to change notification settings - Fork 356
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
How to configure maven to use checker-framework with error-prone? #945
Comments
Can you provide a complete test case? I installed the text of your report as file I got the following output:
|
Please see |
Thanks for providing the test case! I can reproduce the failure in Maven. I'm trying to reproduce it on the command-line, too. Alternatively, you could separate the error-prone compilation from the Checker Framework compilation into two separate Maven tasks. |
This may be blocked by #1224 |
#1224 is fixed and we have updated instructions for using Maven with the ErrorProne compiler together with the Checker Framework: https://checkerframework.org/manual/#maven |
maven clean install:
warning: unknown enum constant ElementType.TYPE_PARAMETER
warning: unknown enum constant ElementType.TYPE_USE
warning: unknown enum constant ElementType.TYPE_PARAMETER
warning: unknown enum constant ElementType.TYPE_USE
warning: unknown enum constant ElementType.TYPE_PARAMETER
error: InvocationTargetException when invoking constructor for class org.checkerframework.checker.nullness.KeyForVisitor; Underlying cause: InvocationTargetException when invoking constructor for class org.checkerframework.checker.nullness.KeyForAnnotatedTypeFactory; Underlying cause: java.lang.ArrayStoreException: sun.reflect.annotation.EnumConstantNotPresentExceptionProxy
Exception: java.lang.reflect.InvocationTargetException; Stack trace: sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
The text was updated successfully, but these errors were encountered: