aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-11-242003-11-24 Michael Koch <konqueror@gmx.de>Michael Koch2-91/+248
* javax/swing/BoxLayout.java (serialVersionUIR): New member variable. (X_AXIS, Y_AXIS): Documentation added. (LINE_AXIS, PAGE_AXIS): New constants. (grid): Renamed from gridbag. (BoxLayout): Use new constants, throw exception if invalid value for way, added documentation. (BoxLayout): Removed. (addLayoutComponent): Use new constants, added documentation. (removeLayoutComponent): Likewise. (addLayoutContainer): Added documentation. (preferredLayoutSize): Added documentation, check given argument. (minimumLayoutSize): Likewise. (layoutContainer): Likewise. (getLayoutAlignmentX): Likewise. (getLayoutAlignmentY): Likewise. (invalidateLayout): Likewise. (maximumLayoutSize): Likewise. From-SVN: r73878
2003-11-23* gnu/java/net/natPlainDatagramSocketImplWin32.ccMichael Koch2-5/+14
(peekData): Use offset and maximal free space in datagram packet. (receive): Likewise. (send): Use offset in datagram packet. From-SVN: r73848
2003-11-222003-11-22 Michael Koch <konqueror@gmx.de>Michael Koch2-5/+14
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (peekData): Use offset and maximal free space in datagram packet. (receive): Likewise. (send): Use offset in datagram packet. From-SVN: r73843
2003-11-222003-11-22 Michael Koch <konqueror@gmx.de>Michael Koch5-7/+21
* gnu/java/nio/DatagramChannelImpl.java (getNativeFD): Use getPlainDatagramSocketImpl(). * gnu/java/nio/NIODatagramSocket.java (getPlainDatagramSocketImpl): Renamed from getImpl(). * gnu/java/nio/NIOSocket.java (getPlainSocketImpl): Renamed from getImpl(). (setChannel): Use getPlainSocketImpl(). * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Use getPlainSocketImpl(). (getPlainSocketImpl): Renamed from getImpl(). (getNativeFD): Use getPlainSocketImpl(). From-SVN: r73840
2003-11-22JLayeredPane.java: Implement.Graydon Hoare4-8/+346
2003-11-18 Graydon Hoare <graydon@redhat.com> * javax/swing/JLayeredPane.java: Implement. * javax/swing/JFrame.java (getContentPane): Make public * javax/swing/javax/swing/JRootPane.java (setContentPane): Use JLayeredPane.FRAME_CONTENT_LAYER. From-SVN: r73825
2003-11-21* java/lang/Float.java (static): Removed.Mark Wielaard2-14/+5
From-SVN: r73805
2003-11-21TextLayout.java: Implement simple layouts using attributed strings and glyph ↵Graydon Hoare2-8/+157
vectors. 2003-11-18 Graydon Hoare <graydon@redhat.com> * java/awt/font/TextLayout.java: Implement simple layouts using attributed strings and glyph vectors. From-SVN: r73780
2003-11-20GdkClasspathFontPeerMetrics.java: New file.Graydon Hoare8-288/+802
2003-11-17 Graydon Hoare <graydon@redhat.com> * gnu/java/awt/peer/gtk/GdkClasspathFontPeerMetrics.java: New file. * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java (GdkFontLineMetrics): New inner class. (getLineMetrics): Return new GdkFontLineMetrics. (getFontMetrics): Return new GdkClasspathFontPeerMetrics. (layoutGlyphVector): Create GdkGlyphVector. * gnu/java/awt/peer/gtk/GdkGraphics2D.java (stateStack): New member. (GdkGraphics2D): Initialize state via mathod calls. (cairoSetMatrix, cairoShowGlyphs): Simplify native calls. (cairoTranslate, cairoScale, cairoRotate): Remove. (various methods): use setTransform for special transform cases. (DrawState): New inner class. (stateSave): New method. (stateRestore): New method. (various methods): use stateSave, stateRestore. (getClipInDevSpace): New method. (clip, clipRect, setClip, getClip, getClipBounds): Follow spec more closely. (getTransform): Return clone of transform. (setStroke): Set linewidth to passed width / 2.0. (setPaintMode): Set SrcOver rather than Xor. (setColor): Set paint to passed color. (drawRaster, drawImage, PainterThread, drawPixels): Take affine transform from image to user space. (drawRenderedImage, drawRenderableImage): Implement. (getFontRenderContext, getFontMetrics, drawString, getFont): Implement (drawArc, drawOval, drawRoundRect, fillArc, fillOval, fillRoundRect): Implement. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Match changes to java side. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c: Release resources. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c: Don't use pango for metrics. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c: New file. From-SVN: r73776
2003-11-19[multiple changes]Guilhem Lavaux3-0/+58
2003-11-19 Guilhem Lavaux <guilhem@kaffe.org> Jim Pick <jim@kaffe.org> * java/text/DecimalFormat.java (getCurrency, setCurrency): New methods. 2003-11-19 Guilhem Lavaux <guilhem@kaffe.org> * java/text/DecimalFormatSymbols.java (getCurrency, setCurrency): New methods. Co-Authored-By: Jim Pick <jim@kaffe.org> From-SVN: r73735
2003-11-19FlatteningPathIterator.java: Entirely re-written.Sascha Brawer3-26/+987
2003-11-19 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/FlatteningPathIterator.java: Entirely re-written. * java/awt/geom/doc-files/FlatteningPathIterator-1.html: Describe how the implementation works. From-SVN: r73734
2003-11-192003-11-19 Michael Koch <konqueror@gmx.de>Michael Koch2-48/+143
* java/net/Socket.java (implCreated): New variable that indicates created impl. (getImpl): New method. (toString): Return more SUN compliant string representation. (various): Use getImpl() instead of impl. From-SVN: r73732
2003-11-19libjava.exp: Add DYLD_LIBRARY_PATH for darwin.Andreas Tobler2-7/+31
2003-11-19 Andreas Tobler <a.tobler@schweiz.ch> * lib/libjava.exp: Add DYLD_LIBRARY_PATH for darwin. Look for the right libgcc. Add -multiply_defined suppress and -bind_at_load flags. From-SVN: r73725
2003-11-19re PR libgcj/13026 (libgcj verifier failure)Tom Tromey2-3/+10
PR libgcj/13026: * verify.cc (state::copy): Only set local_changed if we're in a subroutine. Correctly copy local variables which were modified by the subroutine. (push_jump_merge): Added more debugging output. From-SVN: r73722
2003-11-18jni.cc (_Jv_JNI_GetStringUTFChars): Fail gracefully if string is null.Tom Tromey2-2/+9
* jni.cc (_Jv_JNI_GetStringUTFChars): Fail gracefully if string is null. From-SVN: r73707
2003-11-18jar.exp: Cleanup files and reset CLASSPATH.Andreas Tobler2-2/+14
2003-11-18 Andreas Tobler <a.tobler@schweiz.ch> * libjava.jar/jar.exp: Cleanup files and reset CLASSPATH. From-SVN: r73696
2003-11-18* libjava.compile/PR12857.java: New test case.Jeff Sturm2-0/+8
From-SVN: r73692
2003-11-18BasicDefaults.java: Rewrite to spec.Graydon Hoare3-82/+312
2003-11-17 Graydon Hoare <graydon@redhat.com> * javax/swing/plaf/basic/BasicDefaults.java: Rewrite to spec. * javax/swing/UIDefaults.java: Modify to reflect rewrite. From-SVN: r73688
2003-11-16re PR libgcj/13062 (StreamTokenizer ignores commentChar)Tom Tromey2-4/+25
PR libgcj/13062: * java/io/StreamTokenizer.java (commentChar): Clear other attributes for character. (quoteChar): Likewise. From-SVN: r73653
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