Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-30549

JavadocFormatter is only appending Override annotation when overridden method is in the immediate parent

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.20 EE GA2
    • Fix Version/s: 6.2.0 CE M2
    • Component/s: Documentation
    • Labels:
      None

      Description

      The @Override tag is only being inserted when the child class is overriding a method of the parent class/interface. If the overridden method is not in the parent classs/interface, but is instead in an ancestor of the parent, the override is not being detected and hence the @Override tag is not being appended to the overriding method.

      For example,

      • GrandParent interface specifies method1()
      • Abstract class Parent implements GrandParent, but does not implement method1()
      • GrandChild class extends Parent and implements method1() ... overriding GrandParent.method1()

      ... JavadocFormatter should detect this overriding method and append @Override to GrandChild.method1()

        Attachments

          Activity

            People

            Assignee:
            james.hinkey James Hinkey
            Reporter:
            james.hinkey James Hinkey
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 6 weeks, 6 days ago

                Packages

                Version Package
                6.2.0 CE M2