Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

2023-07-14 Thread Brian Burkhalter
On Fri, 7 Jul 2023 15:56:13 GMT, Brian Burkhalter wrote: >> Add a default method `java.io.Closeable::closeUnchecked` which is equivalent >> to `Closeable::close` except that it instead throws >> `java.io.UncheckedIOException`. > > Brian Burkhalter has updated the pull request incrementally

Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

2023-07-10 Thread Glavo
On Fri, 7 Jul 2023 15:56:13 GMT, Brian Burkhalter wrote: >> Add a default method `java.io.Closeable::closeUnchecked` which is equivalent >> to `Closeable::close` except that it instead throws >> `java.io.UncheckedIOException`. > > Brian Burkhalter has updated the pull request incrementally

Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

2023-07-10 Thread Alan Bateman
On Fri, 7 Jul 2023 15:56:13 GMT, Brian Burkhalter wrote: >> Add a default method `java.io.Closeable::closeUnchecked` which is equivalent >> to `Closeable::close` except that it instead throws >> `java.io.UncheckedIOException`. > > Brian Burkhalter has updated the pull request incrementally

Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

2023-07-10 Thread Joe Darcy
On Fri, 7 Jul 2023 15:56:13 GMT, Brian Burkhalter wrote: >> Add a default method `java.io.Closeable::closeUnchecked` which is equivalent >> to `Closeable::close` except that it instead throws >> `java.io.UncheckedIOException`. > > Brian Burkhalter has updated the pull request incrementally

Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

2023-07-09 Thread Kasper Nielsen
What would an alternative method signature look like for a method called closeUnchecked? On Sat, 8 Jul 2023 at 15.49, Glavo wrote: > > Can it be a static method instead of a default method? `Closeable` is a > widely used class, so adding new default methods risks conflicting with > existing

Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

2023-07-08 Thread Glavo
On Fri, 7 Jul 2023 15:56:13 GMT, Brian Burkhalter wrote: >> Add a default method `java.io.Closeable::closeUnchecked` which is equivalent >> to `Closeable::close` except that it instead throws >> `java.io.UncheckedIOException`. > > Brian Burkhalter has updated the pull request incrementally

Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

2023-07-07 Thread Brian Burkhalter
On Fri, 7 Jul 2023 01:18:10 GMT, Chen Liang wrote: >> Brian Burkhalter has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8066869: linkplain -> link > > src/java.base/share/classes/java/io/Closeable.java line 72: > >> 70: * Therefore

Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

2023-07-07 Thread Brian Burkhalter
> Add a default method `java.io.Closeable::closeUnchecked` which is equivalent > to `Closeable::close` except that it instead throws > `java.io.UncheckedIOException`. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8066869: