aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-11-11GtkLabelPeer.java (create()): Call new create.Thomas Fitzsimmons4-23/+127
2003-11-11 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkLabelPeer.java (create()): Call new create. (create(String, float)): New method. (setText): Make native. (nativeSetAlignment): New method. (setAlignment): Call nativeSetAlignment. (getArgs): Remove method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (find_fg_color_widget, find_bg_color_widget): New functions. (gtkWidgetSetForeground): Call find_fg_color_widget. (gtkWidgetSetBackground): Call find_bg_color_widget. Modify active and prelight colors. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create): Wrap label widget in event box. (setText, setAlignment): Implement new native methods. From-SVN: r73453
2003-11-11Font.java, [...]: Removed some redundant obj == null checks.Michael Koch12-21/+22
2003-11-11 Michael Koch <konqueror@gmx.de> * java/awt/Font.java, java/awt/datatransfer/DataFlavor.java, java/math/BigInteger.java, java/net/Inet4Address.java, java/net/Inet6Address.java, java/rmi/MarshalledObject.java, java/rmi/server/RMIClassLoader.java, java/security/cert/CertStore.java, java/sql/Timestamp.java, java/text/SimpleDateFormat.java, javax/naming/CompoundName.java: Removed some redundant obj == null checks. From-SVN: r73448
2003-11-112003-11-11 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+6
* java/nio/ByteBuffer.java (equals): Remove redundant obj == null check. From-SVN: r73447
2003-11-11natPipeImpl.cc, [...]: RemovedMichael Koch9-274/+476
2003-11-11 Michael Koch <konqueror@gmx.de> * gnu/java/nio/natPipeImpl.cc, gnu/java/nio/natSelectorImpl.cc: Removed * gnu/java/nio/natPipeImplEcos.cc, gnu/java/nio/natPipeImplPosix.cc, gnu/java/nio/natPipeImplWin32.cc, gnu/java/nio/natSelectorImplEcos.cc, gnu/java/nio/natSelectorImplPosix.cc, gnu/java/nio/natSelectorImplWin32.cc: New files * configure.in: Create links for gnu/java/nio/natPipeImpl.cc and gnu/java/nio/natSelectorImpl.cc * configure: Regenerated. From-SVN: r73446
2003-11-11URLStreamHandler.java (toExternalForm): Print port only if host is printed ↵Michael Koch2-4/+10
too and port was really given to URL. 2003-11-11 Micheal Koch <konqueror@gmx.de> * java/net/URLStreamHandler.java (toExternalForm): Print port only if host is printed too and port was really given to URL. From-SVN: r73445
2003-11-11Timestamp.java (valueOf): Correctly handle nanoseconds.Gary Benson2-9/+31
2003-11-10 Gary Benson <gbenson@redhat.com> * java/sql/Timestamp.java (valueOf): Correctly handle nanoseconds. From-SVN: r73437
2003-11-10For PR java/12996:Tom Tromey6-0/+77
* libjava.jar/simple.jar: New file. * libjava.jar/simple.xfail: New file. * libjava.jar/simple.out: New file. * libjava.jar/simple.java: New file. * libjava.jar/jar.exp: New file. From-SVN: r73426
2003-11-09* java/net/Inet4Address.java (serialVersionUID): Updated.Tom Tromey2-1/+5
From-SVN: r73398
2003-11-08* libjava.jacks/jacks.xfail: Updated.Tom Tromey2-5/+4
From-SVN: r73371
2003-11-08FirstThread.java (Klocale, Kcalendar): New fields.Jeff Sturm2-4/+11
* gnu/gcj/runtime/FirstThread.java (Klocale, Kcalendar): New fields. From-SVN: r73360
2003-11-08ByteArrayOutputStream.java (resize): Fix off-by-one error.Jeff Sturm2-1/+6
* java/io/ByteArrayOutputStream.java (resize): Fix off-by-one error. From-SVN: r73359
2003-11-08* gnu/gcj/xlib/XAnyEvent.java (XAnyEvent): Make constructor public.Bryce McKinlay2-1/+6
From-SVN: r73351
2003-11-07re PR libgcj/12231 ([win32] Console applications spawned via Runtime.exec( ) ↵Mohan Embar3-74/+130
in a GUI application flash console window) PR libgcj/12231 * java/lang/Win32Process.java (hasExited) Changed from public to private. (startProcess): Likewise. (cleanup): Likewise. * java/lang/natWin32Process.cc (cleanup) Don't close input, output and error streams. (ChildProcessPipe): New helper class. (startProcess): Refactored to use ChildProcessPipe. Use CREATE_NO_WINDOW when launching child process. From-SVN: r73326
2003-11-07win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern.Mohan Embar6-17/+53
* include/win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern. * win32.cc (_Jv_platform_close_on_exec): Implemented. * gnu/java/net/natPlainDatagramSocketImplWin32.cc (create): Use new signature of _Jv_platform_close_on_exec. * gnu/java/net/natPlainSocketImplWin32.cc (create): Eliminated a few typecasts Use new signature of _Jv_platform_close_on_exec. (accept): Eliminated a few typecasts Use new signature of _Jv_platform_close_on_exec. * java/io/natFileDescriptorWin32.cc (open): Use _Jv_platform_close_on_exec. From-SVN: r73325
2003-11-04natClass.cc (newInstance): Throw InstantiationException if class has no ↵Bryce McKinlay2-1/+6
null-argument constructor. * java/lang/natClass.cc (newInstance): Throw InstantiationException if class has no null-argument constructor. From-SVN: r73244
2003-11-04* libjava.compile/InnerExcept.java: New File.Jeff Sturm2-0/+24
From-SVN: r73240
2003-10-31re PR libgcj/12647 ([win32] wait() does not release monitor correctly)Mohan Embar2-2/+25
PR libgcj/12647: * win32-threads.cc (_Jv_CondWait): Respect mutex's refcount when releasing and reacquiring it. From-SVN: r73118
2003-10-31win32.cc: (dirExists) Internal helper function to test for directory existence.Mohan Embar2-31/+54
* win32.cc: (dirExists) Internal helper function to test for directory existence. (getUserHome) New helper function refactored out of _Jv_platform_initProperties. Uses USERPROFILE instead of HOMEDIR and attempts to support Win9X and NT. (_Jv_platform_initProperties) Use getUserHome. From-SVN: r73117
2003-10-31re PR libgcj/11521 ([win32] can install server socket on same port twice)Mohan Embar2-4/+6
PR libgcj/11521: * gnu/java/net/natPlainSocketImplWin32.cc (bind): Don't use SO_REUSEADDR From-SVN: r73116
2003-10-31re PR libgcj/6652 (new java.io.File("").getCanonicalFile() throws exception)Mohan Embar2-1/+11
PR libgcj/6652: * java/io/natFileWin32.cc (getCanonicalPath): Treat "" like ".". From-SVN: r73115
2003-10-30natMethod.cc (_Jv_CallAnyMethodA): Don't use vtable dispatch for final methods.Bryce McKinlay2-2/+9
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Don't use vtable dispatch for final methods. From-SVN: r73101
2003-10-30gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Turn on word wrapping.Thomas Fitzsimmons2-0/+7
2003-10-30 Thomas Fitzsimmons <fitzsim@redhat.com> * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Turn on word wrapping. From-SVN: r73093
2003-10-30gnu_java_awt_peer_gtk_GtkListPeer.c (getSize): Return scrolled window's size ↵Thomas Fitzsimmons2-2/+6
request. 2003-10-29 Thomas Fitzsimmons <fitzsim@redhat.com> * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (getSize): Return scrolled window's size request. From-SVN: r73075
2003-10-29CubicCurve2D.java (contains): Docfix for URL of embedded drawing.Sascha Brawer10-42/+1206
2003-10-29 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/CubicCurve2D.java (contains): Docfix for URL of embedded drawing. * java/awt/geom/QuadCurve2D.java: Likewise. 2003-10-29 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/CubicCurve2D.java: Added documentation. * java/awt/geom/QuadCurve2D.java: Likewise. * java/awt/geom/doc-files/QuadCurve2D-4.png, java/awt/geom/doc-files/QuadCurve2D-5.png, java/awt/geom/doc-files/CubicCurve2D-4.png, java/awt/geom/doc-files/Cubicurve2D-5.png: New illustrations. 2003-10-29 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/CubicCurve2D.java (getFlatnessSq): Implement. (subdivide(CubicCurve2D, CubicCurve2D)): Avoid useless object allocation. (subdivide(double[],int,double[],int,double[],int)): Implement. 2003-10-29 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/doc-files/CubicCurve2D-1.png, java/awt/geom/doc-files/CubicCurve2D-2.png, java/awt/geom/doc-files/CubicCurve2D-3.png: New illustrations. From-SVN: r73048
2003-10-29Forgot to add one ChangeLog entry from classpath.Ito Kazumitsu1-0/+5
From-SVN: r73047
2003-10-29[multiple changes]Michael Koch8-13/+747
2003-10-29 Mark Wielaard <mark@klomp.org> From Guilhem Lavaux <guilhem.lavaux@free.fr> * java/text/DateFormat.java (Field): New public static inner class. * java/text/Format.java (Field): Likewise. (formatToCharacterIterator): New method. * java/text/FormatCharacterIterator.java: New file. 2003-10-29 Mark Wielaard <mark@klomp.org> From Guilhem Lavaux <guilhem.lavaux@free.fr> * java/util/Currency.java: New file. 2003-10-29 Michael Koch <konqueror@gmx.de> * Makefile.am (ordinary_java_source_files): Added java/text/FormatCharacterIterator.java and java/util/Currency.java. * Makefile.in: Regenerated. From-SVN: r73046
2003-10-29IntrospectionIncubator.java (addMethod): Add public static methods.Dalibor Topic2-1/+6
2003-10-29 Dalibor Topic <robilad@kaffe.org> * gnu/java/beans/IntrospectionIncubator.java (addMethod): Add public static methods. From-SVN: r73043
2003-10-29NamingManager.java (getContinuationContext): Call getObjectInstance() with ↵Julian Dolby3-5/+38
Object... 2003-10-29 Julian Dolby <dolby@us.ibm.com> * javax/naming/spi/NamingManager.java (getContinuationContext): Call getObjectInstance() with Object, Name, Context and environment Hashtable from exception. Call fillInStackTrace() on exception when rethrown. * javax/naming/InitialContext.java (lookup(Name)): When a CannotProceedException is thrown use the ContinuationContext. (lookup(String)): Likewise. (close): Clear myProps and defaultInitCtx. From-SVN: r73041
2003-10-29Somehow this didnt got commited due to full hard disk.Michael Koch1-6/+2
From-SVN: r73040
2003-10-292003-10-29 Michael Koch <konqueror@gmx.de>Michael Koch4-8/+13
* java/net/InetAddress.java (equals): Remove redundant obj == null check. * java/net/SocketPermission.java (equals): Likewise. * java/net/URL.java (equals): Likewise. (getURLStreamHandler): Likewise. From-SVN: r73034
2003-10-292003-10-29 Michael Koch <konqueror@gmx.de>Michael Koch3-10/+17
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (setOption): Directly return if no error occured. * gnu/java/net/natPlainSocketImplPosix.cc (setOption): Likewise. From-SVN: r73033
2003-10-28natClass.cc (_Jv_LayoutVTableMethods): Always assign a vtable slot for final ↵Bryce McKinlay2-2/+12
methods. * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Always assign a vtable slot for final methods. Add FIXME comment. From-SVN: r73023
2003-10-28locks.h (__cas_start_atomic): %g0 --> %%g0.David S. Miller2-2/+6
2003-10-28 David S. Miller <davem@redhat.com> * sysdep/sparc/locks.h (__cas_start_atomic): %g0 --> %%g0. From-SVN: r73006
2003-10-27Reported by Helmer Kraemer <hkraemer@freenet.de>Mark Wielaard3-19/+23
Reported by Helmer Kraemer <hkraemer@freenet.de> * java/util/jar/JarInputStream.java (readManifest): Don't call closeEntry(). * java/util/zip/DeflaterOutputStream.java (inbufWrite): New method. (finish): Use inbufWrite(). (write(int)): Likewise. (write(byte[],int,int)): Likewise. From-SVN: r72976
2003-10-26* java/util/TreeMap.java: Doc fixes. HashMap -> TreeMap.Bryce McKinlay2-4/+6
From-SVN: r72944
2003-10-26AccessibleObject.java (secureSetAccessible): Don't check for AccessibleObject.Bryce McKinlay2-33/+17
* java/lang/reflect/AccessibleObject.java (secureSetAccessible): Don't check for AccessibleObject. Update javadocs. From-SVN: r72943
2003-10-26Constructor.java (toString): Avoid extra whitespace on constructor with no ↵Bryce McKinlay7-57/+90
modifiers. 2003-10-26 Bryce McKinlay <bryce@mckinlay.net.nz> * java/lang/reflect/Constructor.java (toString): Avoid extra whitespace on constructor with no modifiers. * java/lang/reflect/natConstructor.java (newInstance): Look up caller and perform accessibility check only if constructor is non-public and accessible flag is not set. 2003-10-26 Bryce McKinlay <bryce@mckinlay.net.nz> * jni.cc (_Jv_JNI_CallAnyMethodV, _Jv_JNI_CallAnyMethodA, _Jv_JNI_CallAnyVoidMethodV, _Jv_JNI_CallAnyVoidMethodA): Don't use _Jv_LookupDeclaredMethod(). Call _Jv_CallAnyMethodA with is_virtual_call argument. * include/jvm.h (_Jv_isVirtualMethod): Moved and renamed from natClass.cc. * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Use _Jv_isVirtualMethod. * java/lang/reflect/natMethod.cc (invoke): Don't use _Jv_LookupDeclaredMethod. (_Jv_CallAnyMethodA): New is_virtual_call argument. If specified, look up method in target object's vtable. From-SVN: r72942
2003-10-25ClasspathToolkit.java: New abstract class.Graydon Hoare9-14/+2568
2003-10-14 Graydon Hoare <graydon@redhat.com> * gnu/java/awt/ClasspathToolkit.java: New abstract class. * gnu/java/awt/peer/ClasspathFontPeer.java: New abstract class. * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c: New concrete implementation of ClasspathFontPeer, with native part. * gnu/java/awt/peer/gtk/GdkGlyphVector.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c: New class, with native part. * gnu/java/awt/peer/gtk/GdkGraphics2D.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: implement setFont, cairoSetFont, drawGlyphVector, cairoShowGlyphs. From-SVN: r72931
2003-10-25Method.java (toString): Avoid extra whitespace on method with no modifiers.Bryce McKinlay2-2/+11
* java/lang/reflect/Method.java (toString): Avoid extra whitespace on method with no modifiers. From-SVN: r72919
2003-10-25re PR libgcj/11780 (Method.invoke() is slow)Bryce McKinlay3-36/+57
PR libgcj/11780: * java/lang/reflect/natMethod.cc (invoke): Look up caller and perform accessibility check only if target is non-public and accessible flag is not set. * java/lang/reflect/natField.cc (getAddr): Likewise. From-SVN: r72918
2003-10-24GtkDialogPeer.java (handleEvent): Remove method.Thomas Fitzsimmons7-60/+335
2003-10-24 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkDialogPeer.java (handleEvent): Remove method. * gnu/java/awt/peer/gtk/GtkWindowPeer.java (postWindowEvent): New method. * java/awt/Window.java (Window(Window,GraphicsConfiguration), show, hide, dispose, getOwnedWindows): Synchronize on tree lock. (dispose): Post WINDOW_CLOSED event. (addWindowFocusListener, addWindowStateListener): Assign result of multicaster add back to window listener. (removeWindowFocusListener, removeWindowStateListener): Assign result of multicaster remove back to window listener. (dispatchEventImpl): Add null checks for focus and state listeners. (processWindowEvent): Handle case where windowListener is null but state or focus listeners exist. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Add JNI glue for postWindowEvent. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (window_delete_cb, window_destroy_cb, window_show_cb, window_focus_in_cb, window_focus_out_cb, window_window_state_cb, window_get_new_state): New functions. * jni/gtk-peer/gtkpeer.h: Define window event and frame state macros. Declare postWindowEventID. From-SVN: r72906
2003-10-24Obvious fix for systems with no interpreter.Anthony Green2-0/+7
From-SVN: r72903
2003-10-24lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New.Andrew Haley7-23/+149
2003-10-22 Andrew Haley <aph@redhat.com> * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New. (java_get_callee_fndecl): New. * jcf-parse.c (java_parse_file): Call emit_catch_table(). * java-tree.h (ctable_decl): New. (catch_classes): New. (java_tree_index): Add JTI_CTABLE_DECL, JTI_CATCH_CLASSES. * decl.c (java_init_decl_processing): Add catch_class_type. Add ctable_decl. Add catch_classes field. * class.c (build_indirect_class_ref): Break out from build_class_ref. (make_field_value): Check flag_indirect_dispatch. (make_class_data): Ditto. Tidy uses of PUSH_FIELD_VALUE. Add field catch_classes. (make_catch_class_record): New. * java-tree.h (PUSH_FIELD_VALUE): Tidy. 2003-10-22 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Call _Jv_linkExceptionClassTable. (_Jv_LinkSymbolTable): Call )_Jv_ThrowNoSuchMethodError. Call _Jv_Defer_Resolution on a method whose ncode is NULL. (_Jv_linkExceptionClassTable): New function. (_Jv_LayoutVTableMethods): If superclass looks like a constant pool entry, look it up. * java/lang/Class.h (struct _Jv_CatchClass): New. (_Jv_linkExceptionClassTable): New friend. (_Jv_Defer_Resolution): New friend. (class Class.catch_classes): New field. * include/java-interp.h (Jv_Defer_Resolution): New method. (_Jv_PrepareClass): Make a friend of _Jv_MethodBase. (_Jv_MethodBase.deferred): New field. (_Jv_Defer_Resolution): New function. * resolve.cc (_Jv_PrepareClass): Resolve deferred handlers. * exception.cc (get_ttype_entry): Change return type to void**. (PERSONALITY_FUNCTION): Remove all code related to using a Utf8Const* for a match type. Change match type to be a pointer to a pointer, rather than a pointer to a Class. * defineclass.cc (handleCodeAttribute): Initialize method->deferred. (handleMethodsEnd): Likewise. From-SVN: r72886
2003-10-23natObject.cc (_Jv_ObjectCheckMonitor): Use _Jv_MutexCheckMonitor instead of ↵Rainer Orth2-1/+6
accessing mutex.owner directly. * java/lang/natObject.cc (_Jv_ObjectCheckMonitor): Use _Jv_MutexCheckMonitor instead of accessing mutex.owner directly. From-SVN: r72872
2003-10-22re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.)Tom Tromey4-62/+89
PR libgcj/12416: * java/lang/Class.h: Updated. * java/lang/natClass.cc (_getFields): Removed. (getFields): Likewise. (getDeclaredFields): Added `public_only' parameter. * java/lang/Class.java (getFields): Now implemented in java; from Classpath. (getDeclaredFields): Likewise. (getDeclaredFields(boolean)): Declare. (_getFields): Removed. (internalGetFields): New method, from Classpath. From-SVN: r72818
2003-10-22re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.)Tom Tromey3-0/+27
PR libgcj/12416: * libjava.lang/PR12416.out: New file. * libjava.lang/PR12416.java: New file. From-SVN: r72817
2003-10-22re PR libgcj/12656 (Inherited main( ) Method Not Seen At Runtime)Tom Tromey2-2/+9
PR libgcj/12656: * gnu/gcj/runtime/natFirstThread.cc (call_main): Use _Jv_LookupDeclaredMethod, not _Jv_GetMethodLocal. From-SVN: r72811
2003-10-22re PR libgcj/12656 (Inherited main( ) Method Not Seen At Runtime)Tom Tromey3-0/+22
PR libgcj/12656: * libjava.lang/PR12656.java: New file. * libjava.lang/PR12656.out: New file. From-SVN: r72810
2003-10-22mips-signal.h: New file.David Daney13-314/+687
2003-10-22 David Daney <ddaney@avtrex.com) * include/mips-signal.h: New file. * sysdep/dwarf2-backtrace.cc: New file. * sysdep/mips: New directory. * sysdep/mips/locks.h: New file. * Makefile.am(extra_cc_files): New, to allow extra c++ files to be added to libgcj. (extra_cc_source_files): Ditto. * configure.host(disable_dladdr): New shell variable passed to configure. (mips*-*-linux*): sysdeps_dir=mips, can_unwind_signal=yes, disable_dladdr=yes, use -mxgot. (mipsel*-linux* | mipsisa32el*-linux*): Enable hash synchronization. * configure.in:(mips*-*-linux*): Use sysdep/dwarf2-backtrace.cc to generate backtrace, and include/mips-signal.h as SIGNAL_HANDLER (HAVE_DLADDR): Make it depend on setting of disable_dladdr. (EXTRA_CC_FILES): New, to support conditional addition of sysdep/dwarf2-backtrace.cc. * configure: Regenerated. * Makefile.in: Regenerated. * gcj/Makefile.in: Regenerated. * include/config.h.in: Regenerated. * include/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. From-SVN: r72808
2003-10-22QuadCurve2D.java (subdivide): Added documentation.Sascha Brawer5-93/+706
2003-10-22 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/QuadCurve2D.java (subdivide): Added documentation. java/awt/geom/doc-files/QuadCurve2D-3.png: New illustration. 2003-10-22 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/QuadCurve2D.java: Reformatted, wrote Javadoc. * java/awt/geom/doc-files: New directory. * java/awt/geom/doc-files/QuadCurve2D-1.png, java/awt/geom/doc-files/QuadCurve2D-2.png: New illustrations. 2003-10-22 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/QuadCurve2D.java (subdivide): Implement. 2003-10-22 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/QuadCurve2D.java (getFlatness, getFlatnessSq): Implement. From-SVN: r72791