There is an ObjectInputStream, I need to add logging to it and add all the objects that are written to the stack. The solution is to extend the existing class, but, it should be done in the same java.io package, but it is read-only.
|
There is an ObjectInputStream, I need to add logging to it and add all the objects that are written to the stack. The solution is to extend the existing class, but, it should be done in the same java.io package, but it is read-only.
Source: https://ru.stackoverflow.com/questions/661430/
All Articles
java.io? - RegenttoString()for collections will overflow the stack), just the nesting depth is big. What you want is the-Xbootclasspathoption ( example ), but it may be easier to set up a breakpoint in the IDE when throwing aStackOverflowErrorand look for something familiar in the contents of the collections. You can also make your object its ownreadObject/writeObjectwith logs and other things (see doc onSerializable) - zRrr