You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function uses stream.writeChars on a JObject which results in a an invalid string, which causes an exception when trying to read into json object afterwards
writeJsonSummary uses DataOutputStream.writeChars, which writes each char of the String as if using DataOutputStream.writeChar, which literally says it does a bad UTF-16 impression:
Writes a char to the underlying output stream as a 2-byte value, high byte first. If no exception is thrown, the counter written is incremented by 2.
* Write GC summary file using UTF-8
Tested by adding a unit test for writeJsonSummary.
Fixes#4644.
* [CR] Always delete temporary directory
* Remove useless debug print
The function uses
stream.writeChars
on a JObject which results in a an invalid string, which causes an exception when trying to read into json object afterwardsSuggested solution to use
writeBytes
insteadThe text was updated successfully, but these errors were encountered: