This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: resource compiling
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: <tromey at redhat dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: Mon, 27 Jan 2003 16:51:23 +0100
- Subject: RE: resource compiling
>> It's not a real problem, because I only make the mistake once. :P By
>> regularly I would call getClass().getResource("/...") to get a resource
>> starting from the toplevel package. But if you compile this as the
>> resource name, e.g. --resource /... you'll never find the resource. More
>> like first timer's sillyness.
>>>> Could you write a patch for gcj.texi explaining that the core: URL
>>>> handler strips the leading `/'?
It this behaviour by design that will remain like it is, or is it something
that should be fixed?
The stripping of the leading '/' is a bit counter-intuitive, IMHO; but of
course, if you know it, it won't bite you.