Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-06-06 Thread Markus KARG
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

I think we should turn it back to draft.

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-06-06 Thread Alan Bateman
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

Can this PR be closed or returned to daft?

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-05-13 Thread Markus KARG
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

Please keep this PR open; I will continune work on it soon.

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-04-10 Thread Markus KARG
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

Please keep this PR open; I will continune work on it soon.

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-03-13 Thread Markus KARG
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

Please keep this PR open; I will continune work on it soon.

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-02-12 Thread Markus KARG
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

Please keep open, still working on it.

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-01-15 Thread Markus KARG
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

Good catches, I will look into your comments!

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-01-12 Thread Daniel Fuchs
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

src/java.base/share/classes/java/io/BufferedInputStream.java line 501:

> 499: return avail + getInIfOpen().transferTo(out);
> 500: }
> 501: 

Hi Markus, did you double check with all the existing subclasses of 
`BufferedInputStream` that the new implementation of `transferTo` will not 
cause trouble, if any of the subclasses is overriding `int read(byte[] b, int 
off, int len)`? If I'm not mistaken - with this new implementation of 
`transferTo` then `BufferedInputStream::read(byte[] b, int off, int len)` (a 
public method that can be overridden) will no longer be called by `transferTo`. 
This could be causing problems if `read` is overriden to do some special 
processing in the subclass.

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-01-06 Thread Alan Bateman
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

I think you'll need to look at the interaction with mark/reset. I don't think 
you can bypass the buffering when there is a mark set.

-

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


Re: RFR: 8279283 - BufferedInputStream should override transferTo [v5]

2022-01-03 Thread Сергей Цыпанов
On Mon, 27 Dec 2021 13:43:12 GMT, Markus KARG  wrote:

>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   fixed missing BufferedInputStream

Maybe we need to include into this patch the benchmark referenced to in the 
body of the ticket?

-

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