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

bad reference in @throws in HotSpotDiagnosticMXBean

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: core-svc
    • Labels:

      Backports

        Description

        doclint says:

        open/src/jdk.management/share/classes/com/sun/management/HotSpotDiagnosticMXBean.java:64: error: reference not found
             * @throws IOException if the {@code outputFile} already exists,
               ^
        1 error

        The problem is that the method signature uses a fully-qualified name for `java.io.IOException` instead of importing it. meaning that the `@throws` cannot resolve the name. Although this could be fixed by using a fully-qualified name in `@throws` as well, a better, more conventional solution is to import that name and use the simple name in both places.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: