You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrei Veprev (JIRA)" <ji...@apache.org> on 2012/05/04 17:28:48 UTC

[jira] [Created] (CAY-1706) Build support on JDK 1.7

Andrei Veprev created CAY-1706:
----------------------------------

             Summary: Build support on JDK 1.7
                 Key: CAY-1706
                 URL: https://issues.apache.org/jira/browse/CAY-1706
             Project: Cayenne
          Issue Type: Task
            Reporter: Andrei Veprev




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAY-1706) Build support on JDK 1.7

Posted by "Andrei Veprev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Veprev updated CAY-1706:
-------------------------------

    Attachment: CAY-1706.patch

Attaching patch.
In Java 7 new version of JDBC API appeared. So I just expended in this patch certain classes that implements JDBC interfaces  with new methods and marked them all with UnsupportedOperationException (in the same manner as it had been done for Java 6 support). Also there was one method name conflict - just renamed it.
Project compiles. Tests pass correctly. Modeler running. Seems everything works...
                
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>         Attachments: CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAY-1706) Build support on JDK 1.7

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

Andrus Adamchik closed CAY-1706.
--------------------------------

    Resolution: Fixed

The last patch fixed the build: https://builds.apache.org/job/Cayenne-trunk/704/

There is still an unrelated issue with non-reproducible unit test results, but nothing related to cross-JDK issues AFAICT.
                
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>
>         Attachments: CAY-1706-java5compat.patch, CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAY-1706) Build support on JDK 1.7

Posted by "Andrei Veprev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268461#comment-13268461 ] 

Andrei Veprev edited comment on CAY-1706 at 5/4/12 3:39 PM:
------------------------------------------------------------

Attaching patch.
In Java 7 new version of JDBC API appeared. So I just expended in this patch certain classes that implements JDBC interfaces  with new methods and marked them all with UnsupportedOperationException (in the same manner as it had been done for Java 6 support). Also there was one method name conflict - just renamed it.
Project compiles. Tests pass correctly. Modeler runs. Seems everything works...
                
      was (Author: aveprev):
    Attaching patch.
In Java 7 new version of JDBC API appeared. So I just expended in this patch certain classes that implements JDBC interfaces  with new methods and marked them all with UnsupportedOperationException (in the same manner as it had been done for Java 6 support). Also there was one method name conflict - just renamed it.
Project compiles. Tests pass correctly. Modeler running. Seems everything works...
                  
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>         Attachments: CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CAY-1706) Build support on JDK 1.7

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

Andrus Adamchik reopened CAY-1706:
----------------------------------

      Assignee: Andrus Adamchik

Hmm, actually all 1.5 builds suddenly started to fail per https://builds.apache.org/job/Cayenne-trunk/701/ 

I don't have Java 1.5 handy to try it out, and the build includes a number of other recent commits, so it may be something else. But still Java 7 patch is likely to blame.

The error is:

org.apache.maven.surefire.booter.SurefireExecutionException: org.apache.cayenne.CayenneDataObjectValidationTest; nested exception is java.lang.ExceptionInInitializerError: null; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: org.apache.cayenne.CayenneDataObjectValidationTest; nested exception is java.lang.ExceptionInInitializerError: null
org.apache.maven.surefire.testset.TestSetFailedException: org.apache.cayenne.CayenneDataObjectValidationTest; nested exception is java.lang.ExceptionInInitializerError: null
java.lang.ExceptionInInitializerError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
....
Caused by: java.lang.SecurityException: Prohibited package name: java.sql
	at java.lang.ClassLoader.preDefineClass(ClassLoader.java:480)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
	at java.lang.Class.privateGetPublicMethods(Class.java:2519)
	at java.lang.Class.privateGetPublicMethods(Class.java:2535)
	at java.lang.Class.getMethods(Class.java:1406)
	at org.apache.cayenne.di.spi.DefaultScope.addScopeEventListener(DefaultScope.java:90)
	at org.apache.cayenne.di.spi.DefaultScopeProvider.get(DefaultScopeProvider.java:57)
	at org.apache.cayenne.di.spi.DefaultInjector.getInstance(DefaultInjector.java:107)


                
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>
>         Attachments: CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAY-1706) Build support on JDK 1.7

Posted by "Andrei Veprev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Veprev updated CAY-1706:
-------------------------------

    Attachment: CAY-1706-java5compat.patch

Sorry, did a patch in wrong way. Attaching proper version. 
                
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>
>         Attachments: CAY-1706-java5compat.patch, CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAY-1706) Build support on JDK 1.7

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272473#comment-13272473 ] 

Andrus Adamchik commented on CAY-1706:
--------------------------------------

Andrei, the patch looks good, but it seems to be incomplete. I don't see any implementors or callers of ScopeEventListener. 
                
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>
>         Attachments: CAY-1706-java5compat.patch, CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAY-1706) Build support on JDK 1.7

Posted by "Andrei Veprev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Veprev updated CAY-1706:
-------------------------------

    Attachment: CAY-1706-java5compat.patch

Had to remove all reflection manipulations with classes which implements JDBC interfaces:
* introduced new interface for handling @BeforeScopeEnd events;
* removed DataSource instance from DI context for tests.
                
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>
>         Attachments: CAY-1706-java5compat.patch, CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAY-1706) Build support on JDK 1.7

Posted by "Andrei Veprev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Veprev updated CAY-1706:
-------------------------------

    Attachment:     (was: CAY-1706-java5compat.patch)
    
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>
>         Attachments: CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAY-1706) Build support on JDK 1.7

Posted by "Andrei Veprev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272336#comment-13272336 ] 

Andrei Veprev edited comment on CAY-1706 at 5/10/12 1:48 PM:
-------------------------------------------------------------

Had to remove all reflection manipulations with classes which implement JDBC interfaces:
* introduced new interface for handling @BeforeScopeEnd events;
* removed DataSource instance from DI context for tests.
                
      was (Author: aveprev):
    Had to remove all reflection manipulations with classes which implements JDBC interfaces:
* introduced new interface for handling @BeforeScopeEnd events;
* removed DataSource instance from DI context for tests.
                  
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>
>         Attachments: CAY-1706-java5compat.patch, CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAY-1706) Build support on JDK 1.7

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

Andrus Adamchik closed CAY-1706.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M4

Awesome! thanks.
                
> Build support on JDK 1.7
> ------------------------
>
>                 Key: CAY-1706
>                 URL: https://issues.apache.org/jira/browse/CAY-1706
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Andrei Veprev
>             Fix For: 3.1M4
>
>         Attachments: CAY-1706.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira