gcc/libjava
Tom Tromey ffd94572f4 Runtime.java: Comment fix.
* java/lang/Runtime.java: Comment fix.
	* java/lang/ClassLoader.java (isAncestorOf): New method.
	(getParent): Uncommented security check.  Use isAncestorOf.
	* include/jvm.h (_Jv_CheckAccess): Declare.
	* java/lang/reflect/natConstructor.cc (newInstance): Perform
	access check.
	Include IllegalAccessException.h, ArrayIndexOutOfBoundsException.h.
	* java/lang/reflect/natArray.cc (newInstance): Pass caller's
	class loader to _Jv_GetArrayClass.
	Include ArrayIndexOutOfBoundsException.h.
	* java/lang/reflect/Field.java: Update comment to reflect status.
	(equals): Fixed indentation.
	* java/lang/Class.h (Class): Declare memberAccessCheck, not
	checkMemberAccess.  Make _Jv_CheckAccess a friend.
	* java/lang/Class.java (memberAccessCheck): New method from
	Classpath.
	(checkMemberAccess): Removed.
	(getDeclaredMethod): Use memberAccessCheck.
	(getField): Likewise.
	(getMethod): Likewise.
	* resolve.cc (_Jv_ResolvePoolEntry): Use _Jv_CheckAccess.
	(_Jv_SearchMethodInClass): Likewise.
	* prims.cc (_Jv_CheckAccess): New function.
	* jni.cc (_Jv_JNI_FindClass): Use getClassLoaderInternal.
	(_Jv_JNI_GetAnyFieldID): Likewise.
	* java/lang/natClass.cc (forName): Use getClassLoaderInternal.
	(getClassLoader): Added security check.
	(getConstructor): Call memberAccessCheck.
	(getDeclaredClasses): Likewise.
	(getDeclaredField): Likewise.
	(getDeclaredFields): Likewise.
	(_getConstructors): Likewise.
	(getDeclaredConstructor): Likewise.
	(getDeclaredMethods): Likewise.
	(getFields): Likewise.
	(getMethods): Likewise.
	(newInstance): Likewise.
	(_Jv_MakeVTable): Put method name in exception.
	* java/lang/reflect/natMethod.cc (getType): Use
	getClassLoaderInternal.
	(_Jv_GetTypesFromSignature): Likewise.
	(invoke): Perform access check.
	(_Jv_CallAnyMethodA): Removed old FIXME comments.
	Include ArrayIndexOutOfBoundsException.h.
	* java/lang/reflect/natField.cc (getType): Use
	getClassLoaderInternal.
	(_Jv_CheckFieldAccessibility): Removed.
	(getAddr): Use _Jv_CheckAccess; find caller.
	Include ArrayIndexOutOfBoundsException.h.

