+2003-08-05 Matthias Klose <doko@debian.org>
+
+ * aclocal.m4: check for libart-config binary
+ under the name libart2-config as well.
+ * configure: regenerated.
+
+2003-08-04 David P Grove <groved@us.ibm.com>
+
+ * java/text/DecimalFormat.java (format): avoid ArithmeticException
+ when groupingSize is 0.
+ (parse): Likewise.
+
+2003-08-04 Matthias Klose <doko@debian.org>
+
+ * libart.m4: check for libart-config binary
+ under the name libart2-config as well.
+ * configure, aclocal.m4: regenerated.
+
+2003-08-02 Michael Koch <konqueror@gmx.de>
+
+ * java/nio/ByteBufferImpl.java
+ (getChar): Check remaining bytes, fixed comment about endianess.
+ (putChar): Likewise.
+ (getShort): Likewise.
+ (putShort): Likewise.
+ (getInt): Check remaining bytes, fixed conversion, fixed comment about
+ endianess.
+ (putInt): Likewise.
+ (getLong): Likewise.
+ (putLong): Likewise.
+ (getFloat): Likewise.
+ (putFloat): Likewise.
+ (getDouble): Likewise.
+ (putDouble): Likewise.
+ * java/nio/DirectByteBufferImpl.java
+ (getChar): Wrapped code, fixed comment about endianess.
+ (putchar): Likewise.
+ (getShort): Likewise.
+ (putShort): Likewise.
+ (getInt): Fixed conversion, fixed comment about endianess.
+ (putInt): Likewise.
+ (getLong): Likewise.
+ (putLong): Likewise.
+ (getFloat): Likewise.
+ (putFloat): Likewise.
+ (getDouble): Likewise.
+ (putDouble): Likewise.
+ * java/nio/MappedByteBufferImpl.java
+ (compact): Implemented.
+ (getChar): Implemented.
+ (putChar): Implemented.
+ (getDouble): Implemented.
+ (putdouble): Implemented.
+ (getFloat): Implemented.
+ (putFloat): Implemented.
+ (getInt): Implemented.
+ (putInt): Implemented.
+ (getLong): Implemented.
+ (putLong): Implemented.
+ (getShort): Implemented.
+ (putShort): Implemented.
+ * java/nio/channels/FileChannelImpl.java
+ (read): Set position where to access file.
+ (write): Likewise.
+ (transferTo): Flip buffer after read and before write.
+ (transferFrom): Likewise.
+
+2003-08-02 Michael Koch <konqueror@gmx.de>
+
+ * gnu/java/lang/ArrayHelper.java
+ (equalsArray): Reformated, added method documentation.
+
+2003-08-02 Michael Koch <konqueror@gmx.de>
+
+ * java/net/URL.java
+ (URL): Added paragraph about the
+ gnu.java.net.nocache_protocol_handlers property.
+ (ph_cache): Renamed from handlers to match classpath's implementation.
+ Reordered it with factory and serialVersionUID member variables.
+ (cache_handlers): New member variable.
+ (static): New static initializer to initialize cache_handlers from
+ gnu.java.net.nocache_protocol_handlers property.
+ (URL): Use ph_cache instead of handlers, reformatted some code to
+ match classpath's implementation.
+
+2003-08-01 Tom Tromey <tromey@redhat.com>
+
+ Fix for PR libgcj/11241:
+ * java/util/WeakHashMap.java (WeakHashMap(int,float)): If
+ initialCapacity is 0, set it to 1.
+
+2003-08-01 Stephen Crawley <crawley@dstc.edu.au>
+
+ * java/net/SocketImpl.java (toString): Display the remote address
+ of an unconnected server socket as "0.0.0.0/0.0.0.0".
+
+2003-08-01 Sascha Brawer <brawer@dandelis.ch>
+
+ * javax/swing/border/BevelBorder.java,
+ javax/swing/border/EtchedBorder.java,
+ javax/swing/border/LineBorder.java,
+ javax/swing/border/MatteBorder.java,
+ javax/swing/border/SoftBevelBorder.java,
+ javax/swing/plaf/BorderUIResource.java,
+ javax/swing/plaf/ComponentUI.java,
+ javax/swing/plaf/TreeUI.java,
+ javax/swing/plaf/basic/BasicBorders.java,
+ javax/swing/plaf/basic/BasicGraphicsUtils.java,
+ javax/swing/plaf/basic/BasicTreeUI.java:
+ Prepend "doc-files" to all paths to embedded Javadoc images, so
+ that the generated documentation contains the correct URL.
+
+2003-08-01 Tom Tromey <tromey@redhat.com>
+
+ * configure: Rebuilt.
+ * configure.in (tool_include_dir): Redefine to match gcc.
+
+2003-08-01 Jerry Quinn <jlquinn@optonline.net>
+ Mark Wielaard <mark@klomp.org>
+
+ * java/math/BigDecimal (divide): Correctly handle
+ ROUND_HALF_EVEN when amount is greater than 0.5.
+ Simplify and optimize code.
+
+2003-07-31 Tom Tromey <tromey@redhat.com>
+
+ More for PR libgcj/11737:
+ * java/io/ObjectInputStream.java (processResolution): Use
+ getMethod.
+ (getMethod): Make method accessible.
+ (getField): Make field accessible.
+ (setBooleanField): Don't call setAccessible here.
+ (setByteField, setCharField, setDoubleField, setFloatField,
+ setIntField, setLongField, setShortField, setObjectField):
+ Likewise.
+ (callReadMethod): Don't check whether method is null. Catch
+ NoSuchMethodException.
+ * java/io/ObjectOutputStream.java (callWriteMethod): Initialize
+ cause on thrown exceptions.
+
+2003-07-31 Stepan Koltsov <yozh@mx1.ru>
+
+ Fix for PR libgcj/11728:
+ * java/util/HashMap.java (readObject): Set size.
+
+2003-07-31 Tom Tromey <tromey@redhat.com>
+
+ Fix for PR libgcj/11737:
+ * java/io/ObjectOutputStream.java (getMethod): Make method
+ accessible.
+ (getField): Likewise.
+ (writeObject): Use getMethod.
+ Import PrivilegedAction and AccessController.
+ (callWriteMethod): Don't check whether m is null. Catch
+ NoSuchMethodException.
+
+ * java/awt/geom/Arc2D.java (getBounds2D): Implement.
+ (containsAngle): Likewise.
+ (getStartPoint): Rewrote.
+ (getEndPoint): Likewise.
+ (setAngleStart(Point2D)): Likewise.
+
+2003-07-31 Roger Sayle <roger@eyesopen.com>
+ Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * configure.in: Add new THREADCXXFLAGS variable.
+ Handle POSIX threads on alpha*-dec-osf*.
+ * configure: Regenerate.
+ * Makefile.am: Add THREADCXXFLAGS to AM_CXXFLAGS.
+ * Makefile.in: Regenerate.
+
+2003-07-08 Andrew Haley <aph@redhat.com>
+
+ * include/i386-signal.h (RESTORE): New.
+ (INIT_SEGV): Set restorer.
+ (INIT_FPE): Likewise.
+
+2003-07-29 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Call getName rather
+ than getXLFD.
+ * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
+ * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Likewise.
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
+ (gtkSetFont): Scale size parameter by PANGO_SCALE.
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c:
+ Likewise.
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c:
+ Likewise.
+
+2003-07-29 Tom Tromey <tromey@redhat.com>
+
+ * defineclass.cc (handleField): Throw exception if field name is
+ duplicated.
+ (handleMethod): Throw exception for duplicate method.
+
+2003-07-29 Tom Tromey <tromey@redhat.com>
+
+ * gnu/gcj/convert/natIconv.cc (write): Handle case where
+ output buffer is too small.
+
+2003-07-28 Tom Tromey <tromey@redhat.com>
+
+ * java/lang/natString.cc (init(gnu.gcj.runtime.StringBuffer)):
+ New method.
+ Include gnu/gcj/runtime/StringBuffer.h.
+ * java/lang/String.java (init(gnu.gcj.runtime.StringBuffer)): New
+ native method.
+ (String(gnu.gcj.runtime.StringBuffer)): Use it.
+
+2003-07-27 Anthony Green <green@redhat.com>
+
+ * configure.in: Fix newlib check.
+ * configure: Rebuilt.
+
+2003-07-27 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
+ Create vbox and layout for GtkPlug.
+
+2003-07-27 Michael Koch <konqueror@gmx.de>
+
+ * java/awt/Window.java
+ (Window): Removed now unused constructor. It became oboslete with the
+ new embedded window patch.
+
+2003-07-27 Thomas Fitzsimmons <fitzsim@redhat.com.h>
+ Michael Koch <konqueror@gmx.de>
+
+ * gnu/java/awt/EmbeddedWindow.java
+ (EmbeddedWindow): Extends Frame instead of Window.
+ (window_id): New member variable to store the native window handle.
+ (create): Removed.
+ (EmbeddedWindow): New constructor.
+ (addNotify): New method.
+ (getHandler): Likewise.
+ (setWindowPeer): New native method.
+ * gnu/java/awt/EmbeddedWindowSupport.java
+ (EmbeddedWindowSupport): Fixed documentation.
+ (createEmbeddedWindow): Return EmbeddedWindowPeer instead of
+ WindowPeer, give it an EmbeddedWindow instance instead of the raw
+ window data.
+ * gnu/java/awt/natEmbeddedWindow.cc
+ (create): Removed.
+ (setWindowPeer): New method.
+ * gnu/java/awt/peer/EmbeddedWindowPeer.java,
+ gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
+ jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
+ New files
+ * gnu/java/awt/peer/gtk/GtkToolkit.java
+ (GtkToolkit): Implements EmbeddedWindowSupport.
+ (createEmbeddedWindow): New method.
+ * java/awt/Window.java
+ (Window): Removed.
+ * Makefile.am
+ (java_source_files): Added EmbeddedWindowPeer.java.
+ (gtk_awt_peer_sources): Added GtkEmbeddedWindowPeer.java.
+ (gtk_c_source_files): Added gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c.
+ * Makefile.in: Regenerated.
+
+2003-07-26 Ranjit Mathew <rmathew@hotmail.com>
+
+ * java/lang/Win32Process.java (ConcreteProcess): Surround
+ a command line element with quotes if it contains an
+ embedded space or tab.
+ * java/lang/natWin32Process.cc (startProcess): Do not
+ surround command line elements with quotes here.
+
+ * configure.host: Use -fcheck-references and
+ -fuse-divide-subroutine for MinGW until we fix
+ win32_exception_handler( ) in win32.cc w.r.t. Win32
+ Structured Exception Handling (SEH).
+
+ * win32.cc (_Jv_platform_initProperties): Use generic names
+ like "x86" for the "os.arch" property to be consistent with
+ what Sun's JDK produces. Use the wProcessorArchitecture
+ member of the Win32 SYSTEM_INFO structure, filled in a call
+ to GetSystemInfo( ), instead of dwProcessorType.
+
+2003-07-26 Mohan Embar <gnustuff@thisiscool.com>
+ Ranjit Mathew <rmathew@hotmail.com>
+
+ * Makefile.am: Use cross-compiling gcjh from the path for
+ a crossed-native build.
+ * Makefile.in: Rebuilt.
+ * configure.in: Include libltdl in non-newlib builds.
+ Moved determination of gcj used to build libraries to
+ its own section. Fixed cross-compilation issues for
+ non-newlib builds.
+ * configure: Rebuilt.
+
+2003-07-25 Tom Tromey <tromey@redhat.com>
+
+ * java/io/natFileDescriptorPosix.cc (write): Try again on EINTR.
+ (write): Likewise.
+ (read): Likewise.
+ (read): Likewise.
+
+2003-07-25 Mark Wielaard <mark@klomp.org>
+
+ * java/lang/natRuntime.cc (_load): Add library name to
+ UnsatisfiedLinkError when thrown.
+
+2003-07-25 Mark Wielaard <mark@klomp.org>
+
+ * Makefile.am (awt_java_source_files): java/awt/GridBagLayoutInfo.java
+ added.
+ * Makefile.in: Likewise.
+
+2003-07-25 Jeroen Frijters <jeroen@frijters.net>
+
+ * java/awt/Component.java
+ (getPreferredSize): Call preferredSize.
+ (preferredSize): Moved body of getPreferredSize here.
+ (getMinimumSize): Call minimumSize.
+ (minimumSize): Moved body of getMinimumSize here.
+ (prepareImage): Fall back on Toolkit.prepareImage if there is no peer
+ (checkImage(Image,ImageObserver)): Don't call getWidth/getHeight, but
+ pass -1
+ * java/awt/Container.java
+ (validate): Don't validate if there is no peer.
+ (update): Clear background before calling paint.
+ * java/awt/GridBagLayout.java
+ Completed the implementation and fixed several bugs.
+ * java/awt/MediaTracker.java
+ (MediaEntry.imageUpdate): Fixed typo. & instead of | was used to
+ combine flags.
+ * java/awt/Window.java
+ (Window): Don't call setVisible(false). Windows are invisible by
+ default and calling virtual methods from constructor causes
+ compatibility problems (e.g. subclasses may assume that the peer
+ already exists).
+
+2003-07-25 Michael Koch <konqueror@gmx.de>
+
+ * java/awt/GridBagLayout.java:
+ Totally reworked and partly implemented.
+ * java/awt/GridBagLayoutInfo.java:
+ New file.
+
+2003-07-24 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create):
+ Don't pack label in an event box.
+
+2003-07-24 Tom Tromey <tromey@redhat.com>
+
+ For PR libgcj/7482:
+ * verify.cc (ref_intersection): New class.
+ (type_val): Removed unresolved_reference_type,
+ uninitialized_unresolved_reference_type.
+ (is_assignable_from_slow): Rewrote.
+ (type::data): Removed.
+ (type::klass): New field.
+ (type::type): Added verifier argument.
+ (type::resolve): Removed.
+ (type::set_uninitialized): Updated for change to type_val.
+ (type::set_initialized): Likewise.
+ (type::isinitialized): Likewise.
+ (type::print): Likewise.
+ (construct_primitive_array_type): Likewise.
+ (type::compatible): Updated for change to type_val and to use
+ ref_intersection.
+ (type::isarray): Updated to use ref_intersection.
+ (type::isinterface): Likewise.
+ (type::element_type): Likewise.
+ (type::to_array): Likewise.
+ (type::verify_dimensions): Rewrote.
+ (type::merge): Likewise.
+ (check_class_constant): Updated for type constructor change.
+ (check_constant): Likewise.
+ (check_field_constant): Likewise.
+ (get_one_type): Likewise.
+ (initialize_stack): Likewise.
+ (verify_instructions_0): Likewise.
+ (verify_instructions_0) [op_invokeinterface]: Removed special
+ case.
+ (isect_list): New field.
+ (_Jv_BytecodeVerifier): Initialize it.
+ (~_Jv_BytecodeVerifier): Destroy ref_intersection objects.
+
+2003-07-24 H. Väisänen <hvaisane@joyx.joensuu.fi>
+
+ * java/text/SimpleDateFormat.java (format) [YEAR_FIELD]: Zero pad
+ unless field size is 2.
+
+2003-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
+ (connectHooks): New method.
+ (handleEvent): Remove.
+ * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java
+ (createHooks): Remove declaration.
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
+ (generates_key_typed_event): Change to handle only certain
+ keyvals.
+ (awt_event_handler): Add special handling for GtkTextView.
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
+ (textcomponent_commit_cb): New function.
+ (textcomponent_changed_cb): Likewise.
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
+ (connectHooks): Remove.
+
+2003-07-23 Tom Tromey <tromey@redhat.com>
+
+ * java/lang/natSystem.cc (arraycopy): Check for overflow.
+
+ * boehm.cc (_Jv_BuildGCDescr): Use `1ULL'.
+
+2003-07-22 Tom Tromey <tromey@redhat.com>
+
+ * boehm.cc (_Jv_BuildGCDescr): Wrote.
+ Include limits.h.
+
+2003-07-22 Tom Tromey <tromey@redhat.com>
+
+ * java/awt/Window.java (getWarningString): Just return the
+ string.
+ (Window): Set warningString; check with security manager.
+
+2003-07-22 Scott Gilbertson <scottg@mantatest.com>
+
+ * gnu/awt/xlib/XGraphicsConfiguration.java
+ (FontMetricsCache): Made static.
+
+2003-07-22 Tom Tromey <tromey@redhat.com>
+
+ * java/net/URLEncoder.java (encode(String)): Use platform default
+ encoding.
+ (encode(String,String)): Convert to 2-digit upper-case hex
+ number.
+ (hex): New field.
+
+2003-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
+ (create): Remove unused method implementation.
+ (connectHooks): Remove debug messages.
+
+2003-07-20 Anthony Green <green@redhat.com>
+
+ * gnu/awt/j2d/AbstractGraphicsState.java (clone): Handle
+ CloneNotSupportedException.
+ * gnu/gcj/xlib/WindowAttributes.java (clone): Ditto.
+ * gnu/gcj/xlib/WMSizeHints.java (clone): Ditto.
+ * gnu/gcj/xlib/GC.java (clone): Ditto.
+ * gnu/awt/xlib/XGraphics.java (clone): Ditto.
+ * gnu/awt/j2d/Graphics2DImpl.java (clone): Ditto.
+
+ * gnu/awt/xlib/XEventLoop.java (postNextEvent): Remove unreachable
+ handler.
+ * gnu/gcj/runtime/NameFinder.java (NameFinder): Ditto.
+
+2003-07-20 Steve Pribyl <steve@netfuel.com.>
+
+ * gnu/gcj/runtime/natSharedLibLoader.cc (init): `libname' now a
+ String. Put dlerror() message into exception.
+ Include UnsatisfiedLinkError.
+ * gnu/gcj/runtime/SharedLibLoader.java (init): `libname' now a
+ String. Now native.
+
+2003-07-20 Tom Tromey <tromey@redhat.com>
+
+ * java/lang/Runtime.java: Comment fix.
+ * java/lang/ClassLoader.java (isAncestorOf): New method.
+ (getParent): Uncommented security check. Use isAncestorOf.
+ * include/jvm.h (_Jv_CheckAccess): Declare.
+ * java/lang/reflect/natConstructor.cc (newInstance): Perform
+ access check.
+ Include IllegalAccessException.h, ArrayIndexOutOfBoundsException.h.
+ * java/lang/reflect/natArray.cc (newInstance): Pass caller's
+ class loader to _Jv_GetArrayClass.
+ Include ArrayIndexOutOfBoundsException.h.
+ * java/lang/reflect/Field.java: Update comment to reflect status.
+ (equals): Fixed indentation.
+ * java/lang/Class.h (Class): Declare memberAccessCheck, not
+ checkMemberAccess. Make _Jv_CheckAccess a friend.
+ * java/lang/Class.java (memberAccessCheck): New method from
+ Classpath.
+ (checkMemberAccess): Removed.
+ (getDeclaredMethod): Use memberAccessCheck.
+ (getField): Likewise.
+ (getMethod): Likewise.
+ * resolve.cc (_Jv_ResolvePoolEntry): Use _Jv_CheckAccess.
+ (_Jv_SearchMethodInClass): Likewise.
+ * prims.cc (_Jv_CheckAccess): New function.
+ * jni.cc (_Jv_JNI_FindClass): Use getClassLoaderInternal.
+ (_Jv_JNI_GetAnyFieldID): Likewise.
+ * java/lang/natClass.cc (forName): Use getClassLoaderInternal.
+ (getClassLoader): Added security check.
+ (getConstructor): Call memberAccessCheck.
+ (getDeclaredClasses): Likewise.
+ (getDeclaredField): Likewise.
+ (getDeclaredFields): Likewise.
+ (_getConstructors): Likewise.
+ (getDeclaredConstructor): Likewise.
+ (getDeclaredMethods): Likewise.
+ (getFields): Likewise.
+ (getMethods): Likewise.
+ (newInstance): Likewise.
+ (_Jv_MakeVTable): Put method name in exception.
+ * java/lang/reflect/natMethod.cc (getType): Use
+ getClassLoaderInternal.
+ (_Jv_GetTypesFromSignature): Likewise.
+ (invoke): Perform access check.
+ (_Jv_CallAnyMethodA): Removed old FIXME comments.
+ Include ArrayIndexOutOfBoundsException.h.
+ * java/lang/reflect/natField.cc (getType): Use
+ getClassLoaderInternal.
+ (_Jv_CheckFieldAccessibility): Removed.
+ (getAddr): Use _Jv_CheckAccess; find caller.
+ Include ArrayIndexOutOfBoundsException.h.
+
2003-07-20 Michael Koch <konqueror@gmx.de>
* java/net/URL.java
(URL): Fixed documentation to name an argument correcty, Reformatted
one method declaration.
(getURLStreamHandler): Added documentation from classpath.
+
2003-07-19 Tom Tromey <tromey@redhat.com>
* mauve-libgcj: Don't run CollationElementIterator tests.