summaryrefslogtreecommitdiff
path: root/libjava
Commit message (Collapse)AuthorAgeFilesLines
* natClass.cc (initializeClass): Re-throw SecurityExceptions.Andrew Haley2007-02-021-1/+9
| | | | | | | | | | | 2007-01-26 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Re-throw SecurityExceptions. * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess. * java/lang/ClassLoader.java: (loadClass): Likewise. From-SVN: r121513
* natVMVirtualMachine.cc (getFrameCount): Implement.Kyle Galloway2007-02-022-2/+13
| | | | | | | | 2007-02-02 Kyle Galloway <kgallowa@redhat.com> * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount): Implement. From-SVN: r121504
* configure.ac (libjava_cv_anon_version_script): New test.Jakub Jelinek2007-02-026-27/+151
| | | | | | | | | | | | | * configure.ac (libjava_cv_anon_version_script): New test. (ANONVERSCRIPT): New AM_CONDITIONAL. * configure: Rebuilt. * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script if ANONVERSCRIPT. * Makefile.in: Rebuilt. (libgcj_la_DEPENDENCIES): Depend on libgcj.ver. * libgcj.ver: New file. From-SVN: r121499
* makemake.tcl: Replace gnu/xml build with build of all its subpackages.David Daney2007-02-024-32/+178
| | | | | | | | | * scripts/makemake.tcl: Replace gnu/xml build with build of all its subpackages. * sources.am: Regenerate. * Makefile.in: Regenerate. From-SVN: r121483
* * java/lang/ClassLoader.java (getResources): No longer final.Tom Tromey2007-02-013-1/+5
| | | | From-SVN: r121475
* LogManager.java (loggers): Genericized.Tom Tromey2007-02-0116-39/+57
| | | | | | | | | | | | | | | | | | | | | | * java/util/logging/LogManager.java (loggers): Genericized. (addLogger): Merged. (findAncestor): Likewise. (getLogger): Likewise. (getLoggerNames): Genericized. (reset): Merged. (getLevelProperty): Likewise. * java/lang/reflect/Method.java (getDeclaringClass): Genericized. * java/lang/reflect/Constructor.java (getParameterTypes): Genericized. (getExceptionTypes): Likewise. (newInstance): Likewise. * java/lang/reflect/Array.java (newInstance): Genericized. * java/lang/Object.java (getClass): Genericized. * java/nio/charset/spi/CharsetProvider.java (charsets): Genericized. * java/text/Collator.java: Implement Comparable<Object>. From-SVN: r121473
* Calendar.java: Implement Comparable<Calendar>.Tom Tromey2007-02-0111-46/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/util/Calendar.java: Implement Comparable<Calendar>. Update comments. (clear): Call complete. (setTimeZone): Call computeTime, computeFields. (compareTo): New method. * java/nio/charset/Charset.java: Implement Comparable<Charset>. (availableCharsets): Genericized. (aliases): Likewise. (compareTo): Changed argument type. * java/lang/ClassLoader.java (loadClass): Genericized. (findClass): Likewise. (defineClass): Likewise. (resolveClass): Likewise. (findSystemClass): Likewise. (setSigners): Likewise. (findLoadedClass): Likewise. (getResources): Likewise. (findResources): Likewise. (getSystemResources): Likewise. (checkInitialized): New method. * java/lang/Class.java (getCanonicalName): New method. From-SVN: r121471
* jvmti-int.h (JVMTI): Declare member "enabled".Keith Seitz2007-02-011-0/+13
| | | | | | | | | | | | | | | * include/jvmti-int.h (JVMTI): Declare member "enabled". * jvmti.cc (JVMTI): Add member "enabled". (_Jv_GetJVMTIEnv): Mark JVMTI enabled. * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled instead of gnu::classpath::jdwp::Jdwp::isDebugging. (_Jv_CompileMethod): If JVMTI is enabled, use run_debug instead of run to compile the method. * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step notification. From-SVN: r121468
* Makefile.in: Rebuilt.Tom Tromey2007-02-013-48/+31
| | | | | | | | * tools/Makefile.in: Rebuilt. * tools/Makefile.am (noinst_SCRIPTS): Renamed from bin_SCRIPTS. (noinst_DATA): Renamed from TOOLS_DATA. From-SVN: r121451
* jvmti-int.h (JVMTI): Declare member "enabled".Keith Seitz2007-01-314-18/+70
| | | | | | | | | | | | | | | * include/jvmti-int.h (JVMTI): Declare member "enabled". * jvmti.cc (JVMTI): Add member "enabled". (_Jv_GetJVMTIEnv): Mark JVMTI enabled. * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled instead of gnu::classpath::jdwp::Jdwp::isDebugging. (_Jv_CompileMethod): If JVMTI is enabled, use run_debug instead of run to compile the method. * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step notification. From-SVN: r121442
* jvmti-interp.exp (gij_jvmti_test_one): Add -shared-libgcc to the cxxflaglist ↵Andreas Tobler2007-01-312-3/+15
| | | | | | | | | | | for Darwin. 2007-01-31 Andreas Tobler <a.tobler@schweiz.org> * testsuite/libjava.jvmti/jvmti-interp.exp (gij_jvmti_test_one): Add -shared-libgcc to the cxxflaglist for Darwin. From-SVN: r121438
* scripts.am, [...]: Rebuilt.Tom Tromey2007-01-314-46/+167
| | | | | | | | | * scripts.am, Makefile.in: Rebuilt. * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build as 'ordinary'. (emit_ordinary_rule): New proc. From-SVN: r121437
* getmethodname.h: New file.Keith Seitz2007-01-313-0/+32
| | | | | | | * testsuite/libjava.jvmti/getmethodname.h: New file. * testsuite/libjava.jvmti/getmethodname.jar: New file. From-SVN: r121436
* prims.cc (_Jv_Abort): fflush (stderr).Andrew Haley2007-01-313-0/+12
| | | | | | | | | 2007-01-31 Andrew Haley <aph@redhat.com> * prims.cc (_Jv_Abort): fflush (stderr). * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort. From-SVN: r121433
* configure, [...]: Rebuilt.Tom Tromey2007-01-315-6/+34
| | | | | | | | * configure, Makefile.in: Rebuilt. * configure.ac (JAR): Check for -@ feature. * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune. From-SVN: r121429
* re PR libgcj/30606 (natVMURLConnection.cc:21: error: 'magic_t' does not name ↵Tom Tromey2007-01-315-6/+90
| | | | | | | | | | | a typet name a type) PR libgcj/30606: * configure, include/config.h.in: Rebuilt. * configure.ac: Check for magic_t in magic.h. * java/net/natVMURLConnection.cc: Use HAVE_MAGIC_T. From-SVN: r121425
* * resource/gnu/classpath/tools/jar/messages.propertiesTom Tromey2007-01-3114-1/+38
| | | | | | | | | | (Main.Stdin): New message. * tools/gnu/classpath/tools/jar/Main.java (initializeParser): Add '-@' option. (readNames): New method. (run): Use it. From-SVN: r121424
* Makefile.in: Rebuilt.Tom Tromey2007-01-303-4/+13
| | | | | | | * Makefile.in: Rebuilt. * Makefile.am (libgcj-$(gcc_version).jar): Rewrote. From-SVN: r121363
* natevents.cc (FieldModificationCB): Use a cast to print it right.Andreas Tobler2007-01-302-1/+6
| | | | | | | | | 2007-01-30 Andreas Tobler <a.tobler@schweiz.org> * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a cast to print it right. From-SVN: r121362
* re PR libgcj/30600 (gnu.gcj.convert.BytesToCharsetAdaptor calculates bad ↵Kaloian Doganov2007-01-303-2/+8
| | | | | | | | | | | | argument for java.nio.Buffer.limit(int)) 2007-01-29 Kaloian Doganov <kaloian@doganov.org> PR libgcj/30600: * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to 'limit'. From-SVN: r121329
* java-interp.h: Added _Jv_Frame class and its two subclasses _Jv_InterpFrame ↵Kyle Galloway2007-01-2915-27/+537
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | and _Jv_NativeFrame. 2007-01-29 Kyle Galloway <kgallowa@redhat.com> * include/java-interp.h: Added _Jv_Frame class and its two subclasses _Jv_InterpFrame and _Jv_NativeFrame. Also moved _Jv_FrameType from java-stack.h. * include/java-stack.h: Removed _Jv_FrameType. * java/lang/Thread.java: Added frame member to hold new composite frame stack. * java/lang/Thread.h: Regenerated. * java/lang/Thread.class: Rebuilt. * jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when calling a JNI method. * jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method. (_Jv_JVMTI_GetFrameCount): New method. * stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame classes. * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test. * testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test. * testsuite/libjava.jvmti/interp/getstacktrace.h: New test. * testsuite/libjava.jvmti/interp/getstacktrace.jar: New test. * testsuite/libjava.jvmti/interp/getstacktrace.out: Output file for test. From-SVN: r121314
* interpret.cc (run_debug): Remove comment.Tom Tromey2007-01-293-87/+114
| | | | | | | | | | | | | | | | | | | | | | | * interpret.cc (run_debug): Remove comment. (STOREA): Reformat. (STOREI): Likewise. (STOREF): Likewise. (STOREL): Likewise. (STORED): Likewise. (POKEI): Likewise. (run_normal_debug): Likewise. (run_synch_object_debug): Likewise. (run_class_debug): Likewise. (run_synch_class_debug): Likewise. (get1s): Likewise. (get1u): Likewise. (get2u): Likewise. (get4): Likewise. (NULLARRAYCHECK): Likewise. (ARRAYBOUNDSCHECK): Likewise. * interpret-run.cc (insn_target) <breakpoint>: Tidy. From-SVN: r121313
* configure, [...]: Rebuilt.Tom Tromey2007-01-298-63/+39
| | | | | | | | | * configure, Makefile.in: Rebuilt. * Makefile.am (bin_SCRIPTS): Never install scripts/jar. * configure.ac (BASH_JAR): Removed conditional. (JAR): Prefer the jar found by AC_CHECK_PROGS. From-SVN: r121301
* Makefile.in: Rebuilt.Tom Tromey2007-01-293-0/+11
| | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (interpret.lo): New target. Add -fwrap to AM_CXXFLAGS. From-SVN: r121299
* Checking in updated class fileTom Tromey2007-01-291-0/+0
| | | | From-SVN: r121298
* jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED): Define.Keith Seitz2007-01-294-27/+42
| | | | | | | | | | | | | | | | | | | | * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED): Define. [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building gcj. All jvmti object types now are defined to be their corresponding java classes. * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from jthread to Thread*. (_Jv_JVMTI_ResumeThread): Likewise. (_Jv_JVMTI_InterruptThread): Likewise. (_Jv_JVMTI_SetEventNotificationMode): Likewise. * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpClassPrepareCB): Likewise. (jdwpThreadEndCB): Likewise. (jdwpThreadStartCB): Likewise. (jdwpVMInitCB): Likewise. From-SVN: r121296
* SecurityManager.java: Load and initialize java.security.Security.Andrew Haley2007-01-292-0/+12
| | | | | | | | | 2007-01-26 Andrew Haley <aph@redhat.com> * java/lang/SecurityManager.java: Load and initialize java.security.Security. From-SVN: r121287
* SecurityManager.java: Load and initialize java.security.Security.Andrew Haley2007-01-291-0/+5
| | | | | | | | | 2007-01-26 Andrew Haley <aph@redhat.com> * java/lang/SecurityManager.java: Load and initialize java.security.Security. From-SVN: r121286
* natClass.cc (initializeClass): Re-throw SecurityExceptions.Andrew Haley2007-01-294-0/+33
| | | | | | | | | | | 2007-01-26 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Re-throw SecurityExceptions. * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess. * java/lang/ClassLoader.java: (loadClass): Likewise. From-SVN: r121285
* 2007-01-28 Michele Sandri <gpointorama@gmail.com>Michele Sandri2007-01-282-7/+47
| | | | | | | | * gnu/java/nio/channels/natFileChannelWin32.cc (lock): Implemented. (unlock): Implemented. From-SVN: r121265
* re PR libgcj/30513 (Bootstrap failure with libgcj on sparc-sun-solaris2.10)Andreas Tobler2007-01-273-8/+43
| | | | | | | | | | | | | 2007-01-27 Andreas Tobler <a.tobler@schweiz.org> PR libgcj/30513 * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to libgcj_flags to undefine 'sun' at compile time. * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit Sparc. (write_barrier): Likewise. From-SVN: r121239
* * gnu/classpath/jdwp/natVMVirtualMachine.ccKeith Seitz2007-01-272-14/+110
| | | | | | | | | | | | | (getAllClassMethods): Move error handling to ... (throw_jvmti_error): ... here. (jdwpClassPrepareCB): New function. (jdwpThreadEndCB): New function. (jdwpThreadStartCB): New function. (jdwpVMDeathCB): New function. (jdwpVMInitCB): Define and enable callbacks for ClassPrepare, ThreadEnd, ThreadStart, and VMDeath. From-SVN: r121233
* Makefile.am (generic_header_files): Add $(inner_nat_headers).Jakub Jelinek2007-01-275-15/+150
| | | | | | | | | | | * Makefile.am (generic_header_files): Add $(inner_nat_headers). * testsuite/Makefile.am (check-dejaGNU): Depend on compile-tests. (MYGCJH): New variable. (compile-tests): New goal. * Makefile.in: Rebuilt. * testsuite/Makefile.in: Rebuilt. From-SVN: r121217
* libjavaTom Tromey2007-01-2641-69/+78
| | | | | | | | | * Updated headers. libjava/classpath * tools/gnu/classpath/tools/javah/FieldHelper.java (print): Print 'volatile' after field type. From-SVN: r121215
* re PR libgcj/29594 (jv-convert with no args NPE)Tom Tromey2007-01-263-9/+13
| | | | | | | | PR libgcj/29594: * gnu/gcj/convert/Convert.java (main): Correctly handle missing input or output encodings. Removed unused local variables. From-SVN: r121197
* jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.Keith Seitz2007-01-254-7/+43
| | | | | | | | | | | * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare. * gnu/classpath/jdwp/natVMVirtualMachine.cc (_Jv_GetJDWP_JVMTIEnv): New function. * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement. (getSignature): Implement. (getModifiers): Implement. From-SVN: r121185
* configure, [...]: Rebuilt.Andrew Haley2007-01-2510-110/+49
| | | | | | | | | | | | | | 2007-01-25 Andrew Haley <aph@redhat.com> * configure, Makefile.in, include/config.h.in: Rebuilt. * Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC). * configure.ac: Don't check for libmagic. * java/net/natVMURLConnection.cc (p_magic_open, p_magic_load, p_magic_close, p_magic_buffer): New globals. (init): Look up 'magic' functions. (guessContentTypeFromBuffer): Updated. From-SVN: r121183
* jvmti.cc (_Jv_JVMTI_GetMethodName): New function.Keith Seitz2007-01-255-1/+236
| | | | | | | | | | * jvmti.cc (_Jv_JVMTI_GetMethodName): New function. (_Jv_JVMTI_Interface): Define GetMethodName. * testsuite/libjava.jvmti/getmethodname.java: New file. * testsuite/libjava.jvmti/natgetmethodname.cc: New file. * testsuite/libjava.jvmti/getmethodname.out: New file. From-SVN: r121179
* libjava.exp (exec_gij): Change [ to { in if statement.Kyle Galloway2007-01-251-4/+6
| | | | | | | | | 2007-01-25 Kyle Galloway <kgallowa@redhat.com> * testsuite/libjava.jvmti/lib/libjava.exp (exec_gij): Change [ to { in if statement. From-SVN: r121174
* Kyle Galloway 2007-01-25 <kgallowa@redhat.com>Kyle Galloway2007-01-251-0/+6
| | | | | | * ChangeLog: Add ChangeLog entry that didn't apply. From-SVN: r121173
* jvmti-interp.exp: New file.Kyle Galloway2007-01-252-0/+202
| | | | | | | | | | 2007-01-25 Kyle Galloway <kgallowa@redhat.com> * libjava/testsuite/libjava.jvmti/jvmti-interp.exp: New file. * libjava/testsuite/libjava.jvmti/interp: New folder. * libjava/testsuite/lib/libjava.exp (exec_gij): New Method. From-SVN: r121172
* link.cc (_Jv_Linker::wait_for_state): Add JVMTI CLASS_PREPARE notification.Keith Seitz2007-01-252-63/+82
| | | | | | | * link.cc (_Jv_Linker::wait_for_state): Add JVMTI CLASS_PREPARE notification. From-SVN: r121157
* interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h...Keith Seitz2007-01-253-3/+39
| | | | | | | | * interpret.cc: Include gnu/gcj/jvmti/Breakpoint.h, gnu/gcj/jvmti/BreakpointManager.h, jvmti.h, and jvmti-int.h * interpret-run.cc: Implement insn_breakpoint. From-SVN: r121155
* prims.cc (_Jv_RunMain): Send JVMTI event notifications for VM_INIT and ↵Keith Seitz2007-01-242-11/+16
| | | | | | | | | VM_DEATH instead of the JDWP... * prims.cc (_Jv_RunMain): Send JVMTI event notifications for VM_INIT and VM_DEATH instead of the JDWP notifications. From-SVN: r121143
* * gnu/classpath/jdwp/natVMVirtualMachine.ccKeith Seitz2007-01-242-2/+37
| | | | | | (getAllClassMethods): Implement. From-SVN: r121142
* natVMStackWalker.cc: Call InitClass everywhere.Andrew Haley2007-01-244-37/+59
| | | | | | | | | | | | | | | 2007-01-24 Andrew Haley <aph@redhat.com> * gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere. (getClassContext) Add a barrier to prevent GetStackWalkerStack() from being sibcalled. 2007-01-24 Andrew Haley <aph@redhat.com> * scripts/makemake.tcl (emit_bc_rule): Set the source filename. * sources.am: Rebuild. From-SVN: r121119
* unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with _uleb128_t ↵Andreas Krebbel2007-01-242-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and _Unwind_SWord with _sleb128_t. 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com> * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t. * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program, uw_frame_state_for, uw_update_context_1): Likewise. * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise. * unwind-pe.h (read_uleb128, read_sleb128, read_encoded_value_with_base): Likewise. * unwind-generic.h: Define _sleb128_t and _uleb128_t types. 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com> * libsupc++/eh_personality.cc (parse_lsda_header, check_exception_spec, get_ttype_entry, empty_exception_spec, PERSONALITY_FUNCTION): Replaced _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t. 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com> * exception.cc (parse_lsda_header, PERSONALITY_FUNCTION): Replaced _Unwind_Word with _uleb128_t and _Unwind_SWord with _sleb128_t. From-SVN: r121116
* Arrays.java (binarySearch): Change comparison order.Marco Trudel2007-01-234-3/+10
| | | | | | | | 2007-01-23 Marco Trudel <mtrudel@gmx.ch> * java/util/Arrays.java (binarySearch): Change comparison order. From-SVN: r121091
* re PR libgcj/30550 (Missing dependencies for ecjx target)H.J. Lu2007-01-233-3/+14
| | | | | | | | | | 2007-01-23 H.J. Lu <hongjiu.lu@intel.com> PR libgcj/30550 * Makefile.am (ecjx_DEPENDENCIES): Add libgcj_bc.la if needed. * Makefile.in: Regenerated. From-SVN: r121086
* * gnu/classpath/jdwp/natVMVirtualMachine.ccKeith Seitz2007-01-232-2/+13
| | | | | | (getClassMethod): Implement. From-SVN: r121078