From 99f3bb19f4bbc8ed3e51b46b82648c8b1d488ade Mon Sep 17 00:00:00 2001 From: tromey Date: Tue, 12 Dec 2000 00:32:02 +0000 Subject: * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar): New static final fields. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38200 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/gnu/gcj/runtime/FirstThread.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libjava/gnu/gcj/runtime/FirstThread.java') diff --git a/libjava/gnu/gcj/runtime/FirstThread.java b/libjava/gnu/gcj/runtime/FirstThread.java index 8cf477fad55..a928c9cdb59 100644 --- a/libjava/gnu/gcj/runtime/FirstThread.java +++ b/libjava/gnu/gcj/runtime/FirstThread.java @@ -1,6 +1,6 @@ // FirstThread.java - Implementation of very first thread. -/* Copyright (C) 1998, 1999 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000 Free Software Foundation This file is part of libgcj. @@ -74,4 +74,13 @@ final class FirstThread extends Thread private Class klass; private String klass_name; private Object args; + + // If the user links statically then we need to ensure that these + // classes are linked in. Otherwise bootstrapping fails. These + // classes are only referred to via Class.forName(), so we add an + // explicit mention of them here. + static final Class Kcert = java.security.cert.Certificate.class; + static final Class Kfile = gnu.gcj.protocol.file.Handler.class; + static final Class Khttp = gnu.gcj.protocol.http.Handler.class; + static final Class Kjar = gnu.gcj.protocol.jar.Handler.class; } -- cgit v1.2.1