Why are we getting ClosedByInterruptException from FileChannel.map in Java 1.6?

前端 未结 2 345
不思量自难忘°
不思量自难忘° 2020-12-06 16:43

A customer of ours complains that, sporadically, calls of ours to FileChannel.map fail with a ClosedByInterruptException. The Javadoc does not list

2条回答
  •  悲&欢浪女
    2020-12-06 17:07

    Channel operations are bound to the thread doing the operations. If this thread is interrupted, the stream / channel is closed due to IO safety issues.

提交回复
热议问题