Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7244

The @MgnlDeprecated annotation doesn't work on constructors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Neutral
    • None
    • None
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              ilgun Ilgun Ilgun
              jsimak Jaroslav Simak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD