Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4496223

{@inheritDoc} does not copy down from an interface

XMLWordPrintable

    • beta3
    • generic
    • generic
    • Verified

      Using {@inheritDoc} in a method of a class that implements an interface does not cause the doc to be copied from the interface's method; javadoc incorrectly warns:
          warning - @inheritDoc used but foo() does not override any method.

      Simple example:

      public interface Foo {
          /** javadoc */
          void foo();
      }

      public class Bar implements Foo {
          /** {@inheritDoc} */
          public void foo() {}
      }

            jhosunw Jamie Ho (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: