There was another stack overflow due to recursion, but after commenting out List<ToolData> in ToolData and fixing compile errors, error still happens
Stacktrace:
java.lang.StackOverflowError
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
at java.io.PrintStream.write(PrintStream.java:480)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:185)
at java.io.PrintStream.write(PrintStream.java:527)
at java.io.PrintStream.print(PrintStream.java:669)
at java.io.PrintStream.println(PrintStream.java:806)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:115)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
at com.linsage.Java2JsonAction.getFields(Java2JsonAction.java:116)
Beans:
There was another stack overflow due to recursion, but after commenting out
List<ToolData>
inToolData
and fixing compile errors, error still happens Stacktrace: