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

ClassInfo does not distinguish between inner and static nested classes

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.2.Final
    • Fix Version/s: 2.0.3.Final
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jason.greene Jason Greene
                  Reporter:
                  mkouba Martin Kouba
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: