Skip to content

Protected enum methods crash #32

@OscarRodriguezPrieto

Description

@OscarRodriguezPrieto

Enum types had no "isFinal" attribute since they are all final.
This caused a crash when there is a protected method inside an enum.
If there is a protected method, to know whether it is accessible from the client, ProgQuery asks the current type definition whether it is final or not, relying on the "isFinal" property of the node stored as the last type definition visited.
Since there was no property, a NullPointerException was raised.
Now, enum types and interfaces both have isFinal and isStatic properties, which they are always (true, false) for enums and (false, false) for interfaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions