mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-10 21:13:46 +08:00
2003-12-31 Guilhem Lavaux <guilhem@kaffe.org>
* java/net/URL.java (URL): Change context path to "/" if it is empty. From-SVN: r75264
This commit is contained in:
parent
ad12652102
commit
d415865929
@ -1,3 +1,8 @@
|
||||
2003-12-31 Guilhem Lavaux <guilhem@kaffe.org>
|
||||
|
||||
* java/net/URL.java
|
||||
(URL): Change context path to "/" if it is empty.
|
||||
|
||||
2003-12-31 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* testsuite/libjava.mauve/xfails: Removed tests that pass now:
|
||||
|
@ -396,6 +396,8 @@ public final class URL implements Serializable
|
||||
host = context.host;
|
||||
port = context.port;
|
||||
file = context.file;
|
||||
if (file == null || file.length() == 0)
|
||||
file = "/";
|
||||
authority = context.authority;
|
||||
}
|
||||
}
|
||||
@ -408,6 +410,8 @@ public final class URL implements Serializable
|
||||
host = context.host;
|
||||
port = context.port;
|
||||
file = context.file;
|
||||
if (file == null || file.length() == 0)
|
||||
file = "/";
|
||||
authority = context.authority;
|
||||
}
|
||||
else // Protocol NOT specified in spec. and no context available.
|
||||
|
Loading…
Reference in New Issue
Block a user