You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2016/08/23 14:55:21 UTC

[jira] [Updated] (KARAF-4419) Multiple inharitance levels with generics cause ClassCastException when JPA is enabled

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

Jean-Baptiste Onofré updated KARAF-4419:
----------------------------------------
    Fix Version/s:     (was: 4.0.6)
                   4.0.7

> Multiple inharitance levels with generics cause ClassCastException when JPA is enabled
> --------------------------------------------------------------------------------------
>
>                 Key: KARAF-4419
>                 URL: https://issues.apache.org/jira/browse/KARAF-4419
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.0.4
>         Environment: Win 7 x64, JDK 1.8.0_73, Karaf 4.0.4
>            Reporter: Felix Wassmer
>             Fix For: 4.1.0, 4.0.7
>
>
> 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.4#6332)