pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
patch to fix jdk 2 compile errors and v2 compatability for review
9+ messages / 3 participants
[nested] [flat]

* patch to fix jdk 2 compile errors and v2 compatability for review
@ 2005-07-08 02:24 Dave Cramer <pg@fastcrypt.com>
  2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Dave Cramer @ 2005-07-08 02:24 UTC (permalink / raw)
  To: pgsql-jdbc

I've tested this against 7.2, 7.4, 8.0, 8.1 with both jdk 1.4, and 1.3.1

Dave


Dave Cramer
davec@postgresintl.com
www.postgresintl.com
ICQ #14675561
jabber davecramer@jabber.org
ph (519 939 0336 )

Attachments:

  callable07072005.diff.gz (application/x-gzip, 4.3K) download

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: patch to fix jdk 2 compile errors and v2 compatability
  2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
@ 2005-07-08 11:29 ` Oliver Jowett <oliver@opencloud.com>
  2005-07-08 13:15   ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Oliver Jowett @ 2005-07-08 11:29 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc

Dave Cramer wrote:
> I've tested this against 7.2, 7.4, 8.0, 8.1 with both jdk 1.4, and 1.3.1

Why the duplicated code in Jdbc2CallableStatement / 
Jdbc3CallableStatement? Shouldn't this live in AbstractJdbc2Statement?

-O



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: patch to fix jdk 2 compile errors and v2 compatability for review
  2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
@ 2005-07-08 13:15   ` Dave Cramer <pg@fastcrypt.com>
  2005-07-08 14:25     ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Dave Cramer @ 2005-07-08 13:15 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc

Oliver,

Yes it could actually, although, I'd like to separate the knowledge  
of CallableStatement differences somewhere else. I agree there's no  
reason for duplicate code though. On the other hand, only one of  
these classes ever gets compiled.


Dave
On 8-Jul-05, at 7:29 AM, Oliver Jowett wrote:

> Dave Cramer wrote:
>
>> I've tested this against 7.2, 7.4, 8.0, 8.1 with both jdk 1.4, and  
>> 1.3.1
>>
>
> Why the duplicated code in Jdbc2CallableStatement /  
> Jdbc3CallableStatement? Shouldn't this live in AbstractJdbc2Statement?
>
> -O
>
>



Dave Cramer
davec@postgresintl.com
www.postgresintl.com
ICQ #14675561
jabber davecramer@jabber.org
ph (519 939 0336 )




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: patch to fix jdk 2 compile errors and v2 compatability
  2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 13:15   ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
@ 2005-07-08 14:25     ` Oliver Jowett <oliver@opencloud.com>
  2005-07-08 15:40       ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Oliver Jowett @ 2005-07-08 14:25 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc

Dave Cramer wrote:

> Yes it could actually, although, I'd like to separate the knowledge  of
> CallableStatement differences somewhere else.

If you mean JDBC2 vs JDBC3 differences, that's what
AbstractJdbc3Statement is for, surely?

> I agree there's no  reason
> for duplicate code though. On the other hand, only one of  these classes
> ever gets compiled.

It is a maintenance issue, not a code size / compilation issue. If you
have two copies of the "same" code, you have to keep them in sync by
hand, which is asking for trouble.

-O



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: patch to fix jdk 2 compile errors and v2 compatability for review
  2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 13:15   ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 14:25     ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
@ 2005-07-08 15:40       ` Dave Cramer <pg@fastcrypt.com>
  2005-07-13 06:20         ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Dave Cramer @ 2005-07-08 15:40 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc

Yup, I've cut all that code out and moved it. Just testing it as much  
as I can now

Dave
On 8-Jul-05, at 10:25 AM, Oliver Jowett wrote:

> Dave Cramer wrote:
>
>
>> Yes it could actually, although, I'd like to separate the  
>> knowledge  of
>> CallableStatement differences somewhere else.
>>
>
> If you mean JDBC2 vs JDBC3 differences, that's what
> AbstractJdbc3Statement is for, surely?
>
>
>> I agree there's no  reason
>> for duplicate code though. On the other hand, only one of  these  
>> classes
>> ever gets compiled.
>>
>
> It is a maintenance issue, not a code size / compilation issue. If you
> have two copies of the "same" code, you have to keep them in sync by
> hand, which is asking for trouble.
>
> -O
>
>




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: patch to fix jdk 2 compile errors and v2 compatability
  2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 13:15   ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 14:25     ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 15:40       ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
@ 2005-07-13 06:20         ` Kris Jurka <books@ejurka.com>
  2005-07-13 11:24           ` Re: patch to fix jdk 2 compile errors and v2 compatability Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Kris Jurka @ 2005-07-13 06:20 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: Oliver Jowett <oliver@opencloud.com>; pgsql-jdbc



