aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-12-26MenuContainer.java: Fixed typo.Tom Tromey21-74/+851
* 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. From-SVN: r38486
2000-12-26FileDescriptor.java: Initialize fd to -1.Jeff Sturm2-7/+11
2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com> * java/io/FileDescriptor.java: Initialize fd to -1. Remove default constructor. From-SVN: r38485
2000-12-23* java/lang/mprec.h: Change C9X reference to refer to C99.Joseph Myers2-1/+5
From-SVN: r38481
2000-12-22Throwable.java (trace_enabled): New static field.Bryce McKinlay4-0/+18
* 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. From-SVN: r38442
2000-12-21PropertyChangeListener.java: Extends EventListener.Tom Tromey3-14/+24
* java/beans/PropertyChangeListener.java: Extends EventListener. * java/beans/VetoableChangeListener.java: Extends EventListener. From-SVN: r38421
2000-12-21* java/util/zip/Deflater.java (update, init): Now private.Tom Tromey2-2/+6
From-SVN: r38420
2000-12-21BasicMapEntry.java: Re-added.Bryce McKinlay6-125/+173
* 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. From-SVN: r38410
2000-12-19GregorianCalendar.java (GregorianCalendar): Constructors need to set ↵Warren Levy2-3/+9
timezone to a valid non-null value. * java/util/GregorianCalendar.java (GregorianCalendar): Constructors need to set timezone to a valid non-null value. Partial fix for PR 331. From-SVN: r38375
2000-12-18mauve.exp (test_mauve): Don't look for exceptions thrown in the test harness.Tom Tromey2-22/+6
* libjava.mauve/mauve.exp (test_mauve): Don't look for exceptions thrown in the test harness. (test_mauve_sim): Likewise. From-SVN: r38368
2000-12-18Removed additional addNotify() peer hacks.Bryce McKinlay6-9/+13
From-SVN: r38367
2000-12-18Window.java (addNotify): Remove peer casting hack now that gcj/312 is fixed.Bryce McKinlay2-2/+6
* java/awt/Window.java (addNotify): Remove peer casting hack now that gcj/312 is fixed. From-SVN: r38364
2000-12-18COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 ↵Joseph Myers2-3/+9
(fixes... * COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references to 19yy as example year in copyright notice). From-SVN: r38340
2000-12-18natInflater.cc (inflate): Treat Z_BUF_ERROR as end-of-stream if avail_in is 0.Bryce McKinlay2-5/+15
* java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as end-of-stream if avail_in is 0. From-SVN: r38338
2000-12-17ArrayList.java (data): Declare transient.Bryce McKinlay2-14/+13
* java/util/ArrayList.java (data): Declare transient. (serialPersistantFields): Removed. (readObject): Use defaultReadObject(), not readFields(). (writeObject): Use defaultWriteObject(), not writeFields(). From-SVN: r38328
2000-12-17Hashtable.java (put): Remove `last' variable.Jeff Sturm3-22/+20
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. From-SVN: r38325
2000-12-16libjava.exp (test_libjava_from_javac): Strange quoting trick for `.class' ↵Tom Tromey8-201/+30
link case. * lib/libjava.exp (test_libjava_from_javac): Strange quoting trick for `.class' link case. (bytecompile_file): Change directory outside of `catch'. * libjava.lang/Thread_1.java: Removed. * libjava.lang/Thread_1.out: Likewise. * libjava.lang/N19990310_4.xfail: New file. * libjava.lang/stub.xfail: Added new failure modes. * libjava.lang/stringconst.xfail: New file. * libjava.lang/PR162.xfail: New file. * libjava.lang/Final.xfail: Removed. From-SVN: r38311
2000-12-16* libjava.lang/instinit.out: Removed erroneous line.Tom Tromey2-1/+2
From-SVN: r38299
2000-12-16* libjava.lang/Thread_1.out: Expect `0' active count.Tom Tromey2-1/+3
From-SVN: r38298
2000-12-16stub.xfail: New file.Tom Tromey10-10/+27
* libjava.lang/stub.xfail: New file. * libjava.lang/pr83.xfail: New file. * libjava.lang/err8.xfail: New file. * libjava.lang/err7.xfail: New file. * libjava.lang/Shazam.xfail: New file. * libjava.lang/err11.xfail: New file. * libjava.lang/instinit2.java: Renamed class to `instinit2'. * libjava.lang/anon3.out: Fixed typo. * libjava.lang/Class_1.java (main): Uncommented out previously failing code; now it works From-SVN: r38297
2000-12-16libjava.compile test fixes.Tom Tromey15-25/+90
* lib/libjava.exp (libjava_tcompile): New proc. (test_libjava_from_source): Use it. (test_libjava_from_javac): Likewise. (find_javac): New proc. (bytecompile_file): Use it. (test_libjava_from_javac): Handle `xfail-gcjC' tag. If no-exec set, then don't link even if program has a `main'. * libjava.compile/static_3.xfail: New file. * libjava.compile/weirddecl.xfail: New file. * libjava.compile/static_2.xfail: New file. * libjava.compile/not_a_redef.xfail: New file. * libjava.compile/inner_1.xfail: New file. * libjava.compile/assignment_2.xfail: New file. * libjava.compile/assignment.xfail: New file. * libjava.compile/abstr.xfail: New file. * libjava.compile/PR375.xfail: New file. * libjava.compile/PR374.java: New file. * libjava.compile/PR238.xfail: New file. * libjava.compile/PR208.xfail: New file. * libjava.compile/PR207.xfail: New file. From-SVN: r38296
2000-12-15ResourceBundle.java (trySomeGetBundle): Pass class loader to Class.forName.Tom Tromey2-1/+8
* java/util/ResourceBundle.java (trySomeGetBundle): Pass class loader to Class.forName. From-SVN: r38289
2000-12-15* java/util/ResourceBundle.javaTom Tromey2-8/+22
(getBundle(String,Locale,ClassLoader)): New method. (trySomeGetBundle): Added `loader' argument. (partialGetBundle): Likewise. From-SVN: r38275
2000-12-15NumberFormat.java (groupingUsed, [...]): Now package-private.Tom Tromey2-6/+11
* java/text/NumberFormat.java (groupingUsed, parseIntegerOnly, maximumFractionDigits, maximumIntegerDigits, minimumFractionDigits, minimumIntegerDigits): Now package-private. From-SVN: r38274
2000-12-15* java/lang/Thread.java (checkAccess): Now final.Tom Tromey2-1/+3
From-SVN: r38273
2000-12-15* java/lang/RuntimePermission.java: Class now final.Tom Tromey2-2/+4
From-SVN: r38272
2000-12-15* java/io/StringWriter.java (StringWriter(int)): Now public.Tom Tromey2-4/+6
From-SVN: r38271
2000-12-15* java/io/SerializablePermission.java (legal_names): Now private.Tom Tromey2-3/+5
From-SVN: r38270
2000-12-15Character.java: Updated UnicodeBlock constants.Tom Tromey3-11/+68
* java/lang/Character.java: Updated UnicodeBlock constants. * scripts/blocks.pl: Special case private use and surrogate areas. Updated URL. From-SVN: r38269
2000-12-13Makefile.in: Rebuilt.Tom Tromey3-25/+56
* Makefile.in: Rebuilt. * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding option. (GCJCOMPILE): Use it. (JAVAC): Likewise. From-SVN: r38219
2000-12-12FirstThread.java (Kcert, [...]): New static final fields.Tom Tromey2-1/+13
* gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar): New static final fields. From-SVN: r38200
2000-12-11re GNATS libgcj/378 (Problem with scripts/classes.pl)Tom Tromey2-1/+10
* scripts/classes.pl (scan): Skip lines with leading `*'. Fix for PR libgcj/378. From-SVN: r38198
2000-12-11* gcj/javaprims.h: Rebuilt CNI namespace declarations.Bryce McKinlay2-96/+63
From-SVN: r38188
2000-12-11* java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.Bryce McKinlay2-7/+9
From-SVN: r38185
2000-12-11configure.in: Remove check for -fuse-divide-subroutine.Bryce McKinlay3-325/+286
* configure.in: Remove check for -fuse-divide-subroutine. * configure: Rebuilt. From-SVN: r38184
2000-12-11Makefile.am: Add HashSet.java and java/lang/ref classes.Bryce McKinlay18-2036/+2916
* 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. From-SVN: r38183
2000-12-11Recognize alpha*-*.Richard Henderson2-1/+5
From-SVN: r38181
2000-12-10Enable interpreter for alpha.Anthony Green2-0/+7
From-SVN: r38168
2000-12-09Top level ChangeLog:Alexandre Petit-Bianco3-56/+82
2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com> * libjava: Imported from /cvs/java. * libffi: Likewise. * Boehm-gc: Likewise. libjava/ChangeLog: 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. gcc/java/ChangeLog: 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com> * Make-lang.in (java/jcf-path.o:): libgcj.jar replaces libgcj.zip. jcf-path.c: Likewise. From-SVN: r38167
2000-12-08From Phil Edwards:Tom Tromey3-282/+299
* configure: Rebuilt. * configure.in: Use echo, not `:', to create .d files. From-SVN: r38139
2000-12-08StringBuffer.java (insert(int,char[])): Avoid NullPointerException so proper ↵Warren Levy2-1/+8
check of offset can be done. * java/lang/StringBuffer.java (insert(int,char[])): Avoid NullPointerException so proper check of offset can be done. From-SVN: r38132
2000-12-08FileInputStream.java (close): Check if the fd is valid.Warren Levy5-8/+15
* 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. From-SVN: r38131
2000-12-07GridBagConstraints.java: Filled in values for static final fields.Tom Tromey2-15/+18
* java/awt/GridBagConstraints.java: Filled in values for static final fields. From-SVN: r38081
2000-12-06* java/util/BitSet.java: Updated copyright notice.Tom Tromey2-4/+23
From-SVN: r38078
2000-12-06Removed erroneous ChangeLog lineTom Tromey1-1/+0
From-SVN: r38077
2000-12-06Makefile.in: Rebuilt.Tom Tromey4-1/+99
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new file. * java/awt/GridBagConstraints.java: New file. From-SVN: r38076
2000-12-06Collator.java (decomposeCharacter, [...]): Now package-private, not protected.Tom Tromey6-8/+17
* 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. * java/util/Set.java (toArray(Object[])): New method. From-SVN: r38075
2000-12-04TimeZone.java (getAvailableIDs): Activated commented out code dependent on ↵Warren Levy2-10/+5
compiler and library changes. * java/util/TimeZone.java (getAvailableIDs): Activated commented out code dependent on compiler and library changes. From-SVN: r37994
2000-12-04FilePermission.java: Made class final per spec.Warren Levy4-4/+11
* 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. From-SVN: r37993
2000-12-04natDouble.cc: Include fdlibm.h, not mprec.h.Bryce McKinlay2-1/+6
* java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From Edgar Villanueva <edgarvil@home.com>. From-SVN: r37991
2000-12-04Point2D.java: Added protected constructor.Tom Tromey7-18/+51
* 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. From-SVN: r37988