1 2004-03-15 Michael Koch <konqueror@gmx.de>
3 * java/util/Locale.java: Reverting my last patch
4 and add a comment why the original version was okay.
6 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
9 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
10 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
11 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
13 2004-03-12 Michael Koch <konqueror@gmx.de>
15 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
17 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
19 * java/net/URI.java (toURL): Implemented.
21 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
24 (URI_REGEXP) updated to contain scheme specific part.
25 (SCHEME_SPEC_PART_GROUP) new constant.
26 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
27 updated to make room for SCHEME_SPEC_PART_GROUP.
28 (parseURI) parse scheme specific part.
29 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
30 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
31 getQuery, getFragment) implemented.
33 2004-03-12 Dalibor Topic <robilad@kaffe.org>
35 * libraries/javalib/java/net/URI.java
36 partially implemented using java.util.regex.
37 (URI_REGEXP) new constant. Used to parse URIs.
38 (SCHEME_GROUP) new constant representing index of scheme group
40 (AUTHORITY_GROUP) new constant representing index of authority
42 (PATH_GROUP) new constant representing index of path group in
44 (QUERY_GROUP) new constant representing index of query group in
46 (FRAGMENT_GROUP) new constant representing index of fragment
48 (getURIGroup) new static utility method.
49 (parseURI) implemented.
50 (quote) stub for new static utility method.
51 (quoteAuthority) stub for new static utility method.
52 (quoteHost) stub for new static utility method.
53 (quotePath) stub for new static utility method.
54 (quoteUserInfo) stub for new static utility method.
56 (create) don't throw URISyntaxException. Implemented.
57 (toString) implemented.
59 2004-03-12 Michael Koch <konqueror@gmx.de>
61 * java/net/HttpURLConnection.java
62 (getResponseCode): Fix another typo in javadoc.
64 2004-03-11 Michael Koch <konqueror@gmx.de>
66 * java/util/logging/Level.java
67 (parse): Use String.equals() instead of ==.
69 2004-03-11 Michael Koch <konqueror@gmx.de>
71 * gnu/java/net/protocol/jar/Connection.java
72 (getContentLength): New method.
74 2004-03-11 Michael Koch <konqueror@gmx.de>
76 * gnu/java/net/PlainSocketImpl.java:
77 Reformated to merge better with classpath's version.
79 2004-03-11 Michael Koch <konqueror@gmx.de>
81 * java/util/Locale.java
82 (getISO3Language): Use String.equals() instead of ==.
83 (getISO3Country): Likewise.
85 2004-03-11 Dalibor Topic <robilad@kaffe.org>
87 * java/text/AttributedString.java
88 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
89 Use HashMap instead of Hashtable since value can be null, and
90 you can not store a null value in a Hashtable.
92 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
94 * java/text/AttributedStringIterator.java
95 (getAllAttributesKey): Return only keys concerned
96 by the current iterator.
97 (getAttributes): Use strict inequality for
100 2004-03-11 Michael Koch <konqueror@gmx.de>
102 * java/net/HttpURLConnection.java:
103 Fixed typo in javadoc.
105 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
107 * java/io/BufferedInputStream.java (marktarget): New field for max
109 (CHUNKSIZE): New constant for incremental mark buffer allocation.
110 (mark): Use new fields.
112 (read(byte[],int,int)): Likewise.
116 2004-03-11 Mark Wielaard <mark@klomp.org>
118 * java/beans/BeanDescriptor.java (BeanDescriptor):
119 Set the FeatureDescriptor programmatic name.
121 2004-03-11 Michael Koch <konqueror@gmx.de>
123 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
124 This file was was just copied form java/io/natFileDescriptorEcos.cc
125 and never changed to compile correctly.
127 2004-03-11 Michael Koch <konqueror@gmx.de>
129 * gnu/java/nio/PipeImpl.java
130 (SourceChannelImpl): Made final.
132 (SinkChannelImpl): Made final.
133 (write): Implemented.
135 2004-03-11 Michael Koch <konqueror@gmx.de>
137 * gnu/java/net/PlainDatagramSocketImpl.java:
138 Reformated to match classpath's version more.
140 2004-03-11 Michael Koch <konqueror@gmx.de>
142 * gnu/java/awt/peer/ClasspathFontPeer.java:
143 Fixed javadoc to be correct xhtml.
144 * gnu/java/awt/peer/gtk/GtkArgList.java
145 (add): Use Boolean.valueOf() instead of new Boolean().
147 2004-03-09 Michael Koch <konqueror@gmx.de>
149 * java/lang/Thread.java
150 (runnable): Moved around.
151 (daemon): Renamed from daemon_flag.
152 (contextClassLoader): Renamed from context_class_loader.
153 (Thread): Reordered constructors.
154 (activeCount): Use group directly.
155 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
156 (holdsLock): Reworked javadoc.
157 (setDaemon): Reworked.
158 * java/lang/natThread.cc
160 2004-03-08 Anthony Green <green@redhat.com>
162 * Makefile.am: Build property resource files into libgcj.
163 * Makefile.in: Rebuilt.
164 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
165 java/util/regex/PatternSyntaxException.java,
166 gnu/regexp/CharIndexed.java,
167 gnu/regexp/CharIndexedCharArray.java,
168 gnu/regexp/CharIndexedInputStream.java,
169 gnu/regexp/CharIndexedReader.java,
170 gnu/regexp/CharIndexedString.java,
171 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
172 gnu/regexp/REException.java,
173 gnu/regexp/REFilterInputStream.java,
174 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
175 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
176 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
177 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
178 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
179 gnu/regexp/RETokenLookAhead.java,
180 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
181 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
182 gnu/regexp/RETokenStart.java,
183 gnu/regexp/RETokenWordBoundary.java,
184 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
186 2004-03-03 Per Bothner <per@bothner.com>
188 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
189 Optimize when argument is a FileChannelImpl.
190 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
192 * java/nio/channels/natChannels.cc: New file for new native methods.
193 * Makefile.am: Update accordingly.
195 2004-03-02 Jan Hubicka <jh@suse.cz>
197 * configure.host: Pass -fno-omit-frame-pointer for i386.
198 * configure.in: Likewise.
199 * configure: Regenerate.
201 2004-03-01 Per Bothner <per@bothner.com>
203 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
205 2004-02-29 Per Bothner <per@bothner.com>
207 * java/nio/channels/FileChannelImpl.java: Moved to package
208 gnu/java/nio/channels, since we need to refer to it from java.io.
209 * java/nio/channels/natFileChannelImpl.cc: Removed file.
210 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
211 from java/nio/channels. Don't depend on FileDescriptor.
212 (in, out, err): New static fields.
214 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
216 (by): Removed MappedByteBuffer field.
217 (map): New working implementation.
218 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
219 some code "ported" from natFileDescriptoPosix.cc.
220 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
221 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
222 * java/io/FileDescriptor.java: Implement on top of FileChannel.
223 Remove native methods.
224 * Makefile.am, configure.in: Updated accordingly.
226 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
227 (ch): New FileChannelImpl field. Update constructor to match.
228 (releaseImpl): Remove native method. Instead ...
229 (release): Call unlock on channel.
230 * gnu/java/nio/natFileLockImpl.cc: Removed file.
232 * java/io/natFileDescriptorEcos.cc: Remove file.
233 * java/io/natFileDescriptorPosix.cc: Remove file.
234 * java/io/natFileDescriptorWin32.cc: Remove file.
235 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
236 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
237 (<init>(FileChannelImpl)): New package-private constructor.
238 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
239 (available, close, read, skip): Implement using FileChannelImpl.
240 (getFD): Allocate FileDescriptor if needed.
241 (getChannel): Is now trivial.
242 * java/io/FileOutputStream.java: Corresponding changes.
243 * java/io/RandomAccessFile.java: Corresponding changes.
245 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
246 unmapImpl): New dummy methods, to be overridden by subclass.
247 (finalize, isLoaded, load, force): New methods.
248 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
249 Now works, at least for read mapping.
251 * java/lang/natPosixProcess.cc (startProcess): Implement standard
252 streams using FileChannelImpl, not FileDescriptor.
253 * java/lang/natWin32Process.cc (startProcess): Likewise.
255 2004-02-28 Michael Koch <konqueror@gmx.de>
257 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
260 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
262 * java/io/ObjectInputStream.java
263 (readClassDescriptor): Keep elements of the mapping non null.
264 (checkTypeConsistency): New method.
265 (readFields): Fixed main loop and base logic. Small reindentation.
266 * java/io/ObjectStreamField.java
267 (lookupField): New method to update the field reference.
268 (checkFieldType): New method.
269 * java/io/ObjectStreamClass.java
270 (setClass, setFields): Call lookupField when building the field
271 database. Check the real field type.
273 2004-02-28 Michael Koch <konqueror@gmx.de>
275 * java/nio/ByteOrder.java
276 (nativeOrder): Use equals() to compare strings.
278 2004-02-26 Michael Koch <konqueror@gmx.de>
280 * gnu/java/nio/FileLockImpl.java
281 (finalize): Made protected.
282 * java/nio/channels/FileChannel.java
283 (MapMode.READ_ONLY): Made final.
284 (MapMode.READ_WRITE): Made final.
285 (MapMode.PRIVATE): Made final.
286 * java/nio/channels/SocketChannel.java
287 (open): Simplified code.
288 * java/nio/channels/spi/AbstractSelectableChannel.java
289 (registered): Unused, removed.
290 (keyFor): Check channel is open, only locate key
291 and not add a new one.
292 (register): Don't delete attachments.
294 2004-02-26 Michael Koch <konqueror@gmx.de>
296 * gnu/java/awt/ComponentDataBlitOp.java
297 (INSTANCE): Made final.
298 * gnu/java/awt/image/ImageDecoder.java:
300 (cm): Unused, removed.
302 2004-02-26 Michael Koch <konqueror@gmx.de>
304 * gnu/java/nio/DatagramChannelImpl.java
305 (send): Check if target address is resolved.
307 2004-02-26 Michael Koch <konqueror@gmx.de>
309 * Makefile.am: Generate and install headers for inner classes in
310 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
311 * Makefile.in: Regenerated.
313 2004-02-24 Anthony Green <green@redhat.com>
315 * java/lang/StringBuffer.java: No need to NULL out remainder of
316 buffer since ensureCapacity_unsynchronized will have done this for
319 2004-02-20 Michael Koch <konqueror@gmx.de>
321 * gnu/java/net/protocol/jar/Handler.java
322 (): Removed unneeded check for file != null. java.net.URL.getFile()
323 returns an empty string but never null.
325 2004-02-20 Michael Koch <konqueror@gmx.de>
327 * gnu/gcj/convert/Convert.java
328 (main): Use equals() to compare strings.
330 2004-02-20 Michael Koch <konqueror@gmx.de>
332 * javax/swing/AbstractButton.java: Made several constants final.
333 (getRolloverSelectedIcon): Made public.
334 (getSelectedIcon): Made public.
336 2004-02-16 Per Bothner <per@bothner.com>
338 * java/nio/CharBufferImpl.java: Inline super constructor.
339 * java/nio/DoubleBufferImpl.java: Likewise.
340 * java/nio/FloatBufferImpl.java: Likewise.
341 * java/nio/IntBufferImpl.java: Likewise.
342 * java/nio/LongBufferImpl.java: Likewise.
343 * java/nio/ShortBufferImpl.java: Likewise.
344 * java/nio/CharBuffer.java: Remove unused constructor.
345 * java/nio/DoubleBuffer.java: Likewise.
346 * java/nio/FloatBuffer.java: Likewise.
347 * java/nio/IntBuffer.java: Likewise.
348 * java/nio/LongBuffer.java: Likewise.
349 * java/nio/ShortBuffer.java: Likewise.
350 * java/nio/CharViewBufferImpl.java: New convenience constructor.
351 Fix buggy call to super constructor.
352 * java/nio/DoubleViewBufferImpl.java: Likewise.
353 * java/nio/FloatViewBufferImpl.java: Likewise.
354 * java/nio/IntViewBufferImpl.java: Likewise.
355 * java/nio/LongViewBufferImpl.java: Likewise.
356 * java/nio/ShortViewBufferImpl.java: Likewise.
358 * java/nio/ByteBuffer.java (endian): Make non-private so other
359 java.nio classes can inherit it.
360 (<init>): Don't bother clearing array_offset.
361 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
362 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
363 Remove redundant test.
365 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
366 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
367 Use new XxxViewBufferImpl constructors.
368 * java/nio/MappedByteBufferImpl.java: Likewise.
369 * java/nio/DirectByteBufferImpl.java: Likewise.
371 * java/nio/ByteBufferImpl.java: Remove one constructor.
372 Inline super in remaining constructor.
373 * java/nio/ByteBuffer.java: Remove unused constructor.
375 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
377 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
378 * java/nio/DirectByteBufferImpl.java (owner): New field.
379 (offset): Remove unused field.
380 (<init>): Modify one and add another constructor. Change callers.
381 (allocateDirect): Removed - not used.
382 (getImpl, putImpl): Make static and pass address explicitly,
383 to make them useful for MappedByteBufferImpl.
384 (get, put): Check for underflow. Modify for new getImpl.
385 (getImpl): New native method where target is array.
386 (get(byte[],int,int)): Use the above.
387 (adjustAddress): New static native method.
388 (slice, duplicate, asReadOnly): New implementations.
389 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
390 adjustAddress): New or updated native methods.
392 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
394 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
395 overflow of fieldmapping.
397 2004-02-14 Sascha Brawer <brawer@dandelis.ch>
399 * javax/swing/undo/UndoManager.java: Re-written from scratch.
401 2004-02-14 Per Bothner <per@bothner.com>
403 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
404 Set closed before calling implCloseChannel, as in the spec.
406 2004-02-09 Graydon Hoare <graydon@redhat.com>
408 * javax/swing/ToggleButtonModel.java: Remove dead class.
409 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
410 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
411 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
412 * Makefile.am: Update for new and removed files.
413 * Makefile.in: Regenerate.
415 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
416 * javax/swing/AbstractButton.java
417 (AbstractButton): Initialize fields correctly in ctor.
418 * javax/swing/JCheckbox.java
419 (JCheckBox): Override painting flags.
420 * javax/swing/DefaultButtonModel.java: Conform to sun.
421 * javax/swing/JComponent.java (paint): Fill with background color
423 (processComponentKeyEvent)
426 (processMouseMotionEvent): Remove event-consuming empty methods.
427 (getUIClassID): Return "ComponentUI" not "JComponent"
428 * javax/swing/JFrame.java: Remove some debugging chatter.
429 (JFrame): Subscribe to window events.
430 * javax/swing/JRadioButton.java
431 (JRadioButton): Override painting flags.
432 * javax/swing/JRootPane.java
433 (JRootPane): Set background from UIDefaults.
434 * javax/swing/JToggleButton.java
435 (ToggleButtonModel): New inner class.
436 (JToggleButton): Override layout alighment.
437 * javax/swing/SwingUtilities.java:
438 (getLocalBounds): Return width and height, not x and y.
439 (calculateInnerArea): Use local bounds, not bounds.
440 (layoutCompoundLabel): Provide overridden form.
441 (layoutCompoundLabel): Correct bugs.
442 * javax/swing/UIDefaults.java: Correct comment.
443 * javax/swing/plaf/basic/BasicButtonUI.java:
444 Move most logic into defaults, external listener.
445 (paintIcon): Implement icon painting.
446 (paint): Fix state painting to conform to changes in model.
447 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
448 Remove most dead/wrong methods.
449 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
450 * javax/swing/plaf/basic/BasicIconFactory.java:
451 (DummyIcon): New class.
452 (getMenuItemCheckIcon)
453 (getMenuItemArrowIcon)
455 (getCheckBoxMenuItemIcon)
456 (getRadioButtonMenuItemIcon)
457 (createEmptyFrameIcon): Return DummyIcons, not null.
458 (getCheckBoxIcon): Implement an icon that looks like sun's.
459 (getRadioButtonIcon): Implement an icon that looks like sun's.
460 * javax/swing/plaf/basic/BasicLookAndFeel.java
461 (initComponentDefaults): Fix impossible values, add some missing.
462 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
463 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
464 Remove most dead/wrong methods.
466 (getDefaultIcon): New method.
467 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
468 Remove most dead/wrong methods.
469 * javax/swing/plaf/metal/MetalLookAndFeel.java
470 (getDefaults): Return super.getDefaults(), not BasicDefaults.
471 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
472 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
473 Implement "clearing" as drawing, when on pixmap drawables.
475 * javax/swing/JButton.java (getUIClassID):
476 * javax/swing/JCheckBox.java (getUIClassID):
477 * javax/swing/JEditorPane.java (getUIClassID):
478 * javax/swing/JLabel.java (getUIClassID):
479 * javax/swing/JList.java (getUIClassID):
480 * javax/swing/JOptionPane.java (getUIClassID):
481 * javax/swing/JPanel.java (getUIClassID):
482 * javax/swing/JPasswordField.java (uiClassID):
483 * javax/swing/JRadioButton.java (getUIClassID):
484 * javax/swing/JRootPane.java (getUIClassID):
485 * javax/swing/JScrollPane.java (getUIClassID):
486 * javax/swing/JTabbedPane.java (getUIClassID):
487 * javax/swing/JToggleButton.java (getUIClassID):
488 * javax/swing/JTree.java (getUIClassID):
489 * javax/swing/JViewport.java (getUIClassID):
490 * javax/swing/text/JTextComponent.java (getUIClassID):
491 Return "fooUI" not "Jfoo"
493 2004-02-11 Michael Koch <konqueror@gmx.de>
495 * java/net/DatagramSocket.java
496 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
498 (setBroadcast): Likewise.
499 * java/net/MulticastSocket.java
500 (setLoopbackMode): Likewise.
501 * java/net/ServerSocket.java
502 (setReuseAddress): Likewise.
503 * java/net/Socket.java
504 (setTcpNoDelay): Likewise.
505 (setSoLinger): Likewise.
506 (setOOBInline): Likewise.
507 (setKeepAlive): Likewise.
508 (setReuseAddress): Likewise.
509 * java/net/URLConnection.java
510 (setContentHandler): Replace == with equals().
511 * java/net/URLStreamHandler.java
512 (hostSEquals): Fix checking host addresses.
513 (toExternalForm): Dont check protocol for null. We know already its
516 2004-02-10 David Jee <djee@redhat.com>
518 * java/awt/BorderLayout.java
519 (calcCompSize): Invisible components get zero dimensions.
520 * java/awt/Button.java
521 (setLabel): Set actionCommand.
522 * java/awt/Component.java
523 (show): Invalidate component and parent container.
526 2004-02-10 David Jee <djee@redhat.com>
528 * java/awt/GridBagLayout.java
529 (GridBagLayout): New private field, internalcomptable.
530 (lookupInternalConstraints): New method.
531 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
532 (GetLayoutInfo): Reimplement.
533 (calcCellSizes): Ignore rows/columns with size 0.
535 2004-02-10 Michael Koch <konqueror@gmx.de>
537 * gnu/java/awt/EmbeddedWindow.java
538 (setHandle): Use java.awt.Component.getPeer() instead of
539 java.awt.Component.peer directly.
541 2004-02-10 David Jee <djee@redhat.com>
543 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
544 (gtkSetLabel): New native method definition.
545 (setLabel): Use gtkSetLabel.
546 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
547 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
549 2004-02-10 Alan Modra <amodra@bigpond.net.au>
551 * include/powerpc-signal.h: Revert 2004-01-21 change.
552 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
553 from syscall for ppc32 versions.
555 2004-02-08 Per Bothner <per@bothner.com>
557 * java/nio/ByteBuffer.java (shiftDown): New helper method.
558 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
559 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
560 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
561 Pass ByteOrder parameter to most methods, since the underlying
562 ByteBuffer's order isn't always what we should use.
563 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
564 * java/nio/DirectByteBufferImpl.java: Likewise.
565 Use ByteBufferHelper methods.
566 * java/nio/MappedByteBufferImpl.java: Likewise.
567 (compact): Use shiftDown.
568 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
569 (get, put): Use ByteBufferHelper.
570 (compact): Use new shiftDown method.
571 (duplicate(boolean)): New helper method.
572 (duplicate, asReadOnlyBuffer): Use it.
573 (order): Return endian field.
574 * java/nio/DoubleViewBufferImpl.java: Likewise.
575 * java/nio/FloatViewBufferImpl.java: Likewise.
576 * java/nio/IntViewBufferImpl.java: Likewise.
577 * java/nio/LongViewBufferImpl.java: Likewise.
578 * java/nio/ShortViewBufferImpl.java: Likewise.
579 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
580 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
581 (compact): Re-implement using shiftDown.
583 2004-02-08 Andreas Jaeger <aj@suse.de>
585 * include/x86_64-signal.h: Fix typo.
587 2004-02-08 Diego Novillo <dnovillo@redhat.com>
589 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
591 (HANDLE_DIVIDE_OVERFLOW): Likewise.
593 2004-02-06 Michael Koch <konqueror@gmx.de>
595 * java/io/ObjectInputStream.java
596 (currentClassLoader): Reverted to old version of this method.
598 2004-02-06 Jeroen Frijters <jeroen@frijters.net>
600 * java/io/ObjectInputStream.java: Made all calls
601 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
602 use cached info from ObjectStreamClass. (readClassDescriptor):
603 Cache more information in ObjectStreamClass. (processResolution,
604 readFields): Use cached info from ObjectStreamClass.
605 (newObject): Throw exception instead of returning null for failure.
606 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
607 setCharField, setDoubleField, setFloatField, setIntField,
608 setLongField, setShortField, setObjectField, readObjectParams):
609 Removed. (dumpElement, dumpElementln): Removed dump flag condition
611 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
612 (setClass): Added call to cacheMethods() (findMethod): New method.
613 (cacheMethods): New method. (ObjectStreamClass): Added call to
614 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
615 AccessController.doPrivileged to invoke setAccessible.
616 (readObjectMethod, readResolveMethod, realClassIsSerializable,
617 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
619 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
620 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
621 isPrimitive): Made safe for cases where type == null.
622 (setBooleanField, setByteField, setCharField, setShortField,
623 setIntField, setLongField, setFloatField, setDoubleField,
624 setObjectField): New methods.
626 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
628 * java/awt/Component.java (getFont): Return a default font
631 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
632 (Scrollbar (int, int, int, int, int)): Make default page
634 (setValues): Only call peer.setValues if one of the values has
636 (generateName): New method.
637 (getUniqueLong): New method.
638 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
639 (range_scrollbar): Remove structure.
640 (post_adjustment_event): Remove function.
641 (post_change_event): Accept jobject argument.
642 (create): Cast jints to gdoubles. Round scrollbar values to the
643 nearest integer. Clamp min, max and value settings.
644 (connectJObject): Connect hook to widget->window.
645 (connectSignals): Remove range_scrollbar structure variables.
646 Remove "move-slider" connection. Pass global peer reference to
647 "value-changed" callback.
648 (setLineIncrement): Cast jint value to gdouble.
649 (setPageIncrement): Likewise.
650 (setValues): Likewise. Clamp min, max and value settings.
652 2004-02-05 Michael Koch <konqueror@gmx.de>
654 * javax/swing/AbstractCellEditor.java
655 (getCellEditorValue): Removed.
656 * javax/swing/Box.java: Reformated.
657 (serialVersionUID): New field.
658 * javax/swing/ButtonGroup.java:
659 Removed some weird whitespace.
660 * javax/swing/CellEditor.java: Reformated.
661 * javax/swing/CellRendererPane.java
662 (serialVersionUID): New field.
663 (AccessibleCellRendererPaneserialVersionUID): New field.
664 * javax/swing/DefaultListModel.java
665 (serialVersionUID): New field.
666 * javax/swing/JEditorPane.java
667 (serialVersionUID): New field.
668 (setPage): Throws IOException.
669 (addHyperlinkListener): Implemented.
670 (removeHyperlinkListener): Implemented.
671 (getHyperlinkListener): New method.
672 * javax/swing/JFileChooser.java
673 (serialVersionUID): New field.
674 (AccessibleJFileChooser.serialVersionUID): New field.
675 (addActionListener): Implemented.
676 (removeActionListener): Implemented.
677 (getActionListeners): New method.
678 * javax/swing/JFormattedTextField.java
679 (serialVersionUID): New field.
680 (AbstractFormatter.serialVersionUID): New field.
681 (clone): Throws CloneNotSupportedException
682 (setEditValid): Add missing argument.
683 (stringToValue): Throws ParseExcpetion.
684 (valueToString): Throws ParseException.
685 (commitEdit): Throws ParseException.
686 * javax/swing/JLabel.java
687 (serialVersionUID): New field.
688 * javax/swing/JList.java
689 (serialVersionUID): New field.
690 (addListSelectionListener): Reformated.
691 (removeListSelectionListener): Reformated.
692 (getListSelectionListeners): New method.
693 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
695 (serialVersionUID): New field.
696 * javax/swing/table/AbstractTableModel.java
697 (getValueAt): Removed.
698 (getColumnCount): Removed.
699 (getRowCount): Removed.
701 2004-02-05 Michael Koch <konqueror@gmx.de>
703 * java/awt/datatransfer/DataFlavor.java
704 (imageFlavor): Javadoc added.
705 (javaJVMLocalObjectType): Fixed.
707 2004-02-05 Michael Koch <konqueror@gmx.de>
709 * java/lang/Thread.java
711 (setContextClassLoader): Fixed javadoc comment.
712 (setPriority): Reordered.
714 (initialize_native): Reordered.
715 (gen_name): Reordered.
717 2004-02-05 Michael Koch <konqueror@gmx.de>
719 * java/lang/Thread.java: Reordered fields, reformated much code,
720 no functional changes, some variables renamed, javadoc comments
723 2004-02-05 Michael Koch <konqueror@gmx.de>
725 * java/util/zip/Deflater.java,
726 java/util/zip/DeflaterOutputStream.java,
727 java/util/zip/GZIPInputStream.java:
728 Reformated and javadoc comments merged from classpath.
730 2004-02-05 Michael Koch <konqueror@gmx.de>
732 * gnu/java/nio/NIOServerSocket.java
733 (impl): Unused, removed.
734 * gnu/java/nio/SocketChannelImpl.java
735 (finnishConnect): Don't throw NoConnectionPendingException if not
736 connected or no connection pending.
738 2004-02-02 Graydon Hoare <graydon@redhat.com>
740 * javax/swing/SwingUtilities.java: Many new functions.
741 * java/awt/Container.java (LightweightDispatcher): Reimplement.
742 * javax/swing/basic/BasicGraphicsUtils.java
743 (getPreferredButtonSize): Start layout from top-left corner.
745 2004-02-04 Olga Rodimina <rodimina@redhat.com>
747 * java/awt/geom/AffineTransform.java:
748 Corrected comments on the field definitions for
750 (shear): Fixed few errors that caused shear
751 transformation to be performed incorrectly.
752 (createInverse): Fixed to return correct
753 inverse of the given matrix.
755 2004-02-03 Tom Tromey <tromey@redhat.com>
757 * java/lang/natPosixProcess.cc (startProcess): Handle case where
758 PATH or LD_LIBRARY_PATH is not set in parent environment.
760 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
762 * gnu/java/awt/peer/gtk/GtkListPeer.java,
763 java/awt/BorderLayout.java, java/awt/CardLayout.java,
764 java/awt/CheckboxGroup.java, java/awt/Choice.java,
765 java/awt/Component.java, java/awt/Container.java,
766 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
767 java/awt/LayoutManager2.java, java/awt/List.java,
768 java/awt/Menu.java, java/awt/MenuBar.java,
769 java/awt/MenuItem.java, java/awt/Polygon.java,
770 java/awt/Rectangle.java, java/awt/ScrollPane.java,
771 java/awt/Scrollbar.java, java/awt/TextArea.java,
772 java/awt/TextField.java,
773 java/awt/image/renderable/RenderContext.java,
774 javax/swing/JApplet.java: Fix handling of alias methods, where a
775 method has been deprecated in favour of a new one with the same
776 funtion but a different name. Put the method implementation in
777 the deprecated method and have the new method call the
778 deprecated one. Make all other code call the new method.
780 2004-02-03 Mohan Embar <gnustuff@thisiscool.com>
782 * gnu/java/nio/DatagramChannelImpl.java
783 (inChannelOperation): New field.
784 (isInChannelOperation): New accessor.
785 (setInChannelOperation): New modifier.
786 (receive): Use capacity() - position() of destination
787 buffer instead of remaining(). Set and reset our "in
788 channel operation indicator" before and after delegating
789 the receive to our datagram socket. Removed testing code.
790 Update destination buffer's current position if it is
791 backed by a byte array (hasArray() is true).
792 (send): Set and reset our "in channel operation indicator"
793 before and after delegating the send to our datagram socket.
794 Removed testing code. Update source buffer's current position
795 if it is backed by a byte array (hasArray() is true).
796 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
797 Use capacity() - position() of destination buffer instead
799 * java/net/DatagramSocket.java (receive): Don't throw an
800 IllegalBlockingModeException if we have a non-blocking
801 channel which initiated this operation.
804 2004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
806 * configure.in: Add pkgconfig check for glib and gthread.
807 * configure: Regenerate.
809 2004-02-01 Michael Koch <konqueror@gmx.de>
811 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
813 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
814 * verify.cc (debug_print): Mark 'fmt' unused.
816 2004-01-30 Michael Koch <konqueror@gmx.de>
818 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
819 * configure: Regenerated.
820 * glib-2.0.m4: Removed.
821 * gtk-2.0.m4: Removed.
822 * libart.m4: Removed.
825 2004-01-30 Mohan Embar <gnustuff@thisiscool.com>
827 * gnu/java/net/PlainSocketImpl.java
828 (inChannelOperation): New field.
829 (isInChannelOperation): New accessor.
830 (setInChannelOperation): New modifier.
831 * gnu/java/nio/ServerSocketChannelImpl.java
832 (accept): Set and reset our server socket's PlainSocketImpl's
833 "in channel operation" indicator before and after delegating
834 the accept to our server socket.
835 * gnu/java/nio/SocketChannelImpl.java
836 (connect): Set and reset our socket's PlainSocketImpl's "in channel
837 operation" indicator before and after delegating the operation to
841 * java/net/ServerSocket.java (implAccept): Don't throw an
842 IllegalBlockingModeException if we have a non-blocking
843 channel which initiated this accept operation.
844 * java/net/Socket.java (connect): Don't throw an
845 IllegalBlockingModeException if we have a non-blocking
846 channel which initiated this connect operation.
847 * java/nio/channels/spi/AbstractSelectableChannel.java
848 (configureBlocking): Only call implConfigureBlocking() if
849 the desired blocking mode is different from our current one.
851 2004-01-29 Mohan Embar <gnustuff@thisiscool.com>
853 * java/io/BufferedReader.java (sbuf): New field.
854 (readLine): Use String.valueOf instead of new String() as per
855 Per Bothner's suggestion. Use instance sbuf field instead of a
856 local StringBuffer instance.
857 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
858 caller's buffer to refill().
859 (read(void)): Pass our internal work buffer to refill if our
860 input queue is empty.
861 (refill): Changed return type to int. Use the specified buffer
862 instead of our work buffer as per Bryce McKinlay's suggestion.
863 Return the number of characters read or -1 for EOF.
865 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
867 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
869 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
871 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
872 * Makefile.in: Re-generated.
873 * gnu/awt/xlib/XFontPeer.java: New file.
874 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
875 (setClip): Commented out debug printout.
876 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
877 (getFontPeer): Return XFontPeer.
878 (getLocalGraphicsEnvironment): New method.
879 (getClasspathFontPeer): New method.
880 (createFont): New method.
882 2004-01-29 Scott Gilbertson <scottg@mantatest.com>
884 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
887 2004-01-29 Kim Ho <kho@redhat.com>
889 * gnu/java/awt/peer/gtk/GtkFramePeer.java
890 (gtkLayoutSetVisible): New method
891 (setMenuBar): Hide layout before setting MenuBar
893 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
894 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
896 2004-01-28 Michael Koch <konqueror@gmx.de>
898 * gnu/java/lang/ClassHelper.java
899 (getPackagePortion): Removed.
901 2004-01-28 Michael Koch <konqueror@gmx.de>
903 * javax/swing/JComponent.java
904 (listenerList): Initalize globally.
905 (ancestor_list): Removed.
906 (veto_list): Removed.
907 (change_list): Removed.
908 (get_veto_list): Removed.
909 (get_change_list): Removed.
910 (get_ancestor_list): Removed.
911 (removeAncestorListener): Reimplemented.
912 (removePropertyChangeListener): Likewise.
913 (removeVetoableChangeListener): Likewise.
914 (addAncestorListener): Likewise.
915 (addPropertyChangeListener): Likewise.
916 (addVetoableChangeListener): Likewise.
917 (getListeners): New method.
918 (getAncestorListeners): Likewise.
919 (getVetoableChangeListeners): Likewise.
920 (fireVetoableChange): Throws PropertyVetoException.
921 * javax/swing/JEditorPane.java
922 (JEditorPane): Throws IOException.
924 2004-01-28 David Jee <djee@redhat.com>
926 * gnu/java/awt/peer/gtk/GtkFramePeer.java
927 (create): Set the default foreground color to
928 java.awt.SystemColor.windowText.
930 2004-01-27 Michael Koch <konqueror@gmx.de>
932 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
933 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
934 Reindented to merge with classpath.
936 2004-01-27 David Jee <djee@redhat.com>
938 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
939 (addExposeFilter): Handle GtkFramePeer separately.
940 (removeExposeFilter): Likewise.
942 2004-01-27 Michael Koch <konqueror@gmx.de>
944 * gnu/java/net/protocol/http/Connection.java
945 (getOutputStream): Fixed typo.
947 2004-01-27 Michael Koch <konqueror@gmx.de>
949 * java/lang/Class.java
950 (getConstructor): Removed SecurityException from throws clause.
951 (_getConstructors): Likewise.
952 (getConstructors): Likewise.
953 (getDeclaredConstructor): Likewise.
954 (getDeclaredClasses): Likewise.
955 (getDeclaredConstructors): Likewise.
956 (getDeclaredField): Likewise.
957 (getDeclaredMethod): Likewise.
958 (getDeclaredMethods): Likewise.
959 (getField): Likewise.
960 (getMethod): Likewise.
961 (getMethods): Likewise.
963 2004-01-27 Kim Ho <kho@redhat.com>
965 * gnu/java/awt/peer/gtk/GtkFramePeer.java
966 (removeMenuBarPeer): Remove MenuBarPeer argument.
967 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
968 (dispose): Call native method.
969 * java/awt/Frame.java (setMenuBar): Create and remove
970 MenuBar peers only if the Frame has a peer.
971 (addNotify): Create the MenuBar peer if one exists.
972 (removeNotify): Remove MenuBar peer if one exists.
973 * java/awt/Menu.java: Fix imports.
974 (addNotify): Don't use full class name.
975 (removeNotify): Call removeNotify on all children.
976 * java/awt/MenuBar.java (removeNotify): Call
977 removeNotify on all children.
978 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
979 (removeMenuBarPeer): Remove MenuBarPeer argument.
980 Iterate through children to find the Frame's MenuBar.
981 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
983 (dispose): Remove references to the MenuComponent.
985 2004-01-27 Michael Koch <konqueror@gmx.de>
987 * javax/swing/AbstractCellEditor.java: Reformated.
988 * javax/swing/DefaultListSelectionModel.java
989 (listenerList): Made protected.
990 (addListSelectionListener): Javadoc added.
991 (removeListSelectionListener): Likewise.
992 (getListeners): Likewise.
993 (getListSelectionListeners): Likewise.
994 * javax/swing/JComboBox.java: Merged copyright year.
995 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
997 2004-01-26 Andrew Haley <aph@redhat.com>
999 * javax/swing/table/JTableHeader.java: Extend JComponent
1001 2004-01-26 Kim Ho <kho@redhat.com>
1003 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
1006 2004-01-26 Kim Ho <kho@redhat.com>
1008 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
1010 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
1011 height and let the Layout Managers readjust anything that
1013 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1014 (moveLayout): New method. Shift everything in the Gtk
1015 layout in the Y direction by an offset.
1017 2004-01-26 David Jee <djee@redhat.com>
1019 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1020 (handleEvent): Implemented. Handles PaintEvents.
1021 (paint): Implemented. Use GTK native methods to queue updates
1022 for this heavyweight peer.
1023 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1024 (handleEvent): Removed.
1025 * java/awt/Component.java
1026 (paint): Implemented. Explictly paint the heavyweight peer.
1027 (update): Clear the background for heavyweight components.
1028 (paintAll): No need to call peer.paint() anymore.
1029 (processEvent): Don't process PaintEvents here. It's now done in
1030 the peer's handleEvent().
1031 (processPaintEvent): Removed.
1032 * java/awt/Container.java
1033 (paint): No need to call super.paint(). Visit heavyweight
1035 (update): Don't clear the background here. It's done in
1037 (visitChildren): Added check to not recurse into Containers.
1038 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1039 (filter_expose_event_handler): New method. Filter unwanted
1040 expose events while painting heavyweight peers.
1041 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1042 New method. Connect filter and block pre_event_handler.
1043 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1044 New method. Disconnect filter and unblock pre_event_handler.
1045 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
1046 New method. Invalidate and update given area.
1047 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1048 (pre_event_handler): Add checks for unwanted expose events.
1050 2004-01-26 David Jee <djee@redhat.com>
1052 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1053 (find_bg_color_widget): For GtkButton, return its child.
1055 2004-01-26 Kim Ho <kho@redhat.com>
1057 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
1059 (setMenuBar): Grab MenuBar height and change insets.
1060 (setBounds): Account for MenuBar height.
1061 (postInsetsChangedEvent): Ditto.
1062 (postSizeAllocateEvent): Remove.
1063 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1064 (menubar_resize_cb): Remove
1065 (setMenuBarPeer): Remove callback.
1066 (getMenuBarHeight): Use size requisition instead of
1069 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
1071 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
1072 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
1074 (setColumns): Remove FIXME -- peer will retrieve number of
1075 columns by calling getColumns.
1076 (setRows): Likewise for number of rows.
1077 (next_text_number): New field.
1078 (paramString): Fix param string.
1079 (generateName): New method.
1080 (getUniqueLong): New method.
1082 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
1084 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
1085 image observer of image loading status.
1086 (getImage (String)): Start image production.
1087 (getImage (URL)): Likewise.
1089 2004-01-25 Michael Koch <konqueror@gmx.de>
1091 * java/lang/Class.java: Imports reworked, reformated.
1092 (Class): Javadoc added.
1093 (forName): Likewise.
1094 (getClasses): Likewise.
1095 (getClassLoader): Likewise.
1096 (getComponentType): Likewise.
1097 (getConstructor): Likewise.
1098 (getConstructors): Likewise.
1099 (getDeclaredConstructor): Likewise.
1100 (getDeclaredClasses): Likewise.
1101 (getDeclaredConstructors): Likewise.
1102 (getDeclaredField): Likewise.
1103 (getDeclaredMethod): Likewise.
1104 (getDeclaredMethods): Likewise.
1105 (getDeclaringClass): Likewise.
1106 (getField): Likewise.
1107 (getInterfaces): Likewise.
1108 (getMethod): Likewise.
1109 (getMethods): Likewise.
1110 (getModifiers): Likewise.
1111 (getName): Likewise.
1112 (getResource): Likewise.
1113 (getResourceAsStream): Likewise.
1114 (getSigners): Likewise.
1115 (setSigners): Likewise.
1116 (getSuperclass): Likewise.
1117 (isArray): Likewise.
1118 (isAssignableFrom): Likewise.
1119 (isInstance): Likewise.
1120 (isInterface): Likewise.
1121 (isPrimitive): Likewise.
1122 (newInstance): Likewise.
1123 (getProtectionDomain): Likewise.
1124 (toString): Likewise.
1126 (initializeClass): Likewise.
1127 (finalize): Likewise.
1129 2004-01-24 Michael Koch <konqueror@gmx.de>
1131 * gnu/java/net/protocol/jar/Connection.java
1134 (gotHeaders): Removed.
1135 (getHeaderField): Removed.
1136 (getHeaderFields): Removed.
1137 (getHeaderFieldKey): Removed.
1139 (getField): Removed.
1140 (getHeaders): Removed.
1142 2004-01-24 Michael Koch <konqueror@gmx.de>
1144 * Makefile.am: Added library version to gtk peer lib.
1145 * Makefile.in: Regenerated.
1147 2004-01-24 Michael Koch <konqueror@gmx.de>
1149 * java/util/zip/InflaterInputStream.java: Merged class documentation
1152 2004-01-21 Jakub Jelinek <jakub@redhat.com>
1154 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
1155 header. For __powerpc64__ provide the default-signal.h definitions
1157 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
1158 instead of the dummy definitions.
1159 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
1160 (powerpc64*-*): Remove with_libffi_default.
1161 Only add -mminimal-toc for 64-bit compilations.
1162 * configure.in: Use powerpc-signal.h on powerpc64 as well.
1163 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
1164 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
1165 * configure: Rebuilt.
1167 2004-01-23 Michael Koch <konqueror@gmx.de>
1169 * gnu/java/nio/FileLockImpl.java: Compile fixes.
1171 2004-01-23 Michael Koch <konqueror@gmx.de>
1173 * java/lang/VMClassLoader.java: Reworked imports.
1175 2004-01-23 Michael Koch <konqueror@gmx.de>
1177 * javax/swing/AbstractAction.java: Reformated.
1179 2004-01-23 Michael Koch <konqueror@gmx.de>
1181 * java/text/CollationElementIterator.java:
1182 (setText): New method.
1184 2004-01-23 Michael Koch <konqueror@gmx.de>
1186 * gnu/java/nio/FileLockImpl.java:
1187 Fixed filename in copyright.
1188 (released): Removed.
1189 (finalize): New method.
1190 * gnu/java/nio/natFileLockImpl.cc
1191 (releaseImpl): Implemented.
1192 * java/nio/channels/FileChannelImpl.java:
1194 (lock): Implemented.
1195 (lockImpl): New method.
1196 (tryLock): Implemented.
1197 (tryLockImpl): New method.
1198 * java/nio/channels/natFileChannelImpl.cc
1199 (lockImpl): New method.
1200 (tryLockImpl): New method.
1202 2004-01-23 Michael Koch <konqueror@gmx.de>
1204 * java/io/FileDescriptor.java
1206 (tryLock): New method.
1207 (unlock): New method.
1208 * java/io/natFileDescriptorEcos.cc
1210 (tryLock): New method.
1211 (unlock): New method.
1212 * java/io/natFileDescriptorPosix.cc
1214 (tryLock): New method.
1215 (unlock): New method.
1216 * java/io/natFileDescriptorWin32.cc
1218 (tryLock): New method.
1219 (unlock): New method.
1221 2004-01-23 Michael Koch <konqueror@gmx.de>
1223 * java/io/FileDescriptor.java
1224 (sync): Moved around, added javadoc.
1229 (setLength): Likewise.
1231 (getLength): Likewise.
1232 (getFilePointer): Likewise.
1234 (available): Likewise.
1235 (finalize): Likewise.
1237 2004-01-23 Michael Koch <konqueror@gmx.de>
1239 * javax/swing/AbstractAction.java: Reformated.
1240 (getPropertyChangeListeners): New method.
1241 * javax/swing/AbstractCellEditor.java: Reformated.
1242 (getCellEditorListeners): New method.
1243 * javax/swing/DefaultListSelectionModel.java
1244 (listenerList): New field.
1245 (listeners): Removed.
1246 (get_listeners): Removed.
1247 (addListSelectionListener): Rewritten.
1248 (removeListSelectionListener): Rewritten.
1249 (getListSelectionListeners): New method.
1250 (getListeners): New method.
1251 * javax/swing/JComboBox.java: Imports reworked.
1252 (addActionListener): Implemented.
1253 (removeActionListener): Implemented.
1254 (addItemListener): Implemented.
1255 (removeItemListener): Implemented.
1256 (addPopupMenuListener): Implemented.
1257 (removePopupMenuListener): Implemented.
1258 (getActionListeners): New method.
1259 (getItemListeners): New method.
1260 (getPopupMenuListeners): New method.
1262 2004-01-23 Michael Koch <konqueror@gmx.de>
1264 * gnu/java/net/protocol/http/Connection.java
1265 (connect): Don't initialize bufferedOutputStream if not needed.
1266 (sendRequest): Set property for content length if content is present.
1267 Write content only if present.
1268 (getOutputStream): Check if already connected, dont connect,
1269 initalize bufferedOutputStream if needed.
1271 2004-01-23 Michael Koch <konqueror@gmx.de>
1273 * java/io/FileDescriptor.java
1274 (in, out, err): Added javadoc.
1275 (static): Merged loading code.
1276 (fd, position): Moved around.
1278 2004-01-23 Michael Koch <konqueror@gmx.de>
1280 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
1283 2004-01-23 Michael Koch <konqueror@gmx.de>
1285 * java/lang/Class.java,
1286 java/lang/Object.java,
1287 java/lang/Thread.java: Merged copyright with classpath.
1289 2004-01-23 Michael Koch <konqueror@gmx.de>
1291 * java/io/FileDescriptor.java: Merged copyright with classpath to
1292 start merging this class.
1294 2004-01-22 Tom Tromey <tromey@redhat.com>
1297 * testsuite/libjava.lang/pr13107_2.xfail: New file.
1298 * testsuite/libjava.lang/pr13107_3.xfail: New file.
1299 * testsuite/libjava.lang/pr13107_3.java: New file.
1300 * testsuite/libjava.lang/pr13107_3.out: New file.
1301 * testsuite/libjava.lang/pr13107_2.java: New file.
1302 * testsuite/libjava.lang/pr13107_2.out: New file.
1303 * testsuite/libjava.lang/pr13107.java: New file.
1304 * testsuite/libjava.lang/pr13107.out: New file.
1305 * verify.cc (jsr_ptrs): Removed.
1306 (entry_points): Likewise.
1307 (struct subr_info): Likewise.
1308 (struct subr_entry_info): Likewise.
1309 (type_val::unused_by_subroutine_type): Likewise.
1310 (type::merge): Don't handle unused_by_subroutine_type.
1311 (type::print): Likewise.
1312 (state::flags): Removed.
1313 (state::subroutine): Likewise.
1314 (state::seen_subrs): Likewise.
1315 (state::NO_STACK): Likewise.
1316 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
1317 (state): Updated all methods.
1318 (state::clean_subrs): Removed.
1319 (state::state): Removed `ret_semantics' flag.
1320 (state::copy): Likewise.
1321 (state::add_subr): Removed.
1322 (state::enter_subroutine): Likewise.
1323 (type::set_return_address): New method.
1324 (handle_jsr_insn): Set return address on the type. Always
1325 invalidate PC after call.
1326 (check_nonrecursive_call): Removed.
1327 (~_Jv_BytecodeVerifier): Updated.
1328 (branch_prepass): Removed special handling of jsr.
1329 (note_branch_target): Likewise.
1330 (get_subroutine): Removed.
1331 (state::merge): Don't merge subroutines and don't handle
1332 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
1333 (state::note_variable): Removed.
1334 (state::is_unmerged_ret_state): Likewise.
1335 (state::print): Updated.
1336 (set_variable): Likewise.
1337 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
1338 and jsr_semantics arguments. Updated for new reverification
1340 (pop_jump): Rewrote.
1341 (construct_primitive_array_type): Updated.
1342 (state::next): Removed.
1343 (INVALID_STATE): New define.
1344 (state::INVALID): Removed.
1345 (state::NO_NEXT): New value.
1346 (state::pc, state::next): New fields.
1347 (state::get_pc): New method.
1348 (next_verify_pc): Removed.
1349 (next_verify_state): New field.
1350 (verify_instructions_0): Always check for falling off end.
1352 (linked_utf8): Removed.
1353 (states): Changed type.
1354 (type::state_mergeable_p): New method.
1355 (state::state_mergeable_p): Likewise.
1356 (handle_ret_insn): Removed most code.
1357 (state::reverify): New method.
1358 (add_new_state): Likewise.
1359 (state::set_pc): Likewise.
1361 2004-01-22 Jeff Sturm <jsturm@one-point.com>
1364 * testsuite/libjava.compile/PR13733.java: New file.
1365 * testsuite/libjava.compile/PR13733.xfail: New file.
1367 2004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
1368 Michael Koch <konqueror@gmx.de>
1370 * javax/swing/table/DefaultTableCellRenderer.java
1371 (DefaultTableCellRenderer): Added javadoc for the class and for
1372 the constructor, Border instance, create an EmptyBorder.
1373 (UIResource): Removed the comment at the end of the class
1374 (setForeground): New method.
1375 (setBackground): New method.
1376 (updateUI): New method.
1377 (getTableCellRendererComponent): Rewritten with the help of
1378 dvholten and Stephane Meslin-Weber.
1379 (validate): New method.
1380 (repaint): New method.
1381 (firePropertyChange): New method.
1382 (setValue): New method.
1384 2004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
1386 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1387 (connectJObject): Replace printf calls with g_assert statements.
1388 Move property-notify-event signal connection to ...
1389 (connectSignals): Connect property-notify-event signal. Iterate
1390 through the vbox's children to find layout.
1392 2004-01-22 Graydon Hoare <graydon@redhat.com>
1394 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
1395 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
1396 Predicate static initialization on GtkToolkit.useGraphics2D().
1397 * java/awt/Component.java (processPaintEvent): Consume event.
1398 * javax/swing/AbstractButton.java: Reimplement, document.
1399 * javax/swing/DefaultButtonModel.java: Reimplement, document.
1400 * javax/swing/JComponent.java (paint): Use double buffer.
1401 (listenerList): Enable member.
1402 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
1403 * javax/swing/JToggleButton.java
1404 (JToggleButton): Modify model constructor.
1405 * javax/swing/SwingUtilities.java
1406 (layoutCompoundLabel): Adjust arithmetic.
1407 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
1408 * javax/swing/plaf/basic/BasicGraphicsUtils.java
1409 (getPreferredButtonSize): Include margins in calculation.
1410 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1411 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
1412 Receive up events from subordinate layout component.
1414 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1416 * java/awt/Component.java (show): Set visible to true before
1419 2004-01-21 Kim Ho <kho@redhat.com>
1421 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
1423 (removeMenuBarPeer): Make package private.
1424 (setMenuBarPeer): Make package private.
1425 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1426 (menubar_resize_cb): Mark attributes unused.
1427 (getMenuBarHeight): ditto.
1429 2004-01-21 David Jee <djee@redhat.com>
1431 * java/awt/Container.java
1432 (LightweightDispatcher.handleEvent): Add an extra check to avoid
1433 dispatching MOUSE_ENTERED event twice. Translate the point for
1434 the mouse event target before dispatching the event.
1436 2004-01-20 Jakub Jelinek <jakub@redhat.com>
1438 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
1439 lib_org_w3c_dom_la_LDFLAGS): New.
1440 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
1441 * Makefile.in: Rebuilt.
1443 2004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
1445 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
1446 Calculate proper offsets for heavyweight components packed in
1447 lightweight containers.
1449 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1450 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1451 (native create): Add width parameter.
1452 (create): Calculate text entry width based on current font's
1453 metrics and number of columns. Set TextField's font if not
1454 already set. Call native create.
1455 (gtkEntryGetBorderWidth): New native method.
1456 (gtkEntryGetSize): Remove method.
1457 (getMinimumSize): Call minimumSize.
1458 (getPreferredSize): Call preferredSize.
1459 (minimumSize): Calculate minimum size based on backing
1460 GtkEntry's borders, font metrics and number of columns.
1461 (preferredSize): Likewise for preferred size.
1462 (get_border_width): New static function.
1464 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1465 Override GtkWindowPeer's setResizable method to account for menu
1466 bar height when setting the frame's size.
1468 2004-01-19 Matthias Klose <doko@debian.org>
1470 * libtool-version: Increased `current' to 6.
1472 2004-01-19 Kim Ho <kho@redhat.com>
1474 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1475 (connectJObject): Iterate through the vbox's children to find layout.
1477 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1479 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
1480 isDispatchThread method to replace wrong test condition.
1482 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1484 * java/awt/EventQueue.java (pop): Prevent racing condition to add
1485 events to the queue out of order by acquiring locks in the proper
1486 order and not by releasing one before acquiring the other.
1488 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1490 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
1491 visible so that dialog can be reused.
1493 2004-01-19 Fernando Nasser <fnasser@redhat.com>
1495 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
1496 events may be handled by any queue in the stack.
1498 2004-01-19 Kim Ho <kho@redhat.com>
1500 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
1501 MenuBarPeer parameter.
1502 (removeMenuBarPeer): New native method.
1503 (setMenuBar): Call remove if menu bar is null. Adjust insets
1505 (postSizeAllocateEvent): New method. Called when menu bar size is
1506 allocated. Adjust insets and redo layout.
1507 (GtkFramePeer): Set menu bar during frame creation.
1508 (postConfigureEvent): Adjust position and size to accomodate
1510 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
1511 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
1512 (addNotify): Create the peer if it doesn't exist and call addNotify
1513 for the menu's items.
1514 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
1515 * java/awt/MenuItem.java (addNotify): Create the peer if it
1517 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1518 (removeMenuBarPeer): New method. Remove menu bar on the current
1520 (setMenuBarPeer): Add the menu bar to the current frame and the
1521 callback for size-allocate events on the menu bar.
1522 (getMenuBarHeight): Add menu bar parameter.
1523 (menubar_resize_cb): New callback method for postSizeAllocate events.
1525 Also: Fix indentation on last ChangeLog entry.
1527 2004-01-16 Kim Ho <kho@redhat.com>
1529 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1530 (gtkWidgetGetDimensions): Remove.
1531 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1532 (gtkWidgetGetDimensions): Remove.
1534 2004-01-16 Tom Tromey <tromey@redhat.com>
1536 * java/awt/Container.java: Typo and indentation fixes.
1538 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
1539 * java/lang/natVMClassLoader.cc: ...here. New file.
1540 * Makefile.in: Rebuilt.
1541 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
1543 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1545 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
1546 Discard GDK_ENTER_NOTIFY related to ungrabs.
1548 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1550 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
1551 is called for an intermediate queue.
1553 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
1555 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1556 (window_property_changed_cb): Set id_set.
1558 2004-01-16 Kim Ho <kho@redhat.com>
1560 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
1561 it is a FileDialog and has dimensions of 0 by 0, then the initial
1562 size is set to size request plus insets.
1563 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1564 (gtkWidgetGetDimensions): Override method.
1565 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1566 (gtkWidgetGetDimensions): Override method. Returns size request plus
1569 2004-01-16 Andrew Haley <aph@redhat.com>
1571 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
1572 * sysdep/i386/locks.h: Likewise.
1574 2004-01-16 Fernando Nasser <fnasser@redhat.com>
1576 * java/awt/EventDispatchThread.java (run): Stop running when
1578 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
1579 Reset the queue after transferring its contents.
1580 (push): Start a new dispatch thread if none is running.
1582 2004-01-16Â Olga Rodimina <rodimina@redhat.com>
1584 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1585 (doPolygon): set fill rule of polygon to
1586 WIND_EVEN_ODD by default.
1588 2004-01-15 Olga Rodimina <rodimina@redhat.com>
1590 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1591 Implemented rendering hints related methods.
1592 (getDefaultHints): New helper method. Returns
1593 default rendering hints.
1594 (walkPath): changed to normalize path if
1595 the KEY_STROKE_CONTROL key is in "normalize" mode.
1596 (draw3DRect): changed coordinates of rectangle by +0.5
1597 if in "normalize" mode.
1599 2004-01-15 Tom Tromey <tromey@redhat.com>
1601 * Makefile.in: Rebuilt.
1602 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
1603 (%.lo: %.java) Filter out StackTrace.lo.
1605 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
1607 * configure.in: Add in AC_PREREQ(2.13)
1608 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
1611 2004-01-14 Nathan Bryant <nbryant@optonline.net>
1612 Tom Tromey <tromey@redhat.com>
1615 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
1616 array to superclass.
1617 (init): Changed interface; add URLs here.
1618 (initialize): New static method.
1619 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
1620 (_Jv_RunMain): ... not here.
1622 2004-01-14 Michael Koch <konqueror@gmx.de>
1624 * java/text/MessageFormat.java:
1625 Added descriptions to exceptions.
1626 This fixes PR libgcj/2429.
1628 2004-01-13 Fernando Nasser <fnasser@redhat.com>
1630 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
1631 (push): Make sure push is performed at the top of the thread stack.
1633 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1635 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
1636 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
1637 (native create): Add width and height parameters. Set text
1638 view's size request according to new parameters.
1639 (create): Calculate text view size based on current font's
1640 metrics and number of rows and columns. Set TextArea's font if
1641 not already set. Call native create.
1642 (getMinimumSize): Call minimumSize.
1643 (getPreferredSize): Call preferredSize.
1644 (getHScrollbarHeight): New method.
1645 (getVScrollbarWidth): New method.
1646 (minimumSize): Calculate minimum size based on scrollbar
1647 visibility, scrollbar sizes, font metrics and number of rows and
1649 (preferredSize): Likewise for preferred size.
1650 (gtkTextGetSize): Remove method.
1652 2004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1654 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1655 (initializeInsets): Remove method.
1656 (GtkComponentPeer): Initialize insets field. Remove call to
1658 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
1660 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
1662 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1663 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
1664 (latestInsets): Remove field.
1665 (native create): Add insets parameter. Call
1666 window_get_frame_extents. Set the window's default size and
1667 size request based on its frame extents.
1668 (create): Initialize insets.
1669 (postInsetsChangedEvent): New method.
1670 (postConfigureEvent): Remove parameters top, left, bottom,
1671 right. Remove insets-related logic.
1672 (connectJObject): Handle property-notify-event.
1673 (window_get_frame_extents, request_frame_extents,
1674 property_notify_predicate, window_property_changed_cb): New
1676 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1677 (pre_event_handler): Remove insets-related logic for configure
1679 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
1680 Update postConfigureEvent signature.
1682 2004-01-13 Fernando Nasser <fnasser@redhat.com>
1684 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
1685 to handle Window "Closing" events.
1687 2004-01-13 David Jee <djee@redhat.com>
1689 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1690 (setBackground): New method. Children with no explicitly-set
1691 background will be repainted with the parent container's new
1694 2004-01-13 David Jee <djee@redhat.com>
1696 * Makefile.am: Add BitwiseXORComposite.java.
1697 * Makefile.in: Regenerated.
1698 * gcj/Makefile.in: Regenerated.
1699 * include/Makefile.in: Regenerated.
1700 * testsuite/Makefile.in: Regenerated.
1702 2004-01-12 Fernando Nasser <fnasser@redhat.com>
1704 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
1705 not show modal dialogs twice and so that it allows showing a modal
1706 dialog from another modal dialog.
1708 2004-01-12 Fernando Nasser <fnasser@redhat.com>
1710 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
1711 and run secondary dispatch thread to process event queue while this
1714 2004-01-12 Graydon Hoare <graydon@redhat.com>
1716 * gnu/java/awt/gtk/GdkGraphics2D.java
1717 (static): Check GtkToolkit before initializing static state.
1718 (Graphics2D): Don't construct transform with 0.5 unit offset.
1720 2003-11-06 Sascha Brawer <brawer@dandelis.ch>
1722 * gnu/java/awt/BitwiseXORComposite.java: Add.
1723 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1724 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
1725 (BitwiseXORComposite): Remove inner class.
1727 2004-01-11 Michael Koch <konqueror@gmx.de>
1729 * gnu/java/lang/reflect/TypeSignature.java
1730 (getEncodingOfClass): Documentation fixed.
1731 (getClassForEncoding): Give class loader to Class.forName().
1732 Documentation fixed.
1734 2004-01-11 Sascha Brawer <brawer@dandelis.ch>
1736 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
1738 2004-01-11 Michael Koch <konqueror@gmx.de>
1740 * javax/swing/undo/StateEditable.java
1741 (RCSID): Removed redundant modifiers.
1743 2004-01-10 Michael Koch <konqueror@gmx.de>
1745 * javax/print/attribute/EnumSyntax.java
1746 (getStringTable): Made protected.
1747 (getEnumValueTable): Likewise.
1748 * javax/print/attribute/standard/JobKOctetsProcessed.java
1749 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
1750 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
1751 (JobMediaSheetsCompleted): Made class final.
1752 * javax/print/attribute/standard/OutputDeviceAssigned.java
1753 (getName): Fixed typo.
1754 * javax/print/attribute/standard/RequestingUserName.java
1755 (serialVersionUID): Fixed value.
1757 2004-01-10 Michael Koch <konqueror@gmx.de>
1759 * javax/swing/plaf/basic/BasicButtonUI.java,
1760 javax/swing/plaf/basic/BasicCheckBoxUI.java,
1761 javax/swing/plaf/basic/BasicListUI.java,
1762 javax/swing/plaf/basic/BasicOptionPaneUI.java,
1763 javax/swing/plaf/basic/BasicPanelUI.java,
1764 javax/swing/plaf/basic/BasicRadioButtonUI.java,
1765 javax/swing/plaf/basic/BasicScrollPaneUI.java,
1766 javax/swing/plaf/basic/BasicToggleButtonUI.java,
1767 javax/swing/plaf/basic/BasicViewportUI.java:
1768 Fixed import statements.
1770 2004-01-10 Michael Koch <konqueror@gmx.de>
1772 * gnu/java/awt/image/ImageDecoder.java
1773 (produce): Made public.
1774 * gnu/java/awt/peer/GLightweightPeer.java,
1775 gnu/java/awt/peer/gtk/GtkToolkit.java:
1778 2004-01-10 Michael Koch <konqueror@gmx.de>
1780 * javax/swing/JRadioButtonMenuItem.java,
1781 javax/swing/JSeparator.java,
1782 javax/swing/JSplitPane.java,
1783 javax/swing/JTextPane.java,
1784 javax/swing/JToolBar.java,
1785 javax/swing/ListCellRenderer.java,
1786 javax/swing/ListModel.java,
1787 javax/swing/MenuElement.java,
1788 javax/swing/OverlayLayout.java,
1789 javax/swing/ProgressMonitor.java,
1790 javax/swing/ProgressMonitorInputStream.java,
1791 javax/swing/Renderer.java,
1792 javax/swing/RootPaneContainer.java,
1793 javax/swing/Scrollable.java,
1794 javax/swing/SingleSelectionModel.java,
1795 javax/swing/ToolTipManager.java,
1796 javax/swing/ViewportLayout.java,
1797 javax/swing/event/DocumentEvent.java,
1798 javax/swing/event/SwingPropertyChangeSupport.java,
1799 javax/swing/event/TreeSelectionEvent.java,
1800 javax/swing/event/UndoableEditEvent.java,
1801 javax/swing/text/AbstractDocument.java,
1802 javax/swing/text/AttributeSet.java,
1803 javax/swing/text/Caret.java,
1804 javax/swing/text/ComponentView.java,
1805 javax/swing/text/DefaultCaret.java,
1806 javax/swing/text/DefaultEditorKit.java,
1807 javax/swing/text/Document.java,
1808 javax/swing/text/EditorKit.java,
1809 javax/swing/text/GapContent.java,
1810 javax/swing/text/Keymap.java,
1811 javax/swing/text/MutableAttributeSet.java,
1812 javax/swing/text/PlainEditorKit.java,
1813 javax/swing/text/Segment.java,
1814 javax/swing/text/Style.java,
1815 javax/swing/text/StyledDocument.java,
1816 javax/swing/text/StyledEditorKit.java,
1817 javax/swing/text/TextAction.java,
1818 javax/swing/text/View.java: Fixed import statements.
1820 2004-01-08 Graydon Hoare <graydon@redhat.com>
1822 * javax/swing/JLayeredPane.java: Rewrite to accomodate
1823 djee@redhat.com's recent inverse ordering of Container elements.
1825 2004-01-09 Michael Koch <konqueror@gmx.de>
1827 * gnu/java/lang/ArrayHelper.java
1828 (equalsArray): Removed.
1830 2004-01-09 Andrew Haley <aph@redhat.com>
1832 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
1833 a Utf8Const field before looking at its class.
1835 2004-01-09 Michael Koch <konqueror@gmx.de>
1837 * javax/print/attribute/standard/DocumentName.java,
1838 javax/print/attribute/standard/JobHoldUntil.java,
1839 javax/print/attribute/standard/JobMessageFromOperator.java,
1840 javax/print/attribute/standard/JobName.java,
1841 javax/print/attribute/standard/JobOriginatingUserName.java,
1842 javax/print/attribute/standard/OutputDeviceAssigned.java,
1843 javax/print/attribute/standard/PrinterInfo.java,
1844 javax/print/attribute/standard/PrinterLocation.java,
1845 javax/print/attribute/standard/PrinterMakeAndModel.java,
1846 javax/print/attribute/standard/PrinterMessageFromOperator.java,
1847 javax/print/attribute/standard/PrinterName.java,
1848 javax/print/attribute/standard/RequestingUserName.java: New files.
1849 * Makefile.am (javax_source_files): Added new files.
1850 * Makefile.in: Regenerated.
1852 2004-01-09 Michael Koch <konqueror@gmx.de>
1854 * javax/swing/AbstractAction.java,
1855 javax/swing/AbstractSet.java,
1856 javax/swing/Action.java,
1857 javax/swing/ActionMap.java,
1858 javax/swing/BoundedRangeModel.java,
1859 javax/swing/ButtonModel.java,
1860 javax/swing/CellEditor.java,
1861 javax/swing/CellRendererPane.java,
1862 javax/swing/ComboBoxEditor.java,
1863 javax/swing/DebugGraphics.java,
1864 javax/swing/DefaultCellEditor.java,
1865 javax/swing/DefaultCellRenderer.java,
1866 javax/swing/DefaultComboBoxModel.java,
1867 javax/swing/DefaultDesktopManager.java,
1868 javax/swing/DefaultFocusManager.java,
1869 javax/swing/DefaultListCellRenderer.java,
1870 javax/swing/Icon.java,
1871 javax/swing/JButton.java,
1872 javax/swing/JCheckBoxMenuItem.java,
1873 javax/swing/JDesktopPane.java,
1874 javax/swing/JEditorPane.java,
1875 javax/swing/JMenu.java,
1876 javax/swing/JPanel.java,
1877 javax/swing/JPasswordField.java,
1878 javax/swing/JPopupMenu.java,
1879 javax/swing/JProgressBar.java: Reworked imports.
1881 2004-01-09 Michael Koch <konqueror@gmx.de>
1883 * java/awt/geom/PathIterator.java
1884 (WIND_EVEN_ODD): Removed redundant modifiers.
1885 (WIND_NON_ZERO): Likewise.
1886 (SEG_MOVETO): Likewise.
1887 (SEG_LINETO): Likewise.
1888 (SEG_QUADTO): Likewise.
1889 (SEG_CUBICTO): Likewise.
1890 (SEG_CLOSE): Likewise.
1891 * java/awt/image/SinglePixelPackedSampleModel.java:
1892 Removed redundant semicolon.
1893 * java/io/ObjectInputStream.java
1894 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
1895 * java/util/logging/Filter.java
1896 (isLoggable): Removed redundant modifier.
1897 * java/util/logging/LogManager.java:
1898 Removed redundant semicolon.
1899 * java/util/logging/XMLFormatter.java
1900 (format): Removed unused variable "key".
1902 2004-01-08 Fernando Nasser <fnasser@redhat.com>
1904 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
1905 New name for the former setFile native method.
1906 (setFile): New method.
1907 (setDirectory): Implemented.
1908 (connectSignals): New native method.
1909 (setFilenameFilter): Improve comment.
1910 (getGraphics): Comment.
1911 (gtkHideFileDialog): New method.
1912 (gtkDisposeFileDialog): New method.
1913 (gtkSetFilename): New method.
1914 * java/awt/Dialog.java (show): Block on modal dialogs, but only
1915 for FileDialog for now.
1917 (dispose): New method.
1918 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1919 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
1920 deprecated creation functions. Make dialog modal. Add it to the
1922 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
1924 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
1926 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
1928 (window_closed): New function.
1929 (ok_clicked): New function.
1930 (cancel_clicked): New function.
1932 2004-01-08 Michael Koch <konqueror@gmx.de>
1934 * javax/swing/JLayeredPane.java: Revert changes to standard
1935 boilerplate, reworked imports.
1937 2004-01-07 Tom Tromey <tromey@redhat.com>
1940 * verify.cc (state::merge): Copy changed locals out of subroutine
1942 (state::FLAG_CHANGED): New const.
1943 (state::FLAG_UNUSED): Likewise.
1944 (state::local_changed): Removed. Updated all users.
1945 (state::flags): New field.
1946 (state::merge): Added jsr_semantics argument, more logic.
1947 (push_jump_merge): Added jsr_semantics argument.
1948 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
1949 merging through the jsr instruction.
1951 2004-01-07 Tom Tromey <tromey@redhat.com>
1953 * scripts/MakeDefaultMimeTypes.java: Use \n, not
1956 2004-01-07 Graydon Hoare <graydon@redhat.com>
1958 * java/awt/Container.java (LightweightDispatcher): Implement.
1959 (visitChild): Reuse graphics object.
1960 (dispatchEventImpl): Optionally dispatch to lightweight.
1961 (addNotifyContainerChildren): Build LightweightDispatcher.
1963 2004-01-07 David Jee <djee@redhat.com>
1965 * java/awt/Container.java
1966 (update): Clear only the clipped region, instead of clearing the
1968 (visitChildren): Visit children in descending order.
1970 2004-01-07 Michael Koch <konqueror@gmx.de>
1972 * java/lang/reflect/Array.java: Merged documentation with classpath.
1974 2004-01-07 Michael Koch <konqueror@gmx.de>
1976 * java/text/CollationElementIterator.java
1977 (textIndex): Renamed from index.
1978 * java/text/CollationKey.java
1979 (collator): New member.
1980 (CollationKey): New argument for parent collator.
1981 (equals): Check for same collator, source string and key array.
1982 * java/text/RuleBasedCollator.java:
1984 (RuleBasedCollator): Don't re-initialize frenchAccents with default
1986 (getCollationElementIterator): Rewritten.
1987 (getCollationKey): Added new argument to CollationKey constructor.
1989 2004-01-07 Michael Koch <konqueror@gmx.de>
1991 * gnu/java/nio/DatagramChannelImpl.java
1992 (blocking): Removed.
1993 (DatagramChannelImpl): Call configureBlocking().
1994 (implConfigureBlocking): Dont initialize blocking.
1995 * gnu/java/nio/ServerSocketChannelImpl.java
1996 (blocking): Removed.
1997 (ServerSocketChannelImpl): Call configureBlocking().
1998 (implConfigureBlocking): Dont initialize blocking.
1999 * gnu/java/nio/SocketChannelImpl.java
2000 (blocking): Removed.
2001 (SocketChannelImpl): Call configureBlocking().
2002 (implConfigureBlocking): Dont initialize blocking.
2003 (connect): Use isBlocking().
2004 * java/nio/channels/spi/AbstractSelectableChannel.java
2005 (configureBlocking): Use blockingLock() instead of LOCK.
2006 Set blocking after successfully called implConfigureBlocking().
2007 (register): Use blockingLock() instead of LOCK.
2009 2004-01-07 Michael Koch <konqueror@gmx.de>
2011 * java/net/ServerSocket.java (isBound): Fixed documentation.
2013 2004-01-07 Sascha Brawer <brawer@dandelis.ch>
2015 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
2016 (changeEvent): Create event object on demand.
2017 (DefaultBoundedRangeModel, toString, setValue, setExtent,
2018 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
2019 fireStateChanged): Re-written.
2020 * javax/swing/event/EventListenerList.java: Reformatted, document
2022 (toString): Implemented.
2023 (getListeners): Re-written.
2024 (remove): Re-written.
2026 (NO_LISTENERS): New singleton field.
2027 (listenerList): Declare as transient; document.
2028 (serialVersionUID): Document.
2029 (getListenerCount(Class)): More efficient implementation,
2030 also accepts null argument. Improve Javadoc.
2031 (getListenerCount()): Remove unnecessary cast; docfix.
2032 * javax/swing/undo/UndoableEditSupport.java:
2033 Re-format, document.
2034 (UndoableEditSupport): Set realSource field. Improve documentation.
2035 (_postEdit): Iterate over cloned listener vector.
2036 (toString): Don't emit realSource.
2037 (beginUpdate, endUpdate): Support nested updates.
2038 (postEdit): Use compound edit if present.
2040 2004-01-06 Graydon Hoare <graydon@redhat.com>
2042 * java/awt/Container.java (swapComponents): Add forgotten
2043 function, required for JLayeredPane change.
2045 2004-01-06 Michael Koch <konqueror@gmx.de>
2047 * java/text/CollationElementIterator.java: Reformated.
2048 (CollationElementIterator): Changed order of arguments.
2049 * java/text/RuleBasedCollator.java
2050 (RuleBasedCollator): Merged class documentation.
2051 (CollationElement): Added documentation.
2052 (compare): Reformated, renamed arguments.
2054 (getCollationElementIterator): Likewise.
2055 (getCollationKey): Likewise.
2057 2004-01-06 Graydon Hoare <graydon@redhat.com>
2059 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
2061 2004-01-06 Michael Koch <konqueror@gmx.de>
2063 * gnu/java/net/protocol/file/Connection.java:
2064 Reformated copyright.
2067 (gotHeaders): Removed.
2068 (getHeaderField): Removed.
2069 (getHeaderField): Removed.
2070 (getHeaderFieldKey): Removed.
2072 (getField): Removed.
2073 (getHeaders): Removed.
2075 2004-01-06 Michael Koch <konqueror@gmx.de>
2077 * javax/print/attribute/standard/DateTimeAtCompleted.java,
2078 javax/print/attribute/standard/DateTimeAtCreation.java,
2079 javax/print/attribute/standard/DateTimeAtProcessing.java,
2080 javax/print/attribute/standard/JobImpressionsCompleted.java,
2081 javax/print/attribute/standard/JobKOctets.java,
2082 javax/print/attribute/standard/JobKOctetsProcessed.java,
2083 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
2084 javax/print/attribute/standard/JobPrioritySupported.java: New files.
2085 * Makefile.am (javax_source_files): Added new files.
2086 * Makefile.in: Regenerated.
2088 2004-01-06 Michael Koch <konqueror@gmx.de>
2090 * java/net/URLConnection.java
2091 (contentHandler): Removed.
2093 (getHeaderFields): Return an empty map instead of null.
2094 (getContent): Connect if needed, renamed "cType" to "type" and
2095 "contentHandler" to "ch" and made it a local variable.
2096 (getPermission): Don't use package in class name.
2097 (setDefaultRequestProperty): Fixed typo in documentation.
2098 (initializeDateFormats): Made locale a local variable.
2100 2004-01-06 Michael Koch <konqueror@gmx.de>
2102 * java/lang/Package.java
2103 (getPackage): Get the current class loader directly.
2104 * java/lang/SecurityManager.java
2105 (currentLoadedClass): Dont iterate over class contexts.
2106 (classLoaderDepth): Don't check class loaders if everything is allowed.
2108 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
2110 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2111 (pre_event_handler): Set all insets to 0 when a Configure event
2112 is received for a GtkPlug.
2113 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
2114 Make handle long, not int.
2115 (EmbeddedWindow()): New constructor.
2116 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
2118 (setHandle): New method.
2119 (getHandle): Return long, not int.
2120 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
2122 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
2123 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
2124 (create(long)): Take long parameter, not int. Cast gtk_plug_new
2125 argument to GdkNativeWindow.
2126 (construct): New method.
2127 (embed): New method.
2129 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
2130 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
2131 (create(int, int)): New method.
2132 (create): Call new create method.
2133 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
2135 (childResized): Remove native implementation. Implement in
2137 (getHScrollbarHeight, getVScrollbarWidth): Call
2138 gtk_widget_size_request to get scrollbar dimensions.
2139 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
2140 call getVScrollbarWidth and getHScrollbarHeight when vertical
2141 and horizontal scrollbars respectively are needed.
2142 (doLayout): Enlarge child if it is smaller than the viewport.
2144 2004-01-05 Fernando Nasser <fnasser@redhat.com>
2146 * java/awt/Dialog.java (constructor): Accept null title as per spec.
2147 * java/awt/FileDialog.java (constructor): Throw exception on invalid
2148 argument as per spec.
2150 2004-01-05 Fernando Nasser <fnasser@redhat.com>
2152 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
2154 (remove): Ditto. Also, Check for valid argument.
2155 (removeAll): Use peer interface method.
2156 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
2157 native add function.
2158 (nativeRemove): New name for native remove function.
2159 (getHistory): New native function.
2160 (constructor): Generate ItemEvent.
2161 (add): Ditto, if selection is changed.
2162 (remove): Ditto, ditto.
2163 (removeAll): Add implementation.
2164 (handleEvent): Remove. Dead code.
2165 (choicePostItemEvent): Add comment.
2166 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
2167 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
2168 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
2169 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
2170 comments and fix condition to change selection.
2171 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
2172 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
2173 remove all capability.
2174 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
2175 (item_activate): Add cast to remove compiler warning.
2177 2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
2179 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2180 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2181 (getPreferredSize): Call preferredSize.
2182 (preferredSize): Call gtkWidgetGetPreferredDimensions.
2183 (getMinimumSize): Call minimumSize.
2184 (minimumSize): Call gtkWidgetGetPreferredDimensions.
2185 (gtkWidgetGetDimensions): Return the peer widget's current size
2187 (gtkWidgetGetPreferredDimensions): Return the peer widget's
2188 natural size request.
2190 2004-01-05 Sascha Brawer <brawer@dandelis.ch>
2192 Thanks to Brian Gough <bjg@network-theory.com>
2193 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
2194 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
2196 2004-01-04 Matthias Klose <doko@debian.org>
2198 * aclocal.m4: Rebuilt using "aclocal -I .".
2199 * configure: Rebuilt.
2201 2004-01-03 Per Bothner <per@bothner.com>
2203 * java/util/Date.java (parse): Fix a number of problems.
2204 (skipParens): Remove no-longer-needed method.