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, but the app doesn’t (seemingly)
Share
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.