Relates :
|
|
Relates :
|
The range check optimization introduced by JDK-8073480 replaces checks of the form (i < 0 && i > length - 1) with an unsigned comparison of i and (length - 1). If length is 0, i is compared to -1 and the range check does *not* fail. Applying the attached patch to TestBadFoldCompare.java reproduces the problem.
|