public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/9124: URLClassLoader.getResource() should return canonicalized file URLs
@ 2003-01-02  9:26 mark
  0 siblings, 0 replies; only message in thread
From: mark @ 2003-01-02  9:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9124
>Category:       libgcj
>Synopsis:       URLClassLoader.getResource() should return canonicalized file URLs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 02 01:26:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     mark@klomp.org
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
Currently URLClassLoader.getResource() might return relative file URLs if the given base file URL is relative. Other implementations return a absolute or canonicalized file URL in that case.

The cleanest fix would be to use File.toURL() on the File resource found. But File.toURL() is currently not correct on all platforms.

URLClassLoader is shared between libgcj and GNU Classpath but  not all URL and File related classes have been merged yet so changes should be tested carfully against the two code bases.

See also the following thread:
http://gcc.gnu.org/ml/java-patches/2002-q4/msg00520.html
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-02  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-02  9:26 libgcj/9124: URLClassLoader.getResource() should return canonicalized file URLs mark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).