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

improve fatal error handling in JavaCompiler

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b04

      Description

      See the following code in JavaCompiler:


                  for (Closeable c: closeables) {
                      try {
                          c.close();
                      } catch (IOException e) {
                          // When javac uses JDK 7 as a baseline, this code would be
                          // better written to set any/all exceptions from all the
                          // Closeables as suppressed exceptions on the FatalError
                          // that is thrown.
                          JCDiagnostic msg = diagFactory.fragment("fatal.err.cant.close");
                          throw new FatalError(msg, e);
                      }
                  }

        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: