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

@inheritDoc does not work if standalone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 10, 11, 12, 13, 14, 15
    • tools

      Prefixing a method with

          /**
           * {@inheritDoc}
           */

      is ignored by Javadoc. Seems to be that way since JDK 10, okay in 9.

      Examples can be found in
         MutableCallSite::dynamicInvoker
         VolatileCallSite::dynamicInvoker
         Constructor::getModifiers
         Constructor::getParameterTypes
         Constructor::getExceptionTypes
         Executable::getDeclaredAnnotations
         Field::getDeclaredAnnotations
         Method::getModifiers
         Method::getParameterTypes
         Method::getExceptionTypes
         DecimalFormat::setGroupingUsed

      There are 554 occurrences in the JDK, grep: /\*\*\s*\n\s*\*\s*\{@inheritDoc\}\s*\n\s*\*/

            jjg Jonathan Gibbons
            jlaskey Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: