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

Error on reference not found for a snippet target

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • 24
    • tools
    • None

      Consider this:

      /**
       * {@snippet :
       * r // @link substring=r target=Reader
       * }
       */
      public class X { }

      Since Reader is neither referenced by FQN nor imported, it is unknown to javadoc. In such a case, javadoc should issue an error (it doesn't) similarly to how it does it in this case:

      /**
       * {@link Reader}
       */
      public class X { }

      error: reference not found
       * {@link Reader}
                ^

      That said, in both cases, diagnostic markers (i.e. summary-detail) are embedded into generated documentation.

            hannesw Hannes Wallnoefer
            prappo Pavel Rappo (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: