mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8329190: (ch) DatagramChannel.receive should throw ClosedChannelException when called on closed channel
Co-authored-by: Alan Bateman <alanb@openjdk.org> Reviewed-by: jpai, michaelm
This commit is contained in:
parent
f11a496de6
commit
90df3b7fbb
6 changed files with 226 additions and 3 deletions
|
@ -306,6 +306,7 @@ class SinkChannelImpl
|
|||
|
||||
writeLock.lock();
|
||||
try {
|
||||
ensureOpen();
|
||||
boolean blocking = isBlocking();
|
||||
int n = 0;
|
||||
try {
|
||||
|
@ -334,6 +335,7 @@ class SinkChannelImpl
|
|||
|
||||
writeLock.lock();
|
||||
try {
|
||||
ensureOpen();
|
||||
boolean blocking = isBlocking();
|
||||
long n = 0;
|
||||
try {
|
||||
|
|
|
@ -306,6 +306,7 @@ class SourceChannelImpl
|
|||
|
||||
readLock.lock();
|
||||
try {
|
||||
ensureOpen();
|
||||
boolean blocking = isBlocking();
|
||||
int n = 0;
|
||||
try {
|
||||
|
@ -334,6 +335,7 @@ class SourceChannelImpl
|
|||
|
||||
readLock.lock();
|
||||
try {
|
||||
ensureOpen();
|
||||
boolean blocking = isBlocking();
|
||||
long n = 0;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue