aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2001-02-20PipedWriter.java (flush): Throw exception if stream closed.Tom Tromey5-29/+120
* java/io/PipedWriter.java (flush): Throw exception if stream closed. * java/io/OutputStreamWriter.java (write): Throw exception if stream closed. (writeChars): Don't throw exception if stream closed. * java/io/CharArrayWriter.java (closed): New field. (close): Set it. (flush): Throw exception if stream closed. (reset): Synchronize on correct lock. Allow stream to be reopened. (toCharArray, toString, writeTo): Synchronize. (write): Throwe exception if stream closed. * java/io/BufferedWriter.java (close): Clear `buffer'. (flush): Throw IOException if stream is closed. (write): Likewise. From-SVN: r39927
2001-02-20ThreadGroup.java (activeCount): Only include threads which are alive.Tom Tromey2-7/+22
* java/lang/ThreadGroup.java (activeCount): Only include threads which are alive. (enumerate): Likewise. From-SVN: r39922
2001-02-19CharArrayReader.java (CharArrayReader): Throw IllegalArgumentException if ↵Bryce McKinlay3-10/+18
constructor arguments are illegal. * java/io/CharArrayReader.java (CharArrayReader): Throw IllegalArgumentException if constructor arguments are illegal. (ready): Return false if no more characters can be read. * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise. From-SVN: r39876
2001-02-19Integer.java (getInteger): Return default argument if property is not set.Bryce McKinlay3-12/+22
* java/lang/Integer.java (getInteger): Return default argument if property is not set. Don't call decode with null argument. * java/lang/Long.java (getLong): Likewise. From-SVN: r39870
2001-02-17* java/util/TimerTask.java: New version from Classpath.Mark Wielaard2-64/+71
From-SVN: r39801
2001-02-17Remerge with Classpath (changes by Bryce McKinlay <bryce@albatross.co.nz>)Mark Wielaard2-80/+135
Remerge with Classpath (changes by Bryce McKinlay <bryce@albatross.co.nz>) * java/io/DataInputStream.java (readBoolean): Use convertToBoolean(). (readByte): Use convertToByte(). (readChar): Use convertToChar(). (readInt): Use convertToInt(). (readLong): Use convertToLong(). (readShort): Use convertToShort(). (readUnsignedByte): Use convertToUnsignedByte(). (readUnsignedShort): Use convertToUnsignedShort(). (readUTF): Use convertToUTF(). (convertToBoolean): Resurrected. (convertToByte): Ditto. (convertToChar): Ditto. (convertToInt): Ditto. (convertToLong): Ditto. (convertToShort): Ditto. (convertToUnsignedByte): Ditto. (convertToUnsignedShort): Ditto. (convertToUTF): Ditto. From-SVN: r39800
2001-02-17* HACKING: new fileMark Wielaard2-0/+50
From-SVN: r39799
2001-02-17DataInputStream.java: update copyright noticeMark Wielaard7-35/+148
* java/io/DataInputStream.java: update copyright notice * java/io/PrintWriter.java: idem * java/io/Reader.java: idem * java/io/StreamTokenizer.java: idem * java/io/StringReader.java: idem * java/lang/reflect/ReflectPermission.java: idem From-SVN: r39798
2001-02-16HashSet.java (clone): Made subclass safe, use super.clone(), not new.Bryce McKinlay2-3/+13
* java/util/HashSet.java (clone): Made subclass safe, use super.clone(), not new. From-SVN: r39746
2001-02-16TreeMap.java (nil): Made non-final.Bryce McKinlay2-2/+7
* java/util/TreeMap.java (nil): Made non-final. (clone): Create new nil node for copy. From-SVN: r39736
2001-02-16TreeSet.java (clone): Made subclass safe, use super.clone(), not new.Bryce McKinlay3-6/+28
* java/util/TreeSet.java (clone): Made subclass safe, use super.clone(), not new. * java/util/TreeMap.java (clone): Likewise. From-SVN: r39734
2001-02-15i386-signal.h (INIT_SEGV): Use a direct system call to set the handler.Andrew Haley2-1/+6
2001-02-14 Andrew Haley <aph@redhat.com> * include/i386-signal.h (INIT_SEGV): Use a direct system call to set the handler. From-SVN: r39724
2001-02-15defineclass.cc: Don't include alloca.h.Anthony Green4-23/+17
2001-02-15 Anthony Green <green@redhat.com> * defineclass.cc: Don't include alloca.h. (prepare_pool_entry): Convert alloca to __builtin_alloca. * interpret.cc (run_normal): Ditto. (continue1): Ditto. * java/lang/natDouble.cc (parseDouble): Ditto. From-SVN: r39719
2001-02-15AbstractSequentialList.java: Synchronize with Classpath.Bryce McKinlay9-126/+585
* java/util/AbstractSequentialList.java: Synchronize with Classpath. * java/util/Collection.java: Likewise. * java/util/Comparator.java: Likewise. * java/util/Dictionary.java: Likewise. * java/util/Iterator.java: Likewise. * java/util/ListIterator.java: Likewise. * java/util/Map.java: Likewise. * java/util/Set.java: Likewise. From-SVN: r39708
2001-02-15* java/util/HashSet.java (clone): Remove try/catch.Bryce McKinlay2-10/+5
From-SVN: r39707
2001-02-15DirectRasterGraphics.java (clone): Hoist to public.Bryce McKinlay3-2/+7
* gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public. * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call Rectangle.clone(), not Object.clone(). From-SVN: r39706
2001-02-15TreeSet.java (clone): Call TreeMap.clone(), not Object.clone().Bryce McKinlay3-19/+21
* java/util/TreeSet.java (clone): Call TreeMap.clone(), not Object.clone(). * java/util/Collections.java (ReverseComparator): New static class. (reverseOrder): Return static instance of ReverseComparator. From-SVN: r39705
2001-02-14natClass.cc (getSignature): Don't try to dereference param_types if it is null.Bryce McKinlay3-16/+27
* java/lang/natClass.cc (getSignature): Don't try to dereference param_types if it is null. Instead, take this to mean "no parameters". * java/lang/TreeMap.java (TreeIterator.next): Throw NoSuchElementException in preference to ConcurrentModificationException. (TreeIterator.remove): Throw IllegalStateException in preference to ConcurrentModificationException. (SubMap.firstKey): Do a better check for empty SubMap, and if it is, throw a NoSuchElementException. (SubMap.lastKey): Likewise. From-SVN: r39658
2001-02-14re PR libgcj/1758 (java.util package lacks TreeMap)Bryce McKinlay8-24/+1781
* java/util/TreeMap.java: New file. * java/util/TreeSet.java: New file. * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap. * Makefile.in: Rebuilt. * java/util/HashSet.java (clone): Use constructor instead of calling clone on itself. * java/util/SortedSet.java: Sync with classpath. * java/util/HashMap.java (hash): Use if statement instead of ternary, for clarity. Resolves PR libgcj/1758. Resolves PR java/1684. From-SVN: r39657
2001-02-13PipedReader.java (ready): Throw IOException if pipe closed.Tom Tromey5-19/+40
* java/io/PipedReader.java (ready): Throw IOException if pipe closed. * java/io/FilterReader.java (close): Don't clear `in'. * java/io/CharArrayReader.java (mark): Throw IOException if stream closed. (read, ready, reset, skip): Added exception message. * java/io/BufferedReader.java (mark, reset, ready, read, skip): Perform checkStatus check inside synchronized block. From-SVN: r39641
2001-02-13* gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.Tom Tromey2-1/+10
From-SVN: r39640
2001-02-13re PR libgcj/1351 (_Jv_select -vs- Thread.interrupt)Tom Tromey2-1/+16
Fix for PR libgcj/1351: * posix.cc (_Jv_select): Throw InterruptedIOException if thread is interrupted. Include Thread.h and InterruptedIOException.h. From-SVN: r39639
2001-02-13BlockDataException.java: Removed.Bryce McKinlay5-83/+33
* java/io/BlockDataException.java: Removed. * java/io/ObjectInputStream.java (readObject): Throw StreamCorruptedException, not BlockDataException. * Makefile.am: Remove BlockDataException. * Makefile.in: Rebuild. From-SVN: r39616
2001-02-12interpret.cc (continue1): [insn_invokevirtual] Do an explicit null pointer ↵Jeff Sturm2-2/+12
check. 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com> Tom Tromey <tromey@redhat.com> * interpret.cc (continue1): [insn_invokevirtual] Do an explicit null pointer check. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r39607
2001-02-09* java/util/Timer.java: New version from Classpath.Tom Tromey2-429/+496
From-SVN: r39573
2001-02-09Double.java (doubleToRawLongBits): Now native.Bryce McKinlay5-17/+27
* java/lang/Double.java (doubleToRawLongBits): Now native. * java/lang/Float.java (floatToRawIntBits): Likewise. * java/lang/natDouble.cc (doubleToRawLongBits): New method. * java/lang/natFloat.cc (floatToRawIntBits): Likewise. From-SVN: r39572
2001-02-09File.java (java.net): Imported.Alexandre Petit-Bianco2-0/+23
2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com> * java/io/File.java (java.net): Imported. (getAbsoluteFile): Added. (getCanonicalPath): Likewise. (toURL): Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q1/msg00208.html) From-SVN: r39562
2001-02-09OutputStreamWriter.java: (flush, writeChars): Throw IOException if stream ↵Bryce McKinlay2-1/+10
closed. * java/io/OutputStreamWriter.java: (flush, writeChars): Throw IOException if stream closed. From-SVN: r39559
2001-02-09Byte.java: Remove redundant instanceof and null checks.Bryce McKinlay7-51/+50
* java/lang/Byte.java: Remove redundant instanceof and null checks. * java/lang/Integer.java: Likewise. * java/lang/Long.java: Likewise. * java/lang/Short.java: Likewise. * java/lang/Double.java: Likewise. (doubleToRawLongBits): New method. * java/lang/Float.java: As above. (floatToRawIntBits): New method. From-SVN: r39556
2001-02-09* java/lang/Float.java (parseFloat): New method.Tom Tromey2-1/+13
From-SVN: r39555
2001-02-09re PR libgcj/1913 (reading closed streams throws NullPointerException, not ↵Tom Tromey2-1/+16
IOException) From paul@dawa.demon.co.uk. Fix for PR libgcj/1913: * java/io/InputStreamReader.java (ready, read): Throw IOException if stream has been closed. From-SVN: r39553
2001-02-08mauve.exp: Added support for XFAILs.Warren Levy3-5/+45
* libjava.mauve/mauve.exp: Added support for XFAILs. * libjava.mauve/xfails: New file. From-SVN: r39536
2001-02-08gcj.texi: Change sources.redhat.com reference to gcc.gnu.org.Joseph Myers5-5/+11
gcc/java/: * gcj.texi: Change sources.redhat.com reference to gcc.gnu.org. libffi/: * include/ffi.h.in: Change sourceware.cygnus.com references to gcc.gnu.org. libjava/: * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc: Change sources.redhat.com and sourceware.cygnus.com references to gcc.gnu.org. From-SVN: r39531
2001-02-07re PR libgcj/1906 (difference between gcj and jdk for MessageFormat)Tom Tromey2-25/+26
Fix for PR libgcj/1906: * java/text/MessageFormat.java (setLocale): Use named class literals. (forName): Removed. (format(Object,StringBuffer,FieldPosition)): Special case if argument is an Object[]. From-SVN: r39529
2001-02-07re PR java/1895 (Libjava: Arrays.sort doesn't work)Bryce McKinlay2-89/+65
* java/util/Arrays.java: Removed "cmp" methods. (qsort): Don't use "cmp". (med3): Likewise. 2001-02-07 Mark Benvenuto <mcb54@columbia.edu> * java/util/Arrays.java (qsort): Handle N value of 7 with insertion sort. Fix for PR java/1895. From-SVN: r39514
2001-02-05configure.host: Use sjlj-exceptions for Alpha.Jeff Sturm2-0/+5
2000-02-03 Jeff Sturm <jeff.sturm@commerceone.com> * configure.host: Use sjlj-exceptions for Alpha. From-SVN: r39450
2001-02-05Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list of macros used when ↵Bryce McKinlay4-311/+290
compiling jvspec.c. gcc/java: * Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list of macros used when compiling jvspec.c. * jvspec.c (lang_specific_driver): Link with the shared libgcc by default. libjava: * libgcj.spec.in: Don't force static libgcc into the executable. * configure.in (FORCELIBGCCSPEC): Removed. From-SVN: r39449
2001-01-31Makefile.in: Rebuilt.Tom Tromey3-1/+13
* Makefile.in: Rebuilt. * Makefile.am (LTCXXCOMPILE): New macro. From-SVN: r39379
2001-01-302001-01-26 Andrew Haley <aph@redhat.com>Andrew Haley2-2/+20
(INIT_FPE): Use a direct system call to set the handler. From-SVN: r39354
2001-01-27configure.in (target_makefile_frag): Use mt-alphaieee.Richard Henderson2-0/+5
* configure.in (target_makefile_frag) [alpha*-*]: Use mt-alphaieee. * mt-alphaieee: New file. * config/alpha/t-ieee: Remove multilibbing. (TARGET_LIBGCC2_CFLAGS): Add -mieee. * configure.host (alpha*-*) [libgcj_flags]: Add -mieee. From-SVN: r39309
2001-01-27jni.cc (_Jv_JNIFunctions): Added comment for each entry in native interface ↵Tom Tromey2-230/+236
structure. * jni.cc (_Jv_JNIFunctions): Added comment for each entry in native interface structure. From-SVN: r39298
2001-01-27ObjectInputStream.java (read): AND byte with 0xff to make result unsigned.Bryce McKinlay3-15/+53
* java/io/ObjectInputStream.java (read): AND byte with 0xff to make result unsigned. (read (byte[], int, int)): Only call readNextBlock() if the block buffer would actually be overrun. Increment blockDataPosition. (callReadMethod): Propagate exceptions from invocation target. * java/io/ObjectOutputStream.java (callWriteMethod): Propagate exceptions from invocation target. From-SVN: r39293
2001-01-26jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external to internal ↵Tom Tromey2-10/+21
representation. * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external to internal representation. (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use _Jv_FindClassFromSignature. From-SVN: r39289
2001-01-26* libjava.jni/martin.c (Java_martin_myNative): Flush stdout.Tom Tromey2-0/+3
From-SVN: r39287
2001-01-26martin.out: New file.Tom Tromey4-0/+72
* libjava.jni/martin.out: New file. * libjava.jni/martin.c: New file. * libjava.jni/martin.java: New file. From-SVN: r39286
2001-01-26natSystem.cc (getSystemTimeZone): Only use tm_gmtoff and timezone if they ↵Warren Levy2-2/+20
are available on the system. * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff and timezone if they are available on the system. From-SVN: r39283
2001-01-25* java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.Tom Tromey2-1/+5
From-SVN: r39269
2001-01-24Makefile.in: Rebuilt.Tom Tromey4-14/+68
* Makefile.in: Rebuilt. * Makefile.am (c_source_files): Added sf_fabs.c. * java/lang/sf_fabs.c: New file. From-SVN: r39238
2001-01-20SimpleDateFormat.java (format): Compute hour for cases HOUR_OF_DAY1_FIELD ↵Warren Levy2-7/+12
(1-24)... * java/text/SimpleDateFormat.java (format): Compute hour for cases HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11) correctly. Adjust properly from 0-23 clock hour. Fixes failure in Mauve test java.text.SimpleDateFormat.Test (format). From-SVN: r39147
2001-01-18* java/bean/Beans.java (instantiate): enable Applet code from ClasspathMark Wielaard2-11/+13
From-SVN: r39105