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

@inheritDoc does not work if standalone

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 10, 11, 12, 13, 14, 15
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      Description

      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*\*/

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: