bad reference in @throws in HotSpotDiagnosticMXBean

XMLWordPrintable

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

        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.

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

                Created:
                Updated:
                Resolved: