Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v17]

2025-01-14 Thread Jaikiran Pai
On Tue, 14 Jan 2025 09:23:35 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v17]

2025-01-14 Thread Roger Riggs
On Tue, 14 Jan 2025 09:23:35 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v17]

2025-01-14 Thread Lance Andersen
On Tue, 14 Jan 2025 09:23:35 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v17]

2025-01-14 Thread Alan Bateman
On Tue, 14 Jan 2025 09:23:35 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-14 Thread Jaikiran Pai
On Tue, 14 Jan 2025 09:17:59 GMT, Jaikiran Pai wrote: >> I believe an `@implSpec` only restricts the implementation of this immediate >> method, such as those seen on default methods, and has no impact on the >> overrides. If we need to specify something for overrides to abide to, I >> believe

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-14 Thread Jaikiran Pai
On Tue, 14 Jan 2025 08:28:38 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/util/zip/Deflater.java line 66: >> >>> 64: * {@code try}-with-resources statement. The {@linkplain >>> Deflater#close() close() method} simply >>> 65: * calls {@code end()}. Subclasses should override {@li

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v17]

2025-01-14 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v16]

2025-01-14 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-14 Thread Jaikiran Pai
On Tue, 14 Jan 2025 06:35:04 GMT, Alan Bateman wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix javadoc tag ordering - "@throws" after "@return" > > src/java.base/share/classes/java/util/zip/Deflater.java line 5

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-14 Thread Chen Liang
On Tue, 14 Jan 2025 08:18:57 GMT, Alan Bateman wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix javadoc tag ordering - "@throws" after "@return" > > src/java.base/share/classes/java/util/zip/Deflater.java line 6

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-14 Thread Alan Bateman
On Wed, 8 Jan 2025 06:01:55 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-13 Thread Jaikiran Pai
On Wed, 8 Jan 2025 06:01:55 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-08 Thread Roger Riggs
On Wed, 8 Jan 2025 06:01:55 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-08 Thread Lance Andersen
On Wed, 8 Jan 2025 06:01:55 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v15]

2025-01-07 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v14]

2025-01-07 Thread Jaikiran Pai
On Tue, 7 Jan 2025 20:37:32 GMT, Roger Riggs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> change "@since" to 25 > > src/java.base/share/classes/java/util/zip/Deflater.java line 815: > >> 813: * than {@link

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v14]

2025-01-07 Thread Thayne McCombs
On Tue, 7 Jan 2025 10:45:09 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v14]

2025-01-07 Thread Lance Andersen
On Tue, 7 Jan 2025 10:45:09 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v14]

2025-01-07 Thread Roger Riggs
On Tue, 7 Jan 2025 10:45:09 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v14]

2025-01-07 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v12]

2025-01-07 Thread Jaikiran Pai
On Mon, 2 Dec 2024 16:55:23 GMT, Roger Riggs wrote: >> Jaikiran Pai has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 22 additional >> commits sin

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v13]

2025-01-07 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v12]

2024-12-02 Thread Roger Riggs
On Mon, 2 Dec 2024 05:26:30 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-12-01 Thread Jaikiran Pai
On Wed, 27 Nov 2024 07:18:43 GMT, Alan Bateman wrote: >> Hello Alan, >> >>> If it goes ahead as reviewed, then we'll to do some outreach and be >>> prepared to back out this change in the event that breakage is reported >>> before GA. >> >> I agree that if the `final close()` causes issues,

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v12]

2024-12-01 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-26 Thread Alan Bateman
On Wed, 27 Nov 2024 06:26:17 GMT, Jaikiran Pai wrote: >> Inflater/Deflater date from JDK 1.1 so I think there is some risk to adding >> a final no-arg close method. I understand that a corpus analysis has been >> done, and the intention of making it final is for subclasses to know which >> met

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-26 Thread Jaikiran Pai
On Tue, 26 Nov 2024 17:36:40 GMT, Alan Bateman wrote: >> Done. > > Inflater/Deflater date from JDK 1.1 so I think there is some risk to adding a > final no-arg close method. I understand that a corpus analysis has been done, > and the intention of making it final is for subclasses to know which

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-26 Thread Alan Bateman
On Fri, 15 Nov 2024 11:12:06 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/util/zip/Inflater.java line 719: >> >>> 717: */ >>> 718: @Override >>> 719: public void close() { >> >> Ditto, should this be `final` to be clear about what should be overridden to >> perform

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v11]

2024-11-26 Thread Lance Andersen
On Tue, 26 Nov 2024 12:13:20 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v11]

2024-11-26 Thread Jaikiran Pai
On Tue, 26 Nov 2024 12:13:20 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v11]

2024-11-26 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-26 Thread Lance Andersen
On Tue, 19 Nov 2024 19:28:50 GMT, Stuart Marks wrote: >> Thank you. It was an oversight that the original javadoc did not call out >> the NPE, but now is our chance to get it right with a more reasonable >> exception. > > Overall I agree with defining that IllegalStateException is thrown after

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v10]

2024-11-26 Thread Lance Andersen
On Tue, 26 Nov 2024 07:28:02 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v10]

2024-11-25 Thread Jaikiran Pai
On Tue, 26 Nov 2024 07:28:02 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v10]

2024-11-25 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v9]

2024-11-25 Thread Stuart Marks
On Fri, 22 Nov 2024 04:43:55 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v9]

2024-11-22 Thread Roger Riggs
On Fri, 22 Nov 2024 04:43:55 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v7]

