aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-08-23re PR libgcj/8823 (gij doesn't handle "Miranda methods" (abstract class that ↵Andreas Tobler2-1/+5
implements interface but doesn't define all methods)) 2003-08-23 Andreas Tobler <a.tobler@schweiz.ch> PR libgcj/8823 * libjava.lang/pr8823.xfail: Removed. From-SVN: r70730
2003-08-22GdkGraphics.java (drawString): Pass font name, not XLFD, to native drawString.Thomas Fitzsimmons4-13/+33
2003-08-22 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GdkGraphics.java (drawString): Pass font name, not XLFD, to native drawString. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString): Replace XLFD-based implementation with Pango-based implementation. From-SVN: r70698
2003-08-22GtkWindowPeer.java: Remove GTK_WINDOW_DIALOG.Thomas Fitzsimmons3-5/+9
2003-08-22 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkWindowPeer.java: Remove GTK_WINDOW_DIALOG. Set GTK_WINDOW_POPUP to 1. From-SVN: r70688
2003-08-21re PR libgcj/12013 (Calling Reference.clear() can cause runtime to crash.)David Daney3-9/+25
2003-08-21 David Daney <ddaney@avtrex.com> Fix for PR libgcj/12013: * java/lang/ref/natReference.cc (finalize_referred_to_object): Check `cleared' field. * java/lang/ref/Reference.java (copy): Updated comments. (cleared): New field. (clear): Rewrote. From-SVN: r70668
2003-08-21Makefile.am (gtk_awt_peer_sources): Add gnu/java/awt/peer/GLightweightPeer.java.Scott Gilbertson9-106/+169
2003-08-21 Scott Gilbertson <scottg@mantatest.com> Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (gtk_awt_peer_sources): Add gnu/java/awt/peer/GLightweightPeer.java. Remove gnu/java/awt/GLightweightPeer.java. * gnu/java/awt/GLightweightPeer.java: Remove file. * gnu/java/awt/peer/GLightweightPeer.java: New file. * java/awt/Component.java (getToolkit): Add comment about lightweight components. * java/awt/Toolkit.java (createComponent): Return gnu.java.awt.peer.GLightweightPeer. Co-Authored-By: Thomas Fitzsimmons <fitzsim@redhat.com> From-SVN: r70657
2003-08-21configure.in: Fix detection of gcj when building with newlib.Richard Earnshaw3-10/+15
* configure.in: Fix detection of gcj when building with newlib. * configure: Regenerated. From-SVN: r70644
2003-08-20jni.cc: Replace "cheating" pointer-casting code with extract_from_jvalue<> ↵Graydon Hoare2-5/+20
template. 2003-08-20 Graydon Hoare <graydon@redhat.com> * jni.cc: Replace "cheating" pointer-casting code with extract_from_jvalue<> template. From-SVN: r70613
2003-08-20[multiple changes]Andrew Haley4-11/+39
2003-01-31 Andrew Haley <aph@redhat.com> * except.c (prepare_eh_table_type): Use new encoding for exception handlers when using -fno-assume-compiled. 2003-08-20 Andrew Haley <aph@redhat.com> * gnu/gcj/runtime/StackTrace.java (getClass): New method. * gnu/gcj/runtime/natStackTrace.cc (getClass): New method. (classAt): Break out class lookup function into getClass(). * exception.cc (PERSONALITY_FUNCTION): Use new encoding for exception handlers when using -fno-assume-compiled. From-SVN: r70605
2003-08-20Fix typo.Andrew Haley1-2/+2
From-SVN: r70604
2003-08-20re PR libgcj/9125 (VMClassLoader should cache the result of ↵Tom Tromey3-6/+51
Runtime.(internal)loadLibrary()) Fix for PR libgcj/9125: * gnu/gcj/runtime/natVMClassLoader.cc (findClass): Find Runtime object outside of loop. Respect lib_control setting. * gnu/gcj/runtime/VMClassLoader.java (tried_libraries): New field. (lib_control): New field. (LIB_FULL, LIB_CACHE, LIB_NEVER): New constants. (VMClassLoader): Initialize new field. From-SVN: r70600
2003-08-20natReference.cc (finalize_referred_to_object): Set `list->reference' to ↵Tom Tromey2-3/+24
DELETED_REFERENCE when removing dead object. * java/lang/ref/natReference.cc (finalize_referred_to_object): Set `list->reference' to DELETED_REFERENCE when removing dead object. (find_slot): Added an assert. (DELETED_REFERENCE): New define. (add_to_hash): Check for DELETED_REFERENCE. (remove_from_hash): Just return if found slot isn't ours. From-SVN: r70599
2003-08-20prims.cc (unblock_signal): New function.Andrew Haley2-0/+22
2003-08-19 Andrew Haley <aph@redhat.com> * prims.cc (unblock_signal): New function. (SIGNAL_HANDLER): Use it. (SIGNAL_HANDLER): Likewise. From-SVN: r70598
2003-08-19libjava.exp (libjava_arguments): Add $libjava to the list of libraries.Jeff Sturm2-0/+6
2003-08-19 Jeff Sturm <jsturm@one-point.com> * lib/libjava.exp (libjava_arguments): Add $libjava to the list of libraries. From-SVN: r70572
2003-08-19re PR libgcj/11575 ([win32] Problem with RandomAccessFile)Danny Smith2-8/+20
PR libgcj/11575 * java/io/natFileDescriptorWin32.cc (open): Set create flag to OPEN_AWAYS when READ & WRITE regardless of APPEND flag. Honor EXCL when openning with WRITE flag. From-SVN: r70565
2003-08-19jvm.h: New class _Jv_TempUTFString (helper class for getting a temporary C ↵Mohan Embar2-0/+81
string from... * include/jvm.h: New class _Jv_TempUTFString (helper class for getting a temporary C string from a jstring) New macro JV_TEMP_UTF_STRING, which leverages _Jv_TempUTFString but uses a stack buffer if the string length is less than 256 bytes. From-SVN: r70564
2003-08-18re PR libgcj/11951 (natMethod.cc (_Jv_CallAnyMethodA) should clear ↵Tom Tromey4-60/+86
ffi_result before ffi_call) PR libgcj/11951: * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Returns void. Throw VirtualMachineError if ffi fails. Initialize return value. Added is_jni_call argument; only wrap exception if not a JNI call. Use descriptive message if operation not supported. (_Jv_GetTypesFromSignature): Use declaring class' loader to find array class. * include/jvm.h (_Jv_CallAnyMethodA): Updated declaration. * jni.cc (_Jv_JNI_CallAnyMethodV): Updated for new form of _Jv_CallAnyMethodA. (_Jv_JNI_CallAnyMethodA): Likewise. (_Jv_JNI_CallAnyVoidMethodV): Likewise. (_Jv_JNI_CallAnyVoidMethodA): Likewise. From-SVN: r70544
2003-08-18re PR libgcj/11951 (natMethod.cc (_Jv_CallAnyMethodA) should clear ↵Tom Tromey4-0/+38
ffi_result before ffi_call) PR libgcj/11951: * libjava.jni/pr11951.c: New file. * libjava.jni/pr11951.out: New file. * libjava.jni/pr11951.java: New file. From-SVN: r70543
2003-08-13* gij.cc (help): Document -? and -X.Tom Tromey2-1/+6
From-SVN: r70407
2003-08-13Font.java: Stub out more recent API.Graydon Hoare2-5/+784
2003-08-12 Graydon Hoare <graydon@redhat.com> * java/awt/Font.java: Stub out more recent API. From-SVN: r70404
2003-08-13Color.java (getAlpha): Prevent sign-extended alpha values.Graydon Hoare2-1/+6
2003-08-12 Graydon Hoare <graydon@redhat.com> * java/awt/Color.java (getAlpha): Prevent sign-extended alpha values. From-SVN: r70401
2003-08-12* gij.cc (main): Handle -? and -X.Tom Tromey2-2/+15
From-SVN: r70390
2003-08-12re PR java/5641 (Verifier ICE on reference to inherited method)Tom Tromey4-18/+4
* libjava.jacks/jacks.xfail: Updated to account for new passes. * libjava.compile/abstr.xfail: Now can compile from bytecode. * libjava.compile/PR5641.xfail: Now can compile from bytecode. From-SVN: r70387
2003-08-122003-08-10 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2-10/+18
* java/awt/Container.java (getPreferredSize): Call preferredSize. (preferredSize): Moved body of getPreferredSize here. (getMinimumSize): Call minimumSize. (minimumSize): Moved body of getMinimumSize here. From-SVN: r70386
2003-08-12mauve.exp (test_mauve_sim): Don't find DejaGNUTestHarness in gnu/testlet.Tom Tromey2-6/+19
* libjava.mauve/mauve.exp (test_mauve_sim): Don't find DejaGNUTestHarness in gnu/testlet. (test_mauve): Use correct object extension. From-SVN: r70381
2003-08-12libjava.exp (libjava_find_lib): Search for .so file first.Tom Tromey2-25/+27
* lib/libjava.exp (libjava_find_lib): Search for .so file first. (libjava_arguments): Don't add libraries to link line explictly. From-SVN: r70379
2003-08-11EventQueue.java (currentEvent, lastWhen): New fields.Tom Tromey2-5/+52
* java/awt/EventQueue.java (currentEvent, lastWhen): New fields. (postEvent): Removed FIXME comment. (isDispatchThread): Documented. (getCurrentEvent): New method. (dispatchEvent): Set currentEvent and lastWhen. (getMostRecentEventTime): Rewrote. (invokeLater): Documented. From-SVN: r70333
2003-08-10re PR libgcj/11778 (System.out PrintStream does too much buffering)Bryce McKinlay2-17/+33
* java/io/PrintStream.java (print): Always flush if auto_flush is set. Don't check for newline characters. (write (int)): Implement without using a temporary array. (write (byte[], int, int): Always flush if auto_flush is set. Don't check for newline characters. Fixes PR libgcj/11778. From-SVN: r70284
2003-08-08[multiple changes]Andrew Haley5-4/+20
2003-08-08 Andrew Haley <aph@redhat.com> * Makefile.am (AM_CXXFLAGS): Define BOOT_CLASS_PATH. * Makefile.in: Rebuild. * java/lang/natRuntime.cc (insertSystemProperties): Add "sun.boot.class.path". 2003-08-07 Andrew Haley <aph@redhat.com> * java/io/PrintStream.java: Don't crash on a null string. From-SVN: r70250
2003-08-07configure.in: Set INCLUDES to absolute path.Rainer Orth6-313/+306
boehm-gc: * configure.in: Set INCLUDES to absolute path. Save $INCLUDES in boehm-cflags, too. Set INCLUDES so it's available to config.status. * configure: Regenerate. libjava: * configure.in: Don't initialize GCINCS to boehm-gc/include. * configure: Regenerate. libjava/libltdl: * configure.in: Don't initialize GCINCS to boehm-gc/include. * Regenerate. Co-Authored-By: Roger Sayle <roger@eyesopen.com> From-SVN: r70233
2003-08-07re PR libgcj/10868 (java.net.ServerSocket's constructors create and leak ↵Bryce McKinlay3-134/+32
extra sockets) * java/net/Socket.java (Socket (SocketImpl)): Don't allow null SocketImpl. Update Javadoc. (bind): Call close() not impl.close() in event of exception. (connect): Likewise. Remove superfluous null checks throughout. * java/net/ServerSocket.java (ServerSocket (int, int, InetAddress)): Don't create an extra socket. Fix for PR libgcj/10868. (bind): Clean up exception handling. Remove superfluous null checks throughout. From-SVN: r70219
2003-08-07natPlainSocketImplPosix.cc (connect): Pass the FD as a ready-to-write ↵Jacob Gladish2-15/+26
argument to _Jv_Select. * java/net/natPlainSocketImplPosix.cc (connect): Pass the FD as a ready-to-write argument to _Jv_Select. Reset the socket back to non-blocking state after connecting. (accept): Pass the FD as a ready-to-write argument to _Jv_Select. Throw SocketTimeoutException not InterruptedIOException. (read): Throw SocketTimeoutException not InterruptedIOException. Co-Authored-By: Bryce McKinlay <bryce@mckinlay.net.nz> From-SVN: r70217
2003-08-07Thread.java (Thread): Check for null "name" from start of private constructor...Bryce McKinlay2-9/+10
* java/lang/Thread.java (Thread): Check for null "name" from start of private constructor, not after calling the private constructor. From-SVN: r70216
2003-08-06FilePermission.java (equals): Use correct index for last character of path.Tom Tromey2-3/+10
* java/io/FilePermission.java (equals): Use correct index for last character of path. From-SVN: r70206
2003-08-06acinclude.m4 (LIBGCJ_CONFIGURE): Remove AC_CANONICAL_BUILD.Alan Modra5-359/+344
* acinclude.m4 (LIBGCJ_CONFIGURE): Remove AC_CANONICAL_BUILD. * configure.in: Compare with_cross_host to build_alias, not build. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r70199
2003-08-05re PR libgcj/11779 (Field reflection incorrectly throws IllegalAccessException)Tom Tromey2-5/+10
Fix for PR libgcj/11779: * java/lang/reflect/natField.cc (getAddr): Skip frames in Field class. From-SVN: r70185
2003-08-05Method.java: Updated status comment.Tom Tromey3-115/+357
* java/lang/reflect/Method.java: Updated status comment. Imported javadoc from Classpath and re-ordered methods. * java/lang/reflect/Constructor.java: Reindented. Updated status comment. Imported javadoc from Classpath and re-ordered methods. From-SVN: r70184
2003-08-05For PR java/11600:Tom Tromey3-0/+14
* libjava.compile/PR11600.xfail: New file. * libjava.compile/PR11600.java: New file. From-SVN: r70183
2003-08-05GtkComponentPeer.java (postKeyEvent): Add keyLocation parameter.Thomas Fitzsimmons12-258/+934
2003-08-05 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent): Add keyLocation parameter. * java/awt/event/KeyEvent.java (getKeyText): Fix "NumPad-" string. (paramString): Generate keyChar string according to keyChar, not keyCode. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (state_to_awt_mods): Handle ALT key. (keyevent_state_to_awt_mods): New function. (get_first_keyval_from_keymap): New function. (keysym_to_awt_keycode): Get virtual key code from keymap. Handle missing VK_ values. (keysym_to_awt_keylocation): New function. (keyevent_to_awt_keychar): New function. (generates_key_typed_event): Handle non-text-component case. Handle GDK_KP_Delete and GDK_KP_Enter. (awt_event_handler): Call new functions to get postKeyEvent parameters. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit): Update postKeyEvent method signature. * jni/gtk-peer/gtkpeer.h: Add KEY_LOCATION defines. Add missing VK_ defines. From-SVN: r70178
2003-08-05aclocal.m4: check for libart-config binary under the name libart2-config as ↵Matthias Klose3-88/+135
well. 2003-08-05 Matthias Klose <doko@debian.org> * aclocal.m4: check for libart-config binary under the name libart2-config as well. * configure: regenerated. From-SVN: r70169
2003-08-04jacks.exp (gcj_jacks_run): Just ignore errors from jacks.Tom Tromey2-7/+9
* libjava.jacks/jacks.exp (gcj_jacks_run): Just ignore errors from jacks. From-SVN: r70157
2003-08-04DecimalFormat.java (format): avoid ArithmeticException when groupingSize is 0.David P Grove2-4/+12
2003-08-04 David P Grove <groved@us.ibm.com> * java/text/DecimalFormat.java (format): avoid ArithmeticException when groupingSize is 0. (parse): Likewise. From-SVN: r70156
2003-08-04libart.m4: check for libart-config binary under the name libart2-config as well.Matthias Klose3-364/+362
2003-08-04 Matthias Klose <doko@debian.org> * libart.m4: check for libart-config binary under the name libart2-config as well. * configure, aclocal.m4: regenerated. From-SVN: r70150
2003-08-022003-08-02 Michael Koch <konqueror@gmx.de>Michael Koch5-138/+300
* java/nio/ByteBufferImpl.java (getChar): Check remaining bytes, fixed comment about endianess. (putChar): Likewise. (getShort): Likewise. (putShort): Likewise. (getInt): Check remaining bytes, fixed conversion, fixed comment about endianess. (putInt): Likewise. (getLong): Likewise. (putLong): Likewise. (getFloat): Likewise. (putFloat): Likewise. (getDouble): Likewise. (putDouble): Likewise. * java/nio/DirectByteBufferImpl.java (getChar): Wrapped code, fixed comment about endianess. (putchar): Likewise. (getShort): Likewise. (putShort): Likewise. (getInt): Fixed conversion, fixed comment about endianess. (putInt): Likewise. (getLong): Likewise. (putLong): Likewise. (getFloat): Likewise. (putFloat): Likewise. (getDouble): Likewise. (putDouble): Likewise. * java/nio/MappedByteBufferImpl.java (compact): Implemented. (getChar): Implemented. (putChar): Implemented. (getDouble): Implemented. (putdouble): Implemented. (getFloat): Implemented. (putFloat): Implemented. (getInt): Implemented. (putInt): Implemented. (getLong): Implemented. (putLong): Implemented. (getShort): Implemented. (putShort): Implemented. * java/nio/channels/FileChannelImpl.java (read): Set position where to access file. (write): Likewise. (transferTo): Flip buffer after read and before write. (transferFrom): Likewise. From-SVN: r70102
2003-08-022003-08-02 Michael Koch <konqueror@gmx.de>Michael Koch2-12/+23
* gnu/java/lang/ArrayHelper.java (equalsArray): Reformated, added method documentation. From-SVN: r70099
2003-08-022003-08-02 Michael Koch <konqueror@gmx.de>Michael Koch2-9/+47
* java/net/URL.java (URL): Added paragraph about the gnu.java.net.nocache_protocol_handlers property. (ph_cache): Renamed from handlers to match classpath's implementation. Reordered it with factory and serialVersionUID member variables. (cache_handlers): New member variable. (static): New static initializer to initialize cache_handlers from gnu.java.net.nocache_protocol_handlers property. (URL): Use ph_cache instead of handlers, reformatted some code to match classpath's implementation. From-SVN: r70098
2003-08-01re PR libgcj/11241 (WeakHashMap throws a "/ zero" ArithmeticException when ↵Tom Tromey2-1/+9
initialCapacity is explicitly zero) Fix for PR libgcj/11241: * java/util/WeakHashMap.java (WeakHashMap(int,float)): If initialCapacity is 0, set it to 1. From-SVN: r70070
2003-08-01SocketImpl.java (toString): Display the remote address of an unconnected ↵Stephen Crawley2-1/+7
server socket as "0.0.0.0/0.0.0.0". 2003-08-01 Stephen Crawley <crawley@dstc.edu.au> * java/net/SocketImpl.java (toString): Display the remote address of an unconnected server socket as "0.0.0.0/0.0.0.0". From-SVN: r70069
2003-08-01BevelBorder.java, [...]: Prepend "doc-files" to all paths to embedded ↵Sascha Brawer12-76/+99
Javadoc images... 2003-08-01 Sascha Brawer <brawer@dandelis.ch> * javax/swing/border/BevelBorder.java, javax/swing/border/EtchedBorder.java, javax/swing/border/LineBorder.java, javax/swing/border/MatteBorder.java, javax/swing/border/SoftBevelBorder.java, javax/swing/plaf/BorderUIResource.java, javax/swing/plaf/ComponentUI.java, javax/swing/plaf/TreeUI.java, javax/swing/plaf/basic/BasicBorders.java, javax/swing/plaf/basic/BasicGraphicsUtils.java, javax/swing/plaf/basic/BasicTreeUI.java: Prepend "doc-files" to all paths to embedded Javadoc images, so that the generated documentation contains the correct URL. From-SVN: r70063
2003-08-01configure: Rebuilt.Tom Tromey3-354/+370
* configure: Rebuilt. * configure.in (tool_include_dir): Redefine to match gcc. From-SVN: r70054
2003-08-01BigDecimal (divide): Correctly handle ROUND_HALF_EVEN when amount is greater ↵Jerry Quinn2-35/+45
than 0.5. 2003-08-01 Jerry Quinn <jlquinn@optonline.net> Mark Wielaard <mark@klomp.org> * java/math/BigDecimal (divide): Correctly handle ROUND_HALF_EVEN when amount is greater than 0.5. Simplify and optimize code. Co-Authored-By: Mark Wielaard <mark@klomp.org> From-SVN: r70049