summaryrefslogtreecommitdiffstats
path: root/libjava/java
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-06 22:32:54 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-06 22:32:54 +0000
commitdf1f11433357c40c4ccbbcea5fa119a441f14ca6 (patch)
treece727c113b87b1cdaa86ced6af1018bb91186e15 /libjava/java
parent862c1e2e1e04da36385052f1857661456657ad0d (diff)
downloadppe42-gcc-df1f11433357c40c4ccbbcea5fa119a441f14ca6.tar.gz
ppe42-gcc-df1f11433357c40c4ccbbcea5fa119a441f14ca6.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45450 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/net/URL.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java
index 25837325fc0..25291fad892 100644
--- a/libjava/java/net/URL.java
+++ b/libjava/java/net/URL.java
@@ -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
OpenPOWER on IntegriCloud