RFR: 8345432: (ch, fs) Replace anonymous Thread with InnocuousThread

Brian Burkhalter bpb at openjdk.org
Thu Dec 12 17:10:38 UTC 2024


On Thu, 12 Dec 2024 16:46:02 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> On balance, it's probably best to convert this one while you are in the area, avoids questions in the future.

It is not clear how to deal with `interrupt()` here as `InnocuousThread` is final. Something like

private boolean isInterruptible;

public void interrupt() {
    if (isInterruptible)
        super.interrupt();
}

does not seem like a good idea.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22697#issuecomment-2539530967


More information about the nio-dev mailing list