DBCP with jdk 1.5

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

DBCP with jdk 1.5

Jacques Le Roux
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: DBCP with jdk 1.5

Jacques Le Roux
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" <[hidden email]>

> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: DBCP with jdk 1.5

Phil Steitz
In reply to this post by Jacques Le Roux
Jacques Le Roux wrote:
> 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)

Thanks!  I am fixing the test dependencies and will commit.

> 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 for reporting this.  I can replicate the problem.  This is a
bug in the conditional compilation setup.  Should be fixed now as of
r835956. Please let us know if svn updating does not resolve the issue.

Phil

>
> Thanks
>
> Jacques
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: DBCP with jdk 1.5

Jacques Le Roux
Thanks Phil,

It works like a charme

Jacques

From: "Phil Steitz" <[hidden email]>

> Jacques Le Roux wrote:
>> 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)
>
> Thanks!  I am fixing the test dependencies and will commit.
>
>> 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 for reporting this.  I can replicate the problem.  This is a
> bug in the conditional compilation setup.  Should be fixed now as of
> r835956. Please let us know if svn updating does not resolve the issue.
>
> Phil
>
>>
>> Thanks
>>
>> Jacques
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]