This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.text.SimpleDateFormat
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 8 Oct 2003 22:54:38 +0200
- Subject: FYI: Patch: java.text.SimpleDateFormat
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I commited the attached patch to merge java.text.SimpleDateFormat with
classpath again. This fixes a bug reported to classpath.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/hHmSWSOgCCdjSDsRAkm6AJ9MVZduG09PsBH4E82M0idt6pj4NACfRboI
ZyV3l3dS+pP8iEMDzuCixLI=
=/Wyu
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2223
diff -u -b -B -r1.2223 ChangeLog
--- ChangeLog 8 Oct 2003 19:00:19 -0000 1.2223
+++ ChangeLog 8 Oct 2003 20:47:17 -0000
@@ -1,3 +1,9 @@
+2003-10-08 Michael Koch <konqueror@gmx.de>
+
+ * java/text/SimpleDateFormat.java
+ (compileFormat): Replace Character.isLetter() test with
+ Character.isLowerCase() || Character.isUpperCase().
+
2003-10-08 Tom Tromey <tromey@redhat.com>
* java/lang/StrictMath.java (toDegrees): Multiply before
Index: java/text/SimpleDateFormat.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/SimpleDateFormat.java,v
retrieving revision 1.22
diff -u -b -B -r1.22 SimpleDateFormat.java
--- java/text/SimpleDateFormat.java 28 Sep 2003 04:23:29 -0000 1.22
+++ java/text/SimpleDateFormat.java 8 Oct 2003 20:47:19 -0000
@@ -117,7 +117,8 @@
field = formatData.getLocalPatternChars().indexOf(thisChar);
if (field == -1) {
current = null;
- if (Character.isLetter(thisChar)) {
+ if (Character.isLowerCase (thisChar)
+ || Character.isUpperCase (thisChar)) {
// Not a valid letter
tokens.add(new FieldSizePair(-1,0));
} else if (thisChar == '\'') {