❔ Stack Overflow error while trying to deserialize xml file
Pastes.io
Stack overflow error - Pastes.io
2 Replies
Calling the constructor of
XMLTank
will call XMLTank xo = new XMLTank()
which will call the constructor of XMLTank
which will call XMLTank xo = new XMLTank()
which will call the constructor of XMLTank
which will call the constructor of XMLTank
which will call XMLTank xo = new XMLTank()
which will call the constructor of XMLTank
which will call the constructor of XMLTank
which will call XMLTank xo = new XMLTank()
which will call the constructor of XMLTank
which will call the constructor of XMLTank
which will call XMLTank xo = new XMLTank()
which will call the constructor of XMLTank
...
Ad infinitum
It seems to me like the XMLTank xo = new XMLTank()
line isn't even needed
You never use the xo
variableWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.