Skip to content
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

Support java.util.SequencedCollection added in Java 21 #5069

Closed
ekrich opened this issue Nov 8, 2024 · 4 comments
Closed

Support java.util.SequencedCollection added in Java 21 #5069

ekrich opened this issue Nov 8, 2024 · 4 comments
Assignees
Labels
missing javalib Report of something from the JDK that is missing (does not link)
Milestone

Comments

@ekrich
Copy link
Contributor

ekrich commented Nov 8, 2024

See https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/SequencedCollection.html

Background
When testing https://github.com/ekrich/sconfig with Java 21 and Scala 3.3.4, it seems the the above class is needed at least for the code in this project.

I was unable to create a reproducer. I was unable to see the problem with Scala 2.12 or 2.13. See the following issue: ekrich/sconfig#398. The issue seems to be the code related to java.util.ArrayList which implements java.util.List which extends java.util.SequencedCollection on Java.

@sjrd sjrd added the missing javalib Report of something from the JDK that is missing (does not link) label Nov 8, 2024
@sjrd
Copy link
Member

sjrd commented Nov 12, 2024

Also: SequencedMap and SequencedSet.

See JEP 431 for a comprehensive list of the new interfaces and their retrofitting in the collection hierarchy.

@sjrd sjrd self-assigned this Nov 12, 2024
@sjrd sjrd added this to the v1.17.1 milestone Nov 12, 2024
@sjrd
Copy link
Member

sjrd commented Nov 17, 2024

Closing as completed by #5075. Although that PR does not provide any of the methods of the new traits, it should be enough to avoid the linking issues mentioned in the issue description.

If the methods are desirable, feel free to open a separate issue.

@sjrd sjrd closed this as completed Nov 17, 2024
@sjrd
Copy link
Member

sjrd commented Nov 17, 2024

FTR, my WiP for the methods is available here:
main...sjrd:scala-js:ju-sequencedcollection

@ekrich
Copy link
Contributor Author

ekrich commented Jan 12, 2025

Confirmed that Scala.js 1.18.1 fixes my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing javalib Report of something from the JDK that is missing (does not link)
Projects
None yet
Development

No branches or pull requests

2 participants