Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1674

Multiple inharitance levels with generics cause ClassCastException when JPA is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • jpa-2.5.0
    • None
    • JPA
    • None
    • Win 7 x64, JDK 1.8.0_73, Karaf 4.0.4

    Description

      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

      Attachments

        Activity

          People

            cschneider Christian Schneider
            fwassmer Felix Wassmer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: