diff options
| author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-30 13:42:24 +0000 |
|---|---|---|
| committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-30 13:42:24 +0000 |
| commit | 90dc28587eef7716b0b575ac2266eaaa8202e1e8 (patch) | |
| tree | 587f6c3511e8ed3079e8952d2d53c902bbaacd84 /libjava/java/text/SimpleDateFormat.java | |
| parent | 92b13e438c93227fc20aaec01b54d6b35410c821 (diff) | |
| download | gcc-90dc28587eef7716b0b575ac2266eaaa8202e1e8.tar.gz | |
2004-05-30 Michael Koch <konqueror@gmx.de>
* java/text/DecimalFormat.java
(parse): Fixed parsing of decimal strings. Number of maximum
digits to be read should now work.
* java/text/SimpleDateFormat.java
(SimpleDateFormat): Set maximumFractionDigit to 0 for the number
formatter. This fixes DateFormatTest.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82449 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/text/SimpleDateFormat.java')
| -rw-r--r-- | libjava/java/text/SimpleDateFormat.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/java/text/SimpleDateFormat.java b/libjava/java/text/SimpleDateFormat.java index 5f3614eefcf..ea3e09fab46 100644 --- a/libjava/java/text/SimpleDateFormat.java +++ b/libjava/java/text/SimpleDateFormat.java @@ -189,6 +189,7 @@ public class SimpleDateFormat extends DateFormat numberFormat = NumberFormat.getInstance(locale); numberFormat.setGroupingUsed (false); numberFormat.setParseIntegerOnly (true); + numberFormat.setMaximumFractionDigits (0); } /** @@ -216,6 +217,7 @@ public class SimpleDateFormat extends DateFormat numberFormat = NumberFormat.getInstance(locale); numberFormat.setGroupingUsed (false); numberFormat.setParseIntegerOnly (true); + numberFormat.setMaximumFractionDigits (0); } /** @@ -234,6 +236,7 @@ public class SimpleDateFormat extends DateFormat numberFormat = NumberFormat.getInstance(); numberFormat.setGroupingUsed (false); numberFormat.setParseIntegerOnly (true); + numberFormat.setMaximumFractionDigits (0); } // What is the difference between localized and unlocalized? The |
