isSameAs
fails with primitive type values outside the autobox cache
#2887
Labels
type: bug
A general bug
Describe the bug
isSameAs
assertions on primitive types fail if the value being tested is outside the cached range of the corresponding wrapper type.From JLS section 5.1.7:
Test case reproducing the bug
The text was updated successfully, but these errors were encountered: