public inbox for
 help / color / mirror / Atom feed
From: Dhek Bhun Kho <>
To: Java general <>
Cc: Rhug <>
Subject: PR? gcj --resouce
Date: Tue, 07 Jan 2003 18:39:00 -0000	[thread overview]
Message-ID: <> (raw)

Hi there,

[from GCJ Manual:]
--resource resource-name
    This option is used to tell gcj to compile the contents of a given
file to object code so it may be accessed at runtime with the core
protocol handler as core:/resource-name. Note that resource-name is the
name of the resource as found at runtime; for instance, it could be used
in a call to ResourceBundle.getBundle. The actual file name to be
compiled this way must be specified separately. 

I don't know whether this has been reported already. But I almost broke
my head on this. When compiling resources like this:

gcj --resource /a/b/c/d/e/f x/a/b/c/d/e/f -o y/a/b/c/d/e/f.o -c

The methods getResourceAsStream() and getResource() won't find the
resource defined and linked like this. It's not a big problem if you
know it, but it's a bit awkward considering that in the java code the
Class.getResourceAsStream() and Class.getResouce() method calls actually
pass "/a/b/c/d/e/f" as parameter and not "a/b/c/d/e/f". The latter which
is the only way to enable the resource to be found using the core:/

Should I create a PR for this or is this a feature?

                 reply	other threads:[~2003-01-07 18:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).