This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: RFA: solib URLs
Hi,
On Sat, 2003-01-25 at 11:30, Andrew Haley wrote:
> Tom Tromey writes:
> > * Adds a new `solib:' URL protocol handler. A URL of this form is
> > somewhat like a `file:' URL, but the handler loads the file as a
> > shared library. It is also somewhat like a `jar:' URL, in that
> > something of the form `solib:/path/to/libfoo.so!/some/other/path' is
> > used to look up resources in that shared library.
>
> I don't understand the point of this. Why not just use the "file:"
> prefix instead of adding a nonstandard one?
I was thinking the same thing, but I would suggest just using the "jar:"
protocol and then make the jar protocol handler detect if something is a
.jar/.zip or a .so file.
You could then even go so far as making JarFile and JarInputStream also
able to transparently read entries from a .so file. I believe the
java.util.jar API is abstract enough to make this possible.
But I have to admit that I haven't looked to much into this idea yet (or
actually read your patch that carefully...)
Cheers,
Mark