Patch: fix URL.sameFile()

Michael Koch konqueror@gmx.de
Sun Jun 8 15:31:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Sonntag, 8. Juni 2003 17:27 schrieb Anthony Green:
> mauve's UTLTest.test_sameFile() used to fail when comparing these
> URLs..
>
> 	http://sources.redhat.com/mauve/testarea/index.html
> 	http://sources.redhat.com:80/mauve/testarea/index.html
>
> ..because the port numbers are "different".  URL.getPort() for the
> first URL is -1, which is supposed to always represent the protocol
> specific default.  This patch makes URL.sameFile() sensitive to
> this, and adds the missing getDefaultPort() method on our http
> Handler class.
>
> Ok? (and similarly for GNU Classpath - but savannah appears to be
> down)

I would say its okay, but wait for Tom's approval.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+41edWSOgCCdjSDsRAtfCAJ9utsH1GimpShFFvgqOLQ9yI+g6AACgh5g7
sWIbqr1F9dF1h0ZFyHU44qg=
=wOnP
-----END PGP SIGNATURE-----



More information about the Java-patches mailing list