Commit 9faf4458 by Scott Gilbertson Committed by Tom Tromey

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
parent eebfb2aa
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> 2003-06-05 Bert Deknuydt <Bert.Deknuydt@esat.kuleuven.ac.be>
* include/posix-threads.h: Include <machine/pal.h> on OSF. * include/posix-threads.h: Include <machine/pal.h> on OSF.
......
/* SimpleDateFormat.java -- A class for parsing/formating simple /* SimpleDateFormat.java -- A class for parsing/formating simple
date constructs 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. This file is part of GNU Classpath.
...@@ -182,6 +182,7 @@ public class SimpleDateFormat extends DateFormat ...@@ -182,6 +182,7 @@ public class SimpleDateFormat extends DateFormat
compileFormat(pattern); compileFormat(pattern);
numberFormat = NumberFormat.getInstance(locale); numberFormat = NumberFormat.getInstance(locale);
numberFormat.setGroupingUsed (false); numberFormat.setGroupingUsed (false);
numberFormat.setParseIntegerOnly (true);
} }
/** /**
...@@ -208,6 +209,7 @@ public class SimpleDateFormat extends DateFormat ...@@ -208,6 +209,7 @@ public class SimpleDateFormat extends DateFormat
this.pattern = pattern; this.pattern = pattern;
numberFormat = NumberFormat.getInstance(locale); numberFormat = NumberFormat.getInstance(locale);
numberFormat.setGroupingUsed (false); numberFormat.setGroupingUsed (false);
numberFormat.setParseIntegerOnly (true);
} }
/** /**
...@@ -225,6 +227,7 @@ public class SimpleDateFormat extends DateFormat ...@@ -225,6 +227,7 @@ public class SimpleDateFormat extends DateFormat
this.pattern = pattern; this.pattern = pattern;
numberFormat = NumberFormat.getInstance(); numberFormat = NumberFormat.getInstance();
numberFormat.setGroupingUsed (false); numberFormat.setGroupingUsed (false);
numberFormat.setParseIntegerOnly (true);
} }
// What is the difference between localized and unlocalized? The // What is the difference between localized and unlocalized? The
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment