[JIRA] Updated: (CAY-955) cannot build cayenne against jdk 1.6 due to changes in javax.sql package classes/interfaces

From: jay dwyer (JIRA) ("jay)
Date: Sat Jan 05 2008 - 23:46:32 EST

  • Next message: Jason Dwyer: "RE: Building Cayenne on Java 6"

         [ https://issues.apache.org/cayenne/browse/CAY-955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    jay dwyer updated CAY-955:
    --------------------------

        Attachment: fix-cayenne-for-java-6.patch

    fix to get cayenne building against java 1.6 due to changes in javax.sql.* classes

    adds an abstract class hierarchy for cayenne classes which implement Connection, PooledConnection, DataSource, and ResultSetMetaData.

    updates existing classes to extend these new abstract implementations rather than implement the javax.sql classes.

    this will need to be cleaned up though: lots of returns null, etc in the new abstract classes: the unit tests seemed to run ok for me, but there was a failure in the ITests which i havent tracked down.

    ( i'm also not too familiar wiht the 3.0 codebase, so somebody with sharper eyes than mine should keep the ITests in mind when trying this stuff out...)

    cheers

    > cannot build cayenne against jdk 1.6 due to changes in javax.sql package classes/interfaces
    > -------------------------------------------------------------------------------------------
    >
    > Key: CAY-955
    > URL: https://issues.apache.org/cayenne/browse/CAY-955
    > Project: Cayenne
    > Issue Type: Task
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Environment: java 1.6
    > Reporter: jay dwyer
    > Assignee: Andrus Adamchik
    > Attachments: fix-cayenne-for-java-6.patch
    >
    >
    > kevin menard noticed in a beta of java 6 some time ago ( CAY-549 ) that the interface definitions for some classes/interfaces in javax.sql have changed to also include a new class, javax.sql.Wrapper, in the implements clause, and as a result, the cayenne codebase does not compile against a java 6 sdk.
    > i've tapped out a rough patch that sets up a shallow hierarchy for the relevant cayenne classes which are affected by this, and provides some simple abstract implementations for Connection, DataSource, PooledDataSource and ResultSetMetaData in order to satisfy the new interface requirements that include Wrapper in their implements declarations.
    > ( theres also a couple of other classes which get some new abstract/interface methods, check the patch for more details )

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Sat Jan 05 2008 - 23:46:54 EST