Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id ADC421337B5C for ; Wed, 23 Feb 2011 14:31:08 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 68701-03 for ; Wed, 23 Feb 2011 18:31:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from milan.hostgo.com (milan.hostgo.com [72.52.99.130]) by mail.postgresql.org (Postfix) with ESMTP id 191B51337B51 for ; Wed, 23 Feb 2011 14:31:01 -0400 (AST) Received: from [217.10.134.34] (helo=[192.168.1.71]) by milan.hostgo.com with esmtpa (Exim 4.69) (envelope-from ) id 1PsJUJ-0003VE-7I for pgsql-jdbc@postgresql.org; Wed, 23 Feb 2011 13:30:59 -0500 Message-ID: <4D655262.5060804@mlfowler.com> Date: Wed, 23 Feb 2011 18:30:58 +0000 From: Mike Fowler User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Failing test in org.postgresql.test.jdbc2.DateTest References: <4D6538EA.8080905@mlfowler.com> In-Reply-To: <4D6538EA.8080905@mlfowler.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - milan.hostgo.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mlfowler.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201102/135 X-Sequence-Number: 21533 On 23/02/11 16:42, I wrote: > > I've attached a patch to do just that and it's been tested with the > following JDKs: > > 1.4.2_19 > 1.5.0_22 > 1.6.0_21 > > Regards, > Oops, hold the phone. The test still broke on 1.6 but I didn't notice the error as the "build succeeded". The year value 23456 causes the test to fail as the maximum year in java.sql.date is 9999. However, when I change the year to 3456 the test fails: [junit] expected:<3456-01-01> but was:<456-01-01> I'll supply a patch that fixes this once I figure out what's up... Regards, -- Mike Fowler Registered Linux user: 379787