OSDN Git Service

2005-03-11 Andreas Tobler <a.tobler@schweiz.ch>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index 3ecbf8f..8d10cf1 100644 (file)
@@ -1,3 +1,481 @@
+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.
+
+2005-03-11  Tom Tromey  <tromey@redhat.com>
+
+       * 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.
+
+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.
+
+2005-03-10  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (ordinary_java_source_files): Added MethodRef.java.
+
+2005-03-10  Chris Burdess  <dog@bluezoo.org>
+
+       * gnu/xml/dom/ls/SAXEventSink.java: Ignore element declarations if
+       not currently parsing the DTD.
+
+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.java): 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.
+
+2005-03-10  Ranjit Mathew  <rmathew@hotmail.com>
+
+       * testsuite/libjava.compile/PR20312.java: New file.
+       * testsuite/libjava.compile/PR20312.xfail: Likewise.
+       * testsuite/libjava.jacks/jacks.xfail: Remove 9.2-implicit-15.
+
+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.
+
+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.
+
+2005-03-09  Tom Tromey  <tromey@redhat.com>
+
+       * 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.
+
+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.
+
+2005-03-09  Tom Tromey  <tromey@redhat.com>
+
+       * java/net/URLClassLoader.java (addURLImpl): Reset 'thisString'.
+       (toString): Synchronize.
+
+2005-03-08  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * testsuite/libjava.lang/pr13107_2.xfail: Remove xfail.
+       * testsuite/libjava.lang/pr13107_3.xfail: Likewise.
+
+2005-03-07  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/gcj/tools/gcj_dbtool/Main.java (main): Recognize '-f'.
+       (usage): Document '-f'.
+
+2005-03-07  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/VMCompiler.java (md5Digest): New field.
+       (compileClass): Clone md5Digest instead of looking up a new one.
+
+2005-03-07  Tom Tromey  <tromey@redhat.com>
+
+       PR java/20215:
+       * include/jvm.h (_Jv_Linker::find_field_helper): Updated.
+       * link.cc (find_field_helper): Added 'type' argument.
+       (find_field): Updated.
+
+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.
+
+2005-03-06  Roger Sayle  <roger@eyesopen.com>
+
+       PR libgcj/20155
+       * Makefile.am (libgcj0_convenience.la): Revert last change.
+       * Makefile.in: Regenerate.
+
+2005-03-05  Anthony Green  <green@redhat.com>
+
+       * jni/gtk-peer/gtk_jawt.c (classpath_jawt_get_drawable,
+       classpath_jawt_lock, classpath_jawt_unlock): New functions.
+       * jawt.c (_Jv_AWTLock, _Jv_AWTUnlock): New functions.
+       (_Jv_GetDrawingSurface): Set visualID.
+       (_Jv_FreeDrawingSurfaceInfo): Clear visualID.
+       (JAWT_GetAWT): Set Lock and Unlock.
+       * include/jawt_md.h (struct _JAWT_X11DrawingSurfaceInfo): Add
+       visualID.
+       * include/jawt.h (JAWT_VERSION_1_4, JAWT_LOCK_ERROR,
+       JAWT_LOCK_CLIP_CHANGED, JAWT_LOCK_BOUNDS_CHANGED,
+       JAWT_LOCK_SURFACE_CHANGED): New macros.
+       (struct _JAWT): Add Lock and Unlock.
+
+2005-03-05  Roger Sayle  <roger@eyesopen.com>
+           Alexandre Oliva  <aoliva@redhat.com>
+           Kelley Cook  <kcook@gcc.gnu.org>
+
+       PR libgcj/20155
+       * Makefile.am (libgcj0_convenience.la): New rule to create a file
+       of the object files to link to avoid exceeding the command line
+       length limits on some platforms.
+       (clean-local): Clean up objectlist files.
+       * Makefile.in: Regenerate.
+
+2005-03-05  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * java/lang/dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and
+       spec_case. Initialize pointer mlo.
+
+       * java/lang/strtod.c (_strtod_r): Initialize pointers bb, bd, ds and
+       delta.
+
+       * java/lang/e_asin.c (__ieee754_asin): Initialize variable t.
+
+       * java/lang/e_exp.c (__ieee754_exp): Initialize variables hi, lo
+       and k.
+
+       * java/lang/e_rem_pio2.c (__ieee754_rem_pio2): Initialize
+       uninitialized variable z.
+
+       * gnu/java/net/natPlainDatagramSocketImplPosix.cc (mcastGrp): Ifdef
+       possible unused variables.
+
+       * gnu/java/nio/natPipeImplPosix.cc (init): Remove self.
+
+       * jawt.c: Include <stdlib.h> to fix implict declaration of malloc.
+
+2005-03-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       PR libgcj/20292
+       * testsuite/libjava.jni/jni.exp
+       (gcj_jni_invocation_compile_c_to_binary): Add -I. -I.. to compile
+       flags.
+       (gcj_jni_invocation_test_one): Add -L../.libs to cxx flags.
+
+2005-02-23  David Daney  <ddaney@avtrex.com>
+
+       * configure.host: Don't use -mxgot for MIPS builds.
+
+2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
+
+       PR bootstrap/17383
+       * configure.ac: Call GCC_TOPLEV_SUBDIRS.
+       (COMPPATH): Removed.
+       (ZIP, GCJH): Replace it with ../$(host_subdir).
+       (built_gcc_dir): Add $(host_subdir).
+       * configure: Regenerate.
+       * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
+       gcj/Makefile.in, external/Makefile.in, external/sax/Makefile.in,
+       external/w3c_dom/Makefile.in: Regenerate.
+
+2005-02-24  David Gilbert  <david.gilbert@object-refinery.com>
+
+       * java/awt/font/TextAttribute.java: changed names to lower case;
+       (readResolve): implemented.
+       Added doc comments all over.
+
+2005-02-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       PR libgcj/16923
+       * jni.cc (JNI_CreateJavaVM): Check JNI version.  Cast args to
+       JvVMInitArgs.  Pass args to _Jv_CreateJavaVM and check return
+       value.  Move argument parsing code to prims.cc.
+       * prims.cc (no_properties): Remove.
+       (_Jv_Compiler_Properties): Initialize to NULL.
+       (_Jv_Properties_Count): Initialize to 0.
+       (parse_verbose_args): New function.
+       (parse_init_args): New function.
+       (_Jv_CreateJavaVM): Call parse_init_args.
+       (_Jv_RunMain): Check return value of _Jv_CreateJavaVM.
+       * gcj/cni.h (JvVMOption): New struct.
+       (JvVMInitArgs): Likewise.
+       (JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than
+       void*.
+       * libjava/gcj/javaprims.h (_Jv_VMOption): New struct.
+       (_Jv_VMInitArgs): Likewise.
+       * include/java-props.h (_Jv_Properties_Count): Declare.
+       * java/lang/natRuntime.cc (insertSystemProperties): Use
+       _Jv_Properties_Count in for loop exit condition.
+       * testsuite/libjava.jni/jni.exp
+       (gcj_invocation_compile_c_to_binary): New procedure.
+       (gcj_invocation_test_one): Likewise.
+       (gcj_jni_run): Run JNI invocation API tests.
+       * testsuite/libjava.jni/invocation/PR16923.c,
+       testsuite/libjava.jni/invocation/PR16923.java,
+       testsuite/libjava.jni/invocation/PR16923.out: New test.
+
+2005-02-23  Michael Koch  <konqueror@gmx.de>
+
+       * Makefile.am: Added new file gnu/java/nio/ChannelReader.java.
+       * Makefile.in: Regenerated.
+
+2005-02-23  Robert Schuster  <thebohemian@gmx.net>
+
+       * gnu/java/nio/ChannelReader: Fixed comments.
+
+2005-02-23  Robert Schuster  <thebohemian@gmx.net>
+
+       * java/nio/channels/Channels: Added FIXMEs about
+       stub method implementation.
+       (newReader): Implemented.
+       * gnu/java/nio/ChannelReader: New class.
+
+2005-02-23  Michael Koch  <konqueror@gmx.de>
+
+       * java/text/SimpleDateFormat.java:
+       Removed unused import.
+
+2005-02-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       PR libgcj/20029:
+       * Makefile.am (lib_gnu_java_awt_peer_gtk_la_CFLAGS): Add X_CFLAGS.
+       (lib_gnu_java_awt_peer_gtk_la_LDFLAGS): Add X_LIBS and -lXtst.
+       * Makefile.in: Regenerate.
+       * configure.ac: Check for libXtst.
+       * configure: Regenerate.
+
+2005-02-22  Mark Wielaard  <address@bogus.example.com>
+
+       * java/security/AlgorithmParameterGenerator.java (getInstance):
+       Mention provider when throwing NoSuchProviderException.
+       * java/security/AlgorithmParameters.java (getInstance): Likewise.
+       * java/security/KeyFactory.java (getInstance): Likewise.
+       * java/security/KeyStore.java (getInstance): Likewise.
+       * java/security/SecureRandom.java (getInstance): Likewise.
+       * java/security/cert/CertificateFactory.java (getInstance): Likewise.
+
+2005-02-22  Jeroen Frijters  <jeroen@frijters.net>
+
+       * java/lang/reflect/Proxy.java,
+       java/net/URL.java,
+       java/security/SecureRandom.java,
+       java/util/Timer.java,
+       java/util/prefs/AbstractPreferences.java:
+       Don't catch java.lang.ThreadDeath.
+
+2005-02-22  David Gilbert  <david.gilbert@object-refinery.com>
+
+       * java/awt/font/TransformAttribute.java,
+       (TransformAttribute(AffineTransform)): throw
+       IllegalArgumentException for null transform.
+       (getTransform): return a copy of transform.
+       Added doc comments to all.
+
+2005-02-22  Jeroen Frijters  <jeroen@frijters.net>
+
+       * java/io/Externalizable.java,
+       java/io/Serializable.java
+       (serialVersionUID): Removed.
+       * java/rmi/server/RemoteObject.java,
+       java/rmi/server/UID.java
+       (serialVersionUID): Made private.
+       * java/rmi/server/RemoteRef.java,
+       java/rmi/server/ServerRef.java
+       (serialVersionUID): Set proper value.
+       * java/security/interfaces/DSAPrivateKey.java,
+       java/security/interfaces/DSAPublicKey.java,
+       java/security/interfaces/RSAMultiPrimePrivateCrtKey.java,
+       java/security/interfaces/RSAPrivateCrtKey.java,
+       java/security/interfaces/RSAPrivateKey.java,
+       java/security/interfaces/RSAPublicKey.java,
+       javax/crypto/SecretKey.java
+       (serialVersionUID): Added.
+
+2005-02-22  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/Object.h (_JvObjectPrefix): Declare as extern "Java".
+
+2005-02-22  Tom Tromey  <tromey@redhat.com>
+
+       PR java/20056:
+       * verify.cc (type::EITHER): New constant.
+       (check_field_constant): Use it.
+       (type::compatible): Handle it.
+
+2005-02-22  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/java/security/PolicyFile.java,
+       gnu/java/security/pkcs/PKCS7SignedData.java,
+       gnu/java/security/pkcs/SignerInfo.java:
+       Fixed copyright header.
+
+2005-02-22  Jeroen Frijters  <jeroen@frijters.net>
+
+       * java/beans/PropertyDescriptor.java
+       (PropertyDescriptor,setReadMethod): Set propertyType.
+
+2005-02-22  Michael Koch  <konqueror@gmx.de>
+
+       * java/nio/DirectByteBufferImpl.java
+       (owner): Fixed formatting of javadoc.
+       * java/text/DateFormat.java
+       (getAvailableLocales): Fixed formatting.
+       * java/text/SimpleDateFormat.java:
+       Fixed formatting and import statement order.
+       * java/util/Calendar.java
+       (Calendar): Fixed javadoc to be HTML compliant.
+       * java/util/SimpleTimeZone.java:
+       Fixed javadocs.
+
+2005-02-22  Roman Kennke <roman@ontographics.com>
+
+       * javax/swing/plaf/basic/BasicLookAndFeel.java
+       (initComponentDefaults): Fixed Button left and right margin.
+
+2005-02-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       * java/awt/Robot.java (waitForIdle): Call invokeAndWait on an
+       empty Runnable.
+
+       PR libgcj/17952:
+       * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
+       jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
+       (getWidth): New method.
+       (getHeight): Likewise.
+       (create): Remove width, height and insets parameters.  Move size
+       setup ...
+       (realize_cb): ... here.  New function.
+       (connectSignals): Connect realize_cb.
+       (request_frame_extents): Remove FIXME.  Move
+       postInsetsChangedEvent lookup ...
+       * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c (gtkInit):
+       ... here.  Look up GtkWindowPeer getWidth and getHeight methods.
+       * jni/gtk-peer/gtkpeer.h (postInsetsChangedEventID): Declare
+       jmethodID.
+       (windowGetWidthID): Likewise.
+       (windowGetHeightID): Likewise.
+
 2005-02-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
 
        PR libgcj/19842
        (minimumLayoutSize): Likewise.
        (layoutContainer): Don't try to layout when there is no view.
 
-2005-02-15  Anthony Green  <green@redhat.com>
-
-       * jni/gtk-peer/gtk_jawt.c (classpath_jawt_get_drawable,
-       classpath_jawt_lock, classpath_jawt_unlock): New functions.
-       * jawt.c (_Jv_JAWT_Lock, _Jv_JAWT_Unlock): New functions.
-       (_Jv_GetDrawingSurface): Set visualID.
-       (_Jv_FreeDrawingSurfaceInfo): Clear visualID.
-       (JAWT_GetAWT): Set Lock and Unlock.
-       * include/jawt_md.h (struct _JAWT_X11DrawingSurfaceInfo): Add visualID.
-       * include/jawt.h (JAWT_VERSION_1_4, JAWT_LOCK_ERROR,
-       JAWT_LOCK_CLIP_CHANGED, JAWT_LOCK_BOUNDS_CHANGED,
-       JAWT_LOCK_SURFACE_CHANGED): New macros.
-       (struct _JAWT): Add Lock and Unlock.
-
 2005-02-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
 
        * jawt.c: New file.