pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: dmigowski@ikoffice.de
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Unnessecary use of new Integer(n) in	 AbstractJdbc2ResultSet
Date: Sun, 24 Apr 2011 21:50:11 -0700
Message-ID: <4DB4FD83.9050902@ejurka.com> (raw)
In-Reply-To: <4DB4B0F9020000250003CC4B@gw.wicourts.gov>
References: <4DB4B0F9020000250003CC4B@gw.wicourts.gov>

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




view thread (8+ messages)  latest in thread

Message-ID: <4DB4FD83.9050902@ejurka.com>
Permalink:  ../4DB4FD83.9050902@ejurka.com/
Also on:    postgresql.org/message-id/4DB4FD83.9050902@ejurka.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, Kevin.Grittner@wicourts.gov, dmigowski@ikoffice.de
  Subject: Re: Unnessecary use of new Integer(n) in	 AbstractJdbc2ResultSet
  In-Reply-To: <4DB4FD83.9050902@ejurka.com>
  References: <4DB4B0F9020000250003CC4B@gw.wicourts.gov> <4DB4FD83.9050902@ejurka.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox