aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
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
2003-08-01More for PR libgcj/11737:Tom Tromey3-23/+58
* java/io/ObjectInputStream.java (processResolution): Use getMethod. (getMethod): Make method accessible. (getField): Make field accessible. (setBooleanField): Don't call setAccessible here. (setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setShortField, setObjectField): Likewise. (callReadMethod): Don't check whether method is null. Catch NoSuchMethodException. * java/io/ObjectOutputStream.java (callWriteMethod): Initialize cause on thrown exceptions. From-SVN: r70038
2003-08-01re PR libgcj/11728 (HashMap serialization does not work)Stepan Koltsov2-1/+7
2003-07-31 Stepan Koltsov <yozh@mx1.ru> Fix for PR libgcj/11728: From-SVN: r70037
2003-08-01re PR libgcj/11737 (java.io.ObjectOutputStream.writeObject does not work ↵Tom Tromey2-13/+50
with HashMap) Fix for PR libgcj/11737: * java/io/ObjectOutputStream.java (getMethod): Make method accessible. (getField): Likewise. (writeObject): Use getMethod. Import PrivilegedAction and AccessController. (callWriteMethod): Don't check whether m is null. Catch NoSuchMethodException. From-SVN: r70035
2003-07-31Arc2D.java (getBounds2D): Implement.Tom Tromey2-22/+71
* java/awt/geom/Arc2D.java (getBounds2D): Implement. (containsAngle): Likewise. (getStartPoint): Rewrote. (getEndPoint): Likewise. (setAngleStart(Point2D)): Likewise. From-SVN: r70002
2003-07-31configure.in: Add new THREADCXXFLAGS variable.Roger Sayle5-383/+450
* configure.in: Add new THREADCXXFLAGS variable. Handle POSIX threads on alpha*-dec-osf*. * configure: Regenerate. * Makefile.am: Add THREADCXXFLAGS to AM_CXXFLAGS. * Makefile.in: Regenerate. Co-Authored-By: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> From-SVN: r69997
2003-07-30i386-signal.h (RESTORE): New.Andrew Haley2-14/+35
2003-07-08 Andrew Haley <aph@redhat.com> * include/i386-signal.h (RESTORE): New. (INIT_SEGV): Set restorer. (INIT_FPE): Likewise. From-SVN: r69957
2003-07-29GtkButtonPeer.java: Call getName rather than getXLFD.Thomas Fitzsimmons7-12/+30
2003-07-29 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Call getName rather than getXLFD. * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise. * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Likewise. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c (gtkSetFont): Scale size parameter by PANGO_SCALE. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise. From-SVN: r69936
2003-07-29defineclass.cc (handleField): Throw exception if field name is duplicated.Tom Tromey2-10/+33
* defineclass.cc (handleField): Throw exception if field name is duplicated. (handleMethod): Throw exception for duplicate method. From-SVN: r69928
2003-07-29natIconv.cc (write): Handle case where output buffer is too small.Tom Tromey2-14/+33
* gnu/gcj/convert/natIconv.cc (write): Handle case where output buffer is too small. From-SVN: r69927
2003-07-28natString.cc (init(gnu.gcj.runtime.StringBuffer)): New method.Tom Tromey3-1/+18
* java/lang/natString.cc (init(gnu.gcj.runtime.StringBuffer)): New method. Include gnu/gcj/runtime/StringBuffer.h. * java/lang/String.java (init(gnu.gcj.runtime.StringBuffer)): New native method. (String(gnu.gcj.runtime.StringBuffer)): Use it. From-SVN: r69890
2003-07-27Fix USE_LDTL configury.Anthony Green3-2/+7
From-SVN: r69864
2003-07-27gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c: Create vbox and layout for ↵Thomas Fitzsimmons2-3/+17
GtkPlug. 2003-07-27 Thomas Fitzsimmons <fitzsim@redhat.com> * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c: Create vbox and layout for GtkPlug. From-SVN: r69861
2003-07-272003-07-27 Michael Koch <konqueror@gmx.de>Michael Koch2-14/+6
* java/awt/Window.java (Window): Removed now unused constructor. It became oboslete with the new embedded window patch. From-SVN: r69860
2003-07-272003-07-27 Thomas Fitzsimmons <fitzsim@redhat.com.h>Thomas Fitzsimmons10-26/+286
Michael Koch <konqueror@gmx.de> * gnu/java/awt/EmbeddedWindow.java (EmbeddedWindow): Extends Frame instead of Window. (window_id): New member variable to store the native window handle. (create): Removed. (EmbeddedWindow): New constructor. (addNotify): New method. (getHandler): Likewise. (setWindowPeer): New native method. * gnu/java/awt/EmbeddedWindowSupport.java (EmbeddedWindowSupport): Fixed documentation. (createEmbeddedWindow): Return EmbeddedWindowPeer instead of WindowPeer, give it an EmbeddedWindow instance instead of the raw window data. * gnu/java/awt/natEmbeddedWindow.cc (create): Removed. (setWindowPeer): New method. * gnu/java/awt/peer/EmbeddedWindowPeer.java, gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c: New files * gnu/java/awt/peer/gtk/GtkToolkit.java (GtkToolkit): Implements EmbeddedWindowSupport. (createEmbeddedWindow): New method. * java/awt/Window.java (Window): Removed. * Makefile.am (java_source_files): Added EmbeddedWindowPeer.java. (gtk_awt_peer_sources): Added GtkEmbeddedWindowPeer.java. (gtk_c_source_files): Added gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c. * Makefile.in: Regenerated. Co-Authored-By: Michael Koch <konqueror@gmx.de> From-SVN: r69859
2003-07-27Win32Process.java (ConcreteProcess): Surround a command line element with ↵Ranjit Mathew3-3/+15
quotes if it contains an embedded space or tab. 2003-07-26 Ranjit Mathew <rmathew@hotmail.com> * java/lang/Win32Process.java (ConcreteProcess): Surround a command line element with quotes if it contains an embedded space or tab. * java/lang/natWin32Process.cc (startProcess): Do not surround command line elements with quotes here. From-SVN: r69844
2003-07-27configure.host: Use -fcheck-references and -fuse-divide-subroutine for MinGW ↵Ranjit Mathew2-0/+12
until we fix... 2003-07-26 Ranjit Mathew <rmathew@hotmail.com> * configure.host: Use -fcheck-references and -fuse-divide-subroutine for MinGW until we fix win32_exception_handler( ) in win32.cc w.r.t. Win32 Structured Exception Handling (SEH). From-SVN: r69843
2003-07-26win32.cc (_Jv_platform_initProperties): Use generic names like "x86" for the ↵Ranjit Mathew2-11/+20
"os.arch" property to be consistent with... 2003-07-26 Ranjit Mathew <rmathew@hotmail.com> * win32.cc (_Jv_platform_initProperties): Use generic names like "x86" for the "os.arch" property to be consistent with what Sun's JDK produces. Use the wProcessorArchitecture member of the Win32 SYSTEM_INFO structure, filled in a call to GetSystemInfo( ), instead of dwProcessorType. From-SVN: r69837
2003-07-26Makefile.am: Use cross-compiling gcjh from the path for a crossed-native build.Mohan Embar5-392/+505
2003-07-26 Mohan Embar <gnustuff@thisiscool.com> Ranjit Mathew <rmathew@hotmail.com> * Makefile.am: Use cross-compiling gcjh from the path for a crossed-native build. * Makefile.in: Rebuilt. * configure.in: Include libltdl in non-newlib builds. Moved determination of gcj used to build libraries to its own section. Fixed cross-compilation issues for non-newlib builds. * configure: Rebuilt. Co-Authored-By: Ranjit Mathew <rmathew@hotmail.com> From-SVN: r69836
2003-07-26natFileDescriptorPosix.cc (write): Try again on EINTR.Tom Tromey2-23/+44
* java/io/natFileDescriptorPosix.cc (write): Try again on EINTR. (write): Likewise. (read): Likewise. (read): Likewise. From-SVN: r69807
2003-07-25+ * java/lang/natRuntime.cc (_load): Add library name toMark Wielaard2-1/+7
+ UnsatisfiedLinkError when thrown. From-SVN: r69786
2003-07-25[multiple changes]Mark Wielaard9-73/+765
2003-07-25 Mark Wielaard <mark@klomp.org> * Makefile.am (awt_java_source_files): java/awt/GridBagLayoutInfo.java added. * Makefile.in: Likewise. 2003-07-25 Jeroen Frijters <jeroen@frijters.net> * java/awt/Component.java (getPreferredSize): Call preferredSize. (preferredSize): Moved body of getPreferredSize here. (getMinimumSize): Call minimumSize. (minimumSize): Moved body of getMinimumSize here. (prepareImage): Fall back on Toolkit.prepareImage if there is no peer (checkImage(Image,ImageObserver)): Don't call getWidth/getHeight, but pass -1 * java/awt/Container.java (validate): Don't validate if there is no peer. (update): Clear background before calling paint. * java/awt/GridBagLayout.java Completed the implementation and fixed several bugs. * java/awt/MediaTracker.java (MediaEntry.imageUpdate): Fixed typo. & instead of | was used to combine flags. * java/awt/Window.java (Window): Don't call setVisible(false). Windows are invisible by default and calling virtual methods from constructor causes compatibility problems (e.g. subclasses may assume that the peer already exists). 2003-07-25 Michael Koch <konqueror@gmx.de> * java/awt/GridBagLayout.java: Totally reworked and partly implemented. * java/awt/GridBagLayoutInfo.java: New file. From-SVN: r69785
2003-07-24gnu_java_awt_peer_gtk_GtkLabelPeer.c (create): Don't pack label in an event box.Thomas Fitzsimmons2-6/+9
2003-07-24 Thomas Fitzsimmons <fitzsim@redhat.com> * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create): Don't pack label in an event box. From-SVN: r69754
2003-07-24For PR libgcj/7482:Tom Tromey2-232/+346
* verify.cc (ref_intersection): New class. (type_val): Removed unresolved_reference_type, uninitialized_unresolved_reference_type. (is_assignable_from_slow): Rewrote. (type::data): Removed. (type::klass): New field. (type::type): Added verifier argument. (type::resolve): Removed. (type::set_uninitialized): Updated for change to type_val. (type::set_initialized): Likewise. (type::isinitialized): Likewise. (type::print): Likewise. (construct_primitive_array_type): Likewise. (type::compatible): Updated for change to type_val and to use ref_intersection. (type::isarray): Updated to use ref_intersection. (type::isinterface): Likewise. (type::element_type): Likewise. (type::to_array): Likewise. (type::verify_dimensions): Rewrote. (type::merge): Likewise. (check_class_constant): Updated for type constructor change. (check_constant): Likewise. (check_field_constant): Likewise. (get_one_type): Likewise. (initialize_stack): Likewise. (verify_instructions_0): Likewise. (verify_instructions_0) [op_invokeinterface]: Removed special case. (isect_list): New field. (_Jv_BytecodeVerifier): Initialize it. (~_Jv_BytecodeVerifier): Destroy ref_intersection objects. From-SVN: r69751
2003-07-24For PR libgcj/7482:Tom Tromey3-0/+41
* libjava.lang/PR7482.java: New file. * libjava.lang/PR7482.out: New file. From-SVN: r69750
2003-07-24SimpleDateFormat.java (format): Zero pad unless field size is 2.H. Väisänen2-4/+13
2003-07-24 H. V�is�nen <hvaisane@joyx.joensuu.fi> * java/text/SimpleDateFormat.java (format) [YEAR_FIELD]: Zero pad unless field size is 2. From-SVN: r69744
2003-07-23* gnu/java/awt/peer/gtk/GtkTextComponentPeer.javaThomas Fitzsimmons6-60/+141
(connectHooks): New method. (handleEvent): Remove. * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (createHooks): Remove declaration. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (generates_key_typed_event): Change to handle only certain keyvals. (awt_event_handler): Add special handling for GtkTextView. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c (textcomponent_commit_cb): New function. (textcomponent_changed_cb): Likewise. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c (connectHooks): Remove. From-SVN: r69728
2003-07-23* java/lang/natSystem.cc (arraycopy): Check for overflow.Tom Tromey2-2/+6
From-SVN: r69706
2003-07-23* boehm.cc (_Jv_BuildGCDescr): Use `1ULL'.Tom Tromey2-1/+5
From-SVN: r69703