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

Christian Schneider commented on ARIES-1674:
--------------------------------------------

I checked the example and I am not sure if this is really an error. What you 
see is the fact that aries jpa uses an Interceptor to provide the preCall and 
postCall behaviour.
If an interceptor is used on a bean then blueprint will create a proxy for the 
bean and when injecting the bean into other beans in fact the proxy is injected.

The example only shows that a proxy is used. I do not see a ClassCastException. 
Can you show how to replicate this?

> Multiple inharitance levels with generics cause ClassCastException when JPA 
> is enabled
> --------------------------------------------------------------------------------------
>
>                 Key: ARIES-1674
>                 URL: https://issues.apache.org/jira/browse/ARIES-1674
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: jpa-2.5.0
>         Environment: Win 7 x64, JDK 1.8.0_73, Karaf 4.0.4
>            Reporter: Felix Wassmer
>            Assignee: Christian Schneider
>             Fix For: jpa-2.6.0
>
>
> I'm using inheritance with generics over multiple levels.
> Injecting properties to those beans works fine, but on access of a property 
> of the lowest class, there is a ClassCastException thrown.
> I could narrow it down to enabling JPA in the blueprint causing the issue:
> When disabling JPA, the proper bean class is resolved,
> enabled the type resolving stopped at the parent abstract class of the 
> expected class, thus throwing a ClassCastException.
> Example project to reproduce this issue:
> https://github.com/fwassmer/inheritance



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to