https://bz.apache.org/bugzilla/show_bug.cgi?id=69680

--- Comment #1 from Stefan Bodewig <bode...@apache.org> ---
Here I believe what the comment calls the leading separator is assumed to be /
or \, so we probably want to guard the substring(1) with a check that it
actually is '/', '\\' or File.separatorChar.

TBH I have no idea why getName works that way but it has done so for 20 years
now and I really wouldn't dare to change it in more radical ways. Most likely
the code does exactly what it is supposed to do for file: URIs and some other
place relies on this.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to