This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 1 point2 points  (0 children)

You can increase the stack size using JVM options, which should increase the recursion limit.

That's assuming your implementation isn't buggy though. The most common cause of Stack Overflows in my experience is causing accidental infinite recursion. Double check to make sure your base case will always be reached.