Skip to content

DeprecatedHandler does not process deprecated constructors #1

@Manas-Dikshit

Description

@Manas-Dikshit

Issue: Constructors Can Be Deprecated but Are Not Processed

The code currently only processes methods (Symbol.MethodSymbol) but does not check for constructors.
In Java, constructors can also be marked as @deprecated, and those should also log a warning when used.
This means any deprecated constructor is ignored by this processor, leading to incomplete tracking of deprecated usages.

To handle deprecated constructors:

Modify the process method to check if the element is a constructor (MethodSymbol with the same name as the class).
Ensure that AST transformation also works for constructors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions