OSDN Git Service

* jni.cc (_Jv_JNI_GetStringUTFChars): Fail gracefully if string
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2003-11-18  Tom Tromey  <tromey@redhat.com>
2
3         * jni.cc (_Jv_JNI_GetStringUTFChars): Fail gracefully if string
4         is null.
5
6 2003-11-17  Graydon Hoare  <graydon@redhat.com>
7
8         * javax/swing/plaf/basic/BasicDefaults.java: Rewrite to spec.
9         * javax/swing/UIDefaults.java: Modify to reflect rewrite.
10
11 2003-11-16  Tom Tromey  <tromey@redhat.com>
12
13         PR libgcj/13062:
14         * java/io/StreamTokenizer.java (commentChar): Clear other
15         attributes for character.
16         (quoteChar): Likewise.
17
18 2003-11-14  Tom Fitzsimmons  <fitzsim@redhat.com>
19
20         * java/awt/GridBagLayout.java (getLayoutDimensions): Return array of two
21         zero-length int arrays when layoutInfo is null.
22         (getLayoutWeights): Return array of two zero-length double arrays when
23         layoutInfo is null.
24
25 2003-11-13  Tom Tromey  <tromey@redhat.com>
26
27         * jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to
28         JvGetStringUTFRegion.
29         * java/lang/natPosixProcess.cc (new_string): Pass length of string
30         to JvGetStringUTFRegion.
31         * java/lang/natDouble.cc (parseDouble): Pass length of string to
32         JvGetStringUTFRegion.
33         * java/lang/natWin32Process.cc (startProcess): Pass length of
34         string to JvGetStringUTFRegion.
35         * java/lang/natClass.cc (forName): Pass length of string to
36         JvGetStringUTFRegion.
37         * gnu/gcj/runtime/natNameFinder.cc (getExternalLabel): Pass length
38         of string to JvGetStringUTFRegion.
39         * gnu/gcj/convert/natIconv.cc (init): Pass length of string to
40         JvGetStringUTFRegion.
41         * gnu/awt/gtk/natGtkLabelPeer.cc (setText): Pass length of string
42         to JvGetStringUTFRegion.
43         * gnu/awt/gtk/natGtkButtonPeer.cc (setLabel): Pass length of
44         string to JvGetStringUTFRegion.
45
46 2003-11-13  Mohan Embar  <gnustuff@thisiscool.com>
47
48         * gnu/java/nio/natSelectorImplPosix.cc
49         (helper_put_filedescriptors): Change to static linkage.
50         (helper_get_filedescriptors): Likewise.
51
52 2003-11-12  Tom Fitzsimmons  <fitzsim@redhat.com>
53
54         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Remove
55         null check.
56         * gnu/java/awt/peer/gtk/GtkToolkit.java (prepareImage): Likewise.
57         * java/awt/Component.java (prepareImage): Likewise.
58
59         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (setAlignment):
60         Rename to nativeSetAlignment.
61
62 2003-11-11  Danny Smith  <dannysmith@users.sourceforge.net>
63
64         * jni.cc (JNI_CreateJavaVM): Remove JNIEXPORT.
65         (JNI_GetCreatedJavaVMs): Likewise.
66         (JNI_GetDefaultJavaVMInitArgs): Likewise.
67         * include/jni.h (JNIIMPEXP): Remove definition
68         and replace with...
69         (__GCJ_JNIIMPEXP__): New macro, applicable only to libgcj
70         symbols,
71         (__GCJ_DLL__): New macro, controlling __GCJ_JNIIMPEXP__.
72
73 2003-11-11  Thomas Fitzsimmons  <fitzsim@redhat.com>
74
75         * Makefile.am: Add GdkPixbufDecoder.java and
76         gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
77         * Makefile.in: Regenerate.
78         * gnu/java/awt/image/ImageDecoder.java (ImageDecoder(byte[],int,int)):
79         New constructor.
80         (startProduction): Create ByteArrayInputStream when url and filename are
81         null.
82         (produce): Declare stream parameter as InputStream.
83         * gnu/java/awt/image/XBMDecoder.java (produce): Declare stream parameter
84         as InputStream.
85         * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
86         (GdkPixbufDecoder(byte[],int,int)): New constructor.
87         (produce): Declare stream parameter as InputStream.
88         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Throw NPE
89         if image is null.  Set image's observer before running PrepareImage
90         thread.  Pass image to startProduction.
91         * gnu/java/awt/peer/gtk/GtkImage.java: Add null checks before calls to
92         source's member functions.
93         (observer): New field.
94         (setObserver): New method.
95         (setDimensions, setPixels, imageComplete): Call observer's imageUpdate.
96         * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage, getImage): Return
97         new GtkImage.
98         (prepareImage): Implement.
99         * java/awt/Component.java: Add static fields incrementalDraw and
100         redrawRate.
101         (imageUpdate): Implement.
102         (createImage): Call Toolkit's createImage if peer is null.
103         (prepareImage): Throw NPE if image is null.
104         * java/awt/MediaTracker.java: Fix return value.
105
106 2003-11-11  Thomas Fitzsimmons  <fitzsim@redhat.com>
107
108         * gnu/java/awt/peer/gtk/GtkLabelPeer.java (create()): Call new create.
109         (create(String, float)): New method.
110         (setText): Make native.
111         (nativeSetAlignment): New method.
112         (setAlignment): Call nativeSetAlignment.
113         (getArgs): Remove method.
114         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
115         (find_fg_color_widget, find_bg_color_widget): New functions.
116         (gtkWidgetSetForeground): Call find_fg_color_widget.
117         (gtkWidgetSetBackground): Call find_bg_color_widget.  Modify active and
118         prelight colors.
119         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create): Wrap label
120         widget in event box.
121         (setText, setAlignment): Implement new native methods.
122
123 2003-11-11  Michael Koch  <konqueror@gmx.de>
124
125         * java/awt/Font.java,
126         java/awt/datatransfer/DataFlavor.java,
127         java/math/BigInteger.java,
128         java/net/Inet4Address.java,
129         java/net/Inet6Address.java,
130         java/rmi/MarshalledObject.java,
131         java/rmi/server/RMIClassLoader.java,
132         java/security/cert/CertStore.java,
133         java/sql/Timestamp.java,
134         java/text/SimpleDateFormat.java,
135         javax/naming/CompoundName.java:
136         Removed some redundant obj == null checks.
137
138 2003-11-11  Michael Koch  <konqueror@gmx.de>
139
140         * java/nio/ByteBuffer.java
141         (equals): Remove redundant obj == null check.
142
143 2003-11-11  Michael Koch  <konqueror@gmx.de>
144
145         * gnu/java/nio/natPipeImpl.cc,
146         gnu/java/nio/natSelectorImpl.cc: Removed
147         * gnu/java/nio/natPipeImplEcos.cc,
148         gnu/java/nio/natPipeImplPosix.cc,
149         gnu/java/nio/natPipeImplWin32.cc,
150         gnu/java/nio/natSelectorImplEcos.cc,
151         gnu/java/nio/natSelectorImplPosix.cc,
152         gnu/java/nio/natSelectorImplWin32.cc: New files
153         * configure.in: Create links for gnu/java/nio/natPipeImpl.cc and
154         gnu/java/nio/natSelectorImpl.cc
155         * configure: Regenerated.
156
157 2003-11-11  Micheal Koch  <konqueror@gmx.de>
158
159         * java/net/URLStreamHandler.java (toExternalForm): Print port only
160         if host is printed too and port was really given to URL.
161
162 2003-11-10  Gary Benson  <gbenson@redhat.com>
163
164         * java/sql/Timestamp.java (valueOf): Correctly handle
165         nanoseconds.
166
167 2003-11-09  Tom Tromey  <tromey@redhat.com>
168
169         * java/net/Inet4Address.java (serialVersionUID): Updated.
170
171 2003-11-08  Jeff Sturm  <jsturm@one-point.com>
172
173         * gnu/gcj/runtime/FirstThread.java (Klocale, Kcalendar):
174         New fields.
175
176 2003-11-08  Jeff Sturm  <jsturm@one-point.com>
177
178         * java/io/ByteArrayOutputStream.java (resize):
179         Fix off-by-one error.
180
181 2003-11-08  Bryce McKinlay  <bryce@mckinlay.net.nz>
182
183         * gnu/gcj/xlib/XAnyEvent.java (XAnyEvent): Make constructor
184         public.
185
186 2003-11-06  Mohan Embar  <gnustuff@thisiscool.com>
187
188         PR libgcj/12231
189         * java/lang/Win32Process.java (hasExited) Changed from
190         public to private.
191         (startProcess): Likewise.
192         (cleanup): Likewise.
193         * java/lang/natWin32Process.cc (cleanup) Don't close
194         input, output and error streams.
195         (ChildProcessPipe): New helper class.
196         (startProcess): Refactored to use ChildProcessPipe.
197         Use CREATE_NO_WINDOW when launching child process.
198
199 2003-11-06  Mohan Embar  <gnustuff@thisiscool.com>
200
201         * include/win32.h (_Jv_platform_close_on_exec): Changed
202         signature and declared extern.
203         * win32.cc (_Jv_platform_close_on_exec): Implemented.
204         * gnu/java/net/natPlainDatagramSocketImplWin32.cc
205         (create): Use new signature of _Jv_platform_close_on_exec.
206         * gnu/java/net/natPlainSocketImplWin32.cc 
207         (create): Eliminated a few typecasts
208         Use new signature of _Jv_platform_close_on_exec.
209         (accept): Eliminated a few typecasts
210         Use new signature of _Jv_platform_close_on_exec.
211         * java/io/natFileDescriptorWin32.cc (open): Use
212         _Jv_platform_close_on_exec.
213
214 2003-11-04  Bryce McKinlay  <bryce@mckinlay.net.nz>
215
216         * java/lang/natClass.cc (newInstance): Throw InstantiationException
217         if class has no null-argument constructor.
218
219 2003-10-30  Mohan Embar  <gnustuff@thisiscool.com>
220
221         PR libgcj/12647:
222         * win32-threads.cc (_Jv_CondWait): Respect mutex's
223         refcount when releasing and reacquiring it.
224
225 2003-10-30  Mohan Embar  <gnustuff@thisiscool.com>
226
227         * win32.cc: (dirExists) Internal helper function to
228         test for directory existence.
229         (getUserHome) New helper function refactored out
230         of _Jv_platform_initProperties. Uses USERPROFILE
231         instead of HOMEDIR and attempts to support Win9X and NT.
232         (_Jv_platform_initProperties) Use getUserHome.
233
234 2003-10-30  Mohan Embar  <gnustuff@thisiscool.com>
235
236         PR libgcj/11521:
237         * gnu/java/net/natPlainSocketImplWin32.cc
238         (bind): Don't use SO_REUSEADDR
239
240 2003-10-30  Mohan Embar  <gnustuff@thisiscool.com>
241
242         PR libgcj/6652:
243         * java/io/natFileWin32.cc (getCanonicalPath): Treat "" like ".".
244
245 2003-10-30  Bryce McKinlay  <bryce@mckinlay.net.nz>
246
247         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Don't use vtable
248         dispatch for final methods.
249
250 2003-10-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
251
252         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Turn on
253         word wrapping.
254
255 2003-10-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
256
257         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (getSize): Return
258         scrolled window's size request.
259
260 2003-10-29  Sascha Brawer  <brawer@dandelis.ch>
261
262         * java/awt/geom/CubicCurve2D.java (contains): Docfix for URL of embedded drawing.
263         * java/awt/geom/QuadCurve2D.java: Likewise.
264
265 2003-10-29  Sascha Brawer  <brawer@dandelis.ch>
266
267         * java/awt/geom/CubicCurve2D.java: Added documentation.
268         * java/awt/geom/QuadCurve2D.java: Likewise.
269
270         * java/awt/geom/doc-files/QuadCurve2D-4.png,
271         java/awt/geom/doc-files/QuadCurve2D-5.png,
272         java/awt/geom/doc-files/CubicCurve2D-4.png,
273         java/awt/geom/doc-files/Cubicurve2D-5.png: New illustrations.
274
275 2003-10-29  Sascha Brawer  <brawer@dandelis.ch>
276
277         * java/awt/geom/CubicCurve2D.java (getFlatnessSq): Implement.
278         (subdivide(CubicCurve2D, CubicCurve2D)): Avoid useless object allocation.
279         (subdivide(double[],int,double[],int,double[],int)): Implement.
280
281 2003-10-29  Sascha Brawer  <brawer@dandelis.ch>
282
283         * java/awt/geom/doc-files/CubicCurve2D-1.png,
284         java/awt/geom/doc-files/CubicCurve2D-2.png,
285         java/awt/geom/doc-files/CubicCurve2D-3.png: New illustrations.
286
287 2003-10-29  Ito Kazumitsu <kaz@maczuka.gcd.org>
288
289         * java/text/DecimalFormat.java
290         (scanFormat) corrected so that '%' may appear in a pattern.
291
292 2003-10-29  Mark Wielaard  <mark@klomp.org>
293
294         From Guilhem Lavaux  <guilhem.lavaux@free.fr>
295         * java/text/DateFormat.java (Field): New public static inner class.
296         * java/text/Format.java (Field): Likewise.
297         (formatToCharacterIterator): New method.
298         * java/text/FormatCharacterIterator.java: New file.
299
300 2003-10-29  Mark Wielaard  <mark@klomp.org>
301
302         From Guilhem Lavaux  <guilhem.lavaux@free.fr>
303         * java/util/Currency.java: New file.
304
305 2003-10-29  Michael Koch  <konqueror@gmx.de>
306
307         * Makefile.am (ordinary_java_source_files): Added
308         java/text/FormatCharacterIterator.java and java/util/Currency.java.
309         * Makefile.in: Regenerated.
310
311 2003-10-29  Dalibor Topic  <robilad@kaffe.org>
312
313         * gnu/java/beans/IntrospectionIncubator.java (addMethod): Add public
314         static methods.
315
316 2003-10-29  Julian Dolby  <dolby@us.ibm.com>
317
318         * javax/naming/spi/NamingManager.java (getContinuationContext): Call
319         getObjectInstance() with Object, Name, Context and environment
320         Hashtable from exception. Call fillInStackTrace() on exception when
321         rethrown.
322         * javax/naming/InitialContext.java (lookup(Name)): When a
323         CannotProceedException is thrown use the ContinuationContext.
324         (lookup(String)): Likewise.
325         (close): Clear myProps and defaultInitCtx.
326
327 2003-10-29  Michael Koch  <konqueror@gmx.de>
328
329         * java/net/InetAddress.java
330         (equals): Remove redundant obj == null check.
331         * java/net/SocketPermission.java
332         (equals): Likewise.
333         * java/net/URL.java
334         (equals): Likewise.
335         (getURLStreamHandler): Likewise.
336
337 2003-10-29  Michael Koch  <konqueror@gmx.de>
338
339         * gnu/java/net/natPlainDatagramSocketImplPosix.cc
340         (setOption): Directly return if no error occured.
341         * gnu/java/net/natPlainSocketImplPosix.cc
342         (setOption): Likewise.
343
344 2003-10-28  Bryce McKinlay  <bryce@mckinlay.net.nz>
345
346         * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Always assign a
347         vtable slot for final methods. Add FIXME comment.
348
349 2003-10-28  David S. Miller  <davem@redhat.com>
350
351         * sysdep/sparc/locks.h (__cas_start_atomic): %g0 --> %%g0.
352
353 2003-10-26  Mark Wielaard  <mark@klomp.org>
354
355         Reported by Helmer Kraemer <hkraemer@freenet.de>
356         * java/util/jar/JarInputStream.java (readManifest): Don't call
357         closeEntry().
358
359         * java/util/zip/DeflaterOutputStream.java (inbufWrite): New method.
360         (finish): Use inbufWrite().
361         (write(int)): Likewise.
362         (write(byte[],int,int)): Likewise.
363
364 2003-10-26  Bryce McKinlay  <bryce@mckinlay.net.nz>
365
366         * java/lang/reflect/AccessibleObject.java (secureSetAccessible):
367         Don't check for AccessibleObject. Update javadocs.
368         
369         * java/util/TreeMap.java: Doc fixes. HashMap -> TreeMap.
370
371 2003-10-26  Bryce McKinlay  <bryce@mckinlay.net.nz>
372
373         * java/lang/reflect/Constructor.java (toString): Avoid extra 
374         whitespace on constructor with no modifiers.
375         * java/lang/reflect/natConstructor.java (newInstance): Look up
376         caller and perform accessibility check only if constructor is
377         non-public and accessible flag is not set.
378
379 2003-10-26  Bryce McKinlay  <bryce@mckinlay.net.nz>
380
381         * jni.cc (_Jv_JNI_CallAnyMethodV, _Jv_JNI_CallAnyMethodA,
382         _Jv_JNI_CallAnyVoidMethodV, _Jv_JNI_CallAnyVoidMethodA): Don't
383         use _Jv_LookupDeclaredMethod(). Call _Jv_CallAnyMethodA with 
384         is_virtual_call argument.
385         * include/jvm.h (_Jv_isVirtualMethod): Moved and renamed from 
386         natClass.cc.
387         * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Use 
388         _Jv_isVirtualMethod.
389         * java/lang/reflect/natMethod.cc (invoke): Don't use 
390         _Jv_LookupDeclaredMethod.
391         (_Jv_CallAnyMethodA): New is_virtual_call argument. If specified,
392         look up method in target object's vtable.
393
394 2003-10-25  Graydon Hoare  <graydon@redhat.com>
395
396         * gnu/java/awt/ClasspathToolkit.java: New abstract class.
397         * gnu/java/awt/peer/ClasspathFontPeer.java: New abstract class.
398         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
399         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
400         New concrete implementation of ClasspathFontPeer, with native part.
401         * gnu/java/awt/peer/gtk/GdkGlyphVector.java,
402         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
403         New class, with native part.
404         * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
405         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
406         implement setFont, cairoSetFont, drawGlyphVector, cairoShowGlyphs.
407
408 2003-10-25  Bryce McKinlay  <bryce@mckinlay.net.nz>
409
410         * java/lang/reflect/Method.java (toString): Avoid extra whitespace
411         on method with no modifiers.
412
413 2003-10-25  Bryce McKinlay  <bryce@mckinlay.net.nz>
414
415         PR libgcj/11780:
416         * java/lang/reflect/natMethod.cc (invoke): Look up caller and perform
417         accessibility check only if target is non-public and accessible flag
418         is not set.
419         * java/lang/reflect/natField.cc (getAddr): Likewise.
420
421 2003-10-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
422
423         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (handleEvent):
424         Remove method.
425         * gnu/java/awt/peer/gtk/GtkWindowPeer.java (postWindowEvent):
426         New method.
427         * java/awt/Window.java (Window(Window,GraphicsConfiguration),
428         show, hide, dispose, getOwnedWindows): Synchronize on tree lock.
429         (dispose): Post WINDOW_CLOSED event.
430         (addWindowFocusListener, addWindowStateListener): Assign result
431         of multicaster add back to window listener.
432         (removeWindowFocusListener, removeWindowStateListener): Assign
433         result of multicaster remove back to window listener.
434         (dispatchEventImpl): Add null checks for focus and state
435         listeners.
436         (processWindowEvent): Handle case where windowListener is null
437         but state or focus listeners exist.
438         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Add JNI
439         glue for postWindowEvent.
440         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
441         (window_delete_cb, window_destroy_cb, window_show_cb,
442         window_focus_in_cb, window_focus_out_cb, window_window_state_cb,
443         window_get_new_state): New functions.
444         * jni/gtk-peer/gtkpeer.h: Define window event and frame state
445         macros.  Declare postWindowEventID.
446
447 2003-10-24  Anthony Green  <green@redhat.com>
448
449         * java/lang/natClass.cc (_Jv_LinkSymbolTable): Fix case where
450         we have no interpreter.
451
452 2003-10-22  Andrew Haley  <aph@redhat.com>
453
454         * java/lang/natClass.cc (initializeClass): Call
455         _Jv_linkExceptionClassTable.
456         (_Jv_LinkSymbolTable): Call )_Jv_ThrowNoSuchMethodError.  Call
457         _Jv_Defer_Resolution on a method whose ncode is NULL.
458         (_Jv_linkExceptionClassTable): New function.
459         (_Jv_LayoutVTableMethods): If superclass looks like a constant pool
460         entry, look it up.
461         * java/lang/Class.h (struct _Jv_CatchClass): New.
462         (_Jv_linkExceptionClassTable): New friend.
463         (_Jv_Defer_Resolution): New friend.
464         (class Class.catch_classes): New field.
465         * include/java-interp.h (Jv_Defer_Resolution): New method.
466         (_Jv_PrepareClass): Make a friend of _Jv_MethodBase.
467         (_Jv_MethodBase.deferred): New field.
468         (_Jv_Defer_Resolution): New function.
469         * resolve.cc (_Jv_PrepareClass): Resolve deferred handlers.
470         * exception.cc (get_ttype_entry): Change return type to void**.
471         (PERSONALITY_FUNCTION): Remove all code related to using a
472         Utf8Const* for a match type.  Change match type to be a pointer to
473         a pointer, rather than a pointer to a Class.
474         * defineclass.cc (handleCodeAttribute): Initialize
475         method->deferred.
476         (handleMethodsEnd): Likewise.
477
478 2003-10-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
479
480         * java/lang/natObject.cc (_Jv_ObjectCheckMonitor): Use
481         _Jv_MutexCheckMonitor instead of accessing mutex.owner directly.
482
483 2003-10-22  Tom Tromey  <tromey@redhat.com>
484
485         PR libgcj/12416:
486         * java/lang/Class.h: Updated.
487         * java/lang/natClass.cc (_getFields): Removed.
488         (getFields): Likewise.
489         (getDeclaredFields): Added `public_only' parameter.
490         * java/lang/Class.java (getFields): Now implemented in java; from
491         Classpath.
492         (getDeclaredFields): Likewise.
493         (getDeclaredFields(boolean)): Declare.
494         (_getFields): Removed.
495         (internalGetFields): New method, from Classpath.
496
497         PR libgcj/12656:
498         * gnu/gcj/runtime/natFirstThread.cc (call_main): Use
499         _Jv_LookupDeclaredMethod, not _Jv_GetMethodLocal.
500
501 2003-10-22  David Daney  <ddaney@avtrex.com)
502
503         * include/mips-signal.h: New file.
504         * sysdep/dwarf2-backtrace.cc: New file.
505         * sysdep/mips: New directory.
506         * sysdep/mips/locks.h: New file.
507         * Makefile.am(extra_cc_files): New, to allow extra c++ files to be
508         added to libgcj.
509         (extra_cc_source_files): Ditto.
510         * configure.host(disable_dladdr):  New shell variable passed to
511         configure.
512         (mips*-*-linux*): sysdeps_dir=mips,
513         can_unwind_signal=yes, disable_dladdr=yes, use -mxgot.
514         (mipsel*-linux* | mipsisa32el*-linux*): Enable hash synchronization.
515         * configure.in:(mips*-*-linux*): Use sysdep/dwarf2-backtrace.cc to
516         generate backtrace, and include/mips-signal.h as SIGNAL_HANDLER
517         (HAVE_DLADDR): Make it depend on setting of disable_dladdr.
518         (EXTRA_CC_FILES): New, to support conditional addition of
519         sysdep/dwarf2-backtrace.cc.
520         * configure: Regenerated.
521         * Makefile.in: Regenerated.
522         * gcj/Makefile.in: Regenerated.
523         * include/config.h.in: Regenerated.
524         * include/Makefile.in: Regenerated.
525         * testsuite/Makefile.in: Regenerated.
526         
527 2003-10-22  Sascha Brawer  <brawer@dandelis.ch>
528
529         * java/awt/geom/QuadCurve2D.java (subdivide): Added documentation.
530         java/awt/geom/doc-files/QuadCurve2D-3.png: New illustration.
531
532 2003-10-22  Sascha Brawer  <brawer@dandelis.ch>
533
534         * java/awt/geom/QuadCurve2D.java: Reformatted, wrote Javadoc.
535         * java/awt/geom/doc-files: New directory.
536         * java/awt/geom/doc-files/QuadCurve2D-1.png,
537         java/awt/geom/doc-files/QuadCurve2D-2.png: New illustrations.
538         
539 2003-10-22  Sascha Brawer  <brawer@dandelis.ch>
540
541         * java/awt/geom/QuadCurve2D.java (subdivide): Implement.
542
543 2003-10-22  Sascha Brawer  <brawer@dandelis.ch>
544
545         * java/awt/geom/QuadCurve2D.java (getFlatness, getFlatnessSq): Implement.
546
547 2003-10-22  Michael Koch  <konqueror@gmx.de>
548
549         * java/io/File.java
550         (equals): Removed redundant obj == null check.
551         (createTempFile): Merged comments from classpath.
552
553 2003-10-21  Sascha Brawer  <brawer@dandelis.ch>
554
555         Fix for bug #2944, reported by David Holmes <dholmes@dltech.com.au>
556         * java/util/logging/ErrorManager.java (everUsed): Made volatile.
557         (error): Synchronize on instance, not class.
558
559 2003-10-21  Mark Wielaard  <mark@klomp.org>
560
561         Reported by M.Negovanovic
562         * java/beans/Introspector.java (getBeanInfo(ClassLoader, String)): New
563         method.
564         (reallyFindExplicitBeanInfo): Use new getBeanInfo() method.
565
566 2003-10-21  Sascha Brawer  <brawer@dandelis.ch>
567
568         Fix for Classpath bug #6076.
569         * java/awt/geom/GeneralPath.java (append): Re-written.
570
571 2003-10-21  Sascha Brawer  <brawer@dandelis.ch>
572
573         Fix for Classpath bug #6089.
574         * java/awt/geom/GeneralPath.java (curveTo): Set correct segment type.
575         (getPathIterator, GeneralPathIterator): Re-written from scratch.
576
577 2003-10-21  Sascha Brawer  <brawer@dandelis.ch>
578
579         * java/awt/geom/GeneralPath.java (getCurrentPoint): Return last
580         point, not start of subpath.  Fixes Classpath bug #6075.
581
582 2003-10-21  Michael Koch  <konqueror@gmx.de>
583
584         * java/nio/ByteOrder.java,
585         java/nio/DirectByteBufferImpl.java,
586         java/nio/channels/FileChannelImpl.java:
587         Add code to load library with code for native methods if needed.
588
589 2003-10-21  Michael Koch  <konqueror@gmx.de>
590
591         * gnu/java/net/PlainDatagramSocketImpl.java,
592         gnu/java/net/PlainSocketImpl.java,
593         gnu/java/net/natPlainDatagramSocketImplPosix.cc,
594         gnu/java/net/natPlainDatagramSocketImplWin32.cc,
595         gnu/java/net/natPlainSocketImplPosix.cc,
596         gnu/java/net/natPlainSocketImplWin32.cc:
597         Renamed fnum to native_fd to match classpath more.
598
599 2003-10-21  Jerry Quinn  <jlquinn@optonline.net>
600
601         * posix-threads.cc (_Jv_CondNotify,_Jv_CondNotifyAll): Rename
602         _Jv_PthreadCheckMonitor to _Jv_MutexCheckMonitor.
603         * include/no-threads.h (_Jv_MutexCheckMonitor): New.
604         * include/posix-threads.h (_Jv_MutexCheckMonitor): Rename from
605         _Jv_PthreadCheckMonitor.  Simplify code.
606         (_Jv_MutexUnlock): Use _Jv_MutexCheckMonitor.
607         * include/win32-threads.h (_Jv_MutexCheckMonitor): New.
608         * java/lang/Object.h (_Jv_ObjectCheckMonitor): Declare.
609         * java/lang/Thread.java (holdsLock): New.
610         * java/lang/natObject.cc (_Jv_ObjectCheckMonitor): New, with and
611         without JV_HASH_SYNCHRONIZATION.
612         * java/lang/natThread.cc (java::lang::Thread::holdsLock): New.
613
614 2003-10-20  Michael Koch  <konqueror@gmx.de>
615
616         * java/text/RuleBasedCollator.java
617         (RuleBasedCollator): Check rules not empty, fixed search in already
618         existing collation elements.
619         (is_special): Removed common whitespace characters.
620         (text_argument): Dont return on whitespaces, add characters between
621         two ' to string buffer.
622
623 2003-10-18  Michael Koch  <konqueror@gmx.de>
624
625         * gnu/java/net/protocol/file/Connection.java,
626         gnu/java/net/protocol/file/Handler.java,
627         gnu/java/net/protocol/http/Connection.java,
628         gnu/java/net/protocol/http/Handler.java,
629         gnu/java/net/protocol/jar/Connection.java,
630         gnu/java/net/protocol/jar/Handler.java:
631         Merged copyright text from classpath to make
632         it possible to merge the classes.
633
634 2003-10-18  Mark Wielaard  <mark@klomp.org>
635
636         Reported by M.Negovanovic
637         * java/beans/IndexedPropertyDescriptor.java
638         (IndexedPropertyDescriptor): this.setIndex = setIndex, not getIndex.
639
640 2003-10-17  Mohan Embar  <gnustuff@thisiscool.com>
641
642         * win32.cc (_Jv_pipe): Implemented.
643         * gnu/java/nio/natPipeImpl.cc (nativeInit): Use
644         _Jv_pipe instead of ::pipe.
645         * include/posix.h (_Jv_pipe): New inline.
646         * include/win32.h (_Jv_pipe): New declaration.
647         
648 2003-10-17  Ralph Loader  <rcl@ihug.co.nz>
649
650         * java/lang/StringBuffer.java (getChars): Fix array index checks.
651         (append, substring, insert): Likewise.
652         * testsuite/libjava.lang/StringBuffer_overflow.java: New file.
653         * testsuite/libjava.lang/StringBuffer_overflow.out: New file.
654         
655 2003-10-17  Ralph Loader  <rcl@ihug.co.nz>
656
657         * java/lang/natString.cc (getChars):
658         Fix validation of array indexes.
659         (getBytes, regionMatches, startsWith, valueOf): Likewise.
660         * testsuite/libjava.lang/String_overflow.java: New file.
661         * testsuite/libjava.lang/String_overflow.out: New file.
662
663 2003-10-17  Ralph Loader  <rcl@ihug.co.nz>
664
665         * prims.cc (_Jv_NewObjectArray): Make sure byte size doesn't
666         overflow a jint.
667         (_Jv_NewPrimArray): Check for overflowing a jint, replacing a
668         check for overflowing size_t, since the lower level functions
669         take a jint.
670         * testsuite/libjava.lang/newarray_overflow.java:  New file.
671         * testsuite/libjava.lang/newarray_overflow.out:  New file.
672         
673 2003-10-15  Michael Koch  <konqueror@gmx.de>
674
675         * java/text/RuleBasedCollator.java
676         (RuleBasedCollator): Moved around, documentation added.
677         (compare): Documentation added.
678         (equals): Likewise.
679         (getCollationElementIterator): Likewise.
680         (getCollationKey): Likewise.
681         (getRules): Likewise.
682         (hashCode): Likewise.
683
684 2003-10-15  Michael Koch  <konqueror@gmx.de>
685
686         * java/text/RuleBasedCollator.java
687         (CollationElement): Renamed from RBCElement and moved into
688         RuledBasedCollator as inner class.
689
690 2003-10-15  Michael Koch  <konqueror@gmx.de>
691
692         * java/text/CollationElementIterator.java
693         (CollationElementIterator): Moved, documenatation added, call setText.
694         (next): Reformated.
695         (reset): Reformated.
696         (setText): New method.
697         (getOffset): New method.
698         * java/text/CollationKey.java
699         (getSourceString): Reformated.
700         (hashCode): Reformated.
701         (toByteArray): Reformated.
702
703 2003-10-15  Michael Koch  <konqueror@gmx.de>
704
705         * java/util/zip/InflaterInputStream.java
706         (InflaterInputStream): Renamed infl to inf and bufsize to size,
707         added description to exception, check for inf == null and size < 0.
708
709 2003-10-15  Michael Koch  <konqueror@gmx.de>
710
711         * java/text/AttributedCharacterIterator.java,
712         java/text/CharacterIterator.java: Reformated.
713
714 2003-10-15  Michael Koch  <konqueror@gmx.de>
715
716         * javax/swing/UIDefaults.java (putDefaults):
717         Readded accidently removed "public" modifier.
718
719 2003-10-14  Paolo Bonzini  <bonzini@gnu.org>
720
721         * interpret.cc (_Jv_InterpMethod::run): Don't
722         use libffi types, they were meant to be internal.
723         * gcj/javaprims.h (_Jv_ulong): New typedef.
724
725 2003-10-13  Tom Tromey  <tromey@redhat.com>
726
727         * java/lang/natClassLoader.cc (_Jv_InitNewClassFields): Removed.
728         (defineClass): Updated.
729         (_Jv_NewClass): Likewise.
730         * prims.cc (_Jv_InitPrimClass): Don't call
731         _Jv_InitNewClassFields.
732
733 2003-10-13  Taras Glek  <taras.judge@shaw.ca>
734
735         PR libgcj/12592
736         * gnu/java/net/protocol/http/Connection.java (connect): Use \r\n,
737         not just \n.
738
739 2003-10-13  Michael Koch  <konqueror@gmx.de>
740
741         * java/io/File.java: Reformated.
742         (equals): Check for obj == null.
743
744 2003-10-13  Michael Koch  <konqueror@gmx.de>
745
746         * java/net/JarURLConnection.java
747         (jarFileURL): Added dcoumentation.
748         (jarFileURLConnection): Reformated documentation.
749         (entryName): Renamed from "element", documentation rewritten.
750         (connectionCache): Renamed from "conn_cache", documentation
751         reformated.
752         (JarURLConnection): Check URL protocol.
753         (getEntryName): Use entryName.
754         (connect): Use connectionCache.
755         (getInputStream): Use entryName, fixed comment.
756         (getJarEntry): Use entryName.
757         (getHeaders): Use entryName.
758         * java/net/URLConnection.java
759         (addRequestProperty): Fixed documentation.
760         (setDefaultRequestProptery): Added comment that it does nothing since
761         JDK 1.3.
762         (getDefaultRequestProperty): Likewise.
763
764 2003-10-13  Michael Koch  <konqueror@gmx.de>
765
766         * java/net/java/net/URLStreamHandlerFactory.java
767         (createURLStreamHandler): Removed redundant "public" modifier.
768         * java/sql/DatabaseMetaData.java:
769         (DatabaseMetaData):  Readded accidently removed "public" modifier.
770         * java/sql/ParameterMetaData.java:
771         (ParameterMetaData): Readded accidently removed "public" modifier.
772         * java/sql/PreparedStatement.java:
773         (PreparedStatement): Readded accidently removed "public" modifier.
774         * java/sql/Ref.java:
775         (Ref): Readded accidently removed "public" modifier.
776
777 2003-10-13  Michael Koch  <konqueror@gmx.de>
778
779         * java/nio/Buffer.java
780         (hasRemaining): Made implementation more clear.
781         * java/nio/MappedByteBuffer.java
782         (loaded): New member variable.
783         (force): Added comment.
784         (isLoaded): Return value of loaded.
785         (load): Set loaded to true, added comment.
786
787 2003-10-12  Michael Koch  <konqueror@gmx.de>
788
789         * gnu/java/nio/PipeImpl.java
790         (SourceChannelImpl): New inner class.
791         (SinkChannelImpl): New inner class.
792         (sink): New member variable.
793         (source): New member variable.
794         (PipeImpl): Add SelectorProvider argument, implemented.
795         (nativeInit): New method.
796         (sink): Return sink channel.
797         (source): Return source channel.
798         * gnu/java/nio/SelectorProviderImpl.java
799         (openPipe): Give provider as argument to PipeImpl constructor.
800         * java/nio/channels/spi/SelectorProvider.java
801         (pr): Removed.
802         (systemDefaultProvider): New member variable.
803         (provider): Made it synchronized, use property
804         java.nio.channels.spi.SelectorProvider.
805         * gnu/java/nio/natPipeImpl.cc: New file.
806         * Makefile.am (nat_source_files): Added gnu/java/nio/natPipeImpl.cc.
807         * Makefile.in: Regenerated.
808
809 2003-10-12  Michael Koch  <konqueror@gmx.de>
810
811         * javax/swing/table/DefaultTableModel.java,
812         javax/swing/table/TableCellEditor.java,
813         javax/swing/table/TableCellRenderer.java,
814         javax/swing/table/TableColumnModel.java,
815         javax/swing/table/TableModel.java,
816         javax/swing/text/AbstractDocument.java,
817         javax/swing/text/Document.java,
818         javax/swing/text/MutableAttributeSet.java,
819         javax/swing/text/StyledDocument.java,
820         javax/swing/text/ViewFactory.java,
821         javax/swing/tree/DefaultMutableTreeNode.java,
822         javax/swing/tree/MutableTreeNode.java,
823         javax/swing/tree/RowMapper.java,
824         javax/swing/tree/TreeCellEditor.java,
825         javax/swing/tree/TreeCellRenderer.java,
826         javax/swing/tree/TreeModel.java,
827         javax/swing/tree/TreeNode.java,
828         javax/swing/tree/TreeSelectionModel.java,
829         javax/swing/undo/StateEditable.java,
830         javax/swing/undo/UndoableEdit.java:
831         Removed redundant modifiers.
832
833 2003-10-12  Michael Koch  <konqueror@gmx.de>
834
835         * javax/swing/event/AncestorListener.java,
836         javax/swing/event/CaretListener.java,
837         javax/swing/event/CellEditorListener.java,
838         javax/swing/event/ChangeListener.java,
839         javax/swing/event/DocumentEvent.java,
840         javax/swing/event/DocumentListener.java,
841         javax/swing/event/HyperlinkListener.java,
842         javax/swing/event/InternalFrameListener.java,
843         javax/swing/event/ListDataListener.java,
844         javax/swing/event/ListSelectionListener.java,
845         javax/swing/event/MenuDragMouseListener.java,
846         javax/swing/event/MenuKeyListener.java,
847         javax/swing/event/MenuListener.java,
848         javax/swing/event/MouseInputListener.java,
849         javax/swing/event/PopupMenuListener.java,
850         javax/swing/event/TableColumnModelListener.java,
851         javax/swing/event/TableModelListener.java,
852         javax/swing/event/TreeExpansionListener.java,
853         javax/swing/event/TreeModelListener.java,
854         javax/swing/event/TreeSelectionListener.java,
855         javax/swing/event/TreeWillExpandListener.java,
856         javax/swing/event/UndoableEditListener.java,
857         javax/swing/plaf/UIResource.java,
858         javax/swing/plaf/metal/MetalLookAndFeel.java:
859         Removed redundant modifiers.
860
861 2003-10-12  Michael Koch  <konqueror@gmx.de>
862
863         * javax/swing/Action.java,
864         javax/swing/BoundedRangeModel.java,
865         javax/swing/CellEditor.java,
866         javax/swing/ComboBoxEditor.java,
867         javax/swing/ComboBoxModel.java,
868         javax/swing/DesktopManager.java,
869         javax/swing/JComboBox.java,
870         javax/swing/ListCellRenderer.java,
871         javax/swing/ListSelectionModel.java,
872         javax/swing/MenuElement.java,
873         javax/swing/MutableComboBoxModel.java,
874         javax/swing/Renderer.java,
875         javax/swing/RootPaneContainer.java,
876         javax/swing/ScrollPaneConstants.java,
877         javax/swing/SingleSelectionModel.java,
878         javax/swing/SpinnerModel.java,
879         javax/swing/SwingConstants.java,
880         javax/swing/UIDefaults.java,
881         javax/swing/WindowConstants.java,
882         javax/swing/border/Border.java,
883         javax/swing/colorchooser/ColorSelectionModel.java:
884         Removed redundant modifiers.
885
886 2003-10-11  Michael Koch  <konqueror@gmx.de>
887
888         * javax/transaction/Status.java,
889         javax/transaction/Synchronization.java,
890         javax/transaction/Transaction.java,
891         javax/transaction/TransactionManager.java,
892         javax/transaction/UserTransaction.java,
893         javax/transaction/xa/XAResource.java,
894         javax/transaction/xa/Xid.java:
895         Removing redundant modifiers.
896
897 2003-10-11  Michael Koch  <konqueror@gmx.de>
898
899         * javax/print/attribute/Attribute.java,
900         javax/print/attribute/AttributeSet.java,
901         javax/print/attribute/PrintRequestAttributeSet.java:
902         Removing redundant modifiers.
903
904 2003-10-11  Michael Koch  <konqueror@gmx.de>
905
906         * javax/sql/ConnectionEventListener.java,
907         javax/sql/ConnectionPoolDataSource.java,
908         javax/sql/DataSource.java,
909         javax/sql/PooledConnection.java,
910         javax/sql/RowSet.java,
911         javax/sql/RowSetInternal.java,
912         javax/sql/RowSetListener.java,
913         javax/sql/RowSetMetaData.java,
914         javax/sql/RowSetReader.java,
915         javax/sql/RowSetWriter.java,
916         javax/sql/XAConnection.java,
917         javax/sql/XADataSource.java:
918         Removing redundant modifiers.
919
920 2003-10-11  Michael Koch  <konqueror@gmx.de>
921
922         * javax/naming/Context.java,
923         javax/naming/Name.java,
924         javax/naming/NameParser.java,
925         javax/naming/NamingEnumeration.java,
926         javax/naming/Referenceable.java,
927         javax/naming/directory/Attribute.java,
928         javax/naming/directory/Attributes.java,
929         javax/naming/directory/DirContext.java,
930         javax/naming/event/EventContext.java,
931         javax/naming/event/EventDirContext.java,
932         javax/naming/event/NamespaceChangeListener.java,
933         javax/naming/event/NamingListener.java,
934         javax/naming/event/ObjectChangeListener.java,
935         javax/naming/ldap/Control.java,
936         javax/naming/ldap/ExtendedRequest.java,
937         javax/naming/ldap/ExtendedResponse.java,
938         javax/naming/ldap/HasControls.java,
939         javax/naming/ldap/LdapContext.java,
940         javax/naming/ldap/UnsolicitedNotification.java,
941         javax/naming/ldap/UnsolicitedNotificationListener.java,
942         javax/naming/spi/DirObjectFactory.java,
943         javax/naming/spi/DirStateFactory.java,
944         javax/naming/spi/InitialContextFactory.java,
945         javax/naming/spi/InitialContextFactoryBuilder.java,
946         javax/naming/spi/ObjectFactory.java,
947         javax/naming/spi/ObjectFactoryBuilder.java,
948         javax/naming/spi/Resolver.java,
949         javax/naming/spi/StateFactory.java:
950         Removing redundant modifiers.
951
952 2003-10-11  Michael Koch  <konqueror@gmx.de>
953
954         * java/security/Key.java,
955         * java/security/PrivateKey.java,
956         * java/security/PublicKey.java,
957         * java/security/acl/Acl.java,
958         * java/security/acl/AclEntry.java,
959         * java/security/acl/Group.java,
960         * java/security/acl/Owner.java,
961         * java/security/acl/Permission.java,
962         * java/security/cert/X509Extension.java,
963         * java/security/interfaces/DSAKey.java,
964         * java/security/interfaces/DSAKeyPairGenerator.java,
965         * java/security/interfaces/DSAParams.java,
966         * java/security/interfaces/DSAPrivateKey.java,
967         * java/security/interfaces/DSAPublicKey.java,
968         * java/security/interfaces/RSAKey.java,
969         * java/security/interfaces/RSAPrivateCrtKey.java,
970         * java/security/interfaces/RSAPrivateKey.java,
971         * java/security/interfaces/RSAPublicKey.java:
972         Removed redundant modifiers.
973
974 2003-10-11  Michael Koch  <konqueror@gmx.de>
975
976         * gnu/java/rmi/server/ProtocolConstants.java,
977         gnu/java/security/der/DER.java:
978         Removing redundant modifiers.
979
980 2003-10-11  Michael Koch  <konqueror@gmx.de>
981
982         * java/util/Map.java,
983         java/util/Observer.java,
984         java/util/zip/Checksum.java,
985         java/util/zip/ZipConstants.java:
986         Removed redundant modifiers.
987
988 2003-10-11  Michael Koch  <konqueror@gmx.de>
989
990         * java/text/AttributedCharacterIterator.java,
991         java/text/CharacterIterator.java:
992         Removed redundant modifiers.
993
994 2003-10-11  Michael Koch  <konqueror@gmx.de>
995
996         * java/sql/Array.java,
997         java/sql/Blob.java,
998         java/sql/CallableStatement.java,
999         java/sql/Clob.java,
1000         java/sql/Connection.java,
1001         java/sql/DatabaseMetaData.java,
1002         java/sql/Driver.java,
1003         java/sql/ParameterMetaData.java,
1004         java/sql/PreparedStatement.java,
1005         java/sql/Ref.java,
1006         java/sql/ResultSet.java,
1007         java/sql/ResultSetMetaData.java,
1008         java/sql/SQLData.java,
1009         java/sql/SQLInput.java,
1010         java/sql/SQLOutput.java,
1011         java/sql/Savepoint.java,
1012         java/sql/Statement.java,
1013         java/sql/Struct.java:
1014         Removed redundant modifiers.
1015
1016 2003-10-11  Michael Koch  <konqueror@gmx.de>
1017
1018         * java/nio/channels/Channel.java,
1019         java/nio/channels/GatheringByteChannel.java,
1020         java/nio/channels/ReadableByteChannel.java,
1021         java/nio/channels/ScatteringByteChannel.java,
1022         java/nio/channels/WritableByteChannel.java:
1023         Removed redundant modifiers.
1024
1025 2003-10-11  Michael Koch  <konqueror@gmx.de>
1026
1027         * java/rmi/activation/ActivationInstantiator.java,
1028         java/rmi/activation/ActivationMonitor.java,
1029         java/rmi/activation/ActivationSystem.java,
1030         java/rmi/activation/Activator.java,
1031         java/rmi/dgc/DGC.java,
1032         java/rmi/registry/Registry.java,
1033         java/rmi/registry/RegistryHandler.java,
1034         java/rmi/server/LoaderHandler.java,
1035         java/rmi/server/RMIClientSocketFactory.java,
1036         java/rmi/server/RMIFailureHandler.java,
1037         java/rmi/server/RMIServerSocketFactory.java,
1038         java/rmi/server/RemoteCall.java,
1039         java/rmi/server/RemoteRef.java,
1040         java/rmi/server/ServerRef.java,
1041         java/rmi/server/Skeleton.java,
1042         java/rmi/server/Unreferenced.java:
1043         Removed redundant modifiers.
1044
1045 2003-10-11  Michael Koch  <konqueror@gmx.de>
1046
1047         * java/net/ContentHandlerFactory.java,
1048         java/net/DatagramSocketImplFactory.java,
1049         java/net/FileNameMap.java,
1050         java/net/SocketImplFactory.java,
1051         java/net/SocketOptions.java,
1052         java/net/URLStreamHandlerFactory.java:
1053         Removed redundant modifiers.
1054
1055 2003-10-11  Michael Koch  <konqueror@gmx.de>
1056
1057         * java/io/Externalizable.java,
1058         java/io/FileFilter.java,
1059         java/io/FilePermission.java,
1060         java/io/ObjectInput.java,
1061         java/io/ObjectInputValidation.java,
1062         java/io/ObjectOutput.java,
1063         java/io/ObjectStreamClass.java,
1064         java/io/ObjectStreamConstants.java,
1065         java/io/Serializable.java:
1066         Removed redundant modifiers.
1067
1068 2003-10-11  Ingo Proetel  <proetel@aicas.com>
1069
1070         * java/rmi/server/RMIClassLoader.java: Identify cached classloaders by 
1071         codebase and context classloader.
1072
1073 2003-10-11  Michael Koch  <konqueror@gmx.de>
1074
1075         * java/beans/beancontext/BeanContext.java,
1076         java/beans/beancontext/BeanContextChild.java,
1077         java/beans/beancontext/BeanContextChildComponentProxy.java,
1078         java/beans/beancontext/BeanContextChildSupport.java,
1079         java/beans/beancontext/BeanContextContainerProxy.java,
1080         java/beans/beancontext/BeanContextMembershipListener.java,
1081         java/beans/beancontext/BeanContextProxy.java,
1082         java/beans/beancontext/BeanContextServiceProvider.java,
1083         java/beans/beancontext/BeanContextServiceProviderBeanInfo.java,
1084         java/beans/beancontext/BeanContextServiceRevokedListener.java,
1085         java/beans/beancontext/BeanContextServices.java,
1086         java/beans/beancontext/BeanContextServicesListener.java:
1087         Removed redundant modifiers.
1088
1089 2003-10-11  Michael Koch  <konqueror@gmx.de>
1090
1091         * java/beans/AppletInitializer.java,
1092         java/beans/BeanInfo.java,
1093         java/beans/Customizer.java,
1094         java/beans/DesignMode.java,
1095         java/beans/PropertyEditor.java,
1096         java/beans/Visibility.java:
1097         Removed redundant modifiers.
1098
1099 2003-10-11  Michael Koch  <konqueror@gmx.de>
1100
1101         * java/awt/print/Pageable.java,
1102         * java/awt/print/Printable.java,
1103         java/awt/print/PrinterGraphics.java:
1104         Removed redundant modifiers.
1105
1106 2003-10-11  Michael Koch  <konqueror@gmx.de>
1107
1108         * java/awt/peer/ButtonPeer.java,
1109         java/awt/peer/CheckboxMenuItemPeer.java,
1110         java/awt/peer/CheckboxPeer.java,
1111         java/awt/peer/ChoicePeer.java,
1112         java/awt/peer/ComponentPeer.java,
1113         java/awt/peer/ContainerPeer.java,
1114         java/awt/peer/DialogPeer.java,
1115         java/awt/peer/FileDialogPeer.java,
1116         java/awt/peer/FramePeer.java,
1117         java/awt/peer/LabelPeer.java,
1118         java/awt/peer/ListPeer.java,
1119         java/awt/peer/MenuBarPeer.java,
1120         java/awt/peer/MenuComponentPeer.java,
1121         java/awt/peer/MenuItemPeer.java,
1122         java/awt/peer/MenuPeer.java,
1123         java/awt/peer/PopupMenuPeer.java,
1124         java/awt/peer/RobotPeer.java,
1125         java/awt/peer/ScrollPanePeer.java,
1126         java/awt/peer/ScrollbarPeer.java,
1127         java/awt/peer/TextAreaPeer.java,
1128         java/awt/peer/TextComponentPeer.java,
1129         java/awt/peer/TextFieldPeer.java,
1130         java/awt/peer/WindowPeer.java:
1131         Removed redundant modifiers.
1132
1133 2003-10-11  Michael Koch  <konqueror@gmx.de>
1134
1135         * gnu/java/nio/NIOSocket.java (setChannel): Initialize impl.
1136         * gnu/java/nio/ServerSocketChannelImpl.java
1137         (serverSocket): Made it a NIOServerSocket.
1138         (impl): Removed.
1139         (ServerSocketChannelImpl): Initialize only serverSocket.
1140         (initServerSocket): Removed.
1141         (getNativeFD): Rewritten.
1142         (implConfigureBlocking): Set socket timeout and removed comment.
1143         (accept): Rewritten.
1144         * gnu/java/nio/SocketChannelImpl.java
1145         (impl): New variable.
1146         (connected): Removed.
1147         (SocketChannelImpl): Initialize impl too.
1148         (getImpl): New method.
1149         (isConnected): Rewritten.
1150         (read): Rewritten, set position in buffer correctly.
1151         (write): Set position in buffer correctly.
1152         * java/net/ServerSocket.java (getImpl): New method.
1153         * gnu/java/nio/NIOServerSocket.java,
1154         gnu/java/nio/natNIOServerSocket.cc: New files.
1155         * gnu/java/nio/natServerSocketChannelImpl.cc: Removed.
1156         * Makefile.am
1157         (ordinary_java_source_files):
1158         Added gnu/java/nio/NIOServerSocket.java.
1159         (nat_source_files):
1160         Removed gnu/java/nio/natServerSocketChannelImpl.cc
1161         and added gnu/java/nio/natNIOServerSocket.cc.
1162         * Makefile.in: Regenerated.
1163
1164 2003-10-11  Michael Koch  <konqueror@gmx.de>
1165
1166         * java/awt/ActiveEvent.java,
1167         java/awt/datatransfer/ClipboardOwner.java,
1168         java/awt/datatransfer/FlavorMap.java,
1169         java/awt/datatransfer/Transferable.java,
1170         java/awt/dnd/Autoscroll.java,
1171         java/awt/dnd/peer/DragSourceContextPeer.java,
1172         java/awt/dnd/peer/DropTargetContextPeer.java,
1173         java/awt/dnd/peer/DropTargetPeer.java,
1174         java/awt/font/MultipleMaster.java,
1175         java/awt/font/OpenType.java,
1176         java/awt/im/spi/InputMethodDescriptor.java,
1177         java/awt/image/ImageObserver.java,
1178         java/awt/image/ImageConsumer.java,
1179         java/awt/image/ImageProducer.java,
1180         java/awt/image/RGBImageFilter.java,
1181         java/awt/image/RasterOp.java,
1182         java/awt/image/renderable/RenderableImage.java:
1183         Removed redundant modifiers.
1184
1185 2003-10-11  Michael Koch  <konqueror@gmx.de>
1186
1187         * gnu/awt/j2d/DirectRasterGraphics.java,
1188         gnu/java/awt/EmbeddedWindowSupport.java:
1189         Removed redundant modifiers.
1190
1191 2003-10-09  Michael Koch  <konqueror@gmx.de>
1192
1193         * gnu/java/nio/SelectorImpl.java (register):
1194         Use ServerSocketChannelSelectionKey for server socket channels,
1195         removed unneeded comments.
1196         * gnu/java/nio/ServerSocketChannelImpl.java
1197         (ServerSocketChannelImpl): Made class public final.
1198         (impl): New member variable.
1199         (ServerSocketChannelImpl): Initialize member variables correctly.
1200         (initServerSocket): New method.
1201         (getNativeFD): Likewise.
1202         * gnu/java/nio/ServerSocketChannelSelectionKey.java,
1203         gnu/java/nio/natServerSocketChannelImpl.cc: New files.
1204         * Makefile.am (ordinary_java_source_files):
1205         Added gnu/java/nio/ServerSocketChannelSelectionKey.java.
1206         (nat_source_files): Added gnu/java/nio/natServerSocketChannelImpl.cc.
1207         * Makefile.in: Regenrated.
1208
1209 2003-10-09  Michael Koch  <konqueror@gmx.de>
1210
1211         * java/nio/channels/spi/AbstractSelectableChannel.java
1212         (registered): Made private.
1213         (blocking): Likewise.
1214         (LOCK): Likewise.
1215         (provider): Likewise.
1216         (keys): Made it a private LinkedList.
1217         (AbstractSelectableChannel): Initialize keys.
1218         (isRegistered): New implementation.
1219         (locate): Rewritten.
1220         (register): Rewritten.
1221         * java/nio/channels/spi/AbstractSelectionKey.java
1222         (ok): Removed.
1223         (cancelled): New member variable.
1224         (cancel): Rewritten.
1225         (isValid): Rewritten.
1226         * java/nio/channels/spi/AbstractSelector.java:
1227         Some methods moved.
1228         (closed): Make private.
1229         (provider): Likewise.
1230         (cancelledKeys): New member variable.
1231         (AbstractSelector): Initialize cancelledKeys.
1232         (cancelKey): New method.
1233
1234 2003-10-09  Tom Tromey  <tromey@redhat.com>
1235
1236         * java/lang/ClassLoader.java (setSigners): Implemented.
1237         * boehm.cc (_Jv_MarkObj): Mark `signers' field.
1238         * java/lang/natClassLoader.cc (_Jv_InitNewClassFields):
1239         Initialize new fields.
1240         * java/lang/Class.java (getSigners): Now native.
1241         (setSigners): Declare.
1242         * java/lang/natClass.cc (getSigners): New method.
1243         (getSigners): Likewise.
1244         * java/lang/Class.h (Class::signers): New field.
1245         (Class::setSigners): New method.
1246
1247 2003-10-09  Michael Koch  <konqueror@gmx.de>
1248
1249         * java/rmi/server/RMIClassLoader.java:
1250         Removed unused imports, little reformatings.
1251         (getClassLoader): New method, implementation was part of old loadCLass
1252         method.
1253         (loadClass): Simplified by moving functionality to new method and
1254         reworking the code a bit.
1255         (getClassAnnotation): Merged documentation from classpath.
1256
1257 2003-10-09  Michael Koch  <konqueror@gmx.de>
1258
1259         * java/math/BigInteger.java
1260         (add): Removed unused local variable len.
1261
1262 2003-10-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
1263
1264         * gnu/java/awt/peer/gtk/GtkButtonPeer.java (handleEvent): Remove
1265         modality check.
1266         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
1267         Initialize insets to use latest insets.
1268         * gnu/java/awt/peer/gtk/GtkFramePeer.java: Likewise.
1269         * gnu/java/awt/peer/gtk/GtkWindowPeer.java (latestInsets): New
1270         field.
1271         (postConfigureEvent): Update latestInsets field when insets
1272         change.  Remove call to setSize.  Move validate call outside of
1273         if blocks.
1274         (setVisible): Call setBounds before showing window.
1275         (nativeSetVisible): New native method.
1276         * java/awt/Window.java (show): Show visible owned windows.
1277         (hide): Hide visible owned windows.
1278         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1279         (awt_event_handler): Implement modality using GTK grabs.
1280         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1281         (global_gtk_window_group): New global variable.
1282         (gtkInit): Initialize global_gtk_window_group.
1283         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
1284         Clamp width and height values to at least 1.  Add this window to
1285         the global GTK window group.
1286         (setVisible): Rename to nativeSetVisible.
1287         (setup_window): Remove function.
1288         (setSize): Clamp width and height values to at least 1.
1289         (nativeSetBounds): Likewise.
1290         (gdk_window_get_root_geometry): Remove function.
1291         * jni/gtk-peer/gtkpeer.h: Remove gdk_window_get_root_geometry
1292         and setup_window declarations.  Declare global_gtk_window_group.
1293
1294         * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1295         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1296         (gtkSetFont): Handle BOLD and ITALIC style specifiers.
1297         (gtkWidgetSetForeground): New method.
1298         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1299         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1300         (gtkWidgetSetBackground, gtkWidgetSetForeground): New methods.
1301         (setBackground, setForeground): Implement.
1302         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
1303         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
1304         (gtkSetFont): Handle BOLD and ITALIC style specifiers.
1305         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1306         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
1307         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
1308         Position PangoLayout relative to text's baseline.
1309         * jni/gtk-peer/gtkpeer.h: Define AWT font style constants.
1310
1311         * java/awt/FlowLayout.java (layoutContainer): Fix offset problem
1312         for CENTER and RIGHT alignments.
1313
1314 2003-10-08  Michael Koch  <konqueror@gmx.de>
1315
1316         * java/security/Security.java: Reformated.
1317
1318 2003-10-08  Michael Koch  <konqueror@gmx.de>
1319
1320         * java/text/SimpleDateFormat.java
1321         (compileFormat): Replace Character.isLetter() test with
1322         Character.isLowerCase() || Character.isUpperCase().
1323
1324 2003-10-08  Tom Tromey  <tromey@redhat.com>
1325
1326         * java/lang/StrictMath.java (toDegrees): Multiply before
1327         dividing.
1328         (toRadians): Likewise.
1329
1330 2003-10-08  C. Brian Jones  <cbj@gnu.org>
1331
1332         * java/lang/Math.java
1333         (toRadians): multiply before dividing to reduce decimal error
1334         (toDegrees): ditto
1335
1336 2003-10-08  Michael Koch  <konqueror@gmx.de>
1337
1338         * gnu/gcj/protocol/core/Connection.java,
1339         gnu/gcj/protocol/core/CoreInputStream.java,
1340         gnu/gcj/protocol/core/Handler.java,
1341         gnu/gcj/protocol/core/natCoreInputStream.cc,
1342         gnu/gcj/protocol/file/Connection.java,
1343         gnu/gcj/protocol/file/Handler.java,
1344         gnu/gcj/protocol/gcjlib/Connection.java,
1345         gnu/gcj/protocol/gcjlib/Handler.java,
1346         gnu/gcj/protocol/http/Connection.java,
1347         gnu/gcj/protocol/http/Handler.java,
1348         gnu/gcj/protocol/jar/Connection.java,
1349         gnu/gcj/protocol/jar/Handler.java: Moved to gnu/java/net/protocol.
1350         * gnu/java/net/protocol/core/Connection.java,
1351         gnu/java/net/protocol/core/CoreInputStream.java,
1352         gnu/java/net/protocol/core/Handler.java,
1353         gnu/java/net/protocol/core/natCoreInputStream.cc,
1354         gnu/java/net/protocol/file/Connection.java,
1355         gnu/java/net/protocol/file/Handler.java,
1356         gnu/java/net/protocol/gcjlib/Connection.java,
1357         gnu/java/net/protocol/gcjlib/Handler.java,
1358         gnu/java/net/protocol/http/Connection.java,
1359         gnu/java/net/protocol/http/Handler.java,
1360         gnu/java/net/protocol/jar/Connection.java,
1361         gnu/java/net/protocol/jar/Handler.java: Moved from gnu/gcj/protocol.
1362         * gnu/gcj/runtime/FirstThread.java,
1363         java/net/URL.java: Use moved protocol handlers.
1364         * Makefile.am
1365         (ordinary_java_source_files): Moved files.
1366         (nat_source_files): Likewise.
1367         * Makefile.in: Regenerated.
1368
1369 2003-10-08  Michael Koch  <konqueror@gmx.de>
1370
1371         * gnu/java/nio/SocketChannelImpl.java
1372         (read): Write only read data to buffer.
1373
1374 2003-10-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
1375
1376         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java (setEnabled): Stub
1377         out.
1378         * jni/classpath/jcl.c [!__GNUC__]: Elide __attribute__.
1379         (JCL_free): Attach "unused" attribute to env parameter.
1380         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c,
1381         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
1382         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
1383         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
1384         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c,
1385         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1386         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c,
1387         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c,
1388         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c,
1389         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c,
1390         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
1391         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c,
1392         jni/gtk-peer/gthread-jni.c: Attach "unused" attribute to unused
1393         parameters.
1394         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c:
1395         (initNativeState): Pass 0 as info argument to
1396         gtk_selection_add_target.
1397         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
1398         (setVisible, gtkFixedNew, gtkFixedPut, gtkFixedMove): Remove
1399         unused method implementations.
1400         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1401         (awt_event_handler): Add break statement after default label.
1402         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
1403         (drawPixels): Remove unused variable i.
1404         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
1405         (setEnabled): Remove method implementation.
1406         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1407         (accel_attach): Call _gtk_accel_group_attach with G_OBJECT
1408         argument.
1409         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (sr): Remove
1410         unused function.
1411         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
1412         (menu_pos): Assign TRUE to push_in.
1413         (setupAccelGroup): Call _gtk_accel_group_attach with G_OBJECT
1414         argument.
1415         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
1416         (create): Remove unused variable layout.
1417         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
1418         Pass window_widget, rather than window, to
1419         gtk_widget_set_size_request.
1420         * jni/gtk-peer/gthread-jni.c (g_thread_jni_functions): Fill out
1421         structure initialization with NULL values.
1422         * jni/gtk-peer/gtkpeer.h [!__GNUC__]: Elide __attribute__.
1423
1424 2003-10-08  Michael Koch  <konqueror@gmx.de>
1425
1426         * java/util/LinkedList.java:
1427         Removed whitespace to match classpath's version again.
1428
1429 2003-10-08  Michael Koch  <konqueror@gmx.de>
1430
1431         * java/util/prefs/Preferences.java
1432         (defaultFactoryClass): Fixed class name.
1433         (getFactory): Create instance of class returned by Class.forName(),
1434         reformated code.
1435
1436 2003-10-08  Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
1437
1438         * javax/swing/table/AbstractTableModel.java
1439         (getColumnName): Simplified code much. Thanks to Yannick Boogaerts who
1440         helped stop pulling my hair on this +1 then -1 tricky thing!
1441
1442 2003-10-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
1443
1444         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (gtkTextGetSize):
1445         Remove unused parameters.
1446         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (gtkEntryGetSize):
1447         Likewise.
1448         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1449         (keyevent_state_to_awt_mods): Export function.
1450         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
1451         (getCaretPosition): Fix TextArea case.
1452         (textcomponent_commit_cb): Get exact event time and modifier
1453         state.
1454         * jni/gtk-peer/gtkpeer.h: Declare keyevent_state_to_awt_mods.
1455
1456 2003-10-02  Guilhem Lavaux  <guilhem@kaffe.org>
1457
1458         * java/net/InetSocketAddress.java
1459         (InetSocketAddress): Made exception more clear.
1460         (equals): Handle case when addr is null.
1461         (toString): Likewise.
1462         * java/net/NetworkInterface.java
1463         (static): Load native library.
1464         (getNetworkInterfaces): Rewritten.
1465
1466 2003-10-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
1467
1468         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (insets): New
1469         field.
1470         (initializeInsets): New method.
1471         (GtkComponentPeer): Call initializeInsets.  Call setCursor and
1472         setBounds unconditionally.
1473         (setBounds): Convert coordinates if parent is a Window.
1474         * gnu/java/awt/peer/gtk/GtkContainerPeer.java (insets): Move
1475         field to GtkComponentPeer.
1476         (GtkContainerPeer): Don't initialize insets.
1477         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
1478         New method.
1479         (create): Call new GtkWindowPeer create method.
1480         * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
1481         New method.
1482         (create): Call new GtkWindowPeer create method.
1483         (setBounds): Remove method.
1484         (postConfigureEvent): Likewise.
1485         * gnu/java/awt/peer/gtk/GtkWindowPeer.java: Replace GTK window
1486         type constants with GDK window type constants.
1487         (create(int,boolean,int,int,GtkWindowPeer)): New method.
1488         (create(int,boolean)): Likewise.
1489         (create()): Call create(int,boolean).
1490         (nativeSetBounds): New native method declaration.
1491         (setBounds): Call native method declaration.
1492         (setSize): New native method declaration.
1493         (setBoundsCallback): Likewise.
1494         (postConfigureEvent): Handle change in insets.  Call setSize and
1495         setBoundsCallback methods.
1496         * java/awt/Window.java (Window): Set visible to false.
1497         (setBoundsCallback): New method.
1498         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1499         (gtkWidgetGetLocationOnScreen): If this component is not a
1500         container, adjust the location returned based on the peer's
1501         allocation.
1502         (set(String,boolean)): Revert change from 2003-09-19.
1503         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1504         (awt_event_handler): Fix inset calculation.
1505         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Add JNI
1506         glue for Window.setBoundsCallback.
1507         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
1508         Set up stacking order, window decorations and window manager
1509         hints.
1510         (setBoundsCallback): New method.
1511         (setSize): New method.
1512         (nativeSetBounds): New method.
1513         * jni/gtk-peer/gtkpeer.h: Declare setBoundsCallbackID.
1514
1515 2003-10-02  Tom Tromey  <tromey@redhat.com>
1516
1517         * java/lang/VMClassLoader.java (loadClass): Now native.
1518         * java/lang/natClassLoader.cc (loadClass): Implement.
1519         * prims.cc (_Jv_RunMain): Initialize ClassLoader.
1520
1521 2003-10-02  Michael Koch  <konqueror@gmx.de>
1522
1523         * java/net/InetAddress.java
1524         (zeros): Removed.
1525         (ANY_IF): Initalizie in static block.
1526         (static): Load library with native methods here and initialize ANY_IF.
1527         (isAnyLocalAddress): Check if equal to ANY_IF.
1528         (equals): Use addr directly instead of addr1. Simplify for loop.
1529         (toString): Rename "result" to "host" and add IP address allways.
1530         (getLocalHost): Merged documentation from classpath.
1531         * java/net/ServerSocket.java
1532         (ServerSocket): New package-private constructor used by java.nio.
1533         * java/net/URLConnection.java
1534         (getRequestProperties): Check if already connected.
1535
1536 2003-10-02  Michael Koch  <konqueror@gmx.de>
1537
1538         * java/nio/ByteBufferHelper.java:
1539         Rewrote all methods by suggestions from Eric Blake.
1540
1541 2003-10-02  Michael Koch  <konqueror@gmx.de>
1542
1543         * java/net/URL.java
1544         (DEFAULT_SEARCH_PATH): New static variable.
1545         (ph_cache): Made it a HashMap.
1546         (getURLStreamHandler): Rename propVal to ph_search_path and use
1547         DEFAULT_SEARCH_PATH.
1548
1549 2003-10-02  Michael Koch  <konqueror@gmx.de>
1550
1551         * javax/swing/table/AbstractTableModel.java
1552         (findColumnName): Prevent from NullPointerException if argument
1553         columnName is null.
1554
1555 2003-10-02  Michael Koch  <konqueror@gmx.de>
1556
1557         * javax/swing/table/AbstractTableModel.java:
1558         This patch is based on a patch done by Arnaud Vandyck
1559         <arnaud.vandyck@ulg.ac.be>.
1560         (getColumnName): Fixed method documentation.
1561         (findColumn): Likewise.
1562         (getColumnClass): Likewise.
1563         (isCellEditable): Likewise.
1564         (setValueAt): Likewise.
1565         (addTableModelListener): Likewise.
1566         (removeTableModelListener): Likewise.
1567         (getTableModelListeners): New method.
1568
1569 2003-10-02  Michael Koch  <konqueror@gmx.de>
1570
1571         * javax/swing/table/AbstractTableModel.java:
1572         Reformated.
1573
1574 2003-10-01  Bryce McKinlay  <bryce@mckinlay.net.nz>
1575
1576         Fix PR libgcj/12475
1577         * gnu/gcj/runtime/StackTrace.java (finalize): Declare.
1578         * gnu/gcj/runtime/natStackTrace.cc (finalize): New. Free "addrs".
1579
1580 2003-10-01  Tom Tromey  <tromey@redhat.com>
1581
1582         * gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.
1583
1584 2003-10-01  Andrew Haley  <aph@redhat.com>
1585
1586         * java/lang/natClass.cc (initializeClass): Check for otable and
1587         atable.
1588         (_Jv_LinkOffsetTable): Check for existence of atable.  Rewrite
1589         loops using for().  Search superinterfaces.  Check for fields as
1590         well as methods.  Initialize atable as well as otable: check for
1591         static methods as well as virtual methods.
1592         * java/lang/Class.h (struct _Jv_AddressTable): New.
1593         (atable): New.
1594         (atable_syms): New.
1595         * include/jvm.h (_Jv_equalUtf8Consts): constify.
1596         * prims.cc (_Jv_equalUtf8Consts): constify.
1597
1598 2003-09-29  Tom Tromey  <tromey@redhat.com>
1599
1600         PR libgcj/10596:
1601         * include/jvm.h (_Jv_FinalizeString,
1602         _Jv_RegisterStringFinalizer): Declare.
1603         * java/lang/natString.cc (_Jv_FinalizeString): Renamed from
1604         unintern.
1605         (intern): Updated.
1606         (_Jv_NewStringUtf8Const): Likewise.
1607         * java/lang/ref/natReference.cc (finalize_referred_to_object):
1608         Add special case when finalizing a String.
1609         (in_hash): New function.
1610         (_Jv_RegisterStringFinalizer): Likewise.
1611         (maybe_add_finalize): Likewise.
1612
1613 2003-09-29  Michael Koch  <konqueror@gmx.de>
1614
1615         * java/net/InetAddress.java:
1616         (isMulticastAddress): Dont use local variable to store address length.
1617         Let the compiler optimize this.
1618         (getHostName): Merged dcoumentation from classpath.
1619         (getAddress): Likewise.
1620         (getHostAddress): Likewise.
1621         (hashCode): Likewise.
1622         (equals): Likewise.
1623         (toString): Likewise.
1624         (getByName): Likewise.
1625         (getAllByName): Likewise.
1626
1627 2003-09-29  Michael Koch  <konqueror@gmx.de>
1628
1629         * java/awt/image/IndexColorModel.java: Reformated.
1630
1631 2003-09-29  Michael Koch  <konqueror@gmx.de>
1632
1633         * java/net/InetAddress.java,
1634         java/net/URL.java: Reformated.
1635
1636 2003-09-29  Bryce McKinlay  <bryce@mckinlay.net.nz>
1637
1638         * boehm.cc (_Jv_BuildGCDescr): Put first word of object in most 
1639         significant bit of descriptor. Include the vtable and sync_info 
1640         fields.
1641
1642 2003-09-28  Bryce McKinlay  <bryce@mckinlay.net.nz>
1643
1644         * java/text/DateFormat.java (format): Throw IllegalArgumentException
1645         if `obj' is not a Number or Date instance.
1646         * java/text/SimpleDateFormat.java (tokens): Make it an ArrayList
1647         instead of Vector.
1648
1649 2003-09-28  Bryce McKinlay  <bryce@mckinlay.net.nz>
1650
1651         * java/text/SimpleDateFormat.java (parse): Revert patch of 2003-09-25.
1652         Don't call setTimeZone on calendar.
1653
1654 2003-09-27  Michael Koch  <konqueror@gmx.de>
1655
1656         * java/net/URL.java (getURLStreamHandler): Compile fixes.
1657
1658 2003-09-27  Michael Koch  <konqueror@gmx.de>
1659
1660         * java/net/URL.java (getURLStreamHandler):
1661         Check if we have to use cache before trying to retrieve handler from
1662         cache. Rename facName to clsName to match classpath more. Reformated
1663         some little pieces.
1664
1665 2003-09-27  Michael Koch  <konqueror@gmx.de>
1666
1667         * gnu/java/nio/SelectionKeyImpl.java
1668         (ch): Make package-private again. Jikes found this bug.
1669         Jeff Sturm submitted PR12426 for this to bugzilla
1670         to fix this bug in gcj.
1671
1672 2003-09-26  Michael Koch  <konqueror@gmx.de>
1673
1674         * java/rmi/server/RMIClassLoader.java:
1675         Reformatted file, no functional code changes.
1676
1677 2003-09-26  Sascha Brawer  <brawer@dandelis.ch>
1678
1679         * java/awt/image/SinglePixelPackedSampleModel.java (createDataBuffer): 
1680         Save space for some pixels at the buffer end.  Added Javadoc.
1681
1682 2003-09-26  Tom Tromey  <tromey@redhat.com>
1683
1684         * java/io/ObjectOutputStream.java (writeFields): Fixed
1685         indentation.
1686         (putFields): Likewise.
1687
1688 2003-09-26  Michael Koch  <konqueror@gmx.de>
1689
1690         * java/nio/ByteBufferHelper.java:
1691         Totally reworked with help from Eric Blake.
1692
1693 2003-09-26  Tom Tromey  <tromey@redhat.com>
1694
1695         * java/awt/geom/RoundRectangle2D.java (getPathIterator): Wrote.
1696         * java/awt/geom/PathIterator.java: Documentation fixes.
1697
1698 2003-09-25  Jeff Sturm  <jsturm@one-point.com>
1699
1700         * gnu/java/nio/SelectorImpl.java (getFDsAsArray): Use getNativeFD().
1701         (select): Likewise.
1702         (register): Use DatagramChannelSelectionKey, SocketChannelSelectionKey.
1703
1704 2003-09-25  Michael Koch  <konqueror@gmx.de>
1705
1706         * gnu/java/nio/DatagramChannelImpl.java
1707         (getNativeFD): New method.
1708         * gnu/java/nio/SelectionKeyImpl.java
1709         (SelectionKeyImpl): Class made abstract.
1710         (fd): Removed.
1711         (SelectionKeyImpl): Remove fd argument.
1712         (getNativeFD): New method.
1713         * gnu/java/nio/SocketChannelImpl.java
1714         (getNativeFD): New method.
1715         gnu/java/nio/DatagramChannelSelectionKey.java,
1716         * gnu/java/nio/SocketChannelSelectionKey.java:
1717         New files.
1718         * Makefile.am (ordinary_java_source_files):
1719         Added new files gnu/java/nio/DatagramChannelSelectionKey.java and
1720         gnu/java/nio/SocketChannelSelectionKey.java.
1721         * Makefile.in: Regenerated.
1722
1723 2003-09-25  Michael Koch  <konqueror@gmx.de>
1724
1725         * java/lang/reflect/Proxy.java
1726         (getProxyClass): Remove workaround for gcj 3.0.x.
1727
1728 2003-09-25  Michael Koch  <konqueror@gmx.de>
1729
1730         * gnu/java/net/PlainDatagramSocketImpl.java
1731         (finalize): Moved to directly after constructor.
1732         (getNativeFD): New method.
1733         * gnu/java/net/PlainSocketImpl.java
1734         (getNativeFD): New method.
1735
1736 2003-09-25  Ingo Proetel  <proetel@aicas.com>
1737
1738         * java/io/ObjectOutputStream.java:
1739         Allow putFields be called more than once.
1740
1741 2003-09-25  Sascha Brawer  <brawer@dandelis.ch>
1742
1743         * java/awt/image/Raster.java(Raster): Interpret null origin as (0,0).
1744         * java/awt/image/WritableRaster.java(WritableRaster): Likewise.
1745         * java/awt/image/BufferedImage.java (toString): Implement.
1746
1747 2003-09-25  Jeff Sturm  <jsturm@one-point.com>
1748
1749         * aclocal.m4: Rebuilt.
1750         * configure: Rebuilt.
1751
1752 2003-09-25  Guilhem Lavaux  <guilhem@kaffe.org>
1753
1754         * java/text/SimpleDateFormat.java (parse): Don't use class calendar
1755         field.
1756
1757 2003-09-25  Michael Koch  <konqueror@gmx.de>
1758
1759         * gnu/java/nio/SelectorImpl.java
1760         (implSelect): Renamed from java_do_select.
1761         (select): Call native implSelect() and add support for Thread
1762         interruption.
1763         * gnu/java/nio/natSelectorImpl.cc
1764         (implSelect): Renamed from java_do_select.
1765
1766 2003-09-25  Michael Koch  <konqueror@gmx.de>
1767
1768         * gnu/java/nio/SelectorImpl.java
1769         (selectNow): Made final, throws IOException.
1770         (select): Likewise.
1771         (getFDsAsArray): Made final.
1772         (selectedKeys): Likewise.
1773         (wakeup): Likewise.
1774         (deregisterCancelledKeys): Likewise.
1775         (register): Likewise.
1776         (ass): Removed.
1777         (add_selected): Removed.
1778         * gnu/java/nio/natSelectorImpl.cc:
1779         No need to include bstring.h or gcj/cni.h.
1780         (helper_put_filedescriptors): Rewritten.
1781         (helper_get_filedescriptors): Rewritten.
1782
1783 2003-09-25  Sascha Brawer  <brawer@dandelis.ch>
1784
1785         * java/awt/font/FontRenderContext.java (getTransform): Return
1786         copy of internal transform object. Add Javadoc.
1787         * java/awt/geom/Rectangle2D.java (getPathIterator): Use the same
1788         winding rule as Sun J2SE.
1789         * javax/swing/border/MatteBorder.java (MatteBorder(Icon)): Docfix.
1790
1791 2003-09-25  Ingo Proetel  <proetel@aicas.com>
1792
1793         * java/rmi/Naming.java:
1794         Added comments, now accepts pseudo protocol "rmi".
1795
1796 2003-09-25  Guilhem Lavaux  <guilhem@kaffe.org>
1797
1798         * java/text/DecimalFormat.java (format): Don't immediatly round
1799         baseNumber to long.
1800         (setMinimumIntegerDigits): Call super.
1801         (setMinimumFractionDigits): Likewise.
1802         (setMaximumIntegerDigits): Likewise.
1803         (setMaximumFractionDigits): Likewise.
1804
1805 2003-09-25  Michael Koch  <konqueror@gmx.de>
1806
1807         * gnu/java/nio/DatagramChannelImpl.java
1808         (DatagramChannelImpl): Made class final.
1809         (blocking): Made private.
1810         (socket): Made it a NIODatagramSocket and private.
1811         (DatagramChannelImpl): create NIODatagramSocket instead of
1812         DatagramSocket.
1813         (implConfigureBlocking): Set socket timeout.
1814         (connect): Check that channel is not closed.
1815         (write): Implemented.
1816         (write): Rewritten.
1817         (read): Implemented.
1818         (read): Rewritten.
1819         (receive): Implemented.
1820         (send): Implemented.
1821         * gnu/java/nio/SelectionKeyImpl.java
1822         (readyOps): Made private.
1823         (interestOps): Made private.
1824         (impl): Made private.
1825         (ch): Made private.
1826         (readyOps): Check if selection key is valid.
1827         (interestOps): Likewise.
1828         * gnu/java/nio/SelectorImpl.java
1829         (closed): Removed.
1830         (keys): Made private.
1831         (selected): Made private.
1832         (finalize): New method.
1833         (implCloseSelector): Rewritten.
1834         (keys): Return unmodifiable Set.
1835         (deregisterCancelledKeys): Fixed typo in method name.
1836         * gnu/java/nio/SocketChannelImpl.java
1837         (SocketChannelImpl): Made class final.
1838         (socket): Made it a NIOSocket and private.
1839         (blocking): Made private.
1840         (connected): Made private.
1841         (connectionPending): New member variable.
1842         (SocketChannelImpl): New implementation.
1843         (finalizer): Use isConnected().
1844         (connect): Rewritten.
1845         (finishConnect): Throws IOException, implemented.
1846         (isConnectionPending): Return connectionPending.
1847         (read): Rewritten.
1848         (write): Rewritten.
1849         * gnu/java/nio/NIOConstants.java: New file.
1850         * Makefile.am (ordinary_java_source_files):
1851         Added gnu/java/nio/NIOConstants.java.
1852         * Makefile.in: Regenerated.
1853
1854 2003-09-25  Michael Koch  <konqueror@gmx.de>
1855
1856         * java/net/InetAddress.java:
1857         Reorder imports, remove implementation comment.
1858         (isMulticastAddress): Merged documentation from classpath.
1859         * java/net/URLConnection.java
1860         (setRequestProperty): Check key for null, fix documentation.
1861         (adREquestProperty): Check key for null, remove wrong implementation
1862         and replace it with comment to overwrite this method in subclasses,
1863         fix documentation.
1864
1865 2003-09-25  Tom Tromey  <tromey@redhat.com>
1866
1867         * java/lang/reflect/Proxy.java (generate): Uncomment protection
1868         domain code.
1869         * java/lang/natClassLoader.cc (defineClass): Added `loader'
1870         argument.
1871         (linkClass0): Now in VMClassLoader.
1872         (markClassErrorState0): Likewise.
1873         (getSystemClassLoaderInternal): New method.
1874         * java/lang/natClass.cc (initializeClass): Use
1875         VMClassLoader::resolveClass.
1876         * java/lang/ClassLoader.java: New version, from Classpath.
1877         * java/lang/Class.java (getProtectionDomain):
1878         protectionDomainPermission and unknownProtectionDomain now in
1879         VMClassLoader.
1880         * java/lang/Class.h: VMClassLoader now a friend class.
1881         * gnu/gcj/runtime/VMClassLoader.java (instance): Now
1882         package-private.
1883         * gcj/javaprims.h: Regenerated class list.
1884         * resolve.cc (_Jv_PrepareClass): Use VMClassLoader::resolveClass.
1885         * java/lang/VMClassLoader.java: New version from Classpath;
1886         modified for libgcj use.
1887
1888 2003-09-25  Michael Koch  <konqueror@gmx.de>
1889
1890         * java/nio/ByteBufferHelper.java:
1891         New file.
1892         * java/nio/ByteBufferImpl.java,
1893         java/nio/DirectByteBufferImpl.java,
1894         java/nio/MappedByteBufferImpl.java
1895         (getType,putType): Use new helper class ByteBufferHelper.
1896         * Makefile.am (ordinary_java_source_files):
1897         Added java/nio/ByteBufferHelper.java.
1898         * Makefile.in: Regenerated.
1899
1900 2003-09-25  Bryce McKinlay  <bryce@mckinlay.net.nz>
1901
1902         * gnu/java/net/natPlainSocketImplWin32.cc: Add missing #includes.
1903         PR libgcj/12388.
1904
1905 2003-09-24  Bryce McKinlay  <bryce@mckinlay.net.nz>
1906
1907         * java/lang/StringBuffer.java (substring): Don't set `shared' on small
1908         Strings, even if buffer is already shared.
1909
1910 2003-09-24  Michael Koch  <konqueror@gmx.de>
1911
1912         * acinclude.m4 (AM_LC_LOCALES): Added check for locale.h.
1913
1914 2003-09-24  Bryce McKinlay  <bryce@mckinlay.net.nz>
1915
1916         * gnu/java/net/PlainSocketImpl.java (read): Remove declaration.
1917         (write): Likewise.
1918         (SocketInputStream): Declare `read' and `write' methods native.
1919         Remove implementations which called back into PlainSocketImpl.
1920         Remove unneccessary overridden methods.
1921         * gnu/java/net/natPlainSocketImplNoNet.cc (read): Move implementation 
1922         to inner class PlainSocketImpl.SocketInputStream.
1923         (write): Likewise.
1924         * gnu/java/net/natPlainSocketImplPosix.cc: As above.
1925         * gnu/java/net/natPlainSocketImplWin32.cc: As above.
1926         * gnu/java/net/SocketInputStream.java: Remove unused file.
1927         * gnu/java/net/SocketOutputStream.java: Likewise.
1928         * Makefile.am: Build CNI headers for PlainSocketImpl.SocketInputStream
1929         and SocketOutputStream.
1930         * Makefile.in: Rebuilt.
1931
1932 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
1933
1934         * java/lang/System.java: Add GCJ LOCAL note about encoding aliases.
1935
1936         * java/lang/Float.java, java/lang/Double.java: Add GCJ LOCAL
1937         markers.
1938
1939 2003-09-22  Anthony Green  <green@redhat.com>
1940
1941         * configure.in (HAVE_USLEEP_DECL): Define for newlib build.
1942         * configure: Rebuilt.
1943
1944 2003-09-21  Ralph Loader  <suckfish@ihug.co.nz>
1945
1946         PR java/12350:
1947         * java/lang/StringBuffer.java (substring): Fix handling of shared flag.
1948
1949 2003-09-22  Michael Koch  <konqueror@gmx.de>
1950
1951         * jni.cc (_Jv_LookupJNIMethod): Remove workaround that should hide a
1952         compiler warning but produces a different one now.
1953
1954 2003-09-22  Michael Koch  <konqueror@gmx.de>
1955
1956         * java/net/InetAddress.java:
1957         Moves around some code, reformats and adds documentation.
1958         No functional changes.
1959
1960 2003-09-22  Michael Koch  <konqueror@gmx.de>
1961
1962         * java/net/JarURLConnection.java
1963         (JarURLConnection): Modifed code to match classpath more, fixed comment.
1964         (getCertificates): Made it more error prone.
1965         (getMainAttributes): Likewise.
1966         (getAttributes): Implemented.
1967         (getManifest): Reformatted code.
1968
1969 2003-09-20  Tom Tromey  <tromey@redhat.com>
1970
1971         * java/awt/Component.java: Indentation cleanup from Classpath.
1972
1973 2003-09-20  Dalibor Topic  <robilad@kaffe.org>
1974
1975        * java/awt/BasicStroke.java (BasicStroke): Fixed illegal argument
1976        checking to follow 1.4.2 spec.
1977
1978 2003-08-11  Ingo Proetel  <proetel@aicas.com>
1979
1980         * gnu/java/rmi/server/UnicastRef.java: make constructor public and check if serverobject  
1981         is compatible in case client and server are running in the same VM
1982         (remerged from Classpath on 2003-09-20)
1983
1984 2003-09-19  David Daney <ddaney@avtrex.com>
1985
1986         * java/lang/ref/Reference.java (clear): Set referent to null and
1987         synchronize.
1988
1989 2003-09-19  Michael Koch  <konqueror@gmx.de>
1990
1991         * gnu/java/nio/NIODatagramSocket.java,
1992         gnu/java/nio/NIOSocket.java: New files.
1993         * Makefile.am (ordinary_java_source_files):
1994         Added gnu/java/nio/NIODatagramSocket.java and
1995         gnu/java/nio/NIOSocket.java.
1996         * Makefile.in: Regenerated.
1997
1998 2003-09-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
1999
2000         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create()): Create a
2001         top-level GTK window.
2002         (getArgs): Add "title" property.
2003         * gnu/java/awt/peer/gtk/GtkWindowPeer.java (setResizable): Use
2004         "allow_shrink" and "allow_grow" properties.
2005         * java/awt/Dialog.java: Initialize resizable to true and change
2006         comments accordingly.  Initialize visible to false in
2007         constructors.
2008         * java/awt/Frame.java (dispose): Remove method.
2009         * java/awt/Window.java (ownedWindows): New field.
2010         (Window(Window,GraphicsConfiguration)): Add a weak reference to
2011         owner's ownedWindows vector.
2012         (finalize): Remove method.
2013         (hide): Hide owned windows.
2014         (dispose): Dispose of owned windows.
2015         (getOwnedWindows): Implement.
2016         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Remove
2017         unused GtkArg code.
2018         (set(String,boolean)): Clamp gboolean parameter to g_object_set
2019         to TRUE or FALSE.
2020         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2021         (create): Set window's size requisition.
2022         (connectHooks): Fix indentation.
2023         (setResizable): Remove function.
2024         (static setBounds): Likewise.
2025         (setBounds): Replace call to setBounds with GTK size requisition
2026         and resize calls.
2027
2028 2003-09-19  Mohan Embar  <gnustuff@thisiscool.com>
2029
2030         * win32-threads.cc: (ensure_interrupt_event_initialized) New
2031         function for lazy initialization of an auto-reset event.
2032         (_Jv_CondWait) Added thread interrupt support.
2033         (_Jv_ThreadInitData) Added initialization of interrupt support
2034         members.
2035         (_Jv_ThreadDestroyData) Added cleanup of interrupt support members.
2036         (_Jv_ThreadStart) Removed unused code.
2037         (_Jv_Win32GetInterruptEvent) New method for returning interrupt event
2038         to an external caller.
2039         (_Jv_ThreadInterrupt) Implemented.
2040         * include/win32-threads.h: (_Jv_Thread_t) Added a Win32 auto-reset
2041         event for interrupt support as well as a mutex which regulates
2042         access to this.
2043         (_Jv_Win32GetInterruptEvent) Declared new method for returning interrupt
2044         event to an external caller.
2045         * java/lang/natWin32Process.cc: (cleanup) Close handle to spawned
2046         process.
2047         (waitFor) Added interrupt support.
2048
2049 2003-09-19  Michael Koch  <konqueror@gmx.de>
2050
2051         * java/net/DatagramSocket.java (getLocalAddress):
2052         Renamed result variable to localAddr.
2053         * java/net/MulticastSocket.java:
2054         No need to import gnu.java.net.PlainDatagramSocketImpl.
2055
2056 2003-09-18  Sascha Brawer  <brawer@dandelis.ch>
2057
2058         * java/awt/Toolkit.java (getSystemEventQueue, getSystemEventQueueImpl):
2059         Replace UTF-8 characters in Javadoc by XML/HTML escape sequence.
2060
2061 2003-09-18  Tom Tromey  <tromey@redhat.com>
2062
2063         * javax/naming/InitialContext.java: Reindented.
2064
2065 2003-09-18  Dalibor Topic <robilad@kaffe.org>,
2066             Helmer Kraemer <hkraemer@freenet.de>
2067
2068         * javax/naming/spi/NamingManager.java (getURLContext,
2069         getObjectInstance, getStateToBind): Always use current thread's
2070         context class loader when calling Class.forName.
2071
2072 2003-09-18  Michael Koch  <konqueror@gmx.de>
2073
2074         * java/util/Timer.java (finalize): Added "throws Throwable".
2075
2076 2003-09-18  Michael Koch  <konqueror@gmx.de>
2077
2078         * java/net/DatagramSocket.java
2079         (ch): Removed.
2080         (receive): Use getChannel() instead of ch.
2081         (send): Likewise.
2082         (getChannel): Return null.
2083         * java/net/ServerSocket.java
2084         (ch): Removed.
2085         (setChannel): Removed.
2086         (implAccept): Use getChannel() instead of ch.
2087         (close): Likewise.
2088         (getChannel): Return null.
2089         * java/net/Socket.java
2090         (ch): Removed.
2091         (connect): Use getChannel() instead of ch.
2092         (setChannel): Removed.
2093         (getChannel): Return null.
2094
2095 2003-09-18  Mark Wielaard  <mark@klomp.org>
2096
2097         Reported by Guilhem Lavaux and Julian Dolby
2098         * java/io/ObjectStreamClass.java (getSerialPersistentFields): Get the
2099         field "serialPersistentFields", not "getSerialPersistentFields".
2100
2101 2003-09-18  Ingo Proetel  <proetel@aicas.com>
2102
2103         * java/util/TimeZone.java: Initialize lazily.
2104         * java/util/Locale.java (readManifest): Fix check for country.
2105         * java/util/GregorianCalendar.java: Make use of ResourceBundle better
2106         traceable 
2107         * java/util/Calendar.java: Make use of ResourceBundle better
2108         traceable.
2109
2110 2003-09-18  Jeroen Frijters  <jeroen@frijters.net>
2111
2112         * java/sql/Timestamp.java
2113         (valueOf): Fixed confusion of java.sql.Date and java.util.Date
2114
2115 2003-09-18  David P Grove  <groved@us.ibm.com>
2116
2117         * java/io/LineNumberReader (read): Don't reset pos & limit when
2118         markPos is 0.
2119
2120 2003-09-18  Dalibor Topic  <robilad@kaffe.org>
2121
2122         * gnu/java/rmi/rmic/Compile_gcj.java (COMPILER_ARGS): New private
2123         constant.
2124         (computeArguments): use computeTypicalArguments.
2125
2126         * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Add Compile_kjc.java,
2127         Compile_jikes.java and RMICException.java.
2128         * gnu/java/rmi/rmic/Compile_kjc.java: New file.
2129         * gnu/java/rmi/rmic/Compile_jikes.java: Likewise.
2130         * gnu/java/rmi/rmic/RMICException.java: Likewise.
2131  
2132         * gnu/java/rmi/rmic/Compiler.java (getDestination): New method.
2133  
2134         * gnu/java/rmi/rmic/CompilerProcess.java: Import java.io.InputStream.
2135         (computeTypicalArguments): New method.
2136         (compile): Print compiler output to System.out. Collect compiler
2137         error output and use it in exception message.
2138  
2139         * gnu/java/rmi/rmic/RMIC.java: Import java.util.Set.
2140         (destination): Initialize to null.
2141         (run): Replace file separator with '.' when processing class.
2142         (processClass): Replace '.' with file separator when compiling
2143         classes.
2144         (findClass): Use SystemClassLoader to load class.
2145         (generateStub): Use full class name for generated stub, that puts
2146         it in right path.  Replace '.' with file separator when generating
2147         stub file name. Write just the stub class name without package
2148         information as class name, and constructor name. Write only
2149         interface names for interfaces extending java.rmi.Remote as
2150         implemented.
2151         (generateSkel): Use full class name for generated skel, that puts
2152         it in right path.  Replace '.' with file separator when generating
2153         stub file name. Write just the stub class name without package
2154         information as class name.
2155
2156 2003-09-18  Michael Koch  <konqueror@gmx.de>
2157
2158         * Makefile.am (rmi_java_source_files):
2159         Added gnu/java/rmi/rmic/Compile_kjc.java,
2160         gnu/java/rmi/rmic/Compile_jikes.java and
2161         gnu/java/rmi/rmic/RMICException.java
2162         * Makefile.in: Regenerated.
2163
2164 2003-09-17  Graydon Hoare  <graydon@redhat.com>
2165
2166         * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
2167         gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
2168         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,
2169         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: 
2170         New files.
2171
2172 2003-09-16  Graydon Hoare  <graydon@redhat.com>
2173
2174         * java/awt/BufferedImage.java (setData): Support non-component
2175         sample models.
2176         (getData): Same.
2177
2178 2003-09-10  Graydon Hoare  <graydon@redhat.com>
2179
2180         * java/awt/geom/AffineTransform.java(transform): Fix airthmetic bugs.
2181         * java/awt/geom/Arc2D.java: Approximate arc segments with cubics.
2182
2183 2003-09-17  Mohan Embar  <gnustuff@thisiscool.com>
2184
2185         * configure.in: Standardized help text case of
2186         --enable-hash-synchronization
2187         New configure switch --enable-libgcj-multifile and corresponding
2188         automake conditional ONESTEP.
2189         * configure: Rebuilt.
2190         * Makefile.am: Use automake conditional ONESTEP to determine
2191         whether classfiles should be compiled individually or all
2192         at once.
2193         * Makefile.in: Rebuilt.
2194
2195 2003-09-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
2196
2197         * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java (construct):
2198         Remove method declaration.
2199         (create()): Call native create.
2200         (create(int)): New method.
2201         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
2202         (create): Add window_id parameter.  Call gtk_plug_new with
2203         window_id parameter.
2204         (construct): Remove method implementation.
2205
2206 2003-09-16  Mohan Embar  <gnustuff@thisiscool.com>
2207
2208         * Makefile.am: (MOSTLYCLEANFILES) Removed libtool objects.
2209         (mostlyclean-local): New target patterned after clean-local
2210         which recursively deletes all libtool objects using 'libtool rm'.
2211         (clean-local): Slightly modified comment to alleviate monotony.
2212         (distclean-local): New target patterned after clean-local
2213         which recursively deletes all .d files.
2214         * Makefile.in: Rebuilt.
2215
2216 2003-09-11  Tom Tromey  <tromey@redhat.com>
2217
2218         * java/net/URLStreamHandler.java (parseURL): If original file
2219         ends with "/", so must canonical result.
2220         * java/io/natFilePosix.cc (getCanonicalPath): Clean up snafus
2221         with nul-termination and finding previous "/".
2222
2223 2003-09-11  Michael Koch  <konqueror@gmx.de>
2224
2225         * acconfig.h: Removed most items.
2226         * configure.in: Added descriptions to AC_DEFINE macros that where in
2227         acconfig.h before.
2228         * include/config.h.in: Regenerated.
2229
2230 2003-09-11  Sascha Brawer  <brawer@dandelis.ch>
2231
2232         * java/awt/Toolkit.java (getSystemEventQueue): Call SecurityManager
2233         if one is installed. Improve Javadoc.
2234         (getSystemEventQueueImpl): Improve Javadoc.
2235
2236 2003-09-11  Tom Tromey  <tromey@redhat.com>
2237
2238         * java/io/natFilePosix.cc (getCanonicalPath): Handle case where
2239         file does not exist.
2240
2241 2003-09-10  Anthony Green  <green@redhat.com>
2242
2243         * gnu/java/net/natPlainDatagramSocketImplWin32.cc (peekData):
2244         Specify full name when referencing ::java::net::InetAddress.
2245         * gnu/java/net/natPlainSocketImplWin32.cc (accept): Ditto.
2246         Fix argument type.
2247
2248 2003-09-10  Michael Koch  <konqueror@gmx.de>
2249
2250         * acconfig.h (__NO_MATH_INLINES): Removed.
2251         * configure.in: Removed check for g++ math inlining bug from 2000.
2252         * configure.host: Removed -D__NO_MATH_INLINES in libgcj_cflags and
2253         libgcj_cxxflags.
2254         * configure: Regenerated.
2255
2256 2003-09-10  David Daney <ddaney@avtrex.com>
2257
2258         * java/util/Arrays.java (equals(all variants)): Quit using
2259         NullPointerException catching to detect null valued parameters.
2260
2261 2003-09-10  Michael Koch  <konqueror@gmx.de>
2262
2263         * java/net/DatagramSocket.java,
2264         java/net/MulticastSocket.java,
2265         java/net/ServerSocket.java,
2266         java/net/Socket.java:
2267         Use gnu.java.net.Plain*SocketImpl instead of
2268         java.net.PlainSocketImpl.
2269         * java/net/PlainDatagramSocketImpl.java,
2270         java/net/PlainSocketImpl.java,
2271         java/net/SocketInputStream.java,
2272         java/net/SocketOutputStream.java,
2273         java/net/natPlainDatagramSocketImplNoNet.cc,
2274         java/net/natPlainDatagramSocketImplPosix.cc,
2275         java/net/natPlainDatagramSocketImplWin32.cc,
2276         java/net/natPlainSocketImplNoNet.cc,
2277         java/net/natPlainSocketImplPosix.cc,
2278         java/net/natPlainSocketImplWin32.cc:
2279         Removed.
2280         * gnu/java/net/PlainDatagramSocketImpl.java,
2281         gnu/java/net/PlainSocketImpl.java,
2282         gnu/java/net/SocketInputStream.java,
2283         gnu/java/net/SocketOutputStream.java,
2284         gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
2285         gnu/java/net/natPlainDatagramSocketImplPosix.cc,
2286         gnu/java/net/natPlainDatagramSocketImplWin32.cc,
2287         gnu/java/net/natPlainSocketImplNoNet.cc,
2288         gnu/java/net/natPlainSocketImplPosix.cc,
2289         gnu/java/net/natPlainSocketImplWin32.cc:
2290         New files (moved from java/net).
2291         * configure.in: Create links for gnu/java/net/natPlain*SocketImpl.cc
2292         instead of java/net/natPlain*SocketImpl.cc.
2293         * configure: Regenerated.
2294         * Makefile.am: Moved files from java/net to gnu/java/net.
2295         * Makefile.in: Regenerated.
2296
2297 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
2298
2299         * configure: Regenerate.
2300
2301 2003-09-04  Tom Tromey  <tromey@redhat.com>
2302
2303         * configure.host: Removed erroneous comment.
2304
2305         * gnu/java/awt/natEmbeddedWindow.cc (setWindowPeer): Removed
2306         lvalue cast; use correct rvalue cast.
2307
2308 2003-09-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
2309
2310         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Add width
2311         and height arguments to GtkWindowPeer.create method call.
2312         * gnu/java/awt/peer/gtk/GtkWindowPeer.java
2313         (create(int,int,int)): New method.
2314         (create(int)): Add call to new create method.
2315         (create()): Add width and height arguments to create method
2316         call.
2317         (GtkWindowPeer): Remove call to setBounds.
2318         * java/awt/Frame.java (Frame(String)): Initialize visible field
2319         to false.
2320         (Frame(GraphicsConfiguration)): Likewise.
2321         (Frame(String,GraphicsConfiguration)): Likewise.
2322         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
2323         Add width and height parameters.  Call
2324         gtk_window_set_default_size.
2325         (connectHooks): Remove unused name variable.
2326         (static setBounds): Call gtk_window_resize not
2327         gtk_widget_set_usize.
2328         (setBounds): Remove unused nchildren variable.
2329
2330 2003-08-31  Ingo Proetel  <proetel@aicas.com>
2331
2332         * java/util/logging/Logger.java: provide class and method information
2333         * java/util/logging/LogManager.java: create handlers
2334         * java/util/logging/SimpleFormatter.java: print souceClassName and
2335         sourceMethodName
2336
2337 2003-08-28  Mohan Embar  <gnustuff@thisiscool.com>
2338
2339         * win32.cc: fixed tab, indentation and whitespace
2340         inconsistencies
2341         removed jvm.h include
2342         added includes java/lang/UnsupportedOperationException.h,
2343         java/io/IOException.h, java/net/SocketException.h
2344         (WSAEventWrapper): class implementation
2345         (_Jv_WinStrError): implemented both overloads
2346         (_Jv_ThrowIOException): implemented both overloads
2347         (_Jv_ThrowSocketException): implemented both overloads
2348         (_Jv_select): implemented
2349         * include/win32.h: fixed tab, indentation and whitespace
2350         inconsistencies
2351         wrapped <windows.h> include with  #define WIN32_LEAN_AND_MEAN
2352         added jvm.h include
2353         (WSAEventWrapper): added class declaration
2354         (_Jv_WinStrError): added both overload declarations
2355         (_Jv_ThrowIOException): added both overload declarations
2356         (_Jv_ThrowSocketException): added both overload declarations
2357         removed ENOTCONN, ECONNRESET and ENOPROTOOPT defines
2358         (_Jv_select): added declaration
2359         (_Jv_socket): removed
2360         (_Jv_connect): removed
2361         (_Jv_close): removed
2362         (_Jv_bind): removed
2363         (_Jv_accept): removed
2364         (_Jv_listen): removed
2365         (_Jv_write): removed
2366         (_Jv_read): removed
2367         * java/io/natFileDescriptorWin32.cc: fixed tab, indentation and
2368         whitespace inconsistencies
2369         replaced <windows.h> #include with <platform.h>
2370         removed jvm.h include
2371         (testCanUseGetHandleInfo): new function which tests whether Win32
2372         GetHandleInformation() call can be used with console buffer handles
2373         (only supported on >=WinNT 5.0)
2374         (winerr): removed (superseded by _Jv_WinStrError in include/win32.h)
2375         (valid): rewrote implementation using GetHandleInformation()
2376         (sync):         changed exception throwing to use error string and exception
2377         helper methods declared in include/win32.h
2378         (open): likewise
2379         (write): likewise
2380         (setLength): likewise
2381         (close): likewise
2382         (seek): likewise
2383         (getFilePointer): likewise
2384         (read): likewise
2385         * java/io/natFileWin32.cc: fixed tab, indentation and
2386         whitespace inconsistencies
2387         replaced <windows.h> #include with <platform.h>
2388         removed jvm.h include
2389         (_access): use JV_TEMP_UTF_STRING
2390         (_stat): likewise
2391         (performMkDir): use JV_TEMP_UTF_STRING
2392         (performRenameTo): likewise
2393         (performDelete): likewise
2394         (performCreate): likewise
2395         (performSetReadOnly): likewise
2396         (performSetLastModified): likewise
2397         * java/lang/natWin32Process.cc: fixed tab, indentation and
2398         whitespace inconsistencies
2399         replaced <windows.h> #include with <platform.h>
2400         removed includes gcj/cni.h, jvm.h
2401         (new_string): removed
2402         (startProcess): use JV_TEMP_UTF_STRING,
2403         changed exception throwing to use error string and exception
2404         helper methods declared in include/win32.h
2405         * java/net/natInetAddressWin32.cc: fixed tab, indentation and
2406         whitespace inconsistencies
2407         replaced <windows.h> #include with <platform.h>
2408         removed jvm.h include
2409         removed DISABLE_JAVA_NET conditional code
2410         removed POSIX conditional code not relevant to Win32
2411         (aton): use JV_TEMP_UTF_STRING
2412         removed POSIX conditional code not relevant to Win32
2413         (lookup): likewise
2414         (getLocalHostName): likewise
2415         * java/net/natNetworkInterfaceWin32.cc: fixed tab, indentation and
2416         whitespace inconsistencies
2417         removed unnecessary windows.h, winsock.h and gcj/cni.h includes
2418         removed DISABLE_JAVA_NET conditional code
2419         removed POSIX conditional code not relevant to Win32
2420         (winsock2GetRealNetworkInterfaces): new function to compute network
2421         interfaces via Winsock2 API
2422         (determineGetRealNetworkInterfacesFN): new function for returning
2423         a function pointer to the function used to compute network interfaces.
2424         (getRealNetworkInterfaces): implemented
2425         * java/net/natPlainDatagramSocketImplWin32.cc: fixed tab, indentation and
2426         whitespace inconsistencies
2427         removed gcj/cni.h include
2428         removed DISABLE_JAVA_NET conditional code
2429         removed POSIX conditional code not relevant to Win32
2430         changed net POSIXisms to Win32isms
2431         replaced _Jv socket-related calls with their real Win32 equivalents
2432         changed exception throwing to use error string and exception
2433         helper methods declared in include/win32.h
2434         (peekData): implemented timeout support
2435         (receive): likewise
2436         * java/net/natPlainSocketImplWin32.cc: fixed tab, indentation and
2437         whitespace inconsistencies
2438         removed gcj/cni.h and gcj/javaprims.h includes
2439         removed DISABLE_JAVA_NET conditional code
2440         removed POSIX conditional code not relevant to Win32
2441         changed net POSIXisms to Win32isms
2442         replaced _Jv socket-related calls with their real Win32
2443         equivalents
2444         changed exception throwing to use error string and exception
2445         helper methods declared in include/win32.h
2446         (throwConnectException): helper function for connect()
2447         (connect): implemented timeout support
2448         (accept): likewise
2449         (doRead): new helper function common to both read() method overloads,
2450         includes timeout support
2451         (read): implemented both overloads in terms of doRead()
2452         (available): implemented using ioctlsocket()
2453
2454 2003-08-28  Mohan Embar  <gnustuff@thisiscool.com>
2455
2456         * java/net/natInetAddressWin32.cc,
2457         java/net/natNetworkInterfaceWin32.cc,
2458         java/net/natPlainDatagramSocketImplWin32.cc,
2459         java/net/natPlainSocketImplWin32.cc:
2460         Readded code enclosed in DISABLE_JAVA_NET defines
2461         in preparation for MinGW cleanup / networking
2462         patch
2463
2464 2003-08-28  Mohan Embar  <gnustuff@thisiscool.com>
2465
2466         * Makefile.am: Fixed problems with parallel makes.
2467         (all_java_class_files): Readded definition.
2468         (all_java_class_files): New target which depends on
2469         libgcj-@gcc_version@.jar
2470         * Makefile.in: Rebuilt
2471
2472 2003-08-28  Tom Tromey  <tromey@redhat.com>
2473
2474         * Makefile.in: Rebuilt.
2475         * Makefile.am (ordinary_java_source_files): Added new files.
2476         * java/lang/Class.h (_Jv_sharedlib_register_hook): Declare as
2477         friend.
2478         * java/net/URLClassLoader.java (findClass): Don't use
2479         findURLResource.  Use loader's getClass method.
2480         (URLLoader.getClass): New method.
2481         (addURL): Handle `gcjlib' URLs.
2482         (SoURLLoader): New class.
2483         (SoResource): Likewise.
2484         * gnu/gcj/protocol/gcjlib/Connection.java: New file.
2485         * gnu/gcj/protocol/gcjlib/Handler.java: New file.
2486         * include/jvm.h (struct _Jv_core_chain): Moved from natCore.cc.
2487         (_Jv_RegisterCoreHook): Declare.
2488         (_Jv_FindCore): Declare.
2489         * gnu/gcj/runtime/SharedLibHelper.java: New file.
2490         * gnu/gcj/runtime/natSharedLibLoader.cc (CoreHookFunc): New
2491         typedef.
2492         (core_hook): New function.
2493         (struct SharedLibDummy) [saved_core]: New field.
2494         (init): Set _Jv_RegisterCoreHook.  Throw exception on failure.
2495         (register_hook): Set protection domain and class loader on new
2496         class.
2497         (finalize): Free core chain.
2498         * gnu/gcj/Core.java (Core): New constructor.
2499         * gnu/gcj/runtime/SharedLibLoader.java: Rewrote to use
2500         SharedLibHelper.
2501         * gnu/gcj/natCore.cc (_Jv_RegisterResource): Indentation fixlet.
2502         (_Jv_create_core): New function.
2503         (create): Use it.
2504         (default_register_resource): New function.
2505         (_Jv_RegisterCoreHook): New global.
2506         (_Jv_RegisterResource): Use it.
2507         (core_chain_struct): Removed.
2508         (_Jv_FindCore): New function.
2509         (_Jv_FreeCoreChain): New function.
2510
2511 2003-08-29  Michael Koch  <konqueror@gmx.de>
2512
2513         * java/net/natInetAddressWin32.cc,
2514         java/net/natNetworkInterfaceWin32.cc,
2515         java/net/natPlainDatagramSocketImplWin32.cc,
2516         java/net/natPlainSocketImplWin32.cc:
2517         Removed code enclosed in DISABLE_JAVA_NET defines.
2518
2519 2003-08-26  Mohan Embar  <gnustuff@thisiscool.com>
2520
2521         * Makefile.am: (write_entries_to_file) New parameterized
2522         function for writing entries to a file one line at a time.
2523         (all_java_class_files): Removed definition.
2524         (.java.class) Removed.target.
2525         (libgcj-@gcc_version@.jar): Changed dependency to
2526         $(all_java_source_files); added compilation step which compiles
2527         all changed source files in one pass.
2528         (libgcj.la) Refactored to use write_entries_to_file.
2529         (lib-gnu-awt-xlib.la) Likewise.
2530         (install-data-local) Likewise.
2531         (write-entries-to-file-check) New target which tests write_entries_to_file.
2532         (all-recursive): Changed dependency from $(all_java_class_files)
2533         to libgcj-@gcc_version@.jar
2534         * Makefile.in: Rebuilt.
2535
2536 2003-08-26  Tom Tromey  <tromey@redhat.com>
2537
2538         * java/lang/StrictMath.java: Typo fix.
2539         * java/lang/Math.java: Typo fix.
2540
2541 2003-08-26  Stephen Crawley  <crawley@dstc.edu.au>
2542
2543         * java/lang/ThreadGroup.java (removeThread): null the 'group' field
2544         of the removed Thread.
2545
2546 2003-08-26  Mark Wielaard  <mark@klomp.org>
2547
2548         Reported by David Holmes <dholmes@dltech.com.au>.
2549         * java/lang/InheritableThreadLocal.java (threadMap): Wrap inside
2550         Collections.synchronizedMap.
2551         * java/lang/ThreadLocal.java (valueMap): Likewise.
2552
2553 2003-08-26  Mark Wielaard  <mark@klomp.org>
2554
2555         * java/security/acl/Acl.java: Fix broken p tag.
2556         * java/text/DateFormatSymbols.java: Correctly open and close li tags.
2557         * javax/swing/border/LineBorder.java: Close img tag alt attributes.
2558         * javax/swing/plaf/TreeUI.java: Likewise.
2559         * javax/swing/plaf/basic/BasicTreeUI.java: Likewise.
2560         * java/util/Properties.java: Use the word umlaut, not &auml; in api
2561         documentation.
2562         * java/util/PropertyResourceBundle.java: Likewise and add closing code
2563         tag.
2564
2565 2003-08-26  Tom Tromey  <tromey@redhat.com>
2566
2567         * Makefile.in: Rebuilt.
2568         * Makefile.am: Removed all GNU-make-specific FIXME comments.
2569
2570         * java/lang/ref/Reference.java (get): Indentation fix.
2571         (clear): Comment fix.
2572         (enqueue): Likewise.
2573         (lock): Likewise.
2574         (referent): Likewise.
2575
2576 2003-08-26  Tom Tromey  <tromey@redhat.com>
2577
2578         PR java/12058:
2579         * java/lang/reflect/natArray.cc (set): Allow null as argument.
2580
2581         * java/lang/reflect/Proxy.java (ProxyData): `pack' now a String.
2582         (ProxyData.getPackage): New method.
2583         (ProxyData.getProxyData): Use package name, not Package.
2584         (ClassFactory.ClassFactory): Updated.
2585
2586 2003-08-25  Scott Gilbertson  <scottg@mantatest.com>
2587         * Makefile.am: added gnu/awt/xlib/XOffScreenImage.java.
2588         * Makefile.in: re-generated.
2589         * gnu/awt/j2d/IntegerGraphicsState.java
2590         (ScreenCoupledImage): new interface.
2591         (drawImage): detect ScreenCoupledImage instances.
2592         * gnu/awt/xlib/XCanvasPeer.java (createImage) implemented.
2593         * gnu/awt/xlib/XEventLoop.java
2594         (createEvent): re-formatted, and rearranged to avoid null pointer.
2595         * gnu/awt/xlib/XGraphics.java
2596         (drawImage): added XOffScreenImage handling.
2597         * gnu/awt/xlib/XOffScreenImage.java: new file.
2598         * gnu/gcj/xlib/Drawable.java (getDepth): new native method.
2599         * gnu/gcj/xlib/GC.java (copyArea): new native method.
2600         * gnu/gcj/xlib/XAnyEvent.java
2601         (TYPE_KEY_PRESS): new constant.
2602         (TYPE_KEY_RELEASE): new constant.
2603         (TYPE_MOTION_NOTIFY): new constant.
2604         (TYPE_ENTER_NOTIFY): new constant.
2605         (TYPE_LEAVE_NOTIFY): new constant.
2606         (TYPE_FOCUS_IN): new constant.
2607         (TYPE_FOCUS_OUT): new constant.
2608         (TYPE_KEYMAP_NOTIFY): new constant.
2609         (TYPE_GRAPHICS_EXPOSE): new constant.
2610         (TYPE_NO_EXPOSE): new constant.
2611         (TYPE_VISIBILITY_NOTIFY): new constant.
2612         (TYPE_CREATE_NOTIFY): new constant.
2613         (TYPE_DESTROY_NOTIFY): new constant.
2614         (TYPE_MAP_REQUEST): new constant.
2615         (TYPE_CONFIGURE_REQUEST): new constant.
2616         (TYPE_GRAVITY_NOTIFY): new constant.
2617         (TYPE_RESIZE_REQUEST): new constant.
2618         (TYPE_CIRCULATE_NOTIFY): new constant.
2619         (TYPE_CIRCULATE_REQUEST): new constant.
2620         (TYPE_PROPERTY_NOTIFY): new constant.
2621         (TYPE_SELECTION_CLEAR): new constant.
2622         (TYPE_SELECTION_REQUEST): new constant.
2623         (TYPE_SELECTION_NOTIFY): new constant.
2624         (TYPE_COLORMAP_NOTIFY): new constant.
2625         (TYPE_MAPPING_NOTIFY): new constant.
2626         * gnu/gcj/xlib/natDrawable.cc (getDepth): new method.
2627         * gnu/gcj/xlib/natGC.cc (copyArea): new method
2628         * java/awt/Component.java (createImage): changed to use peer method.
2629
2630 2003-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
2631
2632         * gnu/java/awt/peer/gtk/GdkGraphics.java (drawString): Pass font
2633         name, not XLFD, to native drawString.
2634         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2635         Replace XLFD-based implementation with Pango-based
2636         implementation.
2637
2638 2003-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
2639
2640         * gnu/java/awt/peer/gtk/GtkWindowPeer.java: Remove
2641         GTK_WINDOW_DIALOG.  Set GTK_WINDOW_POPUP to 1.
2642
2643 2003-08-21  David Daney  <ddaney@avtrex.com>
2644
2645         Fix for PR libgcj/12013:
2646         * java/lang/ref/natReference.cc (finalize_referred_to_object):
2647         Check `cleared' field.
2648         * java/lang/ref/Reference.java (copy): Updated comments.
2649         (cleared): New field.
2650         (clear): Rewrote.
2651
2652 2003-08-21  Scott Gilbertson  <scottg@mantatest.com>
2653             Thomas Fitzsimmons  <fitzsim@redhat.com>
2654
2655         * Makefile.am (gtk_awt_peer_sources): Add
2656         gnu/java/awt/peer/GLightweightPeer.java.  Remove
2657         gnu/java/awt/GLightweightPeer.java.
2658         * gnu/java/awt/GLightweightPeer.java: Remove file.
2659         * gnu/java/awt/peer/GLightweightPeer.java: New file.
2660         * java/awt/Component.java (getToolkit): Add comment about
2661         lightweight components.
2662         * java/awt/Toolkit.java (createComponent): Return
2663         gnu.java.awt.peer.GLightweightPeer.
2664
2665 2003-08-21  Richard Earnshaw  <rearnsha@arm.com>
2666
2667         * configure.in: Fix detection of gcj when building with newlib.
2668         * configure: Regenerated.
2669
2670 2003-08-20  Graydon Hoare  <graydon@redhat.com>
2671
2672         * jni.cc: Replace "cheating" pointer-casting code with
2673         extract_from_jvalue<> template.
2674
2675 2003-08-20  Andrew Haley  <aph@redhat.com>
2676
2677         * gnu/gcj/runtime/StackTrace.java (getClass): New method.
2678         * gnu/gcj/runtime/natStackTrace.cc (getClass): New method.
2679         (classAt): Break out class lookup function into getClass().
2680         * exception.cc (PERSONALITY_FUNCTION): Use new encoding for exception
2681         handlers when using -fno-assume-compiled.
2682
2683 2003-08-20  Tom Tromey  <tromey@redhat.com>
2684
2685         Fix for PR libgcj/9125:
2686         * gnu/gcj/runtime/natVMClassLoader.cc (findClass): Find Runtime
2687         object outside of loop.  Respect lib_control setting.
2688         * gnu/gcj/runtime/VMClassLoader.java (tried_libraries): New
2689         field.
2690         (lib_control): New field.
2691         (LIB_FULL, LIB_CACHE, LIB_NEVER): New constants.
2692         (VMClassLoader): Initialize new field.
2693
2694         * java/lang/ref/natReference.cc (finalize_referred_to_object):
2695         Set `list->reference' to DELETED_REFERENCE when removing dead
2696         object.
2697         (find_slot): Added an assert.
2698         (DELETED_REFERENCE): New define.
2699         (add_to_hash): Check for DELETED_REFERENCE.
2700         (remove_from_hash): Just return if found slot isn't ours.
2701
2702 2003-08-19  Andrew Haley  <aph@redhat.com>
2703
2704         * prims.cc (unblock_signal): New function.
2705         (catch_segv): Use it.
2706         (catch_fpe): Likewise.
2707
2708 2003-08-19  Danny Smith  <dannysmith@users.sourceforge.net>
2709
2710         PR libgcj/11575
2711         * java/io/natFileDescriptorWin32.cc (open): Set create
2712         flag to OPEN_AWAYS when READ & WRITE regardless of APPEND flag.
2713         Honor EXCL when openning with WRITE flag. 
2714
2715 2003-08-19  Mohan Embar  <gnustuff@thisiscool.com>
2716
2717         * include/jvm.h: New class _Jv_TempUTFString (helper class for
2718         getting a temporary C string from a jstring)
2719         New macro JV_TEMP_UTF_STRING, which leverages _Jv_TempUTFString
2720         but uses a stack buffer if the string length is less than 256
2721         bytes.
2722
2723 2003-08-18  Tom Tromey  <tromey@redhat.com>
2724
2725         PR libgcj/11951:
2726         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Returns
2727         void.  Throw VirtualMachineError if ffi fails.  Initialize return
2728         value.  Added is_jni_call argument; only wrap exception if not a
2729         JNI call.  Use descriptive message if operation not supported.
2730         (_Jv_GetTypesFromSignature): Use declaring class' loader to find
2731         array class.
2732         * include/jvm.h (_Jv_CallAnyMethodA): Updated declaration.
2733         * jni.cc (_Jv_JNI_CallAnyMethodV): Updated for new form of
2734         _Jv_CallAnyMethodA.
2735         (_Jv_JNI_CallAnyMethodA): Likewise.
2736         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
2737         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
2738
2739 2003-08-13  Tom Tromey  <tromey@redhat.com>
2740
2741         * gij.cc (help): Document -? and -X.
2742
2743 2003-08-12  Graydon Hoare  <graydon@redhat.com>
2744
2745         * java/awt/Font.java: 
2746         Stub out more recent API. 
2747
2748 2003-08-12  Graydon Hoare  <graydon@redhat.com>
2749
2750         * java/awt/Color.java (getAlpha): 
2751         Prevent sign-extended alpha values.
2752
2753 2003-08-12  Tom Tromey  <tromey@redhat.com>
2754
2755         * gij.cc (main): Handle -? and -X.
2756
2757 2003-08-10  Jeroen Frijters  <jeroen@frijters.net>
2758
2759         * java/awt/Container.java
2760         (getPreferredSize): Call preferredSize.
2761         (preferredSize): Moved body of getPreferredSize here.
2762         (getMinimumSize): Call minimumSize.
2763         (minimumSize): Moved body of getMinimumSize here.
2764
2765 2003-08-11  Tom Tromey  <tromey@redhat.com>
2766
2767         * java/awt/EventQueue.java (currentEvent, lastWhen): New fields.
2768         (postEvent): Removed FIXME comment.
2769         (isDispatchThread): Documented.
2770         (getCurrentEvent): New method.
2771         (dispatchEvent): Set currentEvent and lastWhen.
2772         (getMostRecentEventTime): Rewrote.
2773         (invokeLater): Documented.
2774
2775 2003-08-10  Bryce McKinlay  <bryce@mckinlay.net.nz>
2776
2777         * java/io/PrintStream.java (print): Always flush if auto_flush is
2778         set. Don't check for newline characters.
2779         (write (int)): Implement without using a temporary array.
2780         (write (byte[], int, int): Always flush if auto_flush is set. Don't
2781         check for newline characters.
2782         Fixes PR libgcj/11778.
2783
2784 2003-08-08  Andrew Haley  <aph@redhat.com>
2785
2786         * Makefile.am (AM_CXXFLAGS): Define BOOT_CLASS_PATH.
2787         * Makefile.in: Rebuild.
2788         * java/lang/natRuntime.cc (insertSystemProperties): Add
2789         "sun.boot.class.path".
2790
2791 2003-08-07  Andrew Haley  <aph@redhat.com>
2792
2793         * java/io/PrintStream.java: Don't crash on a null string.
2794         
2795 2003-08-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2796
2797         * configure.in: Don't initialize GCINCS to boehm-gc/include.
2798         * configure: Regenerate.
2799
2800 2003-08-07  Bryce McKinlay  <bryce@mckinlay.net.nz>
2801
2802         * java/net/Socket.java (Socket (SocketImpl)): Don't allow null
2803         SocketImpl. Update Javadoc.
2804         (bind): Call close() not impl.close() in event of exception.
2805         (connect): Likewise.
2806         Remove superfluous null checks throughout.
2807         * java/net/ServerSocket.java (ServerSocket (int, int, InetAddress)):
2808         Don't create an extra socket. Fix for PR libgcj/10868.
2809         (bind): Clean up exception handling.
2810         Remove superfluous null checks throughout.
2811
2812 2003-08-07  Jacob Gladish <gladish@spinnakernet.com>
2813             Bryce McKinlay  <bryce@mckinlay.net.nz>
2814
2815         * java/net/natPlainSocketImplPosix.cc (connect): Pass the FD as a
2816         ready-to-write argument to _Jv_Select. Reset the socket back to 
2817         non-blocking state after connecting.
2818         (accept): Pass the FD as a ready-to-write argument to _Jv_Select.
2819         Throw SocketTimeoutException not InterruptedIOException.
2820         (read): Throw SocketTimeoutException not InterruptedIOException.
2821
2822 2003-08-07  Bryce McKinlay  <bryce@mckinlay.net.nz>
2823
2824         * java/lang/Thread.java (Thread): Check for null "name" from
2825         start of private constructor, not after calling the private
2826         constructor.
2827
2828 2003-08-06  Tom Tromey  <tromey@redhat.com>
2829
2830         * java/io/FilePermission.java (equals): Use correct index for
2831         last character of path.
2832
2833 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
2834
2835         * acinclude.m4 (LIBGCJ_CONFIGURE): Remove AC_CANONICAL_BUILD.
2836         * configure.in: Compare with_cross_host to build_alias, not build.
2837         * aclocal.m4: Regenerate.
2838         * configure: Regenerate.
2839
2840 2003-08-05  Tom Tromey  <tromey@redhat.com>
2841
2842         Fix for PR libgcj/11779:
2843         * java/lang/reflect/natField.cc (getAddr): Skip frames in Field
2844         class.
2845
2846         * java/lang/reflect/Method.java: Updated status comment.
2847         Imported javadoc from Classpath and re-ordered methods.
2848         * java/lang/reflect/Constructor.java: Reindented.  Updated
2849         status comment.  Imported javadoc from Classpath and re-ordered
2850         methods.
2851
2852 2003-08-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
2853
2854         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
2855         Add keyLocation parameter.
2856         * java/awt/event/KeyEvent.java (getKeyText): Fix "NumPad-"
2857         string.
2858         (paramString): Generate keyChar string according to keyChar, not
2859         keyCode.
2860         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2861         (state_to_awt_mods): Handle ALT key.
2862         (keyevent_state_to_awt_mods): New function.
2863         (get_first_keyval_from_keymap): New function.
2864         (keysym_to_awt_keycode): Get virtual key code from keymap.
2865         Handle missing VK_ values.
2866         (keysym_to_awt_keylocation): New function.
2867         (keyevent_to_awt_keychar): New function.
2868         (generates_key_typed_event): Handle non-text-component case.
2869         Handle GDK_KP_Delete and GDK_KP_Enter.
2870         (awt_event_handler): Call new functions to get postKeyEvent
2871         parameters.
2872         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
2873         Update postKeyEvent method signature.
2874         * jni/gtk-peer/gtkpeer.h: Add KEY_LOCATION defines.  Add missing
2875         VK_ defines.
2876
2877 2003-08-05  Matthias Klose  <doko@debian.org>
2878
2879         * aclocal.m4: check for libart-config binary
2880           under the name libart2-config as well.
2881         * configure: regenerated.
2882
2883 2003-08-04  David P Grove  <groved@us.ibm.com>
2884
2885         * java/text/DecimalFormat.java (format): avoid ArithmeticException
2886         when groupingSize is 0.
2887         (parse): Likewise.
2888
2889 2003-08-04  Matthias Klose  <doko@debian.org>
2890
2891         * libart.m4: check for libart-config binary
2892           under the name libart2-config as well.
2893         * configure, aclocal.m4: regenerated.
2894
2895 2003-08-02  Michael Koch  <konqueror@gmx.de>
2896
2897         * java/nio/ByteBufferImpl.java
2898         (getChar): Check remaining bytes, fixed comment about endianess.
2899         (putChar): Likewise.
2900         (getShort): Likewise.
2901         (putShort): Likewise.
2902         (getInt): Check remaining bytes, fixed conversion, fixed comment about
2903         endianess.
2904         (putInt): Likewise.
2905         (getLong): Likewise.
2906         (putLong): Likewise.
2907         (getFloat): Likewise.
2908         (putFloat): Likewise.
2909         (getDouble): Likewise.
2910         (putDouble): Likewise.
2911         * java/nio/DirectByteBufferImpl.java
2912         (getChar): Wrapped code, fixed comment about endianess.
2913         (putchar): Likewise.
2914         (getShort): Likewise.
2915         (putShort): Likewise.
2916         (getInt): Fixed conversion, fixed comment about endianess.
2917         (putInt): Likewise.
2918         (getLong): Likewise.
2919         (putLong): Likewise.
2920         (getFloat): Likewise.
2921         (putFloat): Likewise.
2922         (getDouble): Likewise.
2923         (putDouble): Likewise.
2924         * java/nio/MappedByteBufferImpl.java
2925         (compact): Implemented.
2926         (getChar): Implemented.
2927         (putChar): Implemented.
2928         (getDouble): Implemented.
2929         (putdouble): Implemented.
2930         (getFloat): Implemented.
2931         (putFloat): Implemented.
2932         (getInt): Implemented.
2933         (putInt): Implemented.
2934         (getLong): Implemented.
2935         (putLong): Implemented.
2936         (getShort): Implemented.
2937         (putShort): Implemented.
2938         * java/nio/channels/FileChannelImpl.java
2939         (read): Set position where to access file.
2940         (write): Likewise.
2941         (transferTo): Flip buffer after read and before write.
2942         (transferFrom): Likewise.
2943
2944 2003-08-02  Michael Koch  <konqueror@gmx.de>
2945
2946         * gnu/java/lang/ArrayHelper.java
2947         (equalsArray): Reformated, added method documentation.
2948
2949 2003-08-02  Michael Koch  <konqueror@gmx.de>
2950
2951         * java/net/URL.java
2952         (URL): Added paragraph about the
2953         gnu.java.net.nocache_protocol_handlers property.
2954         (ph_cache): Renamed from handlers to match classpath's implementation.
2955         Reordered it with factory and serialVersionUID member variables.
2956         (cache_handlers): New member variable.
2957         (static): New static initializer to initialize cache_handlers from
2958         gnu.java.net.nocache_protocol_handlers property.
2959         (URL): Use ph_cache instead of handlers, reformatted some code to
2960         match classpath's implementation.
2961
2962 2003-08-01  Tom Tromey  <tromey@redhat.com>
2963
2964         Fix for PR libgcj/11241:
2965         * java/util/WeakHashMap.java (WeakHashMap(int,float)): If
2966         initialCapacity is 0, set it to 1.
2967
2968 2003-08-01  Stephen Crawley <crawley@dstc.edu.au>
2969
2970         * java/net/SocketImpl.java (toString): Display the remote address
2971         of an unconnected server socket as "0.0.0.0/0.0.0.0".
2972
2973 2003-08-01  Sascha Brawer  <brawer@dandelis.ch>
2974
2975         * javax/swing/border/BevelBorder.java,
2976         javax/swing/border/EtchedBorder.java,
2977         javax/swing/border/LineBorder.java,
2978         javax/swing/border/MatteBorder.java,
2979         javax/swing/border/SoftBevelBorder.java,
2980         javax/swing/plaf/BorderUIResource.java,
2981         javax/swing/plaf/ComponentUI.java,
2982         javax/swing/plaf/TreeUI.java,
2983         javax/swing/plaf/basic/BasicBorders.java,
2984         javax/swing/plaf/basic/BasicGraphicsUtils.java,
2985         javax/swing/plaf/basic/BasicTreeUI.java:
2986         Prepend "doc-files" to all paths to embedded Javadoc images, so
2987         that the generated documentation contains the correct URL.
2988
2989 2003-08-01  Tom Tromey  <tromey@redhat.com>
2990
2991         * configure: Rebuilt.
2992         * configure.in (tool_include_dir): Redefine to match gcc.
2993
2994 2003-08-01  Jerry Quinn  <jlquinn@optonline.net>
2995             Mark Wielaard  <mark@klomp.org>
2996             
2997         * java/math/BigDecimal (divide): Correctly handle
2998         ROUND_HALF_EVEN when amount is greater than 0.5.
2999         Simplify and optimize code.
3000
3001 2003-07-31  Tom Tromey  <tromey@redhat.com>
3002
3003         More for PR libgcj/11737:
3004         * java/io/ObjectInputStream.java (processResolution): Use
3005         getMethod.
3006         (getMethod): Make method accessible.
3007         (getField): Make field accessible.
3008         (setBooleanField): Don't call setAccessible here.
3009         (setByteField, setCharField, setDoubleField, setFloatField,
3010         setIntField, setLongField, setShortField, setObjectField):
3011         Likewise.
3012         (callReadMethod): Don't check whether method is null.  Catch
3013         NoSuchMethodException.
3014         * java/io/ObjectOutputStream.java (callWriteMethod): Initialize
3015         cause on thrown exceptions.
3016
3017 2003-07-31  Stepan Koltsov  <yozh@mx1.ru>
3018
3019         Fix for PR libgcj/11728:
3020         * java/util/HashMap.java (readObject): Set size.
3021
3022 2003-07-31  Tom Tromey  <tromey@redhat.com>
3023
3024         Fix for PR libgcj/11737:
3025         * java/io/ObjectOutputStream.java (getMethod): Make method
3026         accessible.
3027         (getField): Likewise.
3028         (writeObject): Use getMethod.
3029         Import PrivilegedAction and AccessController.
3030         (callWriteMethod): Don't check whether m is null.  Catch
3031         NoSuchMethodException.
3032
3033         * java/awt/geom/Arc2D.java (getBounds2D): Implement.
3034         (containsAngle): Likewise.
3035         (getStartPoint): Rewrote.
3036         (getEndPoint): Likewise.
3037         (setAngleStart(Point2D)): Likewise.
3038
3039 2003-07-31  Roger Sayle  <roger@eyesopen.com>
3040             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3041
3042         * configure.in: Add new THREADCXXFLAGS variable.
3043         Handle POSIX threads on alpha*-dec-osf*.
3044         * configure: Regenerate.
3045         * Makefile.am: Add THREADCXXFLAGS to AM_CXXFLAGS.
3046         * Makefile.in: Regenerate.
3047
3048 2003-07-08  Andrew Haley  <aph@redhat.com>
3049
3050         * include/i386-signal.h (RESTORE): New.
3051         (INIT_SEGV): Set restorer.
3052         (INIT_FPE): Likewise.
3053
3054 2003-07-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
3055
3056         * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Call getName rather
3057         than getXLFD.
3058         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
3059         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Likewise.
3060         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3061         (gtkSetFont): Scale size parameter by PANGO_SCALE.
3062         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c:
3063         Likewise.
3064         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c:
3065         Likewise.
3066
3067 2003-07-29  Tom Tromey  <tromey@redhat.com>
3068
3069         * defineclass.cc (handleField): Throw exception if field name is
3070         duplicated.
3071         (handleMethod): Throw exception for duplicate method.
3072
3073 2003-07-29  Tom Tromey  <tromey@redhat.com>
3074
3075         * gnu/gcj/convert/natIconv.cc (write): Handle case where
3076         output buffer is too small.
3077
3078 2003-07-28  Tom Tromey  <tromey@redhat.com>
3079
3080         * java/lang/natString.cc (init(gnu.gcj.runtime.StringBuffer)):
3081         New method.
3082         Include gnu/gcj/runtime/StringBuffer.h.
3083         * java/lang/String.java (init(gnu.gcj.runtime.StringBuffer)): New
3084         native method.
3085         (String(gnu.gcj.runtime.StringBuffer)): Use it.
3086
3087 2003-07-27  Anthony Green  <green@redhat.com>
3088
3089         * configure.in: Fix newlib check.
3090         * configure: Rebuilt.
3091
3092 2003-07-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
3093
3094         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
3095         Create vbox and layout for GtkPlug.
3096
3097 2003-07-27  Michael Koch  <konqueror@gmx.de>
3098
3099         * java/awt/Window.java
3100         (Window): Removed now unused constructor. It became oboslete with the
3101         new embedded window patch.
3102
3103 2003-07-27  Thomas Fitzsimmons <fitzsim@redhat.com.h> 
3104             Michael Koch  <konqueror@gmx.de>
3105
3106         * gnu/java/awt/EmbeddedWindow.java
3107         (EmbeddedWindow): Extends Frame instead of Window.
3108         (window_id): New member variable to store the native window handle.
3109         (create): Removed.
3110         (EmbeddedWindow): New constructor.
3111         (addNotify): New method.
3112         (getHandler): Likewise.
3113         (setWindowPeer): New native method.
3114         * gnu/java/awt/EmbeddedWindowSupport.java
3115         (EmbeddedWindowSupport): Fixed documentation.
3116         (createEmbeddedWindow): Return EmbeddedWindowPeer instead of
3117         WindowPeer, give it an EmbeddedWindow instance instead of the raw
3118         window data.
3119         * gnu/java/awt/natEmbeddedWindow.cc
3120         (create): Removed.
3121         (setWindowPeer): New method.
3122         * gnu/java/awt/peer/EmbeddedWindowPeer.java,
3123         gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
3124         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
3125         New files
3126         * gnu/java/awt/peer/gtk/GtkToolkit.java
3127         (GtkToolkit): Implements EmbeddedWindowSupport.
3128         (createEmbeddedWindow): New method.
3129         * java/awt/Window.java
3130         (Window): Removed.
3131         * Makefile.am
3132         (java_source_files): Added EmbeddedWindowPeer.java.
3133         (gtk_awt_peer_sources): Added GtkEmbeddedWindowPeer.java.
3134         (gtk_c_source_files): Added gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c.
3135         * Makefile.in: Regenerated.
3136
3137 2003-07-26  Ranjit Mathew  <rmathew@hotmail.com>
3138
3139         * java/lang/Win32Process.java (ConcreteProcess): Surround
3140         a command line element with quotes if it contains an
3141         embedded space or tab.
3142         * java/lang/natWin32Process.cc (startProcess): Do not
3143         surround command line elements with quotes here.
3144
3145         * configure.host: Use -fcheck-references and 
3146         -fuse-divide-subroutine for MinGW until we fix
3147         win32_exception_handler( ) in win32.cc w.r.t. Win32 
3148         Structured Exception Handling (SEH).
3149
3150         * win32.cc (_Jv_platform_initProperties): Use generic names
3151         like "x86" for the "os.arch" property to be consistent with
3152         what Sun's JDK produces. Use the wProcessorArchitecture
3153         member of the Win32 SYSTEM_INFO structure, filled in a call 
3154         to GetSystemInfo( ), instead of dwProcessorType.
3155
3156 2003-07-26  Mohan Embar  <gnustuff@thisiscool.com>
3157             Ranjit Mathew  <rmathew@hotmail.com>
3158
3159         * Makefile.am: Use cross-compiling gcjh from the path for
3160         a crossed-native build.
3161         * Makefile.in: Rebuilt.
3162         * configure.in: Include libltdl in non-newlib builds.
3163         Moved determination of gcj used to build libraries to
3164         its own section. Fixed cross-compilation issues for
3165         non-newlib builds.
3166         * configure: Rebuilt.
3167
3168 2003-07-25  Tom Tromey  <tromey@redhat.com>
3169
3170         * java/io/natFileDescriptorPosix.cc (write): Try again on EINTR.
3171         (write): Likewise.
3172         (read): Likewise.
3173         (read): Likewise.
3174
3175 2003-07-25  Mark Wielaard  <mark@klomp.org>
3176
3177         * java/lang/natRuntime.cc (_load): Add library name to
3178         UnsatisfiedLinkError when thrown.
3179
3180 2003-07-25  Mark Wielaard  <mark@klomp.org>
3181
3182         * Makefile.am (awt_java_source_files): java/awt/GridBagLayoutInfo.java
3183         added.
3184         * Makefile.in: Likewise.
3185
3186 2003-07-25  Jeroen Frijters  <jeroen@frijters.net>
3187
3188         * java/awt/Component.java
3189         (getPreferredSize): Call preferredSize.
3190         (preferredSize): Moved body of getPreferredSize here.
3191         (getMinimumSize): Call minimumSize.
3192         (minimumSize): Moved body of getMinimumSize here.
3193         (prepareImage): Fall back on Toolkit.prepareImage if there is no peer
3194         (checkImage(Image,ImageObserver)): Don't call getWidth/getHeight, but
3195         pass -1
3196         * java/awt/Container.java
3197         (validate): Don't validate if there is no peer.
3198         (update): Clear background before calling paint.
3199         * java/awt/GridBagLayout.java
3200         Completed the implementation and fixed several bugs.
3201         * java/awt/MediaTracker.java
3202         (MediaEntry.imageUpdate): Fixed typo. & instead of | was used to
3203         combine flags.
3204         * java/awt/Window.java
3205         (Window): Don't call setVisible(false). Windows are invisible by
3206         default and calling virtual methods from constructor causes
3207         compatibility problems (e.g. subclasses may assume that the peer
3208         already exists).
3209
3210 2003-07-25  Michael Koch  <konqueror@gmx.de>
3211
3212         * java/awt/GridBagLayout.java:
3213         Totally reworked and partly implemented.
3214         * java/awt/GridBagLayoutInfo.java:
3215         New file.
3216
3217 2003-07-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
3218
3219         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create):
3220         Don't pack label in an event box.
3221
3222 2003-07-24  Tom Tromey  <tromey@redhat.com>
3223
3224         For PR libgcj/7482:
3225         * verify.cc (ref_intersection): New class.
3226         (type_val): Removed unresolved_reference_type,
3227         uninitialized_unresolved_reference_type.
3228         (is_assignable_from_slow): Rewrote.
3229         (type::data): Removed.
3230         (type::klass): New field.
3231         (type::type): Added verifier argument.
3232         (type::resolve): Removed.
3233         (type::set_uninitialized): Updated for change to type_val.
3234         (type::set_initialized): Likewise.
3235         (type::isinitialized): Likewise.
3236         (type::print): Likewise.
3237         (construct_primitive_array_type): Likewise.
3238         (type::compatible): Updated for change to type_val and to use
3239         ref_intersection.
3240         (type::isarray): Updated to use ref_intersection.
3241         (type::isinterface): Likewise.
3242         (type::element_type): Likewise.
3243         (type::to_array): Likewise.
3244         (type::verify_dimensions): Rewrote.
3245         (type::merge): Likewise.
3246         (check_class_constant): Updated for type constructor change.
3247         (check_constant): Likewise.
3248         (check_field_constant): Likewise.
3249         (get_one_type): Likewise.
3250         (initialize_stack): Likewise.
3251         (verify_instructions_0): Likewise.
3252         (verify_instructions_0) [op_invokeinterface]: Removed special
3253         case.
3254         (isect_list): New field.
3255         (_Jv_BytecodeVerifier): Initialize it.
3256         (~_Jv_BytecodeVerifier): Destroy ref_intersection objects. 
3257
3258 2003-07-24  H. Väisänen  <hvaisane@joyx.joensuu.fi>
3259
3260         * java/text/SimpleDateFormat.java (format) [YEAR_FIELD]: Zero pad
3261         unless field size is 2.
3262
3263 2003-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
3264
3265         * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
3266         (connectHooks): New method.
3267         (handleEvent): Remove.
3268         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java
3269         (createHooks): Remove declaration.
3270         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3271         (generates_key_typed_event): Change to handle only certain
3272         keyvals.
3273         (awt_event_handler): Add special handling for GtkTextView.
3274         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3275         (textcomponent_commit_cb): New function.
3276         (textcomponent_changed_cb): Likewise.
3277         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
3278         (connectHooks): Remove.
3279
3280 2003-07-23  Tom Tromey  <tromey@redhat.com>
3281
3282         * java/lang/natSystem.cc (arraycopy): Check for overflow.
3283
3284         * boehm.cc (_Jv_BuildGCDescr): Use `1ULL'.
3285
3286 2003-07-22  Tom Tromey  <tromey@redhat.com>
3287
3288         * boehm.cc (_Jv_BuildGCDescr): Wrote.
3289         Include limits.h.
3290
3291 2003-07-22  Tom Tromey  <tromey@redhat.com>
3292
3293         * java/awt/Window.java (getWarningString): Just return the
3294         string.
3295         (Window): Set warningString; check with security manager.
3296
3297 2003-07-22  Scott Gilbertson  <scottg@mantatest.com>
3298
3299         * gnu/awt/xlib/XGraphicsConfiguration.java
3300         (FontMetricsCache): Made static.
3301  
3302 2003-07-22  Tom Tromey  <tromey@redhat.com>
3303
3304         * java/net/URLEncoder.java (encode(String)): Use platform default
3305         encoding.
3306         (encode(String,String)): Convert to 2-digit upper-case hex
3307         number.
3308         (hex): New field.
3309
3310 2003-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
3311
3312         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3313         (create): Remove unused method implementation.
3314         (connectHooks): Remove debug messages.
3315
3316 2003-07-20  Anthony Green  <green@redhat.com>
3317
3318         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Handle
3319         CloneNotSupportedException.
3320         * gnu/gcj/xlib/WindowAttributes.java (clone): Ditto.
3321         * gnu/gcj/xlib/WMSizeHints.java (clone): Ditto.
3322         * gnu/gcj/xlib/GC.java (clone): Ditto.
3323         * gnu/awt/xlib/XGraphics.java (clone): Ditto.
3324         * gnu/awt/j2d/Graphics2DImpl.java (clone): Ditto.
3325
3326         * gnu/awt/xlib/XEventLoop.java (postNextEvent): Remove unreachable
3327         handler.
3328         * gnu/gcj/runtime/NameFinder.java (NameFinder): Ditto.
3329
3330 2003-07-20  Steve Pribyl <steve@netfuel.com.>
3331
3332         * gnu/gcj/runtime/natSharedLibLoader.cc (init): `libname' now a
3333         String.  Put dlerror() message into exception.
3334         Include UnsatisfiedLinkError.
3335         * gnu/gcj/runtime/SharedLibLoader.java (init): `libname' now a
3336         String.  Now native.
3337
3338 2003-07-20  Tom Tromey  <tromey@redhat.com>
3339
3340         * java/lang/Runtime.java: Comment fix.
3341         * java/lang/ClassLoader.java (isAncestorOf): New method.
3342         (getParent): Uncommented security check.  Use isAncestorOf.
3343         * include/jvm.h (_Jv_CheckAccess): Declare.
3344         * java/lang/reflect/natConstructor.cc (newInstance): Perform
3345         access check.
3346         Include IllegalAccessException.h, ArrayIndexOutOfBoundsException.h.
3347         * java/lang/reflect/natArray.cc (newInstance): Pass caller's
3348         class loader to _Jv_GetArrayClass.
3349         Include ArrayIndexOutOfBoundsException.h.
3350         * java/lang/reflect/Field.java: Update comment to reflect status.
3351         (equals): Fixed indentation.
3352         * java/lang/Class.h (Class): Declare memberAccessCheck, not
3353         checkMemberAccess.  Make _Jv_CheckAccess a friend.
3354         * java/lang/Class.java (memberAccessCheck): New method from
3355         Classpath.
3356         (checkMemberAccess): Removed.
3357         (getDeclaredMethod): Use memberAccessCheck.
3358         (getField): Likewise.
3359         (getMethod): Likewise.
3360         * resolve.cc (_Jv_ResolvePoolEntry): Use _Jv_CheckAccess.
3361         (_Jv_SearchMethodInClass): Likewise.
3362         * prims.cc (_Jv_CheckAccess): New function.
3363         * jni.cc (_Jv_JNI_FindClass): Use getClassLoaderInternal.
3364         (_Jv_JNI_GetAnyFieldID): Likewise.
3365         * java/lang/natClass.cc (forName): Use getClassLoaderInternal.
3366         (getClassLoader): Added security check.
3367         (getConstructor): Call memberAccessCheck.
3368         (getDeclaredClasses): Likewise.
3369         (getDeclaredField): Likewise.
3370         (getDeclaredFields): Likewise.
3371         (_getConstructors): Likewise.
3372         (getDeclaredConstructor): Likewise.
3373         (getDeclaredMethods): Likewise.
3374         (getFields): Likewise.
3375         (getMethods): Likewise.
3376         (newInstance): Likewise.
3377         (_Jv_MakeVTable): Put method name in exception.
3378         * java/lang/reflect/natMethod.cc (getType): Use
3379         getClassLoaderInternal.
3380         (_Jv_GetTypesFromSignature): Likewise.
3381         (invoke): Perform access check.
3382         (_Jv_CallAnyMethodA): Removed old FIXME comments.
3383         Include ArrayIndexOutOfBoundsException.h.
3384         * java/lang/reflect/natField.cc (getType): Use
3385         getClassLoaderInternal.
3386         (_Jv_CheckFieldAccessibility): Removed.
3387         (getAddr): Use _Jv_CheckAccess; find caller.
3388         Include ArrayIndexOutOfBoundsException.h.
3389
3390 2003-07-20  Michael Koch  <konqueror@gmx.de>
3391
3392         * java/net/URL.java
3393         (URL): Fixed documentation to name an argument correcty, Reformatted
3394         one method declaration.
3395         (getURLStreamHandler): Added documentation from classpath.
3396
3397 2003-07-19  Tom Tromey  <tromey@redhat.com>
3398
3399         * mauve-libgcj: Don't run CollationElementIterator tests.
3400
3401 2003-07-19  Jeroen Frijters <jeroen@sumatra.nl>
3402
3403         * java/net/URLClassLoader.java (addURL): Moved implementation to
3404         private addURLImpl() to avoid calling addURL from the constructor.
3405         (addURLImpl): Contains the code that was previously in addURL.
3406         (addURLs): Call addURLImpl(), not addURL().
3407
3408 2003-07-18  Graydon Hoare  <graydon@redhat.com>
3409
3410         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c: 
3411         Handle missing event cases, connect to "value-changed" signal.
3412
3413 2003-07-18  Graydon Hoare  <graydon@redhat.com>
3414
3415         * java/awt/geom/CubicCurve2D.java,
3416         java/awt/geom/Line2D.java,
3417         java/awt/geom/QuadCurve2D.java,
3418         java/awt/geom/Rectangle2D.java: 
3419         Fix path some calculations, make path iterators follow
3420         a consistent style.
3421
3422 2003-07-18  Mark Wielaard  <mark@klomp.org>
3423
3424         * java/util/logging/Handler.java (isLoggable): Check record level
3425         smaller or equal.
3426
3427 2003-07-17  Michael Koch  <konqueror@gmx.de>
3428
3429         * gnu/java/awt/peer/gtk/GtkToolkit.java:
3430         Reworked imports.
3431
3432 2003-07-14  Michael Koch  <konqueror@gmx.de>
3433
3434         * gnu/java/rmi/server/UnicastServerRef.java:
3435         New version from classpath.
3436
3437 2003-07-14  Michael Koch  <konqueror@gmx.de>
3438
3439         * java/awt/image/MemoryImageSource.java,
3440         java/beans/PropertyEditorManager.java,
3441         javax/naming/CompoundName.java,
3442         javax/naming/spi/NamingManager.java,
3443         javax/swing/AbstractButton.java,
3444         javax/swing/ButtonModel.java,
3445         javax/swing/SwingUtilities.java,
3446         javax/swing/UIManager.java,