質問

FunctionalJava app throws StackOverflowError with Stream in stack trace, but the app doesn't (seemingly) use stream. What could be the cause?

役に立ちましたか?

解決

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.

他のヒント

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?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top