United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5061412 (fmt) remove date/time conversion suffix 'P'
JDK-5061412 : (fmt) remove date/time conversion suffix 'P'

Details
Type:
Bug
Submit Date:
2004-06-10
Status:
Resolved
Updated Date:
2004-06-25
Project Name:
JDK
Resolved Date:
2004-06-25
Component:
core-libs
OS:
generic
Sub-Component:
java.util
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (b58)

Related Reports
Relates:
Relates:
Relates:

Sub Tasks

Description
Based on various standards which the date/time conversion character suffixes are
inspired by, we defined 'p' and 'P' for lower and upper case am/pm markers (case
switched in beta2 due to request 4989961).

In bug 4962433 we introduced the set of conversions which are capital letters,
e.g. 'X', 'E', and 'T'.  There are now four date/time conversion to access the
same set of markers: tp, tP, Tp, and TP.  The user must now understand
conversion percedence to reliably predict whether upper or lower case will be
returned.  

It would be less confusing if we simply dropped the redundant 'P' date/time suffix.

-- iag@sfbay 2004-06-10

                                    

Comments
EVALUATION

The trivial code deletions to accmoplish this should be done immediately.

-- iag@sfbay 2004-06-10

                                     
2004-06-10
SUGGESTED FIX

*** /tmp/geta28957	Tue Jun  8 16:23:42 2004
--- Formatter.java	Tue Jun  8 16:13:49 2004
***************
*** 388,398 ****
   *     in lower case, e.g."<tt>am</tt>" or "<tt>pm</tt>". Use of the conversion
   *     prefix <tt>'T'</tt> forces this output to upper case.
   *
-  * <tr><td valign="top"><tt>'P'</tt>
-  *     <td> Locale-specific {@linkplain
-  *     java.text.DateFormatSymbols#getAmPmStrings morning or afternoon} marker
-  *     in upper case, e.g."<tt>AM</tt>" or "<tt>PM</tt>".
-  *
   * <tr><td valign="top"><tt>'z'</tt>
   *     <td> <a href="http://www.ietf.org/rfc/rfc0822.txt">RFC&nbsp;822</a>
   *     style numeric time zone offset from GMT, e.g. <tt>-0800</tt>.
--- 388,393 ----
***************
*** 1543,1557 ****
   *     that <tt>'p'</tt> produces lower-case output.  This is different from
   *     GNU <tt>date</tt> and POSIX <tt>strftime(3c)</tt> which produce
   *     upper-case output.)
-  *
-  * <tr><td valign="top"><tt>'P'</tt>
-  *     <td valign="top"> <tt>'&#92;u0050'</tt>
-  *     <td> Locale-specific {@linkplain
-  *     java.text.DateFormatSymbols#getAmPmStrings morning or afternoon} marker
-  *     in upper case, e.g."<tt>AM</tt>" or "<tt>PM</tt>".  (Note that
-  *     <tt>'P'</tt> produces upper-case output.  This is different from GNU
-  *     <tt>date</tt> and POSIX <tt>strftime(3c)</tt> which produce lower-case
-  *     output.)
   *
   * <tr><td valign="top"><tt>'z'</tt>
   *     <td valign="top"> <tt>'&#92;u007a'</tt>
--- 1538,1543 ----

Additional adjustments to the specification of 'p' may be required.

-- iag@sfbay 2004-06-10
                                     
2004-06-10
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-rc

FIXED IN:
tiger-rc

INTEGRATED IN:
tiger-b58
tiger-rc


                                     
2004-07-17



Hardware and Software, Engineered to Work Together