From owner-freebsd-java@FreeBSD.ORG Tue May 30 12:57:17 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C99D16A439 for ; Tue, 30 May 2006 12:57:17 +0000 (UTC) (envelope-from java@wecos.de) Received: from mail.terminmarktwelt.de (mail.terminmarktwelt.de [217.6.66.203]) by mx1.FreeBSD.org (Postfix) with SMTP id 4CAE943D46 for ; Tue, 30 May 2006 12:57:16 +0000 (GMT) (envelope-from java@wecos.de) Received: (qmail 68351 invoked by uid 98); 30 May 2006 14:50:34 +0200 Received: from 192.168.168.242 by mail.terminmarktwelt.de (envelope-from , uid 82) with qmail-scanner-1.25 ( Clear:RC:1(192.168.168.242):. Processed in 0.122015 secs); 30 May 2006 12:50:34 -0000 X-Qmail-Scanner-Mail-From: java@wecos.de via mail.terminmarktwelt.de X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.168.242):. Processed in 0.122015 secs) Received: from unknown (HELO cosinus.terminmarktwelt.de) (192.168.168.242) by 192.168.168.203 with SMTP; 30 May 2006 14:50:33 +0200 From: Heiko Weber Organization: Wecos Date: Tue, 30 May 2006 14:51:26 +0200 User-Agent: KMail/1.8.2 Cc: freebsd-java@freebsd.org References: <200605291720.19793.java@wecos.de> <200605301428.07715.java@wecos.de> <447C3DA7.2050808@ebs.gr> In-Reply-To: <447C3DA7.2050808@ebs.gr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline To: Undisclosed.Recipients: ; Message-Id: <200605301451.26677.java@wecos.de> Subject: Re: Calendar Question - maybe bug ? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2006 12:57:18 -0000 Am Dienstag, 30. Mai 2006 14:42 schrieb Panagiotis Astithas: > Heiko Weber wrote: > > Am Dienstag, 30. Mai 2006 12:21 schrieb Heiko Weber: > >> Am Dienstag, 30. Mai 2006 10:00 schrieb Heiko Weber: > >>> At the moment I compile jdk with patchset 3 on an other FreeBSD system > >>> to verify ... there I can play with the timezone settings after > >>> installation. > >> > >> Only for your information: > >> > >> /usr/ports/jdk15 fails to compile. I'll give diablo-jdk15 a try ... last > >> output of "make" follows ... > > > > Compared to jdk15 the installation off diablo-jdk15 is much easier - > > below a minute. But the result is still the same. Later then I used > > sysinstall to change /etc/localtime to CDT, rebooted but no effect. > > > > # date > > Tue May 30 06:40:58 CDT 2006 > > > > # java -version > > java version "1.5.0" > > Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b00) > > Java HotSpot(TM) Server VM (build diablo-1.5.0_06-b00, mixed mode) > > > > What could make this difference? Is there any other way to implement a > > weekOfTheYear(int year) funtion ? > > > > Anyone an idea what to try next ? > > Could you print out the value of cal.get(Calendar.WEEK_OF_YEAR) for > those years? It's obviously not 53, but what exactly is it? Sure, 31.12.XXXX print: Weeks in Year 1990 = 1 Weeks in Year 1991 = 1 Weeks in Year 1992 = 1 Weeks in Year 1993 = 1 Weeks in Year 1994 = 53 Weeks in Year 1995 = 1 Weeks in Year 1996 = 1 Weeks in Year 1997 = 1 Weeks in Year 1998 = 1 Weeks in Year 1999 = 1 Weeks in Year 2000 = 1 Weeks in Year 2001 = 1 Weeks in Year 2002 = 1 Weeks in Year 2003 = 1 Weeks in Year 2004 = 1 Weeks in Year 2005 = 53 Weeks in Year 2006 = 1 Heiko