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

incorrect use of `{@link}`

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 19
    • 18
    • other-libs

      `{@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,

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

              Created:
              Updated:
              Resolved: