Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.0
-
Fix Version/s: 2.0-beta-3
-
Component/s: None
-
Labels:
-
Number of attachments :
Description
Using @ToString(includeNames = true) inserts a field called $print$names into the class. This field is neither transient nor static, which causes havoc when using XStream.
Example XStream output:
[
{
"name": "み +()[]{}.mp3",
"size": 690037,
"outputSize": 0,
"format": {
"codec": "mp3",
"name": "mp3",
"bitDepth": "s16le",
"samplingRate": 44100,
"channels": 2,
"$print$names": true
}
}
]
I don't understand why the field is there in the first place since printNames is a compile-time thing.