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
117 Views Asked by ron At
2
There are 2 best solutions below
1
On
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 usingwrapandbindon native JavaIterables. Instead that, I usedfj.List.iterableListto convert a finiteIterableto afj.List, which has effectivebindoperation.