OSDN Git Service

2004-12-17 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2004-12-08  Ranjit Mathew  <rmathew@hotmail.com>
2
3         * java/util/IdentityHashMap.java (put): Replace mistaken use
4         of "<<" by "*".
5
6 2004-12-06  Tom Tromey  <tromey@redhat.com>
7
8         For PR java/14853:
9         * testsuite/libjava.compile/PR14853.java: New file.
10         * testsuite/libjava.compile/PR14853.xfail: New file.
11
12 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
13
14         PR libgcj/7305
15         * configure.ac: Use TL_AC_GXX_INCLUDE_DIR.
16         * Makefile.am (install-data-local): Install headers into 
17         $(gxx_include_dir) rather than $(includedir).
18         (AM_MAKEFLAGS): Pass down gxx_include_dir.
19         * gcj/Makefile.am (gcjdir): Set to $(gxx_include_dir)/gcj.
20         * include/Makefile.am (tool_include__HEADERS): Define this...
21         (include_HEADERS): ...instead of this.
22         * configure, aclocal.m4, Makefile.in, gcj/Makefile.in: Regenerate.
23         * include/Makefile.in, testsuite/Makefile.in: Regenerate.
24
25 2004-12-02  Tom Tromey  <tromey@redhat.com>
26
27         For PR java/16675:
28         * testsuite/libjava.compile/PR16675.java: New file.
29
30 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
31
32         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
33         * configure, aclocal.m4, Makefile.in, gcj/Makefile.in: Regenerate.
34         * include/Makefile.in, testsuite/Makefile.in: Regenerate.
35
36 2004-12-01  Tom Tromey  <tromey@redhat.com>
37
38         * include/no-threads.h (_Jv_ThreadDestroyData): Removed argument
39         name.
40         (_Jv_ThreadRegister): Likewise.
41         (_Jv_MutexCheckMonitor): Likewise.
42
43         * link.cc: Include limits.h.
44
45 2004-12-01  Bryce McKinlay  <mckinlay@redhat.com>
46
47         PR libgcj/18699
48         * testsuite/libjava.lang/PR18699.java, 
49         testsuite/libjava.lang/PR18699.out: New test.
50
51 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
52
53         * gnu/java/awt/peer/gtk/GdkGraphics.java (drawImage variants):
54         Update image observer.
55         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (createImage):
56         Start image production.
57         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar): Protect
58         against negative menu bar widths.
59         (setBounds): Likewise.
60         (postConfigureEvent): Likewise.
61         * gnu/java/awt/peer/gtk/GtkImage.java (imageComplete): Don't
62         remove consumer unless only a single frame has completed.
63         * gnu/java/awt/peer/gtk/GtkImagePainter.java (GtkImagePainter):
64         Add observer parameter.
65         (setPixels): Update image observer.
66         (imageComplete): Likewise.
67         * java/applet/Applet.java (width): New field.
68         (height): Likewise.
69         (setStub): Set size if width or height field has been set.
70         (resize): If stub is null save width and height values.
71         * java/awt/Component.java (reshape): Protect against null
72         parent.
73         * java/awt/image/MemoryImageSource.java
74         (MemoryImageSource(int,int,ColorModel,byte[],int,int)):
75         Document.
76         (MemoryImageSource(int,int,ColorModel,int[],int,int)):
77         Likewise.
78         (MemoryImageSource(int,int,ColorModel,byte[],int,int,Hashtable)):
79         Reference pixel array directly, rather than creating a local
80         copy.
81         (MemoryImageSource(int,int,ColorModel,int[],int,int,Hashtable)):
82         Likewise.
83         (newPixels(int,int,int,int)): Fix for loop and array copy
84         bounds.
85         (newPixels(int,int,int,int,boolean)): Likewise.
86         (startProduction): If animated call imageComplete with
87         SINGLEFRAME.
88         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Uncomment
89         gdk_flush lines.
90         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
91         (drawPixels): Return if g is null or g->drawable is not a gdk
92         drawable.
93
94 2004-11-30  Michael Koch  <konqueror@gmx.de>
95
96         * javax/swing/DefaultSingleSelectionModel.java,
97         javax/swing/JPasswordField.java,
98         javax/swing/tree/AbstractLayoutCache.java:
99         Reformatted and javadocs cleaned up.
100
101 2004-11-30  Michael Koch  <konqueror@gmx.de>
102
103         * java/awt/Component.java:
104         Fixed argument names to match javadocs.
105         (setFont): Rewritten set property first and then fire event.
106         (setLocale): Likewise.
107         * javax/swing/text/JTextComponent.java
108         (setEditable): Likewise.
109
110 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
111
112         * java/awt/Button.java
113         (AccessibleAWTButton.getAccessibleActionDescription): Explain the
114         source of 'click'.
115
116 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
117
118         * java/awt/Checkbox.java: Remove stub comments.
119
120 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
121
122         * java/awt/Button.java
123         (AccessibleAWTButton.getAccessibleActionDescription): Return
124         'click'.
125
126 2004-11-30  Michael Koch  <konqueror@gmx.de>
127
128         * java/awt/CardLayout.java:
129         Made some constants static.
130         (serialVersionUID): Made private.
131         (addLayoutComponent): Simplified code.
132         * java/awt/event/InputEvent.java
133         (getModifiersEx): Added missing @param tag.
134         * java/awt/image/RGBImageFilter.java
135         (filterRGBPixels): Reformatted, removed wrong @param tag.
136
137 2004-11-30  Michael Koch  <konqueror@gmx.de>
138
139         * javax/swing/text/FieldView.java,
140         javax/swing/text/JTextComponent.java:
141         Removed debug code.
142
143 2004-11-30  Michael Koch  <konqueror@gmx.de>
144
145         * javax/swing/BorderFactory.java
146         (BorderFactory): Added private constructor.
147         * javax/swing/SwingUtilities.java
148         (SwingUtilities): Likewise.
149         (computeStringWidth): New method.
150
151 2004-11-30  Michael Koch  <konqueror@gmx.de>
152
153         * java/awt/color/ICC_Profile.java
154         (icSigNamedColorTag): Removed.
155         * java/awt/datatransfer/DataFlavor.java
156         (isMimeTypeEqual): Made final.
157         * java/awt/image/AffineTransformOp.java:
158         Reworked javadocs.
159         (TYPE_BICUBIC): Added @since tag.
160
161 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
162
163         * java/awt/Checkbox.java (AccessibleAWTCheckBox): Remove todo
164         comments.
165
166 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
167
168         * java/awt/Checkbox.java (itemStateChanged): Implement function.
169         (getAccessibleContext): Add AccessibleAWTCheckBox to item listeners.
170
171 2004-11-30  Sven de Marothy  <sven@physto.se>
172
173         * java/awt/Polygon.java (contains): Reimplemented.
174
175 2004-11-30  Michael Koch  <konqueror@gmx.de>
176
177         * java/awt/print/PrinterJob.java: Reformatted.
178
179 2004-11-30  Michael Koch  <konqueror@gmx.de>
180
181         * java/awt/image/AffineTransformOp.java,
182         java/awt/image/ColorConvertOp.java,
183         java/awt/image/LookupOp.java,
184         java/awt/image/RescaleOp.java:
185         Added final keywords where they belong.
186
187 2004-11-30  Michael Koch  <konqueror@gmx.de>
188
189         * java/awt/CardLayout.java,
190         java/awt/Component.java,
191         java/awt/Font.java,
192         java/awt/image/SinglePixelPackedSampleModel.java:
193         Fixed javadocs and argument names all over.
194
195 2004-11-30  Michael Koch  <konqueror@gmx.de>
196
197         * java/awt/image/DataBufferShort.java: Fixed file header.
198         * java/awt/image/DataBufferUShort.java: Likewise.
199         (DataBufferUShort): Throw NullPointerException if dataArray is null.
200
201 2004-11-30  Sven de Marothy  <sven@physto.se>
202
203         * java/awt/geom/Arc2D.java
204         (setAngleStart): Corrected (wrong sign on atan2 y parameter).
205         (setAngles): Likewise.
206         (containsAngle): Return false on zero extent, don't include
207         final angle.
208         (contains): Treat OPEN-type arcs like CHORD ones, not as PIE
209         ones.
210
211 2004-11-30  Sven de Marothy  <sven@physto.se>
212
213         * java/awt/geom/AffineTransform.java,
214         (inverseTransform): Fixed bug and simplified code.
215         (createTransformedShape): Return null on null parameter.
216
217 2004-11-30  Michael Koch  <konqueror@gmx.de>
218
219         * java/awt/color/ICC_ColorSpace.java,
220         java/awt/color/ICC_Profile.java,
221         java/awt/color/ICC_ProfileGray.java,
222         java/awt/color/ICC_ProfileRGB.java:
223         Re-indent copyright header to be standardish.
224         * java/awt/datatransfer/StringSelection.java:
225         Reformatted.
226         * java/awt/geom/Area.java
227         (EPSILON): Made static.
228         (RS_EPSILON): Likewise.
229         (PE_EPSILON): Likewide.
230
231 2004-11-30  Sven de Marothy  <sven@physto.se>
232
233         * javax/swing/SwingUtilities.java:
234         (computeDifference): Implemented
235         (computeIntersection): Likewise
236         (computeUnion): Likewise
237         (isRectangleContainingRectangle): Likewise
238
239 2004-11-30  Michael Koch  <konqueror@gmx.de>
240
241         * java/awt/BasicStroke.java,
242         java/awt/Button.java,
243         java/awt/Canvas.java,
244         java/awt/CheckboxMenuItem.java,
245         java/awt/Container.java,
246         java/awt/EventQueue.java,
247         java/awt/FileDialog.java,
248         java/awt/FlowLayout.java,
249         java/awt/FontMetrics.java,
250         java/awt/Graphics.java,
251         java/awt/GridLayout.java,
252         java/awt/KeyboardFocusManager.java,
253         java/awt/Label.java,
254         java/awt/LayoutManager2.java,
255         java/awt/List.java,
256         java/awt/MenuBar.java,
257         java/awt/Scrollbar.java,
258         java/awt/Toolkit.java,
259         java/awt/Window.java,
260         java/awt/datatransfer/DataFlavor.java,
261         java/awt/datatransfer/FlavorTable.java,
262         java/awt/event/ActionListener.java,
263         java/awt/event/HierarchyBoundsAdapter.java,
264         java/awt/geom/Arc2D.java,
265         java/awt/geom/Rectangle2D.java,
266         java/awt/geom/RectangularShape.java,
267         java/awt/im/spi/InputMethod.java,
268         java/awt/image/ByteLookupTable.java,
269         java/awt/image/ColorModel.java,
270         java/awt/image/DirectColorModel.java,
271         java/awt/image/ShortLookupTable.java,
272         java/awt/print/Book.java:
273         Fixed javadocs and method argument names all over.
274
275 2004-11-30  Michael Koch  <konqueror@gmx.de>
276
277         * gnu/java/awt/peer/gtk/GdkFontPeer.java
278         (buildString): Optimise String building.
279
280 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
281
282         * java/awt/TextArea.java (AccessibleAWTTextArea,
283         getAccessibleContext): Implement.
284         * java/awt/TextField.java (AccessibleAWTTextField,
285         getAccessibleContext): Implement.
286
287 2004-11-30  Tom Tromey  <tromey@redhat.com>
288
289         * Makefile.in: Rebuilt.
290         * Makefile.am (jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.lo):
291         Fixed typo.
292
293 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
294
295         * java/awt/Menu.java (AccessibleAWTMenu, getAccessibleContext):
296         Implement.
297         * java/awt/PopupMenu.java (AccessibleAWTMenu, getAccessibleContext):
298         Implement.
299
300 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
301
302         * java/awt/print/PrinterJob.java (lookupPrintServices,
303         getPrintService, setPrintService): Implement.
304         (lookupStreamPrintServices): Add commented out implementation.
305         (printer): New field.
306
307 2004-11-30  Mark Wielaard  <mark@klomp.org>
308
309         * javax/swing/ToolTipManager.java (mouseMoved): Set currentComponent
310         when not yet set.
311
312 2004-11-30  Sven de Marothy  <sven@physto.se>
313
314         * java/awt/geom/GeneralPath.java (evaluateCrossings):
315         Fixed epsilon value, should always be nonzero.
316
317 2004-11-30  Paul Jenner  <psj.home@ntlworld.com>
318
319         * java/awt/image/Raster.java
320         (createPackedRaster): Implemented.
321
322 2004-11-30  Graydon Hoare  <graydon@redhat.com>
323
324         * javax/swing/plaf/basic/BasicTextUI.java: 
325         Listen to focus events, indicate focus via caret.
326         * javax/swing/text/GapContent.java (getString): Return substring.
327         * javax/swing/text/PlainDocument.java (reindex): New method.
328         (createDefaultRoot): Call it.
329         (insertUpdate): Likewise.
330         (removeUpdate): Likewise.
331         * javax/swing/text/Utilities.java (drawTabbedText): Always advance
332         on tab and newline, even if no painting happens.
333
334 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
335
336         * Makefile.am: List peer JNI header: Java source file
337         dependencies explicitly.  Likewise for JNI .lo: JNI header
338         dependencies.
339         * Makefile.in: Regenerate.
340
341 2004-11-30  Graydon Hoare  <graydon@redhat.com>
342
343         * Makefile.am: Add entry for BasicTextPaneUI.java
344         * Makefile.in: Regenerate.
345         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
346         (GdkGraphics2D): Set clip after transform.
347         (drawImage): Protect against null image.
348         * gnu/java/awt/peer/gtk/GtkFramePeer.java
349         (setIconImage): Protect against non-GtkImage args.
350         * gnu/java/awt/peer/gtk/GtkToolkit.java
351         (checkImage): Protect against non-GtkImage args.
352         * java/awt/print/PrinterJob.java:
353         (print): Add variant taking PrintRequestAttributeSet.
354         (printDialog): Likewise.
355         * javax/swing/JComponent.java:
356         (transferHandler): New field.
357         (getComponentGraphics): Build new Graphics for each sub-paint.
358         (getTransferHandler): New method.
359         (setTransferHandler): New method.
360         * javax/swing/JDesktopPane.java 
361         (setDragMode): Force LIVE_DRAG_MODE.
362         * javax/swing/JMenuItem.java
363         (menuSelectionChanged): Protect against null parent.
364         * javax/swing/JTable.java (setDefaultRenderer): New method.
365         * javax/swing/JTree.java: Get basic ctors and UI working.
366         * javax/swing/JViewport.java (JViewport): Set scroll mode.
367         * javax/swing/RepaintManager.java 
368         (addDirtyRegion): Skip empty regions.
369         * javax/swing/ScrollPaneLayout.java (minimumLayoutSize): Do not
370         bound scrollpane minimum by central view minimum.
371         * javax/swing/ToolTipManager.java 
372         (showTip): Guard against null component.
373         * javax/swing/TransferHandler.java: Stub out.
374         * javax/swing/plaf/basic/BasicLookAndFeel.java:
375         Add entry for TextPaneUI, change Tree icons to pngs.
376         * javax/swing/plaf/basic/BasicMenuItemUI.java:
377         (installDefaults): Set text position and alignment.
378         (paintMenuItem): Layout icon with normal compound function.
379         * javax/swing/plaf/basic/BasicTableHeaderUI.java:
380         (getMaximumSize): Delete.
381         (getMinimumSize): Delete.
382         (getPreferredSize): Use column model's total width.
383         * javax/swing/plaf/basic/BasicTextPaneUI.java: New file.
384         * javax/swing/plaf/basic/BasicTextUI.java
385         (modelChanged): Make resilient against nulls.
386         * javax/swing/plaf/basic/BasicTreeUI.java: 
387         Add some simplistic config / painting functions.
388         * javax/swing/plaf/basic/BasicViewportUI.java
389         (paintSimple): Add new non-backingstore paint mode.
390         (paintBackingStore): Split out backing store code.
391         (paint): Switch on painting mode.
392         * javax/swing/text/SimpleAttributeSet.java
393         (SimpleAttributeSet): Resist nulls.
394         * javax/swing/tree/DefaultTreeCellRenderer.java: Implement.
395         * javax/swing/tree/DefaultTreeModel.java: Partially implement.
396
397 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
398
399         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c (setFont):
400         Set pango context's description and language.
401
402 2004-11-30  Mark Wielaard  <mark@klomp.org>
403
404         * java/awt/image/LookupOp.java: Comments and indentation fixes.
405
406 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
407
408         * java/awt/Checkbox.java (AccessibleAWTCheckBox): Implement.
409         (getAccessibleContext): Implement.
410
411 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
412
413         * java/awt/TextComponent.java (AccessibleAWTTextComponent):
414         Implement.
415         (getIndexAtPoint, getCharacterBounds): New methods.
416
417 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
418
419         * java/awt/Button.java (AccessibleAWTButton): Implement.
420
421 2004-11-30  Mark Wielaard  <mark@klomp.org>
422
423         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
424         (filenameFilterCallback): Made static.
425
426 2004-11-30  Michael Koch  <konqueror@gmx.de>
427
428         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
429         (cairoShowGlyphs) Removed.
430
431 2004-11-30  Sven de Marothy <sven@physto.se>
432
433         * gnu/java/awt/color/RgbProfileConverter.java (RgbProfileConverter):
434         Don't invert matrix when reverse CLUT is available.
435         * gnu/java/awt/color/LinearRGBConverter.java: Documentation update.
436         * java/awt/color/ICC_ColorSpace.java: Likewise.
437         * java/awt/color/ICC_Profile.java: Likewise.
438         * java/awt/color/ICC_ProfileGray.java: Likewise.
439         * java/awt/color/ICC_ProfileRGB.java: Likewise.
440
441 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
442
443         * java/awt/MenuItem.java (AccessibleAWTMenuItem): Implement.
444
445 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
446
447         * java/awt/Choice.java (AccessibleAWTChoice): Implement.
448
449 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
450
451         * java/awt/image/BandedSampleModel.java (scanlineStride): Remove
452         field hiding ComponentSampleModel.scanlineStride.
453
454 2004-11-30  Noa Resare  <noa@resare.com>
455
456         * java/awt/geom/GeneralPath.java (currentSegment):
457         Fix typo in transform.transform() invocation.
458
459 2004-11-30  Sven de Marothy <sven@physto.se>
460
461         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
462         (createImage): Created bitmap should be filled with bg color
463
464 2004-11-30  Noa Resare  <noa@resare.com>
465
466         * java/awt/Choice.java (add):
467         Implement correct selection behavior when peer == null.
468         (insert): Likewise.
469         (remove): Likewise.
470
471 2004-11-30  Mark Wielaard  <mark@klomp.org>
472
473         * gnu/java/awt/peer/gtk/GtkChoicePeer.java (GtkChoicePeer):
474         Call select() when Choice has a selected item.
475
476 2004-11-30  Michael Koch  <address@bogus.example.com>
477
478         * jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
479         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c,
480         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c,
481         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c,
482         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,
483         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,
484         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c,
485         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c,
486         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c,
487         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
488         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
489         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
490         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c,
491         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
492         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c,
493         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c,
494         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c,
495         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
496         Fixed method names to start at begin of line. This is desired by GNU
497         coding style guide.
498
499 2004-11-30  Michael Koch  <konqueror@gmx.de>
500
501         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
502         (gtkWidgetSetVisible): Unused. Removed.
503         (connectJObject): Likewise.
504         * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
505         (gtkScrolledWindowSetScrollPosition): Commented out.
506
507 2004-11-30  Mark Wielaard  <mark@klomp.org>
508
509         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c
510         (Java_gnu_java_awt_peer_gtk_GdkTextLayout_setText): Installed and
511         renamed from Java_gnu_java_awt_peer_gtk_GdkGlyphVector_setText.
512
513 2004-11-30  Mark Wielaard  <mark@klomp.org>
514
515         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c
516         (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_setText): Removed.
517         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
518         (init_dpi_conversion_factor): Correct prototype.
519
520 2004-11-30  Sven de Marothy  <sven@physto.se>
521         
522         * java/awt/image/ConvolveOp.java: Added missing
523         copyright notice.
524
525 2004-11-30  Robert Schuster  <theBohemian@gmx.net>
526
527         Fixes bug #10908
528         * gnu/java/beans/IntrospectionIncubator.java:
529         (addMethod): static methods are discarded now, too.
530
531 2004-11-30  Mark Wielaard  <mark@klomp.org>
532
533         * Makefile.am (awt_java_source_files): Add new gnu/java/awt/color
534         java source files.
535         * Makefile.in: Regenerated.
536
537 2004-11-30  Sven de Marothy  <sven@physto.se>
538
539         * gnu/java/awt/color/CieXyzConverter.java,
540         gnu/java/awt/color/GrayScaleConverter.java,
541         gnu/java/awt/color/SrgbConverter.java,
542         gnu/java/awt/color/ClutProfileConverter.java,
543         gnu/java/awt/color/LinearRGBConverter.java,
544         gnu/java/awt/color/TagEntry.java,
545         gnu/java/awt/color/ColorLookUpTable.java,
546         gnu/java/awt/color/ProfileHeader.java,
547         gnu/java/awt/color/ToneReproductionCurve.java,
548         gnu/java/awt/color/ColorSpaceConverter.java,
549         gnu/java/awt/color/PyccConverter.java,
550         gnu/java/awt/color/GrayProfileConverter.java,
551         gnu/java/awt/color/RgbProfileConverter.java:
552         New files.
553         * java/awt/color/ICC_ColorSpace.java,
554         java/awt/color/ICC_Profile.java,
555         java/awt/color/ICC_ProfileGray.java,
556         java/awt/color/ICC_ProfileRGB.java:
557         Implemented (sans PhotoYCC color space).
558
559 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
560
561         * java/awt/image/AffineTransformOp.java (filter):  Implement
562         bilinear interpolation for Rasters.
563
564 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
565
566         * java/awt/image/IndexColorModel.java (IndexColorModel): Actually
567         use the provided colormap.  Throw documented exceptions.  Document
568         exceptions.
569
570 2004-11-30  Paul Jenner  <psj.home@ntlworld.com>
571
572         * java/awt/image/IndexColorModel.java (IndexColorModel): Fix
573         constructor.
574
575 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
576
577         * java/awt/image/AffineTransformOp.java: Add TYPE_BICUBIC.
578
579 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
580
581         * java/awt/image/AffineTransformOp.java (filter): Implement Raster
582         filtering.
583
584 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
585
586         * java/awt/image/ComponentSampleModel.java (getDataElements,
587         setDataElements): Implement SHORT, FLOAT, and INT transfer types.
588
589 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
590
591         * java/awt/Font.java (name): New field.
592         (size): Likewise.
593         (style): Likewise.
594
595 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
596
597         * java/awt/image/Raster.java (createBandedRaster): Implement.
598
599 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
600
601         * java/awt/image/ConvolveOp.java: New class.
602         * Makefile.am: Add ConvolveOp.
603         * Makefile.in: Regenerate.
604
605 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
606
607         * java/awt/image/RescaleOp.java (BandCombineOp, ColorConvertOp,
608         LookupOp, RescaleOp): Fix loop bounds.
609
610 2004-11-30  jlquinn  <jlquinn@optonline.net>
611
612         * Makefile.am: Fix typo in BandCombineOp.
613         * Makefile.in: Regenerate.
614
615 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
616
617         * java/awt/image/BandCombineOp.java: New class.
618         * Makefile.am: Add BandCombineOp.
619         * Makefile.in: Regenerate.
620
621 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
622
623         * java/awt/image/LookupOp.java: New class.
624         * Makefile.am: Add LookupOp.
625         * Makefile.in: Regenerate.
626
627 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
628
629         * java/awt/image/SampleModel.java (createSubsetSampleModel): Add
630         javadocs.
631
632 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
633
634         * java/awt/image/ColorModel.java (cloneColorModel): Fix line
635         wrap.  Use Boolean.valueOf.
636         
637 2004-11-30  Michael Koch  <konqueror@gmx.de>
638
639         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
640         (releasePeerGraphicsResource): Fixed typo in method name.
641         * gnu/java/awt/peer/gtk/GdkFontPeer.java
642         (finalize): Fixed typo in releasePeerGraphicsResource.
643
644 2004-11-30  Michael Koch  <konqueror@gmx.de>
645
646         * java/awt/font/TextAttribute.java
647         (RUN_DIRECTION_LTR): Initialie with static value instead of
648         calculating it.
649         (RUN_DIRECTION_RTL): Likewise.
650         (STRIKETHROUGH_ON): Likewise.
651         (SWAP_COLORS_ON): Likewise.
652
653 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
654
655         * java/awt/image/ColorConvertOp.java: New class.
656         * java/awt/image/ColorModel.java (cloneColorModel): New method.
657         * Makefile.am: Add ColorConvertOp.
658         * Makefile.in: Regenerate.
659
660 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
661
662         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
663         Track Window focus owner on FOCUS_GAINED events.
664
665 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
666
667         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
668         (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
669
670 2004-11-30  Andreas Tobler  <a.tobler@schweiz.ch>
671
672         * jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c
673         (Java_gnu_java_awt_peer_gtk_GThreadNativeMethodRunner_nativeRun):
674         Fix pointer warning.
675
676 2004-11-30  Andreas Tobler  <a.tobler@schweiz.ch>
677
678         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
679         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFilenameFilter):
680         Fix pointer warning.
681
682         * jni/gtk-peer/gtkpeer.h: Introduce widget_union to fix type punned
683         warnings.
684         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
685         (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect): Use widget_union
686         to fix type punned pointer warning.
687         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
688         Likewise.
689
690         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
691         (window_get_new_state): Introduce unions to fix warnings as above.
692         (window_property_changed_cb): Likewise.
693         (window_active_state_change_cb): Mark unused variables unused.
694         (window_focus_state_change_cb): Likewise.
695         (window_focus_in_cb): Likewise.
696         (window_focus_out_cb): Likewise.
697
698         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
699         (Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Convert
700         PangoFontMap correctly with PANGO_FT2FONT_MAP macro.
701
702 2004-11-30  Michael Koch  <konqueror@gmx.de>
703
704         * javax/swing/JMenuBar.java
705         (updateUI): Simplified.
706         * javax/swing/tree/DefaultTreeSelectionModel.java:
707         Reorganized import statements.
708
709 2004-11-30  Michael Koch  <konqueror@gmx.de>
710
711         * java/awt/font/TextAttribute.java,
712         javax/swing/JComponent.java,
713         javax/swing/JInternalFrame.java,
714         javax/swing/table/TableColumn.java,
715         javax/swing/text/StyleConstants.java:
716         Replaced "new Boolean(boolean)" with "Boolean.valueOf(boolean)".
717
718 2004-11-30  Michael Koch  <konqueror@gmx.de>
719
720         * javax/swing/tree/DefaultTreeCellEditor.java,
721         javax/swing/tree/DefaultTreeModel.java,
722         javax/swing/tree/DefaultTreeSelectionModel.java:
723         Jalopied.
724
725 2004-11-30  Michael Koch  <konqueror@gmx.de>
726
727         * javax/swing/tree/DefaultTreeCellEditor.java
728         (EditorContainer.EditorContainer): Fixed arguments.
729         (EditorContainer.EditorContainer): New method.
730         (DefaultTextField.DefaultTextField): Fixed arguments, implemented.
731         (DefaultTextField.getBorder): Implemented.
732         (listenerList): New field.
733         (addCellEditorListener): Implemented.
734         (removeCellEditorListener): Implemented.
735         (getCellEditorListeners): New method.
736         * javax/swing/tree/DefaultTreeModel.java
737         (addTreeModelListener): Fixed javadoc.
738         (removeTreeModelListener): Likewise.
739         (getTreeModelListeners): New method.
740         (fireTreeNodesChanged): Implemented.
741         (fireTreeNodesInserted): Likewise.
742         (fireTreeNodesRemoved): Likewise.
743         (fireTreeStructureChanged): Likewise.
744         (getListeners): Fixed javadoc.
745         * javax/swing/tree/DefaultTreeSelectionModel.java
746         (addTreeSelectionListener): Implemented.
747         (removeTreeSelectionListener): Likewise.
748         (fireValueChanged): Likewise.
749         (getListeners): Likewise.
750         (addPropertyChangeListener): Likewise.
751         (removePropertyChangeListener): Likewise.
752         (getTreeSelectionListeners): New method.
753         (getPropertyChangeListeners): Likewise.
754
755 2004-11-30  Michael Koch  <konqueror@gmx.de>
756
757         * javax/swing/plaf/basic/BasicScrollBarUI.java
758         (maximumThumbSize): Removed static keyword.
759         (minimumThumbSize): Likewise.
760         * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
761         (CloseAction): Made public.
762         (IconifyAction): Likewise.
763         (MaximizeAction): Likewise.
764         (MoveAction): Likewise.
765         (RestoreAction): Likewise.
766         (SizeAction): Likewise.
767         (SystemMenuBar): Likewise.
768         * javax/swing/plaf/basic/BasicSliderUI.java
769         (TrackListener): Likewise.
770         * javax/swing/plaf/basic/BasicSplitPaneUI.java
771         (KeyboardDownRightHandler): Likewise.
772         (KeyboardEndHandler): Likewise.
773         (KeyboardHomeHandler): Likewise.
774         (KeyboardResizeToggleHandler): Likewise.
775         (KeyboardUpLeftHandler): Likewise.
776         (PropertyHandler): Likewise.
777         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
778         (PropertyChangeHandler): Likewise.
779         (TabSelectionHandler): Likewise.
780
781 2004-11-30  Michael Koch  <konqueror@gmx.de>
782
783         * javax/swing/text/JTextComponent.java
784         (getKeymap): Made public.
785
786 2004-11-30  Michael Koch  <konqueror@gmx.de>
787
788         * javax/swing/JEditorPane.java
789         (getStream): Throws IOException.
790         (read): Likewise.
791         * javax/swing/JRootPane.java
792         (createContentPane): Fixed return type.
793         * javax/swing/JSpinner.java
794         (commitEdit): Throws ParseException.
795         * javax/swing/plaf/metal/MetalLookAndFeel.java
796         (serialVersionUID): New field.
797         * javax/swing/table/TableColumn.java
798         (resizedPostingDisableCount): Added @deprecated tag.
799         (disableResizedPosting): Likewise.
800         (enableResizedPosting): Likewise.
801         * javax/swing/text/Document.java
802         (TitleProperty): Fixed value.
803         * javax/swing/tree/TreeCellEditor.java
804         (TreeCellEditor): Extends CellEditor.
805
806 2004-11-30  Michael Koch  <konqueror@gmx.de>
807
808         * javax/swing/JWindow.java
809         javax/swing/SpinnerModel.java
810         javax/swing/Timer.java
811         javax/swing/event/MenuKeyEvent.java
812         javax/swing/plaf/basic/BasicButtonUI.java
813         javax/swing/plaf/basic/BasicIconFactory.java
814         javax/swing/plaf/basic/BasicTabbedPaneUI.java
815         javax/swing/text/AttributeSet.java
816         javax/swing/text/Highlighter.java
817         javax/swing/text/StyleConstants.java
818         javax/swing/tree/TreeCellEditor.java:
819         Removed redundant and reordered modifiers.
820
821 2004-11-30  Michael Koch  <konqueror@gmx.de>
822
823         * javax/swing/plaf/basic/BasicToolTipUI.java:
824         Reformatted copyright header.
825
826 2004-11-30  Michael Koch  <konqueror@gmx.de>
827
828         * javax/swing/AbstractAction.java,
829         javax/swing/AbstractButton.java,
830         javax/swing/AbstractCellEditor.java,
831         javax/swing/AbstractListModel.java,
832         javax/swing/AbstractSpinnerModel.java,
833         javax/swing/ActionMap.java,
834         javax/swing/BorderFactory.java,
835         javax/swing/Box.java,
836         javax/swing/ButtonModel.java,
837         javax/swing/CellEditor.java,
838         javax/swing/CellRendererPane.java,
839         javax/swing/DefaultBoundedRangeModel.java,
840         javax/swing/DefaultButtonModel.java,
841         javax/swing/DefaultCellEditor.java,
842         javax/swing/DefaultDesktopManager.java,
843         javax/swing/DefaultListCellRenderer.java,
844         javax/swing/DefaultListSelectionModel.java,
845         javax/swing/DefaultSingleSelectionModel.java,
846         javax/swing/GrayFilter.java,
847         javax/swing/InputMap.java,
848         javax/swing/JApplet.java,
849         javax/swing/JCheckBoxMenuItem.java,
850         javax/swing/JColorChooser.java,
851         javax/swing/JComboBox.java,
852         javax/swing/JComponent.java,
853         javax/swing/JDesktopPane.java,
854         javax/swing/JDialog.java,
855         javax/swing/JEditorPane.java,
856         javax/swing/JFileChooser.java,
857         javax/swing/JFormattedTextField.java,
858         javax/swing/JFrame.java,
859         javax/swing/JInternalFrame.java,
860         javax/swing/JLabel.java,
861         javax/swing/JLayeredPane.java,
862         javax/swing/JList.java,
863         javax/swing/JMenu.java,
864         javax/swing/JMenuBar.java,
865         javax/swing/JMenuItem.java,
866         javax/swing/JOptionPane.java,
867         javax/swing/JPanel.java,
868         javax/swing/JPasswordField.java,
869         javax/swing/JPopupMenu.java,
870         javax/swing/JRadioButtonMenuItem.java,
871         javax/swing/JRootPane.java,
872         javax/swing/JSpinner.java,
873         javax/swing/JSplitPane.java,
874         javax/swing/JTabbedPane.java,
875         javax/swing/JTable.java,
876         javax/swing/JTextArea.java,
877         javax/swing/JTextPane.java,
878         javax/swing/JToggleButton.java,
879         javax/swing/JToolBar.java,
880         javax/swing/JToolTip.java,
881         javax/swing/JTree.java,
882         javax/swing/JViewport.java,
883         javax/swing/ListModel.java,
884         javax/swing/LookAndFeel.java,
885         javax/swing/MenuSelectionManager.java,
886         javax/swing/ProgressMonitorInputStream.java,
887         javax/swing/RepaintManager.java,
888         javax/swing/RootPaneContainer.java,
889         javax/swing/ScrollPaneLayout.java,
890         javax/swing/SpringLayout.java,
891         javax/swing/SwingUtilities.java,
892         javax/swing/Timer.java,
893         javax/swing/ToolTipManager.java,
894         javax/swing/UIDefaults.java,
895         javax/swing/UIManager.java,
896         javax/swing/border/MatteBorder.java,
897         javax/swing/colorchooser/AbstractColorChooserPanel.java,
898         javax/swing/colorchooser/ColorSelectionModel.java,
899         javax/swing/colorchooser/DefaultColorSelectionModel.java,
900         javax/swing/colorchooser/DefaultHSBChooserPanel.java,
901         javax/swing/colorchooser/DefaultPreviewPanel.java,
902         javax/swing/colorchooser/DefaultRGBChooserPanel.java,
903         javax/swing/colorchooser/DefaultSwatchChooserPanel.java,
904         javax/swing/event/AncestorEvent.java,
905         javax/swing/event/HyperlinkEvent.java,
906         javax/swing/event/InternalFrameEvent.java,
907         javax/swing/event/MenuDragMouseEvent.java,
908         javax/swing/event/TableColumnModelEvent.java,
909         javax/swing/event/TableModelEvent.java,
910         javax/swing/event/TreeExpansionEvent.java,
911         javax/swing/event/TreeModelEvent.java,
912         javax/swing/event/TreeSelectionEvent.java,
913         javax/swing/event/TreeWillExpandListener.java,
914         javax/swing/event/UndoableEditEvent.java,
915         javax/swing/filechooser/FileView.java,
916         javax/swing/plaf/BorderUIResource.java,
917         javax/swing/plaf/ComponentUI.java,
918         javax/swing/plaf/FileChooserUI.java,
919         javax/swing/plaf/IconUIResource.java,
920         javax/swing/plaf/ListUI.java,
921         javax/swing/plaf/PopupMenuUI.java,
922         javax/swing/plaf/SplitPaneUI.java,
923         javax/swing/plaf/TabbedPaneUI.java,
924         javax/swing/plaf/TextUI.java,
925         javax/swing/plaf/TreeUI.java,
926         javax/swing/plaf/basic/BasicArrowButton.java,
927         javax/swing/plaf/basic/BasicBorders.java,
928         javax/swing/plaf/basic/BasicButtonUI.java,
929         javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
930         javax/swing/plaf/basic/BasicColorChooserUI.java,
931         javax/swing/plaf/basic/BasicComboBoxEditor.java,
932         javax/swing/plaf/basic/BasicComboBoxRenderer.java,
933         javax/swing/plaf/basic/BasicComboBoxUI.java,
934         javax/swing/plaf/basic/BasicComboPopup.java,
935         javax/swing/plaf/basic/BasicDesktopIconUI.java,
936         javax/swing/plaf/basic/BasicDesktopPaneUI.java,
937         javax/swing/plaf/basic/BasicIconFactory.java,
938         javax/swing/plaf/basic/BasicInternalFrameTitlePane.java,
939         javax/swing/plaf/basic/BasicInternalFrameUI.java,
940         javax/swing/plaf/basic/BasicListUI.java,
941         javax/swing/plaf/basic/BasicLookAndFeel.java,
942         javax/swing/plaf/basic/BasicMenuBarUI.java,
943         javax/swing/plaf/basic/BasicMenuItemUI.java,
944         javax/swing/plaf/basic/BasicMenuUI.java,
945         javax/swing/plaf/basic/BasicOptionPaneUI.java,
946         javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java,
947         javax/swing/plaf/basic/BasicPopupMenuUI.java,
948         javax/swing/plaf/basic/BasicProgressBarUI.java,
949         javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
950         javax/swing/plaf/basic/BasicRootPaneUI.java,
951         javax/swing/plaf/basic/BasicScrollBarUI.java,
952         javax/swing/plaf/basic/BasicSeparatorUI.java,
953         javax/swing/plaf/basic/BasicSliderUI.java,
954         javax/swing/plaf/basic/BasicSpinnerUI.java,
955         javax/swing/plaf/basic/BasicSplitPaneDivider.java,
956         javax/swing/plaf/basic/BasicSplitPaneUI.java,
957         javax/swing/plaf/basic/BasicTabbedPaneUI.java,
958         javax/swing/plaf/basic/BasicTableHeaderUI.java,
959         javax/swing/plaf/basic/BasicTableUI.java,
960         javax/swing/plaf/basic/BasicTextAreaUI.java,
961         javax/swing/plaf/basic/BasicTextFieldUI.java,
962         javax/swing/plaf/basic/BasicTextUI.java,
963         javax/swing/plaf/basic/BasicToolBarSeparatorUI.java,
964         javax/swing/plaf/basic/BasicToolBarUI.java,
965         javax/swing/plaf/basic/BasicToolTipUI.java,
966         javax/swing/plaf/basic/BasicTreeUI.java,
967         javax/swing/plaf/basic/BasicViewportUI.java,
968         javax/swing/plaf/basic/ComboPopup.java,
969         javax/swing/table/AbstractTableModel.java,
970         javax/swing/table/DefaultTableCellRenderer.java,
971         javax/swing/table/DefaultTableColumnModel.java,
972         javax/swing/table/DefaultTableModel.java,
973         javax/swing/table/JTableHeader.java,
974         javax/swing/table/TableCellEditor.java,
975         javax/swing/table/TableCellRenderer.java,
976         javax/swing/table/TableColumn.java,
977         javax/swing/table/TableColumnModel.java,
978         javax/swing/text/AbstractDocument.java,
979         javax/swing/text/Caret.java,
980         javax/swing/text/DefaultCaret.java,
981         javax/swing/text/DefaultEditorKit.java,
982         javax/swing/text/DefaultHighlighter.java,
983         javax/swing/text/EditorKit.java,
984         javax/swing/text/JTextComponent.java,
985         javax/swing/text/LayeredHighlighter.java,
986         javax/swing/text/PasswordView.java,
987         javax/swing/text/SimpleAttributeSet.java,
988         javax/swing/text/StyleConstants.java,
989         javax/swing/text/StyleContext.java,
990         javax/swing/text/StyledEditorKit.java,
991         javax/swing/text/TextAction.java,
992         javax/swing/text/View.java,
993         javax/swing/tree/AbstractLayoutCache.java,
994         javax/swing/tree/DefaultTreeCellRenderer.java,
995         javax/swing/tree/DefaultTreeModel.java,
996         javax/swing/tree/DefaultTreeSelectionModel.java,
997         javax/swing/tree/FixedHeightLayoutCache.java,
998         javax/swing/tree/TreeCellRenderer.java,
999         javax/swing/tree/TreeSelectionModel.java,
1000         javax/swing/tree/VariableHeightLayoutCache.java,
1001         javax/swing/undo/AbstractUndoableEdit.java,
1002         javax/swing/undo/UndoableEditSupport.java:
1003         Imports cleaned up.
1004
1005 2004-11-30  Michael Koch  <konqueror@gmx.de>
1006
1007         * java/awt/Container.java,
1008         java/awt/Font.java,
1009         java/awt/font/TextLayout.java:
1010         Imports cleaned up.
1011
1012 2004-11-30  Michael Koch  <konqueror@gmx.de>
1013
1014         * javax/swing/AbstractButton.java
1015         (getLabel): Added @deprecated tag.
1016         (setLabel): Likewise.
1017         * javax/swing/FocusManager.java
1018         (disableSwingFocusManager): Likewise.
1019         (isFocusManagerEnabled): Likewise.
1020         * javax/swing/JComponent.java
1021         (isManagingFocus): Added version to @deprecated tag.
1022         (getNextFocusableComponent): Moved @deprecated tag to bottom of
1023         javadoc.
1024         (getConditionForKeyStroke): Likewise.
1025         (getActionForKeyStroke): Likewise.
1026         * javax/swing/JDesktopPane.java
1027         (LIVE_DRAG_MODE): Added @specnote tag.
1028         (OUTLINE_DRAG_MODE): Likewise.
1029         * javax/swing/JInternalFrame.java
1030         (MENU_BAR_PROPERTY): Fixed value.
1031         (getMenuBar): Added @deprecated tag.
1032         (setMenuBar): Likewise.
1033         * javax/swing/JViewport.java
1034         (isBackingStoreEnabled): Likewise.
1035         (setBackingStoreEnabled): Likewise.
1036         * javax/swing/plaf/basic/BasicDesktopPaneUI.java
1037         (closeKey): Likewise.
1038         (maximizeKey): Likewise.
1039         (minimizeKey): Likewise.
1040         (navigateKey): Likewise.
1041         (navigateKey2): Likewise.
1042         * javax/swing/plaf/basic/BasicInternalFrameUI.java
1043         (openMenuKey): Likewise.
1044         * javax/swing/plaf/basic/BasicSplitPaneUI.java
1045         (keyboardDownRightListener): Likewise.
1046         (keyboardEndListener): Likewise.
1047         (keyboardHomeListener): Likewise.
1048         (keyboardResizeToggleListener): Likewise.
1049         (keyboardUpLeftListener): Likewise.
1050         (dividerResizeToggleKey): Likewise.
1051         (downKey): Likewise.
1052         (endKey): Likewise.
1053         (homeKey): Likewise.
1054         (leftKey): Likewise.
1055         (rightKey): Likewise.
1056         (upKey): Likewise.
1057         (createKeyboardUpLeftListener): Likewise.
1058         (createKeyboardDownRightListener): Likewise.
1059         (createKeyboardHomeListener): Likewise.
1060         (createKeyboardEndListener): Likewise.
1061         (createKeyboardResizeToggleListener): Likewise.
1062         (getDividerBorderSize): Likewise.
1063         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1064         (downKey): Likewise.
1065         (leftKey): Likewise.
1066         (rightKey): Likewise.
1067         (upKey): Likewise.
1068
1069 2004-11-30  Andreas Tobler  <a.tobler@schweiz.ch>
1070
1071         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
1072         (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Use the
1073         GTK_TEXT_VIEW macro.
1074
1075         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1076         (connect_awt_hook_cb): Mark unused variable unused.
1077
1078         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c (selection_get):
1079         Do the cast right.
1080
1081         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1082         (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_create): According to
1083         the gtk API gtk_combo_box_new_text actually returns a GtkWidget.
1084         Remove unused var menu.
1085         (selection_changed): Remove unused value.
1086
1087         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1088         (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_setNativeBounds): Fix pointer
1089         warning with using an intermediate variable.
1090
1091         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
1092         (area_updated): Fix unused var warning for BE archs.
1093
1094         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1095         (Java_gnu_java_awt_peer_gtk_GdkGraphics_connectSignals): Remove unused
1096         var.
1097         (realize_cb): Mark unused variable unused.
1098
1099         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
1100         (seek_glyphstring_idx): Fix a C90 warning.
1101
1102         * jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c
1103         (Java_gnu_java_awt_peer_gtk_GThreadNativeMethodRunner_nativeRun):
1104         Mark unused arguments unused.
1105
1106         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
1107         (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_initState),
1108         (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_setGlyphCodes),
1109         (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_glyphCharIndex),
1110         (Java_gnu_java_awt_peer_gtk_GdkGlyphVector_glyphIsHorizontal):
1111         Likewise.
1112
1113         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
1114         (Java_gnu_java_awt_peer_gtk_GdkFontMetrics_getPeerFontMetrics),
1115         (Java_gnu_java_awt_peer_gtk_GdkFontMetrics_getPeerTextMetrics):
1116         Likewise.
1117
1118         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1119         (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFilenameFilter):
1120         Likewise.
1121         (filenameFilterCallback): Remove unused var.
1122         (handle_response): Declare str_fileName and remove last else statement.
1123
1124         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c:
1125         New File.
1126         (nativeGetNumFontsFamilies) New function.
1127         (nativeGetFontFamilies) Likewise.
1128         * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
1129         (getAvailableFontFamilyNames): Implement.
1130         * Makefile.am (gtk_c_source_files): Add GdkGraphicsEnvironment.c.
1131         * Makefile.in: Regenerate.
1132
1133 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
1134
1135         * gnu/java/awt/peer/ClasspathFontPeer.java
1136         (setStandardAttributes(String,Map)): If size attribute doesn't
1137         exist, default to size 12.  Clamp size value to a minimum of 1.
1138
1139 2004-11-30  Jeroen Frijters  <jeroen@frijters.net>
1140
1141         * javax/swing/JDialog.java
1142         (decorated): Likewise.
1143         * javax/swing/JFrame.java
1144         (defaultLookAndFeelDecorated): Likewise.
1145
1146 2004-11-30  Jeroen Frijters  <jeroen@frijters.net>
1147
1148         * javax/swing/plaf/basic/BasicToolBarUI.java
1149         (offset, regular): Made final.
1150         * javax/swing/plaf/basic/BasicScrollBarUI.java
1151         (DECREASE_HIGHLIGHT, INCREASE_HIGHLIGHT, NO_HIGHLIGHT,
1152         POSITIVE_SCROLL, NEGATIVE_SCROLL): Made final.
1153
1154 2004-11-30  Michael Koch  <konqueror@gmx.de>
1155
1156         * gnu/java/awt/BitwiseXORComposite.java,
1157         gnu/java/awt/ClasspathToolkit.java,
1158         gnu/java/awt/image/XBMDecoder.java,
1159         gnu/java/awt/peer/GLightweightPeer.java,
1160         gnu/java/awt/peer/gtk/GdkGlyphVector.java:
1161         Reorganized import statements.
1162
1163 2004-11-30  Jeroen Frijters  <jeroen@frijters.net>
1164
1165         * java/awt/Button.java
1166         (next_button_number): Removed useless initializer.
1167         * java/awt/Frame.java
1168         (next_frame_number): Likewise.
1169         * java/awt/Panel.java
1170         (next_panel_number): Likewise,
1171         * java/awt/Scrollbar.java
1172         (next_scrollbar_number): Likewise.
1173         * java/awt/TextArea.java
1174         (next_text_number): Likewise.
1175
1176 2004-11-30  Michael Koch  <konqueror@gmx.de>
1177
1178         * java/awt/image/ByteLookupTable.java
1179         (ByteLookupTable) :Fixed HTML entities in javadocs.
1180         (lookupPixel): Fix case when dst is null.
1181         * java/awt/image/ShortLookupTable.java
1182         (ShortLookupTable) :Fixed HTML entities in javadocs.
1183         (lookupPixel): Fix case when dst is null.
1184         * java/awt/image/DataBufferByte.java,
1185         java/awt/image/DataBufferDouble.java,
1186         java/awt/image/DataBufferFloat.java,
1187         java/awt/image/DataBufferInt.java,
1188         java/awt/image/DataBufferShort.java,
1189         java/awt/image/DataBufferUShort.java:
1190         Fix initialization of bankData in constructors.
1191
1192 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
1193
1194         * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1195         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1196         (setNativeBounds): Set GtkEventBox, GtkButton and GtkLabel size
1197         requests.
1198         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1199         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1200         (setNativeBounds): Make package private.  Set size request even
1201         if GTK parent is NULL.
1202         * gnu/java/awt/peer/gtk/GtkLabelPeer.java,
1203         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
1204         (setNativeBounds): Set GtkEventBox and GtkLabel size requests.
1205
1206 2004-11-30  Mark Wielaard  <mark@klomp.org>
1207
1208         Workaround for bug #17952.
1209         *  jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1210         (request_frame_extents): Check window->window != NULL.
1211
1212 2004-11-30  Mark Wielaard  <mark@klomp.org>
1213
1214         * jni/gtk-peer/gdkfont.h: Include gtkpeer.h not gtkcairopeer.h.
1215
1216 2004-11-30  Andreas Tobler  <a.tobler@schweiz.ch>
1217
1218         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c: Use
1219         native_text_layout_state_table here.
1220
1221         * jni/gtk-peer/gdkfont.h: Mark native_text_layout_state_table extern.
1222
1223 2004-11-30  Mark Wielaard  <mark@klomp.org>
1224
1225         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
1226         (setChars): Only call pango_itemize() when vec->glyphitems != NULL.
1227         Only call pango_shape() when gi->glyphs->num_glyphs > 0.
1228
1229 2004-11-30  Michael Koch  <konqueror@gmx.de>
1230
1231         * gnu/java/awt/peer/gtk/GtkToolkit.java:
1232         Merged import statements.
1233
1234 2004-11-30  Michael Koch  <konqueror@gmx.de>
1235
1236         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1237         (isBufferedImageGraphics): Simplified.
1238
1239 2004-11-30  Paul Jenner  <psj.home@ntlworld.com>
1240
1241         * javax/swing/JTree.java
1242         (isRootVisible): Fixed typo in method name.
1243         * javax/swing/JScrollBar.java
1244         (setValues): Likewise.
1245         * javax/swing/JScrollPane.java
1246         (createScrollListener): Call JScrollBar.setValues.
1247
1248 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
1249
1250         * gnu/java/awt/peer/gtk/GtkContainerPeer.java (endValidate):
1251         Don't call setParentAndBounds on GtkWindowPeers.
1252
1253         * java/awt/Component.java (static): Don't set default keyboard
1254         focus manager.
1255         * java/awt/KeyboardFocusManager.java
1256         (getCurrentKeyboardFocusManager): If current keyboard focus
1257         manager is null set a default.
1258
1259         * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1260         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1261         (gtkWidgetSetBackground): New method.
1262         (block_expose_events_cb): New function.
1263         (connectSignals): Block the AWT's expose event processing on
1264         button press and release.
1265         (gtkSetLabel): Set text on proper widget.
1266         (gtkWidgetModifyFont): Modify font on proper widget.
1267         (gtkWidgetSetBackground): Set normal, active and prelight
1268         colours.
1269         (gtkWidgetSetForeground): Set forground colour of proper widget.
1270         (gtkActivate): Activate the correct widget.
1271         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (clearRect):
1272         Only clear rectangle if the backing component is not an event
1273         box.
1274         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1275         (beginNativeRepaintID): New variable.
1276         (endNativeRepaintID): Likewise.
1277         (gtkInit): Initialize new fields with method IDs.
1278         * jni/gtk-peer/gtkpeer.h (beginNativeRepaintID): Declare extern.
1279         (endNativeRepaintID): Likewise.
1280
1281 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
1282
1283         * javax/swing/JList.java (init): Revert accidental commit.
1284
1285         * gnu/java/awt/peer/gtk/GdkGraphics.java,
1286         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (GdkGraphics):
1287         Call initComponentGraphics or connectSignals depending on
1288         component's realization status.
1289         (realize_cb): New function.
1290         (initComponentGraphics): New method.
1291         (connectSignals): New method.
1292         (clipRect): Return immediately if component is not realized.
1293         (setClip): Likewise.
1294         (translate): Likewise.
1295         (drawImage variants): Return false immediately if component is
1296         not realized.
1297         * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1298         jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1299         (connectSignals): New method.
1300         (GdkGraphics2D): Call initComponentGraphics2D or connectSignals
1301         depending on component's realization status.  Move other
1302         initialization calls to ...
1303         (initComponentGraphics2D): New method.
1304         (realize_cb): New function.
1305         (cairoSetMatrix): Return immediately if gr is NULL.
1306         (cairoNewPath): Likewise.
1307         (cairoRectangle): Likewise.
1308         (cairoClip): Likewise.
1309         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1310         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1311         (gtkWidgetRepaintArea): Remove method.
1312         (isRealized): New method.
1313         (GtkComponentPeer): Move setParent, connectJObject and setCursor
1314         calls to setParentAndBounds.  Call setParentAndBounds.
1315         (setParentAndBounds): New method.
1316         (setComponentBounds): Return immediately if bounds are all zero.
1317         (repaint): Remove call to gtkWidgetRepaintArea.  Return
1318         immediately if requested paint region is 0x0.
1319         (setCursor): New method.
1320         (gtkWidgetSetParent): Only set widget's parent if its parent is
1321         currently NULL.
1322         (setNativeBounds): Only set widget's bounds if it has a parent.
1323         (connectSignals): Don't call gtk_widget_realize.  Connect
1324         "realize" signal to connect_awt_hook_cb handler.
1325         * gnu/java/awt/peer/gtk/GtkContainerPeer.java (isValidating):
1326         New field.
1327         (beginValidate): Set isValidating true.
1328         (endValidate): Set parents and bounds for children first, then
1329         for this.  Set isValidating false.
1330         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
1331         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1332         (connectJObject): Remove method.
1333         (connectSignals): Don't call gtk_widget_realize.
1334         * gnu/java/awt/peer/gtk/GtkListPeer.java,
1335         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
1336         (connectJObject): Remove method.
1337         (connectSignals): Don't call gtk_widget_realize.
1338         * gnu/java/awt/peer/gtk/GtkPanelPeer.java,
1339         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c
1340         (connectJObject): Remove method.
1341         * gnu/java/awt/peer/gtk/GtkScrollbarPeer.java,
1342         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
1343         (connectJObject): Remove method.
1344         * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1345         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1346         (create): Don't call gtk_widget_realize.
1347         (connectJObject): Remove method.
1348         (connectSignals): Don't call gtk_widget_realize.  Connect
1349         "realize" signal to connect_awt_hook_cb handler.
1350         (nativeSetBounds): Don't attempt to move GDK window if it is
1351         NULL.
1352         * java/awt/Container.java (addImpl): Don't call comp.addNotify
1353         if peer is not null.
1354         (validateTree): Create peers for all children before calling
1355         doLayout.
1356         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1357         (connectSignals): Don't call gtk_widget_realize.
1358         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1359         (connect_awt_hook_cb): New function.
1360         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1361         (initComponentGraphicsID): New variable.
1362         (initComponentGraphics2DID): Likewise.
1363         (setCursorID): Likewise.
1364         (gtkInit): Initialize new fields with method IDs.
1365         * jni/gtk-peer/gtkpeer.h (initComponentGraphicsID): Declare
1366         extern.
1367         (initComponentGraphics2DID): Declare extern.
1368         (setCursorID): Likewise.
1369         (connect_awt_hook_cb): Declare function.
1370
1371 2004-11-30  Michael Koch  <konqueror@gmx.de>
1372
1373         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
1374         gnu/java/awt/peer/gtk/GdkGlyphVector.java,
1375         gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1376         gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java,
1377         gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
1378         gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1379         gnu/java/awt/peer/gtk/GtkClipboard.java,
1380         gnu/java/awt/peer/gtk/GtkDialogPeer.java,
1381         gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
1382         gnu/java/awt/peer/gtk/GtkFontPeer.java,
1383         gnu/java/awt/peer/gtk/GtkListPeer.java,
1384         gnu/java/awt/peer/gtk/GtkMenuItemPeer.java,
1385         gnu/java/awt/peer/gtk/GtkToolkit.java,
1386         gnu/java/awt/peer/gtk/GtkWindowPeer.java:
1387         Import statements reworked.  Some little reformattings.
1388
1389 2004-11-30  Michael Koch  <konqueror@gmx.de>
1390
1391         * java/awt/image/AffineTransformOp.java
1392         (TYPE_BILINEAR): Initialize with 2.
1393         * java/awt/print/Printable.java: Jalopied.
1394         (PAGE_EXISTS): Initialize with 0;
1395         (NO_SUCH_PAGE): Initialized with 1.
1396
1397 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1398
1399         * Makefile.am: Add BufferedImageFilter.java.
1400         * Makefile.in: Regenerate.
1401
1402 2004-11-30  Graydon Hoare  <graydon@redhat.com>
1403
1404         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c 
1405         (install_font_peer): Minor bug fixes to track cairo font semantics.
1406
1407 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1408
1409         * java/awt/image/BufferedImageFilter.java: Implement.
1410
1411 2004-11-30  Graydon Hoare  <graydon@redhat.com>
1412
1413         * Makefile.am
1414         (jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c)
1415         (jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c)
1416         (gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java)
1417         (gnu/java/awt/peer/gtk/GdkClasspathFontPeerMetrics.java): Remove.
1418         (jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c)
1419         (jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c)
1420         (gnu/java/awt/peer/gtk/GdkTextLayout.java)
1421         (gnu/java/awt/peer/gtk/GdkFontPeer.java)
1422         (gnu/java/awt/peer/ClasspathTextLayoutPeer.java): Add
1423         * Makefile.in: Regenerate.
1424         * gnu/awt/xlib/XToolkit.java 
1425         (getClasspathTextLayoutPeer): Add stub.
1426         * gnu/java/awt/ClasspathToolkit.java 
1427         (getClasspathTextLayoutPeer) Add.
1428         * gnu/java/awt/peer/ClasspathFontPeer.java 
1429         (copyStyleToAttrs)
1430         (copySizeToAttrs): Make public.
1431         * gnu/java/awt/peer/ClasspathTextLayoutPeer.java: New file.
1432         * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: Remove.
1433         * gnu/java/awt/peer/gtk/GdkClasspathFontPeerMetrics.java: Remove.
1434         * gnu/java/awt/peer/gtk/GdkFontMetrics.java: Rewrite.
1435         * gnu/java/awt/peer/gtk/GdkFontPeer.java: New file.
1436         * gnu/java/awt/peer/gtk/GdkGlyphVector.java: Adjust type names.
1437         * gnu/java/awt/peer/gtk/GdkGraphics.java 
1438         (getFontPeer): New function.
1439         (drawString): Pass font peer to native side.
1440         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1441         (cairoSetFont)
1442         (cairoShowGlyphs)
1443         (PainterThread): Remove.
1444         (GdkGraphics2D): Set hints during construction.
1445         (shifted)
1446         (walkPath)
1447         (draw)
1448         (setRenderingHint)
1449         (setRenderingHints): Reimplement normalization logic.
1450         (getDefaultHints)
1451         (updateBufferedImage)
1452         (isBufferedImageGraphics)
1453         (updateImagePixels)
1454         (drawImage): Make final.
1455         (drawImage): Always paint synchronously.
1456         (drawString)
1457         (drawGlyphVector): Rewrite.
1458         (releasePeerGraphicResource)
1459         (getPeerTextMetrics)
1460         (getPeerFontMetrics)
1461         (drawGdkGlyphVector)
1462         (drawGdkTextLayout)
1463         (cairoDrawGdkGlyphVector)
1464         (cairoDrawGdkTextLayout)
1465         (cairoDrawString)
1466         (getFontPeer): New functions.
1467         * gnu/java/awt/peer/gtk/GdkTextLayout.java: New file.
1468         * gnu/java/awt/peer/gtk/GtkComponentPeer.java 
1469         (getFontMetrics): Get metrics via toolkit, to hit cache.
1470         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Use getFontMetrics.
1471         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1472         * gnu/java/awt/peer/gtk/GtkToolkit.java (LRUCache): New class.
1473         (fontCache)
1474         (metricsCache)
1475         (imageCache): New members.
1476         (getFontMetrics)
1477         (getImage)
1478         (getClasspathFontPeer): Use caches.
1479         (getFontPeer): Route through getClasspathFontPeer.
1480         * java/awt/Font.java (attrsToMap): Remove, adjust ctors.
1481         * java/awt/font/TextLayout.java: Implement in terms of peer.
1482         * javax/swing/plaf/basic/BasicSliderUI.java 
1483         (paintThumb): Use polyline rather than polygon.
1484         * javax/swing/plaf/basic/BasicGraphicsUtils.java: 
1485         Update comment but, alas, still do not switch to using TextLayouts.
1486         * javax/swing/text/Utilities.java (drawTabbedText):
1487         Draw text run-at-a-time, not char-at-a-time.
1488         * jni/gtk-peer/gdkfont.h: Publicize some of the font interface, add
1489         layout table.
1490         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
1491         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
1492         Remove files.
1493         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Rewrite to
1494         incorporate brains of old GdkClasspathFontPeerMetrics.
1495         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c: Rewrite to
1496         incorporate brains of old GdkClasspathFontPeer.
1497         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c: New file.
1498         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1499         (drawString): Rewrite to use persistent layout in peer font.
1500         Comment out extraneous gdk_flush calls.
1501         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1502         (metrics_cairo)
1503         (metrics_surface): New static variables.
1504         (paint_glyph_run)
1505         (install_font_peer): New helper functions.
1506         (releasePeerGraphicResource)
1507         (getPeerTextMetrics)
1508         (getPeerFontMetrics)
1509         (cairoDrawGdkTextLayout)
1510         (cairoDrawGdkGlyphVector): New native methods.
1511         (cairoDrawString): Rewrite, leaving layout-based version 
1512         commented out for the time being.
1513         * jni/gtk-peer/gtkpeer.h (graphics): Add fields for pango stuff.
1514
1515 2004-11-30  David Gilbert  <david.gilbert@object-refinery.com>
1516
1517         * java/awt/geom/AffineTransform.java:
1518         Fixed javadocs overall.
1519
1520 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1521
1522         * java/awt/image/ComponentColorModel.java: Remove FIXME comment since
1523         it's correct.
1524
1525 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1526
1527         * java/awt/image/IndexColorModel.java: Fix use of immutable
1528         BigIntegers.
1529
1530 2004-11-30  Tom Tromey  <tromey@redhat.com>
1531
1532         * javax/swing/plaf/basic/BasicOptionPaneUI.java (MessageIcon):
1533         Renamed from 'messageIcon'.
1534         (errorIcon, infoIcon, warningIcon, questionIcon): Updated.
1535
1536 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1537
1538         * java/awt/image/RescaleOp.java: Fix formatting.
1539
1540 2004-11-30   Olga Rodimina  <rodimina@redhat.com>
1541
1542         * javax/swing/plaf/basic/BasicComboPopup.java
1543         (SCROLL_DOWN): made final.
1544         (SCROLL_UP): made final.
1545
1546 2004-11-30   Olga Rodimina  <rodimina@redhat.com>
1547
1548         * javax/swing/plaf/basic/BasicComboPopup.java:
1549         Added javadocs for undocumented fields.
1550         (show): scroll down to the selected item and 
1551         highlight selected item.
1552         (startAutoScrolling): Implemented.
1553         (stopAutoScrolling): Implemented.
1554         (autoScrollUp): Implemented.
1555         (autoScrollDown): Implemented.
1556         (InvocationMouseHandler.mouseReleased): Implemented.
1557         (InvocationMouseMotionHandler.mouseDragged): Implemented.
1558
1559 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1560
1561         * java/awt/image/RescaleOp.java: Implement.
1562
1563 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1564
1565         * java/awt/image/IndexColorModel.java (getRGBs,
1566         convertToIntDiscrete): Implement.
1567
1568 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1569
1570         * java/awt/image/IndexColorModel.java: Add class docs.
1571
1572 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1573
1574         * java/awt/image/IndexColorModel.java (isValid, getValidPixels):
1575         Implement.
1576
1577 2004-11-30  Michael Koch  <konqueror@gmx.de>
1578
1579         * java/awt/MenuBar.java,
1580         java/awt/peer/MenuBarPeer.java:
1581         Revert accidentally commited changes.
1582
1583 2004-11-30  Michael Koch  <konqueror@gmx.de>
1584
1585         * java/awt/AWTKeyStroke.java,
1586         java/awt/Canvas.java,
1587         java/awt/CardLayout.java,
1588         java/awt/CheckboxMenuItem.java,
1589         java/awt/Component.java,
1590         java/awt/Container.java,
1591         java/awt/DefaultKeyboardFocusManager.java,
1592         java/awt/EventDispatchThread.java,
1593         java/awt/FileDialog.java,
1594         java/awt/FlowLayout.java,
1595         java/awt/Font.java,
1596         java/awt/Frame.java,
1597         java/awt/Graphics2D.java,
1598         java/awt/GraphicsEnvironment.java,
1599         java/awt/GridBagConstraints.java,
1600         java/awt/GridBagLayout.java,
1601         java/awt/GridLayout.java,
1602         java/awt/Image.java,
1603         java/awt/KeyboardFocusManager.java,
1604         java/awt/Label.java,
1605         java/awt/List.java,
1606         java/awt/MediaTracker.java,
1607         java/awt/Menu.java,
1608         java/awt/MenuBar.java,
1609         java/awt/MenuComponent.java,
1610         java/awt/Panel.java,
1611         java/awt/PopupMenu.java,
1612         java/awt/ScrollPane.java,
1613         java/awt/Scrollbar.java,
1614         java/awt/SystemColor.java,
1615         java/awt/TextArea.java,
1616         java/awt/TextField.java,
1617         java/awt/Toolkit.java,
1618         java/awt/Window.java,
1619         java/awt/color/ICC_Profile.java,
1620         java/awt/datatransfer/DataFlavor.java,
1621         java/awt/datatransfer/StringSelection.java,
1622         java/awt/datatransfer/SystemFlavorMap.java,
1623         java/awt/dnd/Autoscroll.java,
1624         java/awt/dnd/DropTarget.java,
1625         java/awt/dnd/DropTargetContext.java,
1626         java/awt/dnd/DropTargetDragEvent.java,
1627         java/awt/dnd/peer/DropTargetContextPeer.java,
1628         java/awt/event/AdjustmentEvent.java,
1629         java/awt/event/InputEvent.java,
1630         java/awt/event/InvocationEvent.java,
1631         java/awt/event/KeyEvent.java,
1632         java/awt/event/MouseEvent.java,
1633         java/awt/font/TextLayout.java,
1634         java/awt/geom/GeneralPath.java,
1635         java/awt/geom/Point2D.java,
1636         java/awt/im/InputContext.java,
1637         java/awt/im/spi/InputMethodContext.java,
1638         java/awt/image/AffineTransformOp.java,
1639         java/awt/image/BufferedImage.java,
1640         java/awt/image/ColorModel.java,
1641         java/awt/image/ComponentColorModel.java,
1642         java/awt/image/CropImageFilter.java,
1643         java/awt/image/DirectColorModel.java,
1644         java/awt/image/MemoryImageSource.java,
1645         java/awt/image/PackedColorModel.java,
1646         java/awt/image/PixelGrabber.java,
1647         java/awt/image/RasterOp.java,
1648         java/awt/peer/MenuBarPeer.java:
1649         Some fixes for checkstyle. Import statement and modifier order
1650         redordering.
1651
1652 2004-11-30  Michael Koch  <konqueror@gmx.de>
1653
1654         * javax/swing/JTable.java
1655         (setModel): Reimplemented.
1656
1657 2004-11-30  Michael Koch  <konqueror@gmx.de>
1658
1659         * javax/swing/JTextArea.java
1660         (append): Re-implemented.
1661         (insert): Likewise.
1662
1663 2004-11-30  Michael Koch  <konqueror@gmx.de>
1664
1665         * javax/swing/JSpinner.java
1666         (serialVersionUID): New static field.
1667         * javax/swing/JToggleButton.java
1668         (JToggleButton): Fixed email addresses.
1669         * javax/swing/SpinnerNumberModel.java
1670         (serialVersionUID): Added javadoc.
1671
1672 2004-11-30  Michael Koch  <konqueror@gmx.de>
1673
1674         * javax/swing/JTextArea.java:
1675         Don't use JTextComponent.doc directly. GCJ from java-gui-branch has a
1676         bug here which is fixed in HEAD ...
1677
1678 2004-11-30  Andrew John Hughes  <address@hidden>
1679
1680         * javax/swing/JTextArea.java: Added additional
1681         documentation.
1682
1683 2004-11-30  Andrew John Hughes  <address@hidden>
1684
1685         * javax/swing/JRadioButton.java:
1686         Implemented additional constructors and accessibility
1687         classes.  Added documentation and fixed a typo in
1688         AbstractButton.
1689
1690 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1691
1692         * java/awt/image/IndexColorModel.java (IndexColorModel): Implement
1693         missing constructor.
1694
1695 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1696
1697         * java/awt/image/ComponentColorModel.java (ComponentColorModel):
1698         Implement missing 1.4 constructor.
1699
1700 2004-11-30  Andrew John Hughes  <address@hidden>
1701
1702         * javax/swing/JToggleButton.java:
1703         Implemented additional constructors and accessibility
1704         classes.  Added documentation and fixed a typo in
1705         AbstractButton.
1706
1707 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1708
1709         * java/awt/image/ColorModel.java (getDataElement,
1710         getDataElements): Document since 1.4.
1711
1712 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1713
1714         * java/awt/image/BandedSampleModel.java: Implement.
1715         * Makefile.am: Add java/awt/image/BandedSampleModel.java.
1716         * Makefile.in: Regenerated.
1717         
1718 2004-11-30  Michael Koch  <konqueror@gmx.de>
1719
1720         * java/awt/Window.java: Fixed whitespace difference with GNU
1721         classpath.
1722
1723 2004-11-30  Mark Wielaard  <mark@klomp.org>
1724
1725         * Makefile.am: Add javax/swing/SpinnerListModel.java.
1726         * Makefile.in: Regenerated.
1727
1728 2004-11-30  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1729
1730         * javax/swing/SpinnerListModel.java, javax/swing/SpinnerModel.java
1731         Implemented SpinnerListModel.  Added documentation to
1732         SpinnerModel.
1733
1734 2004-11-30  Andreas Tobler  <a.tobler@schweiz.ch>
1735
1736         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c 
1737         (init_dpi_conversion_factor): Apply the patch from main correctly.
1738         2004-06-26  Andreas Tobler  <a.tobler@schweiz.ch>
1739
1740 2004-11-30  Tom Tromey  <tromey@redhat.com>
1741
1742         Bug 9948.
1743         * javax/swing/JDesktopPane.java (LIVE_DRAG_MODE): Now final.
1744         (OUTLINE_DRAG_MODE): LIVE_DRAG_MODE.
1745         * javax/swing/plaf/basic/BasicSplitPaneUI.java
1746         (NON_CONTINUOUS_DIVIDER): Now final.  Initialize.
1747
1748 2004-11-30  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1749
1750         * java/awt/Canvas.java
1751         (AccessibleAWTCanvas): added serialization UID
1752         * java/awt/Label.java
1753         (AccessibleAWTLabel): added serialization UID
1754         * javax/swing/JRootPane.java
1755         (AccessibleJRootPane): added comment to existing UID
1756         * javax/swing/JSpinner.java
1757         (DefaultEditor): added serialization UID
1758         (NumberEditor): added serialization UID
1759         * javax/swing/text/html/HTML.java
1760         (UnknownTag): added serialization UID
1761         
1762 2004-11-30  Jeroen Frijters  <jeroen@frijters.net>
1763
1764         * javax/swing/JInternalFrame.java
1765         (CONTENT_PANE_PROPERTY,FRAME_ICON_PROPERTY,GLASS_PANE_PROPERTY,
1766         IS_CLOSED_PROPERTY,IS_ICON_PROPERTY,IS_MAXIMUM_PROPERTY,
1767         IS_SELECTED_PROPERTY,LAYERED_PANE_PROPERTY,MENU_BAR_PROPERTY,
1768         ROOT_PANE_PROPERTY,TITLE_PROPERTY): Made final as per API spec.
1769         * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
1770         (CLOSE_CMD,ICONIFY_CMD,MAXIMIZE_CMD,MOVE_CMD,RESTORE_CMD,SIZE_CMD):
1771         Made final as per API spec.
1772
1773 2004-11-30  Andreas Tobler  <a.tobler@schweiz.ch>
1774
1775         * jni/gtk-peer/gtkpeer.h: Remove duplicated copyright string.
1776
1777 2004-11-30  Sven de Marothy  <sven@physto.se>
1778
1779         * java/awt/geom/Arc2D.java: Reformatted.
1780         (setArc): Correct documentation to say 'upper left corner'.
1781         (setArcByTangent,contains,intersects): Implemented.
1782         (containsAngle): Corrected to handle negative extents.
1783         (ArcIterator): Set to private.
1784         (ArcIterator): Corrected for CHORD-type arcs, negative extents.
1785         (intersects): Fix: Now checks the arc segment.
1786         (contains): Cleaned up.
1787         * java/awt/geom/CubicCurve2a.javaD: Fix insideness-test. Reindent.
1788         (contains): Implemented.
1789         (intersects): Implemented.
1790         * java/awt/geom/QuadCurve2D.java: Fix insideness-test. Reindent.
1791         * java/awt/geom/GeneralPath: Fix insideness-test. Reindent and
1792         document.  Fully (re)implemented using separate xpoints and ypoints
1793         float[] coords.
1794
1795 2004-11-30  Andreas Tobler  <a.tobler@schweiz.ch>
1796
1797         * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
1798         * configure: Regenerate.
1799         * include/config.h.in: Likewise.
1800         * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
1801         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
1802         macro to gtkpeer.h.
1803         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1804         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
1805         pixels from  0xBBGGRRAA to 0xAARRGGBB only on Little Endian
1806         architectures.
1807         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
1808         Likewise.
1809
1810 2004-11-30  David Gilbert  <david.gilbert@object-refinery.com>
1811
1812         * java/awt/SystemColor.java: Fix @link doc entries.
1813
1814 2004-11-30  David Gilbert  <david.gilbert@object-refinery.com>
1815
1816         * java/awt/RenderingHints.java: Documented.
1817         (RenderingHints): Accept null init Map.
1818         (putAll): Preprocess map to generate appropriate exceptions.
1819         (remove): Cast object to Key and remove from hintMap.
1820
1821 2004-11-30  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1822
1823         * java/awt/MenuComponent.java, java/awt/MenuBar.java:
1824         Implementation of accessibility classes and methods
1825         for these two components.
1826
1827 2004-11-30  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1828
1829         * java/awt/KeyboardFocusManager.java:
1830         Added missing documentation.
1831
1832 2004-11-30  Andrew John Hughes <gnu_andrew@member.fsf.org>
1833
1834         * java/awt/Label.java, java/awt/Canvas.java:
1835         Added accessibility classes to AWT Label and Canvas,
1836         as well as additional documentation for Canvas.
1837
1838 2004-11-30  David Gilbert  <address@bogus.example.com>
1839
1840         * java/awt/image/DataBuffer.java: Update API documentation.
1841         * java/awt/image/DataBufferByte.java: Likewise.
1842         * java/awt/image/DataBufferDouble.java: Likewise.
1843         * java/awt/image/DataBufferFloat.java: Likewise.
1844         * java/awt/image/DataBufferInt.java: Likewise.
1845         * java/awt/image/DataBufferShort.java: Likewise.
1846         * java/awt/image/DataBufferUShort.java: Likewise.
1847
1848 2004-11-30  Dalibor Topic  <robilad@kaffe.org>
1849
1850         * java/awt/Component.java (postEvent):
1851         Only delegate to parent if a parent exists.
1852         Reported by: Stephane Meslin-Weber <steph@tangency.co.uk>
1853
1854 2004-11-30  Sven de Marothy  <sven@physto.se>
1855
1856         *java/awt/AWTEventMulticaster.java,
1857         java/awt/Adjustable.java,
1858         java/awt/Point.java,
1859         java/awt/Polygon.java,
1860         java/awt/Rectangle.java,
1861         java/awt/Shape.java,
1862         java/awt/geom/Area.java,
1863         java/awt/geom/Ellipse2D.java,
1864         java/awt/geom/PathIterator.java,
1865         java/awt/geom/Point2D.java,
1866         java/awt/geom/Rectangle2D.java,
1867         java/lang/Comparable.java,
1868         java/util/Arrays.java:
1869         Fixed documentation errors
1870
1871 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1872
1873         * java/awt/image/ComponentSampleModel.java: Add documentation.
1874
1875
1876 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1877
1878         * java/awt/image/ComponentSampleModel.java (constructor):
1879         Initialize numBanks when figuring out the max bank index.
1880
1881 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1882
1883         * java/awt/image/Raster.java (createPackedRaster): Implement
1884         MultiPixelPackedSampleModel codepath.
1885
1886 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1887
1888         * java/awt/image/MultiPixelPackedSampleModel.java: Implement.
1889         * Makefile.am: Add MultiPixelPackedSampleModel.java.
1890         * Makefile.in: Regenerate.
1891
1892 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1893
1894         * java/awt/image/Raster.java (getNumBands): Implement.
1895
1896 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1897
1898         * java/awt/image/Raster.java
1899         (createPackedRaster(int,int,int,int,int,Point)): Implement for
1900         bands>1.
1901
1902 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1903
1904         * java/awt/image/SinglePixelPackedSampleModel.java
1905         (SinglePixelPackedSampleModel): Throw exception for unsupported
1906         datatype.
1907
1908 2004-11-30  Jerry Quinn  <jlquinn@optonline.net>
1909
1910         * java/awt/image/ColorModel.java (getDataElement): Implemented.
1911         Update javadoc.
1912         (getDataElements): Add missing version.  Remove bogus version.
1913         Update javadoc.
1914
1915 2004-11-30  Olga Rodimina  <rodimina@redhat.com>
1916
1917         * javax/swing/plaf/basic/BasicComboBoxUI.java:
1918         (paintCurrentValue): Pass correct parameters to 
1919         getListCellRendererComponent().
1920         (ListDataHandler.intervalRemoved): Implemented. 
1921         (PropertyChangeHandler.propertyChange): Handle changes in
1922         MODEL_CHANGED_PROPERTY of the JComboBox
1923         * javax/swing/plaf/basic/BasicComboPopup.java:
1924         (BasicComboPopup): Moved code that configures popup to 
1925         configurePopup() and call it instead. 
1926         (firePopupMenuWillBecomeVisible): Implemented.
1927         (firePopupMenuWillBecomeInvisible): Likewise.
1928         (firePopupMenuCanceled): Likewise.
1929         (configureList): Set list's visibleRowCount same as 
1930         comboBox's visibleRowCount.
1931         (configurePopup): Implemented.
1932         (getPopupHeightForRowCount): Get item's from JComboBox's model and 
1933         not from model of the JList.
1934         (ListMouseMotionHandler.mouseMoved): Implemented.
1935         (PropertyChangeHandler.propertyChange): Handles change in the
1936         JComboBox's model.
1937
1938 2004-11-30  Michael Koch  <konqueror@gmx.de>
1939
1940         * javax/swing/JComponent.java
1941         (isMaximumSizeSet): New method.
1942         (isMinimumSizeSet): Likewise.
1943         (isPreferredSizeSet): Likewise.
1944
1945 2004-11-30  Michael Koch  <konqueror@gmx.de>
1946
1947         * javax/swing/JSpinner.java:
1948         Some Re-formatting.
1949         (spinner): New field.
1950         (DefaultEditor): New method.
1951         (getSpinner): Likewise.
1952         (NumberEdito): Likewise.
1953         (getModel): Likewise
1954
1955 2004-11-30  Michael Koch  <konqueror@gmx.de>
1956
1957         * javax/swing/InputVerifier.java:
1958         Re-formatted.
1959         * javax/swing/JComponent.java
1960         (inputVerifier): New property field.
1961         (getInputVerifier): New method.
1962         (setInputVerifier): Likewise.
1963
1964 2004-11-30  Michael Koch  <konqueror@gmx.de>
1965
1966         * javax/swing/JComponent.java
1967         (JComponent): Added javadoc comment.
1968         (setBorder): Fire property change eventr.
1969         (setEnabled): Likewise.
1970         (setMaximumSize): Likewise.
1971         (setMinimumSize): Likewise.
1972         (setPreferredSize): Likewise.
1973         (setOpaque): Likewise.
1974
1975 2004-11-30  Michael Koch  <konqueror@gmx.de>
1976
1977         * javax/swing/JTextField.java
1978         (action): New field.
1979         (actionCommand): Likewise.
1980         (actionPropertyChangeListener): Likewise.
1981         (setHorizontalAlignment): Abort soon if new value == old value. Fire
1982         event before repainting.
1983         (postActionEvent): New method.
1984         (getAction): Likewise.
1985         (setAction): Likewise.
1986         (getActionCommand): Likewise.
1987         (setActionCommand): Likewise.
1988         (createActionPropertyChangeListener): Likewise.
1989         (configurePropertiesFromAction): Likewise.
1990
1991 2004-11-30  Michael Koch  <konqueror@gmx.de>
1992
1993         * javax/swing/DebugGraphics.java:
1994         Re-formatted. Fixed some javadocs.
1995         * javax/swing/JApplet.java
1996         (rootPaneCheckingEnabled): Renamed from checking.
1997         * javax/swing/JCheckBox.java
1998         (BORDER_PAINTED_FLAT_CHANGED_PROPERTY): New statif field.
1999         * javax/swing/JFrame.java:
2000         Re-formatted a bit and reordered some methods.
2001         (rootPaneCheckingEnabled): Renamed from checking.
2002         (getPreferredSize): Simplified.
2003         * javax/swing/JTextArea.java
2004         (getColumnWidth): New method.
2005         (getLineCount): Likewise.
2006         (getLineStartOffset): Likewise.
2007         (getLineEndOffset): Likewise.
2008         (getLineOfOffset): Likewise.
2009         (getRowHeight): Likewise.
2010         (insert): Likewise.
2011         (replaceRange): Likewise.
2012         * javax/swing/JTextField.java
2013         (scrollOffset): new field.
2014         (getScrollOffset): New method.
2015         (setScrollOffset): Likewise.
2016         (getColumnWidth): Likewise.
2017         * javax/swing/JTree.java
2018         (ANCHOR_SELECTION_PATH_PROPERTY): New static field.
2019         (CELL_EDITOR_PROPERTY): Likewise.
2020         (CELL_RENDERER_PROPERTY): Likewise.
2021         (EDITABLE_PROPERTY): Likewise.
2022         (EXPANDS_SELECTED_PATHS_PROPERTY): Likewise.
2023         (INVOKES_STOP_CELL_EDITING_PROPERTY): Likewise.
2024         (LARGE_MODEL_PROPERTY): Likewise.
2025         (LEAD_SELECTION_PATH_PROPERTY): Likewise.
2026         (ROOT_VISIBLE_PROPERTY): Likewise.
2027         (ROW_HEIGHT_PROPERTY): Likewise.
2028         (SCROLLS_ON_EXPAND_PROPERTY): Likewise.
2029         (SELECTION_MODEL_PROPERTY): Likewise.
2030         (SHOWS_ROOT_HANDLES_PROPERTY): Likewise.
2031         (TOGGLE_CLICK_COUNT_PROPERTY): Likewise.
2032         (TREE_MODEL_PROPERTY): Likewise.
2033         (VISIBLE_ROW_COUNT_PROPERTY): Likewise.
2034         (cellEditor): New field.
2035         (invokesStopCellEditing): Likewise.
2036         (largeModel): Likewise.
2037         (rowHeight): Likewise.
2038         (scrollsOnExpand): Likewise.
2039         (selectionModel): Likewise.
2040         (toggleClickCount): Likewise.
2041         (visibleRowCount): Likewise.
2042         (setShowsRootHandles): Fixed typo in method name.
2043         (getCellEditor): New method.
2044         (setCellEditor): Likewise.
2045         (getSelectionModel): Likewise.
2046         (setSelectionModel): Likewise.
2047         (getVisibleRowCount): Likewise.
2048         (setVisibleRowCount): Likewise.
2049         (isLargeModel): Likewise.
2050         (setLargeModel): Likewise.
2051         (getRowHeight): Likewise.
2052         (setRowHeight): Likewise.
2053         (getInvokesStopCellEditing): Likewise.
2054         (setInvokesStopCellEditing): Likewise.
2055         (getToggleClickCount): Likewise.
2056         (setToggleClickCount): Likewise.
2057         (getScrollsOnExpand): Likewise.
2058         (setScrollsOnExpand): Likewise.
2059         * javax/swing/table/DefaultTableColumnModel.java
2060         (addColumnModelListener): Fixed javadoc.
2061         (removeColumnModelListener): Implemented. Fixed javadoc.
2062         (getColumnModelListeners): New method.
2063         * javax/swing/table/JTableHeader.java
2064         (columnModel): Made protected.
2065         (draggedColumn): Likewise.
2066         (draggedDistance): Likewise.
2067         (reorderingAllowed): Likewise.
2068         (resizingAllowed): Likewise.
2069         (resizingColumn): Likewise.
2070         (table): Likewise.
2071         (updateTableInRealTime): Likewise.
2072         (createDefaultColumnModel): Renamed from
2073         createDefaultTableColumnModel.
2074         (setDefaultRenderer): New method.
2075         * javax/swing/table/TableColumn.java
2076         (getPropertyChangeListeners): New method.
2077         * javax/swing/text/DefaultHighlighter.java
2078         (drawsLayeredHighlights): New field.
2079         (getDrawsLayeredHighlights): New method.
2080         (setDrawsLayeredHighlights): Likewise.
2081         * javax/swing/text/DocumentFilter.java
2082         (FilterBypass): New inner class.
2083         (insertString): New method.
2084         (remove): Likewise.
2085         (replace): Likewise.
2086         * javax/swing/text/JTextComponent.java
2087         (dragEnabled): New field.
2088         (getSelectedText): New method.
2089         (getDragEnabled): Likewise.
2090         (setDragEnabled): Likewise.
2091         (replaceSelection): Reimplemented.
2092         * javax/swing/text/NavigationFilter.java
2093         (FilterBypass): New inner class.
2094         (NavigationFilter): New method.
2095         (moveDot): Likewise.
2096         (setDot): Likewise.
2097         * javax/swing/text/SimpleAttributeSet.java
2098         (EMPTY): Made public final.
2099
2100 2004-11-30  Michael Koch  <konqueror@gmx.de>
2101
2102         * javax/swing/SpinnerNumberModel.java
2103         (getMinimum): New method.
2104         (setMinimum): Likewise.
2105         (getMaximum): Likewise.
2106         (setMaximum): Likewise.
2107         (getStepSize): Likewise.
2108         (setStepSize): Likewise.
2109
2110 2004-11-30  Michael Koch  <konqueror@gmx.de>
2111
2112         * javax/swing/JMenu.java
2113         (getMenuListeners): New method.
2114         (fireMenuSelected): Simplified.
2115         * javax/swing/JRootPane.java
2116         (NONE): New static field.
2117         (FRAME): Likewise.
2118         (PLAIN_DIALOG): Likewise.
2119         (INFORMATION_DIALOG): Likewise.
2120         (ERROR_DIALOG): Likewise.
2121         (COLOR_CHOOSER_DIALOG): Likewise.
2122         (FILE_CHOOSER_DIALOG): Likewise.
2123         (QUESTION_DIALOG): Likewise.
2124         (WARNING_DIALOG): Likewise.
2125         (defaultButton): New field.
2126         (getDefaultButton): New method.
2127         (setDefaultButton): Likewise.
2128         * javax/swing/JScrollPane.java
2129         (getUI): New method.
2130         (setUI): Likewise.
2131         * javax/swing/JTable.java
2132         (getUI): Javadoc added.
2133         (setUI): New method.
2134         * javax/swing/JViewport.java
2135         (getUI): New method.
2136         (setUI): Likewise.
2137         * javax/swing/UIDefaults.java
2138         (removePropertyChangeListener): Made public.
2139
2140 2004-11-30  Michael Koch  <konqueror@gmx.de>
2141
2142         * javax/swing/JApplet.java, javax/swing/JFrame.java:
2143         Re-indented.
2144
2145 2004-11-30  Michael Koch  <konqueror@gmx.de>
2146
2147         * javax/swing/AbstractButton.java:
2148         Little re-formatting.
2149         (changeEvent): Made protected.
2150         (fireStateChanged): Removed argument.
2151         (setHorizontalAlignment): Abort method when old value is equal too new
2152         value.
2153         (setHorizontalTextPosition): Likewise.
2154         (setVerticalAlignment): Likewise.
2155         (setVerticalTextPosition): Likewise.
2156         (setBorderPainted): Likewise.
2157         (setIcon): Likewise.
2158         (setText): Likewise.
2159         (setIconTextGap): Likewise.
2160         (setMargin): Likewise.
2161         (setPressedIcon): Likewise.
2162         (setFocusPainted): Likewise.
2163         (setDisabledSelectedIcon): Likewise.
2164         (setRolloverIcon): Likewise.
2165         (setRolloverSelectedIcon): Likewise.
2166         (setSelectedIcon): Likewise.
2167         (setContentAreaFilled): Likewise.
2168
2169 2004-11-30  Kim Ho  <kho@redhat.com>
2170
2171         * javax/swing/plaf/basic/BasicArrowButton.java:
2172         Jalopy. Reimplement.
2173         * javax/swing/plaf/basic/BasicScrollBarUI.java:
2174         Jalopy.
2175         (arrowIcon, upIcon, downIcon, leftIcon,
2176         rightIcon): Removed.
2177         (createIncreaseButton): Use BasicArrowButton.
2178         (createDecreaseButton): Ditto.
2179         * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2180         (createRightOneTouchButton): Remove button border.
2181         (createLeftOneTouchButton): Ditto.
2182
2183 2004-11-30  Michael Koch  <konqueror@gmx.de>
2184
2185         * javax/swing/JSpinner.java
2186         (setModel): New method.
2187         * javax/swing/SpringLayout.java
2188         (Constraints): May not be final.
2189
2190 2004-11-30  Michael Koch  <konqueror@gmx.de>
2191
2192         * gnu/java/awt/peer/gtk/GtkClipboard.java,
2193         java/awt/datatransfer/Clipboard.java,
2194         java/awt/datatransfer/ClipboardOwner.java:
2195         Reformated to make it use our coding standard.
2196
2197 2004-11-30  Michael Koch  <konqueror@gmx.de>
2198
2199         * javax/swing/SpinnerNumberModel.java
2200         (SpinnerNumberModel): Implements java.io.Serializable.
2201         (serialVersionUID): New field.
2202         (SpinnerNumberModel): Added missing @throws tags to javadocs.
2203         * javax/swing/UIManager.java
2204         (get): New method.
2205         (getBoolean): Likewise.
2206         (getBorder): Likewise.
2207         (getColor): Likewise.
2208         (getDimension): Likewise.
2209         (getFont): Likewise.
2210         (getIcon): Likewise.
2211         (getInsets): Likewise.
2212         (getInt): Likewise.
2213         (getString): Likewise.
2214
2215 2004-11-30  Michael Koch  <konqueror@gmx.de>
2216
2217         * javax/swing/JPasswordField.java:
2218         Reformated. Implemented construtors.
2219         * javax/swing/plaf/basic/BasicPasswordFieldUI.java
2220         (create): New method.
2221         * javax/swing/text/PlainView.java
2222         (selectedColor): Made package-private to allow access from sub-classes
2223         in same package too.
2224         (unselectedColor): Likewise.
2225         (font): Likewise.
2226         (drawSelectedText): Make protected.
2227         (drawUnselectedText): Likewise.
2228         * javax/swing/text/PasswordView.java: New file.
2229         * Makefile.am: Added javax/swing/text/PasswordView.java.
2230         * Makefile.in: Regenerated.
2231
2232 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
2233
2234         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar): Set menu
2235         bar's width.
2236         * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java (nativeSetHelpMenu):
2237         Add FIXME comment.
2238         (addHelpMenu): Elide call to nativeSetHelpMenu.
2239         * java/awt/Menu.java (isTearOff): Rename to tearOff.
2240         (menuSerializedDataVersion): Initialize to 1.
2241         (separatorLabel): Mark transient.
2242         (insert(MenuItem,int)): Implement.
2243         * java/awt/MenuBar.java (setHelpMenu): Call getPeer to retrieve
2244         peer.
2245         (countMenus): Count help menu.
2246         * java/awt/MenuComponent.java (nameExplicitlySet, newEventsOnly,
2247         accessibleContext): Add fields.
2248         * java/awt/MenuItem.java: Remove event mask FIXME.
2249         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
2250         (gtkWidgetModifyFont): Only set font if label is non-NULL.
2251         (setLabel): Don't treat "-" specially.
2252
2253 2004-11-30  Kim Ho  <kho@redhat.com>
2254
2255         * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
2256         (stateChanged): Only update the image and the track if
2257         the values are not being adjusted.
2258         (updateChooser): Grab the new mouse point from the
2259         spinner values. Update the image and track only if 
2260         the values are not being adjusted. 
2261         (getHSBValues): New method.
2262         * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
2263         (SliderHandler::stateChanged): Changed internalChange 
2264         to updateChange. Set sliderChange.
2265         (SpinnerHandler::stateChanged): Ditto. Set spinnerChange.
2266         (spinnerChange): New variable.
2267         (sliderChange): Ditto.
2268         (updateChange): Renamed from internalChange.
2269         (updateChooser): Do not update sliders if the sliders
2270         were the original source of the change. Ditto for spinners.
2271         * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
2272         (mousePress): Don't scroll the JViewport if there will
2273         be extra space at the end of the run. Change layout() to
2274         revalidate().
2275         (calculateSize): Use the component's width/height unless
2276         it is smaller than the max tab width/height.
2277         (calculateTabRects): Subtract the tab run overlay.
2278         (rotateTabRuns): Don't rotate if there's only one run.
2279         (layoutContainer): Reuse the viewport point.
2280         (createLayoutManager): Set the viewport to use no layout.
2281         (paintTabArea): Don't paint the tabs that are not visible
2282         to the JViewport.
2283         (paintContentBorderTopEdge): Check for scroll tab layout before
2284         looking for gap.
2285         (paintContentBorderLeftEdge): Ditto.
2286         (paintContentBorderBottomEdge): Ditto.
2287         (paintContentBorderRightEdge): Ditto.
2288
2289 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
2290
2291         * gnu/java/awt/peer/gtk/GtkButtonPeer.java (gtkWidgetSetFont):
2292         Rename ...
2293         (gtkWidgetModifyFont): New method.
2294         * gnu/java/awt/peer/gtk/GtkFramePeer.java,
2295         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
2296         (setMenuBarWidth): New method.
2297         (setBounds): Set the menu bar width.
2298         (postConfigureEvent): Set the menu bar width if the window's
2299         width has changed.
2300         * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java (GtkMenuBarPeer):
2301         Don't call create.
2302         (setFont): New method.
2303         * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java (create): New
2304         method.
2305         (setFont): Likewise.
2306         (GtkMenuComponentPeer): Call create and setFont.
2307         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java,
2308         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
2309         (connectSignals): Make package private.
2310         (gtkWidgetModifyFont): New method.
2311         (create): Likewise.
2312         (GtkMenuItemPeer): Don't call create.
2313         (setFont): New method.
2314         * java/awt/CheckboxMenuItem.java (addNotify): Fix peer == null
2315         condition.
2316         * java/awt/Container.java (validateTree): Fix comment typos.
2317         * java/awt/MenuComponent.java (getFont): Return parent's font if
2318         our font is null.
2319         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c
2320         (create): Remove call to deprecated
2321         gtk_check_menu_item_set_show_toggle function.
2322
2323 2004-11-30  Hans Boehm <Hans.Boehm@hp.com>
2324
2325         * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
2326         (Almost everywhere): add LOG calls, fix, add comments.
2327         (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
2328         Add explicit check for LOCKED bit in slow case (PR 16662).
2329         (_Jv_MonitorExit): Add casts in debug-only code.
2330         Always release LOCKED bit before throwing exception.
2331         (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
2332         isn't.  Handle easy cases without lock acquisition.
2333         (Object::wait): Use NotifyAll for lock inflation.
2334
2335 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
2336
2337         * gnu/java/awt/peer/gtk/GtkFramePeer.java,
2338         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
2339         (gtkFixedMove): Remove method.
2340
2341 2004-11-30  Sven de Marothy  <sven@physto.se>
2342
2343         * java/awt/geom/Area.java: Implemented.
2344
2345 2004-11-30  Mark Wielaard  <mark@klomp.org>
2346
2347         * java/awt/geom/Arc2D.java (ArcIterator): Make package private.
2348
2349 2004-11-30 Sven de Marothy <sven@physto.se>
2350
2351         * java/awt/geom/Arc2D.java
2352         Reformatted.
2353         (setArc): Correct documentation to say 'upper left corner'.
2354         (setArcByTangent,contains,intersects): Implemented.
2355         (containsAngle): Corrected to handle negative extents.
2356         (ArcIterator): Set to private.
2357         (ArcIterator): Corrected for CHORD-type arcs, negative extents.
2358         * java/awt/geom/Ellipse2D.java
2359         Documented.
2360         (contains,intersects): Implemented.
2361         * java/awt/geom/Line2D.java
2362         (linesIntersect): Correct handling of special cases.
2363
2364 2004-11-30  Mark Wielaard  <mark@klomp.org>
2365
2366         * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Use
2367         Color.BLACK if c == null, don't create new Color object each time.
2368         * gnu/java/awt/peer/gtk/GdkGraphics2D.java (comp): New private
2369         field.
2370         (setColor): Use Color.BLACK when argument null.
2371         (setComposite): Set this.comp field.
2372         (getComposite): Return this.comp, or AlphaComposite.SrcOver when null.
2373         (DrawState.comp): New private field.
2374         (DrawState.save): Save Composite.
2375         (DrawState.restore): Restore comp field.
2376         * java/awt/FontMetrics.java (gRC): New static final private field.
2377         (getLineMetrics(String, Graphics)): New method.
2378         (getLineMetrics(String, int, int, Graphics)): Likewise.
2379         (getLineMetrics(char[], int, int, Graphics)): Likewise.
2380         (getLineMetrics(CharacterIterator, int, int, Graphics)): Likewise.
2381         * javax/swing/JMenu.java (JMenu(String, boolean)): Ignore tearoff
2382         argument. PR SWING/17294.
2383         * javax/swing/plaf/basic/BasicGraphicsUtils.java (): Always use
2384         the fall-back code since none of the TextArea methods are really
2385         implemented now. PR SWING/17296.
2386         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
2387         (GdkGlyphVector_setChars): Replace assert() with if block when
2388         pango_itemize() returns null. PR AWT/17295.
2389         (GdkGlyphVector_allInkExtents): Likewise when vec->glyphitems is null.
2390         
2391 2004-11-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
2392
2393         * Makefile.am (gtk_c_source_files): Add
2394         gnu_java_awt_peer_gtk_GtkFramePeer.c.
2395         * Makefile.in: Regenerate.
2396         * gnu/java/awt/peer/gtk/GdkGraphics.java (getClipBounds): Remove
2397         comment.
2398         * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
2399         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
2400         (create): Pack GtkButton in GtkEventBox.
2401         (connectJObject): Remove.
2402         (focus_in_cb): New function.
2403         (focus_out_cb): Likewise.
2404         (connectSignals): Connect focus-in-event and focus-out-event
2405         signals.
2406         (gtkSetFont): Rename to ...
2407         (gtkWidgetModifyFont): New method.
2408         (gtkWidgetRequestFocus): New method.
2409         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
2410         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
2411         (gtkSetFont): Rename to ...
2412         (gtkWidgetModifyFont): New method.
2413         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2414         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2415         (isInRepaint): New field.
2416         (gtkSetFont): Remove method.
2417         (addExposeFilter): Likewise.
2418         (removeExposeFilter): Likewise.
2419         (gtkWidgetQueueDrawArea): Rename to ...
2420         (gtkWidgetRepaintArea): New method.
2421         (beginNativeRepaint): New method.
2422         (endNativeRepaint): New method.
2423         (setComponentBounds): Move implementation here from
2424         GtkComponentPeer.
2425         (paint): Remove implementation.
2426         (repaint): Wrap call to gtkWidgetRepaintArea with calls to
2427         beginNativeRepaint and endNativeRepaint.
2428         (setBounds): Use menu bar height in bounds calculation.
2429         (postExposeEvent): Only post paint event if we're not doing a
2430         native repaint.
2431         (gtkWidgetSetParent): Replace gtk_layout_put with gtk_fixed_put.
2432         (setNativeBounds): Replace gtk_layout_move with gtk_fixed_move.
2433         (find_gtk_layout): Remove function.
2434         (filter_expose_event_handler): Likewise.
2435         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (postExposeEvent):
2436         Likewise.
2437         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2438         (setComponentBounds): Call GtkComponentPeer's
2439         setComponentBounds.
2440         * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight):
2441         New method.
2442         (moveLayout): Rename to ...
2443         (gtkFixedMove): New method.
2444         (gtkLayoutSetVisible): Rename to ...
2445         (gtkFixedSetVisible): New method.
2446         (setMenuBar): Rearrange, to make the three separate cases
2447         clearer.
2448         (postExposeEvent): Only post paint event if we're not doing a
2449         native repaint.
2450         * gnu/java/awt/peer/gtk/GtkGenericPeer.java,
2451         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c
2452         (gtkWidgetModifyFont): New method.
2453         * gnu/java/awt/peer/gtk/GtkImagePainter.java
2454         (GtkImagePainter(GtkImage,GdkGraphics,int,int,int,int,Color)):
2455         Call run directly, rather than spawning a new thread.
2456         (GtkImagePainter(GtkImage,GdkGraphics,int,int,int,int,int,int,int,int,Color)):
2457         Likewise.
2458         * gnu/java/awt/peer/gtk/GtkLabelPeer.java,
2459         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (gtkSetFont):
2460         Rename to ...
2461         (gtkWidgetModifyFont): New method.
2462         (create): Rename ebox to eventbox.
2463         * gnu/java/awt/peer/gtk/GtkListPeer.java,
2464         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
2465         Rename to ...
2466         (gtkWidgetModifyFont): New method.
2467         * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
2468         (GtkMenuComponentPeer): Set the default font.
2469         * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
2470         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2471         (gtkSetFont): Rename to ...
2472         (gtkWidgetModifyFont): New method.
2473         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2474         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
2475         * java/awt/Component.java (locale): Initialize to default
2476         locale.
2477         * java/awt/Container.java (invalidateTree): Make
2478         package-private.
2479         (paint): Paint self first.
2480         (setMenuBar): Call invalidateTree.
2481         * java/awt/Panel.java (dispatchEventImpl): Remove method.
2482         * java/awt/Window.java (show): Call no-parameter variant of
2483         requestFocusInWindow.
2484         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (initState):
2485         Remove special case for window widget.
2486         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
2487         (grab_current_drawable): Likewise.
2488         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c
2489         (create): Replace GtkLayout with GtkFixed.
2490         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2491         (pre_event_handler): Remove special cases for GDK_EXPOSE events.
2492         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c: New file.
2493         Move all GtkFramePeer native method implementations here from
2494         gnu_java_awt_peer_gtk_GtkWindowPeer.c.
2495         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2496         Replace GtkLayout with GtkFixed.
2497         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2498         (find_layout): Remove function.
2499         (create): Replace GtkLayout with GtkFixed.
2500         (connectSignals): Remove find_layout call.
2501         (toBack): Replace XFlush with gdk_flush.
2502         (toFront): Replace XFlush with gdk_flush.
2503         Move GtkFramePeer native method implementations to
2504         gnu_java_awt_peer_gtk_GtkFramePeer.c.
2505         * jni/gtk-peer/gtkpeer.h: Remove declaration of find_gtk_layout.
2506
2507 2004-11-30  Michael Koch  <konqueror@gmx.de>
2508
2509         * javax/swing/JTextArea.java
2510         (lineWrap): Renamed from "wrapping".
2511         (wrapStyleWord): NEw field.
2512         (getLineWrap): Re-edited javadoc comment.
2513         (setLineWrap): Likewise.
2514         (getWrapStyleWord): New method.
2515         (setWrapStyleWord): Likewise.
2516
2517 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
2518
2519         * configure: Regenerate for libtool change.
2520
2521 2004-11-29  Tom Tromey  <tromey@redhat.com>
2522
2523         * gnu/gcj/tools/gcj_dbtool/Main.java (main): Mention gcj-dbtool.
2524         Recognize --help and --version.
2525         (usage): Mention gcj-dbtool.  Added "out" argument.
2526         (insist): Updated.
2527
2528 2004-11-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2529
2530         * link.cc (link_symbol_table): Do not use intptr_t.
2531
2532 2004-11-28  Mark Wielaard  <mark@klomp.org>
2533
2534         * mauve-libgcj: Disable SpinnerListModel, SwingUtilities and
2535         XMLDecoder tests which currently don't compile.
2536
2537 2004-11-27  Andrew Haley  <aph@redhat.com>
2538
2539         * link.cc (ensure_class_linked): Conditionally compile
2540         _Jv_IsInterpretedClass on INTERPRETER.
2541         (print_class_loaded): Likewise.
2542         (wait_for_state): Likewise.
2543         * include/jvm.h (ROUND): Move to here from include/java-interp.h.
2544         * include/java-interp.h (ROUND): Remove.
2545
2546 2004-11-25  Tom Tromey  <tromey@redhat.com>
2547
2548         * gnu/gcj/util/natDebug.cc (getField): Don't qualify name.
2549         * java/lang/Class.h (_Jv_Linker): Declare.
2550         (Class): Fix names of friends.
2551         (_Jv_getInterfaceMethod): Declare.
2552
2553 2004-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2554
2555         * testsuite/lib/libjava.exp (libjava_arguments): Add new global
2556         variable libjava_ld_library_path.
2557         (gcj_invoke, libjava_invoke): Use it to set ld_library_path.
2558
2559 2004-11-25  Bryce McKinlay  <mckinlay@redhat.com>
2560
2561         * java/util/ResourceBundle.java (BundleKey): Don't implement
2562         Cloneable.
2563         (BundleKey.clone): Removed.
2564         (getBundle): Copy BundleKey using constructor, not clone().
2565
2566 2004-11-25  Kelley Cook  <kcook@gcc.gnu.org>
2567
2568         * configure: Regenerate for libtool reversion.
2569
2570 2004-11-25  Michael Koch  <konqueror@gmx.de>
2571
2572         * Makefile.am: Added most of javax.print again.
2573         * Makefile.in: Regenerated.
2574
2575 2004-11-25  Michael Koch  <konqueror@gmx.de>
2576
2577         * Makefile.am: Added most of javax.print again.
2578         * Makefile.in: Regenerated.
2579
2580 2004-11-24  Tom Tromey  <tromey@redhat.com>
2581
2582         * Merged gcj-abi-2-dev-branch to trunk.
2583
2584 2004-11-16  Tom Tromey  <tromey@redhat.com>
2585
2586         * include/java-interp.h (_Jv_DefineClass): Updated.
2587         * java/lang/natVMClassLoader.cc (defineClass): Pass protection
2588         domain to class reader.
2589         * defineclass.cc (parse): Use print_class_loaded.
2590         Include ProtectionDomain.h.
2591         (_Jv_DefineClass): Added ProtectionDomain argument.
2592         (_Jv_ClassReader): Likewise.
2593         * include/jvm.h (_Jv_Linker::print_class_loaded): Declare.
2594         * link.cc: Include CodeSource.h.
2595         (print_class_loaded): New function.
2596         (wait_for_state): Use it.
2597
2598 2004-11-16  Andrew Haley  <aph@redhat.com>
2599
2600         * gnu/gcj/util/Debug.java (print): Add RawDataManaged.
2601
2602 2004-11-16  Andrew Haley  <aph@redhat.com>
2603
2604         * configure.ac (LIBGCJ_LD_SYMBOLIC): AC_SUBST this definition.
2605         * configure.host: Define libgcj_ld_symbolic for Linux hosts.
2606         * Makefile.am (lib_*_la_LDFLAGS): Add LIBGCJ_LD_SYMBOLIC.
2607         * configure: Regenerate.
2608         * Makefile.in: Regenerate.      
2609
2610 2004-11-15  Andrew Haley  <aph@redhat.com>
2611
2612         * boehm.cc (_Jv_GCRegisterDisappearingLink): Check that *objp is a
2613         gc-allocated object.
2614
2615 2004-11-15  Andrew Haley  <aph@redhat.com>
2616
2617         * java/net/URLClassLoader.java
2618         (URLLoader.getClassPath): New method.
2619         (JarURLLoader.JarURLLoader): Read mainfest to parse "Class-Path"
2620         attribute and add URLs for each entry.
2621         (JarURLLoader.classPath): New field.
2622         (JarURLLoader.getClassPath): New method.
2623         (addURLImpl): Scan through the list of extraUrls in the new
2624         loader, adding them to our urlinfos.
2625         (definePackage, findURLResource, findResources): Use
2626         urlinfos.size(), not urls.size().
2627
2628 2004-11-11  Tom Tromey  <tromey@redhat.com>
2629
2630         * gnu/gcj/runtime/natSharedLibLoader.cc (ensureSupersLinked): New
2631         method.
2632         * gnu/gcj/runtime/SharedLibHelper.java (findClass): Ensure supers
2633         linked.
2634         (ensureSupersLinked): Declare.
2635         * java/lang/natVMClassLoader.cc (loadClass): Ensure supers
2636         linked.
2637
2638 2004-11-10  Tom Tromey  <tromey@redhat.com>
2639
2640         * gij.cc (main): Treat -verbose the same as -verbose:class.
2641         (help): Document -verbose and -verbose:class.
2642
2643         * link.cc (verbose_class_flag): Declare.
2644         (wait_for_state): Print message when handling precompiled class.
2645         * java/lang/natClass.cc (verbose_class_flag): Moved to link.cc.
2646
2647 2004-11-09  Tom Tromey  <tromey@redhat.com>
2648
2649         * testsuite/libjava.lang/assign2.out: New file.
2650         * testsuite/libjava.lang/assign2.java: New file.
2651
2652         * java/lang/natRuntime.cc (insertSystemProperties): Set
2653         java.version to 1.4.2 and java.specification.version to 1.4.  Set
2654         java.runtime.version.
2655
2656 2004-11-08  Tom Tromey  <tromey@redhat.com>
2657
2658         * java/lang/natClass.cc (_Jv_IsAssignableFromSlow): Ensure
2659         supers installed.
2660         * link.cc (verify_type_assertions): Don't link supers.
2661
2662         * include/jvm.h (_Jv_Linker::search_method_in_class): Declare.
2663         * include/java-interp.h (class _Jv_InterpClass)
2664         <_Jv_PrepareMissingMethods>: No longer `friend'.
2665         * java/lang/Class.h (_Jv_SearchMethodInClass): No longer
2666         `friend'.
2667         (_Jv_PrepareMissingMethods, _Jv_PrepareCompiledClass,
2668         _Jv_GetInterfaces, _Jv_GenerateITable, _Jv_FindIIndex,
2669         _Jv_AppendPartialITable, _Jv_LinkSymbolTable,
2670         _Jv_LayoutInterfaceMethods, _Jv_SetVTableEntries, _Jv_MakeVTable,
2671         _Jv_linkExceptionClassTable, _Jv_WaitForState): Likewise.
2672         * link.cc (search_method_in_class): Renamed from
2673         _Jv_SearchMethodInClass.
2674         (resolve_pool_entry): Updated.
2675
2676         * include/jvm.h (_Jv_CheckAssignment): Removed.
2677         * java/lang/natClass.cc (_Jv_CheckAssignment): Removed.
2678
2679 2004-11-05  Tom Tromey  <tromey@redhat.com>
2680
2681         * link.cc (verify_type_assertions): Ensure classes have supers
2682         linked.  Strip off array types first.
2683
2684 2004-11-05  Bryce McKinlay  <mckinlay@redhat.com>
2685
2686         * link.cc: Include VerifyError.h. 
2687         (_Jv_Linker::verify_type_assertions): New. Read and evaluate entries
2688         in the type assertion table.
2689         * include/execution.h (_Jv_CompiledEngine::do_verify): Use
2690         verify_type_assertions.
2691         * include/jvm.h (_Jv_Linker::verify_type_assertions): declare.
2692         * java/lang/Class.h (JV_ASSERT_END_OF_TABLE, 
2693         JV_ASSERT_TYPES_COMPATIBLE, JV_ASSERT_IS_INSTANTIABLE): Declare
2694         assertion code values.
2695         (struct _Jv_TypeAssertion): Declare.
2696         (assertion_table): New class field.
2697         (verify): Remove class field.
2698
2699 2004-11-05  Andrew Haley  <aph@redhat.com>
2700
2701         * Makefile.am: Move jv_dbtool.java to
2702         gnu/gcj/tools/gcj_dbtool/Main.java.
2703         * Makefile.in: Rebuild.
2704         * java/lang/VMCompiler.java: Rename property
2705         "gnu.gcj.precompiled.db" to "gnu.gcj.precompiled.db.path".
2706         * gnu/gcj/tools/gcj_dbtool/Main.java: moved here from
2707         jv_dbtool.java.
2708         
2709 2004-11-05  Andrew Haley  <aph@redhat.com>
2710
2711         * jv_dbtool.java (main): Allow the user to specify the size of the
2712         database.  Display the capacity and the size.
2713         (usage): Show the new option.
2714                 
2715 2004-11-04  Tom Tromey  <tromey@redhat.com>
2716
2717         * include/jvm.h (_Jv_Linker::set_vtable_entries): Updated.
2718         * link.cc (make_vtable): Use correct index when searching for
2719         missing method's name.  Don't use `flags'.
2720         (set_vtable_entries): Removed `flags' argument.  Don't recurse
2721         into superclasses.
2722         (link_symbol_table): Ensure target class method table is
2723         complete.  Ensure target fields are laid out before entering
2724         loop.
2725
2726         * java/lang/natClass.cc (_Jv_getInterfaceMethod): Indentation
2727         fix.
2728
2729         * interpret.cc (do_verify): Don't verify abstract methods.
2730
2731 2004-11-01  Tom Tromey  <tromey@redhat.com>
2732
2733         * link.cc (wait_for_state): Call verify_class.
2734
2735         * verify.cc (state::check_no_uninitialized_objects): Removed.
2736         (push_jump): Updated.
2737         (push_exception_jump): Likewise.
2738         (handle_ret_insn): Likewise.
2739         (handle_jsr_insn): Likewise.
2740
2741 2004-10-28  Andrew Haley  <aph@redhat.com>
2742
2743         * gnu/gcj/runtime/PersistentByteMap.java: New file.
2744         * jv_dbtool.java: New file.
2745         * Makefile.am (bin_PROGRAMS): Add jv-dbtool
2746         (jv_dbtool_SOURCES, jv_dbtool_LDFLAGS, jv_dbtool_LINK)
2747         (jv_dbtool_LDADD, jv_dbtool_DEPENDENCIES): New.
2748         * Makefile.in: Regenerate,
2749         * java/lang/VMCompiler.java: Import NoSuchAlgorithmException,
2750         Enumeration, StringTokenizer, Vector, PersistentByteMap.
2751         (precompiledMapFiles): New variable.
2752         (VMCompiler static intializer): Read "gnu.gcj.precompiled.db" to
2753         initialize precompiledMapFiles.
2754         (compileClass): Look at the database of precompiled class files
2755         before firing up gcj.
2756
2757         * gnu/gcj/runtime/VMClassLoader.java (findClass): Fix comment.
2758
2759 2004-10-27  Andrew Haley  <aph@redhat.com>
2760
2761         * java/lang/VMCompiler.java (compileClass): try looking for
2762         precompiledMapFiles.
2763         * gnu/gcj/runtime/PersistentByteMap.java: New file.
2764
2765 2004-10-27  Tom Tromey  <tromey@redhat.com>
2766
2767         * link.cc (ensure_class_linked): Only resolve classes for
2768         compiled classes.
2769         (add_miranda_methods): Ensure interface supers are installed.
2770         (resolve_pool_entry): Better error message.
2771
2772 2004-10-25  Tom Tromey  <tromey@redhat.com>
2773
2774         * boehm.cc (_Jv_MarkObj): Test aux_info before dereferencing it.
2775
2776         * java/util/ResourceBundle.java (tryBundle): Use
2777         Class.isAssignableFrom rather than catching ClassCastException.
2778
2779         * java/util/zip/InflaterInputStream.java (fill): Don't throw an
2780         exception if we hit EOF of `in'.
2781         (read): Handle case where inflating returns -1.
2782
2783         * gnu/java/text/WordBreakIterator.java (WordBreakIterator): Don't
2784         initialize `iter'.
2785         * gnu/java/text/SentenceBreakIterator.java
2786         (SentenceBreakIterator): Don't initialize `iter'.
2787         * gnu/java/text/LineBreakIterator.java (LineBreakIterator): Don't
2788         initialize `iter'.
2789         * gnu/java/text/CharacterBreakIterator.java
2790         (CharacterBreakIterator): Don't initialize `iter'.
2791         * gnu/java/text/BaseBreakIterator.java (BaseBreakIterator): New
2792         constructor.
2793         * java/text/BreakIterator.java: Updated documentation.
2794
2795 2004-10-20  Tom Tromey  <tromey@redhat.com>
2796
2797         * java/util/ResourceBundle.java (tryBundle): Also ignore
2798         ClassCastException.
2799
2800 2004-10-18  Tom Tromey  <tromey@redhat.com>
2801
2802         * interpret.cc (do_post_miranda_hook): New method.
2803         * include/execution.h (_Jv_ExecutionEngine::post_miranda_hook):
2804         New field.
2805         (_Jv_CompiledEngine::do_post_miranda_hook): New method.
2806         (_Jv_CompiledEngine): Initialize new field.
2807         (_Jv_InterpreterEngine::do_post_miranda_hook): Declare.
2808         (_Jv_InterpreterEngine): Initialize new field.
2809         * link.cc (resolve_pool_entry): Put Miranda methods in target
2810         class.
2811         (ensure_method_table_complete): Call post_miranda_hook.
2812         * java/lang/natVMClassLoader.cc (defineClass): Don't set class'
2813         aux_info.
2814         * defineclass.cc (read_one_method_attribute): Use _Jv_AllocBytes.
2815         (parse): Set class' aux_info here.
2816
2817         * boehm.cc (_Jv_MarkObj): Mark `throws'.
2818
2819         * boehm.cc: Re-merged with trunk.
2820
2821 2004-10-18  Andrew Haley  <aph@redhat.com>
2822
2823         PR java/18036:
2824         * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
2825         and correct logic used to find interpreter.
2826
2827 2004-10-13  Andrew Haley  <aph@redhat.com>
2828
2829         * interpret.cc (_Jv_InterpMethod::run): Initialize
2830         _Jv_StartOfInterpreter.
2831         (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
2832         (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
2833         * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
2834         _Unwind_FindEnclosingFunction to discover whether PC is within the
2835         interpreter.
2836
2837 2004-10-13  Tom Tromey  <tromey@redhat.com>
2838
2839         * link.cc (find_iindex): Copy correct number of slots to new
2840         ioffsets.
2841
2842 2004-10-12  Tom Tromey  <tromey@redhat.com>
2843
2844         * testsuite/libjava.loader/loader.exp (gcj_object_file_name): New
2845         proc.
2846         (gcj_loader_test_one): Use it.
2847         (gcj_loader_run): Likewise.
2848
2849         * prims.cc: Don't include FirstThread.h.
2850
2851 2004-10-06  Tom Tromey  <tromey@redhat.com>
2852
2853         * link.cc (ensure_method_table_complete): Ensure superclass
2854         Miranda methods installed.
2855
2856         * include/java-interp.h (class _Jv_JNIMethod): Added
2857         JV_MARKOBJ_DECL as a friend.
2858         * interpret.cc (ncode): Allocate jni_arg_types field with GC.
2859         * boehm.cc (_Jv_MarkObj): Skip abstract methods when marking
2860         interpreter method structures.  Mark jni_arg_types of JNI
2861         methods.
2862
2863         * defineclass.cc (parse): Use JV_STATE_READ.
2864         * java/lang/Class.h (JV_STATE_READ): New enum value.
2865
2866 2004-10-05  Tom Tromey  <tromey@redhat.com>
2867
2868         * link.cc (resolve_pool_entry): Add signature info to missing
2869         method's information.
2870
2871         * gnu/gcj/util/Debug.java (Debug(int,boolean)): New constructor.
2872         * gnu/gcj/util/natDebug.cc (_Jv_StaticDeepDebug): New function.
2873
2874 2004-10-04  Tom Tromey  <tromey@redhat.com>
2875
2876         * boehm.cc (_Jv_MarkObj): Correctly indicate base pointer when
2877         marking IDT.
2878
2879 2004-09-29  Tom Tromey  <tromey@redhat.com>
2880
2881         * Makefile.am (libgcj_la_SOURCES): Mention link.cc, not
2882         resolve.cc.
2883         * include/jvm.h (class _Jv_Linker): Renamed from _Jv_Resolver.
2884         * jni.cc: Use _Jv_Linker.
2885         * interpret.cc: Use _Jv_Linker.
2886         * java/lang/reflect/natField.cc (getType): Use _Jv_Linker.
2887         * java/lang/natClassLoader.cc: Use _Jv_Linker.
2888         * java/lang/natVMClassLoader.cc (resolveClass): Use _Jv_Linker.
2889         * java/lang/Class.h: Use _Jv_Linker.
2890         * java/lang/natClass.cc (initializeClass): Use _Jv_Linker.
2891         * resolve.cc: Renamed ...
2892         * link.cc: ... here.  Use _Jv_Linker.
2893         * defineclass.cc (checkExtends): Use _Jv_Linker.
2894
2895 2004-09-17  Tom Tromey  <tromey@redhat.com>
2896
2897         * defineclass.cc (handleCodeAttribute): Don't reference
2898         `deferred'.
2899         (handleMethodsEnd): Likewise.
2900         * include/java-interp.h (_Jv_MethodBase::deferred): Removed
2901         field.
2902         (_Jv_Defer_Resolution): Don't declare or define.
2903         * interpret.cc (do_create_ncode): Don't resolve deferred method
2904         pointers.
2905         * java/lang/Class.h (_Jv_Defer_Resolution): Don't declare.
2906         * resolve.cc (link_symbol_table): No need to defer resolution.
2907
2908 2004-09-14  Tom Tromey  <tromey@redhat.com>
2909
2910         * boehm.cc (MAYBE_MARK): Remove unused `Exit' argument.
2911         (_Jv_MarkObj): Updated.
2912         (_Jv_MarkArray): Likewise.
2913
2914         * include/jvm.h (StringClass): Removed.
2915         * jni.cc (_Jv_JNI_ThrowNew): Don't use StringClass.
2916         * interpret.cc (_Jv_InitField): Don't use StringClass.
2917         * java/lang/natString.cc (_Jv_StringFindSlot): Don't use
2918         StringClass.
2919         (rehash): Likewise
2920         (intern): Likewise.
2921         (_Jv_FinalizeString): Likewise.
2922         (_Jv_NewStringUtf8Const): Likewise.
2923         (equals): Likewise.
2924         * prims.cc (JvConvertArgv): Don't use StringClass.
2925
2926         * gcj/field.h (struct _Jv_Field): Don't mention COMPACT_FIELDS.
2927         * resolve.cc (ensure_fields_laid_out): Don't mention
2928         COMPACT_FIELDS.
2929         * defineclass.cc (handleField): Don't mention COMPACT_FIELDS.
2930         * boehm.cc (_Jv_MarkObj): Don't mention COMPACT_FIELDS.
2931
2932         * java/lang/reflect/natField.cc (getType): Use resolve_field.
2933         * java/lang/natVMClassLoader.cc (resolveClass): New native
2934         implementation.
2935         (linkClass0): Removed.
2936         (markClassErrorState0): Likewise.
2937         * java/lang/natClassLoader.cc: Include execution.h.  Moved class
2938         preparation code to resolve.cc.
2939         (_Jv_RegisterClassHookDefault): Set class's execution engine if
2940         not already set.
2941         (_Jv_FindClass): Use wait_for_state.
2942         (_Jv_NewArrayClass): Likewise.  Simplified permissions setting.
2943         * java/lang/natClass.cc (_Jv_IsInstanceOf): Include execution.h.
2944         Moved interface table and class preparation code to resolve.cc.
2945         (finalize): Rewrote.
2946         (initializeClass): Simplified locking and class preparation.
2947         * java/lang/VMClassLoader.java (linkClass0): Removed.
2948         (markClassErrorState0): Likewise.
2949         (resolveClass): Now native.
2950         (transformException): New method.
2951         * java/lang/Class.h (getSuperclass): Don't try to resolve super
2952         reference.
2953         (getInterface): Likewise.
2954         (size): Likewise.
2955         (set_state): New method.
2956         (Class): Updated friend declarations.
2957         (verify): Field now private.
2958         (engine): New field.
2959         * include/jvm.h (class _Jv_Resolver): New class declaration.
2960         (_Jv_ResolveField): Removed declaration.
2961         (_Jv_CheckAccessNoInit): Likewise.
2962         (_Jv_isBinaryCompatible): Removed.
2963         * include/java-interp.h (class _Jv_MethodBase): Updated friend
2964         declarations.
2965         (class _Jv_InterpMethod): Likewise.
2966         (class _Jv_InterpClass): Likewise.
2967         (class _Jv_JNIMethod): Likewise.
2968         * include/execution.h: New file.
2969         * gnu/gcj/runtime/natSharedLibLoader.cc: Include execution.h.
2970         (_Jv_sharedlib_register_hook): Set `engine' on loaded class.
2971         Register class after setting fields.
2972         * resolve.cc: Include execution.h, VerifyError.h.  Moved
2973         interpreter-specific code to interpret.cc.
2974         (uaddr): New location.
2975         (struct aligner): Likewise.
2976         (ALIGNOF): Likewise.
2977         (INITIAL_IOFFSETS_LEN): Interface dispatch code moved here.
2978         (INITIAL_IFACES_LEN): Likewise.
2979         (null_idt): Likewise.
2980         (_Jv_GetMethodString): Likewise.
2981         (_Jv_ThrowNoSuchMethodError): Likewise.
2982         (_Jv_abstractMethodError): Likewise.
2983         (_Jv_Resolver::get_alignment_from_class): Renamed.
2984         (_Jv_Resolver::resolve_field): Likewise.
2985         (_Jv_Resolver::resolve_pool_entry): Likewise.
2986         (_Jv_Resolver::resolve_class_ref): Likewise.
2987         (_Jv_Resolver::prepare_constant_time_tables): Likewise.
2988         (_Jv_Resolver::indexof): Likewise.
2989         (_Jv_Resolver::get_interfaces): Likewise.
2990         (_Jv_Resolver::generate_itable): Likewise.
2991         (_Jv_Resolver::append_partial_itable): Likewise.
2992         (_Jv_Resolver::find_iindex): Likewise.
2993         (_Jv_Resolver::link_symbol_table): Likewise.
2994         (_Jv_Resolver::link_exception_table): Likewise.
2995         (_Jv_Resolver::layout_interface_methods): Likewise.
2996         (_Jv_Resolver::layout_vtable_methods): Likewise.
2997         (_Jv_Resolver::set_vtable_entries): Likewise.
2998         (_Jv_Resolver::make_vtable): Likewise.
2999         (_Jv_Resolver::ensure_fields_laid_out): Likewise.
3000         (_Jv_Resolver::ensure_class_linked): Likewise.
3001         (_Jv_Resolver::ensure_supers_installed): Likewise.
3002         (_Jv_Resolver::add_miranda_methods): Likewise.
3003         (_Jv_Resolver::ensure_method_table_complete): Likewise.
3004         (_Jv_Resolver::verify_class): Likewise.
3005         (_Jv_Resolver::wait_for_state): Likewise.
3006         * prims.cc (_Jv_soleCompiledEngine): New global.
3007         (_Jv_CheckAccess): Use _Jv_IsAssignableFromSlow.
3008         (_Jv_CheckAccessNoInit): Removed.
3009         * jni.cc (_Jv_JNI_GetAnyFieldID): Use resolve_field.
3010         * interpret.cc: Include platform.h, ClassFormatError.h,
3011         Modifier.h, execution.h.
3012         (_Jv_soleInterpreterEngine): New global.
3013         (compile): Use resolve_pool_entry.
3014         (run): Likewise.
3015         (_Jv_InitField): New location.
3016         (skip_one_type): Likewise.
3017         (get_ffi_type_from_signature): Likewise.
3018         (_Jv_count_arguments): Likewise.
3019         (init_cif): Likewise.
3020         (ncode_closure): Likewise.
3021         (ffi_closure_fun): Likewise.
3022         (ncode): Likewise.
3023         (throw_class_format_error): Likewise.
3024         (throw_class_format_error): Likewise.
3025         (_Jv_InterpreterEngine::do_verify): New method.
3026         (_Jv_InterpreterEngine::do_create_ncode): Likewise.
3027         (_Jv_InterpreterEngine::do_allocate_static_fields): Likewise.
3028         (_Jv_InterpreterEngine::do_resolve_method): Likewise.
3029         * defineclass.cc: Include execution.h.
3030         (_Jv_ClassReader): Initialize size_in_bytes, vtable_method_count,
3031         engine.
3032         (checkExtends): Ensure superclass has supers installed.
3033         (_Jv_ClassNameSamePackage): Clarify usage constraints.
3034         * boehm.cc (GC_enable, GC_disable): Declare at top of file.
3035         (_Jv_MarkObj): Unconditionally mark vtable.  Mark interface
3036         dispatch tables.
3037
3038 2004-09-13  Tom Tromey  <tromey@redhat.com>
3039
3040         * mauve-libgcj: List some classes we don't have.
3041
3042 2004-09-10  Andrew Haley  <aph@redhat.com>
3043
3044         * java/lang/Class.h (_Jv_getInterfaceMethod(): new friend.
3045         * java/lang/natClass.cc (initializeClass): Check itable.
3046         (_Jv_getInterfaceMethod): New.
3047         (_Jv_LinkSymbolTable): Rewrite code that handles inerface calls.
3048         Check that an interface method isn't called with invokevirtual.
3049
3050         * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Make sure
3051         super_meth is virtual.
3052
3053 2004-09-01  Tom Tromey  <tromey@redhat.com>
3054
3055         * java/lang/Class.h (_Jv_CheckAccessNoInit): Declare as friend.
3056         * java/lang/natClass.cc (_Jv_LayoutVTableMethods): Use
3057         _Jv_CheckAccessNoInit.
3058         * include/jvm.h (_Jv_CheckAccessNoInit): Declare.
3059         * prims.cc (_Jv_CheckAccessNoInit): New method.
3060
3061         * java/lang/reflect/natMethod.cc (invoke): Check access against
3062         declaring class, not object's class.
3063         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Added another
3064         argument.
3065         (_Jv_LayoutVTableMethods): Perform checks of accessibility of
3066         overridden method.
3067         * java/lang/Class.h (_Jv_LookupDeclaredMethod): Added another
3068         argument.
3069
3070 2004-08-30  Andrew Haley  <aph@redhat.com>
3071
3072         * java/lang/natClass.cc (_Jv_CheckAssignment): Catch
3073         ClassNotFoundException.
3074         Throw NoClassDefFoundError.
3075
3076         * java/lang/natClassLoader.cc (_Jv_FindClassInCache): Remove call
3077         to klass->verify() from here ...
3078         (_Jv_PrepareCompiledClass): ...and put it here.
3079
3080 2004-08-27  Andrew Haley  <aph@redhat.com>
3081
3082         * java/lang/natClassLoader.cc (_Jv_FindClassInCache): Call
3083         klass->verify().
3084         * java/lang/natClass.cc (_Jv_LinkSymbolTable): Add debugging.
3085         (_Jv_LinkSymbolTable): Call Jv_LayoutClass on target class.
3086
3087 2004-08-27  Tom Tromey  <tromey@redhat.com>
3088
3089         * java/lang/Class.h (_Jv_IsAssignableFromSlow): Declare as
3090         friend.
3091         * java/lang/natClass.cc (_Jv_CheckAssignment): New function.
3092         (_Jv_IsAssignableFromSlow): New function.
3093         Include VerifyError.h.
3094         * include/jvm.h (_Jv_CheckAssignment): Declare.
3095
3096 2004-08-18  Andrew Haley  <aph@redhat.com>
3097
3098         * java/lang/VMCompiler.java (loadSharedLibrary): Add className
3099         argument.  Pass it to findClass instead of fileName.
3100         (compileClass): Pass class name to loadSharedLibrary.
3101
3102 2004-06-22  Andrew Haley  <aph@redhat.com>
3103
3104         * testsuite/libjava.compile/compile.exp: Force indirect dispatch.
3105
3106 2004-06-15  Andrew Haley  <aph@redhat.com>
3107
3108         * java/lang/natSystem.cc (getenv0): Don't assume environment
3109         variable is Latin 1 coded.
3110
3111 2004-06-07  Andrew Haley  <aph@redhat.com>
3112
3113         * java/lang/System.java: (getenv0): New method.
3114         (getenv): Add security check.  Do the right thing.
3115         * java/lang/natSystem.cc (getenv0): New method.
3116
3117 2004-04-19    Andrew Haley  <aph@redhat.com>
3118
3119         * gnu/gcj/runtime/NameFinder.java: Call waitFor() on the processes
3120         we destroy.
3121
3122         * gnu/java/net/natPlainSocketImplPosix.cc (read): The value byte
3123         is returned as an int in the range 0 to 255.
3124
3125 2004-08-13  Tom Tromey  <tromey@redhat.com>
3126
3127         * java/lang/natClass.cc (_Jv_LinkSymbolTable): Prepare the target
3128         class if it is interpreted.
3129
3130 2004-08-12  Tom Tromey  <tromey@redhat.com>
3131
3132         * java/lang/natClassLoader.cc (_Jv_WaitForState): Updated.
3133         * java/lang/Class.h (_Jv_ResolveClassRef): Updated declaration.
3134         (Class::getSuperclass): Updated.
3135         (Class::getInterfaces): Likewise.
3136         (Class::size): Updated.
3137         (_Jv_LayoutClass): Updated declaration.
3138         * java/lang/natClass.cc (_Jv_ResolveClassRef): Changed interface.
3139         Synchronize on class.
3140         (_Jv_LayoutClass): Changed interface.
3141         (initializeClass): Updated.
3142         (_Jv_LinkSymbolTable): Likewise.
3143
3144         * java/lang/Class.h (Class::_Jv_isBinaryCompatible): Declare as
3145         friend.
3146         * java/lang/natClassLoader.cc (_Jv_WaitForState): Use
3147         _Jv_isBinaryCompatible.
3148         * java/lang/natClass.cc (initializeClass): Use
3149         _Jv_isBinaryCompatible.
3150         (_Jv_LinkSymbolTable): Likewise.
3151         * include/jvm.h (_Jv_isBinaryCompatible): New function.
3152
3153 2004-08-11  Tom Tromey  <tromey@redhat.com>
3154
3155         * gcj/javaprims.h: Regenerated.
3156         * java/lang/natClassLoader.cc (getClassLoader0): Removed.
3157         (_registerClass): Likewise.
3158         * Makefile.in: Rebuilt.
3159         * Makefile.am (core_java_source_files): Added VMCompiler.
3160         * java/lang/Compiler.java: Rewrote in terms of VMCompiler.
3161         * java/lang/VMCompiler.java: New file.
3162         * gnu/gcj/runtime/SharedLibHelper.java (findClass): Removed
3163         `verbose' code.
3164         (copyFile): Don't use fully-qualified name.
3165         (h): Removed.
3166         * java/lang/natVMClassLoader.cc: Include VMCompiler.h.
3167         (defineClass): Use VMCompiler.
3168         * java/lang/ClassLoader.java (defineClass): Removed jit
3169         compilation code and `verbose' code.
3170         (getClassLoader0): Removed.
3171         (_registerClass): Likewise.
3172         (SharedLibHelpers): Removed.
3173
3174 2004-08-10  Tom Tromey  <tromey@redhat.com>
3175
3176         * java/net/URLClassLoader.java (URLLoader(URLClassLoader, URL,
3177         URL)): New constructor.
3178         (SoURLLoader): Likewise.
3179         (JarURLLoader): Create SoURLLoader with override URL.
3180
3181 2004-08-10  Mark Wielaard  <mark@klomp.org>
3182
3183         * Makefile.in: Rebuilt.
3184         * Makefile.am (interpret.lo): New rule.
3185
3186 2004-08-05  Andrew Haley  <aph@redhat.com>
3187
3188         * java/net/URLClassLoader.java (JarURLLoader.JarURLLoader): Look
3189         aside for "GCJLIBS" in directory where jarfiles are loaded.     
3190         (JarURLLoader.getClass): New method.
3191         (JarURLLoader.toString):  New method.
3192         (FileResource.toString):  New method.
3193         * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault):
3194         Remove "Duplicate class registration: " bug.
3195         (_registerClass): New method.
3196         * java/lang/natClass.cc (_Jv_LinkSymbolTable): Check method index.
3197         (_Jv_LinkSymbolTable): Call _Jv_LayoutClass().
3198         Add debugging.
3199         (_Jv_LayoutClass): Use getSuperclass() rather than directly
3200         accessing the field.
3201         * java/lang/ClassLoader.java (SharedLibHelpers): New variable.
3202         (defineClass): Call gcj to JIT-compile a class.
3203         (_registerClass): New method.
3204         * gnu/gcj/runtime/SharedLibHelper.java (findHelper): A shared
3205         library name can refer to more than one loaded library, so use a
3206         Set of SharedLibHelpers.
3207         If a shared library is already loaded, take a copy.
3208         (copyFile): New function.
3209
3210         * testsuite/libjava.compile/compile.exp: Force
3211         -findirect-dispatch.
3212
3213         * java/security/BasicPermission.java: Remove bogus checks.
3214
3215         * java/lang/System.java (getenv0): New method.
3216         * java/lang/natSystem.cc (getenv0): New method.
3217
3218 2004-05-24  Andrew Haley  <aph@redhat.com>
3219
3220         * java/lang/natClass.cc (_Jv_LayoutClass): Remove warning message.
3221
3222 2004-04-20  Bryce McKinlay  <mckinlay@redhat.com>
3223
3224         * Merged with HEAD as of 20040514. Diff against
3225         gcj-abi-2-merge-20040514.
3226
3227 2004-04-16  Andrew Haley  <aph@redhat.com>
3228
3229         * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
3230         _Jv_LayoutClass.
3231         (_Jv_PrepareCompiledClass): Cast address to uaddr for comparison.
3232         (_Jv_PrepareCompiledClass): If we throw an exception during
3233         preparation, restore state.
3234         (ClassLoader::getClassLoader0): New method.
3235
3236         * java/lang/natClass.cc (get_alignment_from_class): Moved here
3237         from resolve.cc.
3238         (ALIGNOF): Use offsetof, not __alignof__.
3239         (_Jv_ResolveClassRef): Resolve a reference to a class in a
3240         constant pool.
3241         (getInterfaces): Emit debug output if interface hasn't been
3242         resolved.
3243         (initializeClass): Call _Jv_LayoutClass.
3244         (_Jv_LinkSymbolTable): Add debugging output.
3245         (_Jv_LinkSymbolTable): NoClassDefFoundError if target_class isn't
3246         found.
3247         (_Jv_LinkSymbolTable): Call _Jv_PrepareClass.
3248         (_Jv_LinkSymbolTable): Pass the real class loader to
3249         _Jv_FindClass.
3250         (_Jv_linkExceptionClassTable): Don't throw if we fail to find an
3251         exception class.
3252         (_Jv_LinkSymbolTable): Assert if we find a static field reference
3253         to an interpreted class.
3254         (_Jv_LayoutVTableMethods): Use klass->getSuperclass to get the
3255         superclass.
3256         (_Jv_LayoutClass): Moved here; it was part of _Jv_PrepareClass in
3257         resolve.cc.
3258         
3259         * java/lang/VMSecurityManager.java: Check for the system class
3260         loader as well as loader != null.
3261         
3262         * java/lang/SecurityManager.java (checkPermission): Remove
3263         security check.
3264         (checkRead): Likewise.
3265         (checkConnect): Likewise.
3266
3267         * java/lang/ClassLoader.java (loadClass): Include all class
3268         loaders in stack trace string.
3269         Look for class in "gcjlib.so" in the same directory.
3270         (getSystemClassLoader) Use getClassLoader0.
3271         (getClassLoader0): New native method.
3272
3273         * java/lang/Class.h (getSuperclass): New method.
3274         (getInterface): New method.
3275         (size): Lay out class if needed.
3276         (firstMethodIndex): New method.
3277         (Jv_ResolveClassRef): New declaration.
3278         (_Jv_LinkSymbolTable): New declaration.
3279
3280         * java/io/ObjectOutputStream.java: Add DEBUG statements
3281         everywhere.
3282         (dumpElementln): New method.
3283         (depth): New field.
3284         * java/io/ObjectInputStream.java (MyIOException): new, for
3285         debugging.
3286         Everywhere: use MyIOException rather than IOException.
3287         Indent debugging output to make nesting visible.
3288         (currentClassLoader): Make native
3289         (callersClassLoader): New field.
3290         (depth): New field.
3291         * java/io/natObjectInputStream.cc (getCallersClassLoader): New
3292         method.
3293         
3294         (readObject): ENDBLOCKDATA is generated if the class has a write
3295         method, not if it has a read method.
3296
3297         * include/jvm.h (_Jv_CallAnyMethodA): Add new arg, iface.
3298
3299         * gnu/javax/rmi/CORBA/DelegateFactory.java: Use the
3300         getContextClassLoader form the current thread after our own class
3301         loader.
3302
3303         * gnu/gcj/runtime/SharedLibHelper.java (findClass): Class loader
3304         debugging.
3305         (toString): New method.
3306
3307         * verify.cc (class _Jv_BytecodeVerifier): Don't directly access
3308         interfaces array.
3309
3310         * resolve.cc (_Jv_PrepareMissingMethods): If interface looks like
3311         a constant pool entry, resolve it now.
3312         (_Jv_PrepareClass): Break out part of this function to Jv_LayoutClass
3313         in natClass.cc.
3314         Move get_alignment_from_class to natClass.cc.
3315
3316         * prims.cc (_Jv_AllocObjectNoFinalizer): Use size field from class.
3317         (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
3318
3319         * defineclass.cc (checkExtends): Don't access superclass field
3320         directly.
3321
3322         * Makefile.in: regenerate.
3323
3324         * gnu/gcj/util/natDebug.cc: New
3325         * gnu/gcj/util/Debug.java: New.
3326
3327         * Makefile.am (java/io/ObjectInputStream.lo): Use
3328         -fno-optimize-sibling-calls.
3329
3330         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
3331         _Jv_LookupInterfaceMethodIdx to calculate the address of a method
3332         in an interface.
3333         * include/jvm.h (_Jv_CallAnyMethodA): Add new arg: iface.
3334
3335 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
3336
3337         * configure: Regenerate for libtool change.
3338
3339 2004-11-24  Michael Koch  <konqueror@gmx.de>
3340
3341         * gnu/java/security/PolicyFile.java: New file.
3342         * Makefile.am: Added gnu/java/security/PolicyFile.java.
3343         * Makefile.in: Regenerated.
3344
3345 2004-11-24  Michael Koch  <konqueror@gmx.de>
3346
3347         * java/lang/Character.java, scripts/unicode-blocks.pl:
3348         Reorder "final static" to "static final".
3349
3350 2004-11-24  Michael Koch  <konqueror@gmx.de>
3351
3352         * java/util/ResourceBundle.java: Reformatted.
3353         (tryBundle): Fixed javadoc.
3354
3355 2004-11-24  Jeroen Frijters  <jeroen@frijters.net>
3356
3357         * java/text/MessageFormat.java
3358         (formatInternal): Made private.
3359
3360 2004-11-24  Michael Koch  <konqueror@gmx.de>
3361
3362         * java/nio/DirectByteBufferImpl.java
3363         (ReadWrite.ReadWrite): New constructor.
3364         (DirectByteBufferImpl): Likewise.
3365         * jni.cc (_Jv_JNI_NewDirectByteBuffer):
3366         Use DirectByteBufferImpl.ReadWrite.
3367         * Makefile.am:
3368         Generate java/nio/DirectByteBufferImpl$ReadWrite.h.
3369         * Makefile.in: Rgenerated.
3370
3371 2004-11-24  Jeroen Frijters  <address@bogus.example.com>
3372
3373         * java/nio/DirectByteBufferImpl.java
3374         (ReadOnly): New inner subclass.
3375         (ReadWrite): New inner subclass.
3376         (owner): Made final and private.
3377         (address): Made final.
3378         (DirectByteBufferImpl(int)): New constructor.
3379         (DirectByteBufferImpl(Object,RawData,int,int,int)): New constructor.
3380         (DirectByteBufferImpl(Object,RawData,int,int,int,boolean)): Removed.
3381         (allocate): Modified to instantiate ReadWrite subclass.
3382         (finalize): Fixed to only free the buffer, if we own it.
3383         (put): Removed read-only check.
3384         (slice, duplicate): Modified to instantiate appropriate subclass.
3385         (isReadOnly): Removed.
3386         * java/nio/MappedByteBufferImpl.java
3387         (slice, duplicate): Modified to instantiate appropriate
3388         DirectByteBufferImpl subclass.
3389
3390 2004-11-24  Michael Koch  <konqueror@gmx.de>
3391
3392         * gnu/java/nio/NIOServerSocket.java: Added email to @author tag.
3393         * java/nio/DirectByteBufferImpl.java:
3394         Moved native methods to java.nio.VMDirectByteBuffer class.
3395         * java/nio/MappedByteBufferImpl.java:
3396         Use native methods from java.nio.VMDirectByteBuffer class.
3397         * java/nio/VMDirectByteBuffer.java: New file,
3398         * java/nio/natDirectByteBufferImpl.cc:
3399         Moved all methods into java.nio.VMDirectByteBuffer class.
3400         * java/nio/channels/spi/AbstractSelectableChannel.java
3401         (register): Only re-use valid keys.
3402         * Makefile.am: Added java/nio/VMDirectByteBuffer.java.
3403         * Makefile.in: Regenerated.
3404
3405 2004-11-24  Michael Koch  <konqueror@gmx.de>
3406
3407         * java/nio/DirectByteBufferImpl.java,
3408         java/nio/MappedByteBufferImpl.java:
3409         Reformatted.
3410
3411 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3412
3413         * testsuite/lib/libjava.exp,
3414         testsuite/libjava.jacks/jacks.exp: Use new procs in target-libpath.exp.
3415
3416 2004-11-23  Richard Sandiford  <rsandifo@redhat.com>
3417
3418         * configure.host: Enable the interpreter for mips*-*-linux*.
3419
3420 2004-11-23  Michael Koch  <konqueror@gmx.de>
3421
3422         * java/lang/String.java (rehash): Removed.
3423         * java/lang/natString.cc (rehash): Made static.
3424         (_Jv_NewStringUtf8Const): Use static rehash method.
3425
3426 2004-11-23  Michael Koch  <konqueror@gmx.de>
3427
3428         * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
3429         include/Makefile.in, testsuite/Makefile.in: Regenerated.
3430
3431 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3432
3433         PR target/18444
3434         * configure.ac (threading): Accept 'posix95'.
3435         * configure: Regenerate.
3436
3437 2004-11-22  Michael Koch  <konqueror@gmx.de>
3438
3439         * gnu/java/nio/SocketChannelImpl.java
3440         (read): Made check for blocking un-ambiguous.
3441         Removed wrong check for data array length.
3442
3443 2004-11-21  Michael Koch  <konqueror@gmx.de>
3444
3445         * gnu/java/nio/SocketChannelImpl.java
3446         (read): Only return 0 when no bytes for reading available in
3447         non-blocking mode.
3448         * java/nio/channels/SocketChannel.java:
3449         Added some missing @return tags.
3450
3451 2004-11-21  Michael Koch  <konqueror@gmx.de>
3452
3453         * java/beans/PropertyChangeSupport.java
3454         (propertyChangeSupportSerializedDataVersion): Made static.
3455         * java/beans/VetoableChangeSupport.java
3456         (propertyChangeSupportSerializedDataVersion): Likewise.
3457
3458 2004-11-18  Jeroen Frijters  <jeroen@frijters.net>