aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2004-07-20re PR libgcj/16591 (Missing '#ifndef DISABLE_MAIN_ARGS' in _Jv_RunMain ↵Bryce McKinlay2-0/+8
(libjava/prims.cc)) 2004-07-20 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/16591 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS is defined. From-SVN: r84964
2004-07-20Socket.java (getImpl): Now private.Bryce McKinlay2-2/+5
2004-07-20 Bryce McKinlay <mckinlay@redhat.com> * java/net/Socket.java (getImpl): Now private. Remove comment. From-SVN: r84963
2004-07-20BufferedWriter.java (BufferedWriter): Use existing lock of chained Writer ↵Bryce McKinlay4-4/+11
when calling super-constructor. 2004-07-20 Bryce McKinlay <mckinlay@redhat.com> * java/io/BufferedWriter.java (BufferedWriter): Use existing lock of chained Writer when calling super-constructor. * java/io/FilterWriter.java (FilterWriter): Likewise. * java/io/PrintWriter.java (PrintWriter): Likewise. From-SVN: r84959
2004-07-20prims.cc (process_gcj_properties): Don't increment i within LHS of assignment.Bryce McKinlay2-2/+9
2004-07-19 Bryce McKinlay <mckinlay@redhat.com> * prims.cc (process_gcj_properties): Don't increment i within LHS of assignment. From-SVN: r84957
2004-07-19Print -verbose:message on "loading", not initialization.Per Bothner5-7/+27
* java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order. * defineclass.cc (_Jv_ClassReader::parse): Print message if gcj::verbose_class_flag. * java/lang/natClass.cc (initializeClass): Don't print message here. * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message. (_Jv_PrepareCompiledClass): Likewise. From-SVN: r84926
2004-07-18configure.in: Substitute target_noncanonical.Matthias Klose3-343/+353
2004-07-18 Matthias Klose <doko@debian.org> * configure.in: Substitute target_noncanonical. * configure: Regenerate From-SVN: r84888
2004-07-17String.java: Fixed javadocs all over.Michael Koch2-20/+24
2004-07-17 Michael Koch <konqueror@gmx.de> * java/lang/String.java: Fixed javadocs all over. From-SVN: r84870
2004-07-17[multiple changes]Michael Koch4-9/+42
2004-07-17 Mark Wielaard <mark@klomp.org> * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate when size is smaller. * java/io/RandomAccessFile.java (setLength): Use truncate for shrinking the file and seek plus write for expanding the file. 2004-07-17 Michael Koch <konqueror@gmx.de> * gnu/java/nio/channels/natFileChannelPosix.cc (implTruncate): Always save current position. Only reposition file pointer to where we started if not beyond new lenght. Reposition file pointer to file length if it points beyond the end of file. From-SVN: r84868
2004-07-17Box.java: Put FIXME comment above class declaration.Mark Wielaard16-38/+57
2004-07-17 Mark Wielaard <mark@klomp.org> * javax/swing/Box.java: Put FIXME comment above class declaration. * javax/swing/JButton.java: Remove illegal L&F HTML from comments. * javax/swing/JCheckBox.java: Likewise. * javax/swing/JDialog.java: Likewise. * javax/swing/JRadioButton.java: Likewise. * javax/swing/JToggleButton.java: Likewise. * javax/swing/UIManager.java: Likewise. * javax/swing/border/TitledBorder.java: Likewise. * javax/swing/plaf/basic/BasicLabelUI.java: Likewise. * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise. * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise. * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise. * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise. * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise. * javax/swing/text/JTextComponent.java: Likewise. From-SVN: r84866
2004-07-17[multiple changes]Michael Koch4-8/+30
2004-07-17 Jeroen Frijters <jeroen@frijters.net> * java/net/DatagramPacket.java (setAddress): Removed check for null address. 2004-07-17 Michael Koch <konqueror@gmx.de> * java/net/DatagramSocket.java (getLocalAddress): Check if socket is bound or not. * java/net/Socket.java (getLocalAddrss): Check if socket is bound or not. (getPort): Return -1 when not connected. Dont check getImpl() for null. (setReuseAddress): Check if socket is closed. (isConnected): Check if getImpl() returns null. From-SVN: r84864
2004-07-17InvocationEvent.java (dispatch): Synchronize on notifier object before ↵Mark Wielaard2-2/+12
calling notifyAll(). 2004-07-17 Mark Wielaard <mark@klomp.org> * java/awt/event/InvocationEvent.java (dispatch): Synchronize on notifier object before calling notifyAll(). From-SVN: r84859
2004-07-172004-07-17 Michael Koch <konqueror@gmx.de>Michael Koch2-5/+13
* gnu/java/nio/channels/FileChannelImpl.java (finalize): Added javadoc. From-SVN: r84858
2004-07-172004-07-17 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2-23/+28
* java/text/CollationElementIterator.java (text_decomposition): Changed type to RuleBasedCollator.CollationElement[] (setText): Use ArrayList instead of Vector. From-SVN: r84857
2004-07-172004-07-17 Michael Koch <konqueror@gmx.de>Michael Koch3-12/+12
* java/nio/ByteOrder.java (static): Removed. Not needed. Thanks to Patrick Reali for noticing. * java/nio/charset/CharsetDecoder.java (decode): Fix for classpath bug #9177: Reset state before flipping. From-SVN: r84856
2004-07-17Security.java: Fixed javadocs all over.Michael Koch2-10/+14
2004-07-17 Michael Koch <konqueror@gmx.de> * java/security/Security.java: Fixed javadocs all over. From-SVN: r84855
2004-07-172004-07-17 Michael Koch <konqueror@gmx.de>Michael Koch5-35/+32
* gnu/java/awt/EmbeddedWindow.java (static): Removed. (addNotify): Set peer via reflection. (setWindowPeer): Removed. * gnu/java/awt/natEmbeddedWindow.cc: Removed. * Makefile.am (nat_source_files): Removed gnu/java/awt/natEmbeddedWindow.cc. * Makefile.in: Regenerated. From-SVN: r84854
2004-07-16configure.in (ZIP, GCJH): Remove white space around '=' in variable assignment.Richard Earnshaw3-12/+18
* configure.in(ZIP, GCJH): Remove white space around '=' in variable assignment. * configure: Regenerated. From-SVN: r84843
2004-07-16configure.in: Use build_noncanonical rather than build_alias.Nathanael Nerode3-347/+349
* configure.in: Use build_noncanonical rather than build_alias. * configure: Rebuild. From-SVN: r84835
2004-07-16configure.in: Eliminate CANADIAN and NULL_TARGET variables by logic refactoring.Nathanael Nerode3-269/+240
* configure.in: Eliminate CANADIAN and NULL_TARGET variables by logic refactoring. Move default definition of NATIVE closer to first alternate definition. * configure: Regenerate. From-SVN: r84834
2004-07-16Makefile.am: Set ZIP and GCJH directly using autoconf.Nathanael Nerode8-127/+143
* Makefile.am: Set ZIP and GCJH directly using autoconf. * Makefile.in, include/Makefile.in, testsuite/Makefile.in, gcj/Makefile.in: Regenerate. * configure.in: Set ZIP and GCJH. Remove redundant condition in AM_CONDITIONAL(NATIVE,...) * configure: Regenerate. From-SVN: r84832
2004-07-16configure.in: Use target_noncanonical rather than target_alias for ↵Nathanael Nerode11-18/+82
forward-compatibility with... * configure.in: Use target_noncanonical rather than target_alias for forward-compatibility with autoconf 2.59. * configure: Regenerate. * Makefile.am, gcj/Makefile.am, include/Makefile.am, testsuite/Makefile.am: Substitute target_noncanonical. * Makefile.in, gcj/Makefile.in, include/Makefile.in, testsuite/Makefile.in: Regenerate. From-SVN: r84802
2004-07-16configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.Nathanael Nerode5-453/+483
* configure.in: Move as much as possible below AC_CANONICAL_SYSTEM. Introduce _GCC_TOPLEV_NONCANONICAL_TARGET. * acinclude.m4: Include acx.m4. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r84797
2004-07-15re PR libgcj/16574 (java.sql.Timestamp#toString() does not deal with ↵Bryce McKinlay2-15/+46
fractional seconds correctly) 2004-07-15 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/16574 * java/sql/Timestamp.java (dateFormat): Renamed from sdf. (decimalFormat): New static variable. (sbuf): Likewise. (getTime): New. Override Date.getTime(). (toString): Synchronize. Use decimalFormat to format nanos value correctly. Truncate extra zeros. (before): Compare getNanos() only if getTime() is equal. (after): Likewise. From-SVN: r84784
2004-07-15acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...Nathanael Nerode5-835/+695
* acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into... * configure.in: ...here. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r84749
2004-07-15aclocal.m4: Rebuilt with aclocal gcj-1.4.Nathanael Nerode7-1470/+21
* aclocal.m4: Rebuilt with aclocal gcj-1.4. * configure: Rebuilt with autoconf 2.13. * Makefile.in, gcj/Makefile.in, include/Makefile.in, testsuite/Makefile.in: Rebuilt with automake gcj-1.4. From-SVN: r84743
2004-07-15re PR libgcj/16204 (File I/O fails on files >= 2^31 bytes (2GB))Bryce McKinlay5-1/+50
2004-07-14 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/16204 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable large file support. * Makefile.in: Rebuilt. * testsuite/libjava.lang/LargeFile.java: New test case. * testsuite/libjava.lang/LargeFile.out: New file. From-SVN: r84733
2004-07-14EventHandler.java: Remove debugging statements.Jerry Quinn2-3/+4
2004-07-14 Jerry Quinn <jlquinn@optonline.net> * java/beans/EventHandler.java: Remove debugging statements. From-SVN: r84715
2004-07-14EventHandler.java: New file.Jerry Quinn7-12/+415
2004-07-14 Jerry Quinn <jlquinn@optonline.net> * java/beans/EventHandler.java: New file. * Makefile.am (awt_java_source_files): Add EventHandler.java. * Makefile.in, gcj/Makefile.in, include/Makefile.in, testsuite/Makefile.in: Regenerate. From-SVN: r84714
2004-07-14jacks.exp (gcj_jacks_write): Add deprecation flag to the gcj_setup.Andreas Tobler3-61/+24
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. From-SVN: r84710
2004-07-14s390.md ("udivsi3"): Ensure trap is generated for division by zero.Ulrich Weigand3-3/+166
gcc/ChangeLog: * config/s390/s390.md ("udivsi3"): Ensure trap is generated for division by zero. ("umodsi3"): Likewise. libjava/ChangeLog: * 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. From-SVN: r84683
2004-07-13InputContext.java: Initialze in, line.Michael Koch2-2/+7
2004-07-14 Michael Koch <konqueror@gmx.de> Matthias Klose <doko@debian.org> * java/awt/im/InputContext.java: Initialze in, line. Co-Authored-By: Matthias Klose <doko@debian.org> From-SVN: r84648
2004-07-13interpret.cc (run): Correctly access libffi return values of integral ↵Ulrich Weigand2-3/+8
smaller-than-int type... * interpret.cc (run): Correctly access libffi return values of integral smaller-than-int type; these are implicitly promoted. From-SVN: r84645
2004-07-13re PR libgcj/7587 (direct threaded interpreter not thread-safe)Bryce McKinlay4-2/+38
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. From-SVN: r84644
2004-07-13re PR libgcj/15713 (compile interpret.cc with -fno-strict-aliasing)Bryce McKinlay4-36/+57
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. From-SVN: r84596
2004-07-12XCanvasPeer.java (createImage): Implement.Scott Gilbertson5-5/+140
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. From-SVN: r84564
2004-07-11re PR libgcj/16478 (Hash synchronization deadlock with finalizers)Bryce McKinlay1-1/+1
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. From-SVN: r84534
2004-07-11re PR awt/16748 (IAA.ImageComponentsTest: Freezes When Window Is Resized)Bryce McKinlay4-52/+63
2004-07-11 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/16748 * 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. From-SVN: r84531
2004-07-11Reported by Roman Kennke <roman@ontographics.com> (bug #9331)Mark Wielaard2-3/+11
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. From-SVN: r84518
2004-07-11linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and SIGBUS signal frames...Ulrich Weigand2-14/+15
ChangeLog: * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and SIGBUS signal frames, the PSW address points *to* the faulting instruction, not after it. libjava/ChangeLog: * 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. From-SVN: r84506
2004-07-10jacks.xfail: Updates to reflect current status.Bryce McKinlay2-21/+5
2004-07-10 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current status. 21 xfail's removed, 1 added. From-SVN: r84461
2004-07-10javaprims.h: Regenerate CNI namespace definitions.Bryce McKinlay2-0/+5
2004-07-10 Bryce McKinlay <mckinlay@redhat.com> * gcj/javaprims.h: Regenerate CNI namespace definitions. From-SVN: r84459
2004-07-102004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>Ito Kazumitsu2-36/+41
* 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). From-SVN: r84448
2004-07-10java.util.Calendar.java (cache): New private static field.Bryce McKinlay2-17/+66
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. From-SVN: r84438
2004-07-10Calendar.java: Use getSystemClassLoader as argument for ↵Bryce McKinlay11-10/+25
ResourceBundle.getBundle() calls. 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. From-SVN: r84437
2004-07-10ResourceBundle.java (bundleCache): Renamed from resourceBundleCache.Bryce McKinlay2-168/+203
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. From-SVN: r84434
2004-07-10BasicMenuUI.java (mousePressed): Remove illegal protected method calls.Bryce McKinlay2-2/+5
2004-07-09 Bryce McKinlay <mckinlay@redhat.com> * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove illegal protected method calls. From-SVN: r84421
2004-07-10Fix or remove some bogus test cases.Bryce McKinlay4-12/+20
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. From-SVN: r84420
2004-07-09unicode-muncher.pl: Updated to version 2.1 from GNU classpath.Michael Koch8-12534/+1747
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. From-SVN: r84399
2004-07-09AccessControlContext.java, [...]: Fixed javadocs.Michael Koch3-72/+75
2004-07-09 Michael Koch <konqueror@gmx.de> * java/security/AccessControlContext.java, java/security/SecureClassLoader.java: Fixed javadocs. From-SVN: r84383
2004-07-09ObjectInputStream.java (readFields): Use long datatype when shifting byte ↵Michael Koch2-8/+13
values more then 24 bits left. 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. From-SVN: r84382