mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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:
committed by
Anthony Green
parent
f2767a670e
commit
a11e2c2279
@@ -339,6 +339,10 @@ public final class URL implements Serializable
|
||||
// If a non-default factory has been set, use it to find the protocol.
|
||||
if (factory != null)
|
||||
handler = factory.createURLStreamHandler(protocol);
|
||||
else if (protocol.equals ("core"))
|
||||
{
|
||||
handler = new gnu.gcj.protocol.core.Handler ();
|
||||
}
|
||||
else if (protocol.equals ("file"))
|
||||
{
|
||||
// This is an interesting case. It's tempting to think that we
|
||||
|
||||
Reference in New Issue
Block a user