OSDN Git Service

2000-12-30 Jeffrey Oldham <oldham@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index 1f20ad9..551c2e6 100644 (file)
@@ -1,3 +1,437 @@
+2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
+       the correct versions of various linuxthreads functions get linked.
+       * Makefile.in: Rebuilt.
+       * java/lang/natThread.cc (finalize_native): New static function. Call
+       _Jv_ThreadDestroyData.
+       (initialize_native): Register finalizer for "data".
+       * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
+       (_Jv_ThreadDestroyData): New prototype.
+       * include/win32-threads.h: Ditto.
+       * include/no-threads.h: Ditto.
+       * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
+       (_Jv_ThreadDestroyData): New function. Free native thread "data" and 
+       move mutex and condition variable destroy code from:
+       (really_start): ...here.
+       (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
+       * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
+       (_Jv_ThreadDestroyData): Implemented.
+       * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
+       (_Jv_AllocArray): Ditto.        
+       
+2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
+
+       * java/sql/DriverManager.java (getConnection): Don't set user/password
+       properties if null.
+
+2000-12-27  Warren Levy  <warrenl@redhat.com>
+
+       Fix for PR libgcj/1358:
+       * java/lang/System.java: Update Copyright date properly.
+       * java/util/Calendar.java: Fix typo in comment.
+       (set): Set 24-hour clock hour instead of 12-hour clock hour.
+       * java/util/GregorianCalendar.java (GregorianCalendar): Properly
+       initialize times.  Spec says to set H:M:S values to zero only if
+       a date is given.
+       * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
+       needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
+       * java/util/natGregorianCalendar.cc (computeTime): Properly handle
+       timezones and GMT offsets, being careful to account for units of
+       milliseconds vs. seconds.
+
+2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
+       not be assigned to Object.
+
+       Fix for PR libgcj/1516:
+       * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
+       Add boolean entry.
+       (can_widen): Declared inline. Remove redundant checks for void 
+       arguments and char->short conversion. Add special case for boolean 
+       conversions.
+       (ffi_type): Declared inline.
+       (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
+
+2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
+
+       * java/sql/SQLWarning.java: Fixed typo in comment.
+
+2000-12-26  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/MenuItem.java (paramString): Now protected.
+
+       * java/awt/MenuShortcut.java: Implements Serializable.
+
+       * java/awt/MenuBar.java: Rewrote from scratch.
+
+       * java/awt/MenuComponent.java (removeNotify): Wrote.
+       Implements Serializable.
+
+       * java/awt/GridBagConstraints.java (GridBagConstraints): New
+       constructor.
+
+       * java/awt/CheckboxMenuItem.java: Wrote.
+
+2000-12-25  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/MenuContainer.java: Fixed typo.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (awt_java_source_files): Added SystemColor.java.
+       * java/awt/SystemColor.java: New file.
+
+       * java/awt/Color.java (rgba): Now package-private.
+
+       * java/awt/event/InputEvent.java (isAltGraphDown): New method.
+
+       * java/awt/event/ContainerEvent.java (getContainer): Renamed from
+       getComponent.
+
+       * java/awt/MenuItem.java (addNotify): New method.
+       (MenuItem(String,MenuShortcut)): New constructor.
+       (setLabel): Notify peer of change.
+       (setEnabled): Likewise.
+
+       * java/awt/GridLayout.java (toString): New method.
+
+       * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
+       (FlowLayout): Check for LEADING and TRAILING.
+       (setAlignment): Likewise.
+       (layoutContainer): Handle component orientation.
+
+       * java/awt/Component.java (orientatin): New field.
+       (setComponentOrientation): Wrote.
+       (getComponentOrientation): Wrote.
+
+       * java/awt/Event.java (Event): Implements Serializable.
+       (consumed): New field for serialization.
+       * java/awt/Dimension.java (Dimension): Implements Serializable.
+       * java/awt/Cursor.java (Cursor): Implements Serializable.
+       * java/awt/Container.java (Container): No longer abstract.
+
+       * java/awt/Choice.java: Wrote.
+       * java/awt/Checkbox.java: Wrote.
+       * java/awt/ItemSelectable.java: Documented.
+       * java/awt/CheckboxGroup.java: Wrote.
+
+       * java/awt/CardLayout.java (layoutContainer): Directly use fields
+       in other classes.
+       (getSize): Likewise.
+
+2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
+
+       * java/io/FileDescriptor.java: Initialize fd to -1.
+       Remove default constructor.
+
+2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * java/lang/mprec.h: Change C9X reference to refer to C99.
+
+2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/lang/Throwable.java (trace_enabled): New static field.
+       * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
+       trace_enabled not set.
+       * prims.cc (main_init): Turn off trace_enabled while creating
+       default exception objects.
+
+2000-12-21  Tom Tromey  <tromey@redhat.com>
+
+       * java/beans/PropertyChangeListener.java: Extends EventListener.
+       * java/beans/VetoableChangeListener.java: Extends EventListener.
+
+       * java/util/zip/Deflater.java (update, init): Now private.
+
+2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/util/BasicMapEntry.java: Re-added.
+       * java/util/HashMap.java (Entry): Extend BasicMapEntry.
+       (putAll): Test for BasicMapEntry.
+       * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
+       (putAll): Test for BasicMapEntry.
+       Change references from `HashMap.Entry' to `Entry' in various places.
+       * Makefile.am: Add BasicMapEntry.java.
+       * Makefile.in: Rebuilt.
+
+2000-12-18  Warren Levy  <warrenl@redhat.com>
+
+       * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
+       need to set timezone to a valid non-null value.  Partial fix for
+       PR 331.
+
+2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/awt/Window.java (addNotify): Remove peer casting hack now that 
+       gcj/312 is fixed.
+       * java/awt/Button.java (addNotify): Likewise.
+       * java/awt/Label.java (addNotify): Likewise.
+       * java/awt/Panel.java (addNotify): Likewise.
+       * java/awt/Scrollbar.java (addNotify): Likewise.
+       * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
+       Remove redundant null checks.
+
+2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * COPYING: Update to current
+       ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
+       to 19yy as example year in copyright notice).
+
+2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as 
+       end-of-stream if avail_in is 0.
+
+2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/util/ArrayList.java (data): Declare transient.
+       (serialPersistantFields): Removed.
+       (readObject): Use defaultReadObject(), not readFields().
+       (writeObject): Use defaultWriteObject(), not writeFields().
+
+2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
+
+       * java/util/Hashtable.java (put): Remove `last' variable.
+       Link new entry to head of list.
+       * java/util/HashMap.java (put): Ditto.
+
+2000-12-15  Tom Tromey  <tromey@redhat.com>
+
+       * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
+       loader to Class.forName.
+
+2000-12-14  Tom Tromey  <tromey@redhat.com>
+
+       * java/util/ResourceBundle.java
+       (getBundle(String,Locale,ClassLoader)): New method.
+       (trySomeGetBundle): Added `loader' argument.
+       (partialGetBundle): Likewise.
+
+       * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
+       maximumFractionDigits, maximumIntegerDigits,
+       minimumFractionDigits, minimumIntegerDigits): Now
+       package-private.
+
+       * java/lang/Thread.java (checkAccess): Now final.
+
+       * java/lang/RuntimePermission.java: Class now final.
+
+       * java/io/StringWriter.java (StringWriter(int)): Now public.
+
+       * java/io/SerializablePermission.java (legal_names): Now private.
+
+       * java/lang/Character.java: Updated UnicodeBlock constants.
+       * scripts/blocks.pl: Special case private use and surrogate
+       areas.  Updated URL.
+
+2000-12-12  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
+       option.
+       (GCJCOMPILE): Use it.
+       (JAVAC): Likewise.
+
+2000-12-11  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
+       New static final fields.
+
+       * scripts/classes.pl (scan): Skip lines with leading `*'.
+       Fix for PR libgcj/378.
+
+2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * configure.in: Remove check for -fuse-divide-subroutine.
+       * configure: Rebuilt.
+       
+       * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
+
+       * gcj/javaprims.h: Rebuilt CNI namespace declarations.
+       
+2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * Makefile.am: Add HashSet.java and java/lang/ref classes.
+       Remove BasicMapEntry.java and Bucket.java.
+       * Makefile.in: Rebuilt.
+       * java/util/HashMap.java: Rewritten.
+       * java/util/HashSet.java: Imported from classpath.
+       * java/util/WeakHashMap.java: Imported from classpath.
+       * java/util/Hashtable.java: Rewritten based on new HashMap code.
+       * java/util/Bucket.java: Deleted.
+       * java/util/BasicMapEntry.java: Deleted.
+       * java/util/Collections.java (search): Use a for-loop, not iterator
+       hasNext().
+       (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out 
+       of elements in source.
+       (max): Use a for-loop.
+       (min): Ditto.
+       (reverse): Keep track of positions instead of using Iterator's 
+       nextIndex() and previousIndex().
+       (shuffle(List)): Initialize defaultRandom if required using 
+       double-check thread safety idiom. Call two-argument shuffle method 
+       using defaultRandom.
+       (defaultRandom): New field.
+       (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
+       using previousIndex() and nextIndex().
+       (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
+       * java/util/AbstractCollection.java (toString): Use a StringBuffer.
+       * java/util/AbstractMap.java (toString): Use StringBuffer.
+       * java/lang/ref/PhantomReference.java: Imported from classpath.
+       * java/lang/ref/SoftReference.java: Ditto.
+       * java/lang/ref/Reference.java: Ditto.
+       * java/lang/ref/WeakReference.java: Ditto.
+       * java/lang/ref/ReferenceQueue.java: Ditto.
+
+2000-12-10  Richard Henderson <rth@redhat.com>
+       
+       * configure.host: Recognize alpha*-*, not alphaev6-*.
+
+2000-12-09  Anthony Green  <green@redhat.com>
+
+       * configure.host: Enable interpreter for Alpha.
+
+2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
+       (ZIP): Points at fastjar instead of zip.
+       (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
+       (libgcj_la_LDFLAGS): Correctly point at libsupc++.
+       (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
+       (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
+       ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
+       ($(x_java_source_files:.java=.class):): Likewise.
+       (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
+       fastar's flags.
+       (CLEANFILES): libgcj.jar replaces libgcj.zip.
+       (java/lang/ClassLoader.h:): Depends on libgcj.jar.
+       (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
+       java/lang/String.h:, java/lang/reflect/Constructor.h:,
+       java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
+       gnu/gcj/runtime/VMClassLoader.h:,
+       java/io/ObjectInputStream$$GetField.h:, 
+       java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
+       (Makefile.in): Rebuilt.
+       
+2000-12-08  Tom Tromey  <tromey@redhat.com>
+
+       From Phil Edwards:
+       * configure: Rebuilt.
+       * configure.in: Use echo, not `:', to create .d files.
+
+2000-12-08  Warren Levy  <warrenl@redhat.com>
+
+       * java/lang/StringBuffer.java (insert(int,char[])): Avoid
+       NullPointerException so proper check of offset can be done.
+
+2000-12-08  Warren Levy  <warrenl@redhat.com>
+
+       * java/io/FileInputStream.java (close): Check if the fd is valid.
+       * java/io/RandomAccessFile.java (close): Ditto.
+       * java/net/PlainDatagramSocketImpl.java (close): Ditto.
+       * java/net/PlainSocketImpl.java (close): Ditto.
+
+2000-12-06  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/GridBagConstraints.java: Filled in values for static
+       final fields.
+
+       * java/util/BitSet.java: Updated copyright notice.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (awt_java_source_files): Added new file.
+       * java/awt/GridBagConstraints.java: New file.
+
+2000-12-05  Tom Tromey  <tromey@redhat.com>
+
+       * java/text/Collator.java (decomposeCharacter, decmp, strength):
+       Now package-private, not protected.
+       * java/text/DateFormatSymbols.java (equals): Now private.
+       * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
+       * java/util/BitSet.java: Class no longer final.
+
+2000-12-04  Warren Levy  <warrenl@redhat.com>
+
+       * java/util/TimeZone.java (getAvailableIDs): Activated commented
+       out code dependent on compiler and library changes.
+
+2000-12-04  Warren Levy  <warrenl@redhat.com>
+
+       * java/io/FilePermission.java: Made class final per spec.
+       * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
+       method name to match spec (fixed typo).
+       * java/util/LinkedList.java: Implements List.
+
+2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From 
+       Edgar Villanueva <edgarvil@home.com>.
+
+2000-12-03  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/geom/Point2D.java: Added protected constructor.
+       (equals): New method.
+       (Float.setLocation(float,float)): New method.
+       * java/awt/geom/Dimension2D.java: Added protected constructor.
+       * java/awt/geom/AffineTransform.java: Made all constants public.
+       (concatenate): Fixed typo in name.
+       * java/awt/event/WindowAdapter.java: Class now abstract.
+       * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
+       * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
+       AWTEvent.
+
+       * java/awt/AWTError.java: Extend Error, not
+       IllegalStateException.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (awt_java_source_files): Added new file.
+       * java/awt/geom/RoundRectangle2D.java: New file.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (awt_java_source_files): Added new file.
+       * java/awt/FlowLayout.java: New file.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (awt_java_source_files): Added new file.
+       * java/awt/GridLayout.java: New file.
+
+2000-12-02  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (awt_java_source_files): Added new files.
+       * java/awt/CardLayout.java: New file.
+       * java/awt/AWTPermission.java: New file.
+
+2000-12-01  Tom Tromey  <tromey@redhat.com>
+
+       * java/util/Vector.java (insertElementAt): Unconditionally
+       increment elementCount.
+       (removeRange): Clear unused slots in vector.
+
+2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/lang/natMath.cc: Declare fabsf() function.
+       * java/lang/mprec.h: Don't include math.h.
+       * java/lang/dtoa.c: Include string.h.
+       * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
+       compiler warning.
+       
+       From Adam Welc <welc@cs.purdue.edu>:
+       * java/util/LinkedList.java (removeFirst): Update `first' field.
+       Handle the last == first case.
+       (removeLast): Update `last' field. Handle the last == first case.
+
+2000-12-01  Warren Levy  <warrenl@cygnus.com>
+
+       * Makefile.am: Added entries for new java.sql modules.
+       * Makefile.in: Rebuilt.
+
+2000-12-01  Warren Levy  <warrenl@cygnus.com>
+
+       * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
+       that aren't quite 1.2 compatible yet.
+
 2000-11-30  Warren Levy  <warrenl@cygnus.com>
 
        * java/sql/Array.java: New file from classpath.