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
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
org
scripts
sysdep
testsuite mauve.exp (mauve_find_harness_files): New proc. 2003-07-21 01:09:47 +00:00
acconfig.h configure.in: Check for usleep declaration. 2003-07-07 14:11:09 +00:00
acinclude.m4
aclocal.m4 glib-2.0.m4: New file. 2003-06-30 23:53:29 +00:00
addr2name.awk
boehm.cc
ChangeLog Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
ChangeLog-1999
ChangeLog-2001
configure 2003-07-09 Michael Koch <konqueror@gmx.de> 2003-07-09 07:11:13 +00:00
configure.host
configure.in 2003-07-09 Michael Koch <konqueror@gmx.de> 2003-07-09 07:11:13 +00:00
COPYING
defineclass.cc
exception.cc
gij.cc
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
HACKING
interpret.cc
jni.cc Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
libart.m4
LIBGCJ_LICENSE
libgcj-test.spec.in
libgcj.pc.in 2003-07-09 Michael Koch <konqueror@gmx.de> 2003-07-09 07:11:13 +00:00
libgcj.spec.in
libtool-version
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
mauve-libgcj * mauve-libgcj: Don't run CollationElementIterator tests. 2003-07-19 22:19:56 +00:00
NEWS
no-threads.cc
nogc.cc
posix-threads.cc
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
README
resolve.cc Runtime.java: Comment fix. 2003-07-21 01:54:06 +00:00
THANKS
verify.cc
win32-threads.cc
win32.cc

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