I used a test case where the first list had 15,000 values and the second only had 2 values. This is still a problem in 5.1 and I thought this was simply a case of replacing a recursive algorithm with an iterative one to address StringHelper's internal replace recursion calls. But once I addressed the recursion with an iterative loop, I found out that the test case sparked another downstream StackOverflowError, but this time inside antlr.
java.lang.StackOverflowError
at antlr.BaseAST.toString(BaseAST.java:333)
at antlr.BaseAST.toStringList(BaseAST.java:341)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
(repeats indefinately)
|