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

bad reference in @throws in HotSpotDiagnosticMXBean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • 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.

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

                Created:
                Updated:
                Resolved: