OSDN Git Service

2004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index 71ab0bf..2ef5d03 100644 (file)
@@ -1,3 +1,408 @@
+2004-07-14  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
+       flag to the gcj_setup.
+       (gcj_jacks_run): Check tclsh version and launch jacks directly with
+       the tclsh.
+       * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
+       deprecation flag change. 58 XFAILS removed.
+
+2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * configure.host (DIVIDESPEC) [s390*-*-*]: Set to 
+       -fno-use-divide-subroutine.
+       * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
+       (HANDLE_FPE): Define.
+       (SIGNAL_HANDLER): Change third argument to ucontext_t *.
+       (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
+       (HANDLE_DIVIDE_OVERFLOW): Define.
+
+2004-07-14  Michael Koch  <konqueror@gmx.de> 
+           Matthias Klose  <doko@debian.org> 
+
+       * java/awt/im/InputContext.java: Initialze in, line.
+
+2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * interpret.cc (run): Correctly access libffi return values of
+       integral smaller-than-int type; these are implicitly promoted.
+
+2004-07-13  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR libgcj/7587
+       * interpret.cc (compile_mutex): New.
+       (_Jv_InitInterpreter): New. Initialize compile_mutex.
+       (run): Lock compile_mutex before calling compile() if compilation is
+       required.
+       * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
+       * include/java-interp.h (_Jv_InitInterpreter): Declare. 
+
+2004-07-12  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR libgcj/15713
+       * include/jvm.h (_Jv_value): New union type.
+       * gcj/field.h (_Jv_Field): Add new _addr union field variants 
+       * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field 
+       union members.
+
+2004-07-12  Scott Gilbertson  <scottg@mantatest.com>
+
+       * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
+       * gnu/awt/xlib/XOffScreenImage.java
+         (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
+         constructor argument. Add constructor using ImageProducer.
+         (getSource): Implement.
+         (imageComplete): New method.
+         (setColorModel): New method.
+         (setDimensions): New method.
+         (setHints): New method.
+         (setPixels): New method.
+         (setProperties): New method.
+       * gnu/gcj/xlib/GC.java (drawPoint): New native method. 
+       * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
+
+2004-07-11  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR libgcj/16478 
+       * prims.cc (_Jv_CreateJavaVM): Fix comment.
+       * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
+       (finalizerReady): Now native.
+       (run): Likewise.
+       (runFinalizers): Removed.
+       * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
+       a primitive lock, and don't hold it while running the finalizers.
+       (runFinalizers): Implement. Don't aquire any Java lock.
+       (finalizerReady): Use lock primitives to signal finalizer thread.
+
+2004-07-11  Mark Wielaard  <mark@klomp.org>
+
+       Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
+       * java/net/URLStreamHandler.java (parseURL): When url file part
+       doesn't contain a '/' just ignore context.
+
+2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
+       (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
+       (MAKE_THROW_FRAME): Do not modify PSW address.
+       (INIT_SEGV): Install SIGINFO-style signal handler.
+       (INIT_FPE): Likewise.
+
+2004-07-10  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
+       status. 21 xfail's removed, 1 added.
+
+2004-07-10  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * gcj/javaprims.h: Regenerate CNI namespace definitions.
+
+2004-07-10  Ito Kazumitsu  <kaz@maczuka.gcd.org>
+
+       * java/text/MessageFormat.java
+       (formatInternal): Append "{n}" if argument n is unavailable.
+       (format(Object, StringBuffer, FieldPosition)): This
+       should be equivalent to format(Object[],
+       StringBuffer, FieldPosition).
+
+2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * java.util.Calendar.java (cache): New private static field. Cached
+       mappings of locales->calendar classes.
+       (ctorArgTypes): New private static field. Singleton argument for
+       calendar class constructor lookup.
+       (getInstance): Cache Locale->Calendar class mappings using HashMap.
+       Optimize by bypassing reflection instantiation for the 
+       GregorianCalendar case.
+
+2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * java/util/Calendar.java: Use getSystemClassLoader as argument for
+       ResourceBundle.getBundle() calls.
+       * java/util/GregorianCalendar.java: Likewise.
+       * java/util/Currency.java: Likewise.
+       * java/text/BreakIterator.java: Likewise.
+       * java/text/Collator.java: Likewise.
+       * java/text/DateFormat.java: Likewise.
+       * java/text/DateFormatSymbols.java: Likewise.
+       * java/text/DecimalFormatSymbols.java: Likewise.
+       * java/text/NumberFormat.java: Likewise.
+       * java/awt/Window.java: Likewise.       
+
+2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * java/util/ResourceBundle.java (bundleCache): Renamed from
+       resourceBundleCache. Update comments.
+       (getObject): Don't catch MissingResourceException.
+       (getBundle(String)): Remove 'final'. Use system classloader if
+       getCallingClassLoader returned null.
+       (getBundle(String, Locale)): Likewise.
+       (BundleKey): New private class. HashMap key for bundle cache lookup.
+       (lookupKey): New. Singleton instance of BundleKey.
+       (nullEntry): New. Cache entry to represent failed lookups.
+       (getBundle(String, Locale, ClassLoader)): Re-written to use new 
+       caching strategy, no-allocation lookup, and new tryBundle methods.
+       (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle 
+       name using given classloader.
+       (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify 
+       baseName for given Locale and attempt to load bundle.
+
+2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove 
+       illegal protected method calls.
+
+2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
+
+       Fix or remove some bogus test cases.
+       * testsuite/libjava.compile/pr10459_2.java: Removed.
+       * testsuite/libjava.compile/pr10459.java: Test using its own method,
+       not Object.clone().
+       * testsuite/libjava.compile/inner_data.java: Test against its own
+       protected field.
+
+2004-07-09  Michael Koch  <konqueror@gmx.de>
+
+       * scripts/unicode-muncher.pl: Updated to version 2.1
+       from GNU classpath. Added some clarifications on where to find the
+       needed files from www.unicode.org.
+       * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
+       gnu/gcj/convert/UnicodeData-3.0.0.txt:
+       Removed, these can directly be downloaded from www.unicode.org if
+       needed. 
+       * gnu/java/lang/CharData.java: Regenerated.
+       * include/java-chartables.h: Regenerated.
+       * Makefile.am (ordinary_java_source_files):
+       Removed gnu/java/lang/CharData.java.
+       * Makefile.in: Regenerated.
+
+2004-07-09  Michael Koch  <konqueror@gmx.de>
+
+       * java/security/AccessControlContext.java,
+       java/security/SecureClassLoader.java:
+       Fixed javadocs.
+
+2004-07-09  Michael Koch  <konqueror@gmx.de>
+
+       * java/io/ObjectInputStream.java (readFields): Use long datatype
+       when shifting byte values more then 24 bits left.
+
+2004-07-09  Michael Koch  <konqueror@gmx.de>
+
+       * java/util/zip/DeflaterOutputStream.java,
+       java/util/zip/GZIPInputStream.java,
+       java/util/zip/GZIPOutputStream.java,
+       java/util/zip/InflaterInputStream.java:
+       Reformatted. Added javadocs. Reordered all stuff.
+       Renamed variables to be more clear.
+
+2004-07-09  Michael Koch  <konqueror@gmx.de>
+
+       * javax/imageio/IIOException.java,
+       javax/imageio/event/IIOReadProgressListener.java,
+       javax/imageio/event/IIOReadUpdateListener.java,
+       javax/imageio/event/IIOReadWarningListener.java,
+       javax/imageio/event/IIOWriteProgressListener.java,
+       javax/imageio/event/IIOWriteWarningListener.java:
+       New files.
+       * Makefile.am: Added new files.
+       * Makefile.in: Regenerated.
+
+2004-07-09  Guilhem Lavaux <guilhem@kaffe.org>
+
+       * java/text/RuleBasedCollator.java
+       (mergeRules): Use ArrayList instead of Vector.
+       (subParseString): likewise.
+       (parseString): likewise.
+       (buildCollationVector): likewise.
+       (getCollationKey): likewise.
+
+2004-07-09  Dalibor Topic  <robilad@kaffe.org>
+
+       * java/text/DateFormat.java (parse):
+       Improved javadoc. Improved exception message.
+
+2004-07-09  Mark Wielaard  <mark@klomp.org>
+
+       * gnu/java/nio/SelectorImpl.java (select): Call static Thread
+       interrupted() method to clear interupt flag of our Thread.
+
+2004-07-09  Dalibor Topic  <robilad@kaffe.org>
+
+       * java/nio/Buffer.java,
+       java/nio/ByteBuffer.java,
+       java/nio/ByteBufferHelper.java,
+       java/nio/ByteBufferImpl.java,
+       java/nio/CharBuffer.java,
+       java/nio/CharBufferImpl.java,
+       java/nio/CharViewBufferImpl.java,
+       java/nio/DirectByteBufferImpl.java,
+       java/nio/DoubleBuffer.java,
+       java/nio/DoubleBufferImpl.java,
+       java/nio/DoubleViewBufferImpl.java,
+       java/nio/FloatBuffer.java,
+       java/nio/FloatBufferImpl.java,
+       java/nio/FloatViewBufferImpl.java,
+       java/nio/IntBuffer.java,
+       java/nio/IntBufferImpl.java,
+       java/nio/IntViewBufferImpl.java,
+       java/nio/LongBuffer.java,
+       java/nio/LongBufferImpl.java,
+       java/nio/LongViewBufferImpl.java,
+       java/nio/MappedByteBufferImpl.java,
+       java/nio/ShortBuffer.java,
+       java/nio/ShortBufferImpl.java,
+       java/nio/ShortViewBufferImpl.java:
+        Fixed javadocs all over. Improved input error
+        checking.
+
+       * java/nio/Buffer.java
+       (checkForUnderflow, checkForOverflow, checkIndex,
+       checkIfReadOnly, checkArraySize): New helper methods
+        for error checking.
+
+       * java/nio/ByteBufferHelper.java
+       (checkRemainingForRead, checkRemainingForWrite,
+       checkAvailableForRead, checkAvailableForWrite): Removed
+        no longer needed methods.
+
+2004-07-09  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/regexp/CharIndexedInputStream.java:
+       Reordered imports to match classpath.
+
+2004-07-09  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/java/awt/EmbeddedWindow.java:
+       Load native library for setWindowPeer method.
+
+2004-07-08  Randolph Chung  <tausq@debian.org>
+
+       * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
+       * configure: Regenerate.
+       * configure.host: Set can_unwind_signal for hppa*-linux.
+       * include/pa-signal.h: New file.
+
+2004-07-07  Per Bothner  <per@bothner.com>
+
+       * Makefile.am:  Add rules to build libgij from just gij.cc.
+
+       * include/jvm.h (namespace jcj):  Declare verbose_class_flag
+       * java/lang/natClass.cc (gcj::verbose_class_flag):  New variable.
+       (initializeClass):  If verbose_class_flag, print message.
+       * gij.cc (main):  Handle -verbose:class flag.
+
+2004-07-07  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * configure.host: Enable hash synchronization on Darwin.
+       * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
+       ';', since this is a comment on Darwin.
+       (compare_and_swap_release): Likewise.
+
+2004-07-06  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * java/net/URLStreamHandler.java (parseURL): Canonicalize
+       file portion of URL in addition to spec for file: protocol.
+
+2004-07-05  Anthony Green  <green@redhat.com>
+
+       * java/io/File.java (toURI): Merge from Classpath.
+
+2004-07-05  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
+       before passing to URL constructor. Rethrow any MalformedURLException
+       as a RuntimeException. Catch MalformedURLException specifically, not
+       all exceptions.
+
+2004-07-05  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * java/util/Locale.java (readObject): Intern strings read from object
+       stream.
+
+2004-07-04  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/gcj/runtime/FirstThread.java,
+       gnu/gcj/runtime/natFirstThread.cc: Removed.
+       * gnu/java/lang/MainThread.java,
+       gnu/java/lang/natMainThread.cc: New files.
+       * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
+       * Makefile.am: Added new files and removed deleted ones.
+       * Makefile.in: Regenerated.
+
+2004-07-03  Mark Wielaard  <mark@klomp.org>
+           Anthony Green  <green@redhat.com>
+
+       * java/net/URL.java (getFile): Clarify return value doc.
+       (getPath): Return null if file is empty - not empty String.
+       (set): Convert protocol to lower case before doing anything.
+       Only change the protocol handler if it's different.
+
+2004-07-03  Anthony Green  <green@redhat.com>
+
+       * java/net/URL.java (URL): Convert protocol to lower case before
+       doing anything, so we getURLStreamHandler() with the proper value.
+
+2004-07-02  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * java/util/Locale.java (hashcode): Made transient.
+       (hashCode): No longer synchronized.
+       (equals): Remove comment.
+       (writeObject): No longer synchronized. Implement using writeObject 
+       calls instead of tweaking hashCode field. Update doc.
+       (readObject): Implement using readObject calls.
+
+2004-06-26  Geoffrey Keating  <geoffk@apple.com>
+           Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * configure.host (powerpc-*-darwin*): New case, define
+       can_unwind_signal.
+       * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
+       * configure: Regenerate.
+       * include/darwin-signal.h: New.
+
+2004-06-30  Jerry Quinn  <jlquinn@optonline.net>
+
+       * java/beans/Statement.java (doExecute): Fix formatting.
+
+2004-06-29  Per Bothner  <per@bothner.com>
+
+       * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
+       etc etc):  Remove needless parenthesis, which causes __stdcall__
+       attribute on MinGW to get ignored.
+
+2004-06-29  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
+
+2004-06-28  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
+
+2004-06-28  Jerry Quinn  <jlquinn@optonline.net>
+
+       * java/beans/Expression.java: New file.
+       * java/beans/Statement.java: New file.
+       * Makefile.am: Added new files.
+       * Makefile.in: Re-generate.
+
+2004-06-27 Mark Wielaard  <mark@klomp.org>
+
+       * java/io/FilePermission.java (usingPerms): Removed.
+       (actionsString): Made final.
+       (cachePerms): Renamed to checkPerms.
+       (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
+       on action String.
+       (FilePermission): Check arguments, call checkPerms().
+       (equals): Remove cachePerms() call.
+       (implies): Likewise.
+
+2004-06-27  Mark Wielaard  <mark@klomp.org>
+
+       * gnu/java/net/protocol/http/Connection.java (userAgent): New static
+       final field.
+       (sendRequest): Use new field in user-agent http agent.
+
 2004-06-27  Mark Wielaard  <mark@klomp.org>
 
        * java/awt/EventQueue.java (postEvent): Throw NullPointerException