typetools / typetools/checker-framework
@EnsuresNonNullIf doesn't seem to work as expected when used in a superclass
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 440
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 134
Description
Here's a live example:
As you can see, this fails to validate and I'm unsure why.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Java example from the live link with the nullness type system, then trace how @EnsuresNonNullIf is handled for methods declared in a superclass and overridden in Dog. Done means the example validates as expected, with regression coverage for this inheritance case if the project’s existing tests provide an appropriate entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100