This PR proposes to add range checking for lazy lists. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
------------- Commit messages: - Add range test for LazyList Changes: https://git.openjdk.org/jdk/pull/30839/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30839&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8372688 Stats: 15 lines in 1 file changed: 14 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/30839.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30839/head:pull/30839 PR: https://git.openjdk.org/jdk/pull/30839
