Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
Reported by Roman Kennke <roman@ontographics.com> (bug #9331) * java/net/URLStreamHandler.java (parseURL): When url file part doesn't contain a '/' just ignore context. From-SVN: r84518
This commit is contained in:
parent
1e38f15929
commit
eeb3298836
2 changed files with 11 additions and 3 deletions
|
@ -208,9 +208,11 @@ public abstract class URLStreamHandler
|
|||
{
|
||||
// Context is available, but only override it if there is a new file.
|
||||
int lastSlash = file.lastIndexOf('/');
|
||||
|
||||
file =
|
||||
file.substring(0, lastSlash) + '/' + spec.substring(start, end);
|
||||
if (lastSlash < 0)
|
||||
file = spec.substring(start, end);
|
||||
else
|
||||
file = (file.substring(0, lastSlash)
|
||||
+ '/' + spec.substring(start, end));
|
||||
|
||||
if (url.getProtocol().equals("file"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue