Thread: can't compile JDBC1

can't compile JDBC1

From
pgsql-bugs@postgresql.org
Date:
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