-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Generic-typed fields include erroneous non-null check #1320
Comments
Do you have a suggestion for what you think should happen? The generated code can't know whether Perhaps we could say that if there is a |
|
You clearly have a good analysis, however the default is not what you think. From that page:
So a bare type variable |
Oh dear. That's an inconsistency between Checker Framework and JSpecify, then. Regardless, |
Yea, that's a helpful workaround. Glad we had this exchange! |
To be clear, they can't currently employ that workaround, because AutoValue doesn't currently have logic to treat |
Hi @eamonnmcmanus, any news on the planned implementation? |
Discovered during apache/beam#16721 here is a summary example:
It is valid to create
ValueInSingleWindow<@Nullable String>
in the usual way viaValueInSingleWindow.<@Nullable String>of(null, ...)
.However, autovalue creates a check that the value is non-null, rejecting type-safe code.
The text was updated successfully, but these errors were encountered: