RFR: 8358015: Fix SequencedMap sequenced view method specifications [v3]

Stuart Marks smarks at openjdk.org
Wed Jun 4 06:28:04 UTC 2025


> For a full explanation, see the bug report [JDK-8358015](https://bugs.openjdk.org/browse/JDK-8358015).
> 
> This PR includes three related changes:
> * New overrides in SequencedMap view collection implementations, which improve their behavior.
> * Update to `@implSpec` clauses to reflect this behavior (which was previously ill-specified).
> * Update to a test which relied on unspecified behavior.

Stuart Marks has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Merge branch 'master' into JDK-8358015-SequencedMap-view-implSpecs
 - Tweak nsee() declaration; adjust specs per suggestion; update copyrights.
 - Update @implSpecs of SequencedMap view methods.
 - Update SequencedMap views to use SequencedMap methods instead of inheriting
   default methods from SequencedCollection.

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/25515/files
  - new: https://git.openjdk.org/jdk/pull/25515/files/ff9fe9ab..830215f3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25515&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25515&range=01-02

  Stats: 54047 lines in 888 files changed: 29240 ins; 15574 del; 9233 mod
  Patch: https://git.openjdk.org/jdk/pull/25515.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25515/head:pull/25515

PR: https://git.openjdk.org/jdk/pull/25515


More information about the core-libs-dev mailing list