-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b11
The Preconditions.checkFromIndexSize has the following signature:
public static <X extends RuntimeException>
int checkFromIndexSize(int fromIndex, int size, int length,
BiFunction<String, List<Number>, X> oobef)
i.e. it takes the "fromIndex" as the first parameter and the size as the second parameter. However, there are places in code right now, where the call to this method incorrectly passes the size as the first parameter and the fromIndex as the second parameter.
public static <X extends RuntimeException>
int checkFromIndexSize(int fromIndex, int size, int length,
BiFunction<String, List<Number>, X> oobef)
i.e. it takes the "fromIndex" as the first parameter and the size as the second parameter. However, there are places in code right now, where the call to this method incorrectly passes the size as the first parameter and the fromIndex as the second parameter.
- relates to
-
JDK-8268698 Use Objects.check{Index,FromToIndex,FromIndexSize} for java.base
-
- Resolved
-
- links to
-
Commit openjdk/jdk/43cf8b3d
-
Review(master) openjdk/jdk/12595