aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
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
2000-12-04AWTError.java: Extend Error, not IllegalStateException.Tom Tromey2-6/+9
* java/awt/AWTError.java: Extend Error, not IllegalStateException. From-SVN: r37987
2000-12-03Makefile.in: Rebuilt.Tom Tromey4-0/+352
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new file. * java/awt/geom/RoundRectangle2D.java: New file. From-SVN: r37980
2000-12-03Makefile.in: Rebuilt.Tom Tromey4-14/+266
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new file. * java/awt/FlowLayout.java: New file. From-SVN: r37968
2000-12-03Makefile.in: Rebuilt.Tom Tromey4-6/+287
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new file. * java/awt/GridLayout.java: New file. From-SVN: r37967
2000-12-03Makefile.in: Rebuilt.Tom Tromey5-3/+416
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new files. * java/awt/CardLayout.java: New file. * java/awt/AWTPermission.java: New file. From-SVN: r37965
2000-12-02Vector.java (insertElementAt): Unconditionally increment elementCount.Tom Tromey2-2/+13
* java/util/Vector.java (insertElementAt): Unconditionally increment elementCount. (removeRange): Clear unused slots in vector. From-SVN: r37944
2000-12-02From Adam Welc <welc@cs.purdue.edu>:Bryce McKinlay2-1/+16
* java/util/LinkedList.java (removeFirst): Update `first' field. Handle the last == first case. (removeLast): Update `last' field. Handle the last == first case. From-SVN: r37940
2000-12-02natMath.cc: Declare fabsf() function.Bryce McKinlay5-2/+13
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-SVN: r37938
2000-12-01Really reverted erroneous checkinTom Tromey2-13/+6
From-SVN: r37930
2000-12-01Reverted erroneous checkinTom Tromey1-14/+13
From-SVN: r37929
2000-12-01more workTom Tromey4-7/+18
From-SVN: r37926
2000-12-01Makefile.am: Added entries for new java.sql modules.Warren Levy3-5/+33
* Makefile.am: Added entries for new java.sql modules. * Makefile.in: Rebuilt. From-SVN: r37919
2000-12-01mauve-libgcj: Turned on JDK1.2 and turned off tests for classes that aren't ↵Warren Levy2-4/+18
quite 1.2... * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes that aren't quite 1.2 compatible yet. From-SVN: r37913
2000-12-01Fixed ChangeLog entry to be path specific.Warren Levy1-21/+21
From-SVN: r37908
2000-12-01Array.java: New file from classpath.Warren Levy22-20/+3810
* Array.java: New file from classpath. * BatchUpdateException.java: Ditto. * Blob.java: Ditto. * Clob.java: Ditto. * Ref.java: Ditto. * SQLData.java: Ditto. * SQLInput.java: Ditto. * SQLOutput.java: Ditto. * Struct.java: Ditto. * CallableStatement.java: Merged file from claspath. * Connection.java: Ditto. * DataTruncation.java: Ditto. * DatabaseMetaData.java: Ditto. * DriverManager.java: Ditto. * PreparedStatement.java: Ditto. * ResultSet.java: Ditto. * ResultSetMetaData.java: Ditto. * SQLException.java: Ditto. * SQLWarning.java: Ditto. * Statement.java: Ditto. * Types.java: Ditto. From-SVN: r37906
2000-11-29Check this.len, not len, when determining if there is no more input data.Bryce McKinlay1-1/+1
From-SVN: r37847
2000-11-29InflaterInputStream (read): Don't return -1 unless the infate() call didn't ↵Bryce McKinlay4-15/+18
deliver any output. * java/util/zip/InflaterInputStream (read): Don't return -1 unless the infate() call didn't deliver any output. Throw a ZipException if the needsDictionary() call returns true. * java/io/ByteArrayInputStream (read): Remove redundant bounds checks. * java/io/InputStreamReader: Use the default buffer size for the contained BufferedInputStream. From-SVN: r37846
2000-11-29natSystem.cc (init_properties): Set user.language and user.region.Bryce McKinlay5-4/+43
2000-11-29 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/natSystem.cc (init_properties): Set user.language and user.region. * configure.in: Check for setlocale. * configure: Rebuilt. * include/config.h.in: Rebuilt. From-SVN: r37842
2000-11-28DateFormatSymbols.java (zoneStringsDefault): Added more time zone entries.Warren Levy3-3/+30
* java/text/DateFormatSymbols.java (zoneStringsDefault): Added more time zone entries. * java/text/SimpleDateFormat.java (format): Added case for TIMEZONE_FIELD. From-SVN: r37824
2000-11-28DataInputStream.java: Merge classpath docs.Bryce McKinlay3-58/+222
2000-11-28 Bryce McKinlay <bryce@abatross.co.nz> * java/io/DataInputStream.java: Merge classpath docs. Call in.read() directly rather than read() in all cases. Make primitive read implementations more efficient, as defined in JDK online docs. (skipBytes): Behave like the JDK's implementation. * java/io/BufferedReader.java: Merge classpath docs. Check for a closed stream with checkStatus() whenever an IOException can be thrown. (checkStatus): New private method. From-SVN: r37810
2000-11-28Makefile.am: Added natTimeZone.cc.Warren Levy8-560/+2221
* Makefile.am: Added natTimeZone.cc. * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries. * java/text/DateFormatSymbols.java (ampms): Made package private. (eras): Made package private. (months): Made package private. (shortMonths): Made package private. (shortWeekdays): Made package private. (weekdays): Made package private. (formatPrefixes): New private field. (localPatternCharsDefault): Made private. (dateFormats): New package private field. (timeFormats): New package private field. (formatsForKey): New private method. (DateFormatSymbols(Locale)): Set dateFormats and timeFormats. (DateFormatSymbols(DateFormatSymbols)): Ditto. * java/text/SimpleDateFormat.java: Merged with Classpath. * java/util/TimeZone.java: Merged with Classpath. * java/util/natTimeZone.cc: New file. From-SVN: r37808
2000-11-27MIssing ChangeLog entry for my last commits.Anthony Green1-0/+13
From-SVN: r37788
2000-11-27More new classes.Anthony Green10-0/+232
From-SVN: r37786
2000-11-27Vector.java (ensureCapacity): Don't increment modCount.Bryce McKinlay4-39/+55
2000-11-27 Bryce McKinlay <bryce@albatross.co.nz> * java/util/Vector.java (ensureCapacity): Don't increment modCount. (addElement): Don't increment elementCount twice. Doh. * java/util/ArrayList.java (add): Only call ensureCapacity if the array needs to be expanded. (addAll): Ditto. * java/util/Collections.java (UnmodifiableCollection): Implement toString(). (UnmodifiableList): Throw UnsupportedOperationException from modification methods. Set `l' from the one-parameter constructor. (UnmodifiableMap): Implement toString(). (SynchronizedCollection): Ditto. (SynchronizedList): Set `l' from the one-parameter constructor. (SynchronizedSortedSet): Set `ss' from the one-parameter constructor. (SynchronizedMap): Implement toString(). From-SVN: r37785
2000-11-27Replace stubs with actual implementationAnthony Green2-31/+45
From-SVN: r37782
2000-11-27More JNDI changes.Anthony Green28-3/+848
From-SVN: r37779
2000-11-27Reverted erroneous Makefile.am commitTom Tromey2-13/+6
From-SVN: r37774
2000-11-27Forgot to commit these ChangeLog entries.Bryce McKinlay1-0/+32
From-SVN: r37773
2000-11-27Makefile.in: Rebuilt.Tom Tromey8-37/+241
* Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added RuntimePermission.java. * java/lang/RuntimePermission.java: Imported from Classpath. * java/lang/Thread.java (getContextClassLoader): Now synchronized. Added security code. (setContextClassLoader): Likewise. From-SVN: r37772
2000-11-27prims.cc (_Jv_NewObjectArray): Use const_cast to initialize length field of ↵Tom Tromey3-4/+23
array. * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize length field of array. (_Jv_NewPrimArray): Likewise. * gcj/array.h (__JArray): `length' field now const. Added constructor. From-SVN: r37771