From-SVN: r69621
2003-07-21 01:54:06 +00:00
..
doc except.c (choose_personality_routine): Export. 2001-05-13 01:28:18 +00:00
gcj fold-const.c (make_range): Do not access operand 1 for a zero-operand operator. 2003-07-09 08:48:08 +00:00
gnu GtkToolkit.java: Reworked imports. 2003-07-17 20:26:51 +00:00
include Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
java Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
javax MemoryImageSource.java, [...]: New versions from classpath. 2003-07-14 05:33:30 +00:00
jni gnu_java_awt_peer_gtk_GtkScrollBarPeer.c: Handle missing event cases, connect to "value-changed" signal. 2003-07-18 19:27:42 +00:00
libltdl libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on mips*. 2003-04-11 04:20:21 +00:00
org Makefile.am (ordinary_java_source_files): Add org/xml/sax/helpers/NewInstance.java. 2002-12-20 03:49:20 +00:00
scripts javaprims.h: Updated. 2002-12-30 22:42:20 +00:00
sysdep locks.h: Include ia64intrin.h. 2003-03-22 17:38:00 -08:00
testsuite mauve.exp (mauve_find_harness_files): New proc. 2003-07-21 01:09:47 +00:00
COPYING COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes... 2000-12-18 09:12:19 +00:00
ChangeLog Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
ChangeLog-1999 Rotated ChangeLogs 2000-02-17 22:57:30 +00:00
ChangeLog-2001 ChangeLog rotation 2002-01-22 00:20:23 +00:00
HACKING * HACKING: Fix URL for the automake-gcj. 2002-02-08 01:22:47 +00:00
LIBGCJ_LICENSE Add license clarification. 2002-01-22 22:40:42 +00:00
Makefile.am FileChannelImpl.java, [...]: Removed. 2003-07-13 16:53:05 +00:00
Makefile.in FileChannelImpl.java, [...]: Removed. 2003-07-13 16:53:05 +00:00
NEWS Updated the NEWS 2000-02-15 09:35:51 +00:00
README gcj.texi: Change sources.redhat.com reference to gcc.gnu.org. 2001-02-08 01:49:53 +00:00
THANKS THANKS: Fix punctuation, alphabetization. 2002-03-15 22:36:05 +00:00
acconfig.h configure.in: Check for usleep declaration. 2003-07-07 14:11:09 +00:00
acinclude.m4 aclocal.m4, [...]: Rebuilt. 2003-01-31 17:59:00 +00:00
aclocal.m4 glib-2.0.m4: New file. 2003-06-30 23:53:29 +00:00
addr2name.awk Jumbo patch: 2000-05-19 17:55:34 +00:00
boehm.cc boehm.cc (_Jv_MarkObj): Mark the protectionDomain of a class. 2003-01-03 16:34:37 +00:00
configure 2003-07-09 Michael Koch <konqueror@gmx.de> 2003-07-09 07:11:13 +00:00
configure.host configure.host: Set with_libffi_default and libgcj_interpreter to "yes". 2003-05-08 18:53:44 +00:00
configure.in 2003-07-09 Michael Koch <konqueror@gmx.de> 2003-07-09 07:11:13 +00:00
defineclass.cc defineclass.cc (handleMethodsEnd): Precompute code for static method. 2003-01-24 19:58:21 +00:00
exception.cc exception.cc (PERSONALITY_FUNCTION): Clear least-significant-bit of catch_type. 2002-12-23 19:59:31 +00:00
gij.cc natRuntime.cc (_Jv_SetDLLSearchPath): New function. 2002-10-25 03:28:00 +00:00
glib-2.0.m4 glib-2.0.m4: New file. 2003-06-30 23:53:29 +00:00
gtk-2.0.m4 glib-2.0.m4: New file. 2003-06-30 23:53:29 +00:00
interpret.cc defineclass.cc (handleMethodsEnd): Precompute code for static method. 2003-01-24 19:58:21 +00:00
jni.cc Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
libart.m4 Window.java (Window(Window,GraphicsConfiguration)): Don't try to find graphics configuration. 2003-01-31 17:54:14 +00:00
libgcj-test.spec.in * libgcj.spec.in, libgcj-test.spec.in: Revert for now. 2002-03-31 18:24:59 +00:00
libgcj.pc.in 2003-07-09 Michael Koch <konqueror@gmx.de> 2003-07-09 07:11:13 +00:00
libgcj.spec.in configure.host (alpha*-*): Default to -mieee. 2003-02-13 02:51:26 +00:00
libtool-version * libtool-version: Increased `current'. 2002-12-20 01:47:54 +00:00
mauve-libgcj * mauve-libgcj: Don't run CollationElementIterator tests. 2003-07-19 22:19:56 +00:00
no-threads.cc natFinalizerThread.cc: New file. 2001-10-10 22:25:43 +00:00
nogc.cc nogc.cc: Remove warnings. 2002-01-27 22:33:35 +00:00
posix-threads.cc posix-threads.cc: Include <unistd.h> if HAVE_UNISTD_H is defined. 2003-03-02 01:24:40 +00:00
posix.cc posix.cc: added #include<stdio.h> 2003-07-08 04:49:16 +00:00
prims.cc Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
resolve.cc Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
verify.cc * verify.cc: Reverted previous patch. 2003-05-07 01:25:20 +00:00
win32-threads.cc re PR java/9254 (java::lang::Object::wait(), threads-win32.cc returns wrong return codes) 2003-01-28 22:23:36 +00:00
win32.cc [multiple changes] 2003-03-10 19:45:30 +00:00

README

This is libgcj: the runtime library for gcj, the GNU Compiler for Java. 
libgcj provides a partial implementation of the Java Class Libraries.

libgcj is free software.  See the file LIBGCJ_LICENSE for copying permission.


DOCUMENTATION
=============

All documentation, including detailed installation and usage instructions,
can be found on the gcj web pages at this URL:

		http://gcc.gnu.org/java/


REQUIREMENTS
============

libgcj must be built with a compatible version of the gcc compiler. libgcj
releases are usually numbered according to their corresponding gcc release.
For example, if this is "libgcj 2.95.3", you need to build it using "gcc
2.95.3".


QUICK INSTALLATION
==================

  > mkdir build
  > cd build
  > ../libgcj/configure --enable-threads=<THREADS_TYPE> --prefix=<DIR>
  > make
  > make install

where:

<THREADS_TYPE> specifies the threads library to be used by libgcj. Currently 
the possible values are "posix" and "none". This value must be the same as
the value used when configuring gcc itself.

<DIR> specifies the installation directory. This should be the same location 
as where gcc is installed.

Consult the gcj web pages for additional "configure" arguments.

NOTE: libgcj can not be built in the same directory as `configure'. You must 
create a separate build directory. 


BUGS
====

Please submit bug reports via this URL:

	http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc