[Bug 275654] Re: Unparseable date
Launchpad has imported 4 comments from the remote bug at http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=214. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2008-10-13T09:52:10+00:00 Matthias Klose wrote: import java.util.*; DateFormat dp = new SimpleDateFormat(MMddHHmmss z); Date start = dp.parse(20081001175000 CET); returns Unparseable date on OpenJDK 6 on Ubuntu 8.04.1 server, but works with Sun Java 6 on Gentoo. Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275654/comments/3 On 2008-10-13T09:52:41+00:00 Matthias Klose wrote: Created attachment 112 test case Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275654/comments/4 On 2008-10-16T17:06:56+00:00 0-naveed wrote: Works OK for me using java-1.6.0-openjdk-1.6.0.0-0.18.b09.fc9.x86_64 on Fedora. If I println start in your test case, I get the following text, with no exceptions: Wed Oct 01 12:50:00 EDT 2008 Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275654/comments/5 On 2008-10-20T20:38:39+00:00 Omajid wrote: Works for me with java-1.6.0-openjdk-1.6.0.0-0.23.b12.fc10.i386 (Icedtea 1.3) on Fedora. Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/275654/comments/6 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/275654 Title: Unparseable date To manage notifications about this bug go to: https://bugs.launchpad.net/openjdk/+bug/275654/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275654] Re: Unparseable date
** Changed in: openjdk Importance: Unknown = Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/275654 Title: Unparseable date -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275654] Re: Unparseable date
closing as invalid; nobody is able to reproduce this. ** Changed in: openjdk-6 (Ubuntu) Status: Triaged = Invalid -- Unparseable date https://bugs.launchpad.net/bugs/275654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275654] Re: Unparseable date
I also confirm no issues. [EMAIL PROTECTED]:~/t$ cat DateTimeParseTest.java import java.util.*; import java.text.*; public class DateTimeParseTest { public static void main(String a[]) throws Exception { DateFormat df = new SimpleDateFormat(MMddHHmmss z); System.out.println(df.format(new Date())); System.out.println(df.format(df.parse(20081001175000 CET))); } } [EMAIL PROTECTED]:~$ java -version java version 1.6.0_0 IcedTea6 1.3.1 (6b12-0ubuntu6) Runtime Environment (build 1.6.0_0-b12) OpenJDK Client VM (build 1.6.0_0-b12, mixed mode, sharing) [EMAIL PROTECTED]:~/t$ java DateTimeParseTest 20081029073120 EST 20081001185000 CEST -- Unparseable date https://bugs.launchpad.net/bugs/275654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275654] Re: Unparseable date
** Changed in: openjdk Status: Confirmed = Invalid -- Unparseable date https://bugs.launchpad.net/bugs/275654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275654] Re: Unparseable date
** Changed in: openjdk Status: Unknown = Confirmed -- Unparseable date https://bugs.launchpad.net/bugs/275654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275654] Re: Unparseable date
** Bug watch added: Iced Tea Bugzilla #214 http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=214 ** Also affects: openjdk via http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=214 Importance: Unknown Status: Unknown ** Changed in: openjdk-6 (Ubuntu) Importance: Undecided = Low Status: New = Triaged -- Unparseable date https://bugs.launchpad.net/bugs/275654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275654] Re: Unparseable date
I don't see any such problem on hardy with openjdk. What is the version of openjdk you are using? Mine is 6b11-2ubuntu2 which is available in hardy-updates. Here is how I used your sample code. import java.util.*; import java.text.*; public class DateTest{ public static void main (String args[]){ DateFormat dp = new SimpleDateFormat(MMddHHmmss z); try { Date start = dp.parse(20081001175000 CET); } catch (Exception e){ System.out.println(e); e.printStackTrace(); } } } -- Unparseable date https://bugs.launchpad.net/bugs/275654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 275654] Re: Unparseable date
Works with sun-java6-jre: It works when I remove openjdk-6-jre-headless and use the Sun Java 6 in Ubuntu. So, this is clearly an openJDK problem. -- Unparseable date https://bugs.launchpad.net/bugs/275654 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs