RFR: 8239351: Give more meaningful InternalError messages in Deflater.c
Lance Andersen
lance.andersen at oracle.com
Tue Feb 18 19:55:28 UTC 2020
I think this looks OK also
> On Feb 18, 2020, at 12:50 PM, Martin Buchholz <martinrb at google.com> wrote:
>
> Thanks for doing this. Looks good to me.
> I would probably create a tiny helper function to encapsulate the error
> throw.
>
> On Tue, Feb 18, 2020 at 7:03 AM Baesken, Matthias <matthias.baesken at sap.com>
> wrote:
>
>> Hello, please review this change to Deflater.c .
>>
>> 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 (of OpenJDK) seems to be okay.
>> What's worse, the error messages are not very meaningful / helpful .
>>
>> 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 more any meaningful error text.
>>
>> I would suggest to improve a bit the error messages in Deflater.c ; this
>> would lead in this case 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)
>>
>>
>> Bug/webrev :
>>
>> https://bugs.openjdk.java.net/browse/JDK-8239351
>>
>> http://cr.openjdk.java.net/~mbaesken/webrevs/8239351.0/
>>
>>
>> Thanks, Matthias
>>
<http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
More information about the core-libs-dev
mailing list