aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-11-14GridBagLayout.java (getLayoutDimensions): Return array of two zero-length ↵Tom Fitzsimmons2-5/+22
int arrays when layoutInfo is null. 2003-11-14 Tom Fitzsimmons <fitzsim@redhat.com> * java/awt/GridBagLayout.java (getLayoutDimensions): Return array of two zero-length int arrays when layoutInfo is null. (getLayoutWeights): Return array of two zero-length double arrays when layoutInfo is null. From-SVN: r73622
2003-11-14* libjava.jar/simple.jar: Replaced.Tom Tromey2-0/+4
From-SVN: r73614
2003-11-14jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to ↵Tom Tromey10-14/+36
JvGetStringUTFRegion. * jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to JvGetStringUTFRegion. * java/lang/natPosixProcess.cc (new_string): Pass length of string to JvGetStringUTFRegion. * java/lang/natDouble.cc (parseDouble): Pass length of string to JvGetStringUTFRegion. * java/lang/natWin32Process.cc (startProcess): Pass length of string to JvGetStringUTFRegion. * java/lang/natClass.cc (forName): Pass length of string to JvGetStringUTFRegion. * gnu/gcj/runtime/natNameFinder.cc (getExternalLabel): Pass length of string to JvGetStringUTFRegion. * gnu/gcj/convert/natIconv.cc (init): Pass length of string to JvGetStringUTFRegion. * gnu/awt/gtk/natGtkLabelPeer.cc (setText): Pass length of string to JvGetStringUTFRegion. * gnu/awt/gtk/natGtkButtonPeer.cc (setLabel): Pass length of string to JvGetStringUTFRegion. From-SVN: r73571
2003-11-14jniutf.c: New file.Tom Fitzsimmons4-0/+32
2003-11-13 Tom Fitzsimmons <fitzsim@redhat.com> * libjava.jni/jniutf.c: New file. * libjava.jni/jniutf.java: New file. * libjava.jni/jniutf.out: New file. From-SVN: r73569
2003-11-13* gnu/java/nio/natSelectorImplPosix.ccMohan Embar2-2/+8
(helper_put_filedescriptors): Change to static linkage. (helper_get_filedescriptors): Likewise. From-SVN: r73545
2003-11-12GtkComponentPeer.java (prepareImage): Remove null check.Tom Fitzsimmons4-9/+5
2003-11-12 Tom Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Remove null check. * gnu/java/awt/peer/gtk/GtkToolkit.java (prepareImage): Likewise. * java/awt/Component.java (prepareImage): Likewise. From-SVN: r73513
2003-11-12gnu_java_awt_peer_gtk_GtkLabelPeer.c (setAlignment): Rename to ↵Tom Fitzsimmons2-1/+6
nativeSetAlignment. 2003-11-12 Tom Fitzsimmons <fitzsim@redhat.com> * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (setAlignment): Rename to nativeSetAlignment. From-SVN: r73500
2003-11-12jni.cc (JNI_CreateJavaVM): Remove JNIEXPORT.Danny Smith3-13/+37
* jni.cc (JNI_CreateJavaVM): Remove JNIEXPORT. (JNI_GetCreatedJavaVMs): Likewise. (JNI_GetDefaultJavaVMInitArgs): Likewise. * include/jni.h (JNIIMPEXP): Remove definition and replace with... (__GCJ_JNIIMPEXP__): New macro, applicable only to libgcj symbols, (__GCJ_DLL__): New macro, controlling __GCJ_JNIIMPEXP__. From-SVN: r73484
2003-11-12Makefile.am: Add GdkPixbufDecoder.java and ↵Thomas Fitzsimmons11-47/+207
gnu_java_awt_peer_gtk_GdkPixbufDecoder.c 2003-11-11 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am: Add GdkPixbufDecoder.java and gnu_java_awt_peer_gtk_GdkPixbufDecoder.c * Makefile.in: Regenerate. * gnu/java/awt/image/ImageDecoder.java (ImageDecoder(byte[],int,int)): New constructor. (startProduction): Create ByteArrayInputStream when url and filename are null. (produce): Declare stream parameter as InputStream. * gnu/java/awt/image/XBMDecoder.java (produce): Declare stream parameter as InputStream. * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java (GdkPixbufDecoder(byte[],int,int)): New constructor. (produce): Declare stream parameter as InputStream. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Throw NPE if image is null. Set image's observer before running PrepareImage thread. Pass image to startProduction. * gnu/java/awt/peer/gtk/GtkImage.java: Add null checks before calls to source's member functions. (observer): New field. (setObserver): New method. (setDimensions, setPixels, imageComplete): Call observer's imageUpdate. * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage, getImage): Return new GtkImage. (prepareImage): Implement. * java/awt/Component.java: Add static fields incrementalDraw and redrawRate. (imageUpdate): Implement. (createImage): Call Toolkit's createImage if peer is null. (prepareImage): Throw NPE if image is null. * java/awt/MediaTracker.java: Fix return value. From-SVN: r73476
2003-11-11For PR java/12915:Tom Tromey3-0/+11
* libjava.lang/PR12915.java: New file. * libjava.lang/PR12915.out: New file. From-SVN: r73460
2003-11-11jacks.exp (gcj_jacks_write): Enable "assert" constraint.Tom Tromey3-0/+32
* libjava.jacks/jacks.exp (gcj_jacks_write): Enable "assert" constraint. * libjava.jacks/jacks.xfail: Added new xfails. From-SVN: r73458
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