[kaffe] CVS kaffe (guilhem): KJC's compilation fixes + missing method

Kaffe CVS cvs-commits at kaffe.org
Sun Aug 24 23:32:02 PDT 2003


PatchSet 3977 
Date: 2003/08/25 06:30:10
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
KJC's compilation fixes + missing method

Members: 
	ChangeLog:1.1574->1.1575 
	libraries/javalib/essential.files:1.22->1.23 
	libraries/javalib/java/text/DecimalFormat.java:1.17->1.18 
	libraries/javalib/java/text/FieldPosition.java:1.7->1.8 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1574 kaffe/ChangeLog:1.1575
--- kaffe/ChangeLog:1.1574	Mon Aug 25 06:14:45 2003
+++ kaffe/ChangeLog	Mon Aug 25 06:30:10 2003
@@ -1,5 +1,16 @@
 2003-08-24  Guilhem Lavaux <guilhem at kaffe.org>
 
+	* libraries/javalib/essential.files: Added
+	AttributedCharacterIterator.java and CharacterIterator.java for KJC.
+
+	* libraries/javalib/java/text/DecimalFormat.java: Fixed a typo.
+
+	* libraries/javalib/java/text/FieldPosition.java:
+	(getFieldAttribute) added
+	(FieldPosition) Added one constructor and implemented the other one.
+
+2003-08-24  Guilhem Lavaux <guilhem at kaffe.org>
+
 	* config/i386/openbsd2/md.h: Added signal defines for profiler in
 	jthreads.
 
Index: kaffe/libraries/javalib/essential.files
diff -u kaffe/libraries/javalib/essential.files:1.22 kaffe/libraries/javalib/essential.files:1.23
--- kaffe/libraries/javalib/essential.files:1.22	Mon Aug 25 06:14:48 2003
+++ kaffe/libraries/javalib/essential.files	Mon Aug 25 06:30:12 2003
@@ -219,6 +219,8 @@
 java/security/cert/Certificate.java
 java/security/cert/CertificateException.java
 java/security/cert/CertificateEncodingException.java
+java/text/AttributedCharacterIterator.java
+java/text/CharacterIterator.java
 java/text/ChoiceFormat.java
 java/text/DateFormat.java
 java/text/DateFormatSymbols.java
Index: kaffe/libraries/javalib/java/text/DecimalFormat.java
diff -u kaffe/libraries/javalib/java/text/DecimalFormat.java:1.17 kaffe/libraries/javalib/java/text/DecimalFormat.java:1.18
--- kaffe/libraries/javalib/java/text/DecimalFormat.java:1.17	Mon Aug 25 06:14:48 2003
+++ kaffe/libraries/javalib/java/text/DecimalFormat.java	Mon Aug 25 06:30:12 2003
@@ -527,7 +527,7 @@
 	    dest.insert(decimal_index, symbols.getDecimalSeparator());
 	    if (fieldPos != null && 
 		(fieldPos.getField() == FRACTION_FIELD ||
-		 fieldPos.getFieldAttribut() == NumberFormat.Field.FRACTION))
+		 fieldPos.getFieldAttribute() == NumberFormat.Field.FRACTION))
 	      {
 		fieldPos.setBeginIndex(decimal_index + 1);
 		fieldPos.setEndIndex(dest.length());
Index: kaffe/libraries/javalib/java/text/FieldPosition.java
diff -u kaffe/libraries/javalib/java/text/FieldPosition.java:1.7 kaffe/libraries/javalib/java/text/FieldPosition.java:1.8
--- kaffe/libraries/javalib/java/text/FieldPosition.java:1.7	Mon Aug 25 06:14:48 2003
+++ kaffe/libraries/javalib/java/text/FieldPosition.java	Mon Aug 25 06:30:12 2003
@@ -65,10 +65,35 @@
   private int end;
 
   /**
+   * This is the field attribute value.
+   */
+  private Format.Field field_attribute;
+
+  /**
+   * This method initializes a new instance of <code>FieldPosition</code>
+   * to have the specified field attribute. The attribute will be used as
+   * an id.
+   *
+   * @param field The field format attribute.
+   */
+  public FieldPosition (Format.Field field)
+  {
+    this.field_attribute = field;
+  }
+
+  /**
+   * This method initializes a new instance of <code>FieldPosition</code>
+   * to have the specified field attribute. The attribute will be used as
+   * an id is non null. The integer field id is only used if the Format.Field
+   * attribute is not used by the formatter.
    *
+   * @param field The field format attribute.
+   * @param field_id The field identifier value.
    */
-  public FieldPosition (Format.Field field, int attribute)
+  public FieldPosition (Format.Field field, int field_id)
   {
+    this.field_attribute = field;
+    this.field_id = field_id;
   }
 
   /**
@@ -90,6 +115,11 @@
   public int getField ()
   {
     return field_id;
+  }
+
+  public Format.Field getFieldAttribute ()
+  {
+    return field_attribute;
   }
 
   /**




More information about the kaffe mailing list