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

javadoc tool Incorrect error message about malformed link

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • tools
    • None
    • b24

      The error message for this malformed javadoc comment is incorrect.

      ```/**
       * {@link foo().
       */
      public class JavaDocBug {
      }```

      The messages are:
       % javadoc JavaDocBug.java
      Loading source file JavaDocBug.java...
      Constructing Javadoc information...
      Building index for all the packages and classes...
      Standard Doclet version 16+36-2231
      Building tree for all the packages and classes...
      JavaDocBug.java:2: error: ')' missing in reference
       * {@link foo().
         ^

            hannesw Hannes Wallnoefer
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: