jvm.h: Declare _Jv_RegisterResource.

* include/jvm.h: Declare _Jv_RegisterResource.
        * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
        gnu/gcj/protocol/core/Connection.java,
        gnu/gcj/protocol/core/Handler.java,
        gnu/gcj/protocol/core/CoreInputStream.java,
        gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
        * java/net/URL.java (setURLStreamHandler): Use
        gnu.gcj.protocol.core.Handler for the core protocol.
        * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
        end of java.class.path.
        * Makefile.am (ordinary_java_source_files): Add new java files.
        (nat_source_files): Add new native code files.
        * Makefile.in: Rebuilt.

From-SVN: r45450
This commit is contained in:
Anthony Green 2001-09-06 22:32:54 +00:00 committed by Anthony Green
parent f2767a670e
commit a11e2c2279
12 changed files with 494 additions and 39 deletions

View file

@ -56,6 +56,16 @@ public final class VMClassLoader extends java.net.URLClassLoader
/* Ignore this path element */
}
}
// Add core:/ to the end of the java.class.path so any resources
// compiled into this executable may be found.
try
{
p.addElement (new URL("core", "", -1, "/"));
}
catch (java.net.MalformedURLException x)
{
// This should never happen.
}
URL[] urls = new URL[p.size()];
p.copyInto (urls);