[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/28658] New: whitespace in date confuses SimpleDateFormat
From: |
green at redhat dot com |
Subject: |
[Bug classpath/28658] New: whitespace in date confuses SimpleDateFormat parser |
Date: |
8 Aug 2006 19:45:07 -0000 |
The following code throws an exception when we parse the second date. Sun's
implementation can parse both versions.
import java.util.*;
import java.text.*;
public class j
{
public static void main(String args[]) throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy",
Locale.US);
System.out.println (sdf.parseObject("Sun Nov 6 08:49:37 1994"));
System.out.println (sdf.parseObject("Sun Nov 6 08:49:37 1994"));
}
}
--
Summary: whitespace in date confuses SimpleDateFormat parser
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: green at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28658
- [Bug classpath/28658] New: whitespace in date confuses SimpleDateFormat parser,
green at redhat dot com <=