diff options
author | Scott Gilbertson <scottg@mantatest.com> | 2003-06-05 17:57:31 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-06-05 17:57:31 +0000 |
commit | 9faf44582d372f1773287fe5102a1839de81fdaf (patch) | |
tree | db29010313fe1c78514bdaf4f315947fae856643 /libjava | |
parent | eebfb2aa116c86d32cc146807551308bf704cfce (diff) | |
download | gcc-9faf44582d372f1773287fe5102a1839de81fdaf.zip gcc-9faf44582d372f1773287fe5102a1839de81fdaf.tar.gz gcc-9faf44582d372f1773287fe5102a1839de81fdaf.tar.bz2 |
SimpleDateFormat.java (SimpleDateFormat): Added numberFormat.setParseIntegerOnly(true).
2003-06-05 Scott Gilbertson <scottg@mantatest.com>
* java/text/SimpleDateFormat.java (SimpleDateFormat): Added
numberFormat.setParseIntegerOnly(true).
From-SVN: r67504
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/text/SimpleDateFormat.java | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index f6c8479..cef7d57 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-06-05 Scott Gilbertson <scottg@mantatest.com> + + * java/text/SimpleDateFormat.java (SimpleDateFormat): Added + numberFormat.setParseIntegerOnly(true). + 2003-06-05 Bert Deknuydt <Bert.Deknuydt@esat.kuleuven.ac.be> * include/posix-threads.h: Include <machine/pal.h> on OSF. diff --git a/libjava/java/text/SimpleDateFormat.java b/libjava/java/text/SimpleDateFormat.java index c1c79d9..06ab66f 100644 --- a/libjava/java/text/SimpleDateFormat.java +++ b/libjava/java/text/SimpleDateFormat.java @@ -1,6 +1,6 @@ /* SimpleDateFormat.java -- A class for parsing/formating simple date constructs - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -182,6 +182,7 @@ public class SimpleDateFormat extends DateFormat compileFormat(pattern); numberFormat = NumberFormat.getInstance(locale); numberFormat.setGroupingUsed (false); + numberFormat.setParseIntegerOnly (true); } /** @@ -208,6 +209,7 @@ public class SimpleDateFormat extends DateFormat this.pattern = pattern; numberFormat = NumberFormat.getInstance(locale); numberFormat.setGroupingUsed (false); + numberFormat.setParseIntegerOnly (true); } /** @@ -225,6 +227,7 @@ public class SimpleDateFormat extends DateFormat this.pattern = pattern; numberFormat = NumberFormat.getInstance(); numberFormat.setGroupingUsed (false); + numberFormat.setParseIntegerOnly (true); } // What is the difference between localized and unlocalized? The |