RFR: 8299677: Formatter.format might take a long time to format an integer or floating-point [v4]
Lance Andersen
lancea at openjdk.org
Thu Jan 12 12:37:23 UTC 2023
On Wed, 11 Jan 2023 19:34:39 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> This change transforms a O(n^2) path to O(n) when prepending zero padding to decimal outputs, where n is the length of the padding.
>
> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
>
> 8299677: Formatter.format might take a long time to format an integer or floating-point
test/jdk/java/util/Formatter/Padding.java line 39:
> 37: class BlankPaddingInt {
> 38:
> 39: @Test
Any thought given to using `@MethodSource:` in order to specify a DataProvider? The benefit would be you could catch each failure vs having to address or comment out the assertEquals that is failing
-------------
PR: https://git.openjdk.org/jdk/pull/11939
More information about the core-libs-dev
mailing list