Le 20/05/2022 à 20:00, Philip Race a écrit :
OK .. we can probably take the proposed change, but there's no
guarantee it won't
still happen with 3rd party external plugins.
I've filed the bug for you :
https://bugs.openjdk.java.net/browse/JDK-8287102
Thanks! I have rebased the pull request
OK .. we can probably take the proposed change, but there's no guarantee
it won't
still happen with 3rd party external plugins.
I've filed the bug for you :
https://bugs.openjdk.java.net/browse/JDK-8287102
-phil.
On 5/18/22 2:47 AM, Martin Desruisseaux wrote:
Hello Philip
Le 17/05/2022 à 2
Hello Philip
Le 17/05/2022 à 20:36, Philip Race a écrit :
Why is it unexpected ?
The purpose of ImageReaderSpi.canDecodeInput(Object) is to tell if the
source object seems to be supported by the reader. If the file is too
small, it is not supported by the reader. So a return value of false i
client-libs-dev@openjdk.java.net
Subject: Re: Unexpected EOFException in ImageReaderSpi.canDecodeInput
Why is it unexpected ?
The method declares that it throws IOException .. which if thrown
clearly means the stream can't be de-coded.
Perhaps your point is that this then prevents control
Why is it unexpected ?
The method declares that it throws IOException .. which if thrown
clearly means the stream can't be de-coded.
Perhaps your point is that this then prevents control reaching the
reset, so that the next plugin
doesn't get its turn to also reject the truncated file.
I supp