This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: java.text.SimpleDateFormat


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached patch to merge with classpath again.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/zMoOWSOgCCdjSDsRAp+rAKCKmtFLiR7D+IxMi5mPl8Iu/goSvwCfTcDB
5pWh3r3Ecc3/OrVDCvtjo4U=
=/Iny
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2405
diff -u -b -B -r1.2405 ChangeLog
--- ChangeLog	2 Dec 2003 15:56:51 -0000	1.2405
+++ ChangeLog	2 Dec 2003 16:14:50 -0000
@@ -1,3 +1,9 @@
+2003-12-02  Ito Kazumitsu  <kaz@maczuka.gcd.org>
+
+	* java/text/SimpleDateFormat.java (compileFormat):
+	isLowerCase() and isUpperCase() allow too many characters.
+	Just use >= 'A' && <= 'Z' || >= 'a' && <= 'z'.
+
 2003-12-02  Dalibor Topic <robilad@kaffe.org>
 
 	* java/text/FieldPosition.java (equals): Fixed comment.
Index: java/text/SimpleDateFormat.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/SimpleDateFormat.java,v
retrieving revision 1.24
diff -u -b -B -r1.24 SimpleDateFormat.java
--- java/text/SimpleDateFormat.java	11 Nov 2003 12:22:20 -0000	1.24
+++ java/text/SimpleDateFormat.java	2 Dec 2003 16:14:50 -0000
@@ -117,8 +117,8 @@
       field = formatData.getLocalPatternChars().indexOf(thisChar);
       if (field == -1) {
 	current = null;
-	if (Character.isLowerCase (thisChar)
-	    || Character.isUpperCase (thisChar)) {
+	if ((thisChar >= 'A' && thisChar <= 'Z')
+	    || (thisChar >= 'a' && thisChar <= 'z')) {
 	  // Not a valid letter
 	  tokens.add(new FieldSizePair(-1,0));
 	} else if (thisChar == '\'') {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]