Skip to content

Java: NestedType does not extend Member #3708

@Marcono1234

Description

@Marcono1234

Description of the issue
The documentation of Member says:

A common abstraction for type member declarations, including methods, constructors, fields, and nested types.

However, NestedType does not extend Member.

Though NestedType can be cast to Member without issues and having it extend Member would cause it to have getDeclaringType and getEnclosingType which both do the same and would also case a mismatch for getQualifiedName (see also #3711), but it still feels weird that there is no direct relation between these two classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions