8254286: Wrong inference in switch expression with "null" arm #583
Basically, for code like:
Attr.condType is currently passing , BOT, to Types.lub. But Types.lub needs the list without BOT, so filtering BOT(s) out of the list.
Failed test tasks
mcimadamore left a comment
The fix looks fine. Note that in method inference we also skip the erroneous case:
Not sure whether this applies here too - maybe erroneous types are already skipped earlier?
@lahodaj This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 153 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
Right - I believe errors are handled by the preceding conditions in condType.
@lahodaj Since your change was applied there have been 242 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit 0e92053.