Thanks Sherman and Alan for the reference to JDK-8008759!
It does seem to be the root cause of this issue also.
I've just requested an approval to backport that fix into jdk 7u.
To improve the error message of Deflater.init, I've created another
issue: JDK-8068338.
Sincerely yours,
Ivan
On 28.12.2014 18:04, Alan Bateman wrote:
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.