diff options
| author | Anthony Green <green@redhat.com> | 2003-06-08 22:07:48 +0000 |
|---|---|---|
| committer | Anthony Green <green@gcc.gnu.org> | 2003-06-08 22:07:48 +0000 |
| commit | a8a8de48756b3c27e28e616b31886e84bf937f05 (patch) | |
| tree | 17da92559877904ab4b92fcd89330f000a62e5eb /libjava/gnu | |
| parent | 51d2dfa601d743ba2f4cbe4e70691a3a6ddf2fa6 (diff) | |
| download | gcc-a8a8de48756b3c27e28e616b31886e84bf937f05.tar.gz gcc-a8a8de48756b3c27e28e616b31886e84bf937f05.tar.bz2 gcc-a8a8de48756b3c27e28e616b31886e84bf937f05.zip | |
URLStreamHandler.java (sameFile): Fix port value comparison.
2003-06-08 Anthony Green <green@redhat.com>
* java/net/URLStreamHandler.java (sameFile): Fix port value
comparison.
* java/net/URL.java (handler): Make package private.
* gnu/gcj/protocol/http/Handler.java (getDefaultPort): New method.
From-SVN: r67640
Diffstat (limited to 'libjava/gnu')
| -rw-r--r-- | libjava/gnu/gcj/protocol/http/Handler.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libjava/gnu/gcj/protocol/http/Handler.java b/libjava/gnu/gcj/protocol/http/Handler.java index ccf94e762c5..608d07eda02 100644 --- a/libjava/gnu/gcj/protocol/http/Handler.java +++ b/libjava/gnu/gcj/protocol/http/Handler.java @@ -1,6 +1,6 @@ // Handler.java - URLStreamHandler for http protocol. -/* Copyright (C) 1999 Free Software Foundation +/* Copyright (C) 1999, 2003 Free Software Foundation This file is part of libgcj. @@ -16,7 +16,8 @@ import java.net.URLStreamHandler; import java.io.IOException; /** - * @author Warren Levy <warrenl@cygnus.com> + * @author Warren Levy + * @author Anthony Green <green@redhat.com> * @date March 26, 1999. */ @@ -32,4 +33,9 @@ public class Handler extends URLStreamHandler { return new Connection(url); } + + protected int getDefaultPort () + { + return 80; + } } |
