RFR: 8357681: Fixed the DigitList::toString method causing incorrect results during debugging
Justin Lu
jlu at openjdk.org
Tue May 27 17:00:50 UTC 2025
On Sun, 18 May 2025 11:11:32 GMT, Shaojin Wen <swen at openjdk.org> wrote:
> When debugging getLong/getDouble/getDecimal of DigitList, the debugger will call the DigitList::toString method. At this time, DigitList::toString will modify tempBuilder, which will cause incorrect results.
Change looks good to me, since the previous code causes conflicts where `getStringBuilder` is called during debugging. Did not see any usages of `DigitList.toString()` by us as well.
-------------
Marked as reviewed by jlu (Committer).
PR Review: https://git.openjdk.org/jdk/pull/25288#pullrequestreview-2871861188
More information about the core-libs-dev
mailing list