-
Enhancement
-
Resolution: Fixed
-
P3
-
8, 11, 15
-
b12
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246548 | 13.0.4 | Matthias Baesken | P3 | Resolved | Fixed | b04 |
JDK-8249959 | 11.0.10-oracle | Matthias Baesken | P3 | Resolved | Fixed | b01 |
JDK-8240736 | 11.0.8 | Matthias Baesken | P3 | Resolved | Fixed | b01 |
When running the jtreg test java/util/zip/DeInflate.java, we currently have errors on SLES 15.1 s390x when using the system zlib (1.2.11), while the bundled zlib seems to be okay.
What's worse, the error messages are not very meaningful.
We just get:
java.lang.InternalError
at java.base/java.util.zip.Deflater.deflateBytesBytes(Native Method)
at java.base/java.util.zip.Deflater.deflate(Deflater.java:595)
at java.base/java.util.zip.Deflater.deflate(Deflater.java:474)
...
without any meaningful error text.
I would suggest to improve a bit the error messages in Deflater.c. This would lead to:
java.lang.InternalError: unknown error in checkDeflateStatus, setParams case
at java.base/java.util.zip.Deflater.deflateBytesBytes(Native Method)
at java.base/java.util.zip.Deflater.deflate(Deflater.java:586)
at java.base/java.util.zip.Deflater.deflate(Deflater.java:465)
The following messages were added:
unknown error in checkSetDictionaryResult
unknown error in checkDeflateStatus, setParams case
unknown error in checkDeflateStatus
deflateReset failed
deflateEnd failed
What's worse, the error messages are not very meaningful.
We just get:
java.lang.InternalError
at java.base/java.util.zip.Deflater.deflateBytesBytes(Native Method)
at java.base/java.util.zip.Deflater.deflate(Deflater.java:595)
at java.base/java.util.zip.Deflater.deflate(Deflater.java:474)
...
without any meaningful error text.
I would suggest to improve a bit the error messages in Deflater.c. This would lead to:
java.lang.InternalError: unknown error in checkDeflateStatus, setParams case
at java.base/java.util.zip.Deflater.deflateBytesBytes(Native Method)
at java.base/java.util.zip.Deflater.deflate(Deflater.java:586)
at java.base/java.util.zip.Deflater.deflate(Deflater.java:465)
The following messages were added:
unknown error in checkSetDictionaryResult
unknown error in checkDeflateStatus, setParams case
unknown error in checkDeflateStatus
deflateReset failed
deflateEnd failed
- backported by
-
JDK-8240736 Give more meaningful InternalError messages in Deflater.c
- Resolved
-
JDK-8246548 Give more meaningful InternalError messages in Deflater.c
- Resolved
-
JDK-8249959 Give more meaningful InternalError messages in Deflater.c
- Resolved