commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: java.text.FieldPosition


From: Guilhem Lavaux
Subject: FYI: java.text.FieldPosition
Date: Sat, 10 Apr 2004 19:01:56 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630

Hi,

Here is an obvious to make FieldPosition behaves the way the java doc says it should.

ChangeLog entry:

2004-04-10  Guilhem Lavaux <address@hidden>

        * java/text/FieldPosition.java
        (FieldPosition) Constructor now behaves as it should according
        to the java documentation.

Cheers,

Guilhem.
Index: java/text/FieldPosition.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/text/FieldPosition.java,v
retrieving revision 1.7
diff -u -b -B -r1.7 FieldPosition.java
--- java/text/FieldPosition.java        27 Nov 2003 11:50:55 -0000      1.7
+++ java/text/FieldPosition.java        10 Apr 2004 16:58:48 -0000
@@ -72,13 +72,13 @@
   /**
    * This method initializes a new instance of <code>FieldPosition</code>
    * to have the specified field attribute. The attribute will be used as
-   * an id.
+   * an id. It is formally equivalent to calling FieldPosition(field, -1).
    *
    * @param field The field format attribute.
    */
   public FieldPosition (Format.Field field)
   {
-    this.field_attribute = field;
+    this(field, -1);
   }
 
   /**

Attachment: pgpOYP8Slg8_P.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]