-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8373243 : EnumSet.spliterator() should specify and document its characteristics #28696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Tagging @jddarcy here since this issue was raised by him. |
|
👋 Welcome back vklang! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@viktorklang-ora The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
…cteristics as well as making EnumSet::spliterator() final
|
/csr needed |
|
@jddarcy has indicated that a compatibility and specification (CSR) request is needed for this pull request. @viktorklang-ora please create a CSR request for issue JDK-8373243 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
|
PS Is there anything analagous that should be added to any of the methods on EnumMap about the properties of the returned collections? |
|
|
||
| /** | ||
| * Creates a <em><a href="Spliterator.html#binding">late-binding</a></em> | ||
| * and <em>fail-fast</em> {@code Spliterator} over the elements in this set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the EnumSet spliterator is fail-fast, since its iterator is weakly consistent.
…nge implNote to implSpec
Addresses https://bugs.openjdk.org/browse/JDK-8373243 by copying and adapting the specification from https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/util/LinkedHashSet.java#L186-L204
Since EnumSet is sealed and only permits two final classes, the verbiage around "Implementations should document the reporting of additional characteristic values." may be considered to get removed from this PR. Kept, for now, for symmetry reasons.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28696/head:pull/28696$ git checkout pull/28696Update a local copy of the PR:
$ git checkout pull/28696$ git pull https://git.openjdk.org/jdk.git pull/28696/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28696View PR using the GUI difftool:
$ git pr show -t 28696Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28696.diff
Using Webrev
Link to Webrev Comment