FunctionalJava app throws StackOverflowError with Stream in stack trace, but the app doesn't (seemingly) use stream. What could be the cause?
Asked
Active
Viewed 106 times
2 Answers
1
Possibly some other datastructure is useing Stream behind the scenes, which can use massive recursion.
The suspect in my case was IterableW
, when using wrap
and bind
on native Java Iterables
. Instead that, I used fj.List.iterableList
to convert a finite Iterable
to a fj.List
, which has effective bind
operation.

ron
- 9,262
- 4
- 40
- 73
0
There is a pull request to fix this on github.
If this is biting you, perhaps you could try that fix, and vote +1 on merging it if it works for you?

ms-tg
- 2,688
- 23
- 18
-
Update: fix merged upstream – ms-tg Jan 16 '13 at 18:59