Uploaded image for project: 'Jandex'
  1. Jandex
  2. JANDEX-37

ClassInfo does not distinguish between inner and static nested classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.3.Final
    • 2.0.2.Final
    • None

    Description

      Inner classes are non-static nested classes. But ClassInfo.NestingType.INNER is also returned for static nested classes and that's quite confusing. The same probably applies to org.jboss.jandex.DotName.isInner(). Fortunately, ClassInfo.flags() can be used to identify static nested classes.

      ClassInfo.NestingType.INNER should be either called NESTED or a special value for static nested classes should be added.

      Attachments

        Issue Links

          Activity

            People

              jgreene@redhat.com Jason Greene
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: