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

incorrect use of `{@link}`

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 18
    • Fix Version/s: 19
    • Component/s: other-libs
    • Labels:

      Description

      `{@link}` is used to link to other declared elements. It cannot be used for primitive or array types'

       The following bad instances have been detected in JDK files:

      open/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java:601: warning: Tag @link: reference not found: byte[]
           * a thread other than the thread owning that scope, or if this segment's contents cannot be copied into a {@link byte[]} instance,
      open/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java:612: warning: Tag @link: reference not found: short[]
           * a thread other than the thread owning that scope, or if this segment's contents cannot be copied into a {@link short[]} instance,
      open/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java:623: warning: Tag @link: reference not found: char[]
           * a thread other than the thread owning that scope, or if this segment's contents cannot be copied into a {@link char[]} instance,
      open/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java:634: warning: Tag @link: reference not found: int[]
           * a thread other than the thread owning that scope, or if this segment's contents cannot be copied into a {@link int[]} instance,
      open/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java:645: warning: Tag @link: reference not found: float[]
           * a thread other than the thread owning that scope, or if this segment's contents cannot be copied into a {@link float[]} instance,
      open/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java:656: warning: Tag @link: reference not found: long[]
           * a thread other than the thread owning that scope, or if this segment's contents cannot be copied into a {@link long[]} instance,
      open/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java:667: warning: Tag @link: reference not found: double[]
           * a thread other than the thread owning that scope, or if this segment's contents cannot be copied into a {@link double[]} instance,

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: