8sa1-gcc/gcc/java
Andrew Haley 421f9e6091 natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.
2002-12-03  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call
	_Jv_PushClass.
        (_Jv_InitNewClassFields): Set protectionDomain and chain = NULL.
        (_Jv_PopClass): New.
        (_Jv_PushClass): New.
        * java/lang/natClass.cc (forName (jstring)): Use a StackTrace to
        discover the ClassLoader of our caller.
        (_Jv_CheckArrayStore): Don't check that a class is assignment
        compatible with Object.
        * java/lang/natVMTHrowable.cc: Delete.
        * gnu/gcj/runtime/StackTrace.java: New, partly copied from
	java.lang.VMThrowable.
        (StackTrace(), StackTrace(int)): New constructors.
        (classAt, methodAt, update, methodAtAddress): New methods.
        (map): New field.
	* java/lang/VMThrowable.java: Use StackTrace instead of
	natVMTHrowable.
	* java/lang/Class.h (getClassLoaderInternal): New.
        (class Class): Be friendly with _Jv_PopClass and _Jv_PushClass.
        Be friendly with gnu::gcj::runtime::StackTrace.
        (Object.chain): New field.
        * include/java-interp.h (class _Jv_InterpMethod): Be friendly with
        gnu::gcj::runtime::StackTrace.
        * prims.cc (_Jv_NewObjectArray): Use getClassLoaderInternal()
        instead of getClassLoader().
        * verify.cc (class _Jv_BytecodeVerifier): Likewise.
        java::lang::VMThrowable.
        * Makefile.am (core_java_source_files): Add MethodRef.java,
	StackTrace.java.
        (nat_source_files): Remove natVMThrowable.cc; add natStackTrace.cc.
        * Makefile.in: Rebuild.

2002-12-03  Andrew Haley  <aph@redhat.com>

	* class.c (make_class_data): New field, "chain".
	* decl.c (java_init_decl_processing): Likewise.

From-SVN: r59769
2002-12-03 13:50:05 +00:00
..
.cvsignore
boehm.c
buffer.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
buffer.h
builtins.c builtins.def: Make the argument types of abort and exit independent of the front-end. 2002-07-11 01:20:23 +00:00
ChangeLog natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. 2002-12-03 13:50:05 +00:00
chartables.h
check-init.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
class.c natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. 2002-12-03 13:50:05 +00:00
config-lang.in
constants.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
convert.h
decl.c natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. 2002-12-03 13:50:05 +00:00
except.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
expr.c re PR java/7912 (invalid verification error for arrays) 2002-11-18 18:13:36 +00:00
gcj.texi gcj.texi (Invoking gij): Document --showversion. 2002-10-25 03:27:02 +00:00
gen-table.pl
gjavah.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
java-except.h
java-opcodes.h
java-tree.def
java-tree.h re PR java/7912 (invalid verification error for arrays) 2002-11-18 18:13:36 +00:00
javaop.def
javaop.h
jcf-depend.c
jcf-dump.c system.h (GCCBUGURL): Delete. 2002-10-08 17:27:39 +00:00
jcf-io.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
jcf-parse.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
jcf-path.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
jcf-reader.c jcf-reader.c: Don't expand JCF_readu4 inside the expansion of JCF_SKIP. 2002-11-25 09:22:06 -05:00
jcf-write.c jcf-write.c (write_classfile): Remove target class file... 2002-11-22 21:01:24 +00:00
jcf.h
jv-scan.c system.h (GCCBUGURL): Delete. 2002-10-08 17:27:39 +00:00
jvgenmain.c
jvspec.c gcc.c (The Specs Language): Document spec functions. 2002-11-19 04:37:50 +00:00
keyword.gperf
keyword.h
lang-options.h
lang-specs.h
lang.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
lex.c re PR java/7912 (invalid verification error for arrays) 2002-11-18 18:13:36 +00:00
lex.h re PR java/6388 (Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc) 2002-11-06 00:01:01 +00:00
Make-lang.in re PR libgcj/7633 ($(prefix)/share used rather than $(datadir)) 2002-08-22 00:52:20 +00:00
mangle_name.c Index: ChangeLog 2002-08-05 18:46:37 +00:00
mangle.c ChangeLog: Follow spelling conventions. 2002-09-21 02:19:44 +00:00
parse-scan.y Add -fno-assert flag. 2002-09-30 14:57:43 +00:00
parse.h Index: ChangeLog 2002-08-04 22:45:31 +00:00
parse.y For PR java/8740: 2002-12-02 19:04:14 +00:00
typeck.c Index: ChangeLog 2002-08-04 22:45:31 +00:00
verify.c buffer.c: Remove unnecessary casts. 2002-11-18 15:46:34 +00:00
xref.c Index: ChangeLog 2002-08-05 18:46:37 +00:00
xref.h
zextract.c
zipfile.h