FunctionalJava app throws StackOverflowError with Stream in stack trace, but the app doesn't (seemingly) use stream. What could be the cause?
FunctionalJava app throws StackOverflowError with Stream in stack trace
126 Views Asked by ron At
2
There are 2 best solutions below
1

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?
Possibly some other datastructure is useing Stream behind the scenes, which can use massive recursion.
The suspect in my case was
IterableW
, when usingwrap
andbind
on native JavaIterables
. Instead that, I usedfj.List.iterableList
to convert a finiteIterable
to afj.List
, which has effectivebind
operation.