Re: [IO] FilenameUtils#getPrefixLength is broken on Unix

2004-11-26 Thread Stephen Colebourne
Thanks, I was aware that I'd checked in bad code, but hadn't been able to access a system since to be able to fix it. I might get to it tonight if someone doesn't beat me to it. Stephen --- Stefan Bodewig [EMAIL PROTECTED] wrote: Hi, this is the manual version of what Gump is trying to

Re: [IO] FilenameUtils#getPrefixLength is broken on Unix

2004-11-26 Thread Martin Cooper
I've removed the offending line, as suggested. I have not fixed the test problems, though. I'll leave that for Stephen. ;-) FYI, the tests also fail on Windows, but the failure I see is: [junit] Testcase: testNormalize took 0.02 sec [junit] FAILED [junit] Check if '///'

[IO] FilenameUtils#getPrefixLength is broken on Unix

2004-11-25 Thread Stefan Bodewig
Hi, this is the manual version of what Gump is trying to tell you 8-) FilenameUtils.getPrefixLength fails on Unix if you pass a string of length one as argument since it unconditionally tries to access the second character (just to never use it). Therefore the test case fails since it tests /.