1. 31 Mar, 2005 1 commit
  2. 29 Mar, 2005 4 commits
    • natRuntime.cc (insertSystemProperties): Set gnu.gcj.runtime.endorsed.dirs. · 5ef0d62f
      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
      Tom Tromey committed
    • Makefile.am (GCJ_WITH_FLAGS): Add "-fclasspath=". · c5c71319
      	* 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
      Ian Lance Taylor committed
    • natRuntime.cc (insertSystemProperties): Set gnu.gcj.runtime.endorsed.dirs. · dc0a6205
      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
      Tom Tromey committed
    • [multiple changes] · 8d06274e
      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
      Tom Tromey committed
  3. 28 Mar, 2005 3 commits
  4. 27 Mar, 2005 2 commits
  5. 25 Mar, 2005 2 commits
    • Missed from last commit · 0811c49e
      From-SVN: r97029
      Anthony Green committed
    • From libjava... · 206318ea
      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
      Anthony Green committed
  6. 24 Mar, 2005 3 commits
    • BootClassLoader.java (BootClassLoader): Don't add sax and w3c libraries. · b0966710
      	* 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
      Tom Tromey committed
    • Reverted erroneous commit · acdf61e1
      From-SVN: r96966
      Tom Tromey committed
    • Makefile.in: Rebuilt. · aa893047
      	* 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
      Tom Tromey committed
  7. 23 Mar, 2005 2 commits
    • PR libgcj/2641, PR libgcj/9854, PR libgcj/14892, PR libgcj/18083, · 8d3ece5d
      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
      Sven de Marothy committed
    • jvm.h (GCJ_40_BC_ABI_VERSION): New define. · 85c4f26a
      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
      Tom Tromey committed
  8. 22 Mar, 2005 3 commits
  9. 21 Mar, 2005 3 commits
    • VMCompiler.java (static block): Also catch BufferUnderflowException. · 1ccc1c82
      	* java/lang/VMCompiler.java (static block): Also catch
      	BufferUnderflowException.
      
      From-SVN: r96832
      Tom Tromey committed
    • gxx-include-dir.m4: In all substitutions, leave $(gcc_version) to be expanded by the Makefile. · e9bbd9d7
      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
      Zack Weinberg committed
    • natVMSecurityManager.cc (getClassContext): Add new arg: klass. · e5a8980b
      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
      Andrew Haley committed
  10. 17 Mar, 2005 3 commits
    • boehm.cc (_Jv_MarkObj): Mark the interpreted method line_table. · fa41042f
      2005-03-16  Andrew Haley  <aph@redhat.com>
      
              * boehm.cc (_Jv_MarkObj): Mark the interpreted method line_table.
      
      From-SVN: r96596
      Andrew Haley committed
    • Makefile.am (gtk_c_source_files): Remove jni/classpath/jcl.c,… · 5aa9bbc4
      Makefile.am (gtk_c_source_files): Remove jni/classpath/jcl.c, 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
      Thomas Fitzsimmons committed
    • link.cc (ensure_class_linked): Removed #ifdef. · f37a936b
      	* 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
      Tom Tromey committed
  11. 16 Mar, 2005 3 commits
  12. 15 Mar, 2005 2 commits
  13. 12 Mar, 2005 2 commits
  14. 11 Mar, 2005 3 commits
    • libjava.exp (libjava_init): Use the same target check for Darwin. · a96cf763
      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
      Andreas Tobler committed
    • Main.java (main): Handle '-p'. · 558b8548
      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
      Tom Tromey committed
    • exception.cc: Remove stray MethodRef.h include. · c0cbd601
      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
      Bryce McKinlay committed
  15. 10 Mar, 2005 4 commits
    • Makefile.in: Rebuilt. · a2dc2e37
      	* Makefile.in: Rebuilt.
      	* Makefile.am (ordinary_java_source_files): Added MethodRef.java.
      
      From-SVN: r96270
      Tom Tromey committed
    • SAXEventSink.java: Ignore element declarations if not currently parsing the DTD. · b6d27f19
      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
      Chris Burdess committed
    • New Stack Trace infrastructure. · 18744d9b
      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
      Bryce McKinlay committed
    • re PR java/20312 (No warning on bad method) · ca1593fd
      	* 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
      Ranjit Mathew committed