8336895: BufferedReader doesn't read full \r\n line ending when it doesn't fit in buffer

Reviewed-by: jpai, alanb
This commit is contained in:
Brian Burkhalter 2024-09-26 15:20:51 +00:00
parent 376056ca48
commit aeaa4f78eb
4 changed files with 46 additions and 23 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1994, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1994, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -35,6 +35,11 @@ import jdk.internal.misc.VM;
* output stream without necessarily causing a call to the underlying
* system for each byte written.
*
* @apiNote
* Once wrapped in a {@code BufferedOutputStream}, the underlying
* {@code OutputStream} should not be used directly nor wrapped with
* another stream.
*
* @author Arthur van Hoff
* @since 1.0
*/