Uploaded image for project: 'XBean'
  1. XBean
  2. XBEAN-263

creating ClassInfo for an annotated Class object throws NPE

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.17
    • 3.18
    • finder

    Description

      The class-based, as opposed to signature-based. portion of AnnotationFinder is rather difficult to test, but I have been able to create a failing test case. The issue is that Annotatable(AnnotatedElement) calls the AnnotationInfo constructor using the classname of the annotationType which, in turn, calls ASM's Type.getType(String); however, this method wants a type descriptor (the method's Javadoc actually says "a field or method type descriptor"). Calling AnnotationInfo(Class) instead solves the problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbenson Matthew Jason Benson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: