Inputs on patch for JDK-8225763?

Alan Bateman Alan.Bateman at oracle.com
Thu Jun 27 07:13:41 UTC 2019


On 27/06/2019 05:28, Jaikiran Pai wrote:
> :
>
> 2. Have the close() method call the end() method
>
One subtle point is that end() is not idempotent. The close() method 
defined by AutoCloseable is not required be to either but we should try 
hard to specify Inflater::close to be idempotent. It might need a bit of 
heroics to get this right because Inflater is not final and end() might 
be overridden.

-Alan


More information about the core-libs-dev mailing list