Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5F9DB1337BC4 for ; Mon, 25 Apr 2011 02:12:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 24859-01-4 for ; Mon, 25 Apr 2011 05:11:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 2F4BC1337BFA for ; Mon, 25 Apr 2011 01:50:11 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 1592C28417; Mon, 25 Apr 2011 00:50:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sel1; bh=k3EkVWp4csAv R8RUaR28v4HLKYw=; b=ZRqZRvS1jOVofomJf7Jveu5EmuFh7tSo5G6sbr3L4g7z DgpsKVnjxoInEPu64RqLpSz77sgZ3X22XJ5xW9lII9ia4OgTt5Eb0Aywc4FX10wz /ArICi4DcnDMYp2tQAp62tULmY9UB0skv3NEPQvhX4u3gY0U6gep8M3g0Mxx7FM= Received: from [192.168.7.181] (cpe-24-24-224-57.socal.res.rr.com [24.24.224.57]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail63.csoft.net (Postfix) with ESMTPSA id 7CFB528414; Mon, 25 Apr 2011 00:50:09 -0400 (EDT) Message-ID: <4DB4FD83.9050902@ejurka.com> Date: Sun, 24 Apr 2011 21:50:11 -0700 From: Kris Jurka User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Kevin Grittner CC: dmigowski@ikoffice.de, pgsql-jdbc@postgresql.org Subject: Re: Unnessecary use of new Integer(n) in AbstractJdbc2ResultSet References: <4DB4B0F9020000250003CC4B@gw.wicourts.gov> In-Reply-To: <4DB4B0F9020000250003CC4B@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 201104/87 X-Sequence-Number: 21813 On 4/24/2011 9:23 PM, Kevin Grittner wrote: > Kris Jurka wrote: > >> Integer.valueOf appeared in JDK 1.5 and we currently still support >> JDK 1.4. There's been talk of ditching 1.4 support, but that hasn't >> officially happened yet and isn't something we'd do for older >> driver releases. > > Would it be practical to do it in the JDBC4 build? In this case, yes, but not in general. findColumn is pretty localized, so duplicating it's code in an inherited class wouldn't be too bad. > On a related note, are we using the -target switch to build for the > lowest supported release (1.4 for JDBC3 and 1.6 for JDBC4)? If not, > would that be practical? No, the -target switch is really pretty useless for our purposes. We must build with the actual JDK we want to use. -target only affects the generated class files, but we need the correct API version to build against. Since we're implementing things like the Connection interface, the -target switch doesn't magically change the interface definition to the version in the original JDK. Kris Jurka