-
Notifications
You must be signed in to change notification settings - Fork 745
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
[2.3.4] java.lang.LinkageError: com.sun.tools.javac.comp.Resolve.findIdent(com.sun.tools.javac.comp.Env,com.sun.tools.javac.util.Name,com.sun.tools.javac.code.Kinds$KindSelector) #1432
Comments
JDK 13 isn't supported; see #1106 |
@tbroyer - yes, I know about the linked issue, but the one here is new and didn't happen on |
I think the reason you're seeing this only in the new version of Error Prone is that one of the new bug patterns, For example, if there's anywhere in your codebase you're throwing a subclass of This is the block of code in Error Prone that's failing: error-prone/check_api/src/main/java/com/google/errorprone/util/FindIdentifiers.java Lines 96 to 105 in df4cdef
I guess it was broken by this change in the JDK, made in June of this year: The try {
Method method =
Resolve.class.getDeclaredMethod(
"findIdent", DiagnosticPosition.class, Env.class, Name.class, KindSelector.class);
method.setAccessible(true);
Symbol result =
(Symbol) method.invoke(Resolve.instance(state.context), null, env, state.getName(name), kind);
return result.exists() ? result : null;
} catch (ReflectiveOperationException e) {
throw new LinkageError(e.getMessage(), e);
} ...although that makes it incompatible with earlier versions of Java. Since this code uses reflection to find and invoke |
error-prone : 2.3.4 Info : error: An unhandled exception was thrown by the Error Prone static analysis plugin. |
Seeing a similar issue on JDK 11 An unhandled exception was thrown by the Error Prone static analysis plugin. [ERROR] error-prone version: 2.3.4 |
Fixes #1432 Fixes #1439 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=308794942
Fixes #1432 Fixes #1439 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=308794942
After updating to
2.3.4
from2.3.3
compiling my project leads to:Gradle is version 6.0.1, JDK is 13.0.1.
The text was updated successfully, but these errors were encountered: