mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8274780: ChannelInputStream.readNBytes(int) incorrectly calls readAllBytes()
Reviewed-by: alanb, bpb
This commit is contained in:
parent
4e960fe53f
commit
5762ec2587
2 changed files with 25 additions and 7 deletions
|
@ -168,7 +168,7 @@ public class ChannelInputStream
|
|||
return new byte[0];
|
||||
|
||||
if (!(ch instanceof SeekableByteChannel sbc))
|
||||
return super.readAllBytes();
|
||||
return super.readNBytes(len);
|
||||
|
||||
long length = sbc.size();
|
||||
long position = sbc.position();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue