Skip to content
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

Report better error messages in JSpecify mode for bad overrides #846

Open
msridhar opened this issue Oct 13, 2023 · 0 comments
Open

Report better error messages in JSpecify mode for bad overrides #846

msridhar opened this issue Oct 13, 2023 · 0 comments
Labels
jspecify Related to support for jspecify standard (see jspecify.dev)

Comments

@msridhar
Copy link
Collaborator

E.g., for a bad override in a method reference, we report

warning: [NullAway] parameter o of referenced method is @NonNull, but parameter in functional interface method com.uber.Test.A.function(T1) is @Nullable

It'd be nice if we could find a way to print the functional interface method type so it refers to the annotated type arguments rather than the T1 type variable.

Originally posted by @msridhar in #845 (comment)

@msridhar msridhar added the jspecify Related to support for jspecify standard (see jspecify.dev) label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jspecify Related to support for jspecify standard (see jspecify.dev)
Projects
None yet
Development

No branches or pull requests

1 participant