aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy McCright (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1251) Support jpa 2.0 and 2.1 with the same code base
Date Wed, 22 Oct 2014 19:41:34 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14180407#comment-14180407
] 

Andy McCright commented on ARIES-1251:
--------------------------------------

Hi Christian,

I'm seeing some UndeclaredThrowableExceptions in some of my tests - for example:
java.lang.reflect.UndeclaredThrowableException
com.sun.proxy.$Proxy16.persist(Unknown Source)
com.ibm.osgi.jpa.testcontainer.EnhanceTest.testExcludedCodeScanning(EnhanceTest.java:225)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

I'm wondering if there is an InvocationTargetException being thrown - if so, maybe the EntityManagerProxyFactory$EMHandler
invoke method should catch it and throw the underlying exception (which presumably would either
be declared exception or a RuntimeException/Error).  Can you think of anything else that might
be causing this?  

Thanks, Andy

> Support jpa 2.0 and 2.1 with the same code base
> -----------------------------------------------
>
>                 Key: ARIES-1251
>                 URL: https://issues.apache.org/jira/browse/ARIES-1251
>             Project: Aries
>          Issue Type: Improvement
>          Components: JPA
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>
> We currently have two separate code bases for jpa 2.0 and 2.1 support. This is very difficult
to manage when we do source code changes.
> So I will try to create one code that supports both jpa 2.0 and 2.1 by using Dynamic
Proxies where we implement EntityManager or EntityManagerFactory. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message