-
Bug
-
Resolution: Fixed
-
P4
-
22, 23, 24
In the "Comparison of Stack and Deque methods" table in java.util.Deque specification, it incorrectly claims that `peek()` (returns null on empty) is equivalent to `getFirst()` (throws exception on empty), but in fact, it should be equivalent to `peekFirst()`, as 2 other places in the specification (in the "Comparison of Queue and Deque methods" table and the `peek()` method) claims.
The fix would be simple as to update the typo in the "stack" table.
Mailing list thread: https://mail.openjdk.org/pipermail/jdk-dev/2024-July/009258.html
The fix would be simple as to update the typo in the "stack" table.
Mailing list thread: https://mail.openjdk.org/pipermail/jdk-dev/2024-July/009258.html
- links to
-
Commit(master) openjdk/jdk/1846a65e
-
Review(master) openjdk/jdk/20363