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

JPA blueprint AnnotationScanner is unable to handle Interfaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • jpa-2.3.0
    • jpa-2.4.0
    • JPA
    • None

    Description

      If there are beans defined in the blueprint with a "class" attribute referencing an interface instead of a class, the JPA blueprint AnnotationScanner fails with a NullPointerException.

      During the annotation scanning, the assumption is made that the class hierarchy will eventually hit the Object.class, while an interface Class<?> will return null when the getSuperclass() is called.

      While it may not be a common use case to reference an Interface in a bean definition, I have a rather specific use case where I am using a factory class with a factory method to return an implementation of an interface.

      Attachments

        Activity

          People

            cschneider Christian Schneider
            j.heuberger Jurriaan Heuberger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: