You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2006/03/07 13:53:45 UTC
svn commit: r383869 - in
/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text:
BreakIterator.java NumberFormat.java
Author: tellison
Date: Tue Mar 7 04:53:43 2006
New Revision: 383869
URL: http://svn.apache.org/viewcvs?rev=383869&view=rev
Log:
Apply patch for HARMONY-172 (Harmony text component has some API difference with JSE 5 spec)
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/BreakIterator.java
incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/BreakIterator.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/BreakIterator.java?rev=383869&r1=383868&r2=383869&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/BreakIterator.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/BreakIterator.java Tue Mar 7 04:53:43 2006
@@ -15,9 +15,10 @@
package java.text;
-
import java.util.Locale;
+import org.apache.harmony.luni.util.NotYetImplementedException;
+
/**
* This class is used to locate the boundaries of text. Instance of this class
* can be got by some factory methods:
@@ -361,5 +362,29 @@
} catch (CloneNotSupportedException e) {
throw new InternalError(e.getMessage());
}
+ }
+
+ /**
+ * This method is added by Java SE 5 without any spec, but will be removed
+ * by Java SE 6, so this method is not implemented by Harmony.
+ */
+ protected static long getLong(byte[] buf, int offset) {
+ throw new NotYetImplementedException();
+ }
+
+ /**
+ * This method is added by Java SE 5 without any spec, but will be removed
+ * by Java SE 6, so this method is not implemented by Harmony.
+ */
+ protected static int getInt(byte[] buf, int offset) {
+ throw new NotYetImplementedException();
+ }
+
+ /**
+ * This method is added by Java SE 5 without any spec, but will be removed
+ * by Java SE 6, so this method is not implemented by Harmony.
+ */
+ protected static short getShort(byte[] buf, int offset) {
+ throw new NotYetImplementedException();
}
}
Modified: incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java?rev=383869&r1=383868&r2=383869&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java Tue Mar 7 04:53:43 2006
@@ -168,7 +168,7 @@
* @exception IllegalArgumentException
* when the object is not a Number
*/
- public final StringBuffer format(Object object, StringBuffer buffer,
+ public StringBuffer format(Object object, StringBuffer buffer,
FieldPosition field) {
if (object instanceof Number) {
double dv = ((Number) object).doubleValue();