OSDN Git Service

2007-02-09 Jakub Jelinek <jakub@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index 4e6e238..39a5902 100644 (file)
@@ -1,3 +1,371 @@
+2007-02-09  Jakub Jelinek  <jakub@redhat.com>
+
+       * java/util/VMTimeZone.java: Rewrite to handle both the old
+       'TZif\0' format and the new one.
+       
+2007-02-10  Andrew Haley  <aph@redhat.com>
+
+       PR java/30742
+       * gnu/classpath/natVMStackWalker.cc (GET_CALLING_CLASS): New.
+       (getCallingClass): Call GET_CALLING_CLASS.
+       (getCallingClassLoader): Likewise.
+
+2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * configure: Rebuilt.
+       * configure.ac (GCJH): Reverted second part of patch of 2006-12-20.
+
+2007-02-10  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (BUILD_ECJ1): Unify the command for renaming ecjx to
+       the host's ecj1 executable.
+
+2007-02-09  Richard Henderson  <rth@redhat.com>
+
+       * sysdep/alpha/locks.h (read_barrier): New.
+
+2007-02-09  Keith Seitz  <keiths@redhat.com>
+
+       * gnu/classpath/jdwp/VMVirtualMachine.java
+       (_stepping_threads): New member.
+       * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
+       Regenerated.
+       * gnu/classpath/jdwp/VMVirtualMachine.h:
+       Regenerated.
+       * gnu/claspath/jdwp/natVMVirtualMachine.cc
+       (get_request_step_filter): New function.
+       (DISABLE_EVENT): New macro.
+       (initialize): Initialize _stepping_threads.
+       (registerEvent): Implement EVENT_SINGLE_STEP.
+       (unregisterEvent): Likewise.
+
+2007-02-08  Keith Seitz  <keiths@redhat.com>
+
+       * sources.am: Regenerate.
+       * Makefile.in: Regenerate.
+       * testsuite/Makefile.in: Regenerate.
+       * gcj/Makefile.in: Regenerate.
+       * include/Makefile.in: Regenerate.
+
+       * classpath/lib/javax/management/MBeanServerFactory.class:
+       Regenerate.
+
+2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
+
+       * classpath/gnu/classpath/jdwp/processor/
+       StackFrameCommandSet.java (executeGetValues): Pass jlong instead
+       of ByteBuffer.
+       (executeSetValues): Ditto.
+       (executeThisObject): Ditto.
+       * classpath/gnu/classpath/jdwp/processor/
+       StackFrameCommandSet.class: Rebuilt.
+       * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
+       Rebuilt.
+       * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
+       * classpath/lib/gnu/classpath/jdwp/exception/
+       InvalidFrameException.java: New file.
+       * gnu/classpath/jdwp/VMFrame.java: Added field for thread of
+       frame.
+       (Constructor): New method.
+       * gnu/classpath/jdwp/VMFrame.h: Regenerated.
+       * gnu/classpath/jdwp/VMVirtualMachine.java
+       (getFrame): Changed ByteBuffer to jlong.
+       * gnu/classpath/jdwp/natVMVirtualMachine.cc
+       (getFrame): Implement.
+       * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
+
+2007-02-08  Kyle Galloway  <kgallowa@redhat.com>
+
+       * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added
+       to hold "this" pointer for frame.
+       (_Jv_InterpFrame::get_this_ptr): New method.
+       * interpret-run.cc: Copy the "this" pointer into obj_ptr.
+
+2007-02-07  Keith Seitz  <keiths@redhat.com>
+
+       * include/java-interp.h (_Jv_Frame::depth):
+       New function.
+       * jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
+
+2007-02-07  Kyle Galloway  <kgallowa@redhat.com>
+
+       * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
+       (_Jv_JVMTI_GetMaxLocals): New method.
+       * include/java-interp.h
+       (_Jv_InterpMethod::get_max_locals): New method.
+
+2007-02-01 Marco Trudel <mtrudel@gmx.ch>
+
+       * jni.cc (_Jv_JNI_DeleteWeakGlobalRef): Check for NULL objects.
+
+2007-02-07  Tom Tromey  <tromey@redhat.com>
+
+       * testsuite/libjava.jni/init.c: New file.
+       * testsuite/libjava.jni/init.java: New file.
+       * testsuite/libjava.jni/init.out: New file.
+       * testsuite/libjava.jni/init.jar: New file.
+       * testsuite/libjava.jni/init.h: New file.
+       * testsuite/libjava.jni/init$NativeClass.h: New file.
+
+2007-02-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libgomp/28468
+       * configure: Regenerate.
+
+2007-02-06  Andrew Haley  <aph@redhat.com>
+
+       * scripts/makemake.tcl (emit_bc_rule): Set the source filename.
+       * sources.am: Rebuild.
+
+2007-02-05  Keith Seitz  <keiths@redhat.com>
+
+       * jvmti.cc (_envListLock): Change type to
+       ReentrantReadWriteLock.
+       (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
+       lock.
+       (check_enabled_event): Likewise.
+       (_Jv_GetJVMTIEnv): Likewise.
+       (_Jv_JVMTI_Init): Likewise.
+       (_Jv_JVMTI_PostEvent): Likewise. 
+
+2007-02-05  Keith Seitz  <keiths@redhat.com>
+
+       * gnu/classpath/jdwp/natVMVirtualMachine.cc
+       (registerEvent): Implement EVENT_BREAKPOINT.
+       (unregisterEvent): Likewise.
+       (get_request_location): New function.
+
+2007-02-05  Matthias Klose  <doko@debian.org>
+
+       testsuite/Makefile.am (compile-tests): Fix typo.
+       testsuite/Makefile.in: Regenerate.
+
+2007-02-02  Kyle Galloway  <kgallowa@redhat.com>
+
+       * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount):
+       Implment.
+
+2007-02-02  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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.
+
+2007-02-01  David Daney  <ddaney@avtrex.com>
+
+       * scripts/makemake.tcl: Replace gnu/xml build with build of all
+       its subpackages.
+       * sources.am: Regenerate.
+       * Makefile.in: Regenerate.
+
+2007-02-01  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/ClassLoader.java (getResources): No longer final.
+
+2007-02-01  Tom Tromey  <tromey@redhat.com>
+
+       * 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>.
+
+2007-02-01  Tom Tromey  <tromey@redhat.com>
+
+       * 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.
+
+2007-01-31  Keith Seitz  <keiths@redhat.com>
+
+       * 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.
+
+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.
+
+2007-01-31  Tom Tromey  <tromey@redhat.com>
+
+       * scripts.am, Makefile.in: Rebuilt.
+       * scripts/makemake.tcl (gnu/javax/swing/text/html/parser): Build
+       as 'ordinary'.
+       (emit_ordinary_rule): New proc.
+
+2007-01-31  Keith Seitz  <keiths@redhat.com>
+
+       * testsuite/libjava.jvmti/getmethodname.h: New file.
+       * testsuite/libjava.jvmti/getmethodname.jar: New file.
+
+2007-01-31  Andrew Haley  <aph@redhat.com>
+
+       * prims.cc (_Jv_Abort): fflush (stderr).
+       * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
+
+2007-01-31  Tom Tromey  <tromey@redhat.com>
+
+       * configure, Makefile.in: Rebuilt.
+       * configure.ac (JAR): Check for -@ feature.
+       * Makefile.am (libgcj-$(gcc_version).jar): Use find -prune.
+
+2007-01-31  Tom Tromey  <tromey@redhat.com>
+
+       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.
+
+2007-01-30  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (libgcj-$(gcc_version).jar): Rewrote.
+
+2007-01-30  Andreas Tobler  <a.tobler@schweiz.org>
+
+       * testsuite/libjava.jvmti/natevents.cc (FieldModificationCB): Use a
+       cast to print it right.
+
+2007-01-29  Kaloian Doganov  <kaloian@doganov.org>
+
+       PR libgcj/30600:
+       * gnu/gcj/convert/BytesToCharsetAdaptor.java (read): Fix call to
+       'limit'.
+
+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. 
+
+2007-01-29  Tom Tromey  <tromey@redhat.com>
+
+       * 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.
+
+2007-01-29  Tom Tromey  <tromey@redhat.com>
+
+       * 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.
+
+2007-01-29  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (interpret.lo): New target.  Add -fwrap to
+       AM_CXXFLAGS.
+
+2007-01-29  Keith Seitz  <keiths@redhat.com>
+
+       * 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.
+2007-01-28  Michele Sandri  <gpointorama@gmail.com>
+
+       * gnu/java/nio/channels/natFileChannelWin32.cc
+       (lock): Implemented.
+       (unlock): Implemented.
+
+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.
+
 2007-01-27  Keith Seitz  <keiths@redhat.com>
 
        * gnu/classpath/jdwp/natVMVirtualMachine.cc
        * Makefile.in: Rebuilt.
        * testsuite/Makefile.in: Rebuilt.
 
+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.
+
 2007-01-26  Tom Tromey  <tromey@redhat.com>
 
        * Updated headers.
 
 2007-01-24  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.
-        
+       * 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.
+
 2007-01-24  Keith Seitz  <keiths@redhat.com>
 
        * link.cc (_Jv_Linker::wait_for_state): Add JVMTI