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

SI-9219 Stream toString returns unexpected result #4381

Merged
merged 1 commit into from Mar 24, 2015

Conversation

khernyo
Copy link
Contributor

@khernyo khernyo commented Mar 14, 2015

  • Cursor was not advanced before appending the second element
    when only the first two elements of the stream were known.
  • When there is no cycle in the stream, the "scout" (and
    "cursor") ends up pointing to a stream where tailDefined
    is false. This means that cursor is either empty, or
    cursor.tail is not yet evaluated. The former case is handled
    properly, but in the latter case, one more element
    (cursor.head) needs to be appended.

review @Ichoran

- Cursor was not advanced before appending the second element
  when only the first two elements of the stream were known.
- When there is no cycle in the stream, the "scout" (and
  "cursor") ends up pointing to a stream where tailDefined
  is false. This means that cursor is either empty, or
  cursor.tail is not yet evaluated. The former case is handled
  properly, but in the latter case, one more element
  (cursor.head) needs to be appended.
@scala-jenkins scala-jenkins added this to the 2.11.7 milestone Mar 14, 2015
@Ichoran
Copy link
Contributor

Ichoran commented Mar 15, 2015

LGTM, thanks!

@retronym
Copy link
Member

Thanks for your first contribution of 2015, @khernyo!

retronym added a commit that referenced this pull request Mar 24, 2015
SI-9219 Stream toString returns unexpected result
@retronym retronym merged commit 7741d3f into scala:2.11.x Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants