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