Project Coin: javac warnings for AutoCloseable.close throwing InterruptedException

XMLWordPrintable

    • b138
    • generic
    • generic
    • Verified

      The JSR 334 expert group has decided that it is probably a programming error is an AutoCloseable.close method throws InterruptedException since InterruptedException interacts with a thread's interrupted status. A suppressed InterruptedException is likely to lead to misbehavior at runtime.

      To catch such conceptual mistakes, it would be helpful is javac warned about structures like "public void close throws InterruptedException {...}"

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: