[kaffe] CVS kaffe (robilad): DecimalFormat fix

Kaffe CVS cvs-commits at kaffe.org
Sat Mar 26 16:03:30 PST 2005


PatchSet 5614 
Date: 2005/03/26 23:58:32
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
DecimalFormat fix

2005-03-26  Ito Kazumitsu  <kaz at maczuka.gcd.org>

        * java/text/DecimalFormat.java (parse):
        Check whether the positive suffix matches the pattern.

Members: 
	ChangeLog:1.3786->1.3787 
	libraries/javalib/java/text/DecimalFormat.java:1.33->1.34 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3786 kaffe/ChangeLog:1.3787
--- kaffe/ChangeLog:1.3786	Sat Mar 26 19:11:04 2005
+++ kaffe/ChangeLog	Sat Mar 26 23:58:32 2005
@@ -1,3 +1,8 @@
+2005-03-26  Ito Kazumitsu  <kaz at maczuka.gcd.org>
+
+        * java/text/DecimalFormat.java (parse):
+        Check whether the positive suffix matches the pattern. 
+
 2005-03-26  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* kaffe/kaffevm/lookup.c
Index: kaffe/libraries/javalib/java/text/DecimalFormat.java
diff -u kaffe/libraries/javalib/java/text/DecimalFormat.java:1.33 kaffe/libraries/javalib/java/text/DecimalFormat.java:1.34
--- kaffe/libraries/javalib/java/text/DecimalFormat.java:1.33	Wed Jan  5 23:43:11 2005
+++ kaffe/libraries/javalib/java/text/DecimalFormat.java	Sat Mar 26 23:58:35 2005
@@ -989,6 +989,11 @@
 	pos.setErrorIndex(index);
 	return null;
       }
+    else if (! got_pos_suf)
+      {
+       pos.setErrorIndex(index);
+       return null;
+      }
 
     String suffix = is_neg ? ns : positiveSuffix;
     long parsedMultiplier = 1;




More information about the kaffe mailing list