You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code passes the checks although @Nullable Integer is not a valid subtype of T extends Number.
I attempted to create a reproducible test case that triggers a NullPointerException due to this mismatch, but I was unable to do so. This suggests that, in practice, the issue might not cause immediate problems.
However, I decided to report this issue in case the underlying root cause could manifest itself through different symptoms in other scenarios.
Expected behavior
The code should have been rejected as @Nullable Integer is not a valid subtype of T extends Number.
The text was updated successfully, but these errors were encountered:
Command
File
Actual behavior
The code passes the checks although
@Nullable Integer
is not a valid subtype ofT extends Number
.I attempted to create a reproducible test case that triggers a NullPointerException due to this mismatch, but I was unable to do so. This suggests that, in practice, the issue might not cause immediate problems.
However, I decided to report this issue in case the underlying root cause could manifest itself through different symptoms in other scenarios.
Expected behavior
The code should have been rejected as
@Nullable Integer
is not a valid subtype ofT extends Number
.The text was updated successfully, but these errors were encountered: