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
@ -1,3 +1,9 @@
|
||||
2004-07-11 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
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.
|
||||
|
||||
2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
|
||||
|
@ -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…
Reference in New Issue
Block a user