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

Fix #3307, #3315: javalib *Stream.iterate characteristics now match JVM #3317

Conversation

LeeTibbert
Copy link
Contributor

@LeeTibbert LeeTibbert commented Jun 7, 2023

Fix #3307, Fix #3315

Four javalib {Stream, DoubleStream}.iterate() methods now report the same characteristics,
including ORDERED, as their JVM counterparts. This fixes #3307.

Issue #3315 needed to be fixed so that the fix above could be tested. Programs which use
any of the four {Stream, DoubleStream} iterate() methods should now link and execute.

The primary fix for #3315 is in PrimitiveIterator but getting to that point required extensive
reorganization to change DoubleStream to extend java.lang.Double (and not the prior Double meaning
scala.Double) and to become stricter about specifying when java.lang.Double Objects (AnyRef) and
scala.Double (Java primitive double) (AnyVal) are expected.

This PR should backport to the SN 0.4 series as it contains a number of corrections. I have not
attempted that. It is probably worth waiting a week or so before backporting it to let it settle and
prove itself.

@LeeTibbert LeeTibbert added the backport candidate PR which might be backported into previous major release of SN label Jun 7, 2023
@WojciechMazur WojciechMazur merged commit 54a7fb8 into scala-native:main Jun 9, 2023
69 checks passed
WojciechMazur pushed a commit to WojciechMazur/scala-native that referenced this pull request Sep 1, 2023
…racteristics now match JVM (scala-native#3317)

* Fix scala-native#3307, scala-native#3315: javalib *Stream.iterate characteristics now match JVM

* Provide build-breaker & quality fixes to StreamTest*.scala

(cherry picked from commit 54a7fb8)
WojciechMazur pushed a commit that referenced this pull request Sep 4, 2023
…VM (#3317)

* Fix #3307, #3315: javalib *Stream.iterate characteristics now match JVM

* Provide build-breaker & quality fixes to StreamTest*.scala

(cherry picked from commit 54a7fb8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport candidate PR which might be backported into previous major release of SN component:javalib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

javalib DoubleStream.spliterator() does not link. javalib ORDERED streams should report that characteristic.
2 participants