Thread: jdbc1 compile problem still present in beta5 (java 1.1.8/freebsd 4.2-STABLE)
Also, there's one I don't remember involving PGclob.java -- perhaps it's new? This is with Java SDK 1.1.8 on freebsd uname -a: FreeBSD spot.pupworks.com 4.2-STABLE FreeBSD 4.2-STABLE #2: Sat Feb 17 15:53:06 EST 2001 nrh@spot.pupworks.com:/usr/obj/usr/src/sys/SPOT i386 Here's the result of "ant" in the top-level directory Searching for build.xml ... Buildfile: /usr/home/nrh/b5/postgresql-7.1beta5/build.xml jar: call: prepare: check_versions: driver: Configured build for the JDBC1 edition driver. compile: [javac] Compiling 2 source files to /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/build [javac] /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: Missing term. [javac] if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet()) [javac] ^ [javac] /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: Invalid expressionstatement. [javac] if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet()) [javac] ^ [javac] /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: ';' expected. [javac] if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet()) [javac] ^ [javac] /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/largeobject/PGclob.java:26: Interfacejava.sql.Clob of class org.postgresql.largeobject.PGclob not found. [javac] public class PGclob implements java.sql.Clob [javac] ^ [javac] 4 errors BUILD FAILED /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/build.xml:99: Compile failed, messages should have been provided. Total time: 4 seconds
Re: jdbc1 compile problem still present in beta5 (java 1.1.8/freebsd 4.2-STABLE)
From
Peter Mount
Date:
At 10:23 01/03/01 -0500, Nat Howard wrote: >Also, there's one I don't remember involving PGclob.java -- perhaps it's new? There's a few JDBC1.2/JDK1.1 problems in there, but I can't fix until I get JDK1.1.8 reinstalled here. PGclob is new for the JDBC2.x driver, so the build.xml file is missing an exclude tag for it with pre Java2 vm's. Work around: find the line excluding PGblob, duplicate it and replace blob with clob on one of those lines. That should fix the build problem. Peter >This is with Java SDK 1.1.8 on freebsd >uname -a: >FreeBSD spot.pupworks.com 4.2-STABLE FreeBSD 4.2-STABLE #2: Sat Feb 17 >15:53:06 EST 2001 nrh@spot.pupworks.com:/usr/obj/usr/src/sys/SPOT i386 > >Here's the result of "ant" in the top-level directory > >Searching for build.xml ... >Buildfile: /usr/home/nrh/b5/postgresql-7.1beta5/build.xml > >jar: > >call: > >prepare: > >check_versions: > >driver: >Configured build for the JDBC1 edition driver. > >compile: > [javac] Compiling 2 source files to > /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/build > [javac] > /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: > Missing term. > [javac] if (result != null) && > ((org.postgresql.ResultSet)result.reallyResultSet()) > [javac] ^ > [javac] > /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: > Invalid expression statement. > [javac] if (result != null) && > ((org.postgresql.ResultSet)result.reallyResultSet()) > [javac] ^ > [javac] > /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: > ';' expected. > [javac] if (result != null) && > ((org.postgresql.ResultSet)result.reallyResultSet()) > [javac] > ^ > [javac] > /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/largeobject/PGclob.java:26: > Interface java.sql.Clob of class org.postgresql.largeobject.PGclob not found. > [javac] public class PGclob implements java.sql.Clob > [javac] ^ > [javac] 4 errors > >BUILD FAILED > >/usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/build.xml:99: >Compile failed, messages should have been provided. > >Total time: 4 seconds
Re: jdbc1 compile problem still present in beta5 (java 1.1.8/freebsd 4.2-STABLE)
From
Nat Howard
Date:
Thanks, Peter. So you don't have to edit, here's the context diff: *** build.xml.old Fri Feb 23 13:12:22 2001 --- build.xml Thu Mar 1 20:59:58 2001 *************** *** 101,106 **** --- 101,107 ---- <exclude name="${package}/jdbc1/**" if="jdk1.2+" /> <exclude name="${package}/jdbc2/**" unless="jdk1.2+" /> <exclude name="${package}/largeobject/PGblob.java" unless="jdk1.2+" /> + <exclude name="${package}/largeobject/PGclob.java" unless="jdk1.2+" /> <exclude name="${package}/PostgresqlDataSource.java" unless="jdk1.2e+" /> <exclude name="${package}/xa/**" unless="jdk1.2e+" /> <exclude name="${package}/test/**" unless="junit" /> By the way, I'm personally in no particular hurry for this -- I just wanted to make sure beta5 wasn't marked as "all done". I *really* appreciate the jdbc driver, and really appreciate the personalized attention here. Thanks a lot! >At 10:23 01/03/01 -0500, Nat Howard wrote: >>Also, there's one I don't remember involving PGclob.java -- perhaps it's new? > >There's a few JDBC1.2/JDK1.1 problems in there, but I can't fix until I get >JDK1.1.8 reinstalled here. > >PGclob is new for the JDBC2.x driver, so the build.xml file is missing an >exclude tag for it with pre Java2 vm's. > >Work around: find the line excluding PGblob, duplicate it and replace blob >with clob on one of those lines. That should fix the build problem. > >Peter > > >>This is with Java SDK 1.1.8 on freebsd >>uname -a: >>FreeBSD spot.pupworks.com 4.2-STABLE FreeBSD 4.2-STABLE #2: Sat Feb 17 >>15:53:06 EST 2001 nrh@spot.pupworks.com:/usr/obj/usr/src/sys/SPOT i386 >> >>Here's the result of "ant" in the top-level directory >> >>Searching for build.xml ... >>Buildfile: /usr/home/nrh/b5/postgresql-7.1beta5/build.xml >> >>jar: >> >>call: >> >>prepare: >> >>check_versions: >> >>driver: >>Configured build for the JDBC1 edition driver. >> >>compile: >> [javac] Compiling 2 source files to >> /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/build >> [javac] >> /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: >> Missing term. >> [javac] if (result != null) && >> ((org.postgresql.ResultSet)result.reallyResultSet()) >> [javac] ^ >> [javac] >> /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: >> Invalid expression statement. >> [javac] if (result != null) && >> ((org.postgresql.ResultSet)result.reallyResultSet()) >> [javac] ^ >> [javac] >> /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:291: >> ';' expected. >> [javac] if (result != null) && >> ((org.postgresql.ResultSet)result.reallyResultSet()) >> [javac] >> ^ >> [javac] >> /usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/org/postgresql/largeobject/PGclob.java:26: >> Interface java.sql.Clob of class org.postgresql.largeobject.PGclob not found. >> [javac] public class PGclob implements java.sql.Clob >> [javac] ^ >> [javac] 4 errors >> >>BUILD FAILED >> >>/usr/home/nrh/b5/postgresql-7.1beta5/src/interfaces/jdbc/build.xml:99: >>Compile failed, messages should have been provided. >> >>Total time: 4 seconds >