Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 81BA91337B47 for ; Mon, 25 Apr 2011 08:08:24 -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 83538-01-3 for ; Mon, 25 Apr 2011 11:08:06 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 38B0C1337C48 for ; Mon, 25 Apr 2011 08:07:36 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id p3PB7Z2c017353 for ; Mon, 25 Apr 2011 08:07:35 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id p3PAs7lJ092187 for pgsql-jdbc@postgresql.org; Mon, 25 Apr 2011 07:54:07 -0300 (ADT) (envelope-from news) From: Lew X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: Unnessecary use of new Integer(n) in AbstractJdbc2ResultSet Date: Mon, 25 Apr 2011 06:54:07 -0400 Organization: albasani.net Lines: 30 Message-ID: References: <4DB4B0F9020000250003CC4B@gw.wicourts.gov> <4DB4FD83.9050902@ejurka.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: news.albasani.net; logging-data="2aLwcgVZUrwCZJF+oJEirE1uWpe6TzjK1KzuMph4J4gCcZ4mm2myuKJUPvz7MN93XrU7Kmc0r//V9ivYVChLhNFHw9BX8nZBwXjhi9eRDOVxFUWlz1Vio0s4coTErx+v"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: <4DB4FD83.9050902@ejurka.com> Cancel-Lock: sha1:+C17JaipLSHduTRKyfeeXUzObas= To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/88 X-Sequence-Number: 21814 On 04/25/2011 12:50 AM, Kris Jurka wrote: > 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. Yeah, you have to use -bootclasspath to get the right rt.jar if you use -target. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg