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
This commit is contained in:
Anthony Green 2003-06-08 22:07:48 +00:00 committed by Anthony Green
parent 51d2dfa601
commit a8a8de4875
4 changed files with 26 additions and 5 deletions

View file

@ -1,5 +1,5 @@
/* URL.java -- Uniform Resource Locator Class
Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
Copyright (C) 1998, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@ -147,7 +147,7 @@ public final class URL implements Serializable
/**
* The protocol handler in use for this URL
*/
transient private URLStreamHandler handler;
transient URLStreamHandler handler;
/**
* This a table where we cache protocol handlers to avoid the overhead