On Fri, 20 Mar 2026 16:55:26 GMT, Eirik Bjørsnøs <[email protected]> wrote:
>> Please review this PR which updates the specification of >> `ZipOutputStream.setComment(String)` to match the long-standing behavior of >> throwing `IllegalArgumentException` when a comment contains characters which >> are unmappable using the `Charset` passed in the constructor. >> >> A new tests is added to reproduce calling setComment with unmappable >> characters and verify that it throws IAE. >> >> A CSR has been drafted. Its specification section will be updated after an >> initial round of review of the specification text in this PR. > > Eirik Bjørsnøs has updated the pull request incrementally with one additional > commit since the last revision: > > Add note to @param comment specification that the comment may be set to > null or the empty string to produce no ZIP file comment test/jdk/java/util/zip/ZipOutputStream/UnmappableZipFileComment.java line 36: > 34: > 35: /* @test > 36: * @bug 8380542 Seeing this is a spec update, not a bug, should I remove the `@bug` tag here? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30338#discussion_r2967016823
