commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux" <jacques.le.r...@les7arts.com>
Subject Re: DBCP with jdk 1.5
Date Fri, 13 Nov 2009 11:31:28 GMT
Maybe this would be useful, using "ant dist" :

prepare-nojdbc4:
     [echo] Commenting out the jdbc4 additional methods since JDBC 4 was not detected.

prepare-jdbc4:

prepare:

compile:
    [mkdir] Created dir: D:\workspace\commons-dbcp\build\classes
    [javac] Compiling 53 source files to D:\workspace\commons-dbcp\build\classes
    [javac] D:\workspace\commons-dbcp\src\java\org\apache\commons\dbcp\DelegatingConnection.java:423:
cannot find symbol
    [javac] symbol  : class ResultSet
    [javac] location: class org.apache.commons.dbcp.DelegatingConnection
    [javac]                     } else if (trace instanceof ResultSet) {
    [javac]                                                 ^
    [javac] D:\workspace\commons-dbcp\src\java\org\apache\commons\dbcp\DelegatingConnection.java:426:
cannot find symbol
    [javac] symbol  : class ResultSet
    [javac] location: class org.apache.commons.dbcp.DelegatingConnection
    [javac]                         ((ResultSet) trace).close();
    [javac]                           ^
    [javac] D:\workspace\commons-dbcp\src\java\org\apache\commons\dbcp\managed\BasicManagedDataSource.java:150:
cannot find symbol
    [javac] symbol  : constructor SQLException(java.lang.String,java.lang.Throwable)
    [javac] location: class java.sql.SQLException
    [javac]                 throw new SQLException(message, t);
    [javac]                       ^
    [javac] D:\workspace\commons-dbcp\src\java\org\apache\commons\dbcp\managed\BasicManagedDataSource.java:159:
cannot find symbol
    [javac] symbol  : constructor SQLException(java.lang.String,java.lang.Throwable)
    [javac] location: class java.sql.SQLException
    [javac]                 throw new SQLException(message, t);
    [javac]                       ^
    [javac] D:\workspace\commons-dbcp\src\java\org\apache\commons\dbcp\managed\BasicManagedDataSource.java:203:
cannot find symbol
    [javac] symbol  : constructor SQLException(java.lang.String,java.lang.Exception)
    [javac] location: class java.sql.SQLException
    [javac]             throw new SQLException("Cannot create PoolableConnectionFactory ("
+ e.getMessage() + ")", e);
    [javac]                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 5 errors

BUILD FAILED
D:\workspace\commons-dbcp\build.xml:232: Compile failed; see the compiler error output for
details.

Thanks

Jacques

From: "Jacques Le Roux" <jacques.le.roux@les7arts.com>
> Hi,
>
> I'm an Apache OFBiz commiter. Currently we still use jdk 1.5 in OBFiz and it seems the
community does not want to move to jdk 1.6 
> soon.
>
> In order to fix https://issues.apache.org/jira/browse/OFBIZ-2599 I build the trunk using
ant from Eclipse (I created 
> https://issues.apache.org/jira/browse/DBCP-304 for that)
> But I was not able to compile out of the box using jdk 1.5 and I read in REAME.TXT
> <<This release of JDBC compiles with and supports JDK 1.3 (JDBC 2.0), JDK 1.4-1.5
(JDBC 3.0) and JDK 1.6 (JDBC 4.0). >>
>
> Do I miss something obvious to compile with jdk 1.5 or is this no possible ?
>
> Thanks
>
> Jacques
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message