geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Sisson (JIRA)" <>
Subject [jira] Commented: (GERONIMO-615) RMIClassLoaderSpiImpl.normalizeCodebase(..) generates MalformedURLExceptions unnecessarily
Date Wed, 23 Mar 2005 22:32:22 GMT
     [ ]
John Sisson commented on GERONIMO-615:

The code should be able to be changed so that it doesn't attempt to create a URL with a token
that only contains one of the delimiter characters (e.g. a space character), as that results
in the exception being generated.  

The code works as it is, but we should be striving to avoid the generation of exceptions in
non error scenarios where possible.

> RMIClassLoaderSpiImpl.normalizeCodebase(..) generates MalformedURLExceptions unnecessarily
> ------------------------------------------------------------------------------------------
>          Key: GERONIMO-615
>          URL:
>      Project: Geronimo
>         Type: Bug
>     Reporter: John Sisson
>     Assignee: Gianny DAMOUR
>     Priority: Trivial

> org.apache.geronimo.system.rmi.RMIClassLoaderSpiImpl.normalizeCodebase(..) unnecessarily
causes MalformedURLExceptions to be generated and caught.
> The exceptions are due to the delimiter tokens (e.g. a space character) being passed
to the URL constructor.  
> This occurs because "true" flag being passed on the call to the StringTokenizer constructor
in the body of the normalizeCodebase method(..).
> In my debug session, in one invocation of normalizeCodebase(..), over 40 MalformedURLExceptions
were generated.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message