[IO] Bug in FileChannels.contentEquals?

2023-11-06 Thread Stephan Markwalder
Hi, I think I have found a bug in the new FileChannels.contentEquals(...) in Commons IO 2.15.0 which then affects RandomAccessFiles.contentEquals(...), PathUtils.fileContentEquals(...), FileUtils.contentEquals(...), and maybe more methods. But before opening an issue in ASF JIRA, I would like to p

Re: [IO] Bug in FileChannels.contentEquals?

2023-11-06 Thread Elliotte Rusty Harold
Can you turn this into a PR against HEAD that adds a unit test that fails? That would be fairly conclusive proof. It's better if you don't send a fix, at least at first. That makes it easier to verify the bug. On Mon, Nov 6, 2023 at 10:04 AM Stephan Markwalder wrote: > > Hi, > > I think I have fo

[lang] DurationFormatUtils does not calculate duration for some specific dates and times

2023-11-06 Thread Sujan Biswas
Hi Team, Please find the below test case and observation which seems to be a bug in the DurationFormatUtils class. If you look at the calculated duration it says "Duration : *00-1113023530*" with output format as MMddHHmmssSSS. org.apache.commons commons-lang3 3.12.0 provided @Test void

Re: [IO] Bug in FileChannels.contentEquals?

2023-11-06 Thread Stephan Markwalder
A PR with a test for FileChannels.contentEquals is available here: https://github.com/apache/commons-io/pull/509 On Mon, Nov 6, 2023 at 5:37 PM Elliotte Rusty Harold wrote: > Can you turn this into a PR against HEAD that adds a unit test that > fails? That would be fairly conclusive proof. It's

Re: [lang] DurationFormatUtils does not calculate duration for some specific dates and times

2023-11-06 Thread Sujan Biswas
Please ignore the email. I need to pass the TimeZone for calculation, otherwise it was taking the system default timezone which changes during DayLight Saving. Thanks, Sujan On Mon, 6 Nov 2023 at 16:35, Sujan Biswas wrote: > Hi Team, > > Please find the below test case and observation which see