RFR: 8292981: Unify and restructure integer printing format specifiers [v4]

Stefan Karlsson stefank at openjdk.org
Tue Aug 30 20:07:06 UTC 2022


On Tue, 30 Aug 2022 19:41:23 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> They have not been discussed. I looked for a pragmatic solution to the problem that parts of the code have different formatting requirements, and then selected one naming convention that I liked. This can still be changed if we can agree on a another / better naming convention.
>
> I don't have a strong opinion, just offering a couple ideas.  I'm not sure the additional underscore between the modifiers is worthwhile.  I like having the "X" before the extension part.  I thought about "Z" (for zero) instead of "0", but think I prefer being more literal.  So my preference would be "XXX_FORMAT_X0" instead of "XXX_FORMAT_X_0".  But that's a pretty weak preference.

An alternative could be to switch so that _X means 0x and zero padding, and then use another letter to denote the case where we don't want the leading zeros.

-------------

PR: https://git.openjdk.org/jdk/pull/10042


More information about the hotspot-dev mailing list