2024-11-21 Thread Jaikiran Pai
On Tue, 19 Nov 2024 19:27:39 GMT, Stuart Marks wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> missed a few methods for specifying IllegalStateException > > src/java.base/share/classes/java/util/zip/Deflater.java l

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v9]

2024-11-21 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-21 Thread Jaikiran Pai
On Tue, 19 Nov 2024 19:25:30 GMT, Stuart Marks wrote: >> Hi Jai, >> >> I am not convinced we need to call this out specifically at the class level >> given the classes implements AutoClosable and close indicates it calls end. >> We will also want to add a Release Note which can help further

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v8]

2024-11-21 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-19 Thread Stuart Marks
On Fri, 15 Nov 2024 12:17:47 GMT, Lance Andersen wrote: >> Stuart in one of his review comments in this PR had noted that: >> >>> I think the class specification needs to be clearer about the positioning >>> of end() and close(). The end() method has done the real work of "closing" >>> since t

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v7]

2024-11-19 Thread Stuart Marks
On Fri, 15 Nov 2024 11:15:28 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-15 Thread Lance Andersen
On Fri, 15 Nov 2024 11:19:43 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/util/zip/Deflater.java line 66: >> >>> 64: * usage with try-with-resources, this class implements {@link >>> AutoCloseable}. The >>> 65: * {@link #close()} method of this class calls {@code end()} to cle

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-15 Thread Jaikiran Pai
On Thu, 14 Nov 2024 17:29:06 GMT, Lance Andersen wrote: >> Jaikiran Pai has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 10 additional >> commits

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-15 Thread Jaikiran Pai
On Thu, 7 Nov 2024 14:34:23 GMT, Roger Riggs wrote: >> Jaikiran Pai has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains nine additional >> commits s

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-15 Thread Jaikiran Pai
On Thu, 14 Nov 2024 17:33:34 GMT, Lance Andersen wrote: >> Jaikiran Pai has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 10 additional >> commits

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-15 Thread Jaikiran Pai
On Thu, 14 Nov 2024 20:36:45 GMT, Chen Liang wrote: >> Hello Chen, corpus analysis shows that there are no subclasses of >> Inflater/Deflater which have a `close()` method. > > Great news! Feel free to make their close final. I have updated the PR to follow Roger's suggestion of marking this n

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v7]

2024-11-15 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v6]

2024-11-15 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-14 Thread Chen Liang
On Thu, 14 Nov 2024 12:28:21 GMT, Jaikiran Pai wrote: >> I agree with marking these close methods as final as long as the previous >> corpus search did not find any user-defined close method in subclasses. > > Hello Chen, corpus analysis shows that there are no subclasses of > Inflater/Deflater

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-14 Thread Lance Andersen
On Thu, 14 Nov 2024 04:14:03 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-14 Thread Jaikiran Pai
On Thu, 14 Nov 2024 04:59:48 GMT, Chen Liang wrote: >> Hello Roger, I think that's a good idea. At least until there is a real >> reason for `close()` to be overridden by subclasses. I went back and checked >> the mailing list discussions (linked in this PR description) and I don't >> think ma

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-13 Thread Chen Liang
On Thu, 7 Nov 2024 14:43:41 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/util/zip/Deflater.java line 902: >> >>> 900: */ >>> 901: @Override >>> 902: public void close() { >> >> Can/should this method be final? The real/original cleanup method is `end` >> and if bo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-13 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-07 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-07 Thread Jaikiran Pai
On Thu, 7 Nov 2024 14:28:34 GMT, Roger Riggs wrote: >> Jaikiran Pai has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains nine additional >> commits s

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-07 Thread Roger Riggs
On Thu, 7 Nov 2024 14:16:36 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v4]

2024-11-07 Thread Jaikiran Pai
On Thu, 7 Nov 2024 14:16:36 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> propo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v3]

2024-07-15 Thread Jaikiran Pai
On Sun, 16 Jun 2024 06:36:00 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v3]

2024-06-16 Thread Stuart Marks
On Sun, 16 Jun 2024 06:36:00 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v3]

2024-06-15 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Jaikiran Pai
On Thu, 13 Jun 2024 16:02:38 GMT, Chen Liang wrote: > My suggestion is that our comment should say why we have this check here even > though there's already an identical check in end(). I now see what you mean. I'll update this appropriately tomorrow. - PR Review Comment: https://

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Chen Liang
On Thu, 13 Jun 2024 14:09:16 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/util/zip/Deflater.java line 904: >> >>> 902: public void close() { >>> 903: synchronized (zsRef) { >>> 904: // check if already closed >> >> Should we comment `// in case subclasses

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Jaikiran Pai
On Wed, 12 Jun 2024 21:07:25 GMT, Chen Liang wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> convert the tests to junit > > src/java.base/share/classes/java/util/zip/Deflater.java line 904: > >> 902: public vo

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Jaikiran Pai
On Wed, 12 Jun 2024 21:08:35 GMT, Chen Liang wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> convert the tests to junit > > test/jdk/java/util/zip/DeflaterClose.java line 2: > >> 1: /* >> 2: * Copyright (c) 2019,

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I could

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable

2024-06-12 Thread Chen Liang
On Wed, 12 Jun 2024 10:45:30 GMT, Jaikiran Pai wrote: > Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed

RFR: 8225763: Inflater and Deflater should implement AutoCloseable

2024-06-12 Thread Jaikiran Pai
Can I please get a review of this enhancement which proposes to enhance `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? The actual work for this was done a few years back when we discussed the proposed approaches and then I raised a RFR. At that time I couldn't take t