RFR: 8282648: Problems due to conflicting specification of Inflater::inflate(..) and InflaterInputStream::read(..) [v6]

Volker Simonis simonis at openjdk.java.net
Wed Apr 13 17:42:58 UTC 2022


On Tue, 12 Apr 2022 18:12:03 GMT, Lance Andersen <lancea at openjdk.org> wrote:

>> Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Adapted wording based on @AlanBateman's review, removed implementation note on ZipFile::getInputStream and aligned wording for all ::read methods
>
> src/java.base/share/classes/java/util/zip/GZIPInputStream.java line 103:
> 
>> 101:      * elements {@code buf[off+}<i>n</i>{@code ]} through {@code buf[off+}<i>len</i>{@code -1]}
>> 102:      * are undefined (an implementation is free to change them during the inflate
>> 103:      * operation). If the return value is -1 or an exception is thrown then {@code buf[off]}
> 
> perhaps tweak "... is thrown then" 
> 
> to
> 
> "... is thrown, then the contents of..."

Updated as requested (also in `ZipInputStream` and `InflaterInputStream`).

-------------

PR: https://git.openjdk.java.net/jdk/pull/7986


More information about the core-libs-dev mailing list