RFR: JDK-8329089: Empty immutable list throws the wrong exception type for remove(first | last) operations
Per Minborg
pminborg at openjdk.org
Tue Apr 2 10:42:25 UTC 2024
This PR proposes to make empty immutable lists always throw UOE on `removeFirst` and `removeLast`.
-------------
Commit messages:
- Make empty immutable lists always throw UOE on remove(F|L)
Changes: https://git.openjdk.org/jdk/pull/18581/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18581&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8329089
Stats: 9 lines in 2 files changed: 9 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/18581.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18581/head:pull/18581
PR: https://git.openjdk.org/jdk/pull/18581
More information about the core-libs-dev
mailing list