Commit d65b78c9 by Tom Tromey Committed by Tom Tromey

FirstThread.java (Kcert, [...]): New static final fields.

	* gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
	New static final fields.

From-SVN: r38200
parent 9502066f
2000-12-11 Tom Tromey <tromey@redhat.com> 2000-12-11 Tom Tromey <tromey@redhat.com>
* gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
New static final fields.
* scripts/classes.pl (scan): Skip lines with leading `*'. * scripts/classes.pl (scan): Skip lines with leading `*'.
Fix for PR libgcj/378. Fix for PR libgcj/378.
......
// FirstThread.java - Implementation of very first thread. // 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. This file is part of libgcj.
...@@ -74,4 +74,13 @@ final class FirstThread extends Thread ...@@ -74,4 +74,13 @@ final class FirstThread extends Thread
private Class klass; private Class klass;
private String klass_name; private String klass_name;
private Object args; 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;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment