[MAGNOLIA-7244] The @MgnlDeprecated annotation doesn't work on constructors Created: 17/Jan/18  Updated: 24/Jan/18  Resolved: 24/Jan/18

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jaroslav Simak Assignee: Ilgun Ilgun
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: YAML backwards compatibility

 Description   

We often introduce new constructors and deprecated old ones and for such cases this the @MgnlDeprecated annotation doesn't work.

Since this annotation works on methods, classes, interfaces and enums, it would make sense for me to also enable this annotation on constructors.

JavaDoc of the annotation says:

An {@link java.lang.annotation.Annotation annotation} to capture information regarding Deprecated classes and/or methods.

This annotation is present in order to provide extra information about the Deprecated classes and therefore any Deprecated classes should be annotated with {@link Deprecated} annotation explicitly.

So if we add @Deprecated annotation on constructor, we should be able to also use @MgnlDeprecated, according to what the JavaDoc says.


Generated at Mon Feb 12 04:22:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.