Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecatedHandler does not process deprecated constructors #1

Open
Manas-Dikshit opened this issue Mar 9, 2025 · 0 comments
Open

Comments

@Manas-Dikshit
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant