1 2004-04-20 Michael Koch <konqueror@gmx.de>
3 * javax/naming/directory/SearchControls.java:
4 Don't explicitely extend java.lang.Object.
5 * javax/naming/spi/DirStateFactory.java:
6 Merged copyright year with GNU classpath.
8 2004-04-20 Michael Koch <konqueror@gmx.de>
10 * java/nio/channels/Channels.java:
11 Merged coding style with GNU classpath.
13 2004-04-20 Michael Koch <konqueror@gmx.de>
15 * java/net/ServerSocket.java
16 Merged coding style from GNU classpath.
18 2004-04-20 Michael Koch <konqueror@gmx.de>
20 * java/io/BufferedWriter.java:
21 Reordered variables to be at top of the class.
22 (localFlush): Removed redundant final keyword.
24 2004-04-20 Ingo Proetel <proetel@aicas.com>
26 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
28 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
30 * java/text/DecimalFormat.java (scanFix): Removed suffix check
31 for percent and permill check.
33 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
35 * java/text/FieldPosition.java
36 (FieldPosition) Constructor now behaves as it should according
37 to the java documentation.
39 2004-04-20 Mark Wielaard <mark@klomp.org>
41 * java/util/Properties.java: Use the word umlaut, not ä in api
44 2004-04-20 Michael Koch <konqueror@gmx.de>
46 * java/nio/Buffer.java,
47 java/nio/channels/AlreadyConnectedException.java,
48 java/nio/channels/AsynchronousCloseException.java,
49 java/nio/channels/ByteChannel.java,
50 java/nio/channels/CancelledKeyException.java,
51 java/nio/channels/Channel.java,
52 java/nio/channels/Channels.java,
53 java/nio/channels/ClosedByInterruptException.java,
54 java/nio/channels/ClosedChannelException.java,
55 java/nio/channels/ClosedSelectorException.java,
56 java/nio/channels/ConnectionPendingException.java,
57 java/nio/channels/DatagramChannel.java,
58 java/nio/channels/FileChannel.java,
59 java/nio/channels/FileLock.java,
60 java/nio/channels/FileLockInterruptionException.java,
61 java/nio/channels/GatheringByteChannel.java,
62 java/nio/channels/IllegalBlockingModeException.java,
63 java/nio/channels/IllegalSelectorException.java,
64 java/nio/channels/InterruptibleChannel.java,
65 java/nio/channels/NoConnectionPendingException.java,
66 java/nio/channels/NonReadableChannelException.java,
67 java/nio/channels/NonWritableChannelException.java,
68 java/nio/channels/NotYetBoundException.java,
69 java/nio/channels/NotYetConnectedException.java,
70 java/nio/channels/OverlappingFileLockException.java,
71 java/nio/channels/Pipe.java,
72 java/nio/channels/ReadableByteChannel.java,
73 java/nio/channels/ScatteringByteChannel.java,
74 java/nio/channels/SelectableChannel.java,
75 java/nio/channels/SelectionKey.java,
76 java/nio/channels/Selector.java,
77 java/nio/channels/ServerSocketChannel.java,
78 java/nio/channels/SocketChannel.java,
79 java/nio/channels/UnresolvedAddressException.java,
80 java/nio/channels/UnsupportedAddressTypeException.java,
81 java/nio/channels/WritableByteChannel.java,
82 java/nio/channels/spi/AbstractInterruptibleChannel.java,
83 java/nio/channels/spi/AbstractSelectableChannel.java,
84 java/nio/channels/spi/AbstractSelectionKey.java,
85 java/nio/channels/spi/AbstractSelector.java,
86 java/nio/channels/spi/SelectorProvider.java,
87 java/nio/charset/spi/CharsetProvider.java:
88 Fixed javadocs and jalopied all over java.nio.
90 2004-04-20 Michael Koch <konqueror@gmx.de>
92 * java/nio/ByteBufferImpl.java,
93 java/nio/CharBufferImpl.java,
94 java/nio/DirectByteBufferImpl.java,
95 java/nio/DoubleBufferImpl.java,
96 java/nio/DoubleViewBufferImpl.java,
97 java/nio/FloatBufferImpl.java,
98 java/nio/FloatViewBufferImpl.java,
99 java/nio/IntBufferImpl.java,
100 java/nio/IntViewBufferImpl.java,
101 java/nio/LongBufferImpl.java,
102 java/nio/LongViewBufferImpl.java,
103 java/nio/MappedByteBufferImpl.java,
104 java/nio/ShortBufferImpl.java,
105 java/nio/ShortViewBufferImpl.java:
106 Made sure all classes are final and removed final keyword from all
109 2004-04-20 Michael Koch <konqueror@gmx.de>
111 * java/rmi/MarshalledObject.java,
112 java/rmi/Naming.java,
113 java/rmi/RemoteException.java,
114 java/rmi/activation/ActivationException.java,
115 java/rmi/server/ServerCloneException.java,
116 java/security/AccessController.java,
117 java/security/AlgorithmParameterGenerator.java,
118 java/security/AlgorithmParameters.java,
119 java/security/CodeSource.java,
120 java/security/Identity.java,
121 java/security/IdentityScope.java,
122 java/security/KeyPairGenerator.java,
123 java/security/KeyStore.java,
124 java/security/Security.java,
125 java/security/Signature.java,
126 java/security/SignatureSpi.java,
127 java/security/SignedObject.java,
128 java/security/spec/DSAParameterSpec.java,
129 java/security/spec/DSAPrivateKeySpec.java,
130 java/security/spec/DSAPublicKeySpec.java,
132 java/sql/DatabaseMetaData.java,
133 java/sql/ResultSet.java,
134 java/text/ChoiceFormat.java,
135 java/text/CollationElementIterator.java,
136 java/text/CollationKey.java,
137 java/text/Collator.java,
138 java/text/DateFormat.java,
139 java/text/DateFormatSymbols.java,
140 java/text/DecimalFormatSymbols.java,
141 java/text/Format.java,
142 java/text/ParsePosition.java,
143 java/text/RuleBasedCollator.java,
144 java/text/SimpleDateFormat.java,
145 java/text/StringCharacterIterator.java,
146 java/util/Collections.java,
147 java/util/PropertyResourceBundle.java,
148 java/util/ResourceBundle.java,
149 java/util/StringTokenizer.java,
150 java/util/jar/Attributes.java,
151 java/util/logging/ConsoleHandler.java,
152 java/util/logging/LogManager.java,
153 java/util/logging/MemoryHandler.java,
154 java/util/logging/SocketHandler.java,
155 javax/naming/NamingException.java:
156 Fixed javadoc, coding style and argument names all over.
158 2004-04-20 Jeroen Frijters <jeroen@frijters.net>
160 * java/io/FileDescriptor.java: (FileDescriptor) Added public
161 constructor. (valid) Added null check.
163 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
165 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
166 * java/io/FileOutputStream.java
167 (FileOutputStream) Reorganized constructors. Constructors now
168 check whether the given path is directory.
170 2004-04-20 Michael Koch <konqueror@gmx.de>
172 * java/net/Authenticator.java,
173 java/net/BindException.java,
174 java/net/ConnectException.java,
175 java/net/ContentHandler.java,
176 java/net/ContentHandlerFactory.java,
177 java/net/DatagramPacket.java,
178 java/net/DatagramSocket.java,
179 java/net/DatagramSocketImpl.java,
180 java/net/DatagramSocketImplFactory.java,
181 java/net/FileNameMap.java,
182 java/net/HttpURLConnection.java,
183 java/net/Inet4Address.java,
184 java/net/Inet6Address.java,
185 java/net/InetAddress.java,
186 java/net/InetSocketAddress.java,
187 java/net/JarURLConnection.java,
188 java/net/MalformedURLException.java,
189 java/net/MulticastSocket.java,
190 java/net/NetPermission.java,
191 java/net/NetworkInterface.java,
192 java/net/NoRouteToHostException.java,
193 java/net/PasswordAuthentication.java,
194 java/net/PortUnreachableException.java,
195 java/net/ProtocolException.java,
196 java/net/ServerSocket.java,
197 java/net/Socket.java,
198 java/net/SocketAddress.java,
199 java/net/SocketException.java,
200 java/net/SocketImpl.java,
201 java/net/SocketImplFactory.java,
202 java/net/SocketOptions.java,
203 java/net/SocketPermission.java,
204 java/net/SocketTimeoutException.java,
206 java/net/URISyntaxException.java,
208 java/net/URLClassLoader.java,
209 java/net/URLConnection.java,
210 java/net/URLDecoder.java,
211 java/net/URLEncoder.java,
212 java/net/URLStreamHandler.java,
213 java/net/URLStreamHandlerFactory.java,
214 java/net/UnknownHostException.java,
215 java/net/UnknownServiceException.java:
216 Fixed javadocs, coding style and argument names all over.
218 2004-04-20 Michael Koch <konqueror@gmx.de>
220 * java/lang/Byte.java,
221 java/lang/CharSequence.java,
222 java/lang/ClassLoader.java,
223 java/lang/Compiler.java,
224 java/lang/Double.java,
225 java/lang/Float.java,
226 java/lang/Integer.java,
229 java/lang/Number.java,
230 java/lang/Package.java,
231 java/lang/Runtime.java,
232 java/lang/RuntimePermission.java,
233 java/lang/SecurityManager.java,
234 java/lang/Short.java,
235 java/lang/StringBuffer.java,
236 java/lang/System.java,
237 java/lang/ThreadGroup.java,
238 java/lang/Throwable.java,
239 java/lang/reflect/InvocationHandler.java,
240 java/lang/reflect/Proxy.java:
241 Fixed javadocs, coding style and argument names all over.
243 2004-04-20 Michael Koch <konqueror@gmx.de>
245 * java/io/BufferedWriter.java,
246 java/io/ByteArrayInputStream.java,
247 java/io/CharArrayWriter.java,
248 java/io/DataInput.java,
249 java/io/DataInputStream.java,
251 java/io/FilterInputStream.java,
252 java/io/InputStream.java,
253 java/io/InputStreamReader.java,
254 java/io/ObjectInputStream.java,
255 java/io/ObjectStreamClass.java,
256 java/io/PipedInputStream.java,
257 java/io/PipedReader.java,
258 java/io/PushbackInputStream.java,
259 java/io/PushbackReader.java,
260 java/io/RandomAccessFile.java,
261 java/io/SerializablePermission.java,
262 java/io/StreamTokenizer.java,
263 java/io/StringWriter.java,
264 java/io/WriteAbortedException.java,
266 Fixed javadocs all over, rename arguments to match javadocs,
269 2004-04-20 Ingo Proetel <proetel@aicas.com>
271 * java/awt/FontMetrics.java:
272 (charsWidth): fixed accumulation of total_width
273 (getWidth): simple default implementation
274 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
275 in Rectangle constructor.
276 * java/awt/image/Raster.java (toString): Added method.
277 * java/awt/image/SampleModel.java (<init>): Added error cause
278 information to thrown exception.
279 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
281 (setDataElements): New method.
282 (setPixels): New method.
283 (toString): New method.
285 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
287 * java/awt/image/ComponentColorModel.java
288 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
289 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
290 Mauve tests on this method. Improved documentation.
292 2004-04-20 Michael Koch <konqueror@gmx.de>
294 * javax/swing/JLayeredPane.java,
295 javax/swing/plaf/BorderUIResource.java,
296 javax/swing/plaf/ComponentUI.java,
297 javax/swing/undo/CompoundEdit.java,
298 javax/swing/undo/StateEdit.java:
299 Fixed HTML tags in javadocs all over.
301 2004-04-20 Michael Koch <konqueror@gmx.de>
303 * javax/print/attribute/EnumSyntax.java
304 (getOffset): Made protected.
305 * javax/print/attribute/HashAttributeSet.java
306 (HashAttributeSet): Likewise.
307 * javax/print/attribute/ResolutionSyntax.java
308 (getFeedResolution): Fixed typo in exception name.
309 (getCrossFeedResolution): Likewise.
310 * javax/print/attribute/SetOfIntegerSyntax.java
311 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
312 * javax/print/attribute/TextSyntax.java
313 (TextSyntax): Handle locale correctly.
314 (hashCode): Calc better hashcode value.
315 (equals): Fixed @return tag.
316 (toString): New method.
318 2004-04-20 Michael Koch <konqueror@gmx.de>
320 * gnu/java/nio/FileLockImpl.java
321 (static): Removed, not needed anymore.
322 * gnu/java/nio/channels/FileChannelImpl.java
323 (FileChannelImpl): Made final.
324 (mode): Made private.
325 (READ, WRITE, APPEND): Made public.
326 (EXCL, SYNC, DSYNC): Likewise.
327 (static): Load native JNI library, when needed.
328 (length): Unused, removed.
329 (available): Made public.
330 (implPosition): Throws IOException.
332 (implTruncate): Likewise.
336 2004-04-20 Michael Koch <konqueror@gmx.de>
338 * java/awt/AWTPermission.java,
339 java/awt/Component.java,
340 java/awt/ComponentOrientation.java,,
341 java/awt/Dialog.java,
342 java/awt/FontMetrics.java,
343 java/awt/Graphics.java,
344 java/awt/datatransfer/DataFlavor.java,
345 java/beans/Introspector.java,
346 java/beans/PropertyEditor.java,
347 java/beans/PropertyEditorManager.java,
348 java/beans/beancontext/BeanContextServiceProvider.java:
349 Fixed HTML tags in javadocs all over.
351 2004-04-20 Mark Wielaard <mark@klomp.org>
353 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
354 MissingResourceException is thrown.
355 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
356 null when a MissingResourceException is thrown. Should never happen.
358 2004-04-20 Sascha Brawer <brawer@dandelis.ch>
360 * java/awt/image/DataBufferShort.java,
361 java/awt/image/DataBufferFloat.java,
362 java/awt/image/DataBufferDouble.java,
363 java/awt/image/PixelInterleavedSampleModel.java: New files.
364 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
365 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
367 2004-04-20 Michael Koch <konqueror@gmx.de>
369 * Makefile.am (java_source_files): Added
370 java/awt/image/DataBufferDouble.java,
371 java/awt/image/DataBufferFloat.java,
372 java/awt/image/DataBufferShort.java and
373 java/awt/image/PixelInterleavedSampleModel.java.
374 * Makefile.in: Regenerated.
376 2004-04-19 Bryce McKinlay <mckinlay@redhat.com>
378 * gcj/cni.h (JvAllocObject): Remove these obsolete,
379 undocumented CNI calls.
380 * include/java-interp.h (_Jv_InterpClass): No longer
381 extends java.lang.Class.
382 * java/lang/Class.h (Class): Add new field `aux_info'.
383 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
384 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
385 Use Class->aux_info instead.
386 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
387 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
388 Use Class->aux_info instead.
389 * java/io/natObjectInputStream.cc (allocateObject): Use
391 * java/lang/natClass.cc (newInstance): Likewise.
392 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
393 * java/lang/natObject.cc (clone): Likewise.
394 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
395 * java/lang/natVMClassLoader.cc (defineClass): Don't use
396 JvAllocObject. Allocate klass->aux_info here for interpreted
399 2004-04-17 Mark Wielaard <mark@klomp.org>
401 * javax/swing/JToggleButton.java (ToggleButtonModel):
402 Make public static inner class.
403 * javax/swing/JTabbedPane.java (setComponentAt):
404 Call Page.setComponent().
405 (SCROLL_TAB_LAYOUT): Make public, value is 1.
406 (WRAP_TAB_LAYOUT): Make public, value is 0.
407 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
408 Make private static inner class.
410 2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
412 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
413 arguments to match new signature. Remove FIXME comments.
415 2004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
417 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
419 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
422 2004-04-02 Olga Rodimina <rodimina@redhat.com>
424 * Makefile.am: Added new file.
425 * Makefile.in: Regenerate.
426 * javax/swing/ImageIcon.java:
427 (ImageIcon(file)): set description of the icon
429 * javax/swing/JCheckBoxMenuItem.java:
430 Mostly Implemented. Work in progress.
431 * javax/swing/JRadioButtonMenuItem.java:
432 Reimplement constructors to use JToggleButtonModel.
433 * javax/swing/plaf/basic/BasicIconFactory.java:
434 (getCheckBoxMenuItemIcon): return check box
436 * javax/swing/plaf/basic/BasicMenuItemUI.java:
437 paint menu item selected only when it is armed and
440 2004-04-02 David Jee <djee@redhat.com>
442 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
443 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
444 * java/awt/Component.java
445 (add): Set the parent of the popup as this component.
446 * java/awt/PopupMenu.java
447 (addNotify): Create popup menu when peer is null.
448 (show): Call addNotify() if peer is null.
449 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
450 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
451 argument for gtk_menu_popup() as zero. This causes the popup menu to
452 respond to any mouse button.
454 2004-03-31 Olga Rodimina <rodimina@redhat.com>
456 * Makefile.am: Added new file.
457 * Makefile.in: Regenerate.
458 * javax/swing/JRadioButtonMenuItem.java:
460 * javax/swing/plaf/basic/BasicIconFactory.java:
461 (getRadioButtonMenuItemIcon): Return
463 * javax/swing/plaf/basic/BasicMenuItemUI.java:
464 (getPreferredSize): Add size of checkIcon if it
466 (installDefaults): Don't initialize checkIcon.
467 It's value will be set in subclasses.
468 (uninstallDefaults): remove uninstallation of
470 (paint): Moved code to paintMenuItem().
471 (paintMenuItem): Implemented.
472 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
473 UI delegate for JRadioButtonMenuItem.
475 2004-03-29 Olga Rodimina <rodimina@redhat.com>
477 * javax/swing/plaf/basic/BasicMenuItemUI.java:
478 Corrected position of the accelerator.
480 2004-03-29 Olga Rodimina <rodimina@redhat.com>
482 * Makefile.am: Added new file.
483 * Makefile.in: Regenerate.
484 * javax/swing/JMenuItem.java: Partly
485 implemented. Work in progress
486 * javax/swing/plaf/basic/BasicLookAndFeel.java:
487 Changed default value of acceleratorDelimiter.
488 * javax/swing/plaf/basic/BasicMenuItemUI.java:
489 New class. Partly implemented.
491 2004-03-26 Mark Wielaard <mark@klomp.org>
493 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
494 (item_activate): Declare label before use.
495 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
496 (gtkSetFont): Removed unused variable label.
497 (addExposeFilter): Declare variables before use.
498 (removeExposeFilter): Likewise.
499 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
500 (ok_clicked): Declare str_fileName before use.
502 2004-03-26 David Jee <djee@redhat.com>
504 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
505 (addSeparator): Remove.
507 (separator): Remove static final MenuItem field.
508 (separatorLabel): New static final String field.
509 (addSeparator): Do not use peer method; use add(MenuItem) instead.
510 Use separatorLabel to denote that it is a separator.
511 (insertSeparator): Create a new MenuItem with separatorLabel, instead
512 of reusing the static separator instance, because a MenuItem instance
513 can't be added more than once without being cloned.
514 * java/awt/peer/MenuPeer.java
515 (addSeparator): Remove from interface.
517 2004-03-26 David Jee <djee@redhat.com>
519 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
520 (connectSignals): New native method declaration.
521 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
522 * java/awt/MenuItem.java
523 (getActionCommand): Return the label if the action command is not set.
524 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
525 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
526 gtk_menu_shell_append().
527 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
528 (item_activate): Fix argument type.
529 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
531 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
533 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
534 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
535 given. Add the menu widget's top-level GtkWindow to the global window
536 group, so it can grab the pointer.
537 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
538 gtk_menu_shell_append().
540 2004-03-23 Graydon Hoare <graydon@redhat.com>
542 * java/text/AttributedString.java
543 (addAttribute): Fix off-by-one.
544 (getIterator): Likewise.
545 * java/text/AttributedStringIterator.java
546 (getRunLimit): Correct logic.
547 (getRunStart): Likewise.
548 (getAttribute): Fix inequality.
549 (getAttributes): Likewise.
550 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
552 2004-03-23 Kim Ho <kho@redhat.com>
554 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
555 (calculateSizes): Return real width and height.
557 2004-03-23 Kim Ho <kho@redhat.com>
559 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
560 (calculateTabRects): Set the selectedRun before
561 trying to rotate tabs.
563 2004-03-23 Kim Ho <kho@redhat.com>
565 * Makefile.am: New file
566 * Makefile.in: Regenerate
567 * java/awt/Graphics.java: (drawRect):
568 Draw to the correct point.
569 * javax/swing/DefaultSingleSelectionModel.java
570 (isSelected): Return true if the selected index
572 * javax/swing/JLabel.java: Do not change mnemonic
573 index if text is null.
574 * javax/swing/JProgressBar.java: Use JComponent's
576 * javax/swing/JScrollBar.java: Ditto.
577 * javax/swing/JSlider.java: Ditto.
578 * javax/swing/JTabbedPane.java: Reimplement.
579 * javax/swing/plaf/basic/BasicLookAndFeel.java:
580 Add defaults for TabbedPane.
581 * javax/swing/plaf/basic/BasicArrowButton.java:
583 * javax/swing/plaf/basic/BasicProgressBarUI.java:
584 (paintDeterminate): Don't paint String if it's
586 (paintIndeterminate): ditto.
587 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
590 2004-03-19 Michael Koch <konqueror@gmx.de>
592 * java/awt/image/AffineTransformOp.java
593 (AffineTransformOp): Made public.
594 * javax/swing/JComponent.java
595 (listenerList): Made protected.
596 (accessibleContext): Likewise.
597 * javax/swing/JList.java
598 (valueChanged): Dont use internal fields of ListSelectionEvent.
599 * javax/swing/JViewport.java
600 (getView): Dont use internal fields of Component.
602 * javax/swing/Timer.java
603 (isRunning): Made public.
606 * javax/swing/UIDefaults.java
607 (getInt): Made public.
608 * javax/swing/plaf/basic/BasicListUI.java
609 (mousePressed): Dont use internal fields of MouseEvent.
610 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
611 * javax/swing/plaf/basic/BasicScrollBarUI.java
612 (arrowIcon): Made static.
613 * javax/swing/plaf/basic/BasicViewportUI.java
614 (stateChanged): Dont use internal field on ChangeEvent.
615 * javax/swing/text/JTextComponent.java
616 (getUI): Call UIManager.getUI().
617 (updateUI): Use getUI().
619 2004-03-19 Graydon Hoare <graydon@redhat.com>
621 * javax/swing/JComponent.java: Turn off double buffer by default.
622 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
623 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
624 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
625 Use cairo to copy areas.
626 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
627 Initialize and set clip region.
629 2004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
631 * java/applet/Applet.java (preferredSize): Override deprecated
632 variant of getPreferredSize.
633 (minimumSize): Override deprecated variant of getMinimumSize.
635 2004-03-15 Olga Rodimina <rodimina@redhat.com>
637 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
638 (drawImage(img,xform,bgcolor,obs)): New Method.
639 Helper function that every drawImage method will
641 (drawRaster): Added new parameter, bgcolor. All
642 transparent pixels are changed to bgcolor before
644 (drawRenderedImage): Fixed to use changed drawRaster().
645 (drawImage(image,xform,obs): Fixed to use new helper function
646 (drawImage(image,op,x,y)): Ditto.
647 (drawImage (img,x,y,observer)): Ditto.
648 ((PainterThread) bgcolor): New Field.
649 ((PainterThread) (setPixels)): Changed all transparent pixels
651 (drawImage(img,x,y,width,height,bgcolor,observer)):
652 Fixed FIXME - all the transparent pixels are
653 changed to the specified bgcolor.
654 (drawImage(img, x, y, width, height, observer): Changed to
656 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
657 Fixed FIXME- changed all transparent pixels to bgcolor.
658 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
659 Changed to use function above.
661 2004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
663 * java/applet/Applet.java (dimensions): New field.
664 (getDimensions): New method.
665 (getPreferredSize): Call getDimensions.
666 (getMinimumSize): Likewise.
668 2004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
670 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
671 * jni/classpath/jnilink.c: Likewise.
673 * java/applet/Applet.java (getPreferredSize): New method.
674 (getMinimumSize): New method.
676 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
678 * prims.cc (_Jv_AllocObject): Remove `size' argument.
679 (_Jv_AllocObjectNoFinalizer): Likewise.
680 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
681 (_Jv_AllocPtrFreeObject): Likewise.
682 (_Jv_AllocString): Moved from natString.cc. Call collector interface
683 directly even in the JVMPI case.
684 * gcj/cni.h (JvAllocObject): Remove `size' argument from
685 _Jv_AllocObject calls.
686 * gcj/javaprims.h: Update prototypes.
687 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
688 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
689 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
691 2004-04-14 Andrew Haley <aph@redhat.com>
692 Bryce McKinlay <mckinlay@redhat.com>
694 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
695 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
696 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
698 * testsuite/libjava.lang/InvokeInterface.java: New file.
699 * testsuite/libjava.lang/InvokeInterface.out: New file.
701 2004-04-09 Ranjit Mathew <rmathew@hotmail.com>
703 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
705 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
706 StackTraceElement directly.
707 (newElement): New native helper method to create StackTraceElement
708 bypassing Java access control.
709 (createStackTraceElement): Use newElement() instead of directly
710 calling StackTraceElement's constructor.
711 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
713 2004-04-01 Michael Koch <konqueror@gmx.de>
715 * java/lang/SecurityManager.java
716 (checkAwtEventQueueAccess): Implemented.
718 2004-04-01 Gary Benson <gbenson@redhat.com>
720 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
721 (_Jv_SearchMethodInClass): Likewise.
723 2004-03-26 Peter Moon <peterm@miraculum.com>
725 * java/text/NumberFormat.java: Fix spelling of setCurrency
728 2004-03-21 Anthony Green <green@redhat.com>
730 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
731 recursion when searching for the system ClassLoader.
733 2004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
735 * java/net/ServerSocket.java
736 (accept): Close the socket when error occured.
738 2004-03-21 Jeroen Frijters <jeroen@frijters.net>
740 * java/net/URI.java (parseURI): Added unquoting.
741 (unquote): New method.
742 (quoteAuthority): Implemented.
743 (quote(String,String)): New method.
744 (quotePath): Implemented.
745 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
746 (getSchemeSpecificPart): Removed FIXME comment.
747 (getRawAuthority): Return new rawAuthority field.
748 (getAuthority): Removed FIXME comment.
749 (getRawUserInfo): Return new rawUserInfo field.
750 (getUserInfo): Removed FIXME comment.
751 (getRawPath): Return new rawPath field.
752 (getPath): Removed FIXME comment.
753 (getRawQuery): Return new rawQuery field.
754 (getQuery): Removed FIXME comment.
755 (getRawFragment): Return new rawFragment field.
756 (getFragment): Removed FIXME comment.
758 2004-03-20 Michael Koch <konqueror@gmx.de>
760 * java/net/URLConnection.java: Merged copyright year with classpath.
762 2004-03-20 Norbert Frese <postfach@nfrese.net>
764 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
765 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
766 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
768 (getObjectInputStream): Return object reference, throw IOException if null.
769 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
770 (getObjectOutputStream): Return object reference, throw IOException if null.
771 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
772 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
773 (UnicastConnectionManager): Throw RemoteException if port is not available.
774 (getInstance): Throw RemoteException.
775 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
776 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
777 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
778 Collect Exceptions which are returned by a rmi-call and fix void returns.
779 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
780 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
781 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
782 (dispatch): Answer ping messages which are sent by other java implementions.
783 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
784 for every rmi-message and fix void return problems.
785 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
786 (UnicastServerRef): Throw RemoteException.
787 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
788 In some situations it is necessary to export a subclass of the class which has the _Stub.
789 For instance when the class with has the _Stub is abstract.
790 (findStubSkelClass): New method which looks for the class which has the _Stub.
791 (getClientHost): Implementated.
792 * gcc/libjava/java/rmi/server/RemoteServer.java
793 (getClientHost): Implementated.
794 * gcc/libjava/Makefile.am (rmi_java_source_files):
795 Added gnu/java/rmi/server/RMIIncomingThread.java.
796 * Makefile.in: Regenerated.
798 2004-03-20 Michael Koch <konqueror@gmx.de>
800 * java/net/InetAddress.java
801 (getLocalHostname): Added javadoc.
803 2004-03-19 Per Bothner <per@bothner.com>
805 * configure.in: FILE variable overrides FLATFORM when linking
806 natFileChannelXXX.cc.
808 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
809 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
811 2004-03-19 Per Bothner <per@bothner.com>
813 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
814 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
815 * Makefile.am: Update accordingly.
816 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
817 as aliases for UnicodeLittle and UnicodeBig.
819 2004-03-20 Mark Wielaard <mark@klomp.org>
821 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
822 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
823 Don't access ws when it is null.
824 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
827 2004-03-19 Jeroen Frijters <jeroen@frijters.net>
829 * java/lang/ThreadGroup.java (list): Changed print to println.
831 2004-03-19 Mark Wielaard <mark@klomp.org>
833 * java/io/BufferedReader.java: Use <=, not <&eq; to make gjdoc
836 2004-02-10 Randolph Chung <tausq@debian.org>
838 * configure.in: Build java for hppa target.
839 * configure: Regenerate.
840 * libjava/configure.host (hppa-*): Add target.
841 * libjava/sysdeps/pa/lock.h: New file.
843 2004-03-19 Mark Wielaard <mark@klomp.org>
845 Reported by Stephen Crawley
846 * java/io/FilePermission.java (implies): Use String.length() -1 to
847 access last char of String.
849 2004-03-19 Michael Koch <konqueror@gmx.de>
851 * java/awt/image/AffineTransformOp.java
852 (AffineTransformOp): Made public.
853 * javax/swing/JComponent.java
854 (listenerList): Made protected.
855 (accessibleContext): Likewise.
856 * javax/swing/JList.java
857 (valueChanged): Dont use internal fields of ListSelectionEvent.
858 * javax/swing/JViewport.java
859 (getView): Dont use internal fields of Component.
861 * javax/swing/Timer.java
862 (isRunning): Made public.
865 * javax/swing/UIDefaults.java
866 (getInt): Made public.
867 * javax/swing/plaf/basic/BasicListUI.java
868 (mousePressed): Dont use internal fields of MouseEvent.
869 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
870 * javax/swing/plaf/basic/BasicScrollBarUI.java
871 (arrowIcon): Made static.
872 * javax/swing/plaf/basic/BasicViewportUI.java
873 (stateChanged): Dont use internal field on ChangeEvent.
874 * javax/swing/text/JTextComponent.java
875 (getUI): Call UIManager.getUI().
876 (updateUI): Use getUI().
878 2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
880 * verify.cc: Undef PC.
882 2004-03-18 Michael Koch <konqueror@gmx.de>
884 * java/nio/channels/spi/AbstractSelectableChannel.java
885 (keys): Initialize at declaration.
886 (locate): keys cant be null.
888 (addSelectionKey): New method.
889 (removeSelectionKey): New method.
890 * java/nio/channels/spi/AbstractSelectionKey.java
891 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
892 * java/nio/channels/spi/AbstractSelector.java
893 (provider): Javadoc added.
894 (cancelledKeys): Javadoc added.
895 (cancelKey): Javadoc added, add key to cancelledKeys.
896 (deregister): Implemented.
898 2004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
900 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
901 MAP_FAILED to void *.
903 2004-03-12 Graydon Hoare <graydon@redhat.com>
905 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
906 * javax/swing/JComponent.java (paint): Use persistent double buffer.
907 * javax/swing/JList.java (ListListener): Revalidate on changes.
908 * javax/swing/JScrollPane.java: Reimplement.
909 * javax/swing/JViewport.java: Reimplement.
910 * javax/swing/ScrollPaneLayout.java: Reimplement.
911 * javax/swing/ViewportLayout.java: Tidy up.
912 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
913 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
914 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
915 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
918 2004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
920 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
921 (window_wm_protocols_filter): New function.
922 (window_focus_in_cb): Remove function.
923 (window_focus_out_cb): Likewise.
924 (window_focus_or_active_state_change_cb): New function.
925 (create): Add filter that removes WM_TAKE_FOCUS client messages.
926 (connectSignals): Don't attach handlers to focus-in-event or
927 focus-out-event signals. Handle notify signal.
929 2004-03-11 David Jee <djee@redhat.com>
931 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
932 (gtkSetLabel): New native method declaration.
933 (setLabel): Use gtkSetLabel.
934 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
935 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
937 2004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
939 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
940 black when color argument is null.
942 2004-03-10 Kim Ho <kho@redhat.com>
944 * java/awt/Container.java: Remove check
947 2004-03-10 Kim Ho <kho@redhat.com>
949 * java/awt/Container.java: (visitChild):
950 Remove candidate clip. Use the component
952 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
953 (handleEvent): Use the PaintEvent's clip.
955 2004-03-10 Kim Ho <kho@redhat.com>
957 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
958 (handleEvent): Don't set the clip for the
961 2004-03-09 Graydon Hoare <graydon@redhat.com>
963 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
964 Fix double <-> fixed macros, reset font transform.
965 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
968 2004-03-09Â Kim Ho <kho@redhat.com>
970 * java/awt/Container.java: (visitChild): Move
971 the x and y coordinate of the component rectangle
973 (handleEvent): Forward drag events to the pressed
975 * javax/swing/plaf/basic/BasicScrollBarUI.java:
977 (ArrowButtonListener::mousePressed): Stop the
979 (mouseDragged): Implement.
980 (TrackListener::mousePressed): Only react if
981 the press doesn't occur on the thumb, otherwise
983 (TrackListener::mouseReleased): Unset the isAdjusting
985 (createIncreaseIcon): Switch icon.
986 (createDecreaseIcon): Switch icon.
987 (calculatePreferredSize): Use width.
988 (getThumbBounds): Use the top as the lower value.
989 (layoutVScrollBar): Switch the button locations.
990 (paintIncreaseHighlight): Paint correct side of thumb.
991 (paintDecreaseHighlight): ditto.
992 (valueForYPosition): Use top as the lower value.
993 * javax/swing/plaf/basic/BasicSliderUI.java:
995 (mouseDragged): Implement.
996 (mousePressed): Only react when the thumb isn't
997 pressed, otherwise just set offset.
998 (mouseReleased): Handle a release of the thumb.
999 (scrollDueToClickInTrack): Stop the timer first.
1000 * javax/swing/JProgressBar.java:
1001 (setString): Fix change condition.
1002 * javax/swing/JSeparator.java:
1005 2004-03-08 David Jee <djee@redhat.com>
1007 * java/awt/image/AffineTransformOp.java:
1008 (filter): Use Graphics2D interface instead of directly using the
1011 2004-03-05 David Jee <djee@redhat.com>
1013 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
1014 (handleEvent): Action events are generated upon MOUSE_RELEASED.
1015 * java/awt/Container.java
1016 (acquireComponentForMouseEvent): Fixed.
1017 (handleEvent): Fixed.
1018 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1019 (state_to_awt_mods_with_button_states): New method.
1020 (pre_event_handler): Fixed mouse event generation.
1022 2004-03-05 Olga Rodimina <rodimina@redhat.com>
1024 gnu/java/awt/peer/gtk/GdkGraphics2D.java
1025 (GdkGraphics2D (BufferedImage)): Initialize
1026 pixmap associated with specified BufferedImage.
1027 (setPaint): Changed implementation of Texture
1028 Paint to use AffineTransformOp.
1029 * java/awt/image/AffineTransformOp.java
1030 (createCompatibleDestRaster): Throw RasterFormatException
1031 if resulting width or height of raster is 0.
1033 2004-03-04 Olga Rodimina <rodimina@redhat.com>
1035 * java/awt/image/AffineTransformOp.java:
1036 Removed unnecessary field interpolationType.
1037 Formatted some of the lines to be consistent with
1039 (AffineTransformOp): Create new RenderingHints
1040 containing specified interpolation type.
1041 (createCompatibleDestImage): Implemented.
1042 (createCompatibleDestRaster): Implemented.
1043 (filter): Implemented.
1044 (getBounds2D(BufferedImage)): Implemented.
1045 (getBounds2D(Raster)): Implemented.
1046 (getInterpolationType): Get interpolation value from
1049 2004-03-04 David Jee <djee@redhat.com>
1051 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1052 (setFont): Check if child peers are null.
1054 2004-03-04 Graydon Hoare <graydon@redhat.com>
1056 * testsuite/lib/libjava.exp (libjava_find_lib): Don't include
1058 (libjava_arguments): Add new libraries to argument list.
1060 2004-03-02 Olga Rodimina <rodimina@redhat.com>
1062 * Makefile.am: Added java/awt/image/AffineTransformOp.java
1063 * Makefile.in: Re-generated.
1064 * java/awt/image/AffineTransformOp.java: New Class.
1066 2004-03-01 Olga Rodimina <rodimina@redhat.com>
1068 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1069 (setPaint): Interpret correctly TexturePaint's
1071 (drawImage): Fixed scale factors of the affine
1074 2004-02-27 David Jee <djee@redhat.com>
1076 * gnu/java/awt/peer/gtk/GdkGraphics.java
1077 (GdkGraphics(Component)): Inherit font from component.
1078 (drawString): Use font style.
1079 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
1080 (gtkSetFont): New native method declaration.
1081 (setFont): New method.
1082 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1083 (gtkSetFont): New native method declaration.
1084 (setFont): Call new native method gtkSetFont.
1085 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1086 (setFont): For all child components who do not their fonts set,
1087 set their peers' fonts with this container's font.
1088 * gnu/java/awt/peer/gtk/GtkLabelPeer.java:
1089 Move all native method declarations to the top for readability.
1090 (gtkSetFont): New native method declaration.
1091 (setFont): New method.
1092 * java/awt/Component.java
1093 (setFont): Invalidate after setting the font.
1094 * java/awt/Container.java
1095 (invalidateTree): New method.
1096 (setFont): Invalidate the container tree after setting the font.
1097 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1098 (Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Use font style.
1099 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1100 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetFont): New method.
1101 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1102 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkSetFont): New method.
1103 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
1104 (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_gtkSetFont): New method.
1106 2004-02-27 Olga Rodimina <rodimina@redhat.com>
1108 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1109 (updateBufferedImage): New helper function.
1110 Updates BufferedImage in memory if it was changed.
1111 (draw): changed to update BufferedImage in memory after
1112 this drawing operation
1114 (draw3DRect): Ditto.
1115 (fill3DRect): Ditto.
1117 (drawRaster): Ditto.
1118 (drawImage) : Ditto. Update only in case of GtkOffScreenImage with
1119 no affine transformation.
1120 (drawGlyphVector): Ditto.
1122 2004-02-26 Olga Rodimina <rodimina@redhat.com>
1124 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1125 (isBufferedImageGraphics): New Helper function.
1126 Returns true if this graphics2d can be used to draw
1127 into buffered image and false otherwise.
1128 (updateImagePixels): New Helper function.
1129 Updates pixels in the BufferedImage.
1130 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
1131 (getImagePixels): New function. Returns pixels
1132 of the buffered image associated with
1135 2004-02-26 David Jee <djee@redhat.com>
1137 * java/awt/BorderLayout.java
1138 (layoutContainer): Fix width and height calculations to ensure
1139 that they're non-negative.
1140 * java/awt/Component.java
1141 (setBackground): If c is null, inherit from closest ancestor whose
1142 background color is set.
1144 2004-02-26 Kim Ho <kho@redhat.com>
1146 * Makefile.am: Add new files.
1147 * Makefile.in: Re-generate.
1148 * javax/swing/JProgressBar.java:
1149 (JProgressBar(int, int int)): Throw
1150 IllegalArgumentException if orientation is
1152 (JProgressBar(BoundedRangeModel)): Create
1153 ChangeListener and register it. UpdateUI.
1154 (getChangeListeners): Implement.
1155 (setModel): Reset ChangeListener.
1156 * javax/swing/JScrollBar.java: Implement.
1157 * javax/swing/JSeparator.java: Implement.
1158 * javax/swing/JSlider.java:
1159 (JSlider(int, int, int, int)): Throw
1160 IllegalArgumentException if orientation
1162 (getChangeListeners): Fix method name.
1163 * javax/swing/SwingUtilities.java:
1164 (layoutCompoundLabel): If there is no text,
1165 set the text rectangle dimensions to 0.
1166 * javax/swing/plaf/basic/BasicButtonUI.java:
1167 (paint): If there is no text, don't paint it.
1168 * javax/swing/plaf/basic/BasicScrollBarUI.java:
1170 * javax/swing/plaf/basic/BasicSeparatorUI.java:
1172 * javax/swing/plaf/basic/BasicSliderUI.java:
1173 (propertyChange): If the model changes, change
1174 the listeners accordingly.
1176 2004-02-25 Graydon Hoare <graydon@redhat.com>
1178 * javax/swing/AbstractButton.java: Add "final" qualifiers.
1179 * javax/swing/JList.java: Reimplement.
1180 * javax/swing/DefaultListSelectionModel.java: Reimplement.
1181 * javax/swing/plaf/basic/BasicListUI.java: Reimplement.
1182 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add "purple" values.
1183 * javax/swing/ListModel.java: Javadoc.
1184 * javax/swing/ListSelectionModel.java: Add missing methods.
1185 * javax/swing/AbstractListModel.java: Javadoc and corrections.
1186 * javax/swing/DefaultListModel.java: Javadoc and corrections.
1187 * javax/swing/ListModel.java: Javadoc and corrections.
1188 * javax/swing/DefaultListCellRenderer.java: Minor tidying.
1190 2004-02-25 David Jee <djee@redhat.com>
1192 * gnu/java/awt/peer/gtk/GtkFontPeer.java
1193 (GtkFontPeer): Change default size to 12.
1194 * gnu/java/awt/peer/gtk/GtkToolkit.java
1195 (getFontPeer): Change default size to 12.
1196 (getClasspathFontPeer): Likewise. Set default name to "Default".
1197 * java/awt/Font.java
1198 (Font(Map)): Call Font(String,Map).
1199 (Font(String,Map)): If attrs is null, initialize it as an empty
1200 HashMap, which will ensure that the Font will get default attributes.
1202 2004-02-25 David Jee <djee@redhat.com>
1204 * gnu/java/awt/peer/gtk/GtkFontPeer.java
1205 (GtkFontPeer(String,int)): Call the new constructor with size 1.
1206 (GtkFontPeer(String,int,int)): New constructor with size attribute.
1207 * gnu/java/awt/peer/gtk/GtkToolkit.java
1208 (getFontPeer(String,int)): Call the new overload method with size 1.
1209 (getFontPeer(String,int,int)): New method. Overloaded with size
1211 (getClasspathFontPeer): Set the size of the font.
1213 2004-02-24 Olga Rodimina <rodimina@redhat.com>
1215 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1216 (bimage): New field.
1217 (GdkGraphics2D): New Constructor. Constructs Graphics
1218 object that can be used to draw into the Buffered Image.
1219 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
1220 (GdkGraphicsEnvironment): Fixed to include public
1222 (createGraphics): Implemented.
1223 * gnu/java/awt/peer/gtk/GtkToolkit.java
1224 (getLocalGraphicsEnvironment): Implemented.
1225 * java/awt/GraphicsEnvironment.java:
1226 (getLocalGraphicsEnvironment): Implemented.
1227 * java/awt/image/BufferedImage.java:
1228 (createGraphics): Implemented.
1230 2004-02-24 David Jee <djee@redhat.com>
1232 * java/awt/Component.java
1233 (eventTypeEnabled): Add MOUSE_MOVED and MOUSE_DRAGGED event types.
1234 * java/awt/Container.java
1235 (addNotifyContainerChildren): Fix event enabling.
1237 2004-02-23 Olga Rodimina <rodimina@redhat.com>
1239 * Makefile.am: Added
1240 gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
1241 * Makefile.in: Re-generated.
1242 * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
1245 2004-02-19 Kim Ho <kho@redhat.com>
1247 * Makefile.am: Add BasicProgressBarUI
1248 * Makefile.in: Regenerate.
1249 * javax/swing/JProgressBar.java:
1251 * javax/swing/plaf/basic/BasicLookAndFeel.java
1252 Add constants for JProgressBar.
1253 * javax/swing/plaf/basic/BasicProgressBarUI.java
1255 * javax/swing/plaf/basic/BasicSliderUI.java
1257 (calculateGeometry): New method
1258 (paint): Remove unnecessary size calculations.
1260 2004-02-18 Olga Rodimina <rodimina@redhat.com>
1262 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1263 (drawRaster): Fixed small error that caused
1264 imageToUser transformation to be set incorrectly.
1265 (toString): Implemented.
1267 2004-02-18 David Jee <djee@redhat.com>
1269 * java/awt/CardLayout.java
1270 (addLayoutComponent): Show the first component added as the default.
1271 (removeLayoutComponent): After removing, show the next component.
1272 (gotoComponent): If there is only one component, show it and return.
1274 2004-02-18 Kim Ho <kho@redhat.com>
1276 * javax/swing/JSlider.java: Re-order
1278 * javax/swing/JLabel.java: Re-order
1280 * javax/swing/JComponent.java:
1281 (addPropertyChangeListener):
1283 (removePropertyChangeListener):
1285 (firePropertyChangeEvent):
1288 2004-02-17 David Jee <djee@redhat.com>
1290 * java/awt/Component.java
1291 (show): Dispatch ComponentEvent via system event queue.
1295 (reshape): Likewise.
1296 * java/awt/Window.java
1297 (setBoundsCallback): Likewise.
1299 2004-02-17 David Jee <djee@redhat.com>
1301 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1302 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_setNativeBounds):
1303 Use gtk_widget_set_size_request() instead of the deprecated
1304 gtk_widget_set_usize().
1306 2004-02-17 Kim Ho <kho@redhat.com>
1308 * javax/swing/JSlider.java: Fix comments and
1309 make property strings constants.
1310 (createStandardLabels): Use the labels
1311 preferred size as bounds.
1312 * javax/swing/plaf/basic/BasicSliderUI.java
1314 (ScrollHandler::actionPerformed): Don't
1315 calculate the timer stop value. Let the
1316 MouseListeners find the stop location.
1317 (getPreferredHorizontalSize): Re-implement.
1318 (getPreferredVerticalSize): ditto.
1319 (getMinimumHorizontalSize): ditto.
1320 (getMinimumVerticalSize): ditto.
1321 (getPreferredSize): ditto.
1322 (getMinimumSize): ditto.
1323 (getMaximumSize): ditto.
1324 (paintTicks): Use doubles to find the
1326 (paintHorizontalLabel):Â Use preferredSize
1327 as initial width and height.
1328 (paintVerticalLabel): ditto.
1330 2004-02-17 Kim Ho <kho@redhat.com>
1332 * javax/swing/JLabel.java: Changed
1333 property strings to constants.
1334 (DISPLAYED_MNEMONIC_INDEX_CHANGED_PROPERTY):
1336 (setText): Change mnemonic index if
1338 (setDisplayedMnemonicIndex): Fire property
1340 (getDisplayedMnemonicIndex): Remove check
1343 2004-02-17 Olga Rodimina <rodimina@redhat.com>
1345 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1346 (drawImage(img,xform,obs)): Invert xform before
1347 passing the xform to cairo.
1348 (drawImage(img,x,y,bgcolor,obs)): Implemented.
1349 (drawImage (img,x,y,w,h,bgcolor,obs)): Partly
1351 (drawImage (img,x,y,w,h,obs)): Implemented.
1352 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,
1353 bgcolor,obs)): Partly implemented.
1354 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,obs)):
1356 * java/awt/image/BufferedImage.java:
1357 (copyData): if dest is null, create raster with same
1358 dimensions as the current image.
1360 2004-02-16 Graydon Hoare <graydon@redhat.com>
1362 * javax/swing/plaf/basic/BasicLabelUI.java
1363 (getPreferredSize): Use layoutCL.
1364 * javax/swing/plaf/basic/BasicGraphicsUtils.java
1365 (getPreferredButtonSize): Start with empty view rect, layout using
1366 component's preferred alignment.
1367 * javax/swing/plaf/basic/BasicLookAndFeel.java: Add some Label and
1370 2004-02-16 David Jee <djee@redhat.com>
1372 * java/awt/Component.java
1373 (show): Dispatch COMPONENT_SHOWN ComponentEvent.
1374 (hide): Dispatch COMPONENT_HIDDEN ComponentEvent.
1375 (move): Erase old bounds and repaint new bounds. Dispatch
1376 COMPONENT_MOVED ComponentEvent.
1377 (resize): Erase old bounds and repaint new bounds. Dispatch
1378 COMPONENT_RESIZED ComponentEvent.
1379 (reshape): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
1381 * java/awt/Window.java
1382 (setBoundsCallback): Dispatch COMPONENT_RESIZED and COMPONENT_MOVED
1385 2004-02-16 Olga Rodimina <rodimina@redhat.com>
1387 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1388 (setRenderingHint): Added implementation of
1389 Interpolation rendering hints.
1390 (setRenderingHints): Ditto.
1391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
1392 (drawPixels): fixed to allow user to choose type
1393 of filtering that should be used when displaying images.
1394 (cairoSurfaceSetFilter): New method. Sets filter type for
1395 interpolation of pixel values.
1397 2004-02-16 David Jee <djee@redhat.com>
1399 * java/awt/GridBagLayout.java
1400 (calcCellSizes): Rows or columns with zero sizes should still be
1401 considered for extra space distribution.
1403 2004-02-16 Kim Ho <kho@redhat.com>
1405 * javax/swing/JLabel.java: Re-implement.
1406 * javax/swing/plaf/basic/BasicLabelUI.java
1408 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1411 2004-02-16 Kim Ho <kho@redhat.com>
1413 * javax/swing/JSlider.java: Fix indentation and comments.
1414 (setModel): Remove null check to conform with Sun's.
1415 (setOrientation): Throw exception if not
1416 HORIZONTAL or VERTICAL.
1417 (getInverted): Use private variable instead of
1418 ComponentOrientation.
1419 (setInverted): ditto.
1420 * javax/swing/plaf/basic/BasicSliderUI.java:
1421 Fix indentation and comments.
1422 (propertyChange): Remove check for inverted slider, handle
1424 (getMinimumSize): Return preferred size.
1425 (getMaximumSize): ditto.
1426 (calculateFocusRect): Don't relocate rectangle.
1427 (drawInverted): Return XOR of the slider's inversion and
1428 the component's orientation.
1429 (paint): Update leftToRightCache
1431 2004-02-13 David Jee <djee@redhat.com>
1433 * java/awt/GridBagLayout.java
1434 (GetLayoutInfo): Fix weight and size distribution. Relocate repeated
1435 code to helper methods.
1436 (sortBySpan): New helper method.
1437 (distributeSizeAndWeight): Likewise.
1438 (calcCellWeights): Likewise.
1439 (calcCellSizes): Add comments.
1441 2004-02-13 David Jee <djee@redhat.com>
1443 * java/awt/Component.java
1444 (show): Only do something if component is invisible at the moment.
1445 (hide): Only do something if component is visible at the moment.
1446 (reshape): If lightweight, erase old bounds and repaint new bounds.
1448 2004-02-13 Kim Ho <kho@redhat.com>
1450 * Makefile.am: Updated for new file.
1451 * Makefile.in: Regenerated.
1452 * javax/swing/JSlider.java: Reimplement.
1453 * javax/swing/SwingUtilities.java
1454 (layoutCompoundLabel): Use icon height
1456 (paintComponent): Implement.
1457 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1458 Add JSlider defaults.
1459 * javax/swing/plaf/basic/BasicSliderUI.java:
1460 Implement. New file.
1462 2004-03-17 Michael Koch <konqueror@gmx.de>
1464 * gnu/java/net/PlainDatagramSocketImpl.java
1465 (RECEIVE_LOCK): New member field.
1466 (SEND_LOCK): New member field.
1467 (send0): New method.
1468 (send): Synchronize on SEND_LOCK.
1469 (receive0): New method.
1470 (receive): Synchronize on RECEIVE_LOCK.
1471 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
1472 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
1473 gnu/java/net/natPlainDatagramSocketImplWin32.cc
1474 (send0): Renamed from send.
1475 (receive0): Renamed from receive.
1476 2004-03-17 Michael Koch <konqueror@gmx.de>
1478 * gnu/java/net/natPlainSocketImplPosix.cc
1479 (write): Just call write(jbyteArray, offset, len).
1480 (read): Just call read(jbyteArray, offset, len).
1482 2004-03-16 Michael Koch <konqueror@gmx.de>
1484 * javax/swing/JTabbedPane.java
1485 (serialVersionUID): New field.
1487 2004-03-16 Norbert Frese <postfach@nfrese.net>
1489 * java/net/InetAddress.java
1490 (getByName): Handle hostname == "" case.
1492 2004-03-16 Dalibor Topic <robilad@kaffe.org>
1494 Reported by: Adam Heath <doogie@debian.org>
1495 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
1498 2004-03-15 Michael Koch <konqueror@gmx.de>
1500 * java/util/Locale.java: Reverting my last patch
1501 and add a comment why the original version was okay.
1503 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
1505 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
1506 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
1507 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
1508 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
1510 2004-03-12 Michael Koch <konqueror@gmx.de>
1512 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
1514 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
1516 * java/net/URI.java (toURL): Implemented.
1518 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
1521 (URI_REGEXP) updated to contain scheme specific part.
1522 (SCHEME_SPEC_PART_GROUP) new constant.
1523 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
1524 updated to make room for SCHEME_SPEC_PART_GROUP.
1525 (parseURI) parse scheme specific part.
1526 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
1527 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
1528 getQuery, getFragment) implemented.
1530 2004-03-12 Dalibor Topic <robilad@kaffe.org>
1532 * libraries/javalib/java/net/URI.java
1533 partially implemented using java.util.regex.
1534 (URI_REGEXP) new constant. Used to parse URIs.
1535 (SCHEME_GROUP) new constant representing index of scheme group
1537 (AUTHORITY_GROUP) new constant representing index of authority
1538 group in parsed URI.
1539 (PATH_GROUP) new constant representing index of path group in
1541 (QUERY_GROUP) new constant representing index of query group in
1543 (FRAGMENT_GROUP) new constant representing index of fragment
1544 group in parsed URI.
1545 (getURIGroup) new static utility method.
1546 (parseURI) implemented.
1547 (quote) stub for new static utility method.
1548 (quoteAuthority) stub for new static utility method.
1549 (quoteHost) stub for new static utility method.
1550 (quotePath) stub for new static utility method.
1551 (quoteUserInfo) stub for new static utility method.
1553 (create) don't throw URISyntaxException. Implemented.
1554 (toString) implemented.
1556 2004-03-12 Michael Koch <konqueror@gmx.de>
1558 * java/net/HttpURLConnection.java
1559 (getResponseCode): Fix another typo in javadoc.
1561 2004-03-11 Michael Koch <konqueror@gmx.de>
1563 * java/util/logging/Level.java
1564 (parse): Use String.equals() instead of ==.
1566 2004-03-11 Michael Koch <konqueror@gmx.de>
1568 * gnu/java/net/protocol/jar/Connection.java
1569 (getContentLength): New method.
1571 2004-03-11 Michael Koch <konqueror@gmx.de>
1573 * gnu/java/net/PlainSocketImpl.java:
1574 Reformated to merge better with classpath's version.
1576 2004-03-11 Michael Koch <konqueror@gmx.de>
1578 * java/util/Locale.java
1579 (getISO3Language): Use String.equals() instead of ==.
1580 (getISO3Country): Likewise.
1582 2004-03-11 Dalibor Topic <robilad@kaffe.org>
1584 * java/text/AttributedString.java
1585 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
1586 Use HashMap instead of Hashtable since value can be null, and
1587 you can not store a null value in a Hashtable.
1589 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
1591 * java/text/AttributedStringIterator.java
1592 (getAllAttributesKey): Return only keys concerned
1593 by the current iterator.
1594 (getAttributes): Use strict inequality for
1597 2004-03-11 Michael Koch <konqueror@gmx.de>
1599 * java/net/HttpURLConnection.java:
1600 Fixed typo in javadoc.
1602 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
1604 * java/io/BufferedInputStream.java (marktarget): New field for max
1606 (CHUNKSIZE): New constant for incremental mark buffer allocation.
1607 (mark): Use new fields.
1609 (read(byte[],int,int)): Likewise.
1613 2004-03-11 Mark Wielaard <mark@klomp.org>
1615 * java/beans/BeanDescriptor.java (BeanDescriptor):
1616 Set the FeatureDescriptor programmatic name.
1618 2004-03-11 Michael Koch <konqueror@gmx.de>
1620 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
1621 This file was was just copied form java/io/natFileDescriptorEcos.cc
1622 and never changed to compile correctly.
1624 2004-03-11 Michael Koch <konqueror@gmx.de>
1626 * gnu/java/nio/PipeImpl.java
1627 (SourceChannelImpl): Made final.
1628 (read): Implemented.
1629 (SinkChannelImpl): Made final.
1630 (write): Implemented.
1632 2004-03-11 Michael Koch <konqueror@gmx.de>
1634 * gnu/java/net/PlainDatagramSocketImpl.java:
1635 Reformated to match classpath's version more.
1637 2004-03-11 Michael Koch <konqueror@gmx.de>
1639 * gnu/java/awt/peer/ClasspathFontPeer.java:
1640 Fixed javadoc to be correct xhtml.
1641 * gnu/java/awt/peer/gtk/GtkArgList.java
1642 (add): Use Boolean.valueOf() instead of new Boolean().
1644 2004-03-09 Michael Koch <konqueror@gmx.de>
1646 * java/lang/Thread.java
1647 (runnable): Moved around.
1648 (daemon): Renamed from daemon_flag.
1649 (contextClassLoader): Renamed from context_class_loader.
1650 (Thread): Reordered constructors.
1651 (activeCount): Use group directly.
1652 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
1653 (holdsLock): Reworked javadoc.
1654 (setDaemon): Reworked.
1655 * java/lang/natThread.cc
1658 2004-03-08 Anthony Green <green@redhat.com>
1660 * Makefile.am: Build property resource files into libgcj.
1661 * Makefile.in: Rebuilt.
1662 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
1663 java/util/regex/PatternSyntaxException.java,
1664 gnu/regexp/CharIndexed.java,
1665 gnu/regexp/CharIndexedCharArray.java,
1666 gnu/regexp/CharIndexedInputStream.java,
1667 gnu/regexp/CharIndexedReader.java,
1668 gnu/regexp/CharIndexedString.java,
1669 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
1670 gnu/regexp/REException.java,
1671 gnu/regexp/REFilterInputStream.java,
1672 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
1673 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
1674 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
1675 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
1676 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
1677 gnu/regexp/RETokenLookAhead.java,
1678 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
1679 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
1680 gnu/regexp/RETokenStart.java,
1681 gnu/regexp/RETokenWordBoundary.java,
1682 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
1684 2004-03-03 Per Bothner <per@bothner.com>
1686 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
1687 Optimize when argument is a FileChannelImpl.
1688 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
1690 * java/nio/channels/natChannels.cc: New file for new native methods.
1691 * Makefile.am: Update accordingly.
1693 2004-03-02 Jan Hubicka <jh@suse.cz>
1695 * configure.host: Pass -fno-omit-frame-pointer for i386.
1696 * configure.in: Likewise.
1697 * configure: Regenerate.
1699 2004-03-01 Per Bothner <per@bothner.com>
1701 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
1703 2004-02-29 Per Bothner <per@bothner.com>
1705 * java/nio/channels/FileChannelImpl.java: Moved to package
1706 gnu/java/nio/channels, since we need to refer to it from java.io.
1707 * java/nio/channels/natFileChannelImpl.cc: Removed file.
1708 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
1709 from java/nio/channels. Don't depend on FileDescriptor.
1710 (in, out, err): New static fields.
1712 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
1713 from FileDescriptor.
1714 (by): Removed MappedByteBuffer field.
1715 (map): New working implementation.
1716 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
1717 some code "ported" from natFileDescriptoPosix.cc.
1718 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
1719 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
1720 * java/io/FileDescriptor.java: Implement on top of FileChannel.
1721 Remove native methods.
1722 * Makefile.am, configure.in: Updated accordingly.
1724 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
1725 (ch): New FileChannelImpl field. Update constructor to match.
1726 (releaseImpl): Remove native method. Instead ...
1727 (release): Call unlock on channel.
1728 * gnu/java/nio/natFileLockImpl.cc: Removed file.
1730 * java/io/natFileDescriptorEcos.cc: Remove file.
1731 * java/io/natFileDescriptorPosix.cc: Remove file.
1732 * java/io/natFileDescriptorWin32.cc: Remove file.
1733 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
1734 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
1735 (<init>(FileChannelImpl)): New package-private constructor.
1736 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
1737 (available, close, read, skip): Implement using FileChannelImpl.
1738 (getFD): Allocate FileDescriptor if needed.
1739 (getChannel): Is now trivial.
1740 * java/io/FileOutputStream.java: Corresponding changes.
1741 * java/io/RandomAccessFile.java: Corresponding changes.
1743 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
1744 unmapImpl): New dummy methods, to be overridden by subclass.
1745 (finalize, isLoaded, load, force): New methods.
1746 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
1747 Now works, at least for read mapping.
1749 * java/lang/natPosixProcess.cc (startProcess): Implement standard
1750 streams using FileChannelImpl, not FileDescriptor.
1751 * java/lang/natWin32Process.cc (startProcess): Likewise.
1753 2004-02-28 Michael Koch <konqueror@gmx.de>
1755 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
1758 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
1760 * java/io/ObjectInputStream.java
1761 (readClassDescriptor): Keep elements of the mapping non null.
1762 (checkTypeConsistency): New method.
1763 (readFields): Fixed main loop and base logic. Small reindentation.
1764 * java/io/ObjectStreamField.java
1765 (lookupField): New method to update the field reference.
1766 (checkFieldType): New method.
1767 * java/io/ObjectStreamClass.java
1768 (setClass, setFields): Call lookupField when building the field
1769 database. Check the real field type.
1771 2004-02-28 Michael Koch <konqueror@gmx.de>
1773 * java/nio/ByteOrder.java
1774 (nativeOrder): Use equals() to compare strings.
1776 2004-02-26 Michael Koch <konqueror@gmx.de>
1778 * gnu/java/nio/FileLockImpl.java
1779 (finalize): Made protected.
1780 * java/nio/channels/FileChannel.java
1781 (MapMode.READ_ONLY): Made final.
1782 (MapMode.READ_WRITE): Made final.
1783 (MapMode.PRIVATE): Made final.
1784 * java/nio/channels/SocketChannel.java
1785 (open): Simplified code.
1786 * java/nio/channels/spi/AbstractSelectableChannel.java
1787 (registered): Unused, removed.
1788 (keyFor): Check channel is open, only locate key
1789 and not add a new one.
1790 (register): Don't delete attachments.
1792 2004-02-26 Michael Koch <konqueror@gmx.de>
1794 * gnu/java/awt/ComponentDataBlitOp.java
1795 (INSTANCE): Made final.
1796 * gnu/java/awt/image/ImageDecoder.java:
1798 (cm): Unused, removed.
1800 2004-02-26 Michael Koch <konqueror@gmx.de>
1802 * gnu/java/nio/DatagramChannelImpl.java
1803 (send): Check if target address is resolved.
1805 2004-02-26 Michael Koch <konqueror@gmx.de>
1807 * Makefile.am: Generate and install headers for inner classes in
1808 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
1809 * Makefile.in: Regenerated.
1811 2004-02-24 Anthony Green <green@redhat.com>
1813 * java/lang/StringBuffer.java: No need to NULL out remainder of
1814 buffer since ensureCapacity_unsynchronized will have done this for
1817 2004-02-20 Michael Koch <konqueror@gmx.de>
1819 * gnu/java/net/protocol/jar/Handler.java
1820 (): Removed unneeded check for file != null. java.net.URL.getFile()
1821 returns an empty string but never null.
1823 2004-02-20 Michael Koch <konqueror@gmx.de>
1825 * gnu/gcj/convert/Convert.java
1826 (main): Use equals() to compare strings.
1828 2004-02-20 Michael Koch <konqueror@gmx.de>
1830 * javax/swing/AbstractButton.java: Made several constants final.
1831 (getRolloverSelectedIcon): Made public.
1832 (getSelectedIcon): Made public.
1834 2004-02-16 Per Bothner <per@bothner.com>
1836 * java/nio/CharBufferImpl.java: Inline super constructor.
1837 * java/nio/DoubleBufferImpl.java: Likewise.
1838 * java/nio/FloatBufferImpl.java: Likewise.
1839 * java/nio/IntBufferImpl.java: Likewise.
1840 * java/nio/LongBufferImpl.java: Likewise.
1841 * java/nio/ShortBufferImpl.java: Likewise.
1842 * java/nio/CharBuffer.java: Remove unused constructor.
1843 * java/nio/DoubleBuffer.java: Likewise.
1844 * java/nio/FloatBuffer.java: Likewise.
1845 * java/nio/IntBuffer.java: Likewise.
1846 * java/nio/LongBuffer.java: Likewise.
1847 * java/nio/ShortBuffer.java: Likewise.
1848 * java/nio/CharViewBufferImpl.java: New convenience constructor.
1849 Fix buggy call to super constructor.
1850 * java/nio/DoubleViewBufferImpl.java: Likewise.
1851 * java/nio/FloatViewBufferImpl.java: Likewise.
1852 * java/nio/IntViewBufferImpl.java: Likewise.
1853 * java/nio/LongViewBufferImpl.java: Likewise.
1854 * java/nio/ShortViewBufferImpl.java: Likewise.
1856 * java/nio/ByteBuffer.java (endian): Make non-private so other
1857 java.nio classes can inherit it.
1858 (<init>): Don't bother clearing array_offset.
1859 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
1860 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
1861 Remove redundant test.
1863 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
1864 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
1865 Use new XxxViewBufferImpl constructors.
1866 * java/nio/MappedByteBufferImpl.java: Likewise.
1867 * java/nio/DirectByteBufferImpl.java: Likewise.
1869 * java/nio/ByteBufferImpl.java: Remove one constructor.
1870 Inline super in remaining constructor.
1871 * java/nio/ByteBuffer.java: Remove unused constructor.
1873 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
1875 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
1876 * java/nio/DirectByteBufferImpl.java (owner): New field.
1877 (offset): Remove unused field.
1878 (<init>): Modify one and add another constructor. Change callers.
1879 (allocateDirect): Removed - not used.
1880 (getImpl, putImpl): Make static and pass address explicitly,
1881 to make them useful for MappedByteBufferImpl.
1882 (get, put): Check for underflow. Modify for new getImpl.
1883 (getImpl): New native method where target is array.
1884 (get(byte[],int,int)): Use the above.
1885 (adjustAddress): New static native method.
1886 (slice, duplicate, asReadOnly): New implementations.
1887 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
1888 adjustAddress): New or updated native methods.
1890 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
1892 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
1893 overflow of fieldmapping.
1895 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
1897 * javax/swing/undo/UndoManager.java: Re-written from scratch.
1899 2004-02-14 Per Bothner <per@bothner.com>
1901 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
1902 Set closed before calling implCloseChannel, as in the spec.
1904 2004-02-09 Graydon Hoare <graydon@redhat.com>
1906 * javax/swing/ToggleButtonModel.java: Remove dead class.
1907 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
1908 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
1909 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
1910 * Makefile.am: Update for new and removed files.
1911 * Makefile.in: Regenerate.
1913 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
1914 * javax/swing/AbstractButton.java
1915 (AbstractButton): Initialize fields correctly in ctor.
1916 * javax/swing/JCheckbox.java
1917 (JCheckBox): Override painting flags.
1918 * javax/swing/DefaultButtonModel.java: Conform to sun.
1919 * javax/swing/JComponent.java (paint): Fill with background color
1921 (processComponentKeyEvent)
1924 (processMouseMotionEvent): Remove event-consuming empty methods.
1925 (getUIClassID): Return "ComponentUI" not "JComponent"
1926 * javax/swing/JFrame.java: Remove some debugging chatter.
1927 (JFrame): Subscribe to window events.
1928 * javax/swing/JRadioButton.java
1929 (JRadioButton): Override painting flags.
1930 * javax/swing/JRootPane.java
1931 (JRootPane): Set background from UIDefaults.
1932 * javax/swing/JToggleButton.java
1933 (ToggleButtonModel): New inner class.
1934 (JToggleButton): Override layout alighment.
1935 * javax/swing/SwingUtilities.java:
1936 (getLocalBounds): Return width and height, not x and y.
1937 (calculateInnerArea): Use local bounds, not bounds.
1938 (layoutCompoundLabel): Provide overridden form.
1939 (layoutCompoundLabel): Correct bugs.
1940 * javax/swing/UIDefaults.java: Correct comment.
1941 * javax/swing/plaf/basic/BasicButtonUI.java:
1942 Move most logic into defaults, external listener.
1943 (paintIcon): Implement icon painting.
1944 (paint): Fix state painting to conform to changes in model.
1945 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
1946 Remove most dead/wrong methods.
1947 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
1948 * javax/swing/plaf/basic/BasicIconFactory.java:
1949 (DummyIcon): New class.
1950 (getMenuItemCheckIcon)
1951 (getMenuItemArrowIcon)
1953 (getCheckBoxMenuItemIcon)
1954 (getRadioButtonMenuItemIcon)
1955 (createEmptyFrameIcon): Return DummyIcons, not null.
1956 (getCheckBoxIcon): Implement an icon that looks like sun's.
1957 (getRadioButtonIcon): Implement an icon that looks like sun's.
1958 * javax/swing/plaf/basic/BasicLookAndFeel.java
1959 (initComponentDefaults): Fix impossible values, add some missing.
1960 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
1961 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
1962 Remove most dead/wrong methods.
1964 (getDefaultIcon): New method.
1965 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
1966 Remove most dead/wrong methods.
1967 * javax/swing/plaf/metal/MetalLookAndFeel.java
1968 (getDefaults): Return super.getDefaults(), not BasicDefaults.
1969 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1970 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
1971 Implement "clearing" as drawing, when on pixmap drawables.
1973 * javax/swing/JButton.java (getUIClassID):
1974 * javax/swing/JCheckBox.java (getUIClassID):
1975 * javax/swing/JEditorPane.java (getUIClassID):
1976 * javax/swing/JLabel.java (getUIClassID):
1977 * javax/swing/JList.java (getUIClassID):
1978 * javax/swing/JOptionPane.java (getUIClassID):
1979 * javax/swing/JPanel.java (getUIClassID):
1980 * javax/swing/JPasswordField.java (uiClassID):
1981 * javax/swing/JRadioButton.java (getUIClassID):
1982 * javax/swing/JRootPane.java (getUIClassID):
1983 * javax/swing/JScrollPane.java (getUIClassID):
1984 * javax/swing/JTabbedPane.java (getUIClassID):
1985 * javax/swing/JToggleButton.java (getUIClassID):
1986 * javax/swing/JTree.java (getUIClassID):
1987 * javax/swing/JViewport.java (getUIClassID):
1988 * javax/swing/text/JTextComponent.java (getUIClassID):
1989 Return "fooUI" not "Jfoo"
1991 2004-02-11 Michael Koch <konqueror@gmx.de>
1993 * java/net/DatagramSocket.java
1994 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
1996 (setBroadcast): Likewise.
1997 * java/net/MulticastSocket.java
1998 (setLoopbackMode): Likewise.
1999 * java/net/ServerSocket.java
2000 (setReuseAddress): Likewise.
2001 * java/net/Socket.java
2002 (setTcpNoDelay): Likewise.
2003 (setSoLinger): Likewise.
2004 (setOOBInline): Likewise.
2005 (setKeepAlive): Likewise.
2006 (setReuseAddress): Likewise.
2007 * java/net/URLConnection.java
2008 (setContentHandler): Replace == with equals().
2009 * java/net/URLStreamHandler.java
2010 (hostSEquals): Fix checking host addresses.
2011 (toExternalForm): Dont check protocol for null. We know already its
2014 2004-02-10 David Jee <djee@redhat.com>
2016 * java/awt/BorderLayout.java
2017 (calcCompSize): Invisible components get zero dimensions.
2018 * java/awt/Button.java
2019 (setLabel): Set actionCommand.
2020 * java/awt/Component.java
2021 (show): Invalidate component and parent container.
2024 2004-02-10 David Jee <djee@redhat.com>
2026 * java/awt/GridBagLayout.java
2027 (GridBagLayout): New private field, internalcomptable.
2028 (lookupInternalConstraints): New method.
2029 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
2030 (GetLayoutInfo): Reimplement.
2031 (calcCellSizes): Ignore rows/columns with size 0.
2033 2004-02-10 Michael Koch <konqueror@gmx.de>
2035 * gnu/java/awt/EmbeddedWindow.java
2036 (setHandle): Use java.awt.Component.getPeer() instead of
2037 java.awt.Component.peer directly.
2039 2004-02-10 David Jee <djee@redhat.com>
2041 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
2042 (gtkSetLabel): New native method definition.
2043 (setLabel): Use gtkSetLabel.
2044 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
2045 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
2047 2004-02-10 Alan Modra <amodra@bigpond.net.au>
2049 * include/powerpc-signal.h: Revert 2004-01-21 change.
2050 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
2051 from syscall for ppc32 versions.
2053 2004-02-08 Per Bothner <per@bothner.com>
2055 * java/nio/ByteBuffer.java (shiftDown): New helper method.
2056 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
2057 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
2058 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
2059 Pass ByteOrder parameter to most methods, since the underlying
2060 ByteBuffer's order isn't always what we should use.
2061 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
2062 * java/nio/DirectByteBufferImpl.java: Likewise.
2063 Use ByteBufferHelper methods.
2064 * java/nio/MappedByteBufferImpl.java: Likewise.
2065 (compact): Use shiftDown.
2066 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
2067 (get, put): Use ByteBufferHelper.
2068 (compact): Use new shiftDown method.
2069 (duplicate(boolean)): New helper method.
2070 (duplicate, asReadOnlyBuffer): Use it.
2071 (order): Return endian field.
2072 * java/nio/DoubleViewBufferImpl.java: Likewise.
2073 * java/nio/FloatViewBufferImpl.java: Likewise.
2074 * java/nio/IntViewBufferImpl.java: Likewise.
2075 * java/nio/LongViewBufferImpl.java: Likewise.
2076 * java/nio/ShortViewBufferImpl.java: Likewise.
2077 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
2078 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
2079 (compact): Re-implement using shiftDown.
2081 2004-02-08 Andreas Jaeger <aj@suse.de>
2083 * include/x86_64-signal.h: Fix typo.
2085 2004-02-08 Diego Novillo <dnovillo@redhat.com>
2087 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
2089 (HANDLE_DIVIDE_OVERFLOW): Likewise.
2091 2004-02-06 Michael Koch <konqueror@gmx.de>
2093 * java/io/ObjectInputStream.java
2094 (currentClassLoader): Reverted to old version of this method.
2096 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
2098 * java/io/ObjectInputStream.java: Made all calls
2099 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
2100 use cached info from ObjectStreamClass. (readClassDescriptor):
2101 Cache more information in ObjectStreamClass. (processResolution,
2102 readFields): Use cached info from ObjectStreamClass.
2103 (newObject): Throw exception instead of returning null for failure.
2104 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
2105 setCharField, setDoubleField, setFloatField, setIntField,
2106 setLongField, setShortField, setObjectField, readObjectParams):
2107 Removed. (dumpElement, dumpElementln): Removed dump flag condition
2109 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
2110 (setClass): Added call to cacheMethods() (findMethod): New method.
2111 (cacheMethods): New method. (ObjectStreamClass): Added call to
2112 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
2113 AccessController.doPrivileged to invoke setAccessible.
2114 (readObjectMethod, readResolveMethod, realClassIsSerializable,
2115 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
2117 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
2118 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
2119 isPrimitive): Made safe for cases where type == null.
2120 (setBooleanField, setByteField, setCharField, setShortField,
2121 setIntField, setLongField, setFloatField, setDoubleField,
2122 setObjectField): New methods.
2124 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
2126 * java/awt/Component.java (getFont): Return a default font
2129 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
2130 (Scrollbar (int, int, int, int, int)): Make default page
2132 (setValues): Only call peer.setValues if one of the values has
2134 (generateName): New method.
2135 (getUniqueLong): New method.
2136 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
2137 (range_scrollbar): Remove structure.
2138 (post_adjustment_event): Remove function.
2139 (post_change_event): Accept jobject argument.
2140 (create): Cast jints to gdoubles. Round scrollbar values to the
2141 nearest integer. Clamp min, max and value settings.
2142 (connectJObject): Connect hook to widget->window.
2143 (connectSignals): Remove range_scrollbar structure variables.
2144 Remove "move-slider" connection. Pass global peer reference to
2145 "value-changed" callback.
2146 (setLineIncrement): Cast jint value to gdouble.
2147 (setPageIncrement): Likewise.
2148 (setValues): Likewise. Clamp min, max and value settings.
2150 2004-02-05 Michael Koch <konqueror@gmx.de>
2152 * javax/swing/AbstractCellEditor.java
2153 (getCellEditorValue): Removed.
2154 * javax/swing/Box.java: Reformated.
2155 (serialVersionUID): New field.
2156 * javax/swing/ButtonGroup.java:
2157 Removed some weird whitespace.
2158 * javax/swing/CellEditor.java: Reformated.
2159 * javax/swing/CellRendererPane.java
2160 (serialVersionUID): New field.
2161 (AccessibleCellRendererPaneserialVersionUID): New field.
2162 * javax/swing/DefaultListModel.java
2163 (serialVersionUID): New field.
2164 * javax/swing/JEditorPane.java
2165 (serialVersionUID): New field.
2166 (setPage): Throws IOException.
2167 (addHyperlinkListener): Implemented.
2168 (removeHyperlinkListener): Implemented.
2169 (getHyperlinkListener): New method.
2170 * javax/swing/JFileChooser.java
2171 (serialVersionUID): New field.
2172 (AccessibleJFileChooser.serialVersionUID): New field.
2173 (addActionListener): Implemented.
2174 (removeActionListener): Implemented.
2175 (getActionListeners): New method.
2176 * javax/swing/JFormattedTextField.java
2177 (serialVersionUID): New field.
2178 (AbstractFormatter.serialVersionUID): New field.
2179 (clone): Throws CloneNotSupportedException
2180 (setEditValid): Add missing argument.
2181 (stringToValue): Throws ParseExcpetion.
2182 (valueToString): Throws ParseException.
2183 (commitEdit): Throws ParseException.
2184 * javax/swing/JLabel.java
2185 (serialVersionUID): New field.
2186 * javax/swing/JList.java
2187 (serialVersionUID): New field.
2188 (addListSelectionListener): Reformated.
2189 (removeListSelectionListener): Reformated.
2190 (getListSelectionListeners): New method.
2191 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
2193 (serialVersionUID): New field.
2194 * javax/swing/table/AbstractTableModel.java
2195 (getValueAt): Removed.
2196 (getColumnCount): Removed.
2197 (getRowCount): Removed.
2199 2004-02-05 Michael Koch <konqueror@gmx.de>
2201 * java/awt/datatransfer/DataFlavor.java
2202 (imageFlavor): Javadoc added.
2203 (javaJVMLocalObjectType): Fixed.
2205 2004-02-05 Michael Koch <konqueror@gmx.de>
2207 * java/lang/Thread.java
2208 (Thread): Reordered.
2209 (setContextClassLoader): Fixed javadoc comment.
2210 (setPriority): Reordered.
2212 (initialize_native): Reordered.
2213 (gen_name): Reordered.
2215 2004-02-05 Michael Koch <konqueror@gmx.de>
2217 * java/lang/Thread.java: Reordered fields, reformated much code,
2218 no functional changes, some variables renamed, javadoc comments
2221 2004-02-05 Michael Koch <konqueror@gmx.de>
2223 * java/util/zip/Deflater.java,
2224 java/util/zip/DeflaterOutputStream.java,
2225 java/util/zip/GZIPInputStream.java:
2226 Reformated and javadoc comments merged from classpath.
2228 2004-02-05 Michael Koch <konqueror@gmx.de>
2230 * gnu/java/nio/NIOServerSocket.java
2231 (impl): Unused, removed.
2232 * gnu/java/nio/SocketChannelImpl.java
2233 (finnishConnect): Don't throw NoConnectionPendingException if not
2234 connected or no connection pending.
2236 2004-02-02 Graydon Hoare <graydon@redhat.com>
2238 * javax/swing/SwingUtilities.java: Many new functions.
2239 * java/awt/Container.java (LightweightDispatcher): Reimplement.
2240 * javax/swing/basic/BasicGraphicsUtils.java
2241 (getPreferredButtonSize): Start layout from top-left corner.
2243 2004-02-04 Olga Rodimina <rodimina@redhat.com>
2245 * java/awt/geom/AffineTransform.java:
2246 Corrected comments on the field definitions for
2248 (shear): Fixed few errors that caused shear
2249 transformation to be performed incorrectly.
2250 (createInverse): Fixed to return correct
2251 inverse of the given matrix.
2253 2004-02-03 Tom Tromey <tromey@redhat.com>
2255 * java/lang/natPosixProcess.cc (startProcess): Handle case where
2256 PATH or LD_LIBRARY_PATH is not set in parent environment.
2258 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
2260 * gnu/java/awt/peer/gtk/GtkListPeer.java,
2261 java/awt/BorderLayout.java, java/awt/CardLayout.java,
2262 java/awt/CheckboxGroup.java, java/awt/Choice.java,
2263 java/awt/Component.java, java/awt/Container.java,
2264 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
2265 java/awt/LayoutManager2.java, java/awt/List.java,
2266 java/awt/Menu.java, java/awt/MenuBar.java,
2267 java/awt/MenuItem.java, java/awt/Polygon.java,
2268 java/awt/Rectangle.java, java/awt/ScrollPane.java,
2269 java/awt/Scrollbar.java, java/awt/TextArea.java,
2270 java/awt/TextField.java,
2271 java/awt/image/renderable/RenderContext.java,
2272 javax/swing/JApplet.java: Fix handling of alias methods, where a
2273 method has been deprecated in favour of a new one with the same
2274 funtion but a different name. Put the method implementation in
2275 the deprecated method and have the new method call the
2276 deprecated one. Make all other code call the new method.
2278 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
2280 * gnu/java/nio/DatagramChannelImpl.java
2281 (inChannelOperation): New field.
2282 (isInChannelOperation): New accessor.
2283 (setInChannelOperation): New modifier.
2284 (receive): Use capacity() - position() of destination
2285 buffer instead of remaining(). Set and reset our "in
2286 channel operation indicator" before and after delegating
2287 the receive to our datagram socket. Removed testing code.
2288 Update destination buffer's current position if it is
2289 backed by a byte array (hasArray() is true).
2290 (send): Set and reset our "in channel operation indicator"
2291 before and after delegating the send to our datagram socket.
2292 Removed testing code. Update source buffer's current position
2293 if it is backed by a byte array (hasArray() is true).
2294 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
2295 Use capacity() - position() of destination buffer instead
2297 * java/net/DatagramSocket.java (receive): Don't throw an
2298 IllegalBlockingModeException if we have a non-blocking
2299 channel which initiated this operation.
2302 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
2304 * configure.in: Add pkgconfig check for glib and gthread.
2305 * configure: Regenerate.
2307 2004-02-01 Michael Koch <konqueror@gmx.de>
2309 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
2311 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
2312 * verify.cc (debug_print): Mark 'fmt' unused.
2314 2004-01-30 Michael Koch <konqueror@gmx.de>
2316 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
2317 * configure: Regenerated.
2318 * glib-2.0.m4: Removed.
2319 * gtk-2.0.m4: Removed.
2320 * libart.m4: Removed.
2323 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
2325 * gnu/java/net/PlainSocketImpl.java
2326 (inChannelOperation): New field.
2327 (isInChannelOperation): New accessor.
2328 (setInChannelOperation): New modifier.
2329 * gnu/java/nio/ServerSocketChannelImpl.java
2330 (accept): Set and reset our server socket's PlainSocketImpl's
2331 "in channel operation" indicator before and after delegating
2332 the accept to our server socket.
2333 * gnu/java/nio/SocketChannelImpl.java
2334 (connect): Set and reset our socket's PlainSocketImpl's "in channel
2335 operation" indicator before and after delegating the operation to
2339 * java/net/ServerSocket.java (implAccept): Don't throw an
2340 IllegalBlockingModeException if we have a non-blocking
2341 channel which initiated this accept operation.
2342 * java/net/Socket.java (connect): Don't throw an
2343 IllegalBlockingModeException if we have a non-blocking
2344 channel which initiated this connect operation.
2345 * java/nio/channels/spi/AbstractSelectableChannel.java
2346 (configureBlocking): Only call implConfigureBlocking() if
2347 the desired blocking mode is different from our current one.
2349 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
2351 * java/io/BufferedReader.java (sbuf): New field.
2352 (readLine): Use String.valueOf instead of new String() as per
2353 Per Bothner's suggestion. Use instance sbuf field instead of a
2354 local StringBuffer instance.
2355 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
2356 caller's buffer to refill().
2357 (read(void)): Pass our internal work buffer to refill if our
2358 input queue is empty.
2359 (refill): Changed return type to int. Use the specified buffer
2360 instead of our work buffer as per Bryce McKinlay's suggestion.
2361 Return the number of characters read or -1 for EOF.
2363 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
2365 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
2367 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
2369 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
2370 * Makefile.in: Re-generated.
2371 * gnu/awt/xlib/XFontPeer.java: New file.
2372 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
2373 (setClip): Commented out debug printout.
2374 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
2375 (getFontPeer): Return XFontPeer.
2376 (getLocalGraphicsEnvironment): New method.
2377 (getClasspathFontPeer): New method.
2378 (createFont): New method.
2380 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
2382 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
2385 2004-01-29 Kim Ho <kho@redhat.com>
2387 * gnu/java/awt/peer/gtk/GtkFramePeer.java
2388 (gtkLayoutSetVisible): New method
2389 (setMenuBar): Hide layout before setting MenuBar
2390 and reshow it after.
2391 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2392 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
2394 2004-01-28 Michael Koch <konqueror@gmx.de>
2396 * gnu/java/lang/ClassHelper.java
2397 (getPackagePortion): Removed.
2399 2004-01-28 Michael Koch <konqueror@gmx.de>
2401 * javax/swing/JComponent.java
2402 (listenerList): Initalize globally.
2403 (ancestor_list): Removed.
2404 (veto_list): Removed.
2405 (change_list): Removed.
2406 (get_veto_list): Removed.
2407 (get_change_list): Removed.
2408 (get_ancestor_list): Removed.
2409 (removeAncestorListener): Reimplemented.
2410 (removePropertyChangeListener): Likewise.
2411 (removeVetoableChangeListener): Likewise.
2412 (addAncestorListener): Likewise.
2413 (addPropertyChangeListener): Likewise.
2414 (addVetoableChangeListener): Likewise.
2415 (getListeners): New method.
2416 (getAncestorListeners): Likewise.
2417 (getVetoableChangeListeners): Likewise.
2418 (fireVetoableChange): Throws PropertyVetoException.
2419 * javax/swing/JEditorPane.java
2420 (JEditorPane): Throws IOException.
2422 2004-01-28 David Jee <djee@redhat.com>
2424 * gnu/java/awt/peer/gtk/GtkFramePeer.java
2425 (create): Set the default foreground color to
2426 java.awt.SystemColor.windowText.
2428 2004-01-27 Michael Koch <konqueror@gmx.de>
2430 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
2431 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
2432 Reindented to merge with classpath.
2434 2004-01-27 David Jee <djee@redhat.com>
2436 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2437 (addExposeFilter): Handle GtkFramePeer separately.
2438 (removeExposeFilter): Likewise.
2440 2004-01-27 Michael Koch <konqueror@gmx.de>
2442 * gnu/java/net/protocol/http/Connection.java
2443 (getOutputStream): Fixed typo.
2445 2004-01-27 Michael Koch <konqueror@gmx.de>
2447 * java/lang/Class.java
2448 (getConstructor): Removed SecurityException from throws clause.
2449 (_getConstructors): Likewise.
2450 (getConstructors): Likewise.
2451 (getDeclaredConstructor): Likewise.
2452 (getDeclaredClasses): Likewise.
2453 (getDeclaredConstructors): Likewise.
2454 (getDeclaredField): Likewise.
2455 (getDeclaredMethod): Likewise.
2456 (getDeclaredMethods): Likewise.
2457 (getField): Likewise.
2458 (getMethod): Likewise.
2459 (getMethods): Likewise.
2461 2004-01-27 Kim Ho <kho@redhat.com>
2463 * gnu/java/awt/peer/gtk/GtkFramePeer.java
2464 (removeMenuBarPeer): Remove MenuBarPeer argument.
2465 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
2466 (dispose): Call native method.
2467 * java/awt/Frame.java (setMenuBar): Create and remove
2468 MenuBar peers only if the Frame has a peer.
2469 (addNotify): Create the MenuBar peer if one exists.
2470 (removeNotify): Remove MenuBar peer if one exists.
2471 * java/awt/Menu.java: Fix imports.
2472 (addNotify): Don't use full class name.
2473 (removeNotify): Call removeNotify on all children.
2474 * java/awt/MenuBar.java (removeNotify): Call
2475 removeNotify on all children.
2476 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2477 (removeMenuBarPeer): Remove MenuBarPeer argument.
2478 Iterate through children to find the Frame's MenuBar.
2479 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
2481 (dispose): Remove references to the MenuComponent.
2483 2004-01-27 Michael Koch <konqueror@gmx.de>
2485 * javax/swing/AbstractCellEditor.java: Reformated.
2486 * javax/swing/DefaultListSelectionModel.java
2487 (listenerList): Made protected.
2488 (addListSelectionListener): Javadoc added.
2489 (removeListSelectionListener): Likewise.
2490 (getListeners): Likewise.
2491 (getListSelectionListeners): Likewise.
2492 * javax/swing/JComboBox.java: Merged copyright year.
2493 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
2495 2004-01-26 Andrew Haley <aph@redhat.com>
2497 * javax/swing/table/JTableHeader.java: Extend JComponent
2499 2004-01-26 Kim Ho <kho@redhat.com>
2501 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
2504 2004-01-26 Kim Ho <kho@redhat.com>
2506 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
2508 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
2509 height and let the Layout Managers readjust anything that
2511 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2512 (moveLayout): New method. Shift everything in the Gtk
2513 layout in the Y direction by an offset.
2515 2004-01-26 David Jee <djee@redhat.com>
2517 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
2518 (handleEvent): Implemented. Handles PaintEvents.
2519 (paint): Implemented. Use GTK native methods to queue updates
2520 for this heavyweight peer.
2521 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2522 (handleEvent): Removed.
2523 * java/awt/Component.java
2524 (paint): Implemented. Explictly paint the heavyweight peer.
2525 (update): Clear the background for heavyweight components.
2526 (paintAll): No need to call peer.paint() anymore.
2527 (processEvent): Don't process PaintEvents here. It's now done in
2528 the peer's handleEvent().
2529 (processPaintEvent): Removed.
2530 * java/awt/Container.java
2531 (paint): No need to call super.paint(). Visit heavyweight
2533 (update): Don't clear the background here. It's done in
2535 (visitChildren): Added check to not recurse into Containers.
2536 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2537 (filter_expose_event_handler): New method. Filter unwanted
2538 expose events while painting heavyweight peers.
2539 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
2540 New method. Connect filter and block pre_event_handler.
2541 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
2542 New method. Disconnect filter and unblock pre_event_handler.
2543 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
2544 New method. Invalidate and update given area.
2545 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2546 (pre_event_handler): Add checks for unwanted expose events.
2548 2004-01-26 David Jee <djee@redhat.com>
2550 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2551 (find_bg_color_widget): For GtkButton, return its child.
2553 2004-01-26 Kim Ho <kho@redhat.com>
2555 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
2557 (setMenuBar): Grab MenuBar height and change insets.
2558 (setBounds): Account for MenuBar height.
2559 (postInsetsChangedEvent): Ditto.
2560 (postSizeAllocateEvent): Remove.
2561 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2562 (menubar_resize_cb): Remove
2563 (setMenuBarPeer): Remove callback.
2564 (getMenuBarHeight): Use size requisition instead of
2567 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
2569 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
2570 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
2572 (setColumns): Remove FIXME -- peer will retrieve number of
2573 columns by calling getColumns.
2574 (setRows): Likewise for number of rows.
2575 (next_text_number): New field.
2576 (paramString): Fix param string.
2577 (generateName): New method.
2578 (getUniqueLong): New method.
2580 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
2582 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
2583 image observer of image loading status.
2584 (getImage (String)): Start image production.
2585 (getImage (URL)): Likewise.
2587 2004-01-25 Michael Koch <konqueror@gmx.de>
2589 * java/lang/Class.java: Imports reworked, reformated.
2590 (Class): Javadoc added.
2591 (forName): Likewise.
2592 (getClasses): Likewise.
2593 (getClassLoader): Likewise.
2594 (getComponentType): Likewise.
2595 (getConstructor): Likewise.
2596 (getConstructors): Likewise.
2597 (getDeclaredConstructor): Likewise.
2598 (getDeclaredClasses): Likewise.
2599 (getDeclaredConstructors): Likewise.
2600 (getDeclaredField): Likewise.
2601 (getDeclaredMethod): Likewise.
2602 (getDeclaredMethods): Likewise.
2603 (getDeclaringClass): Likewise.
2604 (getField): Likewise.
2605 (getInterfaces): Likewise.
2606 (getMethod): Likewise.
2607 (getMethods): Likewise.
2608 (getModifiers): Likewise.
2609 (getName): Likewise.
2610 (getResource): Likewise.
2611 (getResourceAsStream): Likewise.
2612 (getSigners): Likewise.
2613 (setSigners): Likewise.
2614 (getSuperclass): Likewise.
2615 (isArray): Likewise.
2616 (isAssignableFrom): Likewise.
2617 (isInstance): Likewise.
2618 (isInterface): Likewise.
2619 (isPrimitive): Likewise.
2620 (newInstance): Likewise.
2621 (getProtectionDomain): Likewise.
2622 (toString): Likewise.
2624 (initializeClass): Likewise.
2625 (finalize): Likewise.
2627 2004-01-24 Michael Koch <konqueror@gmx.de>
2629 * gnu/java/net/protocol/jar/Connection.java
2632 (gotHeaders): Removed.
2633 (getHeaderField): Removed.
2634 (getHeaderFields): Removed.
2635 (getHeaderFieldKey): Removed.
2637 (getField): Removed.
2638 (getHeaders): Removed.
2640 2004-01-24 Michael Koch <konqueror@gmx.de>
2642 * Makefile.am: Added library version to gtk peer lib.
2643 * Makefile.in: Regenerated.
2645 2004-01-24 Michael Koch <konqueror@gmx.de>
2647 * java/util/zip/InflaterInputStream.java: Merged class documentation
2650 2004-01-21 Jakub Jelinek <jakub@redhat.com>
2652 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
2653 header. For __powerpc64__ provide the default-signal.h definitions
2655 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
2656 instead of the dummy definitions.
2657 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
2658 (powerpc64*-*): Remove with_libffi_default.
2659 Only add -mminimal-toc for 64-bit compilations.
2660 * configure.in: Use powerpc-signal.h on powerpc64 as well.
2661 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
2662 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
2663 * configure: Rebuilt.
2665 2004-01-23 Michael Koch <konqueror@gmx.de>
2667 * gnu/java/nio/FileLockImpl.java: Compile fixes.
2669 2004-01-23 Michael Koch <konqueror@gmx.de>
2671 * java/lang/VMClassLoader.java: Reworked imports.
2673 2004-01-23 Michael Koch <konqueror@gmx.de>
2675 * javax/swing/AbstractAction.java: Reformated.
2677 2004-01-23 Michael Koch <konqueror@gmx.de>
2679 * java/text/CollationElementIterator.java:
2680 (setText): New method.
2682 2004-01-23 Michael Koch <konqueror@gmx.de>
2684 * gnu/java/nio/FileLockImpl.java:
2685 Fixed filename in copyright.
2686 (released): Removed.
2687 (finalize): New method.
2688 * gnu/java/nio/natFileLockImpl.cc
2689 (releaseImpl): Implemented.
2690 * java/nio/channels/FileChannelImpl.java:
2692 (lock): Implemented.
2693 (lockImpl): New method.
2694 (tryLock): Implemented.
2695 (tryLockImpl): New method.
2696 * java/nio/channels/natFileChannelImpl.cc
2697 (lockImpl): New method.
2698 (tryLockImpl): New method.
2700 2004-01-23 Michael Koch <konqueror@gmx.de>
2702 * java/io/FileDescriptor.java
2704 (tryLock): New method.
2705 (unlock): New method.
2706 * java/io/natFileDescriptorEcos.cc
2708 (tryLock): New method.
2709 (unlock): New method.
2710 * java/io/natFileDescriptorPosix.cc
2712 (tryLock): New method.
2713 (unlock): New method.
2714 * java/io/natFileDescriptorWin32.cc
2716 (tryLock): New method.
2717 (unlock): New method.
2719 2004-01-23 Michael Koch <konqueror@gmx.de>
2721 * java/io/FileDescriptor.java
2722 (sync): Moved around, added javadoc.
2727 (setLength): Likewise.
2729 (getLength): Likewise.
2730 (getFilePointer): Likewise.
2732 (available): Likewise.
2733 (finalize): Likewise.
2735 2004-01-23 Michael Koch <konqueror@gmx.de>
2737 * javax/swing/AbstractAction.java: Reformated.
2738 (getPropertyChangeListeners): New method.
2739 * javax/swing/AbstractCellEditor.java: Reformated.
2740 (getCellEditorListeners): New method.
2741 * javax/swing/DefaultListSelectionModel.java
2742 (listenerList): New field.
2743 (listeners): Removed.
2744 (get_listeners): Removed.
2745 (addListSelectionListener): Rewritten.
2746 (removeListSelectionListener): Rewritten.
2747 (getListSelectionListeners): New method.
2748 (getListeners): New method.
2749 * javax/swing/JComboBox.java: Imports reworked.
2750 (addActionListener): Implemented.
2751 (removeActionListener): Implemented.
2752 (addItemListener): Implemented.
2753 (removeItemListener): Implemented.
2754 (addPopupMenuListener): Implemented.
2755 (removePopupMenuListener): Implemented.
2756 (getActionListeners): New method.
2757 (getItemListeners): New method.
2758 (getPopupMenuListeners): New method.
2760 2004-01-23 Michael Koch <konqueror@gmx.de>
2762 * gnu/java/net/protocol/http/Connection.java
2763 (connect): Don't initialize bufferedOutputStream if not needed.
2764 (sendRequest): Set property for content length if content is present.
2765 Write content only if present.
2766 (getOutputStream): Check if already connected, dont connect,
2767 initalize bufferedOutputStream if needed.
2769 2004-01-23 Michael Koch <konqueror@gmx.de>
2771 * java/io/FileDescriptor.java
2772 (in, out, err): Added javadoc.
2773 (static): Merged loading code.
2774 (fd, position): Moved around.
2776 2004-01-23 Michael Koch <konqueror@gmx.de>
2778 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
2781 2004-01-23 Michael Koch <konqueror@gmx.de>
2783 * java/lang/Class.java,
2784 java/lang/Object.java,
2785 java/lang/Thread.java: Merged copyright with classpath.
2787 2004-01-23 Michael Koch <konqueror@gmx.de>
2789 * java/io/FileDescriptor.java: Merged copyright with classpath to
2790 start merging this class.
2792 2004-01-22 Tom Tromey <tromey@redhat.com>
2795 * testsuite/libjava.lang/pr13107_2.xfail: New file.
2796 * testsuite/libjava.lang/pr13107_3.xfail: New file.
2797 * testsuite/libjava.lang/pr13107_3.java: New file.
2798 * testsuite/libjava.lang/pr13107_3.out: New file.
2799 * testsuite/libjava.lang/pr13107_2.java: New file.
2800 * testsuite/libjava.lang/pr13107_2.out: New file.
2801 * testsuite/libjava.lang/pr13107.java: New file.
2802 * testsuite/libjava.lang/pr13107.out: New file.
2803 * verify.cc (jsr_ptrs): Removed.
2804 (entry_points): Likewise.
2805 (struct subr_info): Likewise.
2806 (struct subr_entry_info): Likewise.
2807 (type_val::unused_by_subroutine_type): Likewise.
2808 (type::merge): Don't handle unused_by_subroutine_type.
2809 (type::print): Likewise.
2810 (state::flags): Removed.
2811 (state::subroutine): Likewise.
2812 (state::seen_subrs): Likewise.
2813 (state::NO_STACK): Likewise.
2814 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
2815 (state): Updated all methods.
2816 (state::clean_subrs): Removed.
2817 (state::state): Removed `ret_semantics' flag.
2818 (state::copy): Likewise.
2819 (state::add_subr): Removed.
2820 (state::enter_subroutine): Likewise.
2821 (type::set_return_address): New method.
2822 (handle_jsr_insn): Set return address on the type. Always
2823 invalidate PC after call.
2824 (check_nonrecursive_call): Removed.
2825 (~_Jv_BytecodeVerifier): Updated.
2826 (branch_prepass): Removed special handling of jsr.
2827 (note_branch_target): Likewise.
2828 (get_subroutine): Removed.
2829 (state::merge): Don't merge subroutines and don't handle
2830 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
2831 (state::note_variable): Removed.
2832 (state::is_unmerged_ret_state): Likewise.
2833 (state::print): Updated.
2834 (set_variable): Likewise.
2835 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
2836 and jsr_semantics arguments. Updated for new reverification
2838 (pop_jump): Rewrote.
2839 (construct_primitive_array_type): Updated.
2840 (state::next): Removed.
2841 (INVALID_STATE): New define.
2842 (state::INVALID): Removed.
2843 (state::NO_NEXT): New value.
2844 (state::pc, state::next): New fields.
2845 (state::get_pc): New method.
2846 (next_verify_pc): Removed.
2847 (next_verify_state): New field.
2848 (verify_instructions_0): Always check for falling off end.
2850 (linked_utf8): Removed.
2851 (states): Changed type.
2852 (type::state_mergeable_p): New method.
2853 (state::state_mergeable_p): Likewise.
2854 (handle_ret_insn): Removed most code.
2855 (state::reverify): New method.
2856 (add_new_state): Likewise.
2857 (state::set_pc): Likewise.
2859 2004-01-22 Jeff Sturm <jsturm@one-point.com>
2862 * testsuite/libjava.compile/PR13733.java: New file.
2863 * testsuite/libjava.compile/PR13733.xfail: New file.
2865 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
2866 Michael Koch <konqueror@gmx.de>
2868 * javax/swing/table/DefaultTableCellRenderer.java
2869 (DefaultTableCellRenderer): Added javadoc for the class and for
2870 the constructor, Border instance, create an EmptyBorder.
2871 (UIResource): Removed the comment at the end of the class
2872 (setForeground): New method.
2873 (setBackground): New method.
2874 (updateUI): New method.
2875 (getTableCellRendererComponent): Rewritten with the help of
2876 dvholten and Stephane Meslin-Weber.
2877 (validate): New method.
2878 (repaint): New method.
2879 (firePropertyChange): New method.
2880 (setValue): New method.
2882 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
2884 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2885 (connectJObject): Replace printf calls with g_assert statements.
2886 Move property-notify-event signal connection to ...
2887 (connectSignals): Connect property-notify-event signal. Iterate
2888 through the vbox's children to find layout.
2890 2004-01-22 Graydon Hoare <graydon@redhat.com>
2892 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
2893 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
2894 Predicate static initialization on GtkToolkit.useGraphics2D().
2895 * java/awt/Component.java (processPaintEvent): Consume event.
2896 * javax/swing/AbstractButton.java: Reimplement, document.
2897 * javax/swing/DefaultButtonModel.java: Reimplement, document.
2898 * javax/swing/JComponent.java (paint): Use double buffer.
2899 (listenerList): Enable member.
2900 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
2901 * javax/swing/JToggleButton.java
2902 (JToggleButton): Modify model constructor.
2903 * javax/swing/SwingUtilities.java
2904 (layoutCompoundLabel): Adjust arithmetic.
2905 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
2906 * javax/swing/plaf/basic/BasicGraphicsUtils.java
2907 (getPreferredButtonSize): Include margins in calculation.
2908 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2909 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
2910 Receive up events from subordinate layout component.
2912 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2914 * java/awt/Component.java (show): Set visible to true before
2917 2004-01-21 Kim Ho <kho@redhat.com>
2919 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
2921 (removeMenuBarPeer): Make package private.
2922 (setMenuBarPeer): Make package private.
2923 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2924 (menubar_resize_cb): Mark attributes unused.
2925 (getMenuBarHeight): ditto.
2927 2004-01-21 David Jee <djee@redhat.com>
2929 * java/awt/Container.java
2930 (LightweightDispatcher.handleEvent): Add an extra check to avoid
2931 dispatching MOUSE_ENTERED event twice. Translate the point for
2932 the mouse event target before dispatching the event.
2934 2004-01-20 Jakub Jelinek <jakub@redhat.com>
2936 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
2937 lib_org_w3c_dom_la_LDFLAGS): New.
2938 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
2939 * Makefile.in: Rebuilt.
2941 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
2943 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
2944 Calculate proper offsets for heavyweight components packed in
2945 lightweight containers.
2947 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
2948 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
2949 (native create): Add width parameter.
2950 (create): Calculate text entry width based on current font's
2951 metrics and number of columns. Set TextField's font if not
2952 already set. Call native create.
2953 (gtkEntryGetBorderWidth): New native method.
2954 (gtkEntryGetSize): Remove method.
2955 (getMinimumSize): Call minimumSize.
2956 (getPreferredSize): Call preferredSize.
2957 (minimumSize): Calculate minimum size based on backing
2958 GtkEntry's borders, font metrics and number of columns.
2959 (preferredSize): Likewise for preferred size.
2960 (get_border_width): New static function.
2962 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
2963 Override GtkWindowPeer's setResizable method to account for menu
2964 bar height when setting the frame's size.
2966 2004-01-19 Matthias Klose <doko@debian.org>
2968 * libtool-version: Increased `current' to 6.
2970 2004-01-19 Kim Ho <kho@redhat.com>
2972 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2973 (connectJObject): Iterate through the vbox's children to find layout.
2975 2004-01-19 Fernando Nasser <fnasser@redhat.com>
2977 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
2978 isDispatchThread method to replace wrong test condition.
2980 2004-01-19 Fernando Nasser <fnasser@redhat.com>
2982 * java/awt/EventQueue.java (pop): Prevent racing condition to add
2983 events to the queue out of order by acquiring locks in the proper
2984 order and not by releasing one before acquiring the other.
2986 2004-01-19 Fernando Nasser <fnasser@redhat.com>
2988 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
2989 visible so that dialog can be reused.
2991 2004-01-19 Fernando Nasser <fnasser@redhat.com>
2993 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
2994 events may be handled by any queue in the stack.
2996 2004-01-19 Kim Ho <kho@redhat.com>
2998 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
2999 MenuBarPeer parameter.
3000 (removeMenuBarPeer): New native method.
3001 (setMenuBar): Call remove if menu bar is null. Adjust insets
3003 (postSizeAllocateEvent): New method. Called when menu bar size is
3004 allocated. Adjust insets and redo layout.
3005 (GtkFramePeer): Set menu bar during frame creation.
3006 (postConfigureEvent): Adjust position and size to accomodate
3008 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
3009 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
3010 (addNotify): Create the peer if it doesn't exist and call addNotify
3011 for the menu's items.
3012 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
3013 * java/awt/MenuItem.java (addNotify): Create the peer if it
3015 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3016 (removeMenuBarPeer): New method. Remove menu bar on the current
3018 (setMenuBarPeer): Add the menu bar to the current frame and the
3019 callback for size-allocate events on the menu bar.
3020 (getMenuBarHeight): Add menu bar parameter.
3021 (menubar_resize_cb): New callback method for postSizeAllocate events.
3023 Also: Fix indentation on last ChangeLog entry.
3025 2004-01-16 Kim Ho <kho@redhat.com>
3027 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
3028 (gtkWidgetGetDimensions): Remove.
3029 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3030 (gtkWidgetGetDimensions): Remove.
3032 2004-01-16 Tom Tromey <tromey@redhat.com>
3034 * java/awt/Container.java: Typo and indentation fixes.
3036 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
3037 * java/lang/natVMClassLoader.cc: ...here. New file.
3038 * Makefile.in: Rebuilt.
3039 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
3041 2004-01-16 Fernando Nasser <fnasser@redhat.com>
3043 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
3044 Discard GDK_ENTER_NOTIFY related to ungrabs.
3046 2004-01-16 Fernando Nasser <fnasser@redhat.com>
3048 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
3049 is called for an intermediate queue.
3051 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
3053 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3054 (window_property_changed_cb): Set id_set.
3056 2004-01-16 Kim Ho <kho@redhat.com>
3058 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
3059 it is a FileDialog and has dimensions of 0 by 0, then the initial
3060 size is set to size request plus insets.
3061 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
3062 (gtkWidgetGetDimensions): Override method.
3063 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3064 (gtkWidgetGetDimensions): Override method. Returns size request plus
3067 2004-01-16 Andrew Haley <aph@redhat.com>
3069 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
3070 * sysdep/i386/locks.h: Likewise.
3072 2004-01-16 Fernando Nasser <fnasser@redhat.com>
3074 * java/awt/EventDispatchThread.java (run): Stop running when
3076 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
3077 Reset the queue after transferring its contents.
3078 (push): Start a new dispatch thread if none is running.
3080 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
3082 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
3083 (doPolygon): set fill rule of polygon to
3084 WIND_EVEN_ODD by default.
3086 2004-01-15 Olga Rodimina <rodimina@redhat.com>
3088 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
3089 Implemented rendering hints related methods.
3090 (getDefaultHints): New helper method. Returns
3091 default rendering hints.
3092 (walkPath): changed to normalize path if
3093 the KEY_STROKE_CONTROL key is in "normalize" mode.
3094 (draw3DRect): changed coordinates of rectangle by +0.5
3095 if in "normalize" mode.
3097 2004-01-15 Tom Tromey <tromey@redhat.com>
3099 * Makefile.in: Rebuilt.
3100 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
3101 (%.lo: %.java) Filter out StackTrace.lo.
3103 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
3105 * configure.in: Add in AC_PREREQ(2.13)
3106 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
3109 2004-01-14 Nathan Bryant <nbryant@optonline.net>
3110 Tom Tromey <tromey@redhat.com>
3113 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
3114 array to superclass.
3115 (init): Changed interface; add URLs here.
3116 (initialize): New static method.
3117 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
3118 (_Jv_RunMain): ... not here.
3120 2004-01-14 Michael Koch <konqueror@gmx.de>
3122 * java/text/MessageFormat.java:
3123 Added descriptions to exceptions.
3124 This fixes PR libgcj/2429.
3126 2004-01-13 Fernando Nasser <fnasser@redhat.com>
3128 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
3129 (push): Make sure push is performed at the top of the thread stack.
3131 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3133 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
3134 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
3135 (native create): Add width and height parameters. Set text
3136 view's size request according to new parameters.
3137 (create): Calculate text view size based on current font's
3138 metrics and number of rows and columns. Set TextArea's font if
3139 not already set. Call native create.
3140 (getMinimumSize): Call minimumSize.
3141 (getPreferredSize): Call preferredSize.
3142 (getHScrollbarHeight): New method.
3143 (getVScrollbarWidth): New method.
3144 (minimumSize): Calculate minimum size based on scrollbar
3145 visibility, scrollbar sizes, font metrics and number of rows and
3147 (preferredSize): Likewise for preferred size.
3148 (gtkTextGetSize): Remove method.
3150 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3152 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
3153 (initializeInsets): Remove method.
3154 (GtkComponentPeer): Initialize insets field. Remove call to
3156 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
3158 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
3160 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
3161 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
3162 (latestInsets): Remove field.
3163 (native create): Add insets parameter. Call
3164 window_get_frame_extents. Set the window's default size and
3165 size request based on its frame extents.
3166 (create): Initialize insets.
3167 (postInsetsChangedEvent): New method.
3168 (postConfigureEvent): Remove parameters top, left, bottom,
3169 right. Remove insets-related logic.
3170 (connectJObject): Handle property-notify-event.
3171 (window_get_frame_extents, request_frame_extents,
3172 property_notify_predicate, window_property_changed_cb): New
3174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3175 (pre_event_handler): Remove insets-related logic for configure
3177 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
3178 Update postConfigureEvent signature.
3180 2004-01-13 Fernando Nasser <fnasser@redhat.com>
3182 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
3183 to handle Window "Closing" events.
3185 2004-01-13 David Jee <djee@redhat.com>
3187 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
3188 (setBackground): New method. Children with no explicitly-set
3189 background will be repainted with the parent container's new
3192 2004-01-13 David Jee <djee@redhat.com>
3194 * Makefile.am: Add BitwiseXORComposite.java.
3195 * Makefile.in: Regenerated.
3196 * gcj/Makefile.in: Regenerated.
3197 * include/Makefile.in: Regenerated.
3198 * testsuite/Makefile.in: Regenerated.
3200 2004-01-12 Fernando Nasser <fnasser@redhat.com>
3202 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
3203 not show modal dialogs twice and so that it allows showing a modal
3204 dialog from another modal dialog.
3206 2004-01-12 Fernando Nasser <fnasser@redhat.com>
3208 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
3209 and run secondary dispatch thread to process event queue while this
3212 2004-01-12 Graydon Hoare <graydon@redhat.com>
3214 * gnu/java/awt/gtk/GdkGraphics2D.java
3215 (static): Check GtkToolkit before initializing static state.
3216 (Graphics2D): Don't construct transform with 0.5 unit offset.
3218 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
3220 * gnu/java/awt/BitwiseXORComposite.java: Add.
3221 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
3222 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
3223 (BitwiseXORComposite): Remove inner class.
3225 2004-01-11 Michael Koch <konqueror@gmx.de>
3227 * gnu/java/lang/reflect/TypeSignature.java
3228 (getEncodingOfClass): Documentation fixed.
3229 (getClassForEncoding): Give class loader to Class.forName().
3230 Documentation fixed.
3232 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
3234 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
3236 2004-01-11 Michael Koch <konqueror@gmx.de>
3238 * javax/swing/undo/StateEditable.java
3239 (RCSID): Removed redundant modifiers.
3241 2004-01-10 Michael Koch <konqueror@gmx.de>
3243 * javax/print/attribute/EnumSyntax.java
3244 (getStringTable): Made protected.
3245 (getEnumValueTable): Likewise.
3246 * javax/print/attribute/standard/JobKOctetsProcessed.java
3247 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
3248 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
3249 (JobMediaSheetsCompleted): Made class final.
3250 * javax/print/attribute/standard/OutputDeviceAssigned.java
3251 (getName): Fixed typo.
3252 * javax/print/attribute/standard/RequestingUserName.java
3253 (serialVersionUID): Fixed value.
3255 2004-01-10 Michael Koch <konqueror@gmx.de>
3257 * javax/swing/plaf/basic/BasicButtonUI.java,
3258 javax/swing/plaf/basic/BasicCheckBoxUI.java,
3259 javax/swing/plaf/basic/BasicListUI.java,
3260 javax/swing/plaf/basic/BasicOptionPaneUI.java,
3261 javax/swing/plaf/basic/BasicPanelUI.java,
3262 javax/swing/plaf/basic/BasicRadioButtonUI.java,
3263 javax/swing/plaf/basic/BasicScrollPaneUI.java,
3264 javax/swing/plaf/basic/BasicToggleButtonUI.java,
3265 javax/swing/plaf/basic/BasicViewportUI.java:
3266 Fixed import statements.
3268 2004-01-10 Michael Koch <konqueror@gmx.de>
3270 * gnu/java/awt/image/ImageDecoder.java
3271 (produce): Made public.
3272 * gnu/java/awt/peer/GLightweightPeer.java,
3273 gnu/java/awt/peer/gtk/GtkToolkit.java:
3276 2004-01-10 Michael Koch <konqueror@gmx.de>
3278 * javax/swing/JRadioButtonMenuItem.java,
3279 javax/swing/JSeparator.java,
3280 javax/swing/JSplitPane.java,
3281 javax/swing/JTextPane.java,
3282 javax/swing/JToolBar.java,
3283 javax/swing/ListCellRenderer.java,
3284 javax/swing/ListModel.java,
3285 javax/swing/MenuElement.java,
3286 javax/swing/OverlayLayout.java,
3287 javax/swing/ProgressMonitor.java,
3288 javax/swing/ProgressMonitorInputStream.java,
3289 javax/swing/Renderer.java,
3290 javax/swing/RootPaneContainer.java,
3291 javax/swing/Scrollable.java,
3292 javax/swing/SingleSelectionModel.java,
3293 javax/swing/ToolTipManager.java,
3294 javax/swing/ViewportLayout.java,
3295 javax/swing/event/DocumentEvent.java,
3296 javax/swing/event/SwingPropertyChangeSupport.java,
3297 javax/swing/event/TreeSelectionEvent.java,
3298 javax/swing/event/UndoableEditEvent.java,
3299 javax/swing/text/AbstractDocument.java,
3300 javax/swing/text/AttributeSet.java,
3301 javax/swing/text/Caret.java,
3302 javax/swing/text/ComponentView.java,
3303 javax/swing/text/DefaultCaret.java,
3304 javax/swing/text/DefaultEditorKit.java,
3305 javax/swing/text/Document.java,
3306 javax/swing/text/EditorKit.java,
3307 javax/swing/text/GapContent.java,
3308 javax/swing/text/Keymap.java,
3309 javax/swing/text/MutableAttributeSet.java,
3310 javax/swing/text/PlainEditorKit.java,
3311 javax/swing/text/Segment.java,
3312 javax/swing/text/Style.java,
3313 javax/swing/text/StyledDocument.java,
3314 javax/swing/text/StyledEditorKit.java,
3315 javax/swing/text/TextAction.java,
3316 javax/swing/text/View.java: Fixed import statements.
3318 2004-01-08 Graydon Hoare <graydon@redhat.com>
3320 * javax/swing/JLayeredPane.java: Rewrite to accomodate
3321 djee@redhat.com's recent inverse ordering of Container elements.
3323 2004-01-09 Michael Koch <konqueror@gmx.de>
3325 * gnu/java/lang/ArrayHelper.java
3326 (equalsArray): Removed.
3328 2004-01-09 Andrew Haley <aph@redhat.com>
3330 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
3331 a Utf8Const field before looking at its class.
3333 2004-01-09 Michael Koch <konqueror@gmx.de>
3335 * javax/print/attribute/standard/DocumentName.java,
3336 javax/print/attribute/standard/JobHoldUntil.java,
3337 javax/print/attribute/standard/JobMessageFromOperator.java,
3338 javax/print/attribute/standard/JobName.java,
3339 javax/print/attribute/standard/JobOriginatingUserName.java,
3340 javax/print/attribute/standard/OutputDeviceAssigned.java,
3341 javax/print/attribute/standard/PrinterInfo.java,
3342 javax/print/attribute/standard/PrinterLocation.java,
3343 javax/print/attribute/standard/PrinterMakeAndModel.java,
3344 javax/print/attribute/standard/PrinterMessageFromOperator.java,
3345 javax/print/attribute/standard/PrinterName.java,
3346 javax/print/attribute/standard/RequestingUserName.java: New files.
3347 * Makefile.am (javax_source_files): Added new files.
3348 * Makefile.in: Regenerated.
3350 2004-01-09 Michael Koch <konqueror@gmx.de>
3352 * javax/swing/AbstractAction.java,
3353 javax/swing/AbstractSet.java,
3354 javax/swing/Action.java,
3355 javax/swing/ActionMap.java,
3356 javax/swing/BoundedRangeModel.java,
3357 javax/swing/ButtonModel.java,
3358 javax/swing/CellEditor.java,
3359 javax/swing/CellRendererPane.java,
3360 javax/swing/ComboBoxEditor.java,
3361 javax/swing/DebugGraphics.java,
3362 javax/swing/DefaultCellEditor.java,
3363 javax/swing/DefaultCellRenderer.java,
3364 javax/swing/DefaultComboBoxModel.java,
3365 javax/swing/DefaultDesktopManager.java,
3366 javax/swing/DefaultFocusManager.java,
3367 javax/swing/DefaultListCellRenderer.java,
3368 javax/swing/Icon.java,
3369 javax/swing/JButton.java,
3370 javax/swing/JCheckBoxMenuItem.java,
3371 javax/swing/JDesktopPane.java,
3372 javax/swing/JEditorPane.java,
3373 javax/swing/JMenu.java,
3374 javax/swing/JPanel.java,
3375 javax/swing/JPasswordField.java,
3376 javax/swing/JPopupMenu.java,
3377 javax/swing/JProgressBar.java: Reworked imports.
3379 2004-01-09 Michael Koch <konqueror@gmx.de>
3381 * java/awt/geom/PathIterator.java
3382 (WIND_EVEN_ODD): Removed redundant modifiers.
3383 (WIND_NON_ZERO): Likewise.
3384 (SEG_MOVETO): Likewise.
3385 (SEG_LINETO): Likewise.
3386 (SEG_QUADTO): Likewise.
3387 (SEG_CUBICTO): Likewise.
3388 (SEG_CLOSE): Likewise.
3389 * java/awt/image/SinglePixelPackedSampleModel.java:
3390 Removed redundant semicolon.
3391 * java/io/ObjectInputStream.java
3392 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
3393 * java/util/logging/Filter.java
3394 (isLoggable): Removed redundant modifier.
3395 * java/util/logging/LogManager.java:
3396 Removed redundant semicolon.
3397 * java/util/logging/XMLFormatter.java
3398 (format): Removed unused variable "key".
3400 2004-01-08 Fernando Nasser <fnasser@redhat.com>
3402 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
3403 New name for the former setFile native method.
3404 (setFile): New method.
3405 (setDirectory): Implemented.
3406 (connectSignals): New native method.
3407 (setFilenameFilter): Improve comment.
3408 (getGraphics): Comment.
3409 (gtkHideFileDialog): New method.
3410 (gtkDisposeFileDialog): New method.
3411 (gtkSetFilename): New method.
3412 * java/awt/Dialog.java (show): Block on modal dialogs, but only
3413 for FileDialog for now.
3415 (dispose): New method.
3416 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
3417 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
3418 deprecated creation functions. Make dialog modal. Add it to the
3420 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
3422 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
3424 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
3426 (window_closed): New function.
3427 (ok_clicked): New function.
3428 (cancel_clicked): New function.
3430 2004-01-08 Michael Koch <konqueror@gmx.de>
3432 * javax/swing/JLayeredPane.java: Revert changes to standard
3433 boilerplate, reworked imports.
3435 2004-01-07 Tom Tromey <tromey@redhat.com>
3438 * verify.cc (state::merge): Copy changed locals out of subroutine
3440 (state::FLAG_CHANGED): New const.
3441 (state::FLAG_UNUSED): Likewise.
3442 (state::local_changed): Removed. Updated all users.
3443 (state::flags): New field.
3444 (state::merge): Added jsr_semantics argument, more logic.
3445 (push_jump_merge): Added jsr_semantics argument.
3446 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
3447 merging through the jsr instruction.
3449 2004-01-07 Tom Tromey <tromey@redhat.com>
3451 * scripts/MakeDefaultMimeTypes.java: Use \n, not
3454 2004-01-07 Graydon Hoare <graydon@redhat.com>
3456 * java/awt/Container.java (LightweightDispatcher): Implement.
3457 (visitChild): Reuse graphics object.
3458 (dispatchEventImpl): Optionally dispatch to lightweight.
3459 (addNotifyContainerChildren): Build LightweightDispatcher.
3461 2004-01-07 David Jee <djee@redhat.com>
3463 * java/awt/Container.java
3464 (update): Clear only the clipped region, instead of clearing the
3466 (visitChildren): Visit children in descending order.
3468 2004-01-07 Michael Koch <konqueror@gmx.de>
3470 * java/lang/reflect/Array.java: Merged documentation with classpath.
3472 2004-01-07 Michael Koch <konqueror@gmx.de>
3474 * java/text/CollationElementIterator.java
3475 (textIndex): Renamed from index.
3476 * java/text/CollationKey.java
3477 (collator): New member.
3478 (CollationKey): New argument for parent collator.
3479 (equals): Check for same collator, source string and key array.
3480 * java/text/RuleBasedCollator.java:
3482 (RuleBasedCollator): Don't re-initialize frenchAccents with default
3484 (getCollationElementIterator): Rewritten.
3485 (getCollationKey): Added new argument to CollationKey constructor.
3487 2004-01-07 Michael Koch <konqueror@gmx.de>
3489 * gnu/java/nio/DatagramChannelImpl.java
3490 (blocking): Removed.
3491 (DatagramChannelImpl): Call configureBlocking().
3492 (implConfigureBlocking): Dont initialize blocking.
3493 * gnu/java/nio/ServerSocketChannelImpl.java
3494 (blocking): Removed.
3495 (ServerSocketChannelImpl): Call configureBlocking().
3496 (implConfigureBlocking): Dont initialize blocking.
3497 * gnu/java/nio/SocketChannelImpl.java
3498 (blocking): Removed.
3499 (SocketChannelImpl): Call configureBlocking().
3500 (implConfigureBlocking): Dont initialize blocking.
3501 (connect): Use isBlocking().
3502 * java/nio/channels/spi/AbstractSelectableChannel.java
3503 (configureBlocking): Use blockingLock() instead of LOCK.
3504 Set blocking after successfully called implConfigureBlocking().
3505 (register): Use blockingLock() instead of LOCK.
3507 2004-01-07 Michael Koch <konqueror@gmx.de>
3509 * java/net/ServerSocket.java (isBound): Fixed documentation.
3511 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
3513 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
3514 (changeEvent): Create event object on demand.
3515 (DefaultBoundedRangeModel, toString, setValue, setExtent,
3516 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
3517 fireStateChanged): Re-written.
3518 * javax/swing/event/EventListenerList.java: Reformatted, document
3520 (toString): Implemented.
3521 (getListeners): Re-written.
3522 (remove): Re-written.
3524 (NO_LISTENERS): New singleton field.
3525 (listenerList): Declare as transient; document.
3526 (serialVersionUID): Document.
3527 (getListenerCount(Class)): More efficient implementation,
3528 also accepts null argument. Improve Javadoc.
3529 (getListenerCount()): Remove unnecessary cast; docfix.
3530 * javax/swing/undo/UndoableEditSupport.java:
3531 Re-format, document.
3532 (UndoableEditSupport): Set realSource field. Improve documentation.
3533 (_postEdit): Iterate over cloned listener vector.
3534 (toString): Don't emit realSource.
3535 (beginUpdate, endUpdate): Support nested updates.
3536 (postEdit): Use compound edit if present.
3538 2004-01-06 Graydon Hoare <graydon@redhat.com>
3540 * java/awt/Container.java (swapComponents): Add forgotten
3541 function, required for JLayeredPane change.
3543 2004-01-06 Michael Koch <konqueror@gmx.de>
3545 * java/text/CollationElementIterator.java: Reformated.
3546 (CollationElementIterator): Changed order of arguments.
3547 * java/text/RuleBasedCollator.java
3548 (RuleBasedCollator): Merged class documentation.
3549 (CollationElement): Added documentation.
3550 (compare): Reformated, renamed arguments.
3552 (getCollationElementIterator): Likewise.
3553 (getCollationKey): Likewise.
3555 2004-01-06 Graydon Hoare <graydon@redhat.com>
3557 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
3559 2004-01-06 Michael Koch <konqueror@gmx.de>
3561 * gnu/java/net/protocol/file/Connection.java:
3562 Reformated copyright.
3565 (gotHeaders): Removed.
3566 (getHeaderField): Removed.
3567 (getHeaderField): Removed.
3568 (getHeaderFieldKey): Removed.
3570 (getField): Removed.
3571 (getHeaders): Removed.
3573 2004-01-06 Michael Koch <konqueror@gmx.de>
3575 * javax/print/attribute/standard/DateTimeAtCompleted.java,
3576 javax/print/attribute/standard/DateTimeAtCreation.java,
3577 javax/print/attribute/standard/DateTimeAtProcessing.java,
3578 javax/print/attribute/standard/JobImpressionsCompleted.java,
3579 javax/print/attribute/standard/JobKOctets.java,
3580 javax/print/attribute/standard/JobKOctetsProcessed.java,
3581 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
3582 javax/print/attribute/standard/JobPrioritySupported.java: New files.
3583 * Makefile.am (javax_source_files): Added new files.
3584 * Makefile.in: Regenerated.
3586 2004-01-06 Michael Koch <konqueror@gmx.de>
3588 * java/net/URLConnection.java
3589 (contentHandler): Removed.
3591 (getHeaderFields): Return an empty map instead of null.
3592 (getContent): Connect if needed, renamed "cType" to "type" and
3593 "contentHandler" to "ch" and made it a local variable.
3594 (getPermission): Don't use package in class name.
3595 (setDefaultRequestProperty): Fixed typo in documentation.
3596 (initializeDateFormats): Made locale a local variable.
3598 2004-01-06 Michael Koch <konqueror@gmx.de>
3600 * java/lang/Package.java
3601 (getPackage): Get the current class loader directly.
3602 * java/lang/SecurityManager.java
3603 (currentLoadedClass): Dont iterate over class contexts.
3604 (classLoaderDepth): Don't check class loaders if everything is allowed.
3606 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
3608 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
3609 (pre_event_handler): Set all insets to 0 when a Configure event
3610 is received for a GtkPlug.
3611 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
3612 Make handle long, not int.
3613 (EmbeddedWindow()): New constructor.
3614 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
3616 (setHandle): New method.
3617 (getHandle): Return long, not int.
3618 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
3620 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
3621 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
3622 (create(long)): Take long parameter, not int. Cast gtk_plug_new
3623 argument to GdkNativeWindow.
3624 (construct): New method.
3625 (embed): New method.
3627 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
3628 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
3629 (create(int, int)): New method.
3630 (create): Call new create method.
3631 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
3633 (childResized): Remove native implementation. Implement in
3635 (getHScrollbarHeight, getVScrollbarWidth): Call
3636 gtk_widget_size_request to get scrollbar dimensions.
3637 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
3638 call getVScrollbarWidth and getHScrollbarHeight when vertical
3639 and horizontal scrollbars respectively are needed.
3640 (doLayout): Enlarge child if it is smaller than the viewport.
3642 2004-01-05 Fernando Nasser <fnasser@redhat.com>
3644 * java/awt/Dialog.java (constructor): Accept null title as per spec.
3645 * java/awt/FileDialog.java (constructor): Throw exception on invalid
3646 argument as per spec.
3648 2004-01-05 Fernando Nasser <fnasser@redhat.com>
3650 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
3652 (remove): Ditto. Also, Check for valid argument.
3653 (removeAll): Use peer interface method.
3654 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
3655 native add function.
3656 (nativeRemove): New name for native remove function.
3657 (getHistory): New native function.
3658 (constructor): Generate ItemEvent.
3659 (add): Ditto, if selection is changed.
3660 (remove): Ditto, ditto.
3661 (removeAll): Add implementation.
3662 (handleEvent): Remove. Dead code.
3663 (choicePostItemEvent): Add comment.
3664 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
3665 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
3666 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
3667 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
3668 comments and fix condition to change selection.
3669 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
3670 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
3671 remove all capability.
3672 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
3673 (item_activate): Add cast to remove compiler warning.
3675 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
3677 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3678 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3679 (getPreferredSize): Call preferredSize.
3680 (preferredSize): Call gtkWidgetGetPreferredDimensions.
3681 (getMinimumSize): Call minimumSize.
3682 (minimumSize): Call gtkWidgetGetPreferredDimensions.
3683 (gtkWidgetGetDimensions): Return the peer widget's current size
3685 (gtkWidgetGetPreferredDimensions): Return the peer widget's
3686 natural size request.
3688 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
3690 Thanks to Brian Gough <bjg@network-theory.com>
3691 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
3692 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
3694 2004-01-04 Matthias Klose <doko@debian.org>
3696 * aclocal.m4: Rebuilt using "aclocal -I .".
3697 * configure: Rebuilt.
3699 2004-01-03 Per Bothner <per@bothner.com>
3701 * java/util/Date.java (parse): Fix a number of problems.
3702 (skipParens): Remove no-longer-needed method.