RFR: 8274780: ChannelInputStream.readNBytes(int) incorrectly calls readAllBytes()

Florian Weimer fweimer at openjdk.java.net
Tue Oct 5 17:19:11 UTC 2021


On Tue, 5 Oct 2021 15:02:13 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> 8274780: ChannelInputStream.readNBytes(int) incorrectly calls readAllBytes()
>
> test/jdk/java/nio/channels/Channels/ReadXBytes.java line 32:
> 
>> 30:  * @build jdk.test.lib.RandomFactory
>> 31:  * @modules java.base/jdk.internal.util
>> 32:  * @run testng/othervm/timeout=3600 -Xmx8G ReadXBytes
> 
> Are you running the tests with the make target or jtreg without -timeoutFactor?

I'm invoking jtreg directly, following [Running tests using jtreg](http://openjdk.java.net/jtreg/runtests.html). That page doesn't mention `-timeoutFactor`.

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

PR: https://git.openjdk.java.net/jdk/pull/5824


More information about the nio-dev mailing list