aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2005-03-29natRuntime.cc (insertSystemProperties): Set gnu.gcj.runtime.endorsed.dirs.Tom Tromey1-0/+67
libjava: * java/lang/natRuntime.cc (insertSystemProperties): Set gnu.gcj.runtime.endorsed.dirs. * Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Added HelperClassLoader.java. (AM_CXXFLAGS): Define GCJ_ENDORSED_DIRS. * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Extends HelperClassLoader. (init): Use addDirectoriesFromProperty. * gnu/gcj/runtime/BootClassLoader.java (BootClassLoader): Extends HelperClassLoader. Use addDirectoriesFromProperty. Handle gnu.gcj.runtime.endorsed.dirs. * gnu/gcj/runtime/HelperClassLoader.java: New file. gcc/java: * gcj.texi (libgcj Runtime Properties): Document gnu.gcj.runtime.endorsed.dirs. From-SVN: r97212
2005-03-29Makefile.am (GCJ_WITH_FLAGS): Add "-fclasspath=".Ian Lance Taylor5-4/+12
* external/sax/Makefile.am (GCJ_WITH_FLAGS): Add "-fclasspath=". * external/sax/Makefile.in: Rebuild. * external/w3c_dom/Makefile.am (GCJ_WITH_FLAGS): Add "-fclasspath=". * external/w3c_dom/Makefile.in: Rebuild. From-SVN: r97210
2005-03-29natRuntime.cc (insertSystemProperties): Set gnu.gcj.runtime.endorsed.dirs.Tom Tromey6-74/+41
libjava: * java/lang/natRuntime.cc (insertSystemProperties): Set gnu.gcj.runtime.endorsed.dirs. * Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Added HelperClassLoader.java. (AM_CXXFLAGS): Define GCJ_ENDORSED_DIRS. * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Extends HelperClassLoader. (init): Use addDirectoriesFromProperty. * gnu/gcj/runtime/BootClassLoader.java (BootClassLoader): Extends HelperClassLoader. Use addDirectoriesFromProperty. Handle gnu.gcj.runtime.endorsed.dirs. * gnu/gcj/runtime/HelperClassLoader.java: New file. gcc/java: * gcj.texi (libgcj Runtime Properties): Document gnu.gcj.runtime.endorsed.dirs. From-SVN: r97207
2005-03-29[multiple changes]Tom Tromey6-6232/+7295
2005-03-26 Chris Burdess <dog@gnu.org> * gnu/xml/dom/DomNode.java (notifyNode): grow listener array as required. 2005-03-13 Michael Koch <konqueror@gmx.de> * gnu/xml/aelfred2/XmlParser.java: Fixed typo. 2005-03-11 Chris Burdess <dog@gnu.org> * gnu/xml/aelfred2/SAXDriver.java: Corrected bug handling URI warnings. 2005-02-27 Chris Burdess <dog@gnu.org> * gnu/xml/aelfred2/JAXPFactory.java, gnu/xml/aelfred2/SAXDriver.java, gnu/xml/aelfred2/XmlParser.java, gnu/xml/aelfred2/XmlReader.java: Applied GNU Classpath source code formatting conventions. Replaced arrays of Object with struct-like classes for easier maintainability. Made SAXDriver.stringInterning package private to allow access from XmlParser inside the loop without a method call overhead. 2005-03-11 Chris Burdess <dog@gnu.org> * gnu/xml/aelfred2/SAXDriver.java: Corrected bug handling URI warnings. From-SVN: r97200
2005-03-28configure.ac: Revert 2005-03-25's patch.Alexandre Oliva7-20/+29
* configure.ac: Revert 2005-03-25's patch. Propagate MULTIlib settings to sub Makefiles. (GCJH, ZIP): Prefix with top_builddir. * configure: Rebuild. * external/w3c_dom/Makefile.am (MULTIBUILDTOP): Don't override. * external/w3c_dom/Makefile.in: Rebuild. * external/sax/Makefile.am (MULTIBUILDTOP): Don't override. * external/sax/Makefile.in: Rebuild. From-SVN: r97139
2005-03-28jni.exp (gcj_jni_invocation_test_one): Add libsocket to the libraries to ↵Eric Botcazou2-0/+10
link for Solaris. * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add libsocket to the libraries to link for Solaris. From-SVN: r97130
2005-03-28boehm.cc (_Jv_MarkObj): Don't follow null pointer to static field...Per Bothner2-2/+9
* boehm.cc (_Jv_MarkObj): Don't follow null pointer to static field, which can happen if class is JV_STATE_LOADED but not JV_STATE_PREPARED. From-SVN: r97128
2005-03-27Makefile.am (classes.stamp): Add gnu/gcj/tools/gcj_dbtool/Main.java to fix a ↵Andreas Tobler3-4/+10
ONESTEP fallout. 2005-03-27 Andreas Tobler <a.tobler@schweiz.ch> * Makefile.am (classes.stamp): Add gnu/gcj/tools/gcj_dbtool/Main.java to fix a ONESTEP fallout. * Makefile.in: Regenerate. From-SVN: r97115
2005-03-27configure.ac: Fix ZIP and GCJH at configure time to absolute paths like we ↵Mike Stump3-4/+16
do for the compiler... * configure.ac: Fix ZIP and GCJH at configure time to absolute paths like we do for the compiler, as we use it in external/sax and it doesn't get MULTIBUILDTOP right when multilibing. From-SVN: r97091
2005-03-25Missed from last commitAnthony Green1-0/+24
From-SVN: r97029
2005-03-25From libjava...Anthony Green4-9/+42
2005-03-24 Anthony Green <green@redhat.com> * gnu/gcj/tools/gcj_dbtool/Main.java: Accept libdir argument with -p option. (usage): Add [LIBDIR] to help output. * gnu/gcj/tools/gcj_dbtool/natMain.cc: New file. * Makefile.am (AM_CXXFLAGS): Define LIBGCJ_DEFAULT_DATABASE_PATH_TAIL. (db_pathtail): New macro. From gcc/java... 2005-03-24 Anthony Green <green@redhat.com> * gcj.texi (Invoking gcj-dbtool): Document new LIBDIR option to 'gcj-dbtool -p'. From-SVN: r97028
2005-03-24BootClassLoader.java (BootClassLoader): Don't add sax and w3c libraries.Tom Tromey8-105/+60
* gnu/gcj/runtime/BootClassLoader.java (BootClassLoader): Don't add sax and w3c libraries. * Makefile.am (libgij_la_LIBADD): Added libsax-gcj.la and libw3c-gcj.la. * external/w3c_dom/Makefile.in: Rebuilt. * external/w3c_dom/Makefile.am (libw3c_gcj_la_GCJFLAGS): Include AM_GCJFLAGS. (libw3c_gcj_la_LDFLAGS): New variable. (noinst_LTLIBRARIES): Renamed. * external/sax/Makefile.in: Rebuilt. * external/sax/Makefile.am (libsax_gcj_la_GCJFLAGS): Include AM_GCJFLAGS. (libsax_gcj_la_LDFLAGS): New variable. (noinst_LTLIBRARIES): Renamed. From-SVN: r97004
2005-03-24Reverted erroneous commitTom Tromey4-7257/+6227
From-SVN: r96966
2005-03-24Makefile.in: Rebuilt.Tom Tromey24-10557/+8359
* Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Define TOOLEXECLIBDIR. (libgcj0_convenience_la_SOURCES): Don't include gnu_xml_source_files. (libgcj0_convenience_la_LIBADD): New variable. (libgcj_la_LIBADD): Don't include sax or w3c_dom. (all_java_source_files): javax_imageio_source_files, javax_xml_source_files, and gnu_java_beans_source_files. ($(gnu_xml_source_files:.java=.lo)): Removed target. (gnu-xml.lo): New target. (javax-imageio.lo): Likewise. (javax-xml.lo): Likewise. (gnu-java-beans.lo): Likewise. (gnu_java_beans_source_files): New variable. (javax_imageio_source_files): Likewise. (javax_xml_source_files): Likewise. (javax_source_files): Moved files to other variable. (awt_java_source_files): Likewise. (ordinary_java_source_files): Added BootClassLoader.java. * java/lang/natVMClassLoader.cc (defineClass): Use boot loader, not system class loader. (initBootLoader): New method. (loadClass): Search bootLoader. * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use boot loader, not system class loader. (_Jv_UnregisterInitiatingLoader): Likewise. (_Jv_FindClass): Likewise. Ensure entries in bootstrap_class_list are unique. * java/lang/natClass.cc (getClassLoader): Don't special case system class loader. * java/lang/VMClassLoader.java (bootLoader): New field. (getResource): Use bootLoader. (getResources): Likewise. (initBootLoader): Declare. * gnu/gcj/runtime/BootClassLoader.java: New file. * external/sax/org/xml/sax/helpers/NamespaceSupport.java (EMPTY_ENUMERATION): Now package-private. * external/w3c_com/Makefile.in: Rebuilt. * external/w3c_com/Makefile.am (MULTIBUILDTOP): New variable. (w3c.jar): New target. (classes.stamp): Updated. (toolexeclib_LTLIBRARIES): Renamed from noinst_LTLIBRARIES. Changed name of library. (libw3c_gcj_la_SOURCES): New variable. (libw3c_gcj_la_GCJFLAGS): Likewise. (source_files): Renamed from lib3c_convenience_la_SOURCES. * external/sax/Makefile.in: Rebuilt. * external/sax/Makefile.am (MULTIBUILDTOP): New variable. (sax.jar): New target. (classes.stamp): Updated. (toolexeclib_LTLIBRARIES): Renamed from noinst_LTLIBRARIES. Changed name of library. (libsax_gcj_la_SOURCES): New variable. (libsax_gcj_la_GCJFLAGS): Likewise. (source_files): Renamed from libsax_convenience_la_SOURCES. * stacktrace.cc (non_system_trace_fn): Don't look at system class loader. * prims.cc (_Jv_CreateJavaVM): Initialize the bootstrap class loader. (_Jv_RunMain): Handle case where 'runtime' is NULL at exit. From-SVN: r96960
2005-03-23PR libgcj/2641, PR libgcj/9854, PR libgcj/14892, PR libgcj/18083,Sven de Marothy4-22/+54
2005-03-23 Sven de Marothy <sven@physto.se> PR libgcj/2641, PR libgcj/9854, PR libgcj/14892, PR libgcj/18083, PR libgcj/11085: * java/util/Calendar.java (set): Use starting day of week when one is needed if none is given. * java/text/SimpleDateFormat.java (parse): Handle 1-12 and 1-24 timestamps correctly. * java/util/GregorianCalendar.java (computeTime, computeFields): HOUR should be in 0-11 format. (nonLeniencyCheck): Adjust leniency checking to that fact. (getLinearDay): Should be private. From-SVN: r96951
2005-03-23jvm.h (GCJ_40_BC_ABI_VERSION): New define.Tom Tromey2-4/+12
libjava: * include/jvm.h (GCJ_40_BC_ABI_VERSION): New define. (_Jv_CheckABIVersion): Use it. gcc/java: * decl.c (GCJ_CURRENT_BC_ABI_VERSION): New define. (parse_version): Use it. From-SVN: r96948
2005-03-22* stacktrace.cc: Delete unused _Jv_FindCallingClassState.Mike Stump2-5/+2
From-SVN: r96891
2005-03-22posix.h: .dylib is used on all Apple MACH platforms.Mike Stump3-2/+7
* include/posix.h: .dylib is used on all Apple MACH platforms. * java/lang/ieeefp.h: ppc64 is also __IEEE_BIG_ENDIAN. From-SVN: r96889
2005-03-22* gnu/gcj/tools/gcj_dbtool/Main.java (usage): Fixed output.Tom Tromey2-2/+6
From-SVN: r96879
2005-03-21VMCompiler.java (static block): Also catch BufferUnderflowException.Tom Tromey2-0/+9
* java/lang/VMCompiler.java (static block): Also catch BufferUnderflowException. From-SVN: r96832
2005-03-21gxx-include-dir.m4: In all substitutions, leave $(gcc_version) to be ↵Zack Weinberg18-236/+222
expanded by the Makefile. config: * gxx-include-dir.m4: In all substitutions, leave $(gcc_version) to be expanded by the Makefile. libjava: * configure.ac: Do not invoke TL_AC_GCC_VERSION. Do not set tool_include_dir. In all substitutions, leave $(gcc_version) to be expanded by the Makefile. * aclocal.m4, configure: Regenerate. * Makefile.am: Set gcc_version. Replace all uses of @gcc_version@ with $(gcc_version). * external/Makefile.am, external/sax/Makefile.am * external/w3c_dom/Makefile.am, gcj/Makefile.am * testsuite/Makefile.am: Set gcc_version. * include/Makefile.am: Set gcc_version and tool_include_dir. * Makefile.in, external/Makefile.in, external/sax/Makefile.in * external/w3c_dom/Makefile.in, gcj/Makefile.in, include/Makefile.in * testsuite/Makefile.in: Regenerate. From-SVN: r96825
2005-03-21natVMSecurityManager.cc (getClassContext): Add new arg: klass.Andrew Haley8-22/+45
2005-03-17 Andrew Haley <aph@redhat.com> * java/lang/natVMSecurityManager.cc (getClassContext): Add new arg: klass. Pass klass to _Jv_StackTrace::GetClassContext(). * java/lang/ClassLoader.java (getParent): Pass class to VMSecurityManager.getClassContext() (getSystemClassLoader): Likewise. * java/lang/Package.java (getPackage): Likewise. (getPackages): Likewise. * java/lang/SecurityManager.java (getClassContext): Likewise. (currentClassLoader): Likewise. * java/lang/VMSecurityManager.java: (getClassContext): Likewise. (currentClassLoader) Add new arg: caller. Pass caller to VMSecurityManager.getClassContext. * stacktrace.cc (GetClassContext): Correct calculation of jframe_count. * boehm.cc (_Jv_MarkObj): (_Jv_MarkObj): Mark im->source_file_name. From-SVN: r96803
2005-03-17boehm.cc (_Jv_MarkObj): Mark the interpreted method line_table.Andrew Haley2-0/+6
2005-03-16 Andrew Haley <aph@redhat.com> * boehm.cc (_Jv_MarkObj): Mark the interpreted method line_table. From-SVN: r96596
2005-03-17Makefile.am (gtk_c_source_files): Remove jni/classpath/jcl.c, ↵Thomas Fitzsimmons16-1413/+207
jni/classpath/jnilink.c, jni/classpath/primlib.c. 2005-03-16 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (gtk_c_source_files): Remove jni/classpath/jcl.c, jni/classpath/jnilink.c, jni/classpath/primlib.c. (lib_gnu_java_awt_peer_gtk_la_SOURCES): jni/classpath/jcl.h, jni/classpath/jnilink.h, jni/classpath/primlib.h. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * external/Makefile.in: Regenerate. * external/sax/Makefile.in: Regenerate. * external/w3c_dom/Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. * jni/classpath/jcl.h: Remove. * jni/classpath/jcl.c: Likewise. * jni/classpath/jnilink.h: Remove. * jni/classpath/jnilink.c: Likewise. * jni/classpath/primlib.h: Remove. * jni/classpath/primlib.c: Likewise. From-SVN: r96590
2005-03-17link.cc (ensure_class_linked): Removed #ifdef.Tom Tromey5-19/+24
* link.cc (ensure_class_linked): Removed #ifdef. (print_class_loaded): Likewise. (wait_for_state): Likewise. * java/lang/Class.h (_Jv_IsInterpretedClass): Always declare. * include/jvm.h (_Jv_IsInterpretedClass): Moved from... * include/java-interp.h: ... here. From-SVN: r96589
2005-03-16MainThread.java (run): Load main class using system class loader.Tom Tromey2-2/+13
* gnu/java/lang/MainThread.java (run): Load main class using system class loader. From-SVN: r96582
2005-03-16jni.exp (gcj_jni_invocation_test_one): Add lgcc_s to the libraries to link ↵Andreas Tobler2-2/+9
for Darwin. 2005-03-16 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add lgcc_s to the libraries to link for Darwin. From-SVN: r96579
2005-03-16stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Protect interpreter-specific ↵Andreas Tobler4-1/+25
code with #ifdef INTERPRETER. 2005-03-15 Andreas Tobler <a.tobler@schweiz.ch> * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Protect interpreter-specific code with #ifdef INTERPRETER. (_Jv_StackTrace::getLineNumberForFrame): Likewise. (_Jv_StackTrace::FillInFrameInfo): Likewise. (_Jv_StackTrace::non_system_trace_fn): Likewise. * include/java-stack.h (struct _Jv_InterpFrameInfo): Protect with #ifdef INTERPRETER. Also protect declarations that use it. * java/lang/Class.h: Move _Jv_StackTrace friend declaration outside #ifdef INTERPRETER block. From-SVN: r96571
2005-03-15re PR libgcj/20251 (libgcj configured with --enable-gtk-cairo fails on ↵Jakub Jelinek3-2/+9
installation) PR libgcj/20251 * Makefile.am (libjawt_la_LIBADD): Add -L$(here)/.libs. * Makefile.in: Rebuilt. From-SVN: r96533
2005-03-15natPlainSocketImplPosix.cc (read_helper): Handle count == 0 case.David Daney3-7/+36
2005-03-15 David Daney <ddaney@avtrex.com> * gnu/java/net/natPlainSocketImplPosix.cc (read_helper): Handle count == 0 case. 2005-03-15 David Daney <ddaney@avtrex.com> * java/io/BufferedInputStream.java (available): Use 'in' instead of 'super' for underlying stream access. (close): Ditto. (read(byte[], int, int)): Ditto. (refill): Ditto. (skip): Call skip on underlying stream when possible. From-SVN: r96516
2005-03-12stacktrace.cc (GetCallerInfo): Return nothing in case of SJLJ_EXCEPTIONS is ↵Andreas Tobler2-1/+6
defined. 2005-03-12 Andreas Tobler <a.tobler@schweiz.ch> * stacktrace.cc (GetCallerInfo): Return nothing in case of SJLJ_EXCEPTIONS is defined. From-SVN: r96340
2005-03-12jacks.xfail: Add XFAILs for new JSR-201 tests.Ranjit Mathew2-0/+10
* testsuite/libjava.jacks/jacks.xfail: Add XFAILs for new JSR-201 tests. From-SVN: r96327
2005-03-11libjava.exp (libjava_init): Use the same target check for Darwin.Andreas Tobler3-8/+30
2005-03-11 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libjava.exp (libjava_init): Use the same target check for Darwin. (libjava_arguments): Likewise. * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Likewise. (gcj_jni_test_one): Likewise. (gcj_jni_invocation_compile_c_to_binary): Likewise. Add flags to keep the Darwin linker quiet. (gcj_jni_invocation_test_one): Use the same target check for Darwin. Add -liconv for Darwin. From-SVN: r96311
2005-03-11Main.java (main): Handle '-p'.Tom Tromey5-16/+94
libjava: * gnu/gcj/tools/gcj_dbtool/Main.java (main): Handle '-p'. (usage): Document '-p'. * Makefile.in: Rebuilt. * Makefile.am (dbexecdir): New variable. (db_name): Likewise. (dbexec_DATA): Likewise. ($(db_name)): New target. (AM_CXXFLAGS): Define LIBGCJ_DEFAULT_DATABASE. * java/lang/natRuntime.cc (insertSystemProperties): Set default system database. gcc/java: * gcj.texi (Invoking gcj-dbtool): Document 'gcj-dbtool -p'. (libgcj Runtime Properties): Document the default .db. From-SVN: r96303
2005-03-11exception.cc: Remove stray MethodRef.h include.Bryce McKinlay10-604/+14
2005-03-10 Bryce McKinlay <mckinlay@redhat.com> * exception.cc: Remove stray MethodRef.h include. * java/lang/natClass.cc: Likewise. * gnu/gcj/runtime/MethodRef.java: Removed. * gnu/gcj/runtime/StackTrace.java, gnu/gcj/runtime/natNameFinder.cc, gnu/gcj/runtime/natStackTrace.cc: Really removed. * java/lang/natRuntime.cc (_load): Remove unsed variable. * Makefile.am (ordinary_java_source_files): Remove MethodRef.java. * Makefile.in: Rebuilt. From-SVN: r96288
2005-03-10Makefile.in: Rebuilt.Tom Tromey3-2/+15
* Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Added MethodRef.java. From-SVN: r96270
2005-03-10SAXEventSink.java: Ignore element declarations if not currently parsing the DTD.Chris Burdess2-0/+12
2005-03-10 Chris Burdess <dog@bluezoo.org> * gnu/xml/dom/ls/SAXEventSink.java: Ignore element declarations if not currently parsing the DTD. From-SVN: r96255
2005-03-10New Stack Trace infrastructure.Bryce McKinlay32-822/+1164
2005-03-10 Bryce McKinlay <mckinlay@redhat.com> New Stack Trace infrastructure. * Makefile.am (libgcj0_convenience_la_SOURCES): Add stacktrace.cc. (gnu/gcj/runtime/StackTrace.lo): Removed. (ordinary_java_source_files): Remove obsolete files. (nat_source_files): Remove obsolete files. Add natVMThrowable.cc. * configure.host (fallback_backtrace_h): Set backtrace header for mingw and cygwin targets. * configure.ac: Make symlink for fallback backtrace headers. * Makefile.in, configure: Rebuilt. * defineclass.cc (_Jv_ClassReader::read_one_code_attribute): Read 'LineNumberTable' attribute. (_Jv_ClassReader::read_one_class_attribute): Read 'SourceFile' attribute. (_Jv_ClassReader::handleCodeAttribute): Initialize method line table fields. * exception.cc: Remove unused include. * interpret.cc (DIRECT_THREADED, insn_slot): Moved to java-interp.h. (SAVE_PC): New macro. Save current PC in the interpreter frame. (NULLCHECK, NULLARRAYCHECK): Use SAVE_PC. (_Jv_InterpMethod::compile): Translate bytecode PC values in the line table to direct threaded instruction values. (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Removed. (_Jv_InterpMethod::run): No longer member function. All callers updated. Remove _Unwind calls. Call SAVE_PC whenever a call is made or where an instruction could throw. (_Jv_InterpMethod::get_source_line): New. Look up source line numbers in line_table. * prims.cc (catch_segv): Construct exception after MAKE_THROW_FRAME. (catch_fpe): Likewise. * stacktrace.cc: New file. Stack trace code now here. * gnu/gcj/runtime/MethodRef.java: * gnu/gcj/runtime/NameFinder.java: Mostly reimplemented. Now simply calls addr2line to look up PC addresses in a given binary or shared library. * gnu/gcj/runtime/StackTrace.java, gnu/gcj/runtime/natNameFinder.cc, gnu/gcj/runtime/natStackTrace.cc: Removed. * gnu/java/lang/MainThread.java (call_main): Add comment warning that this function name is specially recognised by the stack trace code and shouldn't be changed. * include/java-interp.h (DIRECT_THREADED, insn_slot): Moved here. (struct _Jv_LineTableEntry, line_table, line_table_len): New. (_Jv_InterpMethod::run): Update declaration. (_Jv_StackTrace_): New friend. NameFinder and StackTrace no longer friends. (_Jv_InterpFrame): Renamed from _Jv_MethodChain. Add PC field. * include/java-stack.h: New file. Declarations for stack tracing. * include/jvm.h (_Jv_Frame_info): Removed. * java/lang/Class.h: Update friend declarations. * java/lang/VMClassLoader.java (getSystemClassLoader): Simplify exception message. * java/lang/VMThrowable.java (fillInStackTrace): Now native. (getStackTrace): Now native. (data): New RawDataManaged field. * java/lang/natClass.cc: Update includes. (forName): Use _Jv_StackTrace::GetCallingClass for calling-classloader check. (getClassLoader): Likewise. * java/lang/natRuntime.cc: Update includes. (_load): Use _Jv_StackTrace::GetFirstNonSystemClassLoader. * java/lang/natVMSecurityManager.cc: Update includes. (getClassContext): Use _Jv_StackTrace::GetClassContext. * java/lang/natVMThrowable.cc: New file. Native methods for VMThrowable. * java/lang/reflect/natArray.cc: Update includes. (newInstance): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natConstructor.cc: Update includes. (newInstance): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natField.cc: Update includes. (getAddr): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natMethod.cc: Update includes. (invoke): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/util/natResourceBundle.cc: Update includes. (getCallingClassLoader): Use _Jv_StackTrace::GetCallingClass. * java/util/logging/natLogger.cc: Update includes. Use _Jv_StackTrace::GetCallerInfo to get call-site info. * sysdep/generic/backtrace.h: Fallback backtrace code. Stub implementation. * sysdep/i386/backtrace.h: New. Fallback backtrace code. i386 implementation. From-SVN: r96253
2005-03-10re PR java/20312 (No warning on bad method)Ranjit Mathew4-1/+15
* testsuite/libjava.compile/PR20312.java: New file. * testsuite/libjava.compile/PR20312.xfail: Likewise. * testsuite/libjava.jacks/jacks.xfail: Remove 9.2-implicit-15. From-SVN: r96252
2005-03-10FileChannelImpl.java (smallTransferFrom): New.Andrew Haley2-12/+97
2005-03-09 Andrew Haley <aph@redhat.com> * gnu/java/nio/channels/FileChannelImpl.java (smallTransferFrom): New. (smallTransferTo): New. (transferFrom): Loop around smallTransferFrom, copying pageSize bytes each time. (transferTo): Likewise. From-SVN: r96240
2005-03-09re PR libgcj/20389 (BufferedInputStream gets ArrayIndexOutOfBoundsExeception)David Daney3-55/+46
2005-03-09 David Daney <ddaney@avtrex.com> PR libgcj/20389 Merge BufferedInputStream from GNU Classpath. * java/io/BufferedInputStream.java (marktarget): Field removed. (CHUNKSIZE): Field removed. (bufferSize): New field. (BufferedInputStream): Initialize fields. (close): Invalidate mark and buffer indexes. (mark): Rewritten. (read()): Move mark handling code to refill. (read(byte[], int, int)): Ditto. (skip): Ditto and simplify EOF testing. (refill): Rewritten. * java/io/InputStreamReader.java (refill): Removed mark and reset of internal BufferedInputStream. From-SVN: r96217
2005-03-09natVMClassLoader.cc (defineClass): Reference 'systemClassLoader' field directly.Tom Tromey4-6/+16
* java/lang/natVMClassLoader.cc (defineClass): Reference 'systemClassLoader' field directly. * java/lang/natRuntime.cc (_load): Reference 'systemClassLoader' field directly. * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Reference 'systemClassLoader' field directly. (_Jv_UnregisterInitiatingLoader): Likewise. (_Jv_FindClass): Likewise. From-SVN: r96208
2005-03-09fdlibm.h: Merge an AIX define from GNU Classpath.Andreas Tobler3-6/+13
2005-03-09 Andreas Tobler <a.tobler@schweiz.ch> * java/lang/fdlibm.h: Merge an AIX define from GNU Classpath. * java/lang/mprec.h: Remove commented headers. Fix comment to match the file in GNU Classpath style. From-SVN: r96207
2005-03-09URLClassLoader.java (addURLImpl): Reset 'thisString'.Tom Tromey2-15/+26
* java/net/URLClassLoader.java (addURLImpl): Reset 'thisString'. (toString): Synchronize. From-SVN: r96205
2005-03-08[multiple changes]Bryce McKinlay3-2/+5
2005-03-07 Ranjit Mathew <rmathew@hotmail.com> * lang.c (flag_new_verifier): Enable by default, regardless of ABI. 2005-03-08 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.lang/pr13107_2.xfail: Remove xfail. * testsuite/libjava.lang/pr13107_3.xfail: Likewise. From-SVN: r96114
2005-03-07gcj.texi (Invoking gcj-dbtool): Document '-f'.Tom Tromey2-2/+9
gcc/java: * gcj.texi (Invoking gcj-dbtool): Document '-f'. libjava: * gnu/gcj/tools/gcj_dbtool/Main.java (main): Recognize '-f'. (usage): Document '-f'. From-SVN: r96041
2005-03-07VMCompiler.java (md5Digest): New field.Tom Tromey2-2/+32
* java/lang/VMCompiler.java (md5Digest): New field. (compileClass): Clone md5Digest instead of looking up a new one. From-SVN: r96039
2005-03-07re PR java/20215 (gcj does not accept classes with same name fields)Tom Tromey3-24/+37
PR java/20215: * include/jvm.h (_Jv_Linker::find_field_helper): Updated. * link.cc (find_field_helper): Added 'type' argument. (find_field): Updated. From-SVN: r96032
2005-03-07natXAnyEvent.cc (loadNext): Added timeout.Scott Gilbertson5-17/+41
2005-04-07 Scott Gilbertson <scottg@mantatest.com> * gnu/gcj/xlib/natXAnyEvent.cc (loadNext): Added timeout. * gnu/awt/xlib/XCanvasPeer.java (setBackground): Removed throw UnsupportedOperationException, fixed comments. (setFont, setForeground): Fixed comments. * gnu/awt/xlib/XEventLoop.java (postNextEvent): Changed return type to boolean. (getNextEvent): Fixed javadocs. * gnu/awt/xlib/XToolkit.java (interrupted): Removed field. (nativeQueueEmpty): Removed unused code. (iterateNativeQueue): Removed outer loop. From-SVN: r96029
2005-03-06re PR bootstrap/20155 (libgcj build fails with "execvp: /bin/sh: Argument ↵Roger Sayle3-28/+9
list too long") PR libgcj/20155 * Makefile.am (libgcj0_convenience.la): Revert last change. * Makefile.in: Regenerate. From-SVN: r95984