On Fri, 8 Jul 2005, Dave Cramer wrote:

> Yup, I've cut all that code out and moved it. Just testing it as much  
> as I can now.

Note that the current cvs code also fails to compile with the 1.5 JDK 
because you've implemented this in Jdbc3CallableStatement, but not 
Jdbc3gCallableStatement.  This is just further argument for putting it in 
the proper place.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: patch to fix jdk 2 compile errors and v2 compatability
  2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 13:15   ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 14:25     ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 15:40       ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-13 06:20         ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
@ 2005-07-13 11:24           ` Dave Cramer <pg@fastcrypt.com>
  2005-07-13 15:22             ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Dave Cramer @ 2005-07-13 11:24 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: Oliver Jowett <oliver@opencloud.com>; pgsql-jdbc

Kris,

I did commit a change which removed the implementations from  
CallableStatement. Is it still not compiling ?

Dave
On 13-Jul-05, at 2:20 AM, Kris Jurka wrote:

>
>
> On Fri, 8 Jul 2005, Dave Cramer wrote:
>
>
>> Yup, I've cut all that code out and moved it. Just testing it as much
>> as I can now.
>>
>
> Note that the current cvs code also fails to compile with the 1.5 JDK
> because you've implemented this in Jdbc3CallableStatement, but not
> Jdbc3gCallableStatement.  This is just further argument for putting  
> it in
> the proper place.
>
> Kris Jurka
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
>




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: patch to fix jdk 2 compile errors and v2 compatability
  2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 13:15   ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 14:25     ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 15:40       ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-13 06:20         ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
  2005-07-13 11:24           ` Re: patch to fix jdk 2 compile errors and v2 compatability Dave Cramer <pg@fastcrypt.com>
@ 2005-07-13 15:22             ` Kris Jurka <books@ejurka.com>
  2005-07-16 04:07               ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Kris Jurka @ 2005-07-13 15:22 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: Oliver Jowett <oliver@opencloud.com>; pgsql-jdbc



On Wed, 13 Jul 2005, Dave Cramer wrote:

> I did commit a change which removed the implementations from  
> CallableStatement. Is it still not compiling ?
> 

compile:
    [javac] Compiling 124 source files to /home/jurka/pg/pgjdbc/build
    [javac] /home/jurka/pg/pgjdbc/org/postgresql/jdbc3g/Jdbc3gCallableStatement.java:15: org.postgresql.jdbc3g.Jdbc3gCallableStatement is not abstract and does not override abstract method registerOutParameter(int,int,int) in java.sql.CallableStatement
    [javac] class Jdbc3gCallableStatement extends Jdbc3gPreparedStatement implements CallableStatement

Kris Jurka



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: patch to fix jdk 2 compile errors and v2 compatability
  2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 13:15   ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-08 14:25     ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
  2005-07-08 15:40       ` Re: patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
  2005-07-13 06:20         ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
  2005-07-13 11:24           ` Re: patch to fix jdk 2 compile errors and v2 compatability Dave Cramer <pg@fastcrypt.com>
  2005-07-13 15:22             ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
@ 2005-07-16 04:07               ` Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Kris Jurka @ 2005-07-16 04:07 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: Oliver Jowett <oliver@opencloud.com>; pgsql-jdbc



On Wed, 13 Jul 2005, Kris Jurka wrote:

> compile:
>     [javac] Compiling 124 source files to /home/jurka/pg/pgjdbc/build
>     [javac] /home/jurka/pg/pgjdbc/org/postgresql/jdbc3g/Jdbc3gCallableStatement.java:15: org.postgresql.jdbc3g.Jdbc3gCallableStatement is not abstract and does not override abstract method registerOutParameter(int,int,int) in java.sql.CallableStatement
>     [javac] class Jdbc3gCallableStatement extends Jdbc3gPreparedStatement implements CallableStatement
> 

What's the status of this?

Kris Jurka




^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2005-07-16 04:07 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-08 02:24 patch to fix jdk 2 compile errors and v2 compatability for review Dave Cramer <pg@fastcrypt.com>
2005-07-08 11:29 ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
2005-07-08 13:15   ` Dave Cramer <pg@fastcrypt.com>
2005-07-08 14:25     ` Re: patch to fix jdk 2 compile errors and v2 compatability Oliver Jowett <oliver@opencloud.com>
2005-07-08 15:40       ` Dave Cramer <pg@fastcrypt.com>
2005-07-13 06:20         ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
2005-07-13 11:24           ` Re: patch to fix jdk 2 compile errors and v2 compatability Dave Cramer <pg@fastcrypt.com>
2005-07-13 15:22             ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>
2005-07-16 04:07               ` Re: patch to fix jdk 2 compile errors and v2 compatability Kris Jurka <books@ejurka.com>

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