]> gcc.gnu.org Git - gcc.git/blame - libjava/ChangeLog
* gcc.dg/sh4a-fprun.c: Fix dg-do typo.
[gcc.git] / libjava / ChangeLog
CommitLineData
614c0fc2
TF
12004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
2 Michael Koch <konqueror@gmx.de>
3
4 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
5 * configure.in: Replaced all usages of AC_LINK_FILES by
6 AC_CONFIG_LINKS.
7 * aclocal.m4,
8 configure: Regenerated.
9
ff78c80b
TF
102004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
11 Michael Koch <konqueror@gmx.de>
12
13 * acconfig.h: Removed.
14 * Makefile.am: Rename variables for xlib peer to include xlib and
15 gtk_c_headers to gtk_jni_headers.
16 * Makefile.in: Regenerated.
17
76207f7c
AH
182004-08-04 Andrew Haley <aph@redhat.com>
19
20 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
21 debugging.
22
aed6152d
NN
232004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
24
25 * configure.in: Eliminate uses of changequote (mostly by quoting []).
26 Replace most top level 'dnl' comments with '#' comments, conforming
27 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
28 help strings.
29 * configure: Rebuilt.
30
ed698112
NN
312004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
32
33 * acinclude.m4: Include no-executables.m4.
34 * aclocal.m4: Rebuild.
35 * configure.in: Convert to the autoconf 2.59 version of
36 of the no-executables hack, and also of the nonstandard CXX
37 hack and the multilibbed CC and CXX hack. Change prerequisite
38 to autoconf 2.59.
39 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
40 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
41 testsuite/Makefile.in: Regenerate.
42
8e9031ec
TT
432004-08-03 Tom Tromey <tromey@redhat.com>
44
45 * jni.cc: Reindented.
46
474f5417
BM
472004-08-02 Bryce McKinlay <mckinlay@redhat.com>
48
49 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
50
899deeca
BM
512004-08-02 Bryce McKinlay <mckinlay@redhat.com>
52
53 * testsuite/libjava.compile/PR16701.java: New test.
54
b828123e
AJH
552004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
56
57 * java/util/Collection.java, java/util/List.java,
58 java/util/Map.java, java/util/Set.java,
59 java/util/SortedMap.java, java/util/SortedSet.java:
60 Added additional exceptions to documentation.
61
5b5662ee
DS
622004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
63
64 PR libgcj/16814
65 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
66 * configure. Regenerate.
67 * include/win32.h: Explicitly include winsock2.h
68 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
69 Winsock api.
70
f370ef24
MK
712004-07-30 Michael Koch <konqueror@gmx.de>
72
73 * java/util/zip/GZIPInputStream.java
74 (GZIPInputStream): Increase buffer size to 4k.
75 * java/util/zip/GZIPOutputStream.java
76 (GZIPOutputStream): Likewise.
77 * java/util/zip/Inflater.java
78 (setInput): Merged formating with GNU classpath.
79 * java/util/zip/InflaterInputStream.java
80 (InflaterInputStream): Increase buffer size to 4k.
81 (fill): Throw exception if stream ends early.
82 (read): Merged endless-loop with GNU classpath.
83 (skip): Increase buffer size to 2k.
84
2afed683
MK
852004-07-30 Michael Koch <konqueror@gmx.de>
86
87 * gnu/java/awt/EmbeddedWindow.java
88 (addNotify): Use AccessController to allow execution of privileged
89 code.
90
a639e504
MK
912004-07-29 Michael Koch <konqueror@gmx.de>
92
93 * gnu/java/lang/MainThread.java:
94 Explicitely import used classes.
95 (args): Make it type String[].
96
1cc49b13
DT
972004-07-29 Dalibor Topic <robilad@kaffe.org>
98
99 * gnu/java/awt/ComponentDataBlitOp.java,
100 gnu/java/beans/ExplicitBeanInfo.java,
101 gnu/java/beans/IntrospectionIncubator.java,
102 gnu/java/beans/editors/ColorEditor.java,
103 gnu/java/beans/editors/FontEditor.java,
104 gnu/java/beans/editors/NativeBooleanEditor.java,
105 gnu/java/beans/editors/NativeByteEditor.java,
106 gnu/java/beans/editors/NativeDoubleEditor.java,
107 gnu/java/beans/editors/NativeFloatEditor.java,
108 gnu/java/beans/editors/NativeIntEditor.java,
109 gnu/java/beans/editors/NativeLongEditor.java,
110 gnu/java/beans/editors/NativeShortEditor.java,
111 gnu/java/beans/editors/StringEditor.java,
112 gnu/java/io/ClassLoaderObjectInputStream.java,
113 gnu/java/io/decode/Decoder.java,
114 gnu/java/io/encode/Encoder.java,
115 gnu/java/lang/ClassHelper.java,
116 gnu/java/locale/Calendar.java,
117 gnu/java/locale/Calendar_de.java,
118 gnu/java/locale/Calendar_en.java,
119 gnu/java/locale/Calendar_nl.java,
120 gnu/java/locale/LocaleInformation_de.java,
121 gnu/java/locale/LocaleInformation_en.java,
122 gnu/java/locale/LocaleInformation_nl.java:
123 Cleaned up imports.
124
4d4fed15
BM
1252004-07-28 Bryce McKinlay <mckinlay@redhat.com>
126
127 * README: Remove obsolete info. Update bug URL.
128 * THANKS: Updated.
e90bcbf5 129 * NEWS: Updated with news up to GCC 3.4 release.
4d4fed15 130
64d696b6
BM
1312004-07-28 Bryce McKinlay <mckinlay@redhat.com>
132
133 * gnu/java/security/action/GetPropertyAction.java (setParameters):
134 Renamed from 'setName'. New 2-argument form with default value.
135 (run): Pass default 'value' parameter to System.getProperty().
136 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
137 typos.
138 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
139 not 'setName'.
140
f0faf24b
BM
1412004-07-28 Bryce McKinlay <mckinlay@redhat.com>
142
143 * configure.in: Check for minimum GTK version 2.4 requirement.
144 * configure: Rebuilt.
145
ce961468
BM
1462004-07-27 Bryce McKinlay <mckinlay@redhat.com>
147
148 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
149 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
150 Reduce sleep time.
151 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
152 compiler bug.
153 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
154 address. Reduce sleep times. Synchronize with target threads before
155 attempting to interrupt them. Don't try to calibrate yeild count,
156 instead, always loop for a fixed time.
157 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
158 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
159 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
160 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
161 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
162 * testsuite/libjava.lang/pr179.java: Likewise.
163 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
164 time. Remove upper bounds check on sleep time.
165
0954f3eb
BM
1662004-07-27 Bryce McKinlay <mckinlay@redhat.com>
167
168 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
169 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
170
d078f7c0
BM
1712004-07-27 Bryce McKinlay <mckinlay@redhat.com>
172
173 * java/io/File.java (toURI): Throw RuntimeException, not
174 InternalError.
175 * java/lang/Runtime.java (exit): Qualify static sleep() call with
176 class name, not instance.
177
8b66a9e9
BM
1782004-07-24 Bryce McKinlay <mckinlay@redhat.com>
179
180 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
181 and gnu/java/security/action/SetAccessibleAction.java.
182 * Makefile.in: Rebuilt.
183
ffe4e037
BM
1842004-07-23 Bryce McKinlay <mckinlay@redhat.com>
185
186 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
187 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
188 _Jv_InitPrimClass.
189 (DECLARE_PRIM_TYPE): Don't declare array vtables.
190 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
191 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
192
ef05818b
TF
1932004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
194
195 * Makefile.am: Replace jar, rmic and rmiregistry references with
196 gjar, grmic and grmiregistry.
197 * configure.in: Likewise.
198 * Makefile.in: Regenerate.
199 * configure: Likewise.
200 * gcj/Makefile.in: Likewise.
201 * include/Makefile.in: Likewise.
202 * testsuite/Makefile.in: Likewise.
203
ae066484
BM
2042004-07-23 Bryce McKinlay <mckinlay@redhat.com>
205
ec5c28ec
BM
206 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
207 for privileged getProperty calls.
208 * java/io/ObjectOutputStream.java (getField): No longer static. Use
209 SetAccessibleAction instead of anonymous class for doPrivileged call.
210 (getMethod): Likewise.
211 (setAccessible): New field. PrivilegedAction object to use when
212 calling setAccessible.
213 * java/io/ObjectStreamClass.java (calculateOffsets): Use
214 SetAccessibleAction instead of anonymous class for diPrivileged call.
215 (setFields): Likewise.
216 (getClassUID): Likewise.
217 (findMethod): Likewise.
218 * gnu/java/security/action/GetPropertyAction.java: New class.
219 * gnu/java/security/action/SetAccessibleAction.java: New class.
220
2212004-07-23 Bryce McKinlay <mckinlay@redhat.com>
222
223 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
224 for final fields.
ae066484
BM
225 * testsuite/libjava.lang/Serialization.java: New test.
226 * testsuite/libjava.lang/Serialization.out: New.
227
2282004-07-23 Bryce McKinlay <mckinlay@redhat.com>
694e657a
MW
229
230 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
231 missed in last commit.
232
392abf6b
MW
2332004-07-23 Mark Wielaard <mark@klomp.org>
234
235 * java/lang/System.java (static): Set http.agent system property when
236 not yet set.
237 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
238 from system property inside AccessController.doPrivileged() call.
239 (proxyPort): Made package private.
240 (proxyInUse): Likewise.
241 (proxyHost): Likewise.
242 (userAgent): Likewise.
243
6d97cb60
MW
2442004-07-23 Mark Wielaard <mark@klomp.org>
245
246 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
247 implementation.
248
f1f90ae0
BM
2492004-07-22 Bryce McKinlay <mckinlay@redhat.com>
250
251 * Makefile.am (ordinary_java_source_files): Add
252 DefaultContentHandlerFactory.java.
253 * Makefile.in: Rebuilt.
254 * java/net/URLConnection.java (defaultFactory): New field.
255 (getContent):
256 (getContentHandler): Renamed from 'setContentHandler'. Try
257 defaultFactory after user-set factory, if any. Search for content
258 handler implementations in gnu.java.net.content, not gnu.gcj.content.
259 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
260 Implemented.
261 (getLastModified): Implemented.
262 (getPermission): Create file permission here, instead of in
263 constructor.
264 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
265 Implemented.
266 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
267 Implemented.
268 (getLastModified): Implemented.
269 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
270 Default implementation.
271 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
272 Implement using GdkPixbufDecoder.
273
8e99fb4f
GH
2742004-07-21 Michael Koch <konqueror@gmx.de>
275
276 * javax/swing/JTextArea.java
277 (setLineWrap): Fire property change event after new value is set.
278 (setTabSize): Likewise.
279
2802004-07-21 Michael Koch <konqueror@gmx.de>
281
282 * javax/swing/JTable.java
283 (autoCreateColumnsFromModel): New field.
284 (autoResizeMode): Likewise.
285 (cellEditor): Likewise.
286 (cellSelectionEnabled): Likewise.
287 (columnModel): Likewise.
288 (dataModel): Likewise.
289 (defaultEditorsByColumnClass): Likewise.
290 (defaultRenderersByColumnClass): Likewise.
291 (editingColumn): Likewise.
292 (editingRow): Likewise.
293 (gridColor): Likewise.
294 (preferredViewportSize): Likewise.
295 (rowHeight): Likewise.
296 (rowMargin): Likewise.
297 (rowSelectionAllowed): Likewise.
298 (selectionBackground): Likewise.
299 (selectionForeground): Likewise.
300 (selectionModel): Likewise.
301 (showHorizontalLines): Likewise.
302 (showVerticalLines): Likewise.
303 (tableHeader): Likewise.
304 (JTable): Implemented.
305 (getColumnModel): Likewise.
306 (getSelectedRow): Likewise.
307 (getSelectionModel): Likewise.
308 (setModel): Likewise.
309 (setSelectionModel): Likewise.
310 (createScrollPaneForTable): New method.
311 (createDefaultDataModel): Likewise.
312 (createDefaultListSelectionModel): Likewise.
313 (getModel): Likewise.
314 (getTableHeader): Likewise.
315 (setTableHeader): Likewise.
316 (getColumnSelectionAllowed): Likewise.
317 (setColumnSelectionAllowed): Likewise.
318 (getRowSelectionAllowed): Likewise.
319 (setRowSelectionAllowed): Likewise.
320 (getAutoResizeMode): Likewise.
321 (setAutoResizeMode): Likewise.
322 (getColumnCount): Likewise.
323 (getRowCount): Likewise.
324 (getCellRenderer): Likewise.
325 * javax/swing/JTree.java
326 (cellRenderer): New field.
327 (editable): Likewise.
328 (rootVisible): Likewise.
329 (showsRootHandles): Likewise.
330 (getModel): New method.
331 (setModel): Likewise.
332 (isEditable): Likewise.
333 (setEditable): Likewise.
334 (isRootVisbile): Likewise.
335 (setRootVisible): Likewise.
336 (getShowsRootHandles): Likewise.
337 (setShowRootHandles): Likewise.
338 (getCellRenderer): Likewise.
339 (setCellRenderer): Likewise.
340
3412004-07-21 Michael Koch <konqueror@gmx.de>
342
343 * javax/swing/JFormattedTextField.java
344 (setDocument): Implemented.
345 * javax/swing/JRootPane.java:
346 Fixed javadocs.
347 * javax/swing/JTable.java
348 (getDefaultRenderer): New method.
349 * javax/swing/JTextField.java
350 (setFont): Likewise.
351 (getPreferredSize): Likewise.
352 * javax/swing/JToggleButton.java
353 (getAccessibleContext): Fix javadoc.
354 * javax/swing/JTree.java:
355 Add some javadocs.
356 * javax/swing/JViewport.java:
357 Likewise.
358
3592004-07-21 David Jee <djee@redhat.com>
360
361 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
362 Collect all native method declaration at the top.
363 (create): Set the filename filter if necessary.
364 (setDirectory): Call nativeSetDirectory().
365 (setFilenameFilter): Implement.
366 (filenameFilterCallback): New method.
367 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
368 (create): Configure dialog to show hidden files.
369 (filenameFilterCallback): New function.
370 (nativeSetFilenameFilter): New function.
371 (nativeSetDirectory): New function.
372
3732004-07-21 Kim Ho <kho@redhat.com>
374
375 * javax/swing/plaf/basic/BasicSliderUI.java:
376 Ran Jalopy.
377 (paintTrack): Fill the track before painting
378 the borders.
379
3802004-07-21 Graydon Hoare <graydon@redhat.com>
381
382 patch from Roman Kennke <roman@ontographics.com>
383 * javax/swing/Spring.java: New file.
384 * javax/swing/SpringLayout.java: New file.
385 * Makefile.am: Add new files.
386 * Makefile.in: Regenerate.
387
3882004-07-21 Graydon Hoare <graydon@redhat.com>
389
390 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
391 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
392 * javax/swing/ScrollPaneLayout.java: Likewise.
393
3942004-07-21 Kim Ho <kho@redhat.com>
395
396 * javax/swing/DefaultDesktopManager.java:
397 (findMinimum): Removed.
398 (resizeFrame): Trust the UI to pass valid
399 bounds.
400 * javax/swing/JOptionPane.java:
401 Implemented showInternalXXXDialog methods.
402 (startModal): New method.
403 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
404 (BorderListener::mouseDragged): Verify that the new
405 bounds are valid before passing them to the DesktopManager.
406 (preferredLayoutSize): Delegate
407 to getSize.
408 (minimumLayoutSize): Ditto.
409 (getSize): New method.
410 (GlassPaneDispatcher): Reimplemented by copying
411 a stripped down LightweightDispatcher from Container.
412 (getMinimumSize): Call minimumLayoutSize.
413 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
414 Ran Jalopy.
415 (mousePressed): Add ability to properly close
416 JInternalFrames.
417 * javax/swing/plaf/basic/BasicToolBarUI.java:
418 (DragWindow): Set owner for DragWindow.
419
4202004-07-21 Jerry Quinn <jlquinn@optonline.net>
421
422 * java/awt/image/ShortLookupTable.java: New file.
423 * java/awt/image/ByteLookupTable.java: New file.
424 * Makefile.am: Added new files.
425 * Makefile.in: Regenerated.
426
4272004-07-21 David Jee <djee@redhat.com>
428
429 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
430 (create(GtkContainerPeer)): New native method.
431 (create()): Call native create(), passing in the parent frame
432 as the paramter. Natively set the current file and directory.
433 (setFile): Construct an absolute filename before passing it to
434 the native peer.
435 (nativeGetDirectory): New method.
436 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
437 (window_closed): Removed.
438 (ok_clicked): Likewise.
439 (cancel_clicked): Likewise.
440 (handle_response): New method.
441 (create): Use GtkFileChooserDialog.
442 (connectSignals): Connect to handle_response.
443 (nativeGetDirectory): New method.
444 (nativeSetFile): Use GtkFileChooserDialog.
445
4462004-07-21 Jerry Quinn <jlquinn@optonline.net>
447
448 * java/awt/image/LookupTable.java: New file.
449 * Makefile.am: Added new file.
450 * Makefile.in: Regenerated.
451
4522004-07-21 Jerry Quinn <jlquinn@optonline.net>
453
454 * java/awt/image/Kernel.java: New file.
455 * Makefile.am: Added new file.
456 * Makefile.in: Regenerated.
457
4582004-07-21 Olga Rodimina <rodimina@redhat.com>
459
460 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
461 * javax/swing/JMenu.java: Likewise.
462 * javax/swing/JMenuBar.java: Likewise.
463 (MARGIN_CHANGED_PROPERTY): New property.
464 (setMargin): Implemented.
465 * javax/swing/JMenuItem.java: Fixed javadocs.
466 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
467 (LABEL_CHANGED_PROPERTY): New property.
468 (add): changed to use createActionComponent.
469 (createActionComponent): Implemented.
470 (setLabel): Fire PropertyChangeEvent if label property
471 changes.
472 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
473 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
474 (ContainerHandler): Repaint if margin property has changed.
475 * javax/swing/plaf/basic/BasicMenuItemUI.java:
476 (installUI): Call installComponents().
477 (uninstallUI): Call uinstallComponents().
478 * javax/swing/plaf/basic/BasicMenuUI.java:
479 Fixed javadocs.
480 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
481 Likewise.
482
4832004-07-21 Kim Ho <kho@redhat.com>
484
485 * javax/swing/plaf/basic/BasicToolBarUI.java:
486 (DragWindow): Use the right constructor.
487
4882004-07-21 Kim Ho <kho@redhat.com>
489
490 * javax/swing/JToolBar.java:
491 (layoutContainer): Use getComponents.
492 * javax/swing/plaf/basic/BasicToolBarUI.java:
493 (DragWindow): Don't use SwingUtilities'
494 getOwnerFrame
495 (ToolBarDialog): ditto.
496
4972004-07-21 Kim Ho <kho@redhat.com>
498
499 * javax/swing/JRootPane.java:
500 Ran jalopy.
501 (layoutContainer): Set the glasspane's size to
502 be the same as the content pane.
503 (createGlassPane): Set opaque property to false.
504
5052004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
506
507 * java/awt/Component.java (requestFocus()): Don't handle Panels
508 specially.
509 (requestFocus(boolean)): Likewise.
510 (requestFocusInWindow(boolean)): Likewise.
511 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
512 Set GTK_CAN_FOCUS flag.
513
5142004-07-21 Kim Ho <kho@redhat.com>
515
516 * Makefile.am: Added new file.
517 * Makefile.in: Regenerated.
518 * gcj/Makefile.in: Regenerated.
519 * include/Makefile.in: Regenerated.
520 * javax/swing/AbstractButton.java:
521 Add rollOverEnabled property.
522 (setRolloverEnabled): Use new property.
523 (isRolloverEnabled): Use new property.
524 * javax/swing/JTabbedPane.java:
525 (setComponent): Remove useless JTabbedPane.this.
526 * javax/swing/JToolBar.java: Finish implementation.
527 * javax/swing/plaf/basic/BasicArrowButton.java:
528 (paint): Moved border painting to a border.
529 * javax/swing/plaf/basic/BasicLookAndFeel.java:
530 Change JToolBar look and feel defaults.
531 * javax/swing/plaf/basic/BasicOptionPaneUI.java
532 (actionPerformed): Return Integer index instead of name.
533 (addButtonComponents): Check to see if component is
534 JButton last.
535 (createMessageArea): Don't use components that are not
536 completed yet.
537 (getIconForType): Use temporary icons.
538 * javax/swing/plaf/basic/BasicSliderUI.java:
539 (mousePressed): Do not return if it's on thumb.
540 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
541 (paintMinorTickForVertSlider): ditto.
542 (paintMajorTickForHorizSlider): ditto.
543 (paintMajorTickForVertSlider): ditto.
544 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
545 Add a border around the SplitPaneDivider.
546 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
547 Remove comments.
548 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
549 New file. Implemented.
550 * javax/swing/plaf/basic/BasicToolBarUI.java:
551 Implemented.
552 * testsuite/Makefile.in: Regenerated.
553
5542004-07-21 Graydon Hoare <graydon@redhat.com>
555
556 * javax/swing/Timer.java (run): Queue events each time cycle.
557
5582004-07-21 David Jee <djee@redhat.com>
559
560 * gnu/java/awt/peer/gtk/GtkImagePainter.java
561 (imageComplete): Call image.imageComplete().
562 * java/awt/image/MemoryImageSource.java:
563 Reimplement consumers as a Vector instead of a Hashtable. This is
564 because enumeration on a Hashtable is not thread-safe.
565 (addConsumer): Adapt to Vector consumers.
566 (isConsumer): Adapt to Vector consumers.
567 (removeConsumer): Adapt to Vector consumers.
568 (startProduction): Adapt to Vector consumers. Call imageComplete()
569 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
570 (newPixels): Adapt to Vector consumers.
571 (sendPicture): Set the color model of the image consumer.
572 (newPixels(IIII)): Adapt to Vector consumers.
573 (newPixels(IIIIB)): Adapt to Vector consumers.
574
5752004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
576
577 * java/awt/Component.java (deliverEvent): Implement.
578 (postEvent): Implement.
579 (handleEvent): Implement.
580 (translateEvent): New method.
581 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
582 * java/awt/Container.java (deliverEvent): Implement.
583 * java/awt/Event.java (paramString): Fix formatting.
584 * java/awt/Font.java (toString): Likewise.
585 * java/awt/Window.java (postEvent): Implement.
586
5872004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
588
589 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
590 Set window's focus owner upon receiving a FOCUS_LOST event.
591 * java/awt/Window.java (Window()): Refocus the previously
592 focused component within the window when the window regains the
593 top-level focus.
594 (setFocusOwner): New method.
595 * java/awt/Component.java (requestFocus): Add FIXME.
596
597 * libgcj.pc.in: Remove library flags.
598
5992004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
600
601 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
602 MOUSE_PRESSED event.
603 * java/awt/Component.java (requestFocus()): Handle Panel
604 specially. Post FOCUS_LOST event on opposite component.
605 (requestFocus(boolean)): Likewise.
606 (requestFocusInWindow(boolean)): Likewise.
607 (paramString): Reorder dimension fields.
608 * java/awt/Container.java (paramString): Fix string format.
609 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
610 Handle FOCUS_LOST events. Don't handle Windows specially. Only
611 process key events if the focus owner is non-null.
612 (dispatchKeyEvent): Likewise.
613 * java/awt/Frame.java (paramString): Fix formatting.
614 (generateName): New method.
615 (getUniqueLong): Likewise.
616 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
617 the temporary focus owner is null. If so, return the permanent
618 focus owner.
619 * java/awt/Panel.java (generateName): New method.
620 (getUniqueLong): Likewise.
621 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
622 signal handling to make callbacks more specific.
623
6242004-07-21 Michael Koch <konqueror@gmx.de>
625
626 * javax/swing/text/Position.java
627 (Bias): Implemented.
628
6292004-07-21 Michael Koch <konqueror@gmx.de>
630
631 * javax/swing/LookAndFeel.java
632 (provideErrorFeedback): New method.
633
6342004-07-21 Michael Koch <konqueror@gmx.de>
635
636 * javax/swing/JTextArea.java
637 (tabSize): New field.
638 (getTabSize): New method.
639 (setTabSize): Likewise.
640
6412004-07-21 Michael Koch <konqueror@gmx.de>
642
643 * javax/swing/ActionMap.java:
644 Fixed javadocs all over.
645 (serialVersionUID): Made private.
646 (parent): Don't explicitely initialize with default value.
647 (get): SImplified.
648 (keys): Reimplemented.
649 (allKeys): Likewise.
650 (convertSet): Removed.
651 * javax/swing/ComponentInputMap.java:
652 Fixed javadocs all over.
653 (ComponentInputMap): Implemented.
654 (put): Likewise.
655 (clear): Likewise.
656 (remove): Likewise.
657 (SetParent): Likewise.
658 (getComponent): Likewise.
659 * javax/swing/InputMap.java:
660 Fixed javadocs all over.
661 (serialVersionUID): Made private.
662 (parent): Don't explicitely initialize with default value.
663 (get): SImplified.
664 (keys): Reimplemented.
665 (allKeys): Likewise.
666 (convertSet): Removed.
667
6682004-07-21 Michael Koch <konqueror@gmx.de>
669
670 * javax/swing/ActionMap.java,
671 javax/swing/ComponentInputMap.java,
672 javax/swing/InputMap.java,
673 javax/swing/table/DefaultTableColumnModel.java,
674 javax/swing/table/TableColumn.java,
675 javax/swing/table/TableColumnModel.java,
676 javax/swing/table/TableModel.java,
677 javax/swing/text/AbstractDocument.java,
678 javax/swing/text/TextAction.java:
679 Reformated.
680
6812004-07-21 Graydon Hoare <graydon@redhat.com>
682
683 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
684 Make method non-static.
685 * javax/swing/AbstractButton.java:
686 Rename fields to match property names where possible.
687 (iconTextGap): New property.
688 * javax/swing/JCheckBox.java: Match AbstractButton changes.
689 (init) New method, call from after various constructors.
690 * javax/swing/JComponent.java (revalidate):
691 Invalidate before queueing repair.
692 * javax/swing/JList.java (getPreferredScrollableViewportSize):
693 Reimplement in terms of visibleRowCount property.
694 * javax/swing/JMenuButton.java: Match AbstractButton changes.
695 * javax/swing/JScrollPane.java (createScrollListener):
696 Remove tracing chatter.
697 * javax/swing/JToggleButton.java: Match AbstractButton changes.
698 * javax/swing/RepaintManager.java (addInvalidComponent):
699 Don't invalidate.
700 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
701 calculations.
702 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
703 Mimic sun behavior on top left/right positioning.
704 * javax/swing/ViewportLayout.java (preferredLayoutSize):
705 Remove mistaken use of preferredScrollableViewportSize here.
706 (layoutContainer): Use view's preferred size as basis.
707 * javax/swing/plaf/basic/BasicButtonUI.java:
708 Set, get, and use textIconGap property.
709 (paint) Paint text returned from layout (with ellipsis).
710 * javax/swing/plaf/basic/BasicListUI.java:
711 Remove tracing chatter, correct various minor calculations.
712 (getCellBounds): Update layout state before calculating.
713 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
714 Use margin default similar to sun's.
715 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
716 (createIncreaseIcon): Center icon, minimize margins.
717 (createDecreaseIcon): Likewise.
718 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
719 Implement.
720 (installUI): Call it.
721 (uninstallDefaults): Implement.
722 (uninstallUI): Call it.
723 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
724 Call existing Window constructor.
725 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
726 Set clip before painting.
727
7282004-07-21 Olga Rodimina <rodimina@redhat.com>
729
730 * javax/swing/JMenuItem.java:
731 (processMouseEvent): Reimplemented to deal with
732 mouse drag events.
733 (createMenuDragMouseEvent): New private helper method.
734 Creates MenuDragMouseEvent.
735 * javax/swing/MenuSelectionManager.java
736 (componentForPoint): Implemented.
737 (isComponentPartOfCurrentMenu): Made public.
738 (processMouseEvent): Reimplemented to deal with
739 mouse drag events.
740 (setSelectedPath): Corrected small mistake that caused
741 path to be set incorrectly.
742 (getPath): If given component is JMenu then also add this
743 menu's popup menu to the selected path.
744 * javax/swing/plaf/basic/BasicMenuItemUI.java:
745 (getPath): Ditto.
746 (getPreferredSize): Call getPreferredMenuItemSize().
747 (getPreferredItemSize): Moved code from getPreferredSize to here.
748 (installListeners): Install MouseMotionListeners.
749 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
750 if mouse wasn't released in the bounds of this menu item.
751 (MenuDragMouseHandler): Implemented.
752 * javax/swing/plaf/basic/BasicMenuUI.java:
753 (installListeners): Install MouseMotionListener and
754 MenuDrageMouseListener.
755 (MenuDragMouseHandler): Implemented.
756 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
757 (uninstallListeners): Implemented.
758
7592004-07-21 Michael Koch <konqueror@gmx.de>
760
761 * javax/swing/JCheckBox.java: Reformated.
762 (JCheckBox): Fixed all constructors.
763 (isBorderPaintedFlat): New method.
764 (setBorderPaintedFlat): New method.
765 * javax/swing/JEditorPane.java
766 (createEditorKitForContentType): Made public.
767 (scrollToReference): Likewise.
768 * javax/swing/JTextArea.java
769 (setLineWrap): Fire property change.
770 * javax/swing/JToggleButton.java
771 (JToggleButton): New constructor.
772 (JToggleButton): Simplified.
773 * javax/swing/text/AttributeSet.java
774 (FontAttribute): Renamed from FontCharacterAttribute.
775 * javax/swing/text/JTextComponent.java
776 (KeyBinBinding): Added javadoc.
777 (JTextComponent): Likewise.
778 (getAccessibleContext): Fixed javadoc.
779 * javax/swing/text/View.java
780 (View): Added javadoc.
781 * javax/swing/text/TabableView.java: New file.
782 * Makefile.am: Added javax/swing/text/TabableView.java.
783 * Makefile.in: Regenerated.
784
7852004-07-21 Graydon Hoare <graydon@redhat.com>
786
787 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
788 * gnu/java/awt/peer/gtk/GtkToolkit.java
789 (GtkErrorImage): New helper class.
790 (bufferedImageOrError): New helper method.
791 (createImage): Use it.
792
7932004-07-21 David Jee <djee@redhat.com>
794
795 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
796 (setCaretPosition): Scroll the text view so the new caret position
797 is visible on screen.
798
7992004-07-21 David Jee <djee@redhat.com>
800
801 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
802 (setBounds): Do not validate awtComponent here.
803 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
804 (getPreferredSize): New method.
805 * java/awt/ScrollPane.java
806 (ScrollPane): Set default size to 100x100.
807 (addNotify): If child is not a Panel, wrap it with a new Panel.
808 (paramString): Implement.
809
8102004-07-21 Olga Rodimina <rodimina@redhat.com>
811
812 * javax/swing/JMenu.java:
813 (setSelected): Display popup menu only if this menu
814 is showing on the screen.
815 * javax/swing/JPopupMenu.java:
816 (processMouseEvent): Added comment.
817 (processKeyEvent): Likewise.
818 * javax/swing/MenuSelectionManager.java:
819 (clearSelectedPath): Only fireStateChanged() after
820 selected path was changed, not before.
821 (setSelectedPath): Likewise.
822 * javax/swing/plaf/basic/BasicMenuItemUI.java:
823 (paintMenuItem): Corrected position of menu item's
824 icon.
825 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
826 (installUI): Correct setDefaultLightWeightPopupEnabled call.
827 (popupMenuCanceled): Reimplemented.
828 (popupMenuWillBecomeVisible): Select first menu item by default
829 when displaying free floating popup menus.
830 (TopWindowListener): Reimplemented.
831
8322004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
833
834 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
835 Panel from being painted twice when it is first shown.
836
8372004-07-21 Olga Rodimina <rodimina@redhat.com>
838
839 * java/awt/Window.java: Reverted changes from my
840 previous patch for creating window without an owner.
841 * javax/swing/SwingUtilities.java:
842 (SwingUtilities.OwnerFrame): made static.
843 (OwnerFrame.setVisible): New method. Overridden with
844 empty implementation.
845 (OwnerFrame.isShowing): New method. Ovverridden
846 to return always true.
847
8482004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
849
850 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
851 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
852 (GtkComponentPeer): Remove temporary try/catch block.
853 (setVisible): Call show and hide.
854 (show): Make native.
855 (hide): Likewise.
856 (getArgs): Don't add "visible" argument.
857 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
858 (property_notify_predicate): Return Bool instead of int.
859 (find_layout): New function.
860 (connectJObject): Call find_layout.
861 (connectSignals): Likewise.
862 (moveLayout): Likewise.
863 (gtkLayoutSetVisible): Likewise.
864
8652004-07-21 Mark Wielaard <mark@klomp.org>
866
867 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
868 on notifier object before calling notifyAll().
869
8702004-07-21 Olga Rodimina <rodimina@redhat.com>
871
872 * java/awt/Window.java: Changed constructors to use new
873 method that is described below. Constructors call this
874 methods only if newly created window should have an owner.
875 (setWindowOwner): New method. Implementation for
876 this method is moved from this(owner,configuration).
877 * javax/swing/JWindow.java:
878 (JWindow): Reimplement to use SwingUtilities.ownerFrame
879 instead of owner.
880 * javax/swing/SwingUtilities.java:
881 (ownerFrame): Change type of this field to OwnerFrame.
882 (getOwnerFrame): Changed to return object of type OwnerFrame.
883 (SwingUtilities.OwnerFrame): New class. Represents owner
884 of a Window that is not provided with one.
885
8862004-07-21 Olga Rodimina <rodimina@redhat.com>
887
888 * javax/swing/AbstractButton.java:
889 (configurePropertiesFromAction): Set action command
890 to button's text by default if action command is not
891 explicitely specified.
892 * javax/swing/JMenu.java: Remove unnecessary listener
893 and methods relevant to it.
894 (setSelected): Reimplemented.
895 (menuSelectionChanged): Moved most part of implementation to
896 setSelected() and call it instead.
897 * javax/swing/JMenuItem.java:
898 (init): Comment out statement that sets paint_border to false.
899 (configurePropertiesFromAction): Do not set accelerator
900 for JMenu.
901 (menuSelectionChanged): Change selected index in the selection
902 model of menu item's parent.
903 * javax/swing/JPopupMenu.java:
904 (remove): Set constraints.fill field to GridBagConstraints.BOTH
905 instead of GridBagConstraints.HORIZONTAL.
906 (insert): Likewise.
907 (createActionChangeListener): Implemented.
908 (setVisible): Correct location of HeavyWeightMenu and
909 don't firePopupMenuCanceled().
910 (menuSelectionChanged): Implemented.
911 (ActionChangeListener): New Listener. Implemented.
912 * javax/swing/plaf/basic/BasicMenuBarUI.java:
913 (BasicMenuBarUI.ContainerHandler): Implemented.
914 * javax/swing/plaf/basic/BasicMenuItemUI.java:
915 (paintMenuItem): Uncommented out code that paints
916 icon, now that icons are working properly.
917 (PropertyChangeListener): Implemented.
918 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
919 Added javadocs.
920 (topWindowListener): New field.
921 (Constructor): initialize topWindowListener.
922 (BasicPopupMenuUI.TopWindowListener): Implemented.
923 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
924 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
925 Implemented.
8e99fb4f
GH
926
9272004-07-21 Michael Koch <konqueror@gmx.de>
928
929 * javax/swing/plaf/basic/BasicButtonUI.java
930 (paintFocus): Fixed method signature.
931 (paintButtonPressed): Likewise.
932 (paintButtonNormal): Likewise.
933 (paintText): New method.
934 * javax/swing/plaf/basic/BasicLabelUI.java
935 (paint): Re-indented.
936 * javax/swing/plaf/basic/BasicTextUI.java
937 (installUI): Set parent textComponent to opaque.
938 * javax/swing/text/DefaultHighlighter.java
939 (checkPositions): New helper method.
940 (addHighlight): Throws BadLocationException, check positions.
941 (changeHighlight): Likewise.
942 * javax/swing/text/EditorKit.java
943 (EditorKit): Implements Serializable.
944 * javax/swing/text/JTextComponent.java
945 (getUI): Added javadoc.
946 (setUI): Likewise.
947 (upadteUI): Added javadoc, don't revalidate and repaint.
948
9492004-07-21 David Jee <djee@redhat.com>
950
951 * java/awt/GridBagLayout.java
952 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
953 * javax/swing/AbstractButton.java
954 (setText): Reindent.
955 * javax/swing/RepaintManager.java
956 (addInvalidComponent): Find the first ancestor that isValidateRoot().
957
9582004-07-21 Michael Koch <konqueror@gmx.de>
959
960 * javax/swing/JFormattedTextField.java
961 (value): New field.
962 (JFormattedTextField): Implemented.
963 (getValue): Likewise.
964 (setValue): Likewise.
965 * javax/swing/LookAndFeel.java
966 (getSupportsWindowDecorations): New method.
967 * javax/swing/UIDefaults.java:
968 Use java.beans.PropertyChangeSupport instead of doing all ourself.
969 (addPropertyChangeListener): Made public.
970 (addResourceBundle): Likewise.
971 (removeResourceBundle): Likewise.
972 (setDefaultLocale): Likewise.
973 * javax/swing/plaf/basic/BasicRootPaneUI.java
974 (BasicRootPaneUI): Implements PropertyChangeListener.
975 (propertyChange): New method.
976 * javax/swing/plaf/basic/BasicTextUI.java
977 (BasicHighlighter): New inner class.
978 (createHighlighter): New method.
979 * javax/swing/plaf/basic/BasicToolBarUI.java
980 (DragWindow): Extends java.awt.Window.
981 * javax/swing/text/JTextComponent.java
982 (getDocument): Removed debug output.
983 * javax/swing/plaf/basic/BasicTextFieldUI.java,
984 javax/swing/text/DefaultHighlighter.java,
985 javax/swing/text/FieldView.java,
986 javax/swing/text/PlainView.java: New files.
987 * Makefile.am: Added new files.
988 * Makefile.in: Regenerated.
989
9902004-07-21 Michael Koch <konqueror@gmx.de>
991
992 * javax/swing/JEditorPane.java
993 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
994 (createEditorKitForContentType): Likewise.
995 * javax/swing/text/DefaultEditorKit.java
996 (serialVersionUID): Added constant field.
997 (EndOfLineStringPropery): Fixed typo.
998 (DefaultEditorKit): New constructor.
999 * javax/swing/text/Segment.java:
1000 Import java.text.CharacterIterator.
1001 * javax/swing/text/CharacterIterator.java,
1002 javax/swing/text/PlainEditorKit.java: Removed.
1003 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
1004 javax/swing/text/PlainEditorKit.java.
1005 * Makefile.in: Regenerated.
1006
10072004-07-21 Michael Koch <konqueror@gmx.de>
1008
1009 * javax/swing/JButton.java,
1010 javax/swing/text/DefaultEditorKit.java,
1011 javax/swing/text/EditorKit.java,
1012 javax/swing/text/Segment.java,
1013 javax/swing/text/StyledEditorKit.java:
1014 Reformatted.
1015
10162004-07-21 Michael Koch <konqueror@gmx.de>
1017
1018 * javax/swing/ImageIcon.java
1019 (file): Removed.
1020 (description): Renamed from descr.
1021 (ImageIcon): Added missing constructors.
1022 (setParent): Removed.
1023 (setImageObserver): New method.
1024 (getImageObserver): New method.
1025 (paintIcon): Handle observer = null.
1026 * javax/swing/JButton.java
1027 (removeNotify): Fixed javadoc.
1028 (updateUI): Simplified.
1029 * javax/swing/JRootPane.java
1030 (serialVersionUID): New constant field.
1031 * javax/swing/UIManager.java:
1032 Fixed javadocs all over.
1033 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
1034 * javax/swing/text/AbstractDocument.java
1035 (createPosition): Throws BadLocationException.
1036 (getText): Likewise.
1037 (remove): Likewise.
1038 * javax/swing/text/ComponentView.java
1039 (modelToView): Likewise.
1040 * javax/swing/text/DefaultEditorKit.java:
1041 Made all public methods public.
1042 (read): Throws BadLocationException and IOException.
1043 (write): Likewise.
1044 * javax/swing/text/EditorKit.java:
1045 Made all public methods public.
1046 (serialVersionUID): New constant field.
1047 (clone): New method.
1048 (read): Throws BadLocationException and IOException.
1049 (write): Likewise.
1050 * javax/swing/text/Segment.java
1051 (array): Made public.
1052 (count): Likewise.
1053 (offset): Likewise.
1054 (Segment): New constructors.
1055 (clone): Reimplemented.
1056 * javax/swing/text/StyledEditorKit.java
1057 (serialVersionUID): New constant field.
1058
10592004-07-21 Graydon Hoare <graydon@redhat.com>
1060
1061 * java/awt/image/BufferedImage.java
1062 (getSource): Implement.
1063 * javax/swing/ImageIcon.java
1064 (ImageIcon): Implement ctor.
1065 * javax/swing/ScrollPaneLayout.java
1066 (preferredLayoutSize): Be more careful about nulls.
1067
10682004-07-21 Michael Koch <konqueror@gmx.de>
1069
1070 * javax/swing/text/AttributeSet.java
1071 (CharacterAttribute): New interface
1072 (ColorAttribute): Likewise.
1073 (FontCharacterAttribute): Likewise.
1074 (ParagraphAttribute): Likewise.
1075 * javax/swing/text/DefaultCaret.java
1076 (moveCaret): New method.
1077 (positionCaret): Likewise.
1078 (repaint): Made protected.
1079 * javax/swing/text/JTextComponent.java
1080 (KeyBinding): Made it static.
1081 * javax/swing/text/View.java
1082 (getContainer): Honor parent == null.
1083
10842004-07-21 Michael Koch <konqueror@gmx.de>
1085
1086 * javax/swing/text/AbstractDocument.java:
1087 Reformatted.
1088
10892004-07-21 Michael Koch <konqueror@gmx.de>
1090
1091 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1092 Import javax.swing.UIManager explicitely.
1093 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
1094 (ScrollingButton): Made it static.
1095
10962004-07-21 Michael Koch <konqueror@gmx.de>
1097
1098 * javax/swing/UIDefaults.java
1099 (ActiveValue): Made public.
1100 (LazyValue): Likewise.
1101 * javax/swing/plaf/basic/BasicTextUI.java
1102 (RootView): Reintroduced.
1103 (view): Removed.
1104 (rootView): New field.
1105 (installUI): Create document if needed, initialize rootView.
1106 (uninstallUI): Hanle rootView.
1107 (paint): Likewise.
1108 (getRootView): Likewise.
1109 (setView): Likewise.
1110 * javax/swing/text/DefaultCaret.java:
1111 Renamed all "evt" variables to "event".
1112
11132004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1114
1115 * libgcj.spec.in: Add -l-java-util-logging.
1116
11172004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
1118
1119 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1120 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
1121 gtk-xft-dpi can no calculate the right value.
1122 (dpi_changed_cb): Mark *pspec as unsused.
1123
11242004-07-21 David Jee <djee@redhat.com>
1125
1126 * java/awt/Component.java
1127 (move): Delegate to setBounds().
1128 (resize): Likewise.
1129 (reshape): Fix so it repaints parent and self only when necessary.
1130
11312004-07-21 David Jee <djee@redhat.com>
1132
1133 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1134 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1135 (GtkComponentPeer): Revert previous patch from 2004-06-22.
1136 (setVisible): Likewise.
1137 (show): Likewise.
1138 (hide): Likewise.
1139 (getArgs): Likewise.
1140 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1141 (property_notify_predicate): Likewise.
1142 (find_layout): Likewise.
1143 (connectJObject): Likewise.
1144 (connectSignals): Likewise.
1145 (moveLayout): Likewise.
1146 (gtkLayoutSetVisible): Likewise.
1147
11482004-07-21 Graydon Hoare <graydon@redhat.com>
1149
1150 * Makefile.am
1151 (jv_convert_LDADD):
1152 (gij_LDADD):
1153 (rmic_LDADD):
1154 (rmiregistry_LDADD): Add lib-java-util-logging.la
1155 * Makefile.in: Regenerate.
1156
11572004-07-21 Michael Koch <konqueror@gmx.de>
1158
1159 * javax/swing/text/AbstractDocument.java
1160 (replace): Dont use protected method of java.util.Vector directly.
1161
11622004-07-21 Michael Koch <konqueror@gmx.de>
1163
1164 * javax/swing/plaf/basic/BasicTextUI.java
1165 (installUI): Call specialized install methods.
1166 (installDefaults): New method.
1167 (installListeners): Likewise.
1168 (installKeyboardActions): Likewise.
1169 (uninstallUI): Likewise.
1170 (uninstallDefaults): New method.
1171 (uninstallListeners): Likewise.
1172 (uninstallKeyboardActions): Likewise.
1173 (getPropertyPrefix): New abstract method.
1174 (paint): Made final, just call paintSafely().
1175 (paintSavely): New method.
1176 (paintBackground): Likewise.
1177 (getVisibleEditorRect): Likewise.
1178 * javax/swing/text/LayeredHighlighter.java,
1179 javax/swing/text/TabExpander.java: New files.
1180 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
1181 and javax/swing/text/TabExpander.java.
1182 * Makefile.in: Regenerated.
1183
11842004-07-21 Michael Koch <konqueror@gmx.de>
1185
1186 * javax/swing/plaf/basic/BasicTextUI.java
1187 (BasicTextUI): Made abstract.
1188 (BasicCaret): New inner class.
1189 (view): Don't explicitely initialize with "null".
1190 (textComponent): New field.
1191 (textColor): Removed.
1192 (disabledTextColor): Removed.
1193 (normalBackgroundColor): Removed.
1194 (RootView): Removed commented out inner class.
1195 (createUI): Removed.
1196 (createCaret): New method.
1197 (getComponent): Likewise.
1198 (installUI): Initialize textComponent only.
1199 (getPreferredSize): Use installed JTextComponent.
1200 (setView): New method.
1201 (create): Likewise.
1202 * javax/swing/text/JTextComponent.java
1203 (highlighter): New field.
1204 (caretColor): Likewise.
1205 (disabledTextColor): Likewise.
1206 (seletedTextColor): Likewise.
1207 (selectionColor): Likewise.
1208 (setUI): New method.
1209 (getCaretColor): Likewise.
1210 (setCaretColor): Likewise.
1211 (getDisabledColor): Likewise.
1212 (setDisabledColor): Likewise.
1213 (getSelectedTextColor): Likewise.
1214 (setSelectedTextColor): Likewise.
1215 (getSelectionColor): Likewise.
1216 (setSelectionColor): Likewise.
1217 (getHighlighter): Likewise.
1218 (setHighlighter): Likewise.
1219 (replaceSelection): Likewise.
1220
12212004-07-21 Michael Koch <konqueror@gmx.de>
1222
1223 * javax/swing/plaf/basic/BasicScrollPaneUI.java
1224 (BasicScrollPaneUI): Implements ScrollPaneConstants.
1225 * javax/swing/plaf/basic/BasicToolBarUI.java
1226 (BasicToolBarUI): Implements SwingConstants.
1227
12282004-07-21 Michael Koch <konqueror@gmx.de>
1229
1230 * javax/swing/JPopupMenu.java: Removed CVS tags.
1231 * javax/swing/UIDefaults.java: Reformatted.
1232 * javax/swing/plaf/basic/BasicRootPaneUI.java:
1233 Explicitely import used classes.
1234
12352004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1236
1237 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1238 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1239 (GtkComponentPeer): Remove temporary try/catch block.
1240 (setVisible): Call show and hide.
1241 (show): Make native.
1242 (hide): Likewise.
1243 (getArgs): Don't add "visible" argument.
1244 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1245 (property_notify_predicate): Return Bool instead of int.
1246 (find_layout): New function.
1247 (connectJObject): Call find_layout.
1248 (connectSignals): Likewise.
1249 (moveLayout): Likewise.
1250 (gtkLayoutSetVisible): Likewise.
1251
12522004-07-21 Olga Rodimina <rodimina@redhat.com>
1253
1254 * javax/swing/AbstractButton.java:
1255 (setDisplayedMnemonicIndex): Check if button
1256 text is not null before checking its length.
1257 * javax/swing/JMenuItem.java:
1258 (processMouseEvent): Disarm menu item if mouse has
1259 exited it.
1260 * javax/swing/plaf/basic/BasicMenuUI.java:
1261 (MouseInputHandler.mouseEntered): Do not raise
1262 popup menu if this menu is already selected.
1263 (MouseInputHandler.mousePressed): Do not fire
1264 MenuEvents.
1265 (MenuHandler): Implemented.
1266
12672004-07-21 Olga Rodimina <rodimina@redhat.com>
1268
1269 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
1270 (getSelectedObjects): Implemented.
1271 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
1272 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
1273 Added javadoc for few methods.
1274 (processMouseEvent): Made public.
1275 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
1276 (processMouseEvent): Likewise.
1277
12782004-07-21 Olga Rodimina <rodimina@redhat.com>
1279
1280 * javax/swing/AbstractButton.java:
1281 (init): Set display mnemonic index to -1.
1282 (setMnemonic(char)): Use setMnemonic(int).
1283 (setMnemonic(int)): Set display mnemonic index.
1284 (getDisplayedMnemonicIndex): Change method signature
1285 by removing 'index' parameter.
1286 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1287 Added default for Menu.selectionBackground.
1288 * javax/swing/plaf/basic/BasicMenuItemUI.java:
1289 (paintMenuItem): Change background color of the selected
1290 menu item.
1291 (paintText): Paint differently when menu item is disabled.
1292 Also paint mnemonic if it appears in the menu item's label.
1293 (paintAccelerator): Paint accelerator differently
1294 if menu item is disabled.
1295 * javax/swing/plaf/basic/BasicMenuUI.java:
1296 (installDefaults): Install defaults for
1297 selectionForeground and selectionBackground.
1298 (uninstallDefaults): Uninstall defauls for
1299 selectionForeground and selectionBackground.
1300
13012004-07-21 Michael Koch <konqueror@gmx.de>
1302
1303 * javax/swing/text/AbstractDocument.java
1304 (BranchElement): Implemented.
1305 (LeafElement): Implemented.
1306 * javax/swing/text/DefaultCaret.java:
1307 Import used classes.
1308 (serialVersionUID): New constant.
1309 * javax/swing/text/JTextComponent.java
1310 (AccessibleJTextComponent): Removed dead declaration.
1311 (caretPos): Removed.
1312 (setCaret): New method.
1313 * javax/swing/text/PlainDocument.java
1314 (rootElement): New field.
1315 (PlainDocument): Initialize rootElement.
1316 (createDefaultRoot): New method.
1317 (getDefaultRootElement): Implemented.
1318 * javax/swing/text/View.java: Reformatted.
1319 * javax/swing/text/ViewFactory.java
1320 (create): Added javadoc.
1321
13222004-07-21 Michael Koch <konqueror@gmx.de>
1323
1324 * javax/swing/ToolTipManager.java: Reformatted.
1325
13262004-07-21 Rodimina Olga <rodimina@redhat.com>
1327
1328 * javax/swing/AbstractButton.java
1329 (changeEvent): New field.
1330 (fireItemStateChanged): Change source of the event
1331 to 'this' before firing it to button listeners.
1332 (fireActionPerformed): Likewise.
1333 (fireStateChanged): Likewise.
1334 (createActionListener): Do not set source
1335 of the event to AbstractButton.
1336 * javax/swing/plaf/basic/BasicMenuBarUI.java:
1337 (ContainerHandler.componentAdded): Removed
1338 print out statement.
1339 (ContainerHandler.componentRemoved): Likewise.
1340
13412004-07-21 Michael Koch <konqueror@gmx.de>
1342
1343 * javax/swing/text/Highlighter.java: New file.
1344 * Makefile.am: Added javax/swing/text/Highlighter.java.
1345 * Makefile.in: Regenerated.
1346
13472004-07-21 Michael Koch <konqueror@gmx.de>
1348
1349 * javax/swing/ToolTipManager.java
1350 (stillInsideTimerAction): Fixed constructor arguments.
1351 (outsideTimerAction): Likewise.
1352 (insideTimerAction): Likewise.
1353
13542004-07-21 Michael Koch <konqueror@gmx.de>
1355
1356 * javax/swing/JButton.java: Reformatted.
1357 * javax/swing/JFormattedTextField.java
1358 (getUIClassID): Implemented.
1359 * javax/swing/JRootPane.java
1360 (serialVersionUID): New constant.
1361 * javax/swing/JTextField.java
1362 (align): New field.
1363 (JTextField): Simplified.
1364 (getUIClassID): New method.
1365 (getActionListeners): Added @since tag.
1366 (setColumns): Invalidate layout and repaint.
1367 (getHorizontalAlignment): New method.
1368 (setHorizontalAlignment): New method.
1369 (selectAll): Removed.
1370 * javax/swing/SwingUtilities.java
1371 (getAncestorOfClass): Removed redundant @see tag.
1372 (isLeftMouseButton): Fixed implementation.
1373 (isMiddleMouseButton): Likewise.
1374 (isRightMouseButton): Likewise.
1375 * javax/swing/text/AbstractDocument.java
1376 (AttributeContext.addAttribute): New method.
1377 (AttributeContext.addAttributes): New method.
1378 (AttributeContext.getEmptySet): New method.
1379 (AttributeContext.reclaim): New method.
1380 (AttributeContext.removeAttribute): New method.
1381 (AttributeContext.removeAttributes): New method.
1382 * javax/swing/text/Document.java
1383 (createPosition): Throws BadLocationException.
1384 (getText): Likewise.
1385 (remove): Likewise.
1386 * javax/swing/text/JTextComponent.java
1387 (getText): Return null if no document is set. Catch
1388 BadLocationException.
1389 (getUI): Return ui.
1390 (updateUI): Simplified.
1391
13922004-07-21 Michael Koch <konqueror@gmx.de>
1393
1394 * javax/swing/JButton.java
1395 (removeNotify): Fixed javadoc.
1396 (updateUI): Simplified.
1397
13982004-07-21 David Jee <djee@redhat.com>
1399
1400 * gnu/java/awt/image/ImageDecoder.java
1401 (startProduction): Only add consumer if it's not added yet.
1402 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
1403 (GdkPixbufDecoder): Don't call initState() here.
1404 (produce): Call initState() here, to ensure area_prepared and
1405 area_updated signals are properly connected.
1406 * gnu/java/awt/peer/gtk/GtkImage.java
1407 (setColorModel): Use equals() to compare ColorModel objects.
1408 (setPixels): Likewise.
1409 * java/awt/image/ColorModel.java
1410 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
1411 * java/awt/image/RGBImageFilter.java
1412 (setColorModel): Set consumer's color model.
1413 (setPixels): Use equals() to compare ColorModel objects.
1414
eecbcf54
BM
14152004-07-21 Bryce McKinlay <mckinlay@redhat.com>
1416
1417 * java/net/URLConnection.java (position): New field.
1418 (dateFormat1, dateFormat2, dateFormat3): Removed.
1419 (dateFormats): New field.
1420 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
1421 each time instead of re-allocating.
1422 (initializeDateFormats): Initialize 'dateFormats'.
1423
f82bb1be
BM
14242004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1425
1426 PR libgcj/16591
1427 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
1428 is defined.
1429
f6bbce40
BM
14302004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1431
1432 * java/net/Socket.java (getImpl): Now private. Remove comment.
1433
8246c778
BM
14342004-07-20 Bryce McKinlay <mckinlay@redhat.com>
1435
1436 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
1437 of chained Writer when calling super-constructor.
1438 * java/io/FilterWriter.java (FilterWriter): Likewise.
1439 * java/io/PrintWriter.java (PrintWriter): Likewise.
1440
b4ffdef7
BM
14412004-07-19 Bryce McKinlay <mckinlay@redhat.com>
1442
1443 * prims.cc (process_gcj_properties): Don't increment i within LHS
1444 of assignment.
1445
963ddbd5
PB
14462004-07-19 Per Bothner <per@bothner.com>
1447
1448 Print -verbose:message on "loading", not initialization.
1449 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
1450 * defineclass.cc (_Jv_ClassReader::parse): Print message if
1451 gcj::verbose_class_flag.
1452 * java/lang/natClass.cc (initializeClass): Don't print message here.
1453 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
1454 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
1455 (_Jv_PrepareCompiledClass): Likewise.
1456
60557047
MK
14572004-07-18 Matthias Klose <doko@debian.org>
1458
1459 * configure.in: Substitute target_noncanonical.
1460 * configure: Regenerate
1461
1792f52d
MK
14622004-07-17 Michael Koch <konqueror@gmx.de>
1463
1464 * java/lang/String.java: Fixed javadocs all over.
1465
baa61e09
MK
14662004-07-17 Mark Wielaard <mark@klomp.org>
1467
1468 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
1469 when size is smaller.
1470 * java/io/RandomAccessFile.java (setLength): Use truncate for
1471 shrinking the file and seek plus write for expanding the file.
1472
14732004-07-17 Michael Koch <konqueror@gmx.de>
1474
1475 * gnu/java/nio/channels/natFileChannelPosix.cc
1476 (implTruncate): Always save current position. Only reposition file
1477 pointer to where we started if not beyond new lenght. Reposition file
1478 pointer to file length if it points beyond the end of file.
1479
6fd3cc05
MW
14802004-07-17 Mark Wielaard <mark@klomp.org>
1481
1482 * javax/swing/Box.java: Put FIXME comment above class declaration.
1483 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1484 * javax/swing/JCheckBox.java: Likewise.
1485 * javax/swing/JDialog.java: Likewise.
1486 * javax/swing/JRadioButton.java: Likewise.
1487 * javax/swing/JToggleButton.java: Likewise.
1488 * javax/swing/UIManager.java: Likewise.
1489 * javax/swing/border/TitledBorder.java: Likewise.
1490 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1491 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1492 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1493 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1494 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1495 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1496 * javax/swing/text/JTextComponent.java: Likewise.
1497
320e32f6
MK
14982004-07-17 Jeroen Frijters <jeroen@frijters.net>
1499
1500 * java/net/DatagramPacket.java (setAddress): Removed check for
1501 null address.
1502
15032004-07-17 Michael Koch <konqueror@gmx.de>
1504
1505 * java/net/DatagramSocket.java
1506 (getLocalAddress): Check if socket is bound or not.
1507 * java/net/Socket.java
1508 (getLocalAddrss): Check if socket is bound or not.
1509 (getPort): Return -1 when not connected. Dont check getImpl() for
1510 null.
1511 (setReuseAddress): Check if socket is closed.
1512 (isConnected): Check if getImpl() returns null.
1513
10c383a4
MW
15142004-07-17 Mark Wielaard <mark@klomp.org>
1515
1516 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
1517 on notifier object before calling notifyAll().
1518
2ccc5a95
MK
15192004-07-17 Michael Koch <konqueror@gmx.de>
1520
1521 * gnu/java/nio/channels/FileChannelImpl.java
1522 (finalize): Added javadoc.
1523
61ce29b1
GL
15242004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
1525
1526 * java/text/CollationElementIterator.java
1527 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
1528 (setText): Use ArrayList instead of Vector.
1529
651ba822
MK
15302004-07-17 Michael Koch <konqueror@gmx.de>
1531
1532 * java/nio/ByteOrder.java
1533 (static): Removed. Not needed.
1534 Thanks to Patrick Reali for noticing.
1535 * java/nio/charset/CharsetDecoder.java
1536 (decode): Fix for classpath bug #9177: Reset state before flipping.
1537
e3fe5b9c
MK
15382004-07-17 Michael Koch <konqueror@gmx.de>
1539
1540 * java/security/Security.java: Fixed javadocs all over.
1541
316a1df4
MK
15422004-07-17 Michael Koch <konqueror@gmx.de>
1543
1544 * gnu/java/awt/EmbeddedWindow.java
1545 (static): Removed.
1546 (addNotify): Set peer via reflection.
1547 (setWindowPeer): Removed.
1548 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1549 * Makefile.am (nat_source_files):
1550 Removed gnu/java/awt/natEmbeddedWindow.cc.
1551 * Makefile.in: Regenerated.
1552
c0f43fa7
RE
15532004-07-17 Richard Earnshaw <rearnsha@arm.com>
1554
1555 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
1556 assignment.
1557 * configure: Regenerated.
1558
4c86f325
NN
15592004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1560
b764adea
NN
1561 * configure.in: Use build_noncanonical rather than build_alias.
1562 * configure: Rebuild.
1563
f11d297f
NN
1564 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
1565 by logic refactoring. Move default definition of NATIVE closer
1566 to first alternate definition.
1567 * configure: Regenerate.
1568
4c86f325
NN
1569 * Makefile.am: Set ZIP and GCJH directly using autoconf.
1570 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
1571 gcj/Makefile.in: Regenerate.
1572 * configure.in: Set ZIP and GCJH. Remove redundant condition
1573 in AM_CONDITIONAL(NATIVE,...)
1574 * configure: Regenerate.
1575
bc03b358
NN
15762004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
1577
ed2e3d33
NN
1578 * configure.in: Use target_noncanonical rather than
1579 target_alias for forward-compatibility with autoconf 2.59.
1580 * configure: Regenerate.
1581 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
1582 testsuite/Makefile.am: Substitute target_noncanonical.
1583 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1584 testsuite/Makefile.in: Regenerate.
1585
bc03b358
NN
1586 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
1587 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
1588 * acinclude.m4: Include acx.m4.
1589 * aclocal.m4: Regenerate.
1590 * configure: Regenerate.
1591
cbd7a79b
BM
15922004-07-15 Bryce McKinlay <mckinlay@redhat.com>
1593
1594 PR libgcj/16574
1595 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
1596 (decimalFormat): New static variable.
1597 (sbuf): Likewise.
1598 (getTime): New. Override Date.getTime().
1599 (toString): Synchronize. Use decimalFormat to format nanos value
1600 correctly. Truncate extra zeros.
1601 (before): Compare getNanos() only if getTime() is equal.
1602 (after): Likewise.
1603
b2281cb3
NN
16042004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1605
36609570
NN
1606 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
1607 * configure.in: ...here.
1608 * aclocal.m4: Regenerate.
1609 * configure: Regenerate.
1610
b2281cb3
NN
1611 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
1612 * configure: Rebuilt with autoconf 2.13.
1613 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1614 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
1615
b845ed9f
BM
16162004-07-14 Bryce McKinlay <mckinlay@redhat.com>
1617
1618 PR libgcj/16204
1619 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
1620 large file support.
1621 * Makefile.in: Rebuilt.
1622 * testsuite/libjava.lang/LargeFile.java: New test case.
1623 * testsuite/libjava.lang/LargeFile.out: New file.
1624
ade1907d
JQ
16252004-07-14 Jerry Quinn <jlquinn@optonline.net>
1626
1627 * java/beans/EventHandler.java: Remove debugging statements.
1628
12e8e7ea
JQ
16292004-07-14 Jerry Quinn <jlquinn@optonline.net>
1630
1631 * java/beans/EventHandler.java: New file.
1632 * Makefile.am (awt_java_source_files): Add EventHandler.java.
1633 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1634 testsuite/Makefile.in: Regenerate.
1635
7cb73054
AT
16362004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
1637
1638 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
1639 flag to the gcj_setup.
1640 (gcj_jacks_run): Check tclsh version and launch jacks directly with
1641 the tclsh.
1642 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
1643 deprecation flag change. 58 XFAILS removed.
1644
220a826e
UW
16452004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1646
1647 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
1648 -fno-use-divide-subroutine.
1649 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
1650 (HANDLE_FPE): Define.
1651 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
1652 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1653 (HANDLE_DIVIDE_OVERFLOW): Define.
1654
c1b4f64d
MK
16552004-07-14 Michael Koch <konqueror@gmx.de>
1656 Matthias Klose <doko@debian.org>
1657
12e8e7ea 1658 * java/awt/im/InputContext.java: Initialize in, line.
c1b4f64d 1659
5549179f
UW
16602004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
1661
1662 * interpret.cc (run): Correctly access libffi return values of
1663 integral smaller-than-int type; these are implicitly promoted.
1664
6187fd28
BM
16652004-07-13 Bryce McKinlay <mckinlay@redhat.com>
1666
1667 PR libgcj/7587
1668 * interpret.cc (compile_mutex): New.
1669 (_Jv_InitInterpreter): New. Initialize compile_mutex.
1670 (run): Lock compile_mutex before calling compile() if compilation is
1671 required.
1672 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
1673 * include/java-interp.h (_Jv_InitInterpreter): Declare.
1674
7a1c3d48
BM
16752004-07-12 Bryce McKinlay <mckinlay@redhat.com>
1676
1677 PR libgcj/15713
1678 * include/jvm.h (_Jv_value): New union type.
1679 * gcj/field.h (_Jv_Field): Add new _addr union field variants
1680 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
1681 union members.
1682
717b2091
SG
16832004-07-12 Scott Gilbertson <scottg@mantatest.com>
1684
1685 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
1686 * gnu/awt/xlib/XOffScreenImage.java
1687 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
1688 constructor argument. Add constructor using ImageProducer.
1689 (getSource): Implement.
1690 (imageComplete): New method.
1691 (setColorModel): New method.
1692 (setDimensions): New method.
1693 (setHints): New method.
1694 (setPixels): New method.
1695 (setProperties): New method.
1696 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
1697 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
1698
31a7b755
BM
16992004-07-11 Bryce McKinlay <mckinlay@redhat.com>
1700
abd1b60d 1701 PR libgcj/16478
31a7b755
BM
1702 * prims.cc (_Jv_CreateJavaVM): Fix comment.
1703 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
1704 (finalizerReady): Now native.
1705 (run): Likewise.
1706 (runFinalizers): Removed.
1707 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
1708 a primitive lock, and don't hold it while running the finalizers.
1709 (runFinalizers): Implement. Don't aquire any Java lock.
1710 (finalizerReady): Use lock primitives to signal finalizer thread.
1711
eeb32988
MW
17122004-07-11 Mark Wielaard <mark@klomp.org>
1713
1714 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
1715 * java/net/URLStreamHandler.java (parseURL): When url file part
1716 doesn't contain a '/' just ignore context.
1717
bbb362e6
UW
17182004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
1719
1720 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
1721 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
1722 (MAKE_THROW_FRAME): Do not modify PSW address.
1723 (INIT_SEGV): Install SIGINFO-style signal handler.
1724 (INIT_FPE): Likewise.
1725
33dc5b0b
BM
17262004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1727
1728 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
1729 status. 21 xfail's removed, 1 added.
1730
a4548f27
BM
17312004-07-10 Bryce McKinlay <mckinlay@redhat.com>
1732
1733 * gcj/javaprims.h: Regenerate CNI namespace definitions.
1734
8f0ce8da
IK
17352004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
1736
1737 * java/text/MessageFormat.java
1738 (formatInternal): Append "{n}" if argument n is unavailable.
1739 (format(Object, StringBuffer, FieldPosition)): This
1740 should be equivalent to format(Object[],
1741 StringBuffer, FieldPosition).
1742
3ee7acd1
BM
17432004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1744
1745 * java.util.Calendar.java (cache): New private static field. Cached
1746 mappings of locales->calendar classes.
1747 (ctorArgTypes): New private static field. Singleton argument for
1748 calendar class constructor lookup.
1749 (getInstance): Cache Locale->Calendar class mappings using HashMap.
1750 Optimize by bypassing reflection instantiation for the
1751 GregorianCalendar case.
1752
284d6a1f
BM
17532004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1754
1755 * java/util/Calendar.java: Use getSystemClassLoader as argument for
1756 ResourceBundle.getBundle() calls.
1757 * java/util/GregorianCalendar.java: Likewise.
1758 * java/util/Currency.java: Likewise.
1759 * java/text/BreakIterator.java: Likewise.
1760 * java/text/Collator.java: Likewise.
1761 * java/text/DateFormat.java: Likewise.
1762 * java/text/DateFormatSymbols.java: Likewise.
1763 * java/text/DecimalFormatSymbols.java: Likewise.
1764 * java/text/NumberFormat.java: Likewise.
1765 * java/awt/Window.java: Likewise.
1766
21f56031
BM
17672004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1768
1769 * java/util/ResourceBundle.java (bundleCache): Renamed from
1770 resourceBundleCache. Update comments.
1771 (getObject): Don't catch MissingResourceException.
1772 (getBundle(String)): Remove 'final'. Use system classloader if
1773 getCallingClassLoader returned null.
1774 (getBundle(String, Locale)): Likewise.
1775 (BundleKey): New private class. HashMap key for bundle cache lookup.
1776 (lookupKey): New. Singleton instance of BundleKey.
1777 (nullEntry): New. Cache entry to represent failed lookups.
1778 (getBundle(String, Locale, ClassLoader)): Re-written to use new
1779 caching strategy, no-allocation lookup, and new tryBundle methods.
1780 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
1781 name using given classloader.
1782 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
1783 baseName for given Locale and attempt to load bundle.
1784
42c00752
BM
17852004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1786
1787 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
1788 illegal protected method calls.
1789
6e342fc1
BM
17902004-07-09 Bryce McKinlay <mckinlay@redhat.com>
1791
1792 Fix or remove some bogus test cases.
1793 * testsuite/libjava.compile/pr10459_2.java: Removed.
1794 * testsuite/libjava.compile/pr10459.java: Test using its own method,
1795 not Object.clone().
1796 * testsuite/libjava.compile/inner_data.java: Test against its own
1797 protected field.
1798
1f33f6b4
MK
17992004-07-09 Michael Koch <konqueror@gmx.de>
1800
1801 * scripts/unicode-muncher.pl: Updated to version 2.1
1802 from GNU classpath. Added some clarifications on where to find the
1803 needed files from www.unicode.org.
1804 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
1805 gnu/gcj/convert/UnicodeData-3.0.0.txt:
1806 Removed, these can directly be downloaded from www.unicode.org if
1807 needed.
1808 * gnu/java/lang/CharData.java: Regenerated.
1809 * include/java-chartables.h: Regenerated.
1810 * Makefile.am (ordinary_java_source_files):
1811 Removed gnu/java/lang/CharData.java.
1812 * Makefile.in: Regenerated.
1813
771aacd3
MK
18142004-07-09 Michael Koch <konqueror@gmx.de>
1815
1816 * java/security/AccessControlContext.java,
1817 java/security/SecureClassLoader.java:
1818 Fixed javadocs.
1819
3d5f053c
MK
18202004-07-09 Michael Koch <konqueror@gmx.de>
1821
1822 * java/io/ObjectInputStream.java (readFields): Use long datatype
1823 when shifting byte values more then 24 bits left.
1824
d642571f
MK
18252004-07-09 Michael Koch <konqueror@gmx.de>
1826
1827 * java/util/zip/DeflaterOutputStream.java,
1828 java/util/zip/GZIPInputStream.java,
1829 java/util/zip/GZIPOutputStream.java,
1830 java/util/zip/InflaterInputStream.java:
1831 Reformatted. Added javadocs. Reordered all stuff.
1832 Renamed variables to be more clear.
1833
3042e24b
MK
18342004-07-09 Michael Koch <konqueror@gmx.de>
1835
1836 * javax/imageio/IIOException.java,
1837 javax/imageio/event/IIOReadProgressListener.java,
1838 javax/imageio/event/IIOReadUpdateListener.java,
1839 javax/imageio/event/IIOReadWarningListener.java,
1840 javax/imageio/event/IIOWriteProgressListener.java,
1841 javax/imageio/event/IIOWriteWarningListener.java:
1842 New files.
1843 * Makefile.am: Added new files.
1844 * Makefile.in: Regenerated.
1845
4a738a82
GL
18462004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
1847
1848 * java/text/RuleBasedCollator.java
1849 (mergeRules): Use ArrayList instead of Vector.
1850 (subParseString): likewise.
1851 (parseString): likewise.
1852 (buildCollationVector): likewise.
1853 (getCollationKey): likewise.
1854
28e0ee76
DT
18552004-07-09 Dalibor Topic <robilad@kaffe.org>
1856
1857 * java/text/DateFormat.java (parse):
1858 Improved javadoc. Improved exception message.
1859
2e54a860
MW
18602004-07-09 Mark Wielaard <mark@klomp.org>
1861
1862 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
1863 interrupted() method to clear interupt flag of our Thread.
1864
23c41c08
DT
18652004-07-09 Dalibor Topic <robilad@kaffe.org>
1866
1867 * java/nio/Buffer.java,
1868 java/nio/ByteBuffer.java,
1869 java/nio/ByteBufferHelper.java,
1870 java/nio/ByteBufferImpl.java,
1871 java/nio/CharBuffer.java,
1872 java/nio/CharBufferImpl.java,
1873 java/nio/CharViewBufferImpl.java,
1874 java/nio/DirectByteBufferImpl.java,
1875 java/nio/DoubleBuffer.java,
1876 java/nio/DoubleBufferImpl.java,
1877 java/nio/DoubleViewBufferImpl.java,
1878 java/nio/FloatBuffer.java,
1879 java/nio/FloatBufferImpl.java,
1880 java/nio/FloatViewBufferImpl.java,
1881 java/nio/IntBuffer.java,
1882 java/nio/IntBufferImpl.java,
1883 java/nio/IntViewBufferImpl.java,
1884 java/nio/LongBuffer.java,
1885 java/nio/LongBufferImpl.java,
1886 java/nio/LongViewBufferImpl.java,
1887 java/nio/MappedByteBufferImpl.java,
1888 java/nio/ShortBuffer.java,
1889 java/nio/ShortBufferImpl.java,
1890 java/nio/ShortViewBufferImpl.java:
1891 Fixed javadocs all over. Improved input error
1892 checking.
1893
1894 * java/nio/Buffer.java
1895 (checkForUnderflow, checkForOverflow, checkIndex,
1896 checkIfReadOnly, checkArraySize): New helper methods
1897 for error checking.
1898
1899 * java/nio/ByteBufferHelper.java
1900 (checkRemainingForRead, checkRemainingForWrite,
1901 checkAvailableForRead, checkAvailableForWrite): Removed
1902 no longer needed methods.
1903
e484d7d5
MK
19042004-07-09 Michael Koch <konqueror@gmx.de>
1905
1906 * gnu/regexp/CharIndexedInputStream.java:
1907 Reordered imports to match classpath.
1908
3e518ab0
MK
19092004-07-09 Michael Koch <konqueror@gmx.de>
1910
1911 * gnu/java/awt/EmbeddedWindow.java:
1912 Load native library for setWindowPeer method.
1913
8c5ac2c4
RC
19142004-07-08 Randolph Chung <tausq@debian.org>
1915
1916 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
1917 * configure: Regenerate.
1918 * configure.host: Set can_unwind_signal for hppa*-linux.
1919 * include/pa-signal.h: New file.
1920
0bd24153
PB
19212004-07-07 Per Bothner <per@bothner.com>
1922
fedf5454
PB
1923 * Makefile.am: Add rules to build libgij from just gij.cc.
1924
0bd24153
PB
1925 * include/jvm.h (namespace jcj): Declare verbose_class_flag
1926 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
1927 (initializeClass): If verbose_class_flag, print message.
1928 * gij.cc (main): Handle -verbose:class flag.
1929
0e497b6c
AT
19302004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
1931
1932 * configure.host: Enable hash synchronization on Darwin.
1933 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
1934 ';', since this is a comment on Darwin.
1935 (compare_and_swap_release): Likewise.
1936
c09bade6
ME
19372004-07-06 Mohan Embar <gnustuff@thisiscool.com>
1938
1939 * java/net/URLStreamHandler.java (parseURL): Canonicalize
1940 file portion of URL in addition to spec for file: protocol.
1941
23f99379 19422004-07-05 Anthony Green <green@redhat.com>
0e497b6c 1943
23f99379
AG
1944 * java/io/File.java (toURI): Merge from Classpath.
1945
a1433c46
BM
19462004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1947
1948 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
1949 before passing to URL constructor. Rethrow any MalformedURLException
1950 as a RuntimeException. Catch MalformedURLException specifically, not
1951 all exceptions.
0e497b6c 1952
a86f0372
BM
19532004-07-05 Bryce McKinlay <mckinlay@redhat.com>
1954
1955 * java/util/Locale.java (readObject): Intern strings read from object
1956 stream.
1957
74fa958e
MK
19582004-07-04 Michael Koch <konqueror@gmx.de>
1959
1960 * gnu/gcj/runtime/FirstThread.java,
1961 gnu/gcj/runtime/natFirstThread.cc: Removed.
1962 * gnu/java/lang/MainThread.java,
1963 gnu/java/lang/natMainThread.cc: New files.
1964 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
1965 * Makefile.am: Added new files and removed deleted ones.
1966 * Makefile.in: Regenerated.
1967
94fbf267 19682004-07-03 Mark Wielaard <mark@klomp.org>
0e497b6c 1969 Anthony Green <green@redhat.com>
94fbf267
AG
1970
1971 * java/net/URL.java (getFile): Clarify return value doc.
1972 (getPath): Return null if file is empty - not empty String.
1973 (set): Convert protocol to lower case before doing anything.
1974 Only change the protocol handler if it's different.
1975
19762004-07-03 Anthony Green <green@redhat.com>
1977
1978 * java/net/URL.java (URL): Convert protocol to lower case before
1979 doing anything, so we getURLStreamHandler() with the proper value.
1980
b5349c07
BM
19812004-07-02 Bryce McKinlay <mckinlay@redhat.com>
1982
1983 * java/util/Locale.java (hashcode): Made transient.
1984 (hashCode): No longer synchronized.
1985 (equals): Remove comment.
1986 (writeObject): No longer synchronized. Implement using writeObject
1987 calls instead of tweaking hashCode field. Update doc.
1988 (readObject): Implement using readObject calls.
1989
f8a57be8
GK
19902004-06-26 Geoffrey Keating <geoffk@apple.com>
1991 Andreas Tobler <a.tobler@schweiz.ch>
1992
1993 * configure.host (powerpc-*-darwin*): New case, define
1994 can_unwind_signal.
1995 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
1996 * configure: Regenerate.
1997 * include/darwin-signal.h: New.
1998
dcfbe7c7
JQ
19992004-06-30 Jerry Quinn <jlquinn@optonline.net>
2000
2001 * java/beans/Statement.java (doExecute): Fix formatting.
2002
8319dc87
PB
20032004-06-29 Per Bothner <per@bothner.com>
2004
2005 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
2006 etc etc): Remove needless parenthesis, which causes __stdcall__
2007 attribute on MinGW to get ignored.
2008
b4bbd47e
BM
20092004-06-29 Bryce McKinlay <mckinlay@redhat.com>
2010
2011 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
2012
b5493719
BM
20132004-06-28 Bryce McKinlay <mckinlay@redhat.com>
2014
b4bbd47e 2015 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
b5493719 2016
7b63e340
JQ
20172004-06-28 Jerry Quinn <jlquinn@optonline.net>
2018
2019 * java/beans/Expression.java: New file.
2020 * java/beans/Statement.java: New file.
2021 * Makefile.am: Added new files.
2022 * Makefile.in: Re-generate.
2023
01036503
MW
20242004-06-27 Mark Wielaard <mark@klomp.org>
2025
2026 * java/io/FilePermission.java (usingPerms): Removed.
2027 (actionsString): Made final.
2028 (cachePerms): Renamed to checkPerms.
2029 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
2030 on action String.
2031 (FilePermission): Check arguments, call checkPerms().
2032 (equals): Remove cachePerms() call.
2033 (implies): Likewise.
2034
ce6230c4
MW
20352004-06-27 Mark Wielaard <mark@klomp.org>
2036
2037 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
2038 final field.
2039 (sendRequest): Use new field in user-agent http agent.
2040
66a74d2a
MW
20412004-06-27 Mark Wielaard <mark@klomp.org>
2042
2043 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
2044 when argument is null.
2045
20462004-06-26 Mark Wielaard <mark@klomp.org>
2047
2048 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2049 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
2050 GetMethodID call.
2051 (cancel_clicked): Likewise.
2052
d168da74
AT
20532004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
2054
2055 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
2056 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
2057 can not calculate the right value.
2058 (dpi_changed_cb): Likewise. Mark *pspec as unused.
2059
cc21f43e
BM
20602004-06-24 Bryce McKinlay <mckinlay@redhat.com>
2061
2062 * testsuite/libjava.jacks/jacks.xfail: Remove
2063 15.9.1-qualified-concrete-20.
2064
eb8163ab
BM
20652004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2066
2067 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
2068 encoding name to iconv.
2069 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
2070
f50aa505
BM
20712004-06-22 Bryce McKinlay <mckinlay@redhat.com>
2072
2073 PR libgcj/16134:
e9cb3dac
BM
2074 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
2075 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
2076 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
f50aa505 2077
deb3d52f
AH
20782004-06-21 Andrew Haley <aph@redhat.com>
2079
2080 * java/io/ObjectOutputStream.java: Add DEBUG statements
2081 everywhere.
2082 (dumpElementln): New method.
2083 (depth): New field.
2084 * java/io/ObjectInputStream.java
2085 (currentClassLoader): Make native.
2086 (callersClassLoader): New field.
2087 (depth): New field.
2088 (readObject): ENDBLOCKDATA is generated if the class has a write
2089 method, not if it has a read method.
2090 (readObject): Save and restore this.currentObject and
2091 this.currentObjectStreamClass around calls to callReadMethod().
2092 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
2093 method.
2094
cfc74dce
AT
20952004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
2096
2097 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
2098 darwin.
2099
bd760894
RM
21002004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2101
2102 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
2103 if desired, before the default class loader is initialised.
2104 Call INIT_SEGV only if HANDLE_SEGV is defined.
2105
6ca77e6f
RM
21062004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2107
2108 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
2109 directory only if it actually exists.
2110
67a69e82
GH
21112004-06-18 Graydon Hoare <graydon@redhat.com>
2112
2113 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
2114 Fix up non-ansi comments.
2115
21162004-06-18 Ranjit Mathew <rmathew@hotmail.com>
2117
2118 * javax/swing/text/AbstractDocument.java: Adding missing import
2119 for javax.swing.event.EventListenerList.
2120 * javax/swing/text/DefaultCaret.java: Likewise.
2121
4dfcdad1
GH
21222004-06-17 Michael Koch <konqueror@gmx.de>
2123
2124 * javax/swing/JToolBar.java
2125 (name): Removed.
2126 (JToolBar): Use Component.setName(String) instead of doing it all
2127 alone.
2128 * javax/swing/Timer.java
2129 (queueEvent): Added missing modifier.
2130
21312004-06-17 Olga Rodimina <rodimina@redhat.coom>
2132
2133 * Makefile.am: Added new file.
2134 * Makefile.in: Re-generate.
2135 * javax/swing/JMenu.java:
2136 (insertSeparator): Implemented.
2137 * javax/swing/JPopupMenu.java:
2138 (JPopupMenu.Separator): Implemented.
2139 * javax/swing/MenuSelectionManager.java:
2140 (processMouseEvent): Use java.awt.Component
2141 for event source instead of javax.swing.JComponent.
2142 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
2143 New File. Implemented.
2144
21452004-06-16 David Jee <djee@redhat.com>
2146
2147 * java/awt/GridBagLayout.java
2148 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
2149 Make sure pos_x and pos_y are never negative.
2150
21512004-04-16 Andrew Overholt <overholt@redhat.com>
2152
2153 * Makefile.am: Add new file.
2154 * Makefile.in: Re-generate.
2155 * javax/swing/JToolBar.java
2156 Partially implemented.
2157 * javax/swing/plaf/basic/BasicToolBarUI.java
2158 New file. Partially implemented.
2159
21602004-06-16 Graydon Hoare <graydon@redhat.com>
2161
2162 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
2163 (setComposite): Accept AlphaComposite arguments.
2164 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
2165 (createBufferedImage): Add new overloads.
2166 * gnu/java/awt/peer/gtk/GtkToolkit.java
2167 (createImage): Use GdkPixbufDecoder.createBufferedImage
2168 when useGraphics2D() is true.
2169 (getImage): Delegate to createImage.
2170 * javax/swing/JList.java
2171 (isSelectionEmpty):
2172 (getFirstVisibleIndex):
2173 (getLastVisibleIndex):
2174 (setSelectedValue):
2175 (ensureIndexIsVisible): New methods.
2176 * javax/swing/Timer.java: Reimplement.
2177
21782004-06-16 Michael Koch <konqueror@gmx.de>
2179
2180 * javax/swing/text/AbstractDocument.java
2181 (AbstracElement): Made public, implements java.io.Serializable.
2182 (AttributeContext): Made public.
2183 (BranchElement): Likewise.
2184 (Content): Likewise.
2185 (DefaultDocumentEvent): Made public, extends
2186 javax.swing.undo.CompoundEdit.
2187 (ElementEdit): Made public, extends
2188 javax.swing.undo.AbstractUndoableEdit.
2189 (LeafElement): Made public.
2190 (LeafElement.LeafElement): Made public.
2191
21922004-06-16 Michael Koch <konqueror@gmx.de>
2193
2194 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
2195 methods (that were obviously never be intended to get included hi this
2196 class. Added some methods too.
2197
21982004-06-16 Michael Koch <konqueror@gmx.de>
2199
2200 * javax/swing/text/PlainDocument.java
2201 (serialVersionUID): New constant.
2202 (lineLimitAttribute): Likewise.
2203 (tabSizeAttribute): Likewise.
2204 (tabSize): New field.
2205 (PlainDocument): Made public.
2206 (PlainDocument): New constructor.
2207
22082004-06-16 Michael Koch <konqueror@gmx.de>
2209
2210 * javax/swing/text/AbstractDocument.java
2211 (insertString): Throws BadLocationException.
2212 * javax/swing/text/Document.java
2213 (insertString): Likewise.
2214 * javax/swing/text/JTextComponent.java:
2215 Javadocs and comments cleaned up.
2216
22172004-06-16 Michael Koch <konqueror@gmx.de>
2218
2219 * javax/swing/event/UndoableEditListener.java: Reformatted.
2220 * javax/swing/text/AbstractDocument.java
2221 (AbstractDocument): Implements java.io.Serializable.
2222 (doc_list): Removed.
2223 (undo_list): Removed.
2224 (AbstractElement.serialVerionUID): New field.
2225 (BranchElement.serialVerionUID): Likewise.
2226 (DefaultDocumentEvent.serialVerionUID): Likewise.
2227 (ElementEdit.serialVerionUID): Likewise.
2228 (LeafElement.serialVerionUID): Likewise.
2229 (serialVerionUID): Likewise.
2230 (BAD_LOCATION): New constant.
2231 (BidiElementName): Likewise.
2232 (ContentElementName): Likewise.
2233 (ParagraphElementName): Likewise.
2234 (SectionElementName): Likewise.
2235 (ElementNameAttribute): Likewise.
2236 (AbstractDocument): Made protected.
2237 (AbstractDocument): New construtor.
2238 (listenerList): New field.
2239 (fireChangedUpdate): Implemented.
2240 (fireInsertUpdate): Likewise.
2241 (fireRemoveUpdate): Likewise.
2242 (fireUndoableEditUpdate): Likewise.
2243 (getListeners): Likewise.
2244 (addDocumentListener): Likewise.
2245 (removeDocumentListener): Likewise.
2246 (addUndoableEditListener): Likewise.
2247 (removeUndoableEditListener): Likewise.
2248 (getDocumentListeners): New method.
2249 (getUndoableEditListeners): Likewise.
2250 (getAsynchronousLoadPriority): Made public.
2251 (getBidiRootElement): Likewise.
2252 (setAsynchronousLoadPriority): Likewise.
2253 (setDocumentProperties): Likewise.
2254 * javax/swing/text/BadLocationException.java
2255 (serialVerionUID): New field.
2256 * javax/swing/text/DefaultCaret.java
2257 (changeEvent): New field.
2258 (listenerList): Likewise.
2259 (changes): Removed.
2260 (addChangeListener): Reimplemented.
2261 (removeChangeListener): Likewise.
2262 (getListeners): New method.
2263 (getChangeListeners): Likwise.
2264 (getComponent): Likewise.
2265 * javax/swing/text/GapContent.java
2266 (GapContent): Implements java.io.Serializable.
2267 (serialVerionUID): New field.
2268
22692004-06-16 Michael Koch <konqueror@gmx.de>
2270
2271 * javax/swing/JTree.java
2272 (treeModel): New field.
2273 (JTree): New constructors, one existing one made public.
2274 (createTreeModel): New method.
2275 (addTreeExpansionListener): Likewise.
2276 (removeTreeExpansionListener): Likewise.
2277 (getTreeExpansionListeners): Likewise.
2278 (fireTreeCollapsed): Likewise.
2279 (fireTreeExpanded): Likewise.
2280 (addTreeSelectionListener): Likewise.
2281 (removeTreeSelectionListener): Likewise.
2282 (getTreeSelectionListeners): Likewise.
2283 (fireValueChanged): Likewise.
2284 (addTreeWillExpandListener): Likewise.
2285 (removeTreeWillExpandListener): Likewise.
2286 (getTreeWillExpandListeners): Likewise.
2287 (fireTreeWillCollapse): Likewise.
2288 (fireTreeWillExpand): Likewise.
2289
22902004-06-16 Michael Koch <konqueror@gmx.de>
2291
2292 * javax/swing/JTree.java: Reformatted.
2293
22942004-06-16 Michael Koch <konqueror@gmx.de>
2295
2296 * javax/swing/JTextArea.java: New file.
2297 * javax/swing/JTextField.java
2298 (actions): Removed.
2299 (notifyAction): New constant.
2300 (columns): New field.
2301 (JTextField): New constructors.
2302 (createDefaultModel): New method.
2303 (addActionListener): Reimplmemented.
2304 (removeActionListener): Reimplemented.
2305 (getActionListeners): New method.
2306 (fireActionPerformed): New method.
2307 (getColumns): New method.
2308 (setColumne): New method.
2309 * javax/swing/text/JTextComponent.java
2310 (AccessibleJTextComponent.serialVersionUID): New field.
2311 (serialVersionUID): Likewise.
2312 (DEFAULT_KEYMAP): Likewise.
2313 (FOCUS_ACCELERATOR_KEY): Likewise.
2314 (doc): Made private.
2315 (icon_gap): Likewise.
2316 (icon): Likewise.
2317 (align): Likewise.
2318 (JTextComponent): Some constructors removed.
2319 (getScrollableTracksViewportHeight): New method.
2320 (getScrollableTracksViewportWidth): Likewise.
2321 * Makefile.am: Added javax/swing/JTextArea.java.
2322 * Makefile.in: Regenerated.
2323
23242004-06-15 Graydon Hoare <graydon@redhat.com>
2325
2326 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
2327 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
2328 * javax/swing/JViewport.java
2329 (getExtentSize): Return size rather than preferred size.
2330 (toViewCoordinates): New methods.
2331 (getViewSize): Return size rather than preferred size.
2332 (setViewSize): Note view size as set.
2333 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
2334 * javax/swing/plaf/basic/BasicScrollBarUI.java
2335 (getPreferredSize): Don't redo layout.
2336 * javax/swing/plaf/basic/BasicViewportUI.java
2337 (paint): Translate image properly and eat exceptions.
2338
23392004-06-15 Kim Ho <kho@redhat.com>
2340
2341 * javax/swing/JTabbedPane.java
2342 (setComponent): Remove old component and
2343 add new component.
2344 (setSelectedIndex): Don't operate on the
2345 components if they're null. Don't set index
2346 on the model if the index is the same.
2347 (insertTab): Don't add or hide the component
2348 if it's null. Repaint the container.
2349 * javax/swing/plaf/basic/BasicLookAndFeel.java
2350 Change colors for TabbedPane.
2351 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
2352 (mousePressed): Re-layout and paint the component.
2353 (layoutContainer): Don't set location on the view.
2354 (ScrollingViewport::paint): Remove.
2355
23562004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
2357
2358 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2359 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
2360
2361 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
2362 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
2363 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
2364 critical region.
2365 (drawLine): Call gdk_flush before leaving GDK critical region.
2366 (fillRect): Likewise.
2367 (drawRect): Likewise.
2368 (copyArea): Likewise.
2369 (copyPixmap): Likewise.
2370 (clearRect): Likewise.
2371 (drawArc): Likewise.
2372 (drawPolyline): Likewise.
2373 (drawPolygon): Likewise.
2374 (fillPolygon): Likewise.
2375 (fillArc): Likewise.
2376 (drawOval): Likewise.
2377 (fillOval): Likewise.
2378
2379 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
2380 style parameter.
2381 (GdkFontMetrics): Add style argument to initState call.
2382 (stringWidth(String,int,int,String)): Add style parameter.
2383 (stringWidth(String)): Add style argument to stringWidth call.
2384 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
2385 (initState): Set pango font style and weight based on AWT style
2386 parameter. Pass default GTK language to
2387 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
2388 simply dividing by PANGO_SCALE.
2389 (stringWidth): Set pango font style and weight based on AWT style
2390 parameter.
2391
2392 * java/awt/Button.java (next_button_number): New field.
2393 (paramString): Change output.
2394 (generateName): New method.
2395 (getUniqueLong): New method.
2396
23972004-06-14 Kim Ho <kho@redhat.com>
2398
2399 * javax/swing/JTabbedPane.java:
2400 (setComponentAt): Set the component, not
2401 the enabled status.
2402 * javax/swing/plaf/basic/BasicDesktopIconUI.java
2403 (actionPerformed): Let deiconize catch exception.
2404
24052004-06-14 Olga Rodimina <rodimina@redhat.com>
2406
2407 * javax/swing/JPopupMenu.java:
2408 (setVisible): Corrected location of a
2409 heavyweight popup menu.
2410
24112004-06-14 Olga Rodimina <rodimina@redhat.com>
2412
2413 * javax/swing/MenuSelectionManager.java:
2414 Ran through jalopy to fix formatting style.
2415
24162004-06-14 Olga Rodimina <rodimina@redhat.com>
2417
2418 * javax/swing/JLayeredPane.java:
2419 (remove): Revalidate and repaint layered pane after
2420 the component was removed.
2421 javax/swing/JMenu.java:
2422 (setVisible): Display popup menu at the user location,
2423 if one was set by the user.
2424 (setMenuLocation): Reimplemented. Fixed javadoc.
2425 * javax/swing/JMenuBar.java: Added javadoc.
2426 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
2427 (MODEL_CHANGED_PROPERTY): New Property.
2428 (isSelected): Implemented.
2429 (setBorderPainted): Fire PropertyChangeEvent
2430 if paintBorder property changes.
2431 (setSelected): Implemented.
2432 (setSelectionModel): Implemented.
2433 * javax/swing/JPopupMenu.java: Added Javadoc
2434 (pack): Implemented.
2435 (setVisible): Reimplemented.
2436 (show): Fixed location.
2437 (JPopupMenu.LigthWeightPopup): Reimplemented to use
2438 Container instead of JPanel.
2439 * javax/swing/MenuSelectionManager.java: Added Javadocs.
2440 (clearSelectedPath): Reimplemented to clear selectedPath
2441 in reverse order.
2442 (processMouseEvent): Reimplemented.
2443 (setSelectedPath): Fire stateChange event indicating that
2444 selected menu path has changed.
2445 (getPath): Change to use ArrayList instead of Vector.
2446 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2447 (installUI): call installKeyboardActions().
2448 (uninstallUI): call uninstallKeyboardActions().
2449
24502004-06-13 Michael Koch <konqueror@gmx.de>
2451
2452 * javax/swing/text/DefaultCaret.java,
2453 javax/swing/text/BadLocationException.java:
2454 Reformatted.
2455
24562004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
2457
2458 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
2459 DEFAULT_COLS): New variables.
2460 (create): Don't allow 0 rows or 0 columns. Instead, set the
2461 values to DEFAULT_ROWS or DEFAULT_COLS.
2462 (getMinimumSize): Likewise.
2463 (getPreferredSize): Likewise.
2464 (minimumSize): Likewise.
2465 (preferredSize): Likewise.
2466 (create): Set peer's editable state.
2467 * java/awt/TextArea.java (TextArea()): Set rows and columns to
2468 zero. Update javadocs.
2469 (TextArea(String)): Likewise.
2470 (TextArea(int,int)): Fix javadocs.
2471 (TextArea(String,int,int,int)): Only throw exception if one of
2472 rows or columns is zero. Fix javadocs.
2473
24742004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
2475
2476 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
2477 addition to Components.
2478
2479 * java/awt/MenuItem.java (dispatchEventImpl): If the event
2480 wasn't consumed by normal processing, send it to the parent
2481 menu.
2482
2483 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2484 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
2485 translation.
2486
24872004-06-11 David Jee <djee@redhat.com>
2488
2489 * java/awt/MediaTracker.java
2490 (addImage(Image,int)): Call imageUpdate() to udpate image status.
2491 (addImage(Image,int,int,int)): Likewise.
2492
24932004-06-11 Michael Koch <konqueror@gmx.de>
2494
2495 * javax/swing/text/AbstractDocument.java,
2496 javax/swing/text/Document.java,
2497 javax/swing/text/GapContent.java,
2498 javax/swing/text/JTextComponent.java,
2499 javax/swing/text/PlainDocument.java:
2500 Reformatted.
2501
25022004-06-11 Michael Koch <konqueror@gmx.de>
2503
2504 * javax/swing/JRootPane.java
2505 (AccessibleJRootPane.serialVersionUID): New field.
2506 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
2507 (AccessibleJRootPane.getAccessibleRole): New method.
2508 (RootLayout): Implements Serializable.
2509 (RootLayout.serialVersionUID): New field.
2510 (RootLayout.RootLayout): New constructor.
2511 (setJMenuBar): Made public.
2512 (getJMenuBar): Likewise.
2513 (JRootPane): Likewise.
2514 (createContentPane): Likewise.
2515 (createGlassPane): Likewise.
2516 (createLayeredPane): Likewise.
2517
25182004-06-11 Michael Koch <konqueror@gmx.de>
2519
2520 * javax/swing/SwingUtilities.java
2521 (isLeftMouseButton): Fixed javadoc.
2522 (isMiddleMouseButton): Likewise.
2523 (isRightMouseButton): Likewise.
2524
25252004-06-11 Michael Koch <konqueror@gmx.de>
2526
2527 * javax/swing/JScrollPane.java
2528 (serialVersionUID): New field.
2529 (columnHeader): Made protected.
2530 (rowHeader): Likewise.
2531 (lowerLeft): Likewise.
2532 (lowerRight): Likewise.
2533 (upperLeft): Likewise.
2534 (upperRight): Likewise.
2535 (horizontalScrollBar): Likewise.
2536 (horizontalScrollBarPolicy): Likewise.
2537 (verticalScrollBar): Likewise.
2538 (verticalScrollBarPolicy): Likewise.
2539 (viewport): Likewise.
2540
25412004-06-11 Michael Koch <konqueror@gmx.de>
2542
2543 * javax/swing/LookAndFeel.java: Fixed javadocs.
2544
25452004-06-11 Michael Koch <konqueror@gmx.de>
2546
2547 * javax/swing/JEditorPane.java: Fixed javadocs.
2548 (JEditorPane): Removed redundant call to to this().
2549 (fireHyperlinkUpdate): Implemented.
2550
25512004-06-10 Olga Rodimina <rodimina@redhat.com>
2552
2553 * javax/swing/JMenu.java: Fixed file name
2554 in the file comment.
2555
25562004-06-10 Olga Rodimina <rodimina@redhat.com>
2557
2558 * javax/swing/JMenu.java: Added javadoc.
2559 (JMenu): Added MenuChangeListener to listen to
2560 ChangeEvents occuring in menu's model.
2561 (insert): Throw IllegalArgumentException if
2562 index is less than 0
2563 (setSelected): Reimplement.
2564 (setPopupMenuVisible): Call menu's model isEnabled()
2565 (setDelay): Throw IllegalArgumentException if
2566 given amount of delay is less than 0.
2567 (createActionComponent): Implemented.
2568 (createActionChangeListener): Implemented.
2569 (addSeparator): Implemented.
2570 (getItem): Throw IllegalArgumentException if index is
2571 less than 0.
2572 (getItemCount): Implemented.
2573 (fireMenuSelected): Changed to use menuEvent.
2574 (fireMenuDeselected): Likewise.
2575 (fireMenuCanceled): Likewise.
2576 (setAccelerator): Changed to throw an error if this
2577 method is used.
2578 (doClick): Implemented.
2579 (JMenu.ActionChangedListener): New inner class to handle
2580 PropertyChangeEvents occuring in the actions associated with menu.
2581 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
2582 (BasicMenuUI): Added PropertyChangeListener to the menu.
2583 (createChangeListener): Implemented.
2584 (createMenuDragMouseListener): Likewise.
2585 (createMenuKeyListener): Likewise.
2586 (createPropertyChangeListener): Likewise.
2587 (uninstallListeners): Likewise.
2588 (BasicMenuUI.MouseInputHandler): Reimplemented.
2589 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
2590 (BasicMenuUI.ChangeHandler): Likewise.
2591 (BasicMenuUI.MenuDragMouseHandler): Likewise.
2592 (BasicMenuUI.MenuKeyHandler): Likewise.
2593
25942004-06-10 David Jee <djee@redhat.com>
2595
2596 * java/awt/MediaTracker.java
2597 (imageUpdate): Only do notifyAll() if the image is complete.
2598
25992004-06-10 Olga Rodimina <rodimina@redhat.com>
2600
2601 * javax/swing/JApplet.java:
2602 (getJMenuBar): Made public.
2603 (setJMenuBar): Likewise.
2604 * javax/swing/JFrame.java:
2605 (getJMenuBar): Made public.
2606 (setJMenuBar): Likewise.
2607 * javax/swing/JWindow.java:
2608 (getJMenuBar): Removed.
2609 (setJMenuBar): Removed.
2610
26112004-06-10 Michael Koch <konqueror@gmx.de>
2612
2613 * javax/swing/JEditorPane.java
2614 (createEditorKitForContentType): Fixed visibility.
2615 (fireHyperlinkUpdate): Likewise.
2616 (getContentType): Likewise.
2617 (getEditorKit): Likewise.
2618 (getEditorKitForContentType): Likewise.
2619 (getPage): Likewise.
2620 (read): Likewise.
2621 (registerEditorKitForContentTyoe): Likewise.
2622 (replaceSelection): Likewise.
2623 (setContentType): Likewise.
2624 (setEditorKit): Likewise.
2625 (setPage): Likewise.
2626
26272004-06-10 Michael Koch <konqueror@gmx.de>
2628
2629 * javax/swing/Timer.java
2630 (Timer): New constructor.
2631 * javax/swing/plaf/basic/BasicProgressBarUI.java
2632 (animationTimer): Don't initialize at construction.
2633 (startAnimationTimer): Added since tag.
2634 (stopAnimationTimer): Likewise.
2635 (installUI): Use new Timer constructor.
2636 * javax/swing/plaf/basic/BasicScrollBarUI.java
2637 (installUI): Likewise.
2638 * javax/swing/plaf/basic/BasicSliderUI.java
2639 (installUI): Likewise.
2640
26412004-06-10 Michael Koch <konqueror@gmx.de>
2642
2643 * javax/swing/ButtonGroup.java
2644 (serialVersionUID): Made private.
2645 (buttons): Renamed from v, added javadoc.
2646 (sel): Added javadoc.
2647 (ButtonGroup): Likewise.
2648 (add): Likewise.
2649 (remove): Likewise.
2650 (getElements): Likewise.
2651 (getSelection): Likewise.
2652 (setSelected): Likewise.
2653 (isSelected): Likewise.
2654 (getButtonCount): Likewise.
2655
26562004-06-10 Michael Koch <konqueror@gmx.de>
2657
2658 * javax/swing/ButtonGroup.java,
2659 javax/swing/ImageIcon.java,
2660 javax/swing/JEditorPane.java,
2661 javax/swing/JRootPane.java,
2662 javax/swing/JTextField.java,
2663 javax/swing/LookAndFeel.java,
2664 javax/swing/plaf/basic/BasicTextUI.java:
2665 Reindented.
2666
26672004-06-10 Michael Koch <konqueror@gmx.de>
2668
2669 * javax/swing/text/Style.java: Added javadocs.
2670
26712004-06-10 Michael Koch <konqueror@gmx.de>
2672
2673 * javax/swing/JComponent.java
2674 (fireVetoableChange): Removed redundant cast.
2675 * javax/swing/JLabel.java
2676 (getDisabledIcon): Save icon for next call.
2677
26782004-06-10 Michael Koch <konqueror@gmx.de>
2679
2680 * javax/swing/KeyStroke.java
2681 (getKeyStroke(char,boolean)): Marked deprecated.
2682
26832004-06-10 Michael Koch <konqueror@gmx.de>
2684
2685 * javax/swing/DefaultCellEditor.java,
2686 javax/swing/GrayFilter.java,
2687 javax/swing/event/DocumentEvent.java,
2688 javax/swing/text/JTextComponent.java,
2689 javax/swing/text/MutableAttributeSet.java:
2690 Reindented.
2691
26922004-06-10 Michael Koch <konqueror@gmx.de>
2693
2694 * javax/swing/plaf/BorderUIResource.java:
2695 Added serialVersionUID all over.
2696
26972004-06-10 Sascha Brawer <brawer@dandelis.ch>
2698
2699 * javax/swing/undo/UndoManager.java: Re-written from scratch.
2700
27012004-06-10 Michael Koch <konqueror@gmx.de>
2702
2703 * javax/swing/table/DefaultTableCellRenderer.java
2704 (noFocusBorder): Initialize directly.
2705
27062004-06-10 Michael Koch <konqueror@gmx.de>
2707
2708 * javax/swing/plaf/basic/BasicArrowButton.java
2709 (setDirection): Use method argument.
2710
27112004-06-10 Michael Koch <konqueror@gmx.de>
2712
2713 * javax/swing/plaf/BorderUIResource.java,
2714 javax/swing/plaf/ComponentUI.java,
2715 javax/swing/undo/CompoundEdit.java,
2716 javax/swing/undo/StateEdit.java:
2717 Fixed javadocs all over.
2718
27192004-06-10 Michael Koch <konqueror@gmx.de>
2720
2721 * javax/swing/DefaultButtonModel.java
2722 (ARMED): Made public final, fixed value.
2723 (ENABLED): Likewise.
2724 (PRESSED): Likewise.
2725 (ROLLOVER): Likewise.
2726 (SELECTED): Likewise.
2727 (stateMask): Initialize directly.
2728 (listenerList): Likewise.
2729 (mnemonic): Likewise.
2730 (fireStateChanged): Removed argument, use changeEvent as event.
2731 All places where this method is called are fixed too.
2732 (getActionCommant): Fixed javadoc.
2733 (setGroup): Fixed javadoc.
2734 (getGroup): New method.
2735
27362004-06-09 Olga Rodimina <rodimina@redhat.com>
2737
2738 * javax/swing/AbstractButton.java
2739 (AbstractButton): Use init() to initialize the button.
2740 (init): New Method. Initializes AbstractButton.
2741 * javax/swing/JMenuItem.java: Documented.
2742 (JMenuItem): Reimplemented.
2743 (init): Implemented.
2744 (setEnabled): Changed to call super.setEnabled()
2745 (processMouseEvent): Reimplemented.
2746 (fireMenuKeyPressed): Implemented.
2747 (fireMenuKeyReleased): Implemented.
2748 (fireMenuKeyTyped): Implemented.
2749 (menuSelectionChanged): disarm the model if the menu item was
2750 deselected.
2751 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
2752 (getPath): Change to use ArrayList instead of Vector.
2753 (getPreferredSize): Renamed variable.
2754 (paintMenuItem): Paint margin area of menu item.
2755 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
2756 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
2757 menu item's bounds before clearing the selection.
2758
27592004-06-09 David Jee <djee@redhat.com>
2760
2761 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
2762 (GtkTextComponentPeer): Set caret position to 0.
2763 * java/awt/TextComponent.java
2764 (setText): Set caret position to 0.
2765 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2766 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2767 Handle GtkScrolledWindow separately. Fix signal handler blocking.
2768 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2769 Likewise.
2770 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
2771 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
2772 visible.
2773
27742004-06-09 Kim Ho <kho@redhat.com>
2775
2776 * Makefile.am: New files
2777 * Makefile.in: Regenerated
2778 * java/awt/Container.java
2779 (getComponentAt): Removed.
2780 * javax/swing/AbstractAction.java
2781 (ENABLED_PROPERTY): New property.
2782 (putValue): Fire PropertyChangeEvents.
2783 (setEnabled): ditto.
2784 (firePropertyChange): Javadoc and implement
2785 convenience method.
2786 * javax/swing/AbstractButton.java
2787 (setAction): Don't create PropertyChangeListener
2788 if new Action is null.
2789 (setIcon): Don't set icon till after comparing
2790 it.
2791 (configurePropertiesFromAction): Check mnemonic
2792 key before calling intValue().
2793 (createActionPropertyChangeListener): Check
2794 properties rather than bulk change.
2795 * javax/swing/DefaultDesktopManager.java:
2796 Implement.
2797 * javax/swing/DesktopManager.java:
2798 Jalopy and javadoc.
2799 * javax/swing/JComponent.java
2800 (fireVetoableChange): Implement.
2801 (paintImmediately): Use root component.
2802 * javax/swing/JDesktopPane.java: Implement
2803 * javax/swing/JInternalFrame.java: Implement
2804 * javax/swing/JLabel.java
2805 (getDisabledIcon): Return grayscaled icon if
2806 no disabled icon specified.
2807 * javax/swing/JMenuBar.java
2808 (getComponentAtIndex): Use getComponent
2809 * javax/swing/JOptionPane.java
2810 (getDesktopPaneForComponent): Use SwingUtilities'
2811 getAncestorOfClass
2812 (getFrameForComponent): ditto.
2813 * javax/swing/JSplitPane.java
2814 (remove): Use getComponent.
2815 * javax/swing/SwingUtilities.java
2816 (convertPoint): Implement.
2817 * javax/swing/plaf/basic/BasicButtonUI.java
2818 (paintButtonNormal): Check opaqueness before
2819 filling background.
2820 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
2821 Implement
2822 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
2823 Implement.
2824 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
2825 Implement.
2826 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2827 Implement.
2828 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2829 Change InternalFrame and Desktop colors.
2830
28312004-06-09 David Jee <djee@redhat.com>
2832
2833 * java/awt/Container.java
2834 (remove): Do not set component to invisible.
2835
28362004-06-09 Michael Koch <konqueror@gmx.de>
2837
2838 * javax/swing/tree/DefaultMutableTreeNode.java
2839 (getLeafCount): Renamed enum to e.
2840
28412004-06-09 Michael Koch <konqueror@gmx.de>
2842
2843 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
2844 (positionForMouseEvent): Removed redundant semicolon.
2845 (continueDrag): Use method arguments.
2846
28472004-06-09 Michael Koch <konqueror@gmx.de>
2848
2849 * javax/swing/border/TitledBorder.java,
2850 javax/swing/filechooser/FileSystemView.java,
2851 javax/swing/plaf/basic/BasicButtonListener.java,
2852 javax/swing/plaf/basic/BasicGraphicsUtils.java,
2853 javax/swing/plaf/basic/BasicLabelUI.java,
2854 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
2855 javax/swing/plaf/basic/BasicScrollBarUI.java,
2856 javax/swing/plaf/basic/BasicScrollPaneUI.java,
2857 javax/swing/plaf/basic/BasicSliderUI.java,
2858 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
2859 javax/swing/plaf/basic/BasicToggleButtonUI.java,
2860 javax/swing/table/JTableHeader.java,
2861 javax/swing/text/AbstractDocument.java,
2862 javax/swing/text/DefaultCaret.java,
2863 javax/swing/text/StyledEditorKit.java,
2864 javax/swing/tree/DefaultTreeCellEditor.java:
2865 Reworked import statements.
2866
28672004-06-08 Graydon Hoare <graydon@redhat.com>
2868
2869 * javax/swing/Box.java: Temporarily comment out code
2870 broken due to visibility bug.
2871
28722004-06-09 Michael Koch <konqueror@gmx.de>
2873
2874 * javax/swing/ImageIcon.java
2875 (ImageIcon): Added missing constructor.
2876
28772004-06-08 Michael Koch <konqueror@gmx.de>
2878
2879 * javax/swing/JToggleButton.java
2880 (JToggleButton): New constructor.
2881 (getAccessibleContext): Moved documentation into javadoc.
2882 (getUIClassID): Likewise.
2883
28842004-06-08 Michael Koch <konqueror@gmx.de>
2885
2886 * javax/swing/AbstractButton.java
2887 (getDisabledIcon): Create disabled icon if none exists yet.
2888
28892004-06-08 Michael Koch <konqueror@gmx.de>
2890
2891 * javax/swing/plaf/basic/BasicLookAndFeel.java
2892 (initClassDefaults): Added FormattedTextFieldUI.
2893 (loadResourceBundle): Renamed enum to e.
2894
28952004-06-08 Michael Koch <konqueror@gmx.de>
2896
2897 * javax/swing/plaf/basic/BasicButtonUI.java
2898 (paintIcon): Simplified.
2899 (paintText): Paint disabled button correctly.
2900
29012004-06-08 Michael Koch <konqueror@gmx.de>
2902
2903 * javax/swing/JComponent.java
2904 (createToolTip): Use official JToolTip API.
2905
29062004-06-08 Michael Koch <konqueror@gmx.de>
2907
2908 * javax/swing/JToolTip.java
2909 (JToolTip): No arguments in API.
2910 (setTipText): New method.
2911
29122004-06-08 Michael Koch <konqueror@gmx.de>
2913
2914 * javax/swing/SwingUtilities.java
2915 (isLeftMouseButton): New method.
2916 (isMiddleMouseButton): New method.
2917 (isRightMouseButton): New method.
2918
29192004-06-08 Michael Koch <konqueror@gmx.de>
2920
2921 * javax/swing/AbstractButton.java,
2922 javax/swing/CellRendererPane.java,
2923 javax/swing/JCheckBoxMenuItem.java,
2924 javax/swing/JColorChooser.java,
2925 javax/swing/JComboBox.java,
2926 javax/swing/JComponent.java,
2927 javax/swing/JDesktopPane.java,
2928 javax/swing/JFileChooser.java,
2929 javax/swing/JMenu.java,
2930 javax/swing/JMenuItem.java,
2931 javax/swing/JOptionPane.java,
2932 javax/swing/JPasswordField.java,
2933 javax/swing/JPopupMenu.java,
2934 javax/swing/JProgressBar.java,
2935 javax/swing/JRadioButtonMenuItem.java,
2936 javax/swing/JScrollBar.java,
2937 javax/swing/JSeparator.java,
2938 javax/swing/JSlider.java,
2939 javax/swing/JSplitPane.java,
2940 javax/swing/JTabbedPane.java,
2941 javax/swing/JTextField.java,
2942 javax/swing/JToolBar.java,
2943 javax/swing/text/JTextComponent.java:
2944 Fixed all constructors of accessibility classes.
2945
29462004-06-08 Michael Koch <konqueror@gmx.de>
2947
2948 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
2949 over.
2950
29512004-06-08 Michael Koch <konqueror@gmx.de>
2952
2953 * javax/swing/Box.java
2954 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
2955 (AccessibleBoxFiller.serialVersionUID): New member variable.
2956 * javax/swing/DefaultButtonModel.java
2957 (stateMask): Made protected.
2958 (listenerList): Likewise.
2959 (changeEvent): Likewise.
2960 (group): Likewise.
2961 (mnemonic): Likewise.
2962 (actionCommand): Likewise.
2963 (getListeners): New method.
2964 (getActionListeners): New method.
2965 (getItemListeners): New method.
2966 (getChangeListeners): New method.
2967 (fireItemStateChanged): Simplified.
2968 (fireActionPerformed): Simplified.
2969 (fireStateChanged): Simplified.
2970 * javax/swing/JFrame.java
2971 (JFrame): Implements WindowContants.
2972 (HIDE_ON_CLOSE): Removed.
2973 (EXIT_ON_CLOSE): Removed.
2974 (DISPOSE_ON_CLOSE): Removed.
2975 (DO_NOTHING_ON_CLOSE): Removed.
2976 (processWindowEvent): Exit with code 0.
2977 (setDefaultCloseOperation): Do security check before setting value.
2978 * javax/swing/JOptionPane.java
2979 (message): Initialize only in constructor.
2980 * javax/swing/JToolTip.java: Removed unused imports.
2981 * javax/swing/JViewport.java
2982 (serialVersionUID): New member variable.
2983 (SIMPLE_SCROLL_MODE): Made final, fixed value.
2984 (BLIT_SCROLL_MODE): Likewise.
2985 (BACKINGSTORE_SCROLL_MODE): Likewise.
2986 (scrollUnderway): Made protected.
2987 (isViewSizeSet): Likewise.
2988 * javax/swing/ListModel.java: Fixed javadoc.
2989 * javax/swing/Popup.java: Likewise.
2990 * javax/swing/RepaintManager.java
2991 (paintDirtyRegions): Don't use internal classes of
2992 java.util.AbstractMap.
2993 * javax/swing/ScrollPaneConstants.java: Reindented.
2994 * javax/swing/ScrollPaneLayout.java
2995 (viewport): Made protected.
2996 (verticalScrollBar): Made protected, renamed to vsb.
2997 (horizontalScrollBar): Made protected, renamed to hsb.
2998 (rowHeader): Made protected, renamed to rowHead.
2999 (columnHeader): Made protected, renamed to colHead.
3000 (lowerLeft): Made protected.
3001 (lowerRight): Made protected.
3002 (upperLeft): Made protected.
3003 (upperRight): Made protected.
3004 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
3005 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
3006
30072004-06-07 Bernd Schmidt <bernds@btinternet.com>
3008
3009 * java/awt/MediaTracker.java (imageUpdate): Only set status to
3010 LOADING if flags has SOMEBITS set.
3011
30122004-06-07 Michael Koch <konqueror@gmx.de>
3013
3014 * javax/swing/AbstractButton.java: Reorganized imports.
3015 * javax/swing/ActionMap.java: Likewise.
3016 * javax/swing/DefaultButtonModel.java: Likewise.
3017 * javax/swing/DefaultListModel.java: Likewise.
3018 * javax/swing/ImageIcon.java: Likewise.
3019 (serialVersionUID): New member variable.
3020 * javax/swing/JComboBox.java: Reorganized imports.
3021 * javax/swing/JComponent.java: Likewise.
3022 (ui): Made protected.
3023 (listenerList): Made protected.
3024 (TOOL_TIP_TEXT_KEY): New constant.
3025 (scrollRectToVisible): Removed redundant null check.
3026 * javax/swing/JFrame.java: Reorganized imports.
3027 * javax/swing/JInternalFrame.java: Reorganized imports.
3028 * javax/swing/JProgressBar.java: Likewise.
3029 * javax/swing/JRootPane.java: Likewise.
3030 * javax/swing/JScrollBar.java: Likewise.
3031 * javax/swing/JSeparator.java: Likewise.
3032 * javax/swing/JSlider.java: Likewise.
3033 * javax/swing/JTabbedPane.java: Likewise.
3034 * javax/swing/JTextField.java: Likewise.
3035 * javax/swing/JToolBar.java: Likewise.
3036 * javax/swing/JTree.java: Likewise.
3037 * javax/swing/JViewport.java: Likewise.
3038 * javax/swing/JWindow.java: Likewise.
3039 * javax/swing/KeyStroke.java: Likewise.
3040 * javax/swing/LookAndFeel.java: Likewise.
3041 * javax/swing/MenuSelectionManager.java: Likewise.
3042 * javax/swing/SwingUtilities.java: Likewise.
3043 * javax/swing/Timer.java: Likewise.
3044 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
3045 * javax/swing/JList.java
3046 (HORIZONTAL_WRAP): Made final, fixed value.
3047 (VERTICAL): Likewise.
3048 (VERTICAL_WRAP): Likewise.
3049
30502004-06-07 Michael Koch <konqueror@gmx.de>
3051
3052 * javax/swing/AbstractButton.java
3053 (serialVersionUID): New member variable.
3054 (AccessibleAbstractButton.serialVersionUID): Likewise.
3055 (AbstractButton): Made public.
3056 * javax/swing/Box.java
3057 (AccessibleBox.serialVersionUID): New member variable.
3058 (Filler.serialVersionUID): Likewise.
3059 * javax/swing/DefaultListSelectionModel.java
3060 (serialVersionUID): Likewise.
3061 * javax/swing/JApplet.java
3062 (serialVersionUID): Likewise.
3063 * javax/swing/JCheckBox.java
3064 (serialVersionUID): Likewise.
3065 * javax/swing/JCheckBoxMenuItem.java
3066 (serialVersionUID): Likewise.
3067 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
3068 * javax/swing/JColorChooser.java
3069 (serialVersionUID): Likewise.
3070 (AccessibleJColorChooser.serialVersionUID): Likewise.
3071 * javax/swing/JComponent.java
3072 (serialVersionUID): Made private.
3073 (AccessibleJComponent.serialVersionUID): New member variable.
3074 * javax/swing/JDesktopPane.java
3075 (serialVersionUID): Likewise.
3076 * javax/swing/JDialog.java
3077 (serialVersionUID): Likewise.
3078 * javax/swing/JFormattedTextField.java
3079 (serialVersionUID): Fixed value.
3080 * javax/swing/JFrame.java
3081 (serialVersionUID): New member variable.
3082 (getDefaultCloseOpertation): Made public.
3083 * javax/swing/JLayeredPane.java
3084 (serialVersionUID): Likewise.
3085 (LAYER_PROPERTY): Made final, fixed value.
3086 (JLayeredPane): Made public.
3087 * javax/swing/JMenu.java
3088 (AccessibleJMenu.serialVersionUID): New member variable.
3089 (WinListener.serialVersionUID): Likewise.
3090 * javax/swing/JMenuBar.java
3091 (serialVersionUID): Likewise.
3092 (getComponentAtIndex): Added @deprecated tag.
3093 * javax/swing/JMenuItem.java
3094 (serialVersionUID): New member variable.
3095 (AccessibleJMenuItem.serialVersionUID): Likewise.
3096 * javax/swing/JOptionPane.java
3097 (serialVersionUID): Likewise.
3098 (AccessibleJOptionPane.serialVersionUID): Likewise.
3099 * javax/swing/JPopupMenu.java
3100 (serialVersionUID): Likewise.
3101 (AccessibleJPopupMenu.serialVersionUID): Likewise.
3102 (getPopupMenuListeners): New method.
3103 (getComponentAtIndex): Added @deprecated tag.
3104 * javax/swing/JProgressBar.java
3105 (serialVersionUID): New member variable.
3106 (AccessibleJProgressBar.serialVersionUID): Likewise.
3107 * javax/swing/JRadioButton.java
3108 (serialVersionUID): Likewise.
3109 * javax/swing/JRadioButtonMenuItem.java
3110 (serialVersionUID): Likewise.
3111 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
3112 * javax/swing/JScrollBar.java
3113 (serialVersionUID): Likewise.
3114 (AccessibleJScrollBar.serialVersionUID): Likewise.
3115 * javax/swing/JSeparator.java
3116 (serialVersionUID): Likewise.
3117 (AccessibleJSeparator.serialVersionUID): Likewise.
3118 * javax/swing/JSlider.java: Fixed javadocs.
3119 (AccessibleJSlider.serialVersionUID): New member variable.
3120 * javax/swing/JSplitPane.java: Added copyright statement.
3121 (serialVersionUID): New member variable.
3122 (AccessibleJSplitPane.serialVersionUID): Likewise.
3123 * javax/swing/JTabbedPane.java
3124 (serialVersionUID): Likewise.
3125 (AccessibleJTabbedPane.serialVersionUID): Likewise.
3126 (ModelListener.serialVersionUID): Likewise.
3127 (ModelListener.ModelListener): New constructor.
3128 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
3129 (WRAP_TAB_LAYOUT): Likewise.
3130 * javax/swing/JTable.java
3131 (serialVersionUID): New member variable.
3132 * javax/swing/JToggleButton.java
3133 (serialVersionUID): Likewise.
3134 (ToggleButtonModel): Made static.
3135 (ToggleButtonModel.serialVersionUID): New member variable.
3136 * javax/swing/JToolTip.java
3137 (serialVersionUID): Likewise.
3138 * javax/swing/JTree.java
3139 (serialVersionUID): Likewise.
3140 * javax/swing/JWindow.java
3141 (serialVersionUID): Likewise.
3142 * javax/swing/Timer.java
3143 (serialVersionUID): Likewise.
3144
31452004-06-06 Michael Koch <konqueror@gmx.de>
3146
3147 * javax/swing/SwingConstants.java
3148 (NEXT): New constant.
3149 (PREVIOUS): Likewise.
3150 * javax/swing/UIManager.java
3151 (LookAndFeel): Made public.
3152 (LookAndFeel.getClassName): Likewise.
3153 (LookAndFeel.getName): Likewise.
3154
31552004-06-02 Olga Rodimina <rodimina@redhat.com>
3156
3157 * javax/swing/JCheckBoxMenuItem.java:
3158 Removed CVS tags.
3159 * javax/swing/JMenu.java: Likewise.
3160 * javax/swing/JMenuBar.java: Likewise.
3161 * javax/swing/JMenuItem.java: Likewise.
3162 * javax/swing/JPopupMenu.java: Likewise.
3163 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3164 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3165 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3166 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3167 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3168 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3169 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3170
31712004-05-31 Olga Rodimina <rodimina@redhat.com>
3172
3173 * javax/swing/plaf/basic/BasicMenuUI.java:
3174 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3175 Call getPath() from super class instead.
3176
31772004-05-31 David Jee <djee@redhat.com>
3178
3179 * java/awt/Container.java
3180 (remove): Set component visibility to false after removing it.
3181
31822004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
3183
3184 * java/awt/Component.java (getForeground): Return SystemColor if
3185 parent is null.
3186 (getBackground): Likewise.
3187
3188 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3189 (item_highlighted): New function.
3190 (connectSignals): Set item_highlighted as list's select
3191 function.
3192
3193 * java/applet/Applet.java: Revert changes from 2004-04-29,
3194 2004-03-15 and 2004-03-14.
3195
3196 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3197 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
3198 factor.
3199
3200 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
3201 "Dialog" as the default font.
3202 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
3203 Likewise.
3204 * java/awt/Component.java (getFont): Return "Dialog" font by
3205 default.
3206 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
3207 Multiply size argument to pango_font_description_set_size by the
3208 DPI conversion factor rather than by PANGO_SCALE.
3209 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
3210 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
3211 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
3212 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
3213 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3214 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
3215 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
3216 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
3217 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
3218 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
3219 Divide baseline y coordinate by DPI conversion factor rather
3220 than by PANGO_SCALE.
3221 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
3222 (area_prepared): Fix typo.
3223 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
3224 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
3225 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3226 (dpi_conversion_factor): New global variable.
3227 (init_dpi_conversion_factor): New function to calculate and
3228 track DPI conversion factor.
3229 (dpi_changed_cb): New callback.
3230 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
3231
32322004-05-27 David Jee <djee@redhat.com>
3233
3234 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3235 (getGraphics): Return a new GdkGraphics instance.
3236 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3237 (getGraphics): Call super.getGraphics().
3238
32392004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3240
3241 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3242 (setNativeBounds): Clamp width and height values to >= 0.
3243
3244 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3245 (find_fg_color_widget): Handle GtkOptionMenu specially.
3246
3247 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3248 (pre_event_handler): Only post configure events to visible
3249 top-level windows.
3250
32512004-05-26 David Jee <djee@redhat.com>
3252
3253 * java/awt/BorderLayout.java
3254 (layoutContainer): Fix size calculations.
3255
32562004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
3257
3258 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3259 (window_wm_protocols_filter): Remove function.
3260 (create): Remove filter that removes WM_TAKE_FOCUS client
3261 messages.
3262
794c3bee
AG
32632004-06-17 Anthony Green <green@redhat.com>
3264
1616280e
AG
3265 * java/util/zip/ZipFile.java (getInputStream): Return null if
3266 entry not found.
3267
794c3bee
AG
3268 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
3269 directory contents to the class path.
3270
d1238423
AH
32712004-06-15 Andrew Haley <aph@redhat.com>
3272
3273 * java/lang/natSystem.cc (getenv0): Don't assume environment
3274 variable is Latin 1 coded.
3275
f1c3e0a6
AJ
32762004-06-14 Andreas Jaeger <aj@suse.de>
3277
3278 * configure.in: Support --enable-version-specific-runtime-libs.
3279 * configure: Regenerated.
3280
84b1d821
BM
32812004-06-14 Bryce McKinlay <mckinlay@redhat.com>
3282
3283 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
3284 to pass ClassLoader argument.
3285 * java/util/GregorianCalendar.java: Likewise.
3286 * java/util/Currency.java: Likewise.
3287 * java/text/BreakIterator.java: Likewise.
3288 * java/text/Collator.java: Likewise.
3289 * java/text/DateFormat.java: Likewise.
3290 * java/text/DateFormatSymbols.java: Likewise.
3291 * java/text/DecimalFormatSymbols.java: Likewise.
3292 * java/text/NumberFormat.java: Likewise.
3293 * java/awt/Window.java: Likewise.
3294
df94fa14
AH
32952004-06-14 Andrew Haley <aph@redhat.com>
3296
3297 * java/lang/System.java: (getenv0): New method.
3298 (getenv): Add security check. Do the right thing.
3299 * java/lang/natSystem.cc (getenv0): New method.
3300
ff6ea709
MW
33012004-06-12 Mark Wielaard <mark@klomp.org>
3302
3303 * javax/swing/RepaintManager.java
3304 (paintDirtyRegions): Use entrySet(), not values().
3305
d1ee8381
MW
33062004-06-10 Mark Wielaard <mark@klomp.org>
3307
3308 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
3309 NoSuchMethodError.
3310
b092552d
JQ
33112004-06-11 Jerry Quinn <jlquinn@optonline.net>
3312
3313 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
3314 when we already know the answer.
3315 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
3316 (setStartRule,setEndRule): Don't take abs of day number.
3317 (getOffset): Clarify docs. Add argument checks.
3318 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
3319 (equals,hasSameRules,toString,readObject): Use startTimeMode and
3320 endTimeMode.
3321
618df745
TT
33222004-06-10 Tom Tromey <tromey@redhat.com>
3323
3324 * interpret.cc (run): Handle wide fload.
3325
648b6075
JQ
33262004-06-06 Jerry Quinn <jlquinn@optonline.net>
3327
3328 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
3329
9fc3ed51
MK
33302004-06-05 Michael Koch <konqueror@gmx.de>
3331
3332 * javax/swing/SwingConstants.java
3333 (NEXT): New constant.
3334 (PREVIOUS): Likewise.
3335
c6dd0441
MK
33362004-06-05 Michael Koch <konqueror@gmx.de>
3337
3338 * javax/swing/UIManager.java
3339 (LookAndFeel): Made public.
3340 (LookAndFeel.getName): Likewise.
3341 (LookAndFeel.getClassName): Likewise.
3342
53ef271f
MK
33432004-06-03 Michael Koch <konqueror@gmx.de>
3344
3345 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3346 (requestFocus): Revert last changes.
3347 (gtkRequestFocus): Removed.
3348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3349 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3350 Renamed to ...
3351 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
3352 Reverted last patch.
3353 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3354 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
3355 Reverted comment change.
3356
26f4ba86
OR
33572004-06-02 Olga Rodimina <rodimina@redhat.com>
3358
3359 * javax/swing/JCheckBoxMenuItem.java:
3360 Removed CVS tags.
3361 * javax/swing/JMenu.java: Likewise.
3362 * javax/swing/JMenuBar.java: Likewise.
3363 * javax/swing/JMenuItem.java: Likewise.
3364 * javax/swing/JPopupMenu.java: Likewise.
3365 * javax/swing/JRadioButtonMenuItem.java: Likewise.
3366 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
3367 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
3368 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3369 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
3370 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
3371 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
3372
c05e85e2
MK
33732004-06-01 Tom Tromey <tromey@redhat.com>
3374
3375 * java/io/ObjectStreamField.java: Cleaned up imports.
3376
33772004-06-01 Michael Koch <konqueror@gmx.de>
3378
3379 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
3380
33812004-06-01 Mark Wielaard <mark@klomp.org>
3382
3383 * java/io/Writer.java (Writer(Object)): Fixed API doc.
3384
6ef44cfd
MK
33852004-06-01 Michael Koch <konqueror@gmx.de>
3386
3387 * java/security/Security.java
3388 (insertProviderAt): Use equals() instead of ==.
3389 (removeProvicer): Likewise.
3390 (getProvider): Likewise.
3391 * java/security/Signature.java
3392 (sign): Don't set state to UNINITIALIZED.
3393 (verify): Likewise.
3394
1900c4c6
MW
33952004-06-01 Mark Wielaard <mark@klomp.org>
3396
3397 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
3398 Implement by calling gtkRequestFocus.
3399 (gtkRequestFocus): New native method.
3400 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3401 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
3402 Renamed to ...
3403 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
3404 New function name.
3405 (filter_expose_event_handler):
3406 Mark static.
3407 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
3408 (menu_pos): Mark static.
3409
57807c31
MK
34102004-06-01 Michael Koch <konqueror@gmx.de>
3411
3412 * java/text/CollationElementIterator.java,
3413 java/text/CollationKey.java,
3414 java/text/RuleBasedCollator.java: New versions from GNU classpath.
3415 * testsuite/libjava.mauve/xfails: Removed all
3416 java.text.CollationElementIterator tests.
3417
f7dbd56c
MK
34182004-06-01 Michael Koch <konqueror@gmx.de>
3419
3420 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
3421 version.
3422 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
3423 Java 1.5 keyword usage.
3424
44a4b8db
OR
34252004-05-31 Olga Rodimina <rodimina@redhat.com>
3426
3427 * javax/swing/plaf/basic/BasicMenuUI.java:
3428 (MouseEntered): Do not call getPath() from MenuSelectionManager.
3429 Call getPath() from super class instead.
3430
58128b9d
MK
34312004-05-31 Michael Koch <konqueror@gmx.de>
3432
3433 * java/io/SequenceInputStream.java:
3434 Rename enum to e because enum is a keyword in Java 1.5.
3435
771b9ca3
MK
34362004-05-31 Michael Koch <konqueror@gmx.de>
3437
3438 * gnu/java/rmi/rmic/CompilerProcess.java:
3439 Fixed javadoc to by XHTML compliant.
3440
7a70d70c
MW
34412004-05-30 Mark Wielaard <mark@klomp.org>
3442
3443 * java/awt/Toolkit.java (loadSystemColors): Implement.
3444
289f9db7
MK
34452004-05-30 Michael Koch <konqueror@gmx.de>
3446
071917b0
MK
3447 * java/lang/System.java: Reordered imports.
3448
34492004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
3450
289f9db7
MK
3451 * java/text/DecimalFormat.java
3452 (parse): Fixed parsing of decimal strings. Number of maximum
3453 digits to be read should now work.
3454 * java/text/SimpleDateFormat.java
3455 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
3456 formatter. This fixes DateFormatTest.
3457
1b2545bc
MK
34582004-05-30 Michael Koch <konqueror@gmx.de>
3459
3460 * java/nio/Buffer.java
3461 (limit): Fixed off by one error.
3462 * java/nio/CharBuffer.java
3463 (wrap): Fixed arguments, added javadocs.
3464
74c2dbf7
MK
34652004-05-30 Michael Koch <konqueror@gmx.de>
3466
3467 * gnu/java/beans/BeanInfoEmbryo.java,
3468 java/awt/im/InputContext.java,
3469 javax/swing/tree/DefaultMutableTreeNode.java:
3470 Rename enum to e because enum is a keyword in Java 1.5.
3471
27d14326
MK
34722004-05-30 Michael Koch <konqueror@gmx.de>
3473
3474 * gnu/java/math/MPN.java,
3475 java/awt/geom/Arc2D.java:
3476 Fixed javadocs all over.
3477
933592af
MK
34782004-05-30 Michael Koch <konqueror@gmx.de>
3479
3480 * java/awt/DefaultKeyboardFocusManager.java
3481 (dispatchEvent): Call method to get key event dispatchers.
3482 (dispatchKeyEvent): Call method to get key event post processors.
3483 * javax/swing/JComponent.java
3484 (listenerList): Made protected.
3485 * javax/swing/JOptionPane.java
3486 (message): Don't initialize.
3487 (JOptionPane): Set message text.
3488 * javax/swing/JPopupMenu.java
3489 (show): Fixed typo in argument name.
3490 * javax/swing/RepaintManager.java
3491 (paintDirtyRegions): Use public API of java.util.Map.
3492 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
3493 (positionForMouseEvent): Removed redundant ';'.
3494 (continueDrag): Use method arguments.
3495
5ba95354
RM
34962004-05-29 Ranjit Mathew <rmathew@hotmail.com>
3497
3498 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
3499 results.
3500
ca60dce2
BM
35012004-05-28 Bryce McKinlay <mckinlay@redhat.com>
3502
3503 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
3504 _Jv_AllocBytes.
3505 * gnu/gcj/RawDataManaged.java: New file.
3506 * java/lang/Thread.java (data): Declare as RawDataManaged.
3507 * java/lang/natThread.cc (init_native): Cast natThread data to
3508 RawDataManaged, not jobject.
3509 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
3510 * Makefile.in: Rebuilt.
3511
b9f065be
JQ
35122004-05-27 Jerry Quinn <jlquinn@optonline.net>
3513
3514 * java/util/SimpleTimeZone.java: Reverting my last change until I
3515 can fix it properly.
3516
a4171ce1
MK
35172004-05-27 Michael Koch <konqueror@gmx.de>
3518
3519 * javax/swing/JPopupMenu.java
3520 (isVisible): Do not use visible directly.
3521 (setVisible): Likewise.
3522 * javax/swing/JWindow.java
3523 (JWindow): call accessible constructor.
3524 * javax/swing/RepaintManager.java
3525 (paintDirtyRegions): Use public methods to obtain iterator.
3526
c5d2de6b
GH
35272004-05-25 David Jee <djee@redhat.com>
3528
3529 * java/awt/Container.java
3530 (remove): Set component's parent to null only after we removed the
3531 component from its parent's layout manager.
3532
35332004-05-25 David Jee <djee@redhat.com>
3534
3535 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3536 (GtkComponentPeer): Set bounds regardless of whether awtComponent
3537 is valid.
3538 * gnu/java/awt/peer/gtk/GtkListPeer.java
3539 (getSize): Change native method declaration.
3540 (minimumSize): Pass visible row count into getSize().
3541 (preferredSize): Likewise.
3542 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
3543 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
3544 natural size. Use visible row count to determine the final height
3545 value to return.
3546
35472004-05-21 Graydon Hoare <graydon@redhat.com>
3548
3549 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3550 (setClip): Minor correction to order of operations.
3551
3552 * javax/swing/JScrollPane.java: Extend sketchy implementation.
3553 * javax/swing/ScrollPaneLayout.java: Likewise.
3554 * javax/swing/JViewPort.java: Likewise.
3555 * javax/swing/ViewportLayout.java: Likewise.
3556
3557 * javax/swing/JComponent.java: Rewrite.
3558 * javax/swing/RepaintManager.java: Likewise.
3559
3560 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
3561 * javax/swing/JList.java
3562 (setSelectedIndices):
3563 (getSelectedIndices):
3564 (getSelectedValues): New functions.
3565 (getPreferredScrollableViewportSize): Return preferred size.
3566 (getScrollableUnitIncrement):
3567 (getScrollableBlockIncrement): Initial implementations.
3568 * javax/swing/JRootPane.java: Clean up slightly.
3569 (getUI):
3570 (setUI):
3571 (updateUI):
3572 (getUIClassID):
3573 (isValidateRoot): Add overrides from JComponent.
3574 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
3575 * javax/swing/UIManager.java (getDimension): Return the dimension.
3576
3577 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
3578 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3579 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
3580 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3581 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3582 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
3583 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
3584 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3585 Likewise, and set background.
3586 * javax/swing/plaf/basic/BasicListUI.java:
3587 Likewise, and improve a bit.
3588 * javax/swing/plaf/basic/BasicScrollBarUI.java:
3589 Likewise, and adjust calculations.
3590 * javax/swing/plaf/basic/BasicViewportUI.java:
3591 Likewise, and improve a bit.
3592 * javax/swing/plaf/basic/BasicLookAndFeel.java
3593 (Button.margin): Shrink.
3594
3595 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
3596 Hack to set horizontal always, workaround pango.
3597
3598 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
3599 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
3600 Synchronize more often, check cairo status after ops,
3601 handle changes to cairo pattern API, check for disposal.
3602
36032004-05-21 Olga Rodimina <rodimina@redhat.com>
3604
3605 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3606 (BasicMenuItemUI): Create propertyChangeListener.
3607 (getPath):Implemented.
3608 (installListeners): Add propertyChangeListener to menuItem.
3609 (uninstallListeners): Remove propertyChangeListener from menuItem.
3610 (update): Implemented.
3611 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3612 (mouseEntered): Take insets of popup menu into account when
3613 calculating position of popup menu.
3614
36152004-05-18 Olga Rodimina <rodimina@redhat.com>
3616
3617 * Makefile.am: Added new file.
3618 * Makefile.in: Regenerate.
3619 * javax/swing/JMenuBar.java:
3620 Started implementation.
3621 * javax/swing/JPopupMenu.java:
3622 (setVisible): Fixed location of lightweight/mediumweight
3623 popup menu.
3624 (show): Fixed location of PopupMenu.
3625 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3626 New file. UI Delegate for JMenuBar.
3627 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
3628 (mouseEntered): Corrected position of the submenu.
3629
36302004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3631
3632 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
3633 to _gtk_accel_group_attach.
3634 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
3635 Likewise.
3636
3637 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
3638 package access. Don't override setFont.
3639 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
3640 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
3641 gtkWidgetRequestFocus package access.
3642 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
3643 setFont.
3644 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
3645 Give gtkWidgetRequestFocus package access.
3646 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
3647 gtkWidgetRequestFocus package access. Don't override setFont.
3648 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
3649 setFont.
3650 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3651 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
3652 region.
3653 (gtkSetFont): Likewise.
3654 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
3655 Implement.
3656 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3657 (gtkSetFont): Whitespace fix.
3658
3659 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3660 (gtkWidgetSetUsize): Remove method.
3661
36622004-05-18 David Jee <djee@redhat.com>
3663
3664 * java/awt/image/MemoryImageSource.java
3665 (newPixels(int,int,int,int,boolean)): Set only the specified
3666 rectangle of pixels.
3667 (newPixels(byte[],ColorModel,int,int)): Implement.
3668 (newPixels(int[],ColorModel,int,int)): Implement.
3669
36702004-05-18 Olga Rodimina <rodimina@redhat.com>
3671
3672 * Makefile.am: Added new file.
3673 * Makefile.in: Regenerate.
3674 * javax/swing/JMenu.java: Started
3675 implementation.
3676 * javax/swing/JPopupMenu.java:
3677 (insert): If specified index is -1, then
3678 add component at the end.
3679 (isPopupTrigger): Reimplemented.
3680 (JPopupMenu.LightWeightPopup): setBounds
3681 of the lightWeightPopup before adding it
3682 to the layeredPane.
3683 (javax/swing/plaf/basic/BasicIconFactory.java):
3684 (getMenuArrowIcon): Implemented.
3685 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3686 (getPreferredSize): Add size of the arrow icon
3687 if this menu item is instance of JMenu.
3688 (paintMenuItem): Paint arrow icon if this
3689 menu item is a submenu.
3690 * javax/swing/plaf/basic/BasicMenuUI.java:
3691 New File. UI Delegate for JMenu.
3692
36932004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3694
3695 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
3696 Post KEY_TYPED events.
3697 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3698 (generates_key_typed_event): Remove function.
3699
37002004-05-17 Olga Rodimina <rodimina@redhat.com>
3701
3702 * javax/swing/JRootPane.java
3703 (JRootPane.RootLayout): Reimplemented to
3704 set bounds of contentPane and menuBar.
3705 (setJMenuBar): Add menu bar to the layered pane.
3706 (createLayeredPane): Set layout of layeredPane
3707 to null.
3708 * javax/swing/JLayeredPane.java:
3709 (addImpl): Calculate index of the component in the
3710 layeredPane according to the specified position within
3711 the layer.
3712
37132004-05-17 David Jee <djee@redhat.com>
3714
3715 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3716 (setPixels): Change color model to the default model after
3717 converting pixels.
3718 * java/awt/image/MemoryImageSource.java
3719 (newPixels): Set only the specified rectangle of pixels.
3720
37212004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3722
3723 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
3724 -l-java-beans -l-javax-accessibility -l-javax-swing.
3725
3726 * java/awt/AWTEvent.java (toString): Print source's name rather
3727 than the source itself.
3728
37292004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
3730
3731 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
3732 native.
3733 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
3734 (gdk_color_to_java_color): New function.
3735 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
3736
37372004-05-12 David Jee <djee@redhat.com>
3738
3739 * java/awt/image/RGBImageFilter.java:
3740 Initialize origmodel as null.
3741 (makeColor): Fix pixel component order.
3742 (filterRGBPixels): Fix pixel iteration.
3743 (setPixels): Add extra checks for index color model. Convert pixels
3744 to default color model if necessary.
3745 (convertColorModelToDefault): New override method for byte pixels.
3746 (convertColorModelToDefault): For int pixels, fix pixel iteration.
3747 (makeColorbyDefaultCM): New override method for byte pixels.
3748 (makeColorbyDefaultCM): For int pixel, add color model as argument.
3749 (makeColor): Fix pixel component order.
3750
37512004-05-11 Kim Ho <kho@redhat.com>
3752
3753 * javax/swing/Box.java:
3754 Comment out more parts of Box.Filler.
3755
37562004-05-11 Kim Ho <kho@redhat.com>
3757
3758 * javax/swing/Box.java:
3759 Remove reference to AccessibleAWTComponent so
3760 it compiles again.
3761
37622004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
3763
3764 * gnu/java/awt/peer/gtk/GtkListPeer.java,
3765 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
3766 implementation of list peer to use GtkTreeView instead of
3767 deprecated GtkCList.
3768
37692004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
3770
3771 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3772 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
3773 (handleEvent): Remove keyChar argument to
3774 gtkWidgetDispatchKeyEvent calls.
3775 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
3776 compiler warnings.
3777 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3778 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
3779 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
3780 Likewise.
3781
37822004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
3783
3784 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3785 (gtkWidgetRequestFocus): Mark protected.
3786 (GtkComponentPeer): Only set the peer's bounds if its component
3787 is valid.
3788 * java/awt/Component.java (static): Set the default keyboard
3789 focus manager.
3790 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
3791 requestFocusInWindow(temporary)): Don't request focus if the
3792 component is not showing. Get tree lock before traversing
3793 component hierarchy.
3794 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
3795 Only set the global focus owner if it is not a Window.
3796 (processKeyEvent): Consume keystrokes associated with the focus
3797 traversal keystroke.
3798 (focusPreviousComponent, focusNextComponent, upFocusCycle,
3799 downFocusCycle): Call requestFocusInWindow instead of
3800 requestFocus.
3801 * java/awt/EventDispatchThread.java (run): Move setting of
3802 default keyboard focus manager to Component.java.
3803 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3804 (awt_keycode_to_keysym): New function.
3805 (gtkWidgetDispatchKeyEvent): Finish implementation.
3806 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3807 (pre_event_handler): Add FIXME comment.
3808
3809 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3810 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3811 (gtkWidgetRequestFocus): New method.
3812 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
3813 disable Tab and Shift-Tab keystrokes.
3814 (addNotify, appendText, insertText, replaceText): Simplify peer
3815 retrieval code.
3816 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
3817 (connectSignals): Remove connections to "commit" signals.
3818 Remove C++-style comments.
3819
3820 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
3821 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
3822 (handleEvent): Activate GTK button when the space bar key is
3823 pressed.
3824 (gtkActivate): New method.
3825
38262004-05-06 David Jee <djee@redhat.com>
3827
3828 * java/awt/image/CropImageFilter.java
3829 (setPixels): Implement for byte array pixels.
3830 * java/awt/image/ReplicateScaleFilter.java
3831 (setPixels): Implement for byte array pixels.
3832 (replicatePixels): Overload for byte array pixels.
3833
38342004-05-06 Kim Ho <kho@redhat.com>
3835
3836 * javax/swing/Box.java:
3837 (getAccessibleContext): Return an instance of the
3838 correct class.
3839
38402004-05-05 David Jee <djee@redhat.com>
3841
3842 * gnu/java/awt/peer/gtk/GdkGraphics.java
3843 (drawImage): When component is null, use SystemColor.window as
3844 the default bgcolor.
3845 * gnu/java/awt/peer/gtk/GtkImage.java
3846 (setPixels): We can avoid iterating through the pixel rows only
3847 when height is 1.
3848 * java/awt/Image.java
3849 (getScaledInstance): Partially implement.
3850 * java/awt/image/CropImageFilter.java
3851 (setProperties): Fix "filter" property.
3852 (setPixels): Implement.
3853 * java/awt/image/ReplicateScaleFilter.java
3854 (setDimensions): Use scaled dimensions.
3855 (setPixels): Implement.
3856 (replicatePixels): New method.
3857
38582004-05-05 David Jee <djee@redhat.com>
3859
3860 * gnu/java/awt/peer/gtk/GtkImagePainter.java
3861 (convertPixels): If either pixels or model is null, return null.
3862 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
3863 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
3864 is null, do nothing and return.
3865
38662004-05-03 Kim Ho <kho@redhat.com>
3867
3868 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
3869 (getGraphics): Like GtkFramePeer, the Graphics
3870 object needs to be translate to account for
3871 window decorations.
3872 (postMouseEvent): New method. Account for
3873 translation.
3874 (postExposeEvent): ditto.
3875 * javax/swing/Box.java: Stubbed.
3876 * javax/swing/JDialog.java: Ran through jalopy
3877 to fix indentation.
3878 (JDialog): Call SwingUtilities' getOwnerFrame
3879 for null owners.
3880 (setLayout): Check isRootPaneCheckingEnabled
3881 * javax/swing/JOptionPane.java: Re-implemented.
3882 * javax/swing/SwingUtilities.java:
3883 (getOwnerFrame): Static method to grab a default
3884 owner frame for Dialogs that don't specify owners.
3885 * javax/swing/event/SwingPropertyChangeSupport.java:
3886 (firePropertyChange): Fix early exit condition.
3887 * javax/swing/plaf/basic/BasicLabelUI.java:
3888 (paint): Avoid painting text if it is null
3889 or empty.
3890 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
3891 Implement.
3892
38932004-05-03 Olga Rodimina <rodimina@redhat.com>
3894
3895 * Makefile.am: Added new file.
3896 * Makefile.in: Regenerate.
3897 * javax/swing/JPopupMenu.java:
3898 Started implementation.
3899 * javax/swing/JWindow.java
3900 (JWindow): call super() if parent for window
3901 is not specified.
3902 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
3903 New File. UI Delegate for JPopupMenu.
3904
39052004-04-30 Olga Rodimina <rodimina@redhat.com>
3906
3907 * javax/swing/JApplet.java: Indicated that JApplet
3908 implements RootPaneContainer and made method of this
3909 interface public.
3910 * javax/swing/JFrame.java: Ditto.
3911 * javax/swing/JWindow.java: Ditto.
3912
39132004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
3914
3915 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3916 (nativeSetBounds): Call gdk_window_move in addition to
3917 gtk_window_move.
3918
3919 * java/applet/Applet.java (preferredSize): Call parent's
3920 preferredSize if the applet stub is null.
3921 (minimumSize): Likewise for parent's minimumSize.
3922
39232004-04-27 Olga Rodimina <rodimina@redhat.com>
3924
3925 * javax/swing/JMenuItem.java
3926 (createActionPropertyChangeListener): Implemented.
3927 (processMouseEvent): Ditto.
3928 (fireMenuDragMouseEntered): Ditto.
3929 (fireMenuDragMouseExited): Ditto.
3930 (fireMenuDragMouseDragged): Ditto.
3931 (fireMenuDragMouseReleased): Ditto.
3932 (menuSelectionChanged): Ditto.
3933 (getSubElements): Ditto.
3934 (getComponent): Ditto.
3935 (addMenuDragMouseListener): Ditto.
3936 (removeMenuDragMouseListener):Ditto.
3937 (addMenuKeyListener): Ditto.
3938 (removeMenuKeyListener): Ditto.
3939 * javax/swing/plaf/basic/BasicMenuItemUI.java
3940 (doClick): Imlemented.
3941 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
3942 Don't handle mouse events here. Pass them to
3943 MenuSelectionManager.
3944
39452004-04-26 Olga Rodimina <rodimina@redhat.com>
3946 Used correct version of jalopy configuration
3947 file to fix style in the files below.
3948
39492004-04-26 Olga Rodimina <rodimina@redhat.com>
3950
3951 * javax/swing/JCheckBoxMenuItem.java:
3952 Fixed style and removed unnecessary comments.
3953 * javax/swing/JMenuItem.java: Ditto.
3954 * javax/swing/JRadioButtonMenuItem.java: Ditto.
3955 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
3956 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
3957 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
3958
39592004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3960
3961 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
3962 C-style.
3963
3964 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
3965
3966 * java/awt/ContainerOrderFocusTraversalPolicy.java
3967 (getComponentAfter): Start from current component and work up
3968 the component hierarchy until an acceptable component is found.
3969 Synchronize on tree lock.
3970 (getComponentBefore): Likewise.
3971
39722004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
3973
3974 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
3975 focus-related debugging messages.
3976 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
3977 * java/awt/EventDispatchThread.java: Likewise.
3978 * java/awt/KeyboardFocusManager.java: Likewise.
3979 * java/awt/Window.java: Likewise.
3980 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
3981 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3982
3983 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
3984 new C++-style comments to C-style comments.
3985 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
3986
3987 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3988 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3989 (handleEvent): Dispatch key press and key release events to
3990 backing widget.
3991 (requestFocus): Post a FOCUS_GAINED event to the event queue.
3992 (gtkWidgetRequestFocus): New method.
3993 (gtkWidgetDispatchKeyEvent): Likewise.
3994 * java/awt/Component.java (requestFocus, requestFocus(boolean),
3995 requestFocusInWindow, requestFocusInWindow(boolean),
3996 getFocusCycleRootAncestor, nextFocus, transferFocus,
3997 transferFocusBackward, transferFocusUpCycle, hasFocus,
3998 isFocusOwner): Implement and document focus-handling methods.
3999 (setFocusTraversalKeys): Inherit focus traversal keys when
4000 keystrokes argument is null. Fix focus-handling documentation
4001 throughout class.
4002 * java/awt/Container.java (setFocusTraversalKeys,
4003 getFocusTraversalKeys, areFocusTraversalKeysSet,
4004 isFocusCycleRoot, setFocusTraversalPolicy,
4005 getFocusTraversalPolicy, isFocusTraversalPolicySet,
4006 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
4007 Implement and document focus-handling methods.
4008 (transferFocusBackward): Remove method.
4009 (readObject, writeObject): Implement and document serialization
4010 methods.
4011 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
4012 and document.
4013 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
4014 document.
4015 * java/awt/DefaultKeyboardFocusManager.java: Implement and
4016 partially document.
4017 * java/awt/EventDispatchThread.java (run): Set default keyboard
4018 focus manager. Attempt to dispatch each event to the keyboard
4019 focus manager before normal dispatch.
4020 * java/awt/KeyboardFocusManager.java: Implement and partially
4021 document.
4022 * java/awt/Window.java (Window): Set focusCycleRoot to true.
4023 (show): Focus initial component when window is shown for the
4024 first time.
4025 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
4026 (pre_event_handler): Replace complex key press and key release
4027 logic with simple callbacks into GtkComponentPeer.
4028 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
4029
40302004-04-21 Olga Rodimina <rodimina@redhat.com>
4031
4032 * javax/swing/MenuSelectionManager.java
4033 (componentForPoint): Added new method.
4034 (defaultManager): New Method. Implemented.
4035 (getSelectedPath): Ditto.
4036 (isComponentPartOfCurrentMenu): Ditto.
4037 (processKeyEvent): Added new method.
4038 (processMouseEvent): New Method. Implemented.
4039 (setSelectedPath): Ditto.
4040 (getPath): Ditto.
4041
40422004-04-19 Kim Ho <kho@redhat.com>
4043
4044 * java/awt/Container.java:
4045 (remove): Set the component's parent to null.
4046 (getComponentAt): Implement.
4047 * javax/swing/JComponent.java:
4048 (JComponent): Initialize defaultLocale
4049 (getDefaultLocale): Implement.
4050 (setDefaultLocale): ditto.
4051 * javax/swing/JSlider.java:
4052 (JSlider): Fix calculation of value.
4053 * javax/swing/JSplitPane.java: Implement.
4054 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4055 Change SplitPane's default divider size.
4056 * javax/swing/plaf/basic/BasicScrollBarUI.java:
4057 (paint): Remove unused code.
4058 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
4059 Added comments and ran through jalopy.
4060 (setBasicSplitPaneUI): Get reference to hidden divider
4061 and set up one touch buttons if necessary.
4062 (setBorder): Fire propertyChangeEvent only if
4063 borders are different.
4064 (getPreferredSize): Defer to layout manager.
4065 (propertyChange): Implement.
4066 (oneTouchExpandableChanged): ditto.
4067 (createLeftOneTouchButton): Use BasicArrowButton.
4068 (createRightOneTouchButton): ditto.
4069 (moveDividerTo): New method. Moves the divider
4070 to a set location based on the last divider location.
4071 (BasicSplitPaneDivider::MouseHandler): Implement.
4072 (BasicSplitPaneDivider::OneTouchButton): Removed.
4073 (BasicSplitPaneDivider::DragController): Implement.
4074 (BasicSplitPaneDivider::VerticalDragController):
4075 ditto.
4076 (BasicSplitPaneDivider::DividerLayout): ditto.
4077 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
4078 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
4079 (calculateLayoutInfo): Don't show component if it's
4080 null.
4081 (paintTab): Fix title paint logic.
4082
2140214f
JQ
40832004-05-26 Jerry Quinn <jlquinn@optonline.net>
4084
4085 PR libgcj/8321
4086 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
4087 (setStartRule,setEndRule): Don't take abs of day number.
4088 (getOffset): Clarify docs. Add argument checks.
4089 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
4090 (equals,hasSameRules,toString,readObject): Use startTimeMode and
4091 endTimeMode.
4092 * testsuite/libjava.mauve/xfails
4093 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
4094
17abdabc
BM
40952004-05-21 Bryce McKinlay <mckinlay@redhat.com>
4096
4097 Layout interfaces during preparation, not initialization.
4098 * java/lang/natClass.cc (initializeClass): Move
4099 _Jv_LayoutInterfaceMethods call...
4100 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
4101
0fa13661
AG
41022004-05-19 Anthony Green <green@localhost.localdomain>
4103
4104 * Makefile.am (awt_java_source_files): Remove javax.rmi and
4105 gnu.javax.rmi code.
4106 * Makefile.in: Rebuilt.
4107 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
4108 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
4109 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
4110 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
4111 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
4112 gnu/javax/rmi/CORBA/DelegateFactory.java,
4113 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
4114 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
4115 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
4116 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
4117 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
4118 gnu/javax/rmi/PortableServer.java: Remove files.
4119
0f22079e
AG
41202004-05-19 Anthony Green <green@redhat.com>
4121
4122 * Makefile.am: Define JAVA_EXT_DIRS.
4123 * Makefile.in: Rebuilt.
4124 * java/lang/natRuntime.cc (insertSystemProperties): Set
4125 java.ext.dirs property.
4126
9152dcf4
MW
41272004-05-16 Mark Wielaard <mark@klomp.org>
4128
4129 * java/io/Writer.java (Writer(Object)): Check for null lock object.
4130
fb0e7ec0
MW
41312004-05-15 Mark Wielaard <mark@klomp.org>
4132
4133 * doc/cni.sgml: Removed, merged into gcj.texi.
4134
85ff6f62
MW
41352004-05-15 Mark Wielaard <mark@klomp.org>
4136
4137 * Makefile.am (ordinary_java_source_files): Add new javax.print
4138 classes.
4139 * Makefile.in: Regenerated.
4140
41412004-05-15 Michael Koch <konqueror@gmx.de>
4142
4143 * javax/print/attribute/standard/DateTimeAtCompleted.java,
4144 javax/print/attribute/standard/DateTimeAtCreation.java,
4145 javax/print/attribute/standard/DateTimeAtProcessing.java,
4146 javax/print/attribute/standard/DocumentName.java,
4147 javax/print/attribute/standard/JobHoldUntil.java,
4148 javax/print/attribute/standard/JobImpressionsCompleted.java,
4149 javax/print/attribute/standard/JobMessageFromOperator.java,
4150 javax/print/attribute/standard/JobName.java,
4151 javax/print/attribute/standard/JobOriginatingUserName.java,
4152 javax/print/attribute/standard/JobPriority.java,
4153 javax/print/attribute/standard/JobPrioritySupported.java,
4154 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4155 javax/print/attribute/standard/OutputDeviceAssigned.java,
4156 javax/print/attribute/standard/PrinterInfo.java,
4157 javax/print/attribute/standard/PrinterLocation.java,
4158 javax/print/attribute/standard/PrinterMakeAndModel.java,
4159 javax/print/attribute/standard/PrinterMessageFromOperator.java,
4160 javax/print/attribute/standard/PrinterName.java,
4161 javax/print/attribute/standard/QueuedJobCount.java,
4162 javax/print/attribute/standard/RequestingUserName.java:
4163 Fixed javadocs all over.
4164
41652004-05-15 Michael Koch <konqueror@gmx.de>
4166
4167 * javax/print/DocFlavor.java,
4168 javax/print/attribute/standard/ColorSupported.java,
4169 javax/print/attribute/standard/Compression.java,
4170 javax/print/attribute/standard/CopiesSupported.java,
4171 javax/print/attribute/standard/Fidelity.java,
4172 javax/print/attribute/standard/Finishings.java,
4173 javax/print/attribute/standard/JobImpressionsSupported.java,
4174 javax/print/attribute/standard/JobKOctetsSupported.java,
4175 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4176 javax/print/attribute/standard/JobSheets.java,
4177 javax/print/attribute/standard/JobState.java,
4178 javax/print/attribute/standard/JobStateReason.java,
4179 javax/print/attribute/standard/JobStateReasons.java,
4180 javax/print/attribute/standard/Media.java,
4181 javax/print/attribute/standard/MediaSizeName.java,
4182 javax/print/attribute/standard/MultipleDocumentHandling.java,
4183 javax/print/attribute/standard/NumberUpSupported.java,
4184 javax/print/attribute/standard/OrientationRequested.java,
4185 javax/print/attribute/standard/PDLOverrideSupported.java,
4186 javax/print/attribute/standard/PageRanges.java,
4187 javax/print/attribute/standard/PresentationDirection.java,
4188 javax/print/attribute/standard/PrintQuality.java,
4189 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4190 javax/print/attribute/standard/PrinterMoreInfo.java,
4191 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4192 javax/print/attribute/standard/PrinterResolution.java,
4193 javax/print/attribute/standard/PrinterState.java,
4194 javax/print/attribute/standard/PrinterStateReason.java,
4195 javax/print/attribute/standard/PrinterStateReasons.java,
4196 javax/print/attribute/standard/PrinterURI.java,
4197 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4198 javax/print/attribute/standard/Severity.java,
4199 javax/print/attribute/standard/SheetCollate.java,
4200 javax/print/attribute/standard/Sides.java:
4201 Added serialVersionUID and removed final keyword where it doenst
4202 belong.
4203
42042004-05-15 Michael Koch <konqueror@gmx.de>
4205
4206 * javax/print/PrintServiceLookup.java: New file.
4207
42082004-05-15 Michael Koch <konqueror@gmx.de>
4209
4210 * javax/print/DocFlavor.java:
4211 Implemented all flavor classes.
4212
42132004-05-15 Michael Koch <konqueror@gmx.de>
4214
4215 * javax/print/attribute/standard/ColorSupported.java,
4216 javax/print/attribute/standard/Compression.java,
4217 javax/print/attribute/standard/CopiesSupported.java,
4218 javax/print/attribute/standard/Fidelity.java,
4219 javax/print/attribute/standard/Finishings.java,
4220 javax/print/attribute/standard/JobImpressionsSupported.java,
4221 javax/print/attribute/standard/JobKOctetsSupported.java,
4222 javax/print/attribute/standard/JobMediaSheetsSupported.java,
4223 javax/print/attribute/standard/JobSheets.java,
4224 javax/print/attribute/standard/JobState.java,
4225 javax/print/attribute/standard/JobStateReason.java,
4226 javax/print/attribute/standard/JobStateReasons.java,
4227 javax/print/attribute/standard/Media.java,
4228 javax/print/attribute/standard/MediaSizeName.java,
4229 javax/print/attribute/standard/MultipleDocumentHandling.java,
4230 javax/print/attribute/standard/NumberUpSupported.java,
4231 javax/print/attribute/standard/OrientationRequested.java,
4232 javax/print/attribute/standard/PDLOverrideSupported.java,
4233 javax/print/attribute/standard/PageRanges.java,
4234 javax/print/attribute/standard/PresentationDirection.java,
4235 javax/print/attribute/standard/PrintQuality.java,
4236 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
4237 javax/print/attribute/standard/PrinterMoreInfo.java,
4238 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
4239 javax/print/attribute/standard/PrinterResolution.java,
4240 javax/print/attribute/standard/PrinterState.java,
4241 javax/print/attribute/standard/PrinterStateReason.java,
4242 javax/print/attribute/standard/PrinterStateReasons.java,
4243 javax/print/attribute/standard/PrinterURI.java,
4244 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
4245 javax/print/attribute/standard/Severity.java,
4246 javax/print/attribute/standard/SheetCollate.java,
4247 javax/print/attribute/standard/Sides.java: New files.
4248
42492004-05-15 Michael Koch <konqueror@gmx.de>
4250
4251 * javax/print/Doc.java
4252 (getPrintData): Throws IOException.
4253 (getReaderForText): Likewise.
4254 (getStreamForBytes): Likewise.
4255 * javax/print/DocFlavor.java:
4256 Fixed filename in copyright.
4257 (serialVersionUID): New field.
4258 * javax/print/ServiceUIFactory.java:
4259 Made all constants final.
4260 * javax/print/AttributeException.java
4261 javax/print/MultiDoc.java
4262 javax/print/MultiDocPrintJob.java
4263 javax/print/MultiDocPrintService.java
4264 javax/print/StreamPrintService.java
4265 javax/print/URIException.java: New files.
4266 * javax/print/Makefile.am
4267 (EXTRA_DIST): Added all new files.
4268
42692004-05-15 Michael Koch <konqueror@gmx.de>
4270
4271 * javax/print/attribute/standard/Copies.java,
4272 javax/print/attribute/standard/DateTimeAtCompleted.java,
4273 javax/print/attribute/standard/DateTimeAtCreation.java,
4274 javax/print/attribute/standard/DateTimeAtProcessing.java,
4275 javax/print/attribute/standard/DocumentName.java,
4276 javax/print/attribute/standard/JobHoldUntil.java,
4277 javax/print/attribute/standard/JobImpressions.java,
4278 javax/print/attribute/standard/JobImpressionsCompleted.java,
4279 javax/print/attribute/standard/JobKOctets.java,
4280 javax/print/attribute/standard/JobKOctetsProcessed.java,
4281 javax/print/attribute/standard/JobMediaSheets.java,
4282 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
4283 javax/print/attribute/standard/JobMessageFromOperator.java,
4284 javax/print/attribute/standard/JobName.java,
4285 javax/print/attribute/standard/JobOriginatingUserName.java,
4286 javax/print/attribute/standard/JobPriority.java,
4287 javax/print/attribute/standard/JobPrioritySupported.java,
4288 javax/print/attribute/standard/NumberOfDocuments.java,
4289 javax/print/attribute/standard/NumberOfInterveningJobs.java,
4290 javax/print/attribute/standard/NumberUp.java,
4291 javax/print/attribute/standard/OutputDeviceAssigned.java,
4292 javax/print/attribute/standard/PagesPerMinute.java,
4293 javax/print/attribute/standard/PagesPerMinuteColor.java:
4294 Fixed @return tag all over.
4295
42962004-05-15 Michael Koch <konqueror@gmx.de>
4297
4298 * javax/print/attribute/AttributeSetUtilities.java
4299 (verifyCategoryForValue): Fixed typo in javadoc.
4300 * javax/print/attribute/HashAttributeSet.java
4301 (containsKey): Fixed @return tag.
4302 (comtainsValue): Likewise.
4303 (equals): Likewise.
4304 * javax/print/attribute/IntegerSyntax.java
4305 (equals): Likewise.
4306 * javax/print/attribute/ResolutionSyntax.java
4307 (equals): Likewise.
4308 (getCrossFeedResolution): Removed unused code.
4309 (getFeedResolution): Likewise.
4310 * javax/print/attribute/SetOfIntegerSyntax.java
4311 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
4312 (equals): Fixed @return tag.
4313 * javax/print/attribute/TextSyntax.java
4314 (TextSyntax): Take locale into account.
4315 (hashCode): Better implementation.
4316
43172004-05-15 Michael Koch <konqueror@gmx.de>
4318
4319 * javax/print/CancelablePrintJob.java,
4320 javax/print/Doc.java,
4321 javax/print/DocFlavor.java,
4322 javax/print/DocPrintJob.java,
4323 javax/print/FlavorException.java,
4324 javax/print/PrintException.java,
4325 javax/print/PrintService.java,
4326 javax/print/ServiceUIFactory.java: New files.
4327
f437e359
MW
43282004-05-15 Mark Wielaard <mark@klomp.org>
4329
4330 * gnu/regexp/CharIndexedReader.java: Removed.
4331 * gnu/regexp/REFilterReader.java: Likewise.
4332 * gnu/regexp/RETokenLookAhead.java: Likewise.
4333 * Makefile.am (ordinary_java_source_files): Remove above classes.
4334 * Makefile.in: Regenerated.
4335
ae0d0d59
TT
43362004-05-14 Tom Tromey <tromey@redhat.com>
4337
4338 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
4339 not `XGraphicsConfiguration.XOffScreenImage'.
4340
1cd29ad2
SG
43412004-05-14 Scott Gilbertson <scottg@mantatest.com>
4342
4343 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
4344
a01a235c
SA
43452004-05-14 Steven Augart <augart@watson.ibm.com>
4346
4347 * include/jni.h (_Jv_func): Removed.
4348 (struct JNINativeInterface): Use `void *' for reserved slots.
4349 (struct JNIInvokeInterface): Likewise.
4350
8f0b9daa
MK
43512004-05-11 Michael Koch <konqueror@gmx.de>
4352
4353 * gnu/java/net/natPlainSocketImplPosix.cc
4354 (read): Fixed typo in expression.
4355
3f68457e
AT
43562004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
4357
4358 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
4359 ld_library_additions. Adjust all calls to libjava_invoke to match
4360 the new argument.
4361
4362 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
4363 path to cxxflagslist.
4364 Pass path of libstdc++ to libjava_invoke.
4365
4366 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
4367 libjava_invoke arguments.
4368
731d47a6
RM
43692004-05-10 Ranjit Mathew <rmathew@hotmail.com>
4370
4371 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
4372 reality.
4373
8e31e128
RM
43742004-05-07 Ranjit Mathew <rmathew@gmail.com>
4375
4376 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
4377 main binary against the JNI shared library.
4378
61af3d86
JQ
43792004-05-07 Jerry Quinn <jlquinn@optonline.net>
4380
4381 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
4382 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
4383 (SimpleTimeZone): Tweak docs. Add new variation.
4384 (setStartRule,setEndRule): Add new variations. Use
4385 startTimeMode and endTimeMode.
4386
43872004-05-07 Jerry Quinn <jlquinn@optonline.net>
4388
4389 * java/util/Calendar.java (getActualMinimum,
4390 getActualMaximum): Remove abstract. Implement.
4391
579f9640
BM
43922004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4393
4394 Run the jni tests using the interpreter.
4395 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
4396 options_cxx to shared lib compile command.
4397 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
4398 they are used to link the shared lib, not the main binary.
4399 Use libjava_invoke to run gij.
4400
0a215a11
MK
44012004-05-06 Michael Koch <konqueror@gmx.de>
4402
4403 * java/util/logging/Level.java
4404 (parse): Use == instead of String.equals().
4405
e51f7aeb
BM
44062004-05-06 Bryce McKinlay <mckinlay@redhat.com>
4407
4408 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
4409 verify_field_signature and verify_method_signature, not
4410 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
4411 (_Jv_ClassReader::handleField): Likewise.
4412 (_Jv_ClassReader::handleMethod): Likewise.
4413
c8395524
MK
44142004-05-06 Michael Koch <konqueror@gmx.de>
4415
4416 * javax/swing/table/TableColumn.java:
4417 Reformated.
4418
c8b86f1a
MK
44192004-05-06 Michael Koch <konqueror@gmx.de>
4420
4421 * javax/imageio/spi/ImageReaderWriterSpi.java
4422 (ImageReaderWriterSpi): Made it public.
4423 * javax/imageio/stream/ImageInputStream.java:
4424 Clean up imports.
4425
9f2eefb7
MK
44262004-05-06 Michael Koch <konqueror@gmx.de>
4427
4428 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4429 Removed empty line.
4430
45505d4d
MK
44312004-05-06 Michael Koch <konqueror@gmx.de>
4432
4433 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
4434 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
4435 New files.
4436 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
4437 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
4438 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
4439 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
4440 their own source file.
4441 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4442 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
4443 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
4444 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
4445 (create): Define variable on top of function.
4446 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
4447 (menu_pos): Prototyped.
4448 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
4449 (setTitle): Removed.
4450 * jni/gtk-peer/gthread-jni.c
4451 (gdk_threads_wake): Removed.
4452 * Makefile.am (gtk_c_source_files): Added new files
4453 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
4454 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
4455 * Makefile.in: Regenerated.
4456
74e94435
BM
44572004-05-05 Bryce McKinlay <mckinlay@redhat.com>
4458
4459 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
4460 call.
4461
68ea5833
MW
44622004-05-05 Mark Wielaard <mark@klomp.org>
4463
4464 * javax/swing/AbstractButton.java: Replace special HTML entities with
4465 ASCII equivalent.
4466 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
4467 * javax/swing/DefaultButtonModel.java: Likewise.
4468 * javax/swing/DefaultListModel.java: Likewise.
4469 * javax/swing/JList.java: Likewise.
4470 * javax/swing/JSlider.java: Likewise.
4471 * javax/swing/ListModel.java: Likewise.
4472 * javax/swing/Popup.java: Likewise.
4473 * javax/swing/SwingUtilities.java: Likewise.
4474
880fa238
MK
44752004-05-05 Michael Koch <konqueror@gmx.de>
4476
4477 * javax/swing/AbstractButton.java,
4478 javax/swing/ActionMap.java,
4479 javax/swing/DefaultButtonModel.java,
4480 javax/swing/DefaultListModel.java,
4481 javax/swing/ImageIcon.java,
4482 javax/swing/JComboBox.java,
4483 javax/swing/JComponent.java,
4484 javax/swing/JFrame.java,
4485 javax/swing/JInternalFrame.java,
4486 javax/swing/JMenuBar.java,
4487 javax/swing/JMenuItem.java,
4488 javax/swing/JOptionPane.java,
4489 javax/swing/JProgressBar.java,
4490 javax/swing/JRootPane.java,
4491 javax/swing/JScrollBar.java,
4492 javax/swing/JScrollPane.java,
4493 javax/swing/JSeparator.java,
4494 javax/swing/JSlider.java,
4495 javax/swing/JTabbedPane.java,
4496 javax/swing/JTable.java,
4497 javax/swing/JTextField.java,
4498 javax/swing/JToolBar.java,
4499 javax/swing/JToolTip.java,
4500 javax/swing/JTree.java,
4501 javax/swing/JViewport.java,
4502 javax/swing/JWindow.java,
4503 javax/swing/KeyStroke.java,
4504 javax/swing/LookAndFeel.java,
4505 javax/swing/SwingUtilities.java,
4506 javax/swing/Timer.java,
4507 javax/swing/ToolTipManager.java,
4508 javax/swing/UIDefaults.java,
4509 javax/swing/border/TitledBorder.java,
4510 javax/swing/filechooser/FileSystemView.java,
4511 javax/swing/plaf/basic/BasicButtonListener.java,
4512 javax/swing/plaf/basic/BasicButtonUI.java,
4513 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
4514 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4515 javax/swing/plaf/basic/BasicLabelUI.java,
4516 javax/swing/plaf/basic/BasicMenuItemUI.java,
4517 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4518 javax/swing/plaf/basic/BasicRootPaneUI.java,
4519 javax/swing/plaf/basic/BasicScrollBarUI.java,
4520 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4521 javax/swing/plaf/basic/BasicSliderUI.java,
4522 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4523 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4524 javax/swing/table/JTableHeader.java,
4525 javax/swing/text/AbstractDocument.java,
4526 javax/swing/text/DefaultCaret.java,
4527 javax/swing/text/StyledEditorKit.java,
4528 javax/swing/tree/DefaultTreeCellEditor.java:
4529 Cleaned up imports.
4530
4a93a226
MK
45312004-05-05 Michael Koch <konqueror@gmx.de>
4532
4533 * java/util/prefs/AbstractPreferences.java
4534 (AbstractPreferences): Added parenthesis for clarity.
4535 Closes classpath bug #7940.
4536
aaec686e
TT
45372004-05-05 Tom Tromey <tromey@redhat.com>
4538
4539 * javax/naming/CompoundName.java (endsWith): Look at correct
4540 element of source name.
4541
b1210ca2
MW
45422004-05-05 Mark Wielaard <mark@klomp.org>
4543
4544 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
4545 * java/util/HashMap.java (rehash): Add entry at start of bucket.
4546
a54f498a
TT
45472004-05-05 Tom Tromey <tromey@redhat.com>
4548
4549 * java/io/BufferedReader.java (skip): Removed unused
4550 variable.
4551
e8430418
MK
45522004-05-05 Michael Koch <konqueror@gmx.de>
4553
4554 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
4555
f32c742c
DT
45562004-05-05 Dalibor Topic <robilad@kaffe.org>
4557
4558 * java/text/AttributedString.java,
4559 java/text/AttributedStringIterator.java,
4560 java/text/Collator.java,
4561 java/text/DecimalFormatSymbols.java,
4562 java/text/NumberFormat.java,
4563 java/text/RuleBasedCollator.java:
4564 Cleaned up imports.
4565
d70bd7ff
TT
45662004-05-05 Tom Tromey <tromey@redhat.com>
4567
4568 * java/text/Format.java: Cleaned up imports.
4569 * java/text/DecimalFormat.java: Cleaned up imports.
4570 * java/security/SecureRandom.java: Cleaned up imports.
4571 (SecureRandom): Removed unused variable.
4572 * java/security/UnresolvedPermission.java: Cleaned up imports.
4573 * java/util/Date.java (parse): Removed unused variable.
4574 * java/util/ResourceBundle.java: Cleaned up imports.
4575 (getBundle): Removed unused variable.
4576 (tryBundle): Likewise.
4577 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
4578
2225a42a
GL
45792004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4580
4581 * java/text/SimpleDateFormat.java:
4582 (formatWithAttribute): New method. It implements
4583 the formatting process with attributes.
4584 (format): Use formatWithAttribute.
4585 (formatToCharacterIterator): New method. Use
4586 formatWithAttribute.
4587
1f646142
GL
45882004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4589
4590 * java/text/MessageFormat.java:
4591 (class Field): New class.
4592 (formatToCharacterIterator): New method.
4593 (format): Use formatInternal now.
4594 (formatInternal): New method. String formatter should
4595 be done here (with attributes). Attributes merging supported.
4596 (parse): More documentation.
4597 (getFormatsByArgumentIndex): New method.
4598 (setFormatByArgumentIndex): New method.
4599 (setFormatsByArgumentIndex): New method.
4600
8cf1edb3
GL
46012004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4602
4603 * java/text/DecimalFormat.java
4604 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
4605 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
4606 (parse): Fixed handling of exponentiation notation and grouping.
4607
46082004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
4609
4610 * java/text/DecimalFormat.java
4611 (scanFix): Build attribute array. Fixed error reporting.
4612 (applyPatternWithSymbols): Store attributes for the prefix and
4613 suffix.
4614 (formatInternal): New method. Changed the way the string is
4615 computed. Implemented attributes. Cleant up rounding in
4616 exponential notation.
4617 (format): Use formatInternal.
4618 (formatToCharacterIterator): New method.
4619 (exponentRound, negativePrefixRanges, positivePrefixRanges,
4620 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
4621 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
4622 New fields.
4623
aff9d141
DT
46242004-05-04 Dalibor Topic <robilad@kaffe.org>
4625
4626 * java/security/interfaces/DSAKeyPairGenerator.java,
4627 java/security/interfaces/DSAPrivateKey.java,
4628 java/security/interfaces/DSAPublicKey.java,
4629 java/security/interfaces/RSAPrivateKey.java,
4630 java/security/interfaces/RSAPublicKey.java:
4631 Cleaned up imports.
4632
933522fb
MK
46332004-05-04 Michael Koch <konqueror@gmx.de>
4634
4635 * java/nio/ByteBuffer.java,
4636 java/nio/CharBuffer.java,
4637 java/nio/DoubleBuffer.java,
4638 java/nio/FloatBuffer.java,
4639 java/nio/IntBuffer.java,
4640 java/nio/LongBuffer.java,
4641 java/nio/ShortBuffer.java:
4642 (compareTo): Fixed bogus implementation in all buffer classes.
4643
27c2c3ec
IP
46442004-05-04 Ingo Proetel <proetel@aicas.com>
4645
4646 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
4647 32 bit pixels not 8 bit pixels.
4648 (isCompatibleRaster): Added javadoc comment.
4649
46502004-05-04 Ingo Proetel <proetel@aicas.com>
4651
4652 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
4653 scanline stride.
4654
46552004-05-04 Ingo Proetel <proetel@aicas.com>
4656
4657 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
4658 (getColorModel): Return the actual color model.
4659 (getRaster): Implemented.
4660 (ColorRaster): New inner class.
4661 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
4662 a PaintContext.
4663 * java/awt/Color.java (<init>): Make exception more verbose.
4664 (createContext): Use ColorModel when creating a PaintContext.
4665
a31d9d6c
MK
46662004-05-04 Michael Koch <konqueror@gmx.de>
4667
4668 * gnu/java/text/CharacterBreakIterator.java
4669 (previous): Removed unused variable.
4670
065afdfa
GL
46712004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
4672
4673 * gnu/java/text/FormatBuffer.java,
4674 gnu/java/text/AttributedFormatBuffer.java,
4675 gnu/java/text/StringFormatBuffer.java: New classes to implement
4676 attributed iterators in java.text.
4677 * gnu/java/text/FormatCharacterIterator.java: Moved
4678 from java/text as it is an internal class.
4679 * java/text/FormatCharacterIterator.java: Removed.
4680 * java/text/Format.java:
4681 Import gnu.java.text.FormatCharacterIterator.
4682 * Makefile.am (java_source_files): Added new files.
4683 * Makefile.in: Regenerated.
4684
4685
af62fd12
MW
46862004-05-04 Mark Wielaard <mark@klomp.org>
4687
53c87e49 4688 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
af62fd12 4689
a3c44036
AT
46902004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
4691
4692 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
4693 * Makefile.in: Rebuilt.
4694
007265b8
MW
46952004-05-03 Mark Wielaard <mark@klomp.org>
4696
4697 * gnu/java/security/der/DERReader.java: Call static methods staticly.
4698 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
4699 * java/net/URL.java
4700 (set(String, String, int, String, String, String, String, String)):
4701 Assign this.file to path or path + "?" + query.
4702 * java/util/Arrays.java: Call static methods staticly.
4703 * java/util/zip/ZipEntry.java: Likewise.
4704 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
4705 dir to this.direction.
4706 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
4707 Assign static field only once.
4708 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
4709
a00d3b3c
MW
47102004-05-03 Mark Wielaard <mark@klomp.org>
4711
4712 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
4713 unused variables hScrollbarHeight and vScrollbarWidth.
4714 (preferredSize): Likewise.
4715 * gnu/java/security/provider/DSAParameters.java (engineToString):
4716 Removed unused call to System.getProperty("line.seperator");
4717 * java/security/Security.java (loadProviders): Return result.
4718
7b68f0bf
TT
47192004-05-03 Tom Tromey <tromey@redhat.com>
4720
4721 * java/net/URLStreamHandler.java (toExternalForm): Removed
4722 unused variables.
4723 unused constructor.
4724 * java/math/BigDecimal.java (divide): Removed unused variable.
4725 * java/lang/Throwable.java: Cleaned up imports.
4726 * java/lang/ClassLoader.java: Cleaned up imports.
4727 * java/io/FilePermission.java (implies): Removed unused
4728 variable.
4729 * java/awt/TextComponent.java: Removed unused import.
4730 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
4731 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
4732 * gnu/java/text/WordBreakIterator.java: Removed unused import.
4733 * gnu/java/text/SentenceBreakIterator.java: Removed unused
4734 import.
4735 * gnu/java/text/LineBreakIterator.java: Removed unused import.
4736 * gnu/java/text/CharacterBreakIterator.java: Removed
4737 unused import.
4738 * gnu/java/security/provider/DSAKeyPairGenerator.java:
4739 Cleaned up imports.
4740 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
4741 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
4742 unused method.
4743 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
4744 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
4745 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
4746 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
4747 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
4748 (lookupProviders): Removed unused variable.
4749 (loadNextServiceProvider): Likewise.
4750 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
4751
493b3c9c
MK
47522004-05-03 Michael Koch <konqueror@gmx.de>
4753
4754 Fixes PR libgcj/14695:
4755 * java/net/NetworkInterface.java
4756 (getByName): Return null when no interface was found.
4757
55ce9c52
RM
47582004-04-30 Ranjit Mathew <rmathew@hotmail.com>
4759 Tom Tromey <tromey@redhat.com>
4760
4761 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
4762 additional option "-Wmissing-prototypes" for compiling C sources.
4763 Print actual filename for pass/fail rather than $name.c.
4764 * testsuite/libjava.jni/PR15133.java: New testcase file.
4765 * testsuite/libjava.jni/PR15133.c: Likewise.
4766 * testsuite/libjava.jni/PR15133.out: Likewise.
4767
2d99c042
RS
47682004-04-30 Roger Sayle <roger@eyesopen.com>
4769
4770 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
4771 ceil and floor.
4772
c1fcbbc3
RM
47732004-04-25 Ranjit Mathew <rmathew@hotmail.com>
4774
4775 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
4776 limit the maximum heap size to avoid unnecessary thrashing.
4777
6f0b1fa5
JQ
47782004-04-24 Jerry Quinn <jlquinn@optonline.net>
4779
4780 * java/text/CollationElementIterator.java (reset): Reset
4781 lookahead variables.
4782
99a88816
MW
47832004-04-23 Mark Wielaard <mark@klomp.org>
4784
4785 * jni/classpath/jcl.c: Changed C++ comments into C comments.
4786
b4e7ef8d
DT
47872004-04-23 Dalibor Topic <robilad@kaffe.org>
4788
4789 * java/sql/DriverManager.java:
4790 Cleaned up imports.
4791
e9d34968
MK
47922004-04-23 Michael Koch <konqueror@gmx.de>
4793
4794 * java/net/URL.java
4795 (hashcode): Don't initialize with default value explicitely.
4796 (getContent): Removed redundant "final" keyword.
4797 (openStream): Likewise.
4798 (getURLStreamHandler): Fixed coding style.
4799 * java/net/URLConnection.java
4800 (defaultAllowUserInteraction): Don't initialize with default value
4801 explicitely.
4802 (connected): Likewise.
4803 (doOutput): Likewise.
4804 (ifModifiedSince): Likewise.
4805 (dateformats_initialized): Likewise.
4806 (setURLStreamHander): Use StreamTokenizer where it belongs to.
4807
87939d70
MK
48082004-04-23 Michael Koch <konqueror@gmx.de>
4809
4810 * gnu/java/nio/channels/FileChannelImpl.java
4811 (SET, CUR): Unused, removed.
4812 (read): Implement here directly.
4813 (implRead): Removed.
4814 (write): Implement here directly.
4815 (implWrite): Removed.
4816
5d837a58
DT
48172004-04-23 Dalibor Topic <robilad@kaffe.org>
4818
4819 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
4820 javax/rmi/CORBA/Stub.java,
4821 javax/rmi/CORBA/Util.java,
4822 javax/rmi/CORBA/ValueHandler.java,
4823 javax/rmi/CORBA/ValueHandler.java,
4824 javax/rmi/PortableRemoteObject.java:
4825 Cleaned up imports.
4826
ace7ed7c
DT
48272004-04-23 Dalibor Topic <robilad@kaffe.org>
4828
4829 * java/util/jar/JarFile.java,
4830 java/util/jar/JarInputStream.java,
4831 java/util/jar/JarOutputStream.java,
4832 java/util/jar/Manifest.java:
4833 Cleaned up imports.
4834
48352004-04-23 Dalibor Topic <robilad@kaffe.org>
4836
4837 * java/util/ArrayList.java,
4838 java/util/Calendar.java,
4839 java/util/Currency.java,
4840 java/util/HashMap.java,
4841 java/util/HashSet.java,
4842 java/util/Hashtable.java,
4843 java/util/LinkedList.java,
4844 java/util/Properties.java,
4845 java/util/PropertyPermission.java,
4846 java/util/TimeZone.java,
4847 java/util/TreeMap.java,
4848 java/util/TreeSet.java,
4849 java/util/Vector.java,
4850 java/util/WeakHashMap.java:
4851 Cleaned up imports.
4852
48532004-04-23 Dalibor Topic <robilad@kaffe.org>
4854
4855 * java/util/logging/FileHandler.java,
4856 java/util/logging/Formatter.java,
4857 java/util/logging/Handler.java,
4858 java/util/logging/Logger.java,
4859 java/util/logging/SimpleFormatter.java,
4860 java/util/logging/XMLFormatter.java:
4861 Cleaned up imports.
4862
ae522139
MW
48632004-04-22 Mark Wielaard <mark@klomp.org>
4864
4865 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
4866 -Wno-long-long flags variable.
4867 (gtk_c_files): Use PEDANTIC_CFLAGS.
4868 * Makefile.in: Regenerated.
4869
838a4849
MK
48702004-04-22 Mark Wielaard <mark@klomp.org>
4871
4872 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4873 Changed C++ comments into C comments.
4874 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
4875 Likewise.
4876
48772004-04-22 Michael Koch <konqueror@gmx.de>
4878
4879 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
4880 Merged copyright year with GNU classpath.
4881
fe2235d1
DT
48822004-04-22 Dalibor Topic <robilad@kaffe.org>
4883
4884 * javax/security/auth/x500/X500Principal.java:
4885 Cleaned up imports.
4886
b7db3d0a
DT
48872004-04-22 Dalibor Topic <robilad@kaffe.org>
4888
4889 * javax/swing/JSlider.java:
4890 Fixed HTML tags in comments.
4891
32bfc773
DT
48922004-04-22 Dalibor Topic <robilad@kaffe.org>
4893
4894 * javax/accessibility/AccessibleText.java:
4895 Cleaned up imports.
4896
e930d01a
MK
48972004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
4898
4899 * java/net/URLStreamHandler.java
4900 (parseURL): Convert the file path to using '/' instead of native
4901 file separator.
4902
49032004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
4904
4905 * java/net/URL.java
4906 (userInfo): New field.
4907 (URL): Set authority to the right value.
4908 (setURL): Fixed authority and file initialization.
4909 * java/net/URLStreamHandler.java
4910 (parseURL): Take care of the query tag. Build authority.
4911 (toExternalForm): Fixed URL building using authority.
4912
5d79367d
MK
49132004-04-22 Michael Koch <konqueror@gmx.de>
4914
4915 * java/net/Socket.java
4916 (impl): Made package-private.
4917 * java/net/ServerSocket.java
4918 (implAccept): Access Socket.impl field directly.
4919
c0dce235
DT
49202004-04-22 Dalibor Topic <robilad@kaffe.org>
4921
4922 * java/util/prefs/Preferences.java,
4923 java/util/prefs/InvalidPreferencesFormatException.java,
4924 java/util/prefs/BackingStoreException.java,
4925 java/util/prefs/AbstractPreferences.java:
4926 Cleaned up imports.
4927
49282004-04-22 Dalibor Topic <robilad@kaffe.org>
4929
4930 * java/util/regex/Matcher.java,
4931 java/util/regex/Pattern.java:
4932 Cleaned up imports.
4933
5c09d725
MK
49342004-04-22 Michael Koch <konqueror@gmx.de>
4935
4936 * java/nio/charset/IllegalCharsetNameException.java
4937 (charsetName): Made private.
4938 (IllegalCharsetNameException): Added @param tag to javadoc.
4939 (getCharsetName): Added @return tag to javadoc.
4940 * java/nio/charset/MalformedInputException.java
4941 (MalformedInputException): Added @param tag to javadoc.
4942 (getInputLength): Revised method description, added @return tag.
4943 (getMessage): Added @return tag.
4944
83ef3f2b
JQ
49452004-04-22 Jerry Quinn <jlquinn@optonline.net>
4946
4947 * java/awt/Font.java (deriveFont): Implement missing variants.
4948 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
4949 missing variants.
4950
746ecc78
BM
49512004-04-21 Bryce McKinlay <mckinlay@redhat.com>
4952
4953 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
4954 Set method->index values for interface methods to their itable index.
4955 (initializeClass): Call _Jv_LayoutInterfaceMethods.
4956
86a80fc3
MK
49572004-04-21 Michael Koch <konqueror@gmx.de>
4958
4959 * java/nio/DirectByteBufferImpl.java
4960 (shiftDown): Made static, give address as argument and
4961 provide a convenience method that overwrites shiftDown in
4962 ByteBufferImpl and calls the native shiftDown.
4963 * java/nio/MappedByteBufferImpl.java
4964 (): Use optimized method in DirectByteBufferImpl.
4965 * java/nio/natDirectByteBufferImpl.cc
4966 (shiftDown): Changed method signature. Removed usage of array_offset.
4967
6e90ed19
MK
49682004-04-21 Michael Koch <konqueror@gmx.de>
4969
4970 * gnu/java/net/natPlainSocketImplPosix.cc
4971 (SocketInputStream::read): Make sure returned data is a byte value.
4972
96d22b12
MK
49732004-04-21 Michael Koch <konqueror@gmx.de>
4974
4975 * gnu/classpath/ServiceFactory.java,
4976 gnu/classpath/ServiceProviderLoadingAction.java,
4977 javax/imageio/ImageReader.java,
4978 javax/imageio/ImageTranscoder.java,
4979 javax/imageio/ImageWriter.java,
4980 javax/imageio/package.html,
4981 javax/imageio/spi/IIOServiceProvider.java,
4982 javax/imageio/spi/ImageInputStreamSpi.java,
4983 javax/imageio/spi/ImageOutputStreamSpi.java,
4984 javax/imageio/spi/ImageReaderWriterSpi.java,
4985 javax/imageio/spi/ImageTranscoderSpi.java,
4986 javax/imageio/spi/RegisterableService.java,
4987 javax/imageio/spi/ServiceRegistry.java,
4988 javax/imageio/spi/package.html,
4989 javax/imageio/stream/IIOByteBuffer.java,
4990 javax/imageio/stream/ImageInputStream.java,
4991 javax/imageio/stream/ImageOutputStream.java,
4992 javax/imageio/stream/package.html:
4993 New files.
4994 * Makefile.am
4995 (ordinary_java_source_files): Added
4996 gnu/classpath/ServiceFactory.java and
4997 gnu/classpath/ServiceProviderLoadingAction.java.
4998 (javax_source_files): Added
4999 javax/imageio/ImageReader.java,
5000 javax/imageio/ImageTranscoder.java,
5001 javax/imageio/ImageWriter.java,
5002 javax/imageio/spi/IIOServiceProvider.java,
5003 javax/imageio/spi/ImageInputStreamSpi.java,
5004 javax/imageio/spi/ImageOutputStreamSpi.java,
5005 javax/imageio/spi/ImageReaderWriterSpi.java,
5006 javax/imageio/spi/ImageTranscoderSpi.java,
5007 javax/imageio/spi/RegisterableService.java,
5008 javax/imageio/spi/ServiceRegistry.java,
5009 javax/imageio/stream/IIOByteBuffer.java,
5010 javax/imageio/stream/ImageInputStream.java and
5011 javax/imageio/stream/ImageOutputStream.java.
5012 * Makefile.in: Regenerated.
5013
ca17d211
MK
50142004-04-21 Michael Koch <konqueror@gmx.de>
5015
5016 * java/util/Properties.java
5017 (load): Fix wrongly merged fix.
5018
60e957d0
MW
50192004-04-21 Mark Wielaard <mark@klomp.org>
5020
5021 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
5022 malloc and free buf.
5023
27dd18cf
DT
50242004-04-21 Dalibor Topic <robilad@kaffe.org>
5025
5026 * javax/naming/AuthenticationException.java,
5027 javax/naming/AuthenticationNotSupportedException.java,
5028 javax/naming/CannotProceedException.java,
5029 javax/naming/CommunicationException.java,
5030 javax/naming/CompoundName.java,
5031 javax/naming/ConfigurationException.java,
5032 javax/naming/ContextNotEmptyException.java,
5033 javax/naming/InitialContext.java,
5034 javax/naming/InsufficientResourcesException.java,
5035 javax/naming/InterruptedNamingException.java,
5036 javax/naming/LimitExceededException.java,
5037 javax/naming/LinkException.java,
5038 javax/naming/LinkLoopException.java,
5039 javax/naming/LinkRef.java,
5040 javax/naming/MalformedLinkException.java,
5041 javax/naming/Name.java,
5042 javax/naming/NameAlreadyBoundException.java,
5043 javax/naming/NameNotFoundException.java,
5044 javax/naming/NamingSecurityException.java,
5045 javax/naming/NoInitialContextException.java,
5046 javax/naming/NoPermissionException.java,
5047 javax/naming/NotContextException.java,
5048 javax/naming/PartialResultException.java,
5049 javax/naming/ReferralException.java,
5050 javax/naming/ServiceUnavailableException.java,
5051 javax/naming/SizeLimitExceededException.java,
5052 javax/naming/TimeLimitExceededException.java,
5053 javax/naming/directory/Attribute.java,
5054 javax/naming/directory/Attributes.java,
5055 javax/naming/directory/SearchResult.java,
5056 javax/naming/event/NamingExceptionEvent.java,
5057 javax/naming/spi/ResolveResult.java:
5058 Cleaned up imports.
5059
2635995a
MW
50602004-04-21 Mark Wielaard <mark@klomp.org>
5061
5062 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
5063 Changed C++ comments into C comments. Removed commented out code.
5064 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
5065 Likewise.
5066 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
5067 Likewise.
5068 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
5069 Likewise.
5070 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
5071 Likewise.
5072 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5073 Likewise.
5074 * native/jni/gtk-peer/gthread-jni.c:
5075 Likewise.
5076
1c3d6bb2
MW
50772004-04-21 Mark Wielaard <mark@klomp.org>
5078
5079 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
5080 static fields defined in interface.
5081 * javax/awt/JDialog.java: Likewise.
5082 (JDialog): Make constructors public.
5083 (getDefaultCloseOperation): Make public.
5084 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
5085 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
5086 * javax/swing/JViewport.java (JViewport): Make constructor public.
5087
387fa012
MK
50882004-04-21 Michael Koch <konqueror@gmx.de>
5089
5090 * java/util/Map.java
5091 (Entry): Removed redundant "static" modifier.
5092 * java/text/AttributedCharacterIterator.java:
5093 Updated copyright year.
5094
bf9f06ae
MK
50952004-04-20 Michael Koch <konqueror@gmx.de>
5096
5097 * javax/naming/directory/SearchControls.java:
5098 Don't explicitely extend java.lang.Object.
5099 * javax/naming/spi/DirStateFactory.java:
5100 Merged copyright year with GNU classpath.
5101
8a6c1d29
MK
51022004-04-20 Michael Koch <konqueror@gmx.de>
5103
5104 * java/nio/channels/Channels.java:
5105 Merged coding style with GNU classpath.
5106
f5874634
MK
51072004-04-20 Michael Koch <konqueror@gmx.de>
5108
5109 * java/net/ServerSocket.java
5110 Merged coding style from GNU classpath.
5111
90cb5151
MK
51122004-04-20 Michael Koch <konqueror@gmx.de>
5113
5114 * java/io/BufferedWriter.java:
5115 Reordered variables to be at top of the class.
5116 (localFlush): Removed redundant final keyword.
5117
5ede96a4
IP
51182004-04-20 Ingo Proetel <proetel@aicas.com>
5119
5120 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
5121
391d8ef5
MK
51222004-04-20 Jeroen Frijters <jeroen@frijters.net>
5123
5124 * java/text/DecimalFormat.java (scanFix): Removed suffix check
5125 for percent and permill check.
5126
51272004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5128
5129 * java/text/FieldPosition.java
5130 (FieldPosition) Constructor now behaves as it should according
5131 to the java documentation.
5132
51332004-04-20 Mark Wielaard <mark@klomp.org>
5134
5135 * java/util/Properties.java: Use the word umlaut, not &auml; in api
5136 documentation.
5137
92e1fe67
MK
51382004-04-20 Michael Koch <konqueror@gmx.de>
5139
5140 * java/nio/Buffer.java,
5141 java/nio/channels/AlreadyConnectedException.java,
5142 java/nio/channels/AsynchronousCloseException.java,
5143 java/nio/channels/ByteChannel.java,
5144 java/nio/channels/CancelledKeyException.java,
5145 java/nio/channels/Channel.java,
5146 java/nio/channels/Channels.java,
5147 java/nio/channels/ClosedByInterruptException.java,
5148 java/nio/channels/ClosedChannelException.java,
5149 java/nio/channels/ClosedSelectorException.java,
5150 java/nio/channels/ConnectionPendingException.java,
5151 java/nio/channels/DatagramChannel.java,
5152 java/nio/channels/FileChannel.java,
5153 java/nio/channels/FileLock.java,
5154 java/nio/channels/FileLockInterruptionException.java,
5155 java/nio/channels/GatheringByteChannel.java,
5156 java/nio/channels/IllegalBlockingModeException.java,
5157 java/nio/channels/IllegalSelectorException.java,
5158 java/nio/channels/InterruptibleChannel.java,
5159 java/nio/channels/NoConnectionPendingException.java,
5160 java/nio/channels/NonReadableChannelException.java,
5161 java/nio/channels/NonWritableChannelException.java,
5162 java/nio/channels/NotYetBoundException.java,
5163 java/nio/channels/NotYetConnectedException.java,
5164 java/nio/channels/OverlappingFileLockException.java,
5165 java/nio/channels/Pipe.java,
5166 java/nio/channels/ReadableByteChannel.java,
5167 java/nio/channels/ScatteringByteChannel.java,
5168 java/nio/channels/SelectableChannel.java,
5169 java/nio/channels/SelectionKey.java,
5170 java/nio/channels/Selector.java,
5171 java/nio/channels/ServerSocketChannel.java,
5172 java/nio/channels/SocketChannel.java,
5173 java/nio/channels/UnresolvedAddressException.java,
5174 java/nio/channels/UnsupportedAddressTypeException.java,
5175 java/nio/channels/WritableByteChannel.java,
5176 java/nio/channels/spi/AbstractInterruptibleChannel.java,
5177 java/nio/channels/spi/AbstractSelectableChannel.java,
5178 java/nio/channels/spi/AbstractSelectionKey.java,
5179 java/nio/channels/spi/AbstractSelector.java,
5180 java/nio/channels/spi/SelectorProvider.java,
5181 java/nio/charset/spi/CharsetProvider.java:
5182 Fixed javadocs and jalopied all over java.nio.
5183
08c5d757
MK
51842004-04-20 Michael Koch <konqueror@gmx.de>
5185
5186 * java/nio/ByteBufferImpl.java,
5187 java/nio/CharBufferImpl.java,
5188 java/nio/DirectByteBufferImpl.java,
5189 java/nio/DoubleBufferImpl.java,
5190 java/nio/DoubleViewBufferImpl.java,
5191 java/nio/FloatBufferImpl.java,
5192 java/nio/FloatViewBufferImpl.java,
5193 java/nio/IntBufferImpl.java,
5194 java/nio/IntViewBufferImpl.java,
5195 java/nio/LongBufferImpl.java,
5196 java/nio/LongViewBufferImpl.java,
5197 java/nio/MappedByteBufferImpl.java,
5198 java/nio/ShortBufferImpl.java,
5199 java/nio/ShortViewBufferImpl.java:
5200 Made sure all classes are final and removed final keyword from all
5201 methods.
5202
a17c9f2e
MK
52032004-04-20 Michael Koch <konqueror@gmx.de>
5204
5205 * java/rmi/MarshalledObject.java,
5206 java/rmi/Naming.java,
5207 java/rmi/RemoteException.java,
5208 java/rmi/activation/ActivationException.java,
5209 java/rmi/server/ServerCloneException.java,
5210 java/security/AccessController.java,
5211 java/security/AlgorithmParameterGenerator.java,
5212 java/security/AlgorithmParameters.java,
5213 java/security/CodeSource.java,
5214 java/security/Identity.java,
5215 java/security/IdentityScope.java,
5216 java/security/KeyPairGenerator.java,
5217 java/security/KeyStore.java,
5218 java/security/Security.java,
5219 java/security/Signature.java,
5220 java/security/SignatureSpi.java,
5221 java/security/SignedObject.java,
5222 java/security/spec/DSAParameterSpec.java,
5223 java/security/spec/DSAPrivateKeySpec.java,
5224 java/security/spec/DSAPublicKeySpec.java,
5225 java/sql/Array.java,
5226 java/sql/DatabaseMetaData.java,
5227 java/sql/ResultSet.java,
5228 java/text/ChoiceFormat.java,
5229 java/text/CollationElementIterator.java,
5230 java/text/CollationKey.java,
5231 java/text/Collator.java,
5232 java/text/DateFormat.java,
5233 java/text/DateFormatSymbols.java,
5234 java/text/DecimalFormatSymbols.java,
5235 java/text/Format.java,
5236 java/text/ParsePosition.java,
5237 java/text/RuleBasedCollator.java,
5238 java/text/SimpleDateFormat.java,
5239 java/text/StringCharacterIterator.java,
5240 java/util/Collections.java,
5241 java/util/PropertyResourceBundle.java,
5242 java/util/ResourceBundle.java,
5243 java/util/StringTokenizer.java,
5244 java/util/jar/Attributes.java,
5245 java/util/logging/ConsoleHandler.java,
5246 java/util/logging/LogManager.java,
5247 java/util/logging/MemoryHandler.java,
5248 java/util/logging/SocketHandler.java,
5249 javax/naming/NamingException.java:
5250 Fixed javadoc, coding style and argument names all over.
5251
0fc920c8
MK
52522004-04-20 Jeroen Frijters <jeroen@frijters.net>
5253
5254 * java/io/FileDescriptor.java: (FileDescriptor) Added public
5255 constructor. (valid) Added null check.
5256
52572004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
5258
5259 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
5260 * java/io/FileOutputStream.java
5261 (FileOutputStream) Reorganized constructors. Constructors now
5262 check whether the given path is directory.
5263
f6d49f66
MK
52642004-04-20 Michael Koch <konqueror@gmx.de>
5265
5266 * java/net/Authenticator.java,
5267 java/net/BindException.java,
5268 java/net/ConnectException.java,
5269 java/net/ContentHandler.java,
5270 java/net/ContentHandlerFactory.java,
5271 java/net/DatagramPacket.java,
5272 java/net/DatagramSocket.java,
5273 java/net/DatagramSocketImpl.java,
5274 java/net/DatagramSocketImplFactory.java,
5275 java/net/FileNameMap.java,
5276 java/net/HttpURLConnection.java,
5277 java/net/Inet4Address.java,
5278 java/net/Inet6Address.java,
5279 java/net/InetAddress.java,
5280 java/net/InetSocketAddress.java,
5281 java/net/JarURLConnection.java,
5282 java/net/MalformedURLException.java,
5283 java/net/MulticastSocket.java,
5284 java/net/NetPermission.java,
5285 java/net/NetworkInterface.java,
5286 java/net/NoRouteToHostException.java,
5287 java/net/PasswordAuthentication.java,
5288 java/net/PortUnreachableException.java,
5289 java/net/ProtocolException.java,
5290 java/net/ServerSocket.java,
5291 java/net/Socket.java,
5292 java/net/SocketAddress.java,
5293 java/net/SocketException.java,
5294 java/net/SocketImpl.java,
5295 java/net/SocketImplFactory.java,
5296 java/net/SocketOptions.java,
5297 java/net/SocketPermission.java,
5298 java/net/SocketTimeoutException.java,
5299 java/net/URI.java,
5300 java/net/URISyntaxException.java,
5301 java/net/URL.java,
5302 java/net/URLClassLoader.java,
5303 java/net/URLConnection.java,
5304 java/net/URLDecoder.java,
5305 java/net/URLEncoder.java,
5306 java/net/URLStreamHandler.java,
5307 java/net/URLStreamHandlerFactory.java,
5308 java/net/UnknownHostException.java,
5309 java/net/UnknownServiceException.java:
5310 Fixed javadocs, coding style and argument names all over.
5311
cf6f7d55
MK
53122004-04-20 Michael Koch <konqueror@gmx.de>
5313
5314 * java/lang/Byte.java,
5315 java/lang/CharSequence.java,
5316 java/lang/ClassLoader.java,
5317 java/lang/Compiler.java,
5318 java/lang/Double.java,
5319 java/lang/Float.java,
5320 java/lang/Integer.java,
5321 java/lang/Long.java,
5322 java/lang/Math.java,
5323 java/lang/Number.java,
5324 java/lang/Package.java,
5325 java/lang/Runtime.java,
5326 java/lang/RuntimePermission.java,
5327 java/lang/SecurityManager.java,
5328 java/lang/Short.java,
5329 java/lang/StringBuffer.java,
5330 java/lang/System.java,
5331 java/lang/ThreadGroup.java,
5332 java/lang/Throwable.java,
5333 java/lang/reflect/InvocationHandler.java,
5334 java/lang/reflect/Proxy.java:
5335 Fixed javadocs, coding style and argument names all over.
5336
9f714d5e
MK
53372004-04-20 Michael Koch <konqueror@gmx.de>
5338
5339 * java/io/BufferedWriter.java,
5340 java/io/ByteArrayInputStream.java,
5341 java/io/CharArrayWriter.java,
5342 java/io/DataInput.java,
5343 java/io/DataInputStream.java,
5344 java/io/File.java,
5345 java/io/FilterInputStream.java,
5346 java/io/InputStream.java,
5347 java/io/InputStreamReader.java,
5348 java/io/ObjectInputStream.java,
5349 java/io/ObjectStreamClass.java,
5350 java/io/PipedInputStream.java,
5351 java/io/PipedReader.java,
5352 java/io/PushbackInputStream.java,
5353 java/io/PushbackReader.java,
5354 java/io/RandomAccessFile.java,
5355 java/io/SerializablePermission.java,
5356 java/io/StreamTokenizer.java,
5357 java/io/StringWriter.java,
5358 java/io/WriteAbortedException.java,
5359 java/io/Writer.java:
5360 Fixed javadocs all over, rename arguments to match javadocs,
5361 fixed coding style.
5362
23f0ecff
MK
53632004-04-20 Ingo Proetel <proetel@aicas.com>
5364
5365 * java/awt/FontMetrics.java:
5366 (charsWidth): fixed accumulation of total_width
5367 (getWidth): simple default implementation
5368 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
5369 in Rectangle constructor.
5370 * java/awt/image/Raster.java (toString): Added method.
5371 * java/awt/image/SampleModel.java (<init>): Added error cause
5372 information to thrown exception.
5373 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
5374 New method.
5375 (setDataElements): New method.
5376 (setPixels): New method.
5377 (toString): New method.
5378
53792004-04-20 Sascha Brawer <brawer@dandelis.ch>
5380
5381 * java/awt/image/ComponentColorModel.java
5382 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
5383 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
5384 Mauve tests on this method. Improved documentation.
5385
2c4d54e6
MK
53862004-04-20 Michael Koch <konqueror@gmx.de>
5387
5388 * javax/swing/JLayeredPane.java,
5389 javax/swing/plaf/BorderUIResource.java,
5390 javax/swing/plaf/ComponentUI.java,
5391 javax/swing/undo/CompoundEdit.java,
5392 javax/swing/undo/StateEdit.java:
5393 Fixed HTML tags in javadocs all over.
5394
5589f3e5
MK
53952004-04-20 Michael Koch <konqueror@gmx.de>
5396
5397 * javax/print/attribute/EnumSyntax.java
5398 (getOffset): Made protected.
5399 * javax/print/attribute/HashAttributeSet.java
5400 (HashAttributeSet): Likewise.
5401 * javax/print/attribute/ResolutionSyntax.java
5402 (getFeedResolution): Fixed typo in exception name.
5403 (getCrossFeedResolution): Likewise.
5404 * javax/print/attribute/SetOfIntegerSyntax.java
5405 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
5406 * javax/print/attribute/TextSyntax.java
5407 (TextSyntax): Handle locale correctly.
5408 (hashCode): Calc better hashcode value.
5409 (equals): Fixed @return tag.
5410 (toString): New method.
5411
0150fc22
MK
54122004-04-20 Michael Koch <konqueror@gmx.de>
5413
5414 * gnu/java/nio/FileLockImpl.java
5415 (static): Removed, not needed anymore.
5416 * gnu/java/nio/channels/FileChannelImpl.java
5417 (FileChannelImpl): Made final.
5418 (mode): Made private.
5419 (READ, WRITE, APPEND): Made public.
5420 (EXCL, SYNC, DSYNC): Likewise.
5421 (static): Load native JNI library, when needed.
5422 (length): Unused, removed.
5423 (available): Made public.
5424 (implPosition): Throws IOException.
5425 (seek): Likewise.
5426 (implTruncate): Likewise.
5427 (unlock): Likewise.
5428 (lock): Likewise.
5429
7431acbe
MK
54302004-04-20 Michael Koch <konqueror@gmx.de>
5431
5432 * java/awt/AWTPermission.java,
5433 java/awt/Component.java,
5434 java/awt/ComponentOrientation.java,,
5435 java/awt/Dialog.java,
5436 java/awt/FontMetrics.java,
5437 java/awt/Graphics.java,
5438 java/awt/datatransfer/DataFlavor.java,
5439 java/beans/Introspector.java,
5440 java/beans/PropertyEditor.java,
5441 java/beans/PropertyEditorManager.java,
5442 java/beans/beancontext/BeanContextServiceProvider.java:
5443 Fixed HTML tags in javadocs all over.
5444
7f6f517f
MW
54452004-04-20 Mark Wielaard <mark@klomp.org>
5446
5447 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
5448 MissingResourceException is thrown.
5449 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
5450 null when a MissingResourceException is thrown. Should never happen.
5451
8ecb0346
MK
54522004-04-20 Sascha Brawer <brawer@dandelis.ch>
5453
5454 * java/awt/image/DataBufferShort.java,
5455 java/awt/image/DataBufferFloat.java,
5456 java/awt/image/DataBufferDouble.java,
5457 java/awt/image/PixelInterleavedSampleModel.java: New files.
5458 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
5459 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
5460
54612004-04-20 Michael Koch <konqueror@gmx.de>
5462
5463 * Makefile.am (java_source_files): Added
5464 java/awt/image/DataBufferDouble.java,
5465 java/awt/image/DataBufferFloat.java,
5466 java/awt/image/DataBufferShort.java and
5467 java/awt/image/PixelInterleavedSampleModel.java.
5468 * Makefile.in: Regenerated.
5469
f5310108
BM
54702004-04-19 Bryce McKinlay <mckinlay@redhat.com>
5471
5472 * gcj/cni.h (JvAllocObject): Remove these obsolete,
5473 undocumented CNI calls.
5474 * include/java-interp.h (_Jv_InterpClass): No longer
5475 extends java.lang.Class.
5476 * java/lang/Class.h (Class): Add new field `aux_info'.
5477 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
5478 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
5479 Use Class->aux_info instead.
5480 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
5481 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
5482 Use Class->aux_info instead.
5483 * java/io/natObjectInputStream.cc (allocateObject): Use
5484 _Jv_AllocObject.
5485 * java/lang/natClass.cc (newInstance): Likewise.
5486 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
5487 * java/lang/natObject.cc (clone): Likewise.
5488 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
5489 * java/lang/natVMClassLoader.cc (defineClass): Don't use
5490 JvAllocObject. Allocate klass->aux_info here for interpreted
5491 class.
5492
afd7c0dc
MW
54932004-04-17 Mark Wielaard <mark@klomp.org>
5494
5495 * javax/swing/JToggleButton.java (ToggleButtonModel):
5496 Make public static inner class.
5497 * javax/swing/JTabbedPane.java (setComponentAt):
5498 Call Page.setComponent().
5499 (SCROLL_TAB_LAYOUT): Make public, value is 1.
5500 (WRAP_TAB_LAYOUT): Make public, value is 0.
5501 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
5502 Make private static inner class.
5503
bf7ad402
BM
55042004-04-16 Bryce McKinlay <mckinlay@redhat.com>
5505
5506 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
5507 arguments to match new signature. Remove FIXME comments.
5508
31e632d3
GH
55092004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
5510
5511 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
5512 Remove method.
5513 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
5514 unused code.
5515
55162004-04-02 Olga Rodimina <rodimina@redhat.com>
5517
5518 * Makefile.am: Added new file.
5519 * Makefile.in: Regenerate.
5520 * javax/swing/ImageIcon.java:
5521 (ImageIcon(file)): set description of the icon
5522 to the file name
5523 * javax/swing/JCheckBoxMenuItem.java:
5524 Mostly Implemented. Work in progress.
5525 * javax/swing/JRadioButtonMenuItem.java:
5526 Reimplement constructors to use JToggleButtonModel.
5527 * javax/swing/plaf/basic/BasicIconFactory.java:
5528 (getCheckBoxMenuItemIcon): return check box
5529 icon.
5530 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5531 paint menu item selected only when it is armed and
5532 pressed.
5533
55342004-04-02 David Jee <djee@redhat.com>
5535
5536 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5537 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
5538 * java/awt/Component.java
5539 (add): Set the parent of the popup as this component.
5540 * java/awt/PopupMenu.java
5541 (addNotify): Create popup menu when peer is null.
5542 (show): Call addNotify() if peer is null.
5543 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5544 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
5545 argument for gtk_menu_popup() as zero. This causes the popup menu to
5546 respond to any mouse button.
5547
55482004-03-31 Olga Rodimina <rodimina@redhat.com>
5549
5550 * Makefile.am: Added new file.
5551 * Makefile.in: Regenerate.
5552 * javax/swing/JRadioButtonMenuItem.java:
5553 Implemented.
5554 * javax/swing/plaf/basic/BasicIconFactory.java:
5555 (getRadioButtonMenuItemIcon): Return
5556 radio button icon.
5557 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5558 (getPreferredSize): Add size of checkIcon if it
5559 exists.
5560 (installDefaults): Don't initialize checkIcon.
5561 It's value will be set in subclasses.
5562 (uninstallDefaults): remove uninstallation of
5563 checkIcon.
5564 (paint): Moved code to paintMenuItem().
5565 (paintMenuItem): Implemented.
5566 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
5567 UI delegate for JRadioButtonMenuItem.
5568
55692004-03-29 Olga Rodimina <rodimina@redhat.com>
5570
5571 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5572 Corrected position of the accelerator.
5573
55742004-03-29 Olga Rodimina <rodimina@redhat.com>
5575
5576 * Makefile.am: Added new file.
5577 * Makefile.in: Regenerate.
5578 * javax/swing/JMenuItem.java: Partly
5579 implemented. Work in progress
5580 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5581 Changed default value of acceleratorDelimiter.
5582 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5583 New class. Partly implemented.
5584
55852004-03-26 Mark Wielaard <mark@klomp.org>
5586
5587 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
5588 (item_activate): Declare label before use.
5589 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5590 (gtkSetFont): Removed unused variable label.
5591 (addExposeFilter): Declare variables before use.
5592 (removeExposeFilter): Likewise.
5593 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
5594 (ok_clicked): Declare str_fileName before use.
5595
55962004-03-26 David Jee <djee@redhat.com>
5597
5598 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
5599 (addSeparator): Remove.
5600 * java/awt/Menu.java
5601 (separator): Remove static final MenuItem field.
5602 (separatorLabel): New static final String field.
5603 (addSeparator): Do not use peer method; use add(MenuItem) instead.
5604 Use separatorLabel to denote that it is a separator.
5605 (insertSeparator): Create a new MenuItem with separatorLabel, instead
5606 of reusing the static separator instance, because a MenuItem instance
5607 can't be added more than once without being cloned.
5608 * java/awt/peer/MenuPeer.java
5609 (addSeparator): Remove from interface.
5610
56112004-03-26 David Jee <djee@redhat.com>
5612
5613 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
5614 (connectSignals): New native method declaration.
5615 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
5616 * java/awt/MenuItem.java
5617 (getActionCommand): Return the label if the action command is not set.
5618 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
5619 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
5620 gtk_menu_shell_append().
5621 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
5622 (item_activate): Fix argument type.
5623 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
5624 signal here.
5625 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
5626 method.
5627 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
5628 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
5629 given. Add the menu widget's top-level GtkWindow to the global window
5630 group, so it can grab the pointer.
5631 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
5632 gtk_menu_shell_append().
5633
56342004-03-23 Graydon Hoare <graydon@redhat.com>
5635
5636 * java/text/AttributedString.java
5637 (addAttribute): Fix off-by-one.
5638 (getIterator): Likewise.
5639 * java/text/AttributedStringIterator.java
5640 (getRunLimit): Correct logic.
5641 (getRunStart): Likewise.
5642 (getAttribute): Fix inequality.
5643 (getAttributes): Likewise.
5644 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
5645
56462004-03-23 Kim Ho <kho@redhat.com>
5647
5648 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5649 (calculateSizes): Return real width and height.
5650
56512004-03-23 Kim Ho <kho@redhat.com>
5652
5653 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
5654 (calculateTabRects): Set the selectedRun before
5655 trying to rotate tabs.
5656
56572004-03-23 Kim Ho <kho@redhat.com>
5658
5659 * Makefile.am: New file
5660 * Makefile.in: Regenerate
5661 * java/awt/Graphics.java: (drawRect):
5662 Draw to the correct point.
5663 * javax/swing/DefaultSingleSelectionModel.java
5664 (isSelected): Return true if the selected index
5665 is not -1.
5666 * javax/swing/JLabel.java: Do not change mnemonic
5667 index if text is null.
5668 * javax/swing/JProgressBar.java: Use JComponent's
5669 EventListenerList.
5670 * javax/swing/JScrollBar.java: Ditto.
5671 * javax/swing/JSlider.java: Ditto.
5672 * javax/swing/JTabbedPane.java: Reimplement.
5673 * javax/swing/plaf/basic/BasicLookAndFeel.java:
5674 Add defaults for TabbedPane.
5675 * javax/swing/plaf/basic/BasicArrowButton.java:
5676 Implement
5677 * javax/swing/plaf/basic/BasicProgressBarUI.java:
5678 (paintDeterminate): Don't paint String if it's
5679 empty.
5680 (paintIndeterminate): ditto.
5681 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
5682 Reimplement.
5683
56842004-03-19 Michael Koch <konqueror@gmx.de>
5685
5686 * java/awt/image/AffineTransformOp.java
5687 (AffineTransformOp): Made public.
5688 * javax/swing/JComponent.java
5689 (listenerList): Made protected.
5690 (accessibleContext): Likewise.
5691 * javax/swing/JList.java
5692 (valueChanged): Dont use internal fields of ListSelectionEvent.
5693 * javax/swing/JViewport.java
5694 (getView): Dont use internal fields of Component.
5695 (addImpl): Likewise.
5696 * javax/swing/Timer.java
5697 (isRunning): Made public.
5698 (start): Likewise.
5699 (stop): Likewise.
5700 * javax/swing/UIDefaults.java
5701 (getInt): Made public.
5702 * javax/swing/plaf/basic/BasicListUI.java
5703 (mousePressed): Dont use internal fields of MouseEvent.
5704 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5705 * javax/swing/plaf/basic/BasicScrollBarUI.java
5706 (arrowIcon): Made static.
5707 * javax/swing/plaf/basic/BasicViewportUI.java
5708 (stateChanged): Dont use internal field on ChangeEvent.
5709 * javax/swing/text/JTextComponent.java
5710 (getUI): Call UIManager.getUI().
5711 (updateUI): Use getUI().
5712
57132004-03-19 Graydon Hoare <graydon@redhat.com>
5714
5715 * javax/swing/JComponent.java: Turn off double buffer by default.
5716 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
5717 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
5718 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
5719 Use cairo to copy areas.
5720 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
5721 Initialize and set clip region.
5722
57232004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
5724
5725 * java/applet/Applet.java (preferredSize): Override deprecated
5726 variant of getPreferredSize.
5727 (minimumSize): Override deprecated variant of getMinimumSize.
5728
57292004-03-15 Olga Rodimina <rodimina@redhat.com>
5730
5731 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5732 (drawImage(img,xform,bgcolor,obs)): New Method.
5733 Helper function that every drawImage method will
5734 use.
5735 (drawRaster): Added new parameter, bgcolor. All
5736 transparent pixels are changed to bgcolor before
5737 image is drawn.
5738 (drawRenderedImage): Fixed to use changed drawRaster().
5739 (drawImage(image,xform,obs): Fixed to use new helper function
5740 (drawImage(image,op,x,y)): Ditto.
5741 (drawImage (img,x,y,observer)): Ditto.
5742 ((PainterThread) bgcolor): New Field.
5743 ((PainterThread) (setPixels)): Changed all transparent pixels
5744 to bgcolor.
5745 (drawImage(img,x,y,width,height,bgcolor,observer)):
5746 Fixed FIXME - all the transparent pixels are
5747 changed to the specified bgcolor.
5748 (drawImage(img, x, y, width, height, observer): Changed to
5749 use function above.
5750 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
5751 Fixed FIXME- changed all transparent pixels to bgcolor.
5752 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
5753 Changed to use function above.
5754
57552004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
5756
5757 * java/applet/Applet.java (dimensions): New field.
5758 (getDimensions): New method.
5759 (getPreferredSize): Call getDimensions.
5760 (getMinimumSize): Likewise.
5761
57622004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5763
5764 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
5765 * jni/classpath/jnilink.c: Likewise.
5766
5767 * java/applet/Applet.java (getPreferredSize): New method.
5768 (getMinimumSize): New method.
5769
245c3c04
BM
57702004-04-15 Bryce McKinlay <mckinlay@redhat.com>
5771
5772 * prims.cc (_Jv_AllocObject): Remove `size' argument.
5773 (_Jv_AllocObjectNoFinalizer): Likewise.
5774 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
5775 (_Jv_AllocPtrFreeObject): Likewise.
5776 (_Jv_AllocString): Moved from natString.cc. Call collector interface
5777 directly even in the JVMPI case.
5778 * gcj/cni.h (JvAllocObject): Remove `size' argument from
5779 _Jv_AllocObject calls.
5780 * gcj/javaprims.h: Update prototypes.
5781 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
5782 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
5783 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
5784
d7afe286
BM
57852004-04-14 Andrew Haley <aph@redhat.com>
5786 Bryce McKinlay <mckinlay@redhat.com>
5787
5788 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
5789 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
5790 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
5791
5792 * testsuite/libjava.lang/InvokeInterface.java: New file.
5793 * testsuite/libjava.lang/InvokeInterface.out: New file.
5794
84264cb6
RM
57952004-04-09 Ranjit Mathew <rmathew@hotmail.com>
5796
5797 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
5798 modified lookup().
5799 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
5800 StackTraceElement directly.
5801 (newElement): New native helper method to create StackTraceElement
5802 bypassing Java access control.
5803 (createStackTraceElement): Use newElement() instead of directly
5804 calling StackTraceElement's constructor.
5805 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
5806
2b6b5c35
MK
58072004-04-01 Michael Koch <konqueror@gmx.de>
5808
5809 * java/lang/SecurityManager.java
5810 (checkAwtEventQueueAccess): Implemented.
5811
1c19eacc
GB
58122004-04-01 Gary Benson <gbenson@redhat.com>
5813
5814 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
5815 (_Jv_SearchMethodInClass): Likewise.
5816
99b43239
PM
58172004-03-26 Peter Moon <peterm@miraculum.com>
5818
5819 * java/text/NumberFormat.java: Fix spelling of setCurrency
5820 method.
5821
95e59f1a
AG
58222004-03-21 Anthony Green <green@redhat.com>
5823
5824 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
5825 recursion when searching for the system ClassLoader.
5826
de205e06
IK
58272004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
5828
5829 * java/net/ServerSocket.java
5830 (accept): Close the socket when error occured.
5831
bdf11d55
JF
58322004-03-21 Jeroen Frijters <jeroen@frijters.net>
5833
5834 * java/net/URI.java (parseURI): Added unquoting.
5835 (unquote): New method.
5836 (quoteAuthority): Implemented.
5837 (quote(String,String)): New method.
5838 (quotePath): Implemented.
5839 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
5840 (getSchemeSpecificPart): Removed FIXME comment.
5841 (getRawAuthority): Return new rawAuthority field.
5842 (getAuthority): Removed FIXME comment.
5843 (getRawUserInfo): Return new rawUserInfo field.
5844 (getUserInfo): Removed FIXME comment.
5845 (getRawPath): Return new rawPath field.
5846 (getPath): Removed FIXME comment.
5847 (getRawQuery): Return new rawQuery field.
5848 (getQuery): Removed FIXME comment.
5849 (getRawFragment): Return new rawFragment field.
5850 (getFragment): Removed FIXME comment.
5851
0d13be1e
MK
58522004-03-20 Michael Koch <konqueror@gmx.de>
5853
5854 * java/net/URLConnection.java: Merged copyright year with classpath.
5855
f903e73b
NF
58562004-03-20 Norbert Frese <postfach@nfrese.net>
5857
5858 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
5859 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
5860 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
5861 rmi-message.
5862 (getObjectInputStream): Return object reference, throw IOException if null.
5863 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
5864 (getObjectOutputStream): Return object reference, throw IOException if null.
5865 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
5866 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
5867 (UnicastConnectionManager): Throw RemoteException if port is not available.
5868 (getInstance): Throw RemoteException.
5869 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
5870 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
5871 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5872 Collect Exceptions which are returned by a rmi-call and fix void returns.
5873 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
5874 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
5875 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
5876 (dispatch): Answer ping messages which are sent by other java implementions.
5877 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
5878 for every rmi-message and fix void return problems.
5879 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
5880 (UnicastServerRef): Throw RemoteException.
5881 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
5882 In some situations it is necessary to export a subclass of the class which has the _Stub.
5883 For instance when the class with has the _Stub is abstract.
5884 (findStubSkelClass): New method which looks for the class which has the _Stub.
5885 (getClientHost): Implementated.
5886 * gcc/libjava/java/rmi/server/RemoteServer.java
5887 (getClientHost): Implementated.
5888 * gcc/libjava/Makefile.am (rmi_java_source_files):
5889 Added gnu/java/rmi/server/RMIIncomingThread.java.
5890 * Makefile.in: Regenerated.
5891
7f5773c6
MK
58922004-03-20 Michael Koch <konqueror@gmx.de>
5893
5894 * java/net/InetAddress.java
5895 (getLocalHostname): Added javadoc.
5896
ab16524d
PB
58972004-03-19 Per Bothner <per@bothner.com>
5898
5899 * configure.in: FILE variable overrides FLATFORM when linking
5900 natFileChannelXXX.cc.
5901
5902 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
5903 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
5904
0fca95f5
PB
59052004-03-19 Per Bothner <per@bothner.com>
5906
5907 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
5908 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
5909 * Makefile.am: Update accordingly.
5910 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
5911 as aliases for UnicodeLittle and UnicodeBig.
5912
edb3d426
MW
59132004-03-20 Mark Wielaard <mark@klomp.org>
5914
5915 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5916 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
5917 Don't access ws when it is null.
5918 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
5919 Likewise.
5920
b121dcb5
JF
59212004-03-19 Jeroen Frijters <jeroen@frijters.net>
5922
5923 * java/lang/ThreadGroup.java (list): Changed print to println.
5924
44b20223
MW
59252004-03-19 Mark Wielaard <mark@klomp.org>
5926
5927 * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
5928 happy.
5929
f94b0887
RC
59302004-02-10 Randolph Chung <tausq@debian.org>
5931
5932 * configure.in: Build java for hppa target.
5933 * configure: Regenerate.
5934 * libjava/configure.host (hppa-*): Add target.
5935 * libjava/sysdeps/pa/lock.h: New file.
5936
d511a273
MW
59372004-03-19 Mark Wielaard <mark@klomp.org>
5938
5939 Reported by Stephen Crawley
5940 * java/io/FilePermission.java (implies): Use String.length() -1 to
5941 access last char of String.
5942
9c6637c8
MK
59432004-03-19 Michael Koch <konqueror@gmx.de>
5944
5945 * java/awt/image/AffineTransformOp.java
5946 (AffineTransformOp): Made public.
5947 * javax/swing/JComponent.java
5948 (listenerList): Made protected.
5949 (accessibleContext): Likewise.
5950 * javax/swing/JList.java
5951 (valueChanged): Dont use internal fields of ListSelectionEvent.
5952 * javax/swing/JViewport.java
5953 (getView): Dont use internal fields of Component.
5954 (addImpl): Likewise.
5955 * javax/swing/Timer.java
5956 (isRunning): Made public.
5957 (start): Likewise.
5958 (stop): Likewise.
5959 * javax/swing/UIDefaults.java
5960 (getInt): Made public.
5961 * javax/swing/plaf/basic/BasicListUI.java
5962 (mousePressed): Dont use internal fields of MouseEvent.
5963 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
5964 * javax/swing/plaf/basic/BasicScrollBarUI.java
5965 (arrowIcon): Made static.
5966 * javax/swing/plaf/basic/BasicViewportUI.java
5967 (stateChanged): Dont use internal field on ChangeEvent.
5968 * javax/swing/text/JTextComponent.java
5969 (getUI): Call UIManager.getUI().
5970 (updateUI): Use getUI().
5971
165c9b04
RO
59722004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5973
5974 * verify.cc: Undef PC.
5975
138f5109
MK
59762004-03-18 Michael Koch <konqueror@gmx.de>
5977
5978 * java/nio/channels/spi/AbstractSelectableChannel.java
5979 (keys): Initialize at declaration.
5980 (locate): keys cant be null.
5981 (add): Removed.
5982 (addSelectionKey): New method.
5983 (removeSelectionKey): New method.
5984 * java/nio/channels/spi/AbstractSelectionKey.java
5985 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
5986 * java/nio/channels/spi/AbstractSelector.java
5987 (provider): Javadoc added.
5988 (cancelledKeys): Javadoc added.
5989 (cancelKey): Javadoc added, add key to cancelledKeys.
5990 (deregister): Implemented.
5991
acc63e4c
RO
59922004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5993
5994 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
5995 MAP_FAILED to void *.
5996
86881a7b
GH
59972004-03-12 Graydon Hoare <graydon@redhat.com>
5998
5999 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
6000 * javax/swing/JComponent.java (paint): Use persistent double buffer.
6001 * javax/swing/JList.java (ListListener): Revalidate on changes.
6002 * javax/swing/JScrollPane.java: Reimplement.
6003 * javax/swing/JViewport.java: Reimplement.
6004 * javax/swing/ScrollPaneLayout.java: Reimplement.
6005 * javax/swing/ViewportLayout.java: Tidy up.
6006 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
6007 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
6008 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
6009 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
6010 backing store only.
6011
60122004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
6013
6014 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6015 (window_wm_protocols_filter): New function.
6016 (window_focus_in_cb): Remove function.
6017 (window_focus_out_cb): Likewise.
6018 (window_focus_or_active_state_change_cb): New function.
6019 (create): Add filter that removes WM_TAKE_FOCUS client messages.
6020 (connectSignals): Don't attach handlers to focus-in-event or
6021 focus-out-event signals. Handle notify signal.
6022
60232004-03-11 David Jee <djee@redhat.com>
6024
6025 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
6026 (gtkSetLabel): New native method declaration.
6027 (setLabel): Use gtkSetLabel.
6028 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
6029 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
6030
60312004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
6032
6033 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
6034 black when color argument is null.
6035
60362004-03-10 Kim Ho <kho@redhat.com>
6037
6038 * java/awt/Container.java: Remove check
6039 for drag events.
6040
60412004-03-10 Kim Ho <kho@redhat.com>
6042
6043 * java/awt/Container.java: (visitChild):
6044 Remove candidate clip. Use the component
6045 clip to intersect.
6046 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6047 (handleEvent): Use the PaintEvent's clip.
6048
60492004-03-10 Kim Ho <kho@redhat.com>
6050
6051 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
6052 (handleEvent): Don't set the clip for the
6053 Graphics object.
6054
60552004-03-09 Graydon Hoare <graydon@redhat.com>
6056
6057 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
6058 Fix double <-> fixed macros, reset font transform.
6059 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
6060 Likewise.
6061
6062