can't compile JDBC1 - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject can't compile JDBC1
Date
Msg-id 200104141935.f3EJZT141585@hub.org
Whole thread Raw
List pgsql-bugs
joachim wolf (wolfjo@web.de) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
can't compile JDBC1

Long Description
in postgresql 7.1, compiling of JDBC1 isn't possible, syntax errors in the java source (JDBC2 works):

make[3]: Entering directory `/usr/src/postgresql-7.1/src/interfaces/jdbc'
/opt/java/ant/bin/ant -buildfile ../../../build.xml -Dmajor=7 -Dminor=1 -Dfullversion=7.1 -Ddef_pgport=5432
Buildfile: ../../../build.xml

jar:

call:

prepare:
    [mkdir] Created dir: /usr/src/postgresql-7.1/src/interfaces/jdbc/build
    [mkdir] Created dir: /usr/src/postgresql-7.1/src/interfaces/jdbc/jars

check_versions:

driver:
     [copy] Copying 1 files to /usr/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql
Configured build for the JDBC1 edition driver.

compile:
    [javac] Compiling 37 source files to /usr/src/postgresql-7.1/src/interfaces/jdbc/build
    [javac] /usr/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: Missing term.
    [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
    [javac]                              ^
    [javac] /usr/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: Invalid expression
statement.
    [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
    [javac]                               ^
    [javac] /usr/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: ';' expected.
    [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
    [javac]                                                                                      ^
    [javac] 3 errors

BUILD FAILED

/usr/src/postgresql-7.1/src/interfaces/jdbc/build.xml:99: Compile failed, messages should have been provided.


Sample Code


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Homepage images do not set ALT attribute
Next
From: Stephan Szabo
Date:
Subject: Re: Error on reference to inherited primary key