Skip site navigation (1) Skip section navigation (2)

PATCH: JDBC compile w/ jikes

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: PATCH: JDBC compile w/ jikes
Date: 2001-04-15 19:52:38
Message-ID: 20010415155238.C3896@klamath.dyndns.org (view raw or flat)
Thread:
Lists: pgsql-jdbcpgsql-patches
Hi all,

The JDBC2 driver included with PostgreSQL 7.1 doesn't compile
with jikes (1.13). Here's the errors you get:

    [javac] Compiling 41 source files to /home/nconway/postgresql-7.1/src/interfaces/jdbc/build
    [javac] 
    [javac] Found 3 semantic errors compiling "/home/nconway/postgresql-7.1/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java":
    [javac] 
    [javac]   1691.     case 'r':
    [javac]                      <->
    [javac] *** Error: The type of this expression, "char", is not assignment-convertible to the type of the switch statement expression, "byte".
    [javac] 
    [javac] 
    [javac]   1694.     case 'i':
    [javac]                      <->
    [javac] *** Error: The type of this expression, "char", is not assignment-convertible to the type of the switch statement expression, "byte".
    [javac] 
    [javac] 
    [javac]   1697.     case 'S':
    [javac]                      <->
    [javac] *** Error: The type of this expression, "char", is not assignment-convertible to the type of the switch statement expression, "byte".

I'm not sure if this is a bug with jikes, or if Sun's javac is just lax.

Attached is a trivial patch which fixes it for me (it compiles, at any rate).

Cheers,

Neil

-- 
Neil Conway <neilconway(at)home(dot)com>
Get my GnuPG key from: http://klamath.dyndns.org/mykey.asc
Encrypted mail welcomed

Freedom of the press is limited to those who own one.
        -- A.J. Liebling

Responses

pgsql-patches by date

Next:From: Douglas CarmichaelDate: 2001-04-15 21:07:36
Subject: Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)
Previous:From: Richard ScrantonDate: 2001-04-15 19:18:44
Subject: FreeBSD 4.1 and JDK 1.1.8 compile problems

pgsql-jdbc by date

Next:From: chris markiewiczDate: 2001-04-16 13:23:06
Subject: RE: [JDBC] RE: fastpath error?
Previous:From: Brett W. McCoyDate: 2001-04-13 18:36:20
Subject: Re: jdbc works with java programs. not with tomcat.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group