Commit eeb32988 by Mark Wielaard Committed by Mark Wielaard

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
parent 1e38f159
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"))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment