JDK-4975643 : (fmt) missing support for printf %X formatting
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2004-01-08
  • Updated: 2004-01-08
  • Resolved: 2004-01-08
Related Reports
Duplicate :  
Description
We now have "printf" support in Tiger build 33.

Happiness!  Thank you, thank you, thank you.

Unfortunately my first test examples was to use a format string
that included "%X" and this failed.

"%X" is a standard printf formatting string that means format an
integer value in upper case hexadecimal.

I realize that the same effect can be achieved with "%^x".

However one of the goals of the printf support is to allow
unreformed "C" developers to quickly reuse their old "C" printf
skills.  Unfortuantely "%X" is one of my favorite printf format
commands and it is deeply wired into my dinosaur brain.  I believe
it is a fairly widely used format command.

It is probably also be worth supporting "%G" and "%E".  These produce
scientific notation output using a capital "E".  Again, the issue
is that many developers may have "%G" or "%E" wired into their brains
as a standard printf format.

Thanks,

###@###.### 2004-01-08

Comments
EVALUATION Thanks for the feedback. This problem has already been noted in bug 4962433 which we expect to be fixed in beta2. -- iag@sfbay 2004-01-08
08-01-2004