-
Notifications
You must be signed in to change notification settings - Fork 737
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
ErrorProne crashed: MixedMutabilityReturnType #1234
Comments
@graememorgan have you seen anything like this? |
Additional annoyance was that `@SuppressWarnings("MixedMutabilityReturnType") did not work around the bug, and we actually had to downgrade errorprone. If we suppress a warning, can we also suppress the checker, and associated costs and bugs? It's not a real day's coding unless I get an unexpected internal error out of some compiler or other. |
I haven't seen anything like this, and I would have expected to while developing it. Do you have a repro of any sort? |
I'm sorry, we're on a proprietary codebase and I have no insight whatsoever into how to construct something for this. I can give you the fragment in question, which uses jgrapht APIs:
|
Sadly this didn't turn up the actual bug, but having coverage for these seems good. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=236825580
Sadly this didn't turn up the actual bug, but having coverage for these seems good. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=236825580
Closing since I don't think we can do much more than 97767bb without a repro. |
I got the same error on the latest release.
Minimally reproducible with private BiMap<String, String> triggerMixedMutabilityReturnTypeCrash(Collection<String> input) {
if (input.isEmpty()) {
return ImmutableBiMap.of();
}
HashBiMap<String, String> result = HashBiMap.create();
return result;
} |
Description of the problem / feature request:
ErrorProne crashed
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
We don't have anything self-contained, we just can't build our code.
What version of Error Prone are you using?
The text was updated successfully, but these errors were encountered: