You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "jay dwyer (JIRA)" <de...@cayenne.apache.org> on 2008/01/06 05:42:32 UTC

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

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


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.


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

Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-955.
-------------------------------

       Resolution: Won't Fix
    Fix Version/s: 3.0

See this thread for the followup discussion: 

http://objectstyle.org/cayenne/lists/cayenne-devel/current/0026.html

(Summary: the issue still exists of course, but will have to be approached a bit differently)

> 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
>             Fix For: 3.0
>
>         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.


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

Posted by "jay dwyer (JIRA)" <de...@cayenne.apache.org>.
     [ 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.