RFR: 8068230: java.util.zip.Deflater.init throws InternalError

Alan Bateman Alan.Bateman at oracle.com
Sun Dec 28 15:04:19 UTC 2014


On 26/12/2014 08:58, Ivan Gerasimov wrote:
> Hello!
>
> Some zlib-related tests fail on Solaris hosts, throwing InternalError 
> with no detailed message.
> This might be due to incompatible version of zlib library installed on 
> the host.
>
> To have a better diagnostics, it is proposed to specifically check for 
> Z_VERSION_ERROR error code and issue a specific message in that case.
>
> Would you please help review the fix?
>
> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8068230
> WEBREV: http://cr.openjdk.java.net/~igerasim/8068230/0/webrev/

There isn't sufficient information in the bug report but since it is a 
fastdebug build then it would be good to get JDK-8008759 back-ported to 
7uX and see if the issue duplicates.

As regards the proposed change to improve then exception when an 
incompatible zlib is encountered then it probably should be moved to 
another issue. One suggestion is to keep it as an internal error and use 
the same exception message as is already done in Inflater.init.

-Alan.



More information about the core-libs-dev mailing list