Tom Tromey
6771219aaa
re PR libgcj/1971 (ObjectOutputStream generates incorrect serialVersionUID's for array classes)
...
* java/io/ObjectStreamClass.java (setUID): Don't write interface
info for array classes.
Fixes PR libgcj/1971.
From-SVN: r40337
2001-03-09 01:35:54 +00:00
Bryce McKinlay
5c409ad3d8
TreeSet.java (writeObject): Use a for-loop instead of Iterator.hasNext().
...
2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/TreeSet.java (writeObject): Use a for-loop instead of
Iterator.hasNext().
2001-03-05 Jochen Hoenicke <jochen@gnu.org>
* java/util/TreeMap.java (writeObject): Use defaultWriteObject()
instead of the new JDK1.2 API. This is simpler and makes
back-porting the classes to JDK1.1 trivial.
(readObject): likewise.
From-SVN: r40252
2001-03-06 01:04:28 +00:00
Per Bothner
c04278f74f
Changes merged from Kawa's gnu.math.
...
* java/math/BigInteger.java
* gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
(rshift(int[],int[],int,int): Removed - not needed.
(gcd): Use rshift0 rather than rshift.
* java/math/BigInteger.java (setShiftRight): Likewise.
(divide): Simplify by using rshift0.
(divide): Zero-extend results if high-order bit set.
From-SVN: r40177
2001-03-01 22:55:33 -08:00
Bryce McKinlay
faa7e81482
libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static linking.
...
* libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
linking.
From-SVN: r40089
2001-02-27 09:41:21 +00:00
Per Bothner
f9edddabe7
Change to sometimes include class name in ClassFormatError message.
...
From-SVN: r40030
2001-02-23 20:15:31 -08:00
Per Bothner
b80b8cfd29
Throwable.java (CPlusPlusDemangler): Pass -s java to c++filt to select java-style output.
...
* java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
c++filt to select java-style output.
From-SVN: r40027
2001-02-23 19:52:49 -08:00
Bryce McKinlay
7e382f0261
fix
...
From-SVN: r39973
2001-02-22 04:24:34 +00:00
Bryce McKinlay
5950e01622
Disable libgcjx by default.
...
* configure.in: Add support for --enable-java-awt configure option.
Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
* Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
* Makefile.in: Rebuilt.
* configure: Rebuilt.
From-SVN: r39970
2001-02-22 04:19:58 +00:00
Bryce McKinlay
810e8b5200
re PR java/2040 (java.util.Hashtable(int,float) is stricter than sun's version)
...
Fix for PR java/2040:
* java/util/HashMap.java (HashMap): Don't throw exception for
loadFactor > 1. Add exception messages.
* java/util/Hashtable.java (Hashtable): Likewise.
From-SVN: r39969
2001-02-22 04:16:07 +00:00
Tom Tromey
39f90b7ce0
PipedWriter.java (flush): Throw exception if stream closed.
...
* 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-20 19:01:55 +00:00
Tom Tromey
0cbd398014
ThreadGroup.java (activeCount): Only include threads which are alive.
...
* java/lang/ThreadGroup.java (activeCount): Only include threads
which are alive.
(enumerate): Likewise.
From-SVN: r39922
2001-02-20 18:05:57 +00:00
Bryce McKinlay
be454565be
CharArrayReader.java (CharArrayReader): Throw IllegalArgumentException if 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-19 05:37:28 +00:00
Bryce McKinlay
3d1c878854
Integer.java (getInteger): Return default argument if property is not set.
...
* 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-19 03:43:12 +00:00
Mark Wielaard
6483cbecc4
* java/util/TimerTask.java: New version from Classpath.
...
From-SVN: r39801
2001-02-17 15:27:34 +00:00
Mark Wielaard
3f57b973f3
Remerge with Classpath (changes by Bryce McKinlay <bryce@albatross.co.nz>)
...
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 15:09:46 +00:00
Mark Wielaard
a7e96ed41a
* HACKING: new file
...
From-SVN: r39799
2001-02-17 14:24:41 +00:00
Mark Wielaard
f74fd2bbc1
DataInputStream.java: update copyright notice
...
* 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-17 13:59:13 +00:00
Bryce McKinlay
3ade9bbaad
HashSet.java (clone): Made subclass safe, use super.clone(), not new.
...
* java/util/HashSet.java (clone): Made subclass safe, use
super.clone(), not new.
From-SVN: r39746
2001-02-16 04:50:38 +00:00
Bryce McKinlay
5ace577564
TreeMap.java (nil): Made non-final.
...
* java/util/TreeMap.java (nil): Made non-final.
(clone): Create new nil node for copy.
From-SVN: r39736
2001-02-16 02:25:24 +00:00
Bryce McKinlay
07add946aa
TreeSet.java (clone): Made subclass safe, use super.clone(), not new.
...
* java/util/TreeSet.java (clone): Made subclass safe, use
super.clone(), not new.
* java/util/TreeMap.java (clone): Likewise.
From-SVN: r39734
2001-02-16 01:49:40 +00:00
Andrew Haley
6472877ae0
i386-signal.h (INIT_SEGV): Use a direct system call to set the handler.
...
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-15 19:19:50 +00:00
Anthony Green
c220009946
defineclass.cc: Don't include alloca.h.
...
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-15 14:03:14 +00:00
Bryce McKinlay
06e3b913b3
AbstractSequentialList.java: Synchronize with Classpath.
...
* 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 06:43:00 +00:00
Bryce McKinlay
a6845c56c4
* java/util/HashSet.java (clone): Remove try/catch.
...
From-SVN: r39707
2001-02-15 05:12:05 +00:00
Bryce McKinlay
2e22d9b885
DirectRasterGraphics.java (clone): Hoist to public.
...
* 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-15 04:36:34 +00:00
Bryce McKinlay
505ce70d3f
TreeSet.java (clone): Call TreeMap.clone(), not Object.clone().
...
* 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-15 03:59:57 +00:00
Bryce McKinlay
97a4d32ec6
natClass.cc (getSignature): Don't try to dereference param_types if it is null.
...
* 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-14 05:32:31 +00:00
Bryce McKinlay
a142a99626
re PR libgcj/1758 (java.util package lacks TreeMap)
...
* 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-14 04:44:21 +00:00
Tom Tromey
f3b43865ac
PipedReader.java (ready): Throw IOException if pipe closed.
...
* 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 18:55:13 +00:00
Tom Tromey
967eb03e12
* gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
...
From-SVN: r39640
2001-02-13 18:48:46 +00:00
Tom Tromey
1eba9d1f8f
re PR libgcj/1351 (_Jv_select -vs- Thread.interrupt)
...
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-13 18:44:51 +00:00
Bryce McKinlay
7eecbdb322
BlockDataException.java: Removed.
...
* 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-13 07:42:48 +00:00
Jeff Sturm
c6b33a47ea
interpret.cc (continue1): [insn_invokevirtual] Do an explicit null pointer 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-12 17:30:00 +00:00
Tom Tromey
932670198f
* java/util/Timer.java: New version from Classpath.
...
From-SVN: r39573
2001-02-09 23:28:55 +00:00
Bryce McKinlay
0e206b71aa
Double.java (doubleToRawLongBits): Now native.
...
* 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-09 22:13:33 +00:00
Alexandre Petit-Bianco
010cc79a7e
File.java (java.net): Imported.
...
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-09 00:30:31 -08:00
Bryce McKinlay
c2dd346b48
OutputStreamWriter.java: (flush, writeChars): Throw IOException if stream closed.
...
* java/io/OutputStreamWriter.java: (flush, writeChars): Throw
IOException if stream closed.
From-SVN: r39559
2001-02-09 04:01:59 +00:00
Bryce McKinlay
c97036e4c3
Byte.java: Remove redundant instanceof and null checks.
...
* 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 02:56:38 +00:00
Tom Tromey
1c8b24ad46
* java/lang/Float.java (parseFloat): New method.
...
From-SVN: r39555
2001-02-09 02:21:27 +00:00
Tom Tromey
8a5f950e04
re PR libgcj/1913 (reading closed streams throws NullPointerException, not 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-09 01:54:38 +00:00
Warren Levy
1ae696e59a
mauve.exp: Added support for XFAILs.
...
* libjava.mauve/mauve.exp: Added support for XFAILs.
* libjava.mauve/xfails: New file.
From-SVN: r39536
2001-02-08 12:04:57 +00:00
Joseph Myers
7e5fd99fd3
gcj.texi: Change sources.redhat.com reference to gcc.gnu.org.
...
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-08 01:49:53 +00:00
Tom Tromey
a4c6d37356
re PR libgcj/1906 (difference between gcj and jdk for MessageFormat)
...
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-07 22:46:28 +00:00
Bryce McKinlay
b3eda2ff9c
re PR java/1895 (Libjava: Arrays.sort doesn't work)
...
* 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-07 09:32:46 +00:00
Jeff Sturm
c5f9277c56
configure.host: Use sjlj-exceptions for Alpha.
...
2000-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
* configure.host: Use sjlj-exceptions for Alpha.
From-SVN: r39450
2001-02-05 05:49:44 +00:00
Bryce McKinlay
ca5b1ff89a
Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list of macros used when 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-02-05 05:46:16 +00:00
Tom Tromey
4673dd2cc1
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (LTCXXCOMPILE): New macro.
From-SVN: r39379
2001-01-31 17:12:25 +00:00
Andrew Haley
cab1f90abf
2001-01-26 Andrew Haley <aph@redhat.com>
...
(INIT_FPE): Use a direct system call to set the handler.
From-SVN: r39354
2001-01-30 21:00:22 +00:00
Richard Henderson
0be25992bc
configure.in (target_makefile_frag): Use mt-alphaieee.
...
* 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-27 22:59:00 -08:00
Tom Tromey
65422ec58b
jni.cc (_Jv_JNIFunctions): Added comment for each entry in native interface structure.
...
* jni.cc (_Jv_JNIFunctions): Added comment for each entry in
native interface structure.
From-SVN: r39298
2001-01-27 19:30:31 +00:00