bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22710] URLs aren't parsed properly in some cases


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22710] URLs aren't parsed properly in some cases
Date: 16 Oct 2005 01:26:42 -0000

(Already submitted to the mailing list)

I noticed some misbehaviour of classpath's URL compared to Sun's JDK while
merging these classes in kaffe's library. Kaffe's regression test "URLTest" was
failing nearly completely. BTW, there was an error when url of the type
"http://anonymous:address@hidden/"; was entered: URL reports to detect
"anonymous" as the host. This patch fixes all these things.

There is only one drawback: to be able to report errors in parseUrl() (for jar
protocol especially) I was obliged to introduce a new error class inheriting
from java.lang.Error. This is the only solution to be able to report errors.

Here is the corresponding ChangeLog entry:

2003-10-29    Guilhem Lavaux <address@hidden>

    * gnu/java/net/URLParseError.java: New error class.

    * gnu/java/net/protocol/jar/Handler.java:
    (parseUrl) Fixed error reporting. Fixed URL access
    using relative path.

    * java/net/URL.java:
    (URL) Reports Error generated using URLParseError as
    MalformedURLException.

    * java/net/URLStreamHandler:
    (parseUrl) Fixed URL parsing ('@' should be checked
    to distinguish port from userinfo). Fixed relative
    URL handling.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2004-01-01 
16:40 -------
Merged in CVS.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22710





reply via email to

[Prev in Thread] Current Thread [Next in Thread]