Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v5]

2023-04-17 Thread Eirik Bjorsnos
On Mon, 17 Apr 2023 17:04:32 GMT, Alan Bateman wrote: > What you have is fine, I'm just making the point that the exception message > is somewhat secondary I guess this is also a question of testing the interface vs. testing the implementation. To get good coverage of validation scenarios, I

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v5]

2023-04-17 Thread Alan Bateman
On Sun, 16 Apr 2023 10:27:07 GMT, Lance Andersen wrote: >> Okay, although I assume this test will fail if it throws a more general >> IOException (it's allowed to do that) or there is any adjustment to the >> error message. > > Yes, in the unlikely event that either FileSystemException or the

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v5]

2023-04-16 Thread Lance Andersen
On Sun, 16 Apr 2023 08:39:32 GMT, Alan Bateman wrote: >> added validation for other file being null but also kept the existing >> validation of the message > > Okay, although I assume this test will fail if it throws a more general > IOException (it's allowed to do that) or there is any adjustm

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v5]

2023-04-16 Thread Alan Bateman
On Sat, 15 Apr 2023 10:24:58 GMT, Lance Andersen wrote: >> test/jdk/jdk/nio/zipfs/ZipFSDirectoryExceptionMessageTest.java line 96: >> >>> 94: var file = zipfs.getPath(DIRECTORY_NAME); >>> 95: var x = assertThrows(FileSystemException.class, () -> >>> Files.newInputStream(

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v5]

2023-04-15 Thread Lance Andersen
On Sat, 15 Apr 2023 05:43:09 GMT, Alan Bateman wrote: >> Lance Andersen has updated the pull request incrementally with one >> additional commit since the last revision: >> >> re-arrage assertEquals params > > test/jdk/jdk/nio/zipfs/ZipFSDirectoryExceptionMessageTest.java line 96: > >> 94:

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v6]

2023-04-15 Thread Lance Andersen
> Please review this trivial change when ZipFS returns the wrong > java.nio.file.FileSystemException message due the the parameters being > reversed. > > I also included a simple junit test as part of the fix. > > Mach5 tiers1-3 are clean > > Best > Lance Lance Andersen has updated the pull r

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v5]

2023-04-14 Thread Alan Bateman
On Sat, 15 Apr 2023 00:36:35 GMT, Lance Andersen wrote: >> Please review this trivial change when ZipFS returns the wrong >> java.nio.file.FileSystemException message due the the parameters being >> reversed. >> >> I also included a simple junit test as part of the fix. >> >> Mach5 tiers1-3 a

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v5]

2023-04-14 Thread Lance Andersen
> Please review this trivial change when ZipFS returns the wrong > java.nio.file.FileSystemException message due the the parameters being > reversed. > > I also included a simple junit test as part of the fix. > > Mach5 tiers1-3 are clean > > Best > Lance Lance Andersen has updated the pull r

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v4]

2023-04-14 Thread Eirik Bjorsnos
On Fri, 14 Apr 2023 21:59:33 GMT, Lance Andersen wrote: >> Please review this trivial change when ZipFS returns the wrong >> java.nio.file.FileSystemException message due the the parameters being >> reversed. >> >> I also included a simple junit test as part of the fix. >> >> Mach5 tiers1-3 a

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v4]

2023-04-14 Thread Lance Andersen
On Fri, 14 Apr 2023 21:30:40 GMT, Eirik Bjorsnos wrote: >> Lance Andersen has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Address additional feedback > > test/jdk/jdk/nio/zipfs/ZipFSDirectoryExceptionMessageTest.java line 40: > >> 38:

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v4]

2023-04-14 Thread Lance Andersen
> Please review this trivial change when ZipFS returns the wrong > java.nio.file.FileSystemException message due the the parameters being > reversed. > > I also included a simple junit test as part of the fix. > > Mach5 tiers1-3 are clean > > Best > Lance Lance Andersen has updated the pull r

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v3]

2023-04-14 Thread Eirik Bjorsnos
On Fri, 14 Apr 2023 21:40:17 GMT, Lance Andersen wrote: >> Please review this trivial change when ZipFS returns the wrong >> java.nio.file.FileSystemException message due the the parameters being >> reversed. >> >> I also included a simple junit test as part of the fix. >> >> Mach5 tiers1-3 a

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v3]

2023-04-14 Thread Lance Andersen
> Please review this trivial change when ZipFS returns the wrong > java.nio.file.FileSystemException message due the the parameters being > reversed. > > I also included a simple junit test as part of the fix. > > Mach5 tiers1-3 are clean > > Best > Lance Lance Andersen has updated the pull r

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v2]

2023-04-14 Thread Lance Andersen
On Fri, 14 Apr 2023 21:07:37 GMT, Naoto Sato wrote: > Looks good, Lance. Nit: copyright year -> 2023 Geez, working in too many workspaces. Thank you, just pushed the update - PR Comment: https://git.openjdk.org/jdk/pull/13482#issuecomment-1509300245

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v2]

2023-04-14 Thread Lance Andersen
On Fri, 14 Apr 2023 21:08:28 GMT, Christian Stein wrote: > Looks good to me. Thank you Christian - PR Comment: https://git.openjdk.org/jdk/pull/13482#issuecomment-1509301103

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message [v2]

2023-04-14 Thread Lance Andersen
> Please review this trivial change when ZipFS returns the wrong > java.nio.file.FileSystemException message due the the parameters being > reversed. > > I also included a simple junit test as part of the fix. > > Mach5 tiers1-3 are clean > > Best > Lance Lance Andersen has updated the pull r

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message

2023-04-14 Thread Christian Stein
On Fri, 14 Apr 2023 20:24:00 GMT, Lance Andersen wrote: > Please review this trivial change when ZipFS returns the wrong > java.nio.file.FileSystemException message due the the parameters being > reversed. > > I also included a simple junit test as part of the fix. > > Mach5 tiers1-3 are clea

Re: RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message

2023-04-14 Thread Naoto Sato
On Fri, 14 Apr 2023 20:24:00 GMT, Lance Andersen wrote: > Please review this trivial change when ZipFS returns the wrong > java.nio.file.FileSystemException message due the the parameters being > reversed. > > I also included a simple junit test as part of the fix. > > Mach5 tiers1-3 are clea

RFR: 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message

2023-04-14 Thread Lance Andersen
Please review this trivial change when ZipFS returns the wrong java.nio.file.FileSystemException message due the the parameters being reversed. I also included a simple junit test as part of the fix. Mach5 tiers1-3 are clean Best Lance - Commit messages: - (zipfs) Opening a direc