From owner-freebsd-java Thu Jan 18 8: 5:18 2001 Delivered-To: freebsd-java@freebsd.org Received: from veldy.net (w028.z064001117.msp-mn.dsl.cnc.net [64.1.117.28]) by hub.freebsd.org (Postfix) with ESMTP id 38C1837B699 for ; Thu, 18 Jan 2001 08:04:49 -0800 (PST) Received: from HP2500B (veldy.net [64.1.117.28]) by veldy.net (Postfix) with SMTP id EA5FD8C5F; Thu, 18 Jan 2001 10:04:16 -0600 (CST) Message-ID: <013d01c08168$64f16f20$3028680a@tgt.com> From: "Thomas T. Veldhouse" To: "Rossen Raykov" , Cc: References: <3A63A6BD.787B4FB5@partitur.se> <023101c07ff8$b2647980$4c00000a@sage> <01a201c07ff9$5be39680$3028680a@tgt.com> <20010118221737.A8960@ares.trc.adelaide.edu.au> <007f01c08166$36d0e140$4c00000a@sage> Subject: Re: Serialization problem. Date: Thu, 18 Jan 2001 10:04:51 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Here is what I get on Sun Linux JDK: veldy@cascade:~$ java DateTest w test.out Saved: Wed May 08 00:00:00 CDT 3901 veldy@cascade:~$ java DateTest r test.out Restored: Wed May 08 00:00:00 CDT 3901 Here is what I get with the native FreeBSD JDK: [veldy@fuggle veldy]$ java DateTest w test.out Saved: Wed May 08 00:00:00 GMT-06:00 3901 [veldy@fuggle veldy]$ java DateTest r test.out Restored: Wed May 08 00:00:00 GMT-06:00 3901 Looks to me the only problem is the way timezones are reported and that is probably an OS implementation issue. Otherwise - it appears to be your code :) Tom Veldhouse veldy@veldy.net ----- Original Message ----- From: "Rossen Raykov" To: ; Cc: Sent: Thursday, January 18, 2001 9:49 AM Subject: Re: Serialization problem. > Attached is simple class that reproduce the error on my systems. > The test results: > > > sun$ uname -a > SunOS nis 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-5_10 > sun$ java -version > java version "1.2.2" > Solaris VM (build Solaris_JDK_1.2.2_06, native threads, sunwjit) > sun$ java DateTest w test > Saved: Wed May 08 00:00:00 EDT 3901 > > bsd$ uname -a > FreeBSD host 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0: Thu Oct 26 10:27:09 EDT > 2000 user@host:/usr/src/sys/compile/KERNEL i386 > bsd$ java -version > java version "1.2.2" > Classic VM (build jdk1.2.2-FreeBSD:root:2000/10/25-20:23, green threads, > nojit) > bsd$ java DateTest r test > Restored: Tue May 07 23:00:00 EST 3901 > > > Let me know if you need more information. > > Rossen > > > Can one of you two come up with a simple example of this? I tried, but > > everything seemed to work for me: > > > > eclipse> uname -a > > SunOS eclipse 5.8 Generic > > eclipse> java -version > > java version "1.2.2" > > Solaris VM (build Solaris_JDK_1.2.2_06, native threads, sunwjit) > > eclipse> java WriteDate > > Thu Mar 29 00:00:00 CST 2001 > > Mon Apr 02 00:00:00 CST 2001 > > > > misty> uname -a > > FreeBSD misty.eyesbeyond.com 4.1-RELEASE > > misty> java -version > > java version "1.2.2" > > Classic VM (build jdk1.2.2-FreeBSD:glewis:2000/10/05-07:13, green threads, > > nojit) > > misty> java ReadDate > > Thu Mar 29 00:00:00 GMT+09:30 2001 > > Mon Apr 02 00:00:00 GMT+09:30 2001 > > > > where WriteDate is a simple class that serializes a couple of dates either > > side of 1 April 2001 and ReadDate...well, you can guess that one :). > > > > I suspect something weird might be happening with locales, but its hard > > to track down without something reproducible. Am happy to send you the > > code for the test classes I wrote, but I'm sure you can duplicate it in > > about 2 minutes flat :). > > > > - Greg > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-java" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message