-
Notifications
You must be signed in to change notification settings - Fork 361
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
Crash in 3.27.0 when building Beam: "AnnotatedTypeMirrors aren't structurally equal." #5436
Comments
Ah, my mistake. I had mixed up my branches. I had advanced to 3.27.0 |
Thanks for reporting! I can reproduce this using Java 11; I'll start working on fixing this. (There's a different Error Prone related crash with Java 17.) Here's the part of the code that's causing the crash:
|
So, this is actually a duplicate of #3785. (Here's the relevant comment.). However if you add a diamond operator to the constructor invocation: this.stateAccessor =
new FnApiStateAccessor<>(
pipelineOptions,
pTransformId,
processBundleInstructionId,
cacheTokens,
bundleCache,
processWideCache,
tagToSideInputSpecMap,
beamFnStateClient,
keyCoder,
windowCoder,
this::getCurrentKey,
() -> currentWindow); Then Java isn't able to type check this code:
So, while the Checker Framework should not crash on legal Java code, you can probably fix this crash by getting javac to compile this code using the diamond operator. |
I encountered a crash in checker framework 3.27.0
The text was updated successfully, but these errors were encountered: