X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libjava%2FChangeLog;h=2affb64ded11da37ddf514f06eb4e87dbfe0535b;hb=05ef1cd123368689a6cf0107db13504914cf364a;hp=3f244b7b46210d360eae5f3ed80af90393865daf;hpb=c20e2d491bcf5e77c10e3bb5624b1016c7ffb1b2;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3f244b7b462..2affb64ded1 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,418 @@ +2001-03-18 Mark Wielaard + + * java/lang/natClass.cc (_Jv_CheckCast): add class names to exception + +2001-03-18 Mark Wielaard + + * gnu/gcj/runtime/FirstThread.java (main): replace / with . in + jarMainClassName + +2001-03-17 Tom Tromey + + * java/lang/natString.cc (rehash): Don't bother with memset; + _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked. + Use UNMASK_PTR. + (UNMASK_PTR): New macro. + (intern): Unmask pointer before returning it. Register finalizer + for the string. + (unintern): Handle case where + (MASK_PTR): New macro. + (PTR_MAKSED): Likewise. + (_Jv_NewStringUtf8Const): Use UNMASK_PTR. + +2001-03-01 Andrew Haley + + * java/lang/natThrowable.cc (printRawStackTrace): Copy the + stackTrace buffer to a correctly aligned pointer array. + +2001-03-12 Bryce McKinlay + + * java/lang/Runtime.java (_exit): Declare new package-private native. + * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but + without a security manager check. + (exit): Call _exit after security check. + * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime + "naturally". + * java/lang/System.java (setSecurityManager): If a security manager + is already in place, call checkPermission. + * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace() + throws an exception, try to deal with it gracefully. + * java/lang/ExceptionInInitializerError.java (printStackTrace): + Only try to print the subordinate stack trace if "exception" is set. + Print our class name first. + +>>>>>>> 1.710 +2001-03-08 Tom Tromey + + * java/io/ObjectStreamClass.java (setUID): Don't write interface + info for array classes. + Fixes PR libgcj/1971. + +>>>>>>> 1.707 +2001-03-06 Bryce McKinlay + + * java/util/TreeSet.java (writeObject): Use a for-loop instead of + Iterator.hasNext(). + +2001-03-05 Jochen Hoenicke + + * 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. + +>>>>>>> 1.706 +2001-03-01 Per Bothner + + Changes merged from Kawa's gnu.math. + * 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. + +2001-02-27 Bryce McKinlay + + * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static + linking. + +2001-02-23 Per Bothner + + Change to sometimes include class name in ClassFormatError message. + * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature, + _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return + boolean instead of throwing ClassFormatError on failure. + (throw_class_format_error): Change static function to method. + (_Jv_ClassReader): New inline methods verify_identifier, + two overloads of verify_classname, verify_field_signature, and + verify_method_signature + * include/java-interp.h: Update declarations to return bool. + * java/lang/natClassLoader.cc (defineClass0): Explicitly throw + ClassFormatError since _Jv_VerifyClassName now returns bool. + +2001-02-23 Per Bothner + + * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to + c++filt to select java-style output. + +2001-02-22 Bryce McKinlay + + 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. + +2001-02-21 Bryce McKinlay + + 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. + +2001-02-20 Tom Tromey + + * 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. + +2001-02-16 Tom Tromey + + * java/lang/ThreadGroup.java (activeCount): Only include threads + which are alive. + (enumerate): Likewise. + +>>>>>>> 1.705 +2001-02-19 Bryce McKinlay + + * 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. + + * 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. + +>>>>>>> 1.696 +2001-02-17 Mark Wielaard + + * java/util/TimerTask.java: New version from Classpath. + +2001-02-17 Mark Wielaard + + Remerge with Classpath + (changes by Bryce McKinlay ) + * 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. + +2001-02-17 Mark Wielaard + + * HACKING: new file + +2001-02-17 Mark Wielaard + + * 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 + +2001-02-16 Bryce McKinlay + + * java/util/TreeSet.java (clone): Made subclass safe, use + super.clone(), not new. + * java/util/TreeMap.java (clone): Likewise. + + * java/util/TreeMap.java (nil): Made non-final. + (clone): Create new nil node for copy. + + * java/util/HashSet.java (clone): Made subclass safe, use + super.clone(), not new. + +2001-02-14 Andrew Haley + + * include/i386-signal.h (INIT_SEGV): Use a direct system call to + set the handler. + +2001-02-15 Anthony Green + + * 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. + +2001-02-15 Bryce McKinlay + + * 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. + + * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public. + * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call + Rectangle.clone(), not Object.clone(). + + * java/util/HashSet.java (clone): Remove try/catch. + + * 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. + +2001-02-14 Bryce McKinlay + + * 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. + + * 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. + +2001-02-13 Tom Tromey + + * 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. + +2001-02-13 Tom Tromey + + * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public. + +2001-02-13 Tom Tromey + + Fix for PR libgcj/1351: + * posix.cc (_Jv_select): Throw InterruptedIOException if thread is + interrupted. + Include Thread.h and InterruptedIOException.h. + +2001-02-13 Bryce McKinlay + + * java/io/BlockDataException.java: Removed. + * java/io/ObjectInputStream.java (readObject): Throw + StreamCorruptedException, not BlockDataException. + * Makefile.am: Remove BlockDataException. + * Makefile.in: Rebuild. + +2001-02-12 Jeff Sturm + Tom Tromey + + * interpret.cc (continue1): [insn_invokevirtual] Do an explicit + null pointer check. + +2001-02-09 Tom Tromey + + * java/util/Timer.java: New version from Classpath. + +2001-02-09 Bryce McKinlay + + * 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. + +2001-02-09 Alexandre Petit-Bianco + + * java/io/File.java (java.net): Imported. + (getAbsoluteFile): Added. + (getCanonicalPath): Likewise. + (toURL): Likewise. + +2001-02-08 Bryce McKinlay + + * 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. + + * java/io/OutputStreamWriter.java: (flush, writeChars): Throw + IOException if stream closed. + +2001-02-08 Tom Tromey + + * java/lang/Float.java (parseFloat): New method. + +2001-02-08 Tom Tromey + + From paul@dawa.demon.co.uk. Fix for PR libgcj/1913: + * java/io/InputStreamReader.java (ready, read): Throw IOException + if stream has been closed. + +2001-02-08 Joseph S. Myers + + * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc: + Change sources.redhat.com and sourceware.cygnus.com references to + gcc.gnu.org. + +2001-02-07 Tom Tromey + + 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[]. + +2001-02-07 Bryce McKinlay + + * java/util/Arrays.java: Removed "cmp" methods. + (qsort): Don't use "cmp". + (med3): Likewise. + +2001-02-07 Mark Benvenuto + + * java/util/Arrays.java (qsort): Handle N value of 7 with insertion + sort. Fix for PR java/1895. + +2001-02-03 Jeff Sturm + + * configure.host: Use sjlj-exceptions for Alpha. + +2001-02-03 Bryce McKinlay + + * libgcj.spec.in: Don't force static libgcc into the executable. + * configure.in (FORCELIBGCCSPEC): Removed. + * configure: Rebuilt. + +2001-01-31 Tom Tromey + + * Makefile.in: Rebuilt. + * Makefile.am (LTCXXCOMPILE): New macro. + +2001-01-26 Andrew Haley + + (INIT_FPE): Use a direct system call to set the handler. + +2001-01-27 Richard Henderson + + * configure.host (alpha*-*) [libgcj_flags]: Add -mieee. + +2001-01-27 Tom Tromey + + * jni.cc (_Jv_JNIFunctions): Added comment for each entry in + native interface structure. + +2001-01-27 Bryce McKinlay + + * 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. + +2001-01-26 Tom Tromey + + * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external + to internal representation. + (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use + _Jv_FindClassFromSignature. + +2001-01-26 Warren Levy + + * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff + and timezone if they are available on the system. + 2001-01-24 Tom Tromey * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.