]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/ChangeLog
configure.in: Remove symbolic link section.
[thirdparty/gcc.git] / libjava / ChangeLog
CommitLineData
aa18fb30
MK
12004-03-17 Michael Koch <konqueror@gmx.de>
2
3e368284
MK
3 * gnu/java/net/PlainDatagramSocketImpl.java
4 (RECEIVE_LOCK): New member field.
5 (SEND_LOCK): New member field.
6 (send0): New method.
7 (send): Synchronize on SEND_LOCK.
8 (receive0): New method.
9 (receive): Synchronize on RECEIVE_LOCK.
10 * gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
11 gnu/java/net/natPlainDatagramSocketImplPosix.cc,
12 gnu/java/net/natPlainDatagramSocketImplWin32.cc
13 (send0): Renamed from send.
14 (receive0): Renamed from receive.
152004-03-17 Michael Koch <konqueror@gmx.de>
16
aa18fb30
MK
17 * gnu/java/net/natPlainSocketImplPosix.cc
18 (write): Just call write(jbyteArray, offset, len).
19 (read): Just call read(jbyteArray, offset, len).
20
8c7dca8f
MK
212004-03-16 Michael Koch <konqueror@gmx.de>
22
23 * javax/swing/JTabbedPane.java
24 (serialVersionUID): New field.
25
27729a06
NF
262004-03-16 Norbert Frese <postfach@nfrese.net>
27
28 * java/net/InetAddress.java
29 (getByName): Handle hostname == "" case.
30
6828de5b
DT
312004-03-16 Dalibor Topic <robilad@kaffe.org>
32
33 Reported by: Adam Heath <doogie@debian.org>
34 * gnu/javax/rmi/CORBA/DelegateFactory.java (getInstance): Use context
35 class loader.
36
74a568a4
MK
372004-03-15 Michael Koch <konqueror@gmx.de>
38
39 * java/util/Locale.java: Reverting my last patch
40 and add a comment why the original version was okay.
41
406c98b2
AT
422004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
43
44 * gnu/java/nio/channels/natFileChannelPosix.cc: Implement
45 munmap_adaptor and msync_adaptor for older POSIX_C_SOURCES specs.
46 (MappedByteBufferImpl::unmapImpl): Use munmap_adaptor.
47 (MappedByteBufferImpl::forceImpl): Use msync_adptor.
48
9eacb73b
MK
492004-03-12 Michael Koch <konqueror@gmx.de>
50
51 * java/text/DateFormatSymbols.java: Fixed file name in copyright.
52
ac011d28
MK
532004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
54
55 * java/net/URI.java (toURL): Implemented.
56
572004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
58
59 * java/net/URI.java
60 (URI_REGEXP) updated to contain scheme specific part.
61 (SCHEME_SPEC_PART_GROUP) new constant.
62 (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP)
63 updated to make room for SCHEME_SPEC_PART_GROUP.
64 (parseURI) parse scheme specific part.
65 (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart,
66 getSchemeSpecificPart, getAuthority, getUserInfo, getPath,
67 getQuery, getFragment) implemented.
68
692004-03-12 Dalibor Topic <robilad@kaffe.org>
70
71 * libraries/javalib/java/net/URI.java
72 partially implemented using java.util.regex.
73 (URI_REGEXP) new constant. Used to parse URIs.
74 (SCHEME_GROUP) new constant representing index of scheme group
75 in parsed URI.
76 (AUTHORITY_GROUP) new constant representing index of authority
77 group in parsed URI.
78 (PATH_GROUP) new constant representing index of path group in
79 parsed URI.
80 (QUERY_GROUP) new constant representing index of query group in
81 parsed URI.
82 (FRAGMENT_GROUP) new constant representing index of fragment
83 group in parsed URI.
84 (getURIGroup) new static utility method.
85 (parseURI) implemented.
86 (quote) stub for new static utility method.
87 (quoteAuthority) stub for new static utility method.
88 (quoteHost) stub for new static utility method.
89 (quotePath) stub for new static utility method.
90 (quoteUserInfo) stub for new static utility method.
91 (URI) implemented.
92 (create) don't throw URISyntaxException. Implemented.
93 (toString) implemented.
94
75e0f3fe
MK
952004-03-12 Michael Koch <konqueror@gmx.de>
96
97 * java/net/HttpURLConnection.java
98 (getResponseCode): Fix another typo in javadoc.
99
4b0b51c9
MK
1002004-03-11 Michael Koch <konqueror@gmx.de>
101
102 * java/util/logging/Level.java
103 (parse): Use String.equals() instead of ==.
104
950d83e7
MK
1052004-03-11 Michael Koch <konqueror@gmx.de>
106
107 * gnu/java/net/protocol/jar/Connection.java
108 (getContentLength): New method.
109
fb36b57a
MK
1102004-03-11 Michael Koch <konqueror@gmx.de>
111
112 * gnu/java/net/PlainSocketImpl.java:
113 Reformated to merge better with classpath's version.
114
deccda9f
MK
1152004-03-11 Michael Koch <konqueror@gmx.de>
116
117 * java/util/Locale.java
118 (getISO3Language): Use String.equals() instead of ==.
119 (getISO3Country): Likewise.
120
1ce9c63d
MK
1212004-03-11 Dalibor Topic <robilad@kaffe.org>
122
123 * java/text/AttributedString.java
124 (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)):
125 Use HashMap instead of Hashtable since value can be null, and
126 you can not store a null value in a Hashtable.
127
1282004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
129
130 * java/text/AttributedStringIterator.java
131 (getAllAttributesKey): Return only keys concerned
132 by the current iterator.
133 (getAttributes): Use strict inequality for
134 end_index.
135
c21a266b
MK
1362004-03-11 Michael Koch <konqueror@gmx.de>
137
138 * java/net/HttpURLConnection.java:
139 Fixed typo in javadoc.
140
f0a4c30f
GL
1412004-03-11 Guilhem Lavaux <guilhem@kaffe.org>
142
143 * java/io/BufferedInputStream.java (marktarget): New field for max
144 mark limit.
145 (CHUNKSIZE): New constant for incremental mark buffer allocation.
146 (mark): Use new fields.
147 (read): Likewise.
148 (read(byte[],int,int)): Likewise.
149 (skip): Likewise.
150 (refill): Likewise.
151
877fb3cb
MW
1522004-03-11 Mark Wielaard <mark@klomp.org>
153
154 * java/beans/BeanDescriptor.java (BeanDescriptor):
155 Set the FeatureDescriptor programmatic name.
156
1a4f6839
MK
1572004-03-11 Michael Koch <konqueror@gmx.de>
158
159 * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
160 This file was was just copied form java/io/natFileDescriptorEcos.cc
161 and never changed to compile correctly.
162
5ea43886
MK
1632004-03-11 Michael Koch <konqueror@gmx.de>
164
165 * gnu/java/nio/PipeImpl.java
166 (SourceChannelImpl): Made final.
167 (read): Implemented.
168 (SinkChannelImpl): Made final.
169 (write): Implemented.
170
9a282e8e
MK
1712004-03-11 Michael Koch <konqueror@gmx.de>
172
173 * gnu/java/net/PlainDatagramSocketImpl.java:
174 Reformated to match classpath's version more.
175
1f2b4715
MK
1762004-03-11 Michael Koch <konqueror@gmx.de>
177
178 * gnu/java/awt/peer/ClasspathFontPeer.java:
179 Fixed javadoc to be correct xhtml.
180 * gnu/java/awt/peer/gtk/GtkArgList.java
181 (add): Use Boolean.valueOf() instead of new Boolean().
182
bfb0a4ad
MK
1832004-03-09 Michael Koch <konqueror@gmx.de>
184
185 * java/lang/Thread.java
186 (runnable): Moved around.
187 (daemon): Renamed from daemon_flag.
188 (contextClassLoader): Renamed from context_class_loader.
189 (Thread): Reordered constructors.
190 (activeCount): Use group directly.
191 (destroy): Make it a java method. Throw NoSuchMethodError like Sun does.
192 (holdsLock): Reworked javadoc.
193 (setDaemon): Reworked.
194 * java/lang/natThread.cc
195 (destroy): Removed.
ec730df5
AG
1962004-03-08 Anthony Green <green@redhat.com>
197
198 * Makefile.am: Build property resource files into libgcj.
199 * Makefile.in: Rebuilt.
200 * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
201 java/util/regex/PatternSyntaxException.java,
202 gnu/regexp/CharIndexed.java,
203 gnu/regexp/CharIndexedCharArray.java,
204 gnu/regexp/CharIndexedInputStream.java,
205 gnu/regexp/CharIndexedReader.java,
206 gnu/regexp/CharIndexedString.java,
207 gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java,
208 gnu/regexp/REException.java,
209 gnu/regexp/REFilterInputStream.java,
210 gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java,
211 gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java,
212 gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java,
213 gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java,
214 gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java,
215 gnu/regexp/RETokenLookAhead.java,
216 gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java,
217 gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java,
218 gnu/regexp/RETokenStart.java,
219 gnu/regexp/RETokenWordBoundary.java,
220 gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath.
221
dd0a905f
PB
2222004-03-03 Per Bothner <per@bothner.com>
223
224 * java/nio/channels/Channels.java (newInputStream, newOutputStream):
225 Optimize when argument is a FileChannelImpl.
226 (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)):
227 New native methods.
228 * java/nio/channels/natChannels.cc: New file for new native methods.
229 * Makefile.am: Update accordingly.
230
2ac87ccb
JH
2312004-03-02 Jan Hubicka <jh@suse.cz>
232
233 * configure.host: Pass -fno-omit-frame-pointer for i386.
234 * configure.in: Likewise.
21a32e08 235 * configure: Regenerate.
2ac87ccb 236
dd341087
PB
2372004-03-01 Per Bothner <per@bothner.com>
238
239 * java/lang/natPosixProcess.cc (startProcess): Fix thinko.
240
76c88fd9
PB
2412004-02-29 Per Bothner <per@bothner.com>
242
243 * java/nio/channels/FileChannelImpl.java: Moved to package
244 gnu/java/nio/channels, since we need to refer to it from java.io.
245 * java/nio/channels/natFileChannelImpl.cc: Removed file.
246 * gnu/java/nio/channels/FileChannelImpl.java: New class, renamed
247 from java/nio/channels. Don't depend on FileDescriptor.
248 (in, out, err): New static fields.
249 (mode): New field.
250 (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants
251 from FileDescriptor.
252 (by): Removed MappedByteBuffer field.
253 (map): New working implementation.
254 * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though
255 some code "ported" from natFileDescriptoPosix.cc.
256 * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise.
257 * gnu/java/nio/channels/natFileChannelWin32.cc Likewise.
258 * java/io/FileDescriptor.java: Implement on top of FileChannel.
259 Remove native methods.
260 * Makefile.am, configure.in: Updated accordingly.
261
262 * gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by:
263 (ch): New FileChannelImpl field. Update constructor to match.
264 (releaseImpl): Remove native method. Instead ...
265 (release): Call unlock on channel.
266 * gnu/java/nio/natFileLockImpl.cc: Removed file.
267
268 * java/io/natFileDescriptorEcos.cc: Remove file.
269 * java/io/natFileDescriptorPosix.cc: Remove file.
270 * java/io/natFileDescriptorWin32.cc: Remove file.
271 * java/io/FileInputStream.java (ch): Change type to FileChannelImpl.
272 (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor.
273 (<init>(FileChannelImpl)): New package-private constructor.
274 (<init>(FileDescriptor)): Extract FileChannelImpl from arg.
275 (available, close, read, skip): Implement using FileChannelImpl.
276 (getFD): Allocate FileDescriptor if needed.
277 (getChannel): Is now trivial.
278 * java/io/FileOutputStream.java: Corresponding changes.
279 * java/io/RandomAccessFile.java: Corresponding changes.
280
281 * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
282 unmapImpl): New dummy methods, to be overridden by subclass.
283 (finalize, isLoaded, load, force): New methods.
284 * java/nio/MappedByteBufferImpl.java: More-or-less rewrite.
285 Now works, at least for read mapping.
286
287 * java/lang/natPosixProcess.cc (startProcess): Implement standard
288 streams using FileChannelImpl, not FileDescriptor.
289 * java/lang/natWin32Process.cc (startProcess): Likewise.
290
763c1edf
MK
2912004-02-28 Michael Koch <konqueror@gmx.de>
292
293 * java/io/ObjectInputStream.java: Compile fix, damn I commited the
294 wrong code.
295
646e3290
GL
2962004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
297
298 * java/io/ObjectInputStream.java
299 (readClassDescriptor): Keep elements of the mapping non null.
300 (checkTypeConsistency): New method.
301 (readFields): Fixed main loop and base logic. Small reindentation.
302 * java/io/ObjectStreamField.java
303 (lookupField): New method to update the field reference.
304 (checkFieldType): New method.
305 * java/io/ObjectStreamClass.java
306 (setClass, setFields): Call lookupField when building the field
307 database. Check the real field type.
308
ca67f278
MK
3092004-02-28 Michael Koch <konqueror@gmx.de>
310
311 * java/nio/ByteOrder.java
312 (nativeOrder): Use equals() to compare strings.
313
f57db409
MK
3142004-02-26 Michael Koch <konqueror@gmx.de>
315
316 * gnu/java/nio/FileLockImpl.java
317 (finalize): Made protected.
318 * java/nio/channels/FileChannel.java
319 (MapMode.READ_ONLY): Made final.
320 (MapMode.READ_WRITE): Made final.
321 (MapMode.PRIVATE): Made final.
322 * java/nio/channels/SocketChannel.java
323 (open): Simplified code.
324 * java/nio/channels/spi/AbstractSelectableChannel.java
325 (registered): Unused, removed.
326 (keyFor): Check channel is open, only locate key
327 and not add a new one.
328 (register): Don't delete attachments.
329
135d78c6
MK
3302004-02-26 Michael Koch <konqueror@gmx.de>
331
332 * gnu/java/awt/ComponentDataBlitOp.java
333 (INSTANCE): Made final.
334 * gnu/java/awt/image/ImageDecoder.java:
335 Reworked imports.
336 (cm): Unused, removed.
337
1287fd01
MK
3382004-02-26 Michael Koch <konqueror@gmx.de>
339
340 * gnu/java/nio/DatagramChannelImpl.java
341 (send): Check if target address is resolved.
342
1e2a4850
MK
3432004-02-26 Michael Koch <konqueror@gmx.de>
344
345 * Makefile.am: Generate and install headers for inner classes in
346 java.nio.channels.Pipe and gnu.java.nio.PipeImpl.
347 * Makefile.in: Regenerated.
76c88fd9 348
b29610b3
AG
3492004-02-24 Anthony Green <green@redhat.com>
350
351 * java/lang/StringBuffer.java: No need to NULL out remainder of
352 buffer since ensureCapacity_unsynchronized will have done this for
353 us.
354
821b56cb
MK
3552004-02-20 Michael Koch <konqueror@gmx.de>
356
357 * gnu/java/net/protocol/jar/Handler.java
358 (): Removed unneeded check for file != null. java.net.URL.getFile()
359 returns an empty string but never null.
360
c6a62376
MK
3612004-02-20 Michael Koch <konqueror@gmx.de>
362
363 * gnu/gcj/convert/Convert.java
364 (main): Use equals() to compare strings.
365
9803e3d8
MK
3662004-02-20 Michael Koch <konqueror@gmx.de>
367
368 * javax/swing/AbstractButton.java: Made several constants final.
369 (getRolloverSelectedIcon): Made public.
370 (getSelectedIcon): Made public.
371
cf68baca
PB
3722004-02-16 Per Bothner <per@bothner.com>
373
374 * java/nio/CharBufferImpl.java: Inline super constructor.
375 * java/nio/DoubleBufferImpl.java: Likewise.
376 * java/nio/FloatBufferImpl.java: Likewise.
377 * java/nio/IntBufferImpl.java: Likewise.
378 * java/nio/LongBufferImpl.java: Likewise.
379 * java/nio/ShortBufferImpl.java: Likewise.
380 * java/nio/CharBuffer.java: Remove unused constructor.
381 * java/nio/DoubleBuffer.java: Likewise.
382 * java/nio/FloatBuffer.java: Likewise.
383 * java/nio/IntBuffer.java: Likewise.
384 * java/nio/LongBuffer.java: Likewise.
385 * java/nio/ShortBuffer.java: Likewise.
5693912a
PB
386 * java/nio/CharViewBufferImpl.java: New convenience constructor.
387 Fix buggy call to super constructor.
388 * java/nio/DoubleViewBufferImpl.java: Likewise.
389 * java/nio/FloatViewBufferImpl.java: Likewise.
390 * java/nio/IntViewBufferImpl.java: Likewise.
391 * java/nio/LongViewBufferImpl.java: Likewise.
392 * java/nio/ShortViewBufferImpl.java: Likewise.
35d0b14d
PB
393
394 * java/nio/ByteBuffer.java (endian): Make non-private so other
395 java.nio classes can inherit it.
396 (<init>): Don't bother clearing array_offset.
397 * java/nio/ByteBuffer.java (allocate): Re-implement using wrap.
398 * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow.
399 Remove redundant test.
400
401 * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
402 asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
403 Use new XxxViewBufferImpl constructors.
404 * java/nio/MappedByteBufferImpl.java: Likewise.
405 * java/nio/DirectByteBufferImpl.java: Likewise.
406
407 * java/nio/ByteBufferImpl.java: Remove one constructor.
408 Inline super in remaining constructor.
409 * java/nio/ByteBuffer.java: Remove unused constructor.
410
411 * java/nio/ByteBufferImpl.java (shiftDown): New optimized method.
412
413 * java/nio/ByteBufferImpl.java (get, put): Add array_offset.
414 * java/nio/DirectByteBufferImpl.java (owner): New field.
415 (offset): Remove unused field.
416 (<init>): Modify one and add another constructor. Change callers.
417 (allocateDirect): Removed - not used.
418 (getImpl, putImpl): Make static and pass address explicitly,
419 to make them useful for MappedByteBufferImpl.
420 (get, put): Check for underflow. Modify for new getImpl.
421 (getImpl): New native method where target is array.
422 (get(byte[],int,int)): Use the above.
423 (adjustAddress): New static native method.
424 (slice, duplicate, asReadOnly): New implementations.
425 * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
426 adjustAddress): New or updated native methods.
cf68baca 427
af196754
IK
4282004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>
429
430 * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the
431 overflow of fieldmapping.
432
45cfeb06
SB
4332004-02-14 Sascha Brawer <brawer@dandelis.ch>
434
435 * javax/swing/undo/UndoManager.java: Re-written from scratch.
436
19b17484
PB
4372004-02-14 Per Bothner <per@bothner.com>
438
439 * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):
440 Set closed before calling implCloseChannel, as in the spec.
441
9288d112
GH
4422004-02-09 Graydon Hoare <graydon@redhat.com>
443
444 * javax/swing/ToggleButtonModel.java: Remove dead class.
445 * javax/swing/plaf/basic/BasicDefaults.java: Remove dead class.
446 * javax/swing/plaf/basic/BasicButtonListener.java: New class.
447 * javax/swing/plaf/basic/BasicRootPaneUI.java: New class.
448 * Makefile.am: Update for new and removed files.
449 * Makefile.in: Regenerate.
450
451 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Initialize default hints.
452 * javax/swing/AbstractButton.java
453 (AbstractButton): Initialize fields correctly in ctor.
454 * javax/swing/JCheckbox.java
455 (JCheckBox): Override painting flags.
456 * javax/swing/DefaultButtonModel.java: Conform to sun.
457 * javax/swing/JComponent.java (paint): Fill with background color
458 if available.
459 (processComponentKeyEvent)
460 (processFocusEvent)
461 (processKeyEvent)
462 (processMouseMotionEvent): Remove event-consuming empty methods.
463 (getUIClassID): Return "ComponentUI" not "JComponent"
464 * javax/swing/JFrame.java: Remove some debugging chatter.
465 (JFrame): Subscribe to window events.
466 * javax/swing/JRadioButton.java
467 (JRadioButton): Override painting flags.
468 * javax/swing/JRootPane.java
469 (JRootPane): Set background from UIDefaults.
470 * javax/swing/JToggleButton.java
471 (ToggleButtonModel): New inner class.
472 (JToggleButton): Override layout alighment.
473 * javax/swing/SwingUtilities.java:
474 (getLocalBounds): Return width and height, not x and y.
475 (calculateInnerArea): Use local bounds, not bounds.
476 (layoutCompoundLabel): Provide overridden form.
477 (layoutCompoundLabel): Correct bugs.
478 * javax/swing/UIDefaults.java: Correct comment.
479 * javax/swing/plaf/basic/BasicButtonUI.java:
480 Move most logic into defaults, external listener.
481 (paintIcon): Implement icon painting.
482 (paint): Fix state painting to conform to changes in model.
483 * javax/swing/plaf/basic/BasicCheckBoxUI.java:
484 Remove most dead/wrong methods.
485 (getDefaultIcon): Return defaults.getIcon("CheckBox.icon").
486 * javax/swing/plaf/basic/BasicIconFactory.java:
487 (DummyIcon): New class.
488 (getMenuItemCheckIcon)
489 (getMenuItemArrowIcon)
490 (getMenuArrowIcon)
491 (getCheckBoxMenuItemIcon)
492 (getRadioButtonMenuItemIcon)
493 (createEmptyFrameIcon): Return DummyIcons, not null.
494 (getCheckBoxIcon): Implement an icon that looks like sun's.
495 (getRadioButtonIcon): Implement an icon that looks like sun's.
496 * javax/swing/plaf/basic/BasicLookAndFeel.java
497 (initComponentDefaults): Fix impossible values, add some missing.
498 * javax/swing/plaf/basic/BasicPanelUI.java (gap): Remove field.
499 * javax/swing/plaf/basic/BasicRadioButtonUI.java:
500 Remove most dead/wrong methods.
501 (icon): New field.
502 (getDefaultIcon): New method.
503 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
504 Remove most dead/wrong methods.
505 * javax/swing/plaf/metal/MetalLookAndFeel.java
506 (getDefaults): Return super.getDefaults(), not BasicDefaults.
507 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
508 (Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect):
509 Implement "clearing" as drawing, when on pixmap drawables.
510
511 * javax/swing/JButton.java (getUIClassID):
512 * javax/swing/JCheckBox.java (getUIClassID):
513 * javax/swing/JEditorPane.java (getUIClassID):
514 * javax/swing/JLabel.java (getUIClassID):
515 * javax/swing/JList.java (getUIClassID):
516 * javax/swing/JOptionPane.java (getUIClassID):
517 * javax/swing/JPanel.java (getUIClassID):
518 * javax/swing/JPasswordField.java (uiClassID):
519 * javax/swing/JRadioButton.java (getUIClassID):
520 * javax/swing/JRootPane.java (getUIClassID):
521 * javax/swing/JScrollPane.java (getUIClassID):
522 * javax/swing/JTabbedPane.java (getUIClassID):
523 * javax/swing/JToggleButton.java (getUIClassID):
524 * javax/swing/JTree.java (getUIClassID):
525 * javax/swing/JViewport.java (getUIClassID):
526 * javax/swing/text/JTextComponent.java (getUIClassID):
527 Return "fooUI" not "Jfoo"
528
31d25d83
MK
5292004-02-11 Michael Koch <konqueror@gmx.de>
530
531 * java/net/DatagramSocket.java
532 (setReuseAddress): Use Boolean.valueOf() instead of creating a new
533 Boolean object.
534 (setBroadcast): Likewise.
535 * java/net/MulticastSocket.java
536 (setLoopbackMode): Likewise.
537 * java/net/ServerSocket.java
538 (setReuseAddress): Likewise.
539 * java/net/Socket.java
540 (setTcpNoDelay): Likewise.
541 (setSoLinger): Likewise.
542 (setOOBInline): Likewise.
543 (setKeepAlive): Likewise.
544 (setReuseAddress): Likewise.
545 * java/net/URLConnection.java
546 (setContentHandler): Replace == with equals().
547 * java/net/URLStreamHandler.java
548 (hostSEquals): Fix checking host addresses.
549 (toExternalForm): Dont check protocol for null. We know already its
550 not null.
551
7b38bcac
DJ
5522004-02-10 David Jee <djee@redhat.com>
553
554 * java/awt/BorderLayout.java
555 (calcCompSize): Invisible components get zero dimensions.
556 * java/awt/Button.java
557 (setLabel): Set actionCommand.
558 * java/awt/Component.java
559 (show): Invalidate component and parent container.
560 (hide): Likewise.
561
dcee9e60
DJ
5622004-02-10 David Jee <djee@redhat.com>
563
564 * java/awt/GridBagLayout.java
565 (GridBagLayout): New private field, internalcomptable.
566 (lookupInternalConstraints): New method.
567 (ArrangeGrid): Use components' MINSIZE. Use internalcomptable.
568 (GetLayoutInfo): Reimplement.
569 (calcCellSizes): Ignore rows/columns with size 0.
570
5e673ed8
MK
5712004-02-10 Michael Koch <konqueror@gmx.de>
572
573 * gnu/java/awt/EmbeddedWindow.java
574 (setHandle): Use java.awt.Component.getPeer() instead of
575 java.awt.Component.peer directly.
576
49d77e22
DJ
5772004-02-10 David Jee <djee@redhat.com>
578
579 * gnu/java/awt/peer/gtk/GtkButtonPeer.java
580 (gtkSetLabel): New native method definition.
581 (setLabel): Use gtkSetLabel.
582 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
583 (Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
584
d1d5c836
AM
5852004-02-10 Alan Modra <amodra@bigpond.net.au>
586
587 * include/powerpc-signal.h: Revert 2004-01-21 change.
588 (INIT_SEGV, INIT_FPE): Provide powerpc64 versions. Check return
589 from syscall for ppc32 versions.
590
40c23042
PB
5912004-02-08 Per Bothner <per@bothner.com>
592
593 * java/nio/ByteBuffer.java (shiftDown): New helper method.
594 * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation.
595 * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
596 * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
597 Pass ByteOrder parameter to most methods, since the underlying
598 ByteBuffer's order isn't always what we should use.
599 * java/nio/ByteBufferImpl.java: Pass byte-order various places.
600 * java/nio/DirectByteBufferImpl.java: Likewise.
601 Use ByteBufferHelper methods.
602 * java/nio/MappedByteBufferImpl.java: Likewise.
603 (compact): Use shiftDown.
604 * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
605 (get, put): Use ByteBufferHelper.
606 (compact): Use new shiftDown method.
607 (duplicate(boolean)): New helper method.
608 (duplicate, asReadOnlyBuffer): Use it.
609 (order): Return endian field.
610 * java/nio/DoubleViewBufferImpl.java: Likewise.
611 * java/nio/FloatViewBufferImpl.java: Likewise.
612 * java/nio/IntViewBufferImpl.java: Likewise.
613 * java/nio/LongViewBufferImpl.java: Likewise.
614 * java/nio/ShortViewBufferImpl.java: Likewise.
615 * java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
616 * java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
617 (compact): Re-implement using shiftDown.
618
fb1b37c7
AJ
6192004-02-08 Andreas Jaeger <aj@suse.de>
620
621 * include/x86_64-signal.h: Fix typo.
622
6bdd6070
DN
6232004-02-08 Diego Novillo <dnovillo@redhat.com>
624
625 * include/i386-signal.h (MAKE_THROW_FRAME): Add volatile
626 qualifier to _regs.
18ada71f 627 (HANDLE_DIVIDE_OVERFLOW): Likewise.
6bdd6070 628
3298fd35
MK
6292004-02-06 Michael Koch <konqueror@gmx.de>
630
631 * java/io/ObjectInputStream.java
632 (currentClassLoader): Reverted to old version of this method.
633
2941cc06
JF
6342004-02-06 Jeroen Frijters <jeroen@frijters.net>
635
636 * java/io/ObjectInputStream.java: Made all calls
637 to dumpElement[ln] conditional on dump flag. (readObject): Changed to
638 use cached info from ObjectStreamClass. (readClassDescriptor):
639 Cache more information in ObjectStreamClass. (processResolution,
640 readFields): Use cached info from ObjectStreamClass.
641 (newObject): Throw exception instead of returning null for failure.
642 (getField, getMethod, callReadMethod, setBooleanField, setByteField,
643 setCharField, setDoubleField, setFloatField, setIntField,
644 setLongField, setShortField, setObjectField, readObjectParams):
645 Removed. (dumpElement, dumpElementln): Removed dump flag condition
646 check.
647 * java/io/ObjectStreamField.java (hasReadMethod): Removed.
648 (setClass): Added call to cacheMethods() (findMethod): New method.
649 (cacheMethods): New method. (ObjectStreamClass): Added call to
650 cacheMethods(). (setFields): Cache fields. (getClassUID): Use
651 AccessController.doPrivileged to invoke setAccessible.
652 (readObjectMethod, readResolveMethod, realClassIsSerializable,
653 realClassIsExternalizable, fieldMapping, firstNonSerializableParent):
654 New fields.
655 * java/io/ObjectStreamField.java (ObjectStreamField): New constructor.
656 (ObjectStreamField): Removed FIXME workaround. (getTypeString,
657 isPrimitive): Made safe for cases where type == null.
658 (setBooleanField, setByteField, setCharField, setShortField,
659 setIntField, setLongField, setFloatField, setDoubleField,
660 setObjectField): New methods.
661
bc1ec7f7
TF
6622004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>
663
58206f11
TF
664 * java/awt/Component.java (getFont): Return a default font
665 instead of null.
666
bc1ec7f7
TF
667 * java/awt/Scrollbar.java (next_scrollbar_number): New field.
668 (Scrollbar (int, int, int, int, int)): Make default page
669 increment 10.
670 (setValues): Only call peer.setValues if one of the values has
671 changed.
672 (generateName): New method.
673 (getUniqueLong): New method.
674 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
675 (range_scrollbar): Remove structure.
676 (post_adjustment_event): Remove function.
677 (post_change_event): Accept jobject argument.
678 (create): Cast jints to gdoubles. Round scrollbar values to the
679 nearest integer. Clamp min, max and value settings.
680 (connectJObject): Connect hook to widget->window.
681 (connectSignals): Remove range_scrollbar structure variables.
682 Remove "move-slider" connection. Pass global peer reference to
683 "value-changed" callback.
684 (setLineIncrement): Cast jint value to gdouble.
685 (setPageIncrement): Likewise.
686 (setValues): Likewise. Clamp min, max and value settings.
687
693dcd3d
MK
6882004-02-05 Michael Koch <konqueror@gmx.de>
689
690 * javax/swing/AbstractCellEditor.java
691 (getCellEditorValue): Removed.
692 * javax/swing/Box.java: Reformated.
693 (serialVersionUID): New field.
694 * javax/swing/ButtonGroup.java:
695 Removed some weird whitespace.
696 * javax/swing/CellEditor.java: Reformated.
697 * javax/swing/CellRendererPane.java
698 (serialVersionUID): New field.
699 (AccessibleCellRendererPaneserialVersionUID): New field.
700 * javax/swing/DefaultListModel.java
701 (serialVersionUID): New field.
702 * javax/swing/JEditorPane.java
703 (serialVersionUID): New field.
704 (setPage): Throws IOException.
705 (addHyperlinkListener): Implemented.
706 (removeHyperlinkListener): Implemented.
707 (getHyperlinkListener): New method.
708 * javax/swing/JFileChooser.java
709 (serialVersionUID): New field.
710 (AccessibleJFileChooser.serialVersionUID): New field.
711 (addActionListener): Implemented.
712 (removeActionListener): Implemented.
713 (getActionListeners): New method.
714 * javax/swing/JFormattedTextField.java
715 (serialVersionUID): New field.
716 (AbstractFormatter.serialVersionUID): New field.
717 (clone): Throws CloneNotSupportedException
718 (setEditValid): Add missing argument.
719 (stringToValue): Throws ParseExcpetion.
720 (valueToString): Throws ParseException.
721 (commitEdit): Throws ParseException.
722 * javax/swing/JLabel.java
723 (serialVersionUID): New field.
724 * javax/swing/JList.java
725 (serialVersionUID): New field.
726 (addListSelectionListener): Reformated.
727 (removeListSelectionListener): Reformated.
728 (getListSelectionListeners): New method.
729 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
730 Reformated.
731 (serialVersionUID): New field.
732 * javax/swing/table/AbstractTableModel.java
733 (getValueAt): Removed.
734 (getColumnCount): Removed.
735 (getRowCount): Removed.
736
2d168657
MK
7372004-02-05 Michael Koch <konqueror@gmx.de>
738
739 * java/awt/datatransfer/DataFlavor.java
740 (imageFlavor): Javadoc added.
741 (javaJVMLocalObjectType): Fixed.
742
7959d598
MK
7432004-02-05 Michael Koch <konqueror@gmx.de>
744
745 * java/lang/Thread.java
746 (Thread): Reordered.
747 (setContextClassLoader): Fixed javadoc comment.
748 (setPriority): Reordered.
749 (yield): Reordered.
750 (initialize_native): Reordered.
751 (gen_name): Reordered.
752
5ad13654
MK
7532004-02-05 Michael Koch <konqueror@gmx.de>
754
755 * java/lang/Thread.java: Reordered fields, reformated much code,
756 no functional changes, some variables renamed, javadoc comments
757 merged.
758
6d0c7d7b
MK
7592004-02-05 Michael Koch <konqueror@gmx.de>
760
761 * java/util/zip/Deflater.java,
762 java/util/zip/DeflaterOutputStream.java,
763 java/util/zip/GZIPInputStream.java:
764 Reformated and javadoc comments merged from classpath.
765
99814868
MK
7662004-02-05 Michael Koch <konqueror@gmx.de>
767
768 * gnu/java/nio/NIOServerSocket.java
769 (impl): Unused, removed.
770 * gnu/java/nio/SocketChannelImpl.java
771 (finnishConnect): Don't throw NoConnectionPendingException if not
772 connected or no connection pending.
773
cbc848da
GH
7742004-02-02 Graydon Hoare <graydon@redhat.com>
775
776 * javax/swing/SwingUtilities.java: Many new functions.
777 * java/awt/Container.java (LightweightDispatcher): Reimplement.
778 * javax/swing/basic/BasicGraphicsUtils.java
779 (getPreferredButtonSize): Start layout from top-left corner.
780
e530f370
OR
7812004-02-04 Olga Rodimina <rodimina@redhat.com>
782
783 * java/awt/geom/AffineTransform.java:
784 Corrected comments on the field definitions for
785 m11 and m10.
786 (shear): Fixed few errors that caused shear
787 transformation to be performed incorrectly.
788 (createInverse): Fixed to return correct
789 inverse of the given matrix.
790
2565abce
TT
7912004-02-03 Tom Tromey <tromey@redhat.com>
792
793 * java/lang/natPosixProcess.cc (startProcess): Handle case where
794 PATH or LD_LIBRARY_PATH is not set in parent environment.
795
b6d3cb37
TF
7962004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
797
798 * gnu/java/awt/peer/gtk/GtkListPeer.java,
799 java/awt/BorderLayout.java, java/awt/CardLayout.java,
800 java/awt/CheckboxGroup.java, java/awt/Choice.java,
801 java/awt/Component.java, java/awt/Container.java,
802 java/awt/FontMetrics.java, java/awt/GridBagLayout.java,
803 java/awt/LayoutManager2.java, java/awt/List.java,
804 java/awt/Menu.java, java/awt/MenuBar.java,
805 java/awt/MenuItem.java, java/awt/Polygon.java,
806 java/awt/Rectangle.java, java/awt/ScrollPane.java,
807 java/awt/Scrollbar.java, java/awt/TextArea.java,
808 java/awt/TextField.java,
809 java/awt/image/renderable/RenderContext.java,
810 javax/swing/JApplet.java: Fix handling of alias methods, where a
811 method has been deprecated in favour of a new one with the same
812 funtion but a different name. Put the method implementation in
813 the deprecated method and have the new method call the
814 deprecated one. Make all other code call the new method.
815
8696d927
ME
8162004-02-03 Mohan Embar <gnustuff@thisiscool.com>
817
818 * gnu/java/nio/DatagramChannelImpl.java
819 (inChannelOperation): New field.
820 (isInChannelOperation): New accessor.
821 (setInChannelOperation): New modifier.
822 (receive): Use capacity() - position() of destination
823 buffer instead of remaining(). Set and reset our "in
824 channel operation indicator" before and after delegating
825 the receive to our datagram socket. Removed testing code.
826 Update destination buffer's current position if it is
827 backed by a byte array (hasArray() is true).
828 (send): Set and reset our "in channel operation indicator"
829 before and after delegating the send to our datagram socket.
830 Removed testing code. Update source buffer's current position
831 if it is backed by a byte array (hasArray() is true).
832 * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)):
833 Use capacity() - position() of destination buffer instead
834 of remaining().
835 * java/net/DatagramSocket.java (receive): Don't throw an
836 IllegalBlockingModeException if we have a non-blocking
837 channel which initiated this operation.
838 (send): Likewise.
839
1e567c43
TF
8402004-02-01 Thomas Fitzsimmons <fitzsim@redhat.com>
841
842 * configure.in: Add pkgconfig check for glib and gthread.
843 * configure: Regenerate.
844
3953c057
MK
8452004-02-01 Michael Koch <konqueror@gmx.de>
846
847 * include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
848 arguments.
849 * jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
850 * verify.cc (debug_print): Mark 'fmt' unused.
851
a1ddb355
MK
8522004-01-30 Michael Koch <konqueror@gmx.de>
853
854 * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
855 * configure: Regenerated.
856 * glib-2.0.m4: Removed.
857 * gtk-2.0.m4: Removed.
858 * libart.m4: Removed.
859 * pkg.m4: New file.
860
7dcc98e2
ME
8612004-01-30 Mohan Embar <gnustuff@thisiscool.com>
862
863 * gnu/java/net/PlainSocketImpl.java
864 (inChannelOperation): New field.
865 (isInChannelOperation): New accessor.
866 (setInChannelOperation): New modifier.
867 * gnu/java/nio/ServerSocketChannelImpl.java
868 (accept): Set and reset our server socket's PlainSocketImpl's
869 "in channel operation" indicator before and after delegating
870 the accept to our server socket.
871 * gnu/java/nio/SocketChannelImpl.java
872 (connect): Set and reset our socket's PlainSocketImpl's "in channel
873 operation" indicator before and after delegating the operation to
874 our socket.
875 (read): Likewise.
876 (write): Likewise.
877 * java/net/ServerSocket.java (implAccept): Don't throw an
878 IllegalBlockingModeException if we have a non-blocking
879 channel which initiated this accept operation.
880 * java/net/Socket.java (connect): Don't throw an
881 IllegalBlockingModeException if we have a non-blocking
882 channel which initiated this connect operation.
883 * java/nio/channels/spi/AbstractSelectableChannel.java
884 (configureBlocking): Only call implConfigureBlocking() if
885 the desired blocking mode is different from our current one.
886
ae30b3b2
ME
8872004-01-29 Mohan Embar <gnustuff@thisiscool.com>
888
889 * java/io/BufferedReader.java (sbuf): New field.
890 (readLine): Use String.valueOf instead of new String() as per
891 Per Bothner's suggestion. Use instance sbuf field instead of a
892 local StringBuffer instance.
893 * java/io/InputStreamReader.java (read(char[],int,int)): Pass the
894 caller's buffer to refill().
895 (read(void)): Pass our internal work buffer to refill if our
896 input queue is empty.
897 (refill): Changed return type to int. Use the specified buffer
898 instead of our work buffer as per Bryce McKinlay's suggestion.
899 Return the number of characters read or -1 for EOF.
900
bc6fd088
SG
9012004-01-29 Scott Gilbertson <scottg@mantatest.com>
902
903 * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
904
bffff257
SG
9052004-01-29 Scott Gilbertson <scottg@mantatest.com>
906
907 * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
908 * Makefile.in: Re-generated.
909 * gnu/awt/xlib/XFontPeer.java: New file.
910 * gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
911 (setClip): Commented out debug printout.
912 * gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
913 (getFontPeer): Return XFontPeer.
914 (getLocalGraphicsEnvironment): New method.
915 (getClasspathFontPeer): New method.
916 (createFont): New method.
917
ef989927
SG
9182004-01-29 Scott Gilbertson <scottg@mantatest.com>
919
920 * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
921 return null.
922
5efa7640
KH
9232004-01-29 Kim Ho <kho@redhat.com>
924
925 * gnu/java/awt/peer/gtk/GtkFramePeer.java
926 (gtkLayoutSetVisible): New method
927 (setMenuBar): Hide layout before setting MenuBar
928 and reshow it after.
929 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
930 (gtkLayoutSetVisible): Hide or show the Gtk Layout.
931
a54ca8cf
MK
9322004-01-28 Michael Koch <konqueror@gmx.de>
933
934 * gnu/java/lang/ClassHelper.java
935 (getPackagePortion): Removed.
936
4f90e1c5
MK
9372004-01-28 Michael Koch <konqueror@gmx.de>
938
939 * javax/swing/JComponent.java
940 (listenerList): Initalize globally.
941 (ancestor_list): Removed.
942 (veto_list): Removed.
943 (change_list): Removed.
944 (get_veto_list): Removed.
945 (get_change_list): Removed.
946 (get_ancestor_list): Removed.
947 (removeAncestorListener): Reimplemented.
948 (removePropertyChangeListener): Likewise.
949 (removeVetoableChangeListener): Likewise.
950 (addAncestorListener): Likewise.
951 (addPropertyChangeListener): Likewise.
952 (addVetoableChangeListener): Likewise.
953 (getListeners): New method.
954 (getAncestorListeners): Likewise.
955 (getVetoableChangeListeners): Likewise.
956 (fireVetoableChange): Throws PropertyVetoException.
957 * javax/swing/JEditorPane.java
958 (JEditorPane): Throws IOException.
959
796e87a2
DJ
9602004-01-28 David Jee <djee@redhat.com>
961
962 * gnu/java/awt/peer/gtk/GtkFramePeer.java
963 (create): Set the default foreground color to
964 java.awt.SystemColor.windowText.
965
272c310d
MK
9662004-01-27 Michael Koch <konqueror@gmx.de>
967
968 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
969 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
970 Reindented to merge with classpath.
971
f2919ef3
DJ
9722004-01-27 David Jee <djee@redhat.com>
973
974 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
975 (addExposeFilter): Handle GtkFramePeer separately.
976 (removeExposeFilter): Likewise.
977
128d8364
MK
9782004-01-27 Michael Koch <konqueror@gmx.de>
979
980 * gnu/java/net/protocol/http/Connection.java
981 (getOutputStream): Fixed typo.
982
f79b7708
MK
9832004-01-27 Michael Koch <konqueror@gmx.de>
984
985 * java/lang/Class.java
986 (getConstructor): Removed SecurityException from throws clause.
987 (_getConstructors): Likewise.
988 (getConstructors): Likewise.
989 (getDeclaredConstructor): Likewise.
990 (getDeclaredClasses): Likewise.
991 (getDeclaredConstructors): Likewise.
992 (getDeclaredField): Likewise.
993 (getDeclaredMethod): Likewise.
994 (getDeclaredMethods): Likewise.
995 (getField): Likewise.
996 (getMethod): Likewise.
997 (getMethods): Likewise.
998
e300e74f
KH
9992004-01-27 Kim Ho <kho@redhat.com>
1000
1001 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1002 (removeMenuBarPeer): Remove MenuBarPeer argument.
1003 * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
1004 (dispose): Call native method.
1005 * java/awt/Frame.java (setMenuBar): Create and remove
1006 MenuBar peers only if the Frame has a peer.
1007 (addNotify): Create the MenuBar peer if one exists.
1008 (removeNotify): Remove MenuBar peer if one exists.
1009 * java/awt/Menu.java: Fix imports.
1010 (addNotify): Don't use full class name.
1011 (removeNotify): Call removeNotify on all children.
1012 * java/awt/MenuBar.java (removeNotify): Call
1013 removeNotify on all children.
1014 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1015 (removeMenuBarPeer): Remove MenuBarPeer argument.
1016 Iterate through children to find the Frame's MenuBar.
1017 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c
1018 New file.
1019 (dispose): Remove references to the MenuComponent.
1020
d6c7ebd5
MK
10212004-01-27 Michael Koch <konqueror@gmx.de>
1022
1023 * javax/swing/AbstractCellEditor.java: Reformated.
1024 * javax/swing/DefaultListSelectionModel.java
1025 (listenerList): Made protected.
1026 (addListSelectionListener): Javadoc added.
1027 (removeListSelectionListener): Likewise.
1028 (getListeners): Likewise.
1029 (getListSelectionListeners): Likewise.
1030 * javax/swing/JComboBox.java: Merged copyright year.
1031 * javax/swing/plaf/basic/BasicGraphicsUtils.java: Merged empty line.
80d4281f 1032
dbc2d642
AH
10332004-01-26 Andrew Haley <aph@redhat.com>
1034
1035 * javax/swing/table/JTableHeader.java: Extend JComponent
1036
f2565037
KH
10372004-01-26 Kim Ho <kho@redhat.com>
1038
1039 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar):
1040 Fix spacing.
1041
57e13917
KH
10422004-01-26 Kim Ho <kho@redhat.com>
1043
1044 * gnu/java/awt/peer/gtk/GtkFramePeer.java (moveLayout): New
1045 method.
1046 (setMenuBar): Shift the Gtk layout up/down by the MenuBar
1047 height and let the Layout Managers readjust anything that
1048 needs to move.
1049 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1050 (moveLayout): New method. Shift everything in the Gtk
1051 layout in the Y direction by an offset.
1052
7edbd87e
DJ
10532004-01-26 David Jee <djee@redhat.com>
1054
1055 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1056 (handleEvent): Implemented. Handles PaintEvents.
1057 (paint): Implemented. Use GTK native methods to queue updates
1058 for this heavyweight peer.
1059 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1060 (handleEvent): Removed.
1061 * java/awt/Component.java
1062 (paint): Implemented. Explictly paint the heavyweight peer.
1063 (update): Clear the background for heavyweight components.
1064 (paintAll): No need to call peer.paint() anymore.
1065 (processEvent): Don't process PaintEvents here. It's now done in
1066 the peer's handleEvent().
1067 (processPaintEvent): Removed.
1068 * java/awt/Container.java
1069 (paint): No need to call super.paint(). Visit heavyweight
1070 children as well.
1071 (update): Don't clear the background here. It's done in
1072 Component.update().
1073 (visitChildren): Added check to not recurse into Containers.
1074 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1075 (filter_expose_event_handler): New method. Filter unwanted
1076 expose events while painting heavyweight peers.
1077 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1078 New method. Connect filter and block pre_event_handler.
1079 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1080 New method. Disconnect filter and unblock pre_event_handler.
1081 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
1082 New method. Invalidate and update given area.
1083 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1084 (pre_event_handler): Add checks for unwanted expose events.
1085
81a88a61
DJ
10862004-01-26 David Jee <djee@redhat.com>
1087
1088 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1089 (find_bg_color_widget): For GtkButton, return its child.
1090
ecf67f46
KH
10912004-01-26 Kim Ho <kho@redhat.com>
1092
1093 * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
1094 private.
1095 (setMenuBar): Grab MenuBar height and change insets.
1096 (setBounds): Account for MenuBar height.
1097 (postInsetsChangedEvent): Ditto.
1098 (postSizeAllocateEvent): Remove.
1099 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1100 (menubar_resize_cb): Remove
1101 (setMenuBarPeer): Remove callback.
1102 (getMenuBarHeight): Use size requisition instead of
1103 allocation.
1104
062732fd
TF
11052004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
1106
1107 * java/awt/TextArea.java: Fix indentation. Flesh out javadocs.
1108 (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0)
1109 when peer is null.
1110 (setColumns): Remove FIXME -- peer will retrieve number of
1111 columns by calling getColumns.
1112 (setRows): Likewise for number of rows.
1113 (next_text_number): New field.
1114 (paramString): Fix param string.
1115 (generateName): New method.
1116 (getUniqueLong): New method.
1117
0058a7d8
TF
11182004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>
1119
1120 * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage): Inform
1121 image observer of image loading status.
1122 (getImage (String)): Start image production.
1123 (getImage (URL)): Likewise.
1124
135f54eb
MK
11252004-01-25 Michael Koch <konqueror@gmx.de>
1126
1127 * java/lang/Class.java: Imports reworked, reformated.
1128 (Class): Javadoc added.
1129 (forName): Likewise.
1130 (getClasses): Likewise.
1131 (getClassLoader): Likewise.
1132 (getComponentType): Likewise.
1133 (getConstructor): Likewise.
1134 (getConstructors): Likewise.
1135 (getDeclaredConstructor): Likewise.
1136 (getDeclaredClasses): Likewise.
1137 (getDeclaredConstructors): Likewise.
1138 (getDeclaredField): Likewise.
1139 (getDeclaredMethod): Likewise.
1140 (getDeclaredMethods): Likewise.
1141 (getDeclaringClass): Likewise.
1142 (getField): Likewise.
1143 (getInterfaces): Likewise.
1144 (getMethod): Likewise.
1145 (getMethods): Likewise.
1146 (getModifiers): Likewise.
1147 (getName): Likewise.
1148 (getResource): Likewise.
1149 (getResourceAsStream): Likewise.
1150 (getSigners): Likewise.
1151 (setSigners): Likewise.
1152 (getSuperclass): Likewise.
1153 (isArray): Likewise.
1154 (isAssignableFrom): Likewise.
1155 (isInstance): Likewise.
1156 (isInterface): Likewise.
1157 (isPrimitive): Likewise.
1158 (newInstance): Likewise.
1159 (getProtectionDomain): Likewise.
1160 (toString): Likewise.
1161 (Class): Moved.
1162 (initializeClass): Likewise.
1163 (finalize): Likewise.
1164
8cd2bdca
MK
11652004-01-24 Michael Koch <konqueror@gmx.de>
1166
1167 * gnu/java/net/protocol/jar/Connection.java
1168 (hdrHash): Removed.
1169 (hdrVec): Removed.
1170 (gotHeaders): Removed.
1171 (getHeaderField): Removed.
1172 (getHeaderFields): Removed.
1173 (getHeaderFieldKey): Removed.
1174 (getKey): Removed.
1175 (getField): Removed.
1176 (getHeaders): Removed.
1177
b5142d8a
MK
11782004-01-24 Michael Koch <konqueror@gmx.de>
1179
1180 * Makefile.am: Added library version to gtk peer lib.
1181 * Makefile.in: Regenerated.
1182
030c1e23
MK
11832004-01-24 Michael Koch <konqueror@gmx.de>
1184
1185 * java/util/zip/InflaterInputStream.java: Merged class documentation
1186 with classpath.
1187
02731d29
JJ
11882004-01-21 Jakub Jelinek <jakub@redhat.com>
1189
1190 * include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
1191 header. For __powerpc64__ provide the default-signal.h definitions
1192 for now.
1193 * include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
1194 instead of the dummy definitions.
1195 * configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
1196 (powerpc64*-*): Remove with_libffi_default.
1197 Only add -mminimal-toc for 64-bit compilations.
1198 * configure.in: Use powerpc-signal.h on powerpc64 as well.
1199 (x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
1200 Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
1201 * configure: Rebuilt.
1202
69f2de23
MK
12032004-01-23 Michael Koch <konqueror@gmx.de>
1204
1205 * gnu/java/nio/FileLockImpl.java: Compile fixes.
1206
f1184d57
MK
12072004-01-23 Michael Koch <konqueror@gmx.de>
1208
0791cb20 1209 * java/lang/VMClassLoader.java: Reworked imports.
135f54eb 1210
0791cb20
MK
12112004-01-23 Michael Koch <konqueror@gmx.de>
1212
f1184d57
MK
1213 * javax/swing/AbstractAction.java: Reformated.
1214
f0bf056e
MK
12152004-01-23 Michael Koch <konqueror@gmx.de>
1216
1217 * java/text/CollationElementIterator.java:
1218 (setText): New method.
1219
9719e37c
MK
12202004-01-23 Michael Koch <konqueror@gmx.de>
1221
1222 * gnu/java/nio/FileLockImpl.java:
1223 Fixed filename in copyright.
1224 (released): Removed.
1225 (finalize): New method.
1226 * gnu/java/nio/natFileLockImpl.cc
1227 (releaseImpl): Implemented.
1228 * java/nio/channels/FileChannelImpl.java:
1229 Reworked imports.
1230 (lock): Implemented.
1231 (lockImpl): New method.
1232 (tryLock): Implemented.
1233 (tryLockImpl): New method.
1234 * java/nio/channels/natFileChannelImpl.cc
1235 (lockImpl): New method.
1236 (tryLockImpl): New method.
1237
ca1d829f
MK
12382004-01-23 Michael Koch <konqueror@gmx.de>
1239
1240 * java/io/FileDescriptor.java
1241 (lock): New method.
1242 (tryLock): New method.
1243 (unlock): New method.
1244 * java/io/natFileDescriptorEcos.cc
1245 (lock): New method.
1246 (tryLock): New method.
1247 (unlock): New method.
1248 * java/io/natFileDescriptorPosix.cc
1249 (lock): New method.
1250 (tryLock): New method.
1251 (unlock): New method.
1252 * java/io/natFileDescriptorWin32.cc
1253 (lock): New method.
1254 (tryLock): New method.
1255 (unlock): New method.
1256
55777f44
MK
12572004-01-23 Michael Koch <konqueror@gmx.de>
1258
1259 * java/io/FileDescriptor.java
1260 (sync): Moved around, added javadoc.
1261 (valid): Likewise.
1262 (open): Likewise.
1263 (write): Likewise.
1264 (close): Likewise.
1265 (setLength): Likewise.
1266 (seek): Likewise.
1267 (getLength): Likewise.
1268 (getFilePointer): Likewise.
1269 (read): Likewise.
1270 (available): Likewise.
1271 (finalize): Likewise.
1272
3ac55a5a
MK
12732004-01-23 Michael Koch <konqueror@gmx.de>
1274
1275 * javax/swing/AbstractAction.java: Reformated.
1276 (getPropertyChangeListeners): New method.
1277 * javax/swing/AbstractCellEditor.java: Reformated.
1278 (getCellEditorListeners): New method.
1279 * javax/swing/DefaultListSelectionModel.java
1280 (listenerList): New field.
1281 (listeners): Removed.
1282 (get_listeners): Removed.
1283 (addListSelectionListener): Rewritten.
1284 (removeListSelectionListener): Rewritten.
1285 (getListSelectionListeners): New method.
1286 (getListeners): New method.
1287 * javax/swing/JComboBox.java: Imports reworked.
1288 (addActionListener): Implemented.
1289 (removeActionListener): Implemented.
1290 (addItemListener): Implemented.
1291 (removeItemListener): Implemented.
1292 (addPopupMenuListener): Implemented.
1293 (removePopupMenuListener): Implemented.
1294 (getActionListeners): New method.
1295 (getItemListeners): New method.
1296 (getPopupMenuListeners): New method.
1297
5d7b2198
MK
12982004-01-23 Michael Koch <konqueror@gmx.de>
1299
1300 * gnu/java/net/protocol/http/Connection.java
1301 (connect): Don't initialize bufferedOutputStream if not needed.
1302 (sendRequest): Set property for content length if content is present.
1303 Write content only if present.
1304 (getOutputStream): Check if already connected, dont connect,
1305 initalize bufferedOutputStream if needed.
1306
8fac50e0
MK
13072004-01-23 Michael Koch <konqueror@gmx.de>
1308
1309 * java/io/FileDescriptor.java
1310 (in, out, err): Added javadoc.
1311 (static): Merged loading code.
1312 (fd, position): Moved around.
1313
58cc4789
MK
13142004-01-23 Michael Koch <konqueror@gmx.de>
1315
1316 * gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
1317 New file.
1318
834d51fe
MK
13192004-01-23 Michael Koch <konqueror@gmx.de>
1320
1321 * java/lang/Class.java,
1322 java/lang/Object.java,
1323 java/lang/Thread.java: Merged copyright with classpath.
1324
a36d3fe4
MK
13252004-01-23 Michael Koch <konqueror@gmx.de>
1326
1327 * java/io/FileDescriptor.java: Merged copyright with classpath to
1328 start merging this class.
1329
fe1081b0
TT
13302004-01-22 Tom Tromey <tromey@redhat.com>
1331
1332 PR libgcj/13107:
1333 * testsuite/libjava.lang/pr13107_2.xfail: New file.
1334 * testsuite/libjava.lang/pr13107_3.xfail: New file.
1335 * testsuite/libjava.lang/pr13107_3.java: New file.
1336 * testsuite/libjava.lang/pr13107_3.out: New file.
1337 * testsuite/libjava.lang/pr13107_2.java: New file.
1338 * testsuite/libjava.lang/pr13107_2.out: New file.
1339 * testsuite/libjava.lang/pr13107.java: New file.
1340 * testsuite/libjava.lang/pr13107.out: New file.
1341 * verify.cc (jsr_ptrs): Removed.
1342 (entry_points): Likewise.
1343 (struct subr_info): Likewise.
1344 (struct subr_entry_info): Likewise.
1345 (type_val::unused_by_subroutine_type): Likewise.
1346 (type::merge): Don't handle unused_by_subroutine_type.
1347 (type::print): Likewise.
1348 (state::flags): Removed.
1349 (state::subroutine): Likewise.
1350 (state::seen_subrs): Likewise.
1351 (state::NO_STACK): Likewise.
1352 (state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
1353 (state): Updated all methods.
1354 (state::clean_subrs): Removed.
1355 (state::state): Removed `ret_semantics' flag.
1356 (state::copy): Likewise.
1357 (state::add_subr): Removed.
1358 (state::enter_subroutine): Likewise.
1359 (type::set_return_address): New method.
1360 (handle_jsr_insn): Set return address on the type. Always
1361 invalidate PC after call.
1362 (check_nonrecursive_call): Removed.
1363 (~_Jv_BytecodeVerifier): Updated.
1364 (branch_prepass): Removed special handling of jsr.
1365 (note_branch_target): Likewise.
1366 (get_subroutine): Removed.
1367 (state::merge): Don't merge subroutines and don't handle
1368 NO_STACK. Removed ret_semantics and jsr_semantics arguments.
1369 (state::note_variable): Removed.
1370 (state::is_unmerged_ret_state): Likewise.
1371 (state::print): Updated.
1372 (set_variable): Likewise.
1373 (merge_into): Renamed from push_jump_merge. Removed ret_semantics
1374 and jsr_semantics arguments. Updated for new reverification
1375 list.
1376 (pop_jump): Rewrote.
1377 (construct_primitive_array_type): Updated.
1378 (state::next): Removed.
1379 (INVALID_STATE): New define.
1380 (state::INVALID): Removed.
1381 (state::NO_NEXT): New value.
1382 (state::pc, state::next): New fields.
1383 (state::get_pc): New method.
1384 (next_verify_pc): Removed.
1385 (next_verify_state): New field.
1386 (verify_instructions_0): Always check for falling off end.
1387 (linked): New type.
1388 (linked_utf8): Removed.
1389 (states): Changed type.
1390 (type::state_mergeable_p): New method.
1391 (state::state_mergeable_p): Likewise.
1392 (handle_ret_insn): Removed most code.
1393 (state::reverify): New method.
1394 (add_new_state): Likewise.
1395 (state::set_pc): Likewise.
1396
f8f689a5
JS
13972004-01-22 Jeff Sturm <jsturm@one-point.com>
1398
1399 PR java/13733
1400 * testsuite/libjava.compile/PR13733.java: New file.
1401 * testsuite/libjava.compile/PR13733.xfail: New file.
1402
0dce1c0f
AV
14032004-01-22 Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
1404 Michael Koch <konqueror@gmx.de>
1405
1406 * javax/swing/table/DefaultTableCellRenderer.java
1407 (DefaultTableCellRenderer): Added javadoc for the class and for
1408 the constructor, Border instance, create an EmptyBorder.
1409 (UIResource): Removed the comment at the end of the class
1410 (setForeground): New method.
1411 (setBackground): New method.
1412 (updateUI): New method.
1413 (getTableCellRendererComponent): Rewritten with the help of
1414 dvholten and Stephane Meslin-Weber.
1415 (validate): New method.
1416 (repaint): New method.
1417 (firePropertyChange): New method.
1418 (setValue): New method.
1419
9deab0b7
TF
14202004-01-22 Thomas Fitzsimmons <fitzsim@redhat.com>
1421
1422 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1423 (connectJObject): Replace printf calls with g_assert statements.
1424 Move property-notify-event signal connection to ...
1425 (connectSignals): Connect property-notify-event signal. Iterate
1426 through the vbox's children to find layout.
1427
ca3bb0c2
GH
14282004-01-22 Graydon Hoare <graydon@redhat.com>
1429
1430 * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java:
1431 * gnu/java/awt/peer/gtk/GdkGlyphVector.java:
1432 Predicate static initialization on GtkToolkit.useGraphics2D().
1433 * java/awt/Component.java (processPaintEvent): Consume event.
1434 * javax/swing/AbstractButton.java: Reimplement, document.
1435 * javax/swing/DefaultButtonModel.java: Reimplement, document.
1436 * javax/swing/JComponent.java (paint): Use double buffer.
1437 (listenerList): Enable member.
1438 * javax/swing/ToggleButtonModel.java: Remove incorrect constructor.
1439 * javax/swing/JToggleButton.java
1440 (JToggleButton): Modify model constructor.
1441 * javax/swing/SwingUtilities.java
1442 (layoutCompoundLabel): Adjust arithmetic.
1443 * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document.
1444 * javax/swing/plaf/basic/BasicGraphicsUtils.java
1445 (getPreferredButtonSize): Include margins in calculation.
1446 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1447 (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals):
1448 Receive up events from subordinate layout component.
1449
75ef0594
TF
14502004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1451
1452 * java/awt/Component.java (show): Set visible to true before
1453 showing the peer.
1454
2bd408db
KH
14552004-01-21 Kim Ho <kho@redhat.com>
1456
1457 * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
1458 Fix comments.
1459 (removeMenuBarPeer): Make package private.
1460 (setMenuBarPeer): Make package private.
1461 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1462 (menubar_resize_cb): Mark attributes unused.
1463 (getMenuBarHeight): ditto.
1464
3f07b288
DJ
14652004-01-21 David Jee <djee@redhat.com>
1466
1467 * java/awt/Container.java
1468 (LightweightDispatcher.handleEvent): Add an extra check to avoid
1469 dispatching MOUSE_ENTERED event twice. Translate the point for
1470 the mouse event target before dispatching the event.
1471
d5d2603f
JJ
14722004-01-20 Jakub Jelinek <jakub@redhat.com>
1473
1474 * Makefile.am (lib_org_w3c_dom_la_LIBADD,
1475 lib_org_w3c_dom_la_LDFLAGS): New.
1476 (lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
1477 * Makefile.in: Rebuilt.
1478
cbc63517
TF
14792004-01-20 Thomas Fitzsimmons <fitzsim@redhat.com>
1480
c01c1437
TF
1481 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
1482 Calculate proper offsets for heavyweight components packed in
1483 lightweight containers.
1484
90115017
TF
1485 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1486 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1487 (native create): Add width parameter.
1488 (create): Calculate text entry width based on current font's
1489 metrics and number of columns. Set TextField's font if not
1490 already set. Call native create.
1491 (gtkEntryGetBorderWidth): New native method.
1492 (gtkEntryGetSize): Remove method.
1493 (getMinimumSize): Call minimumSize.
1494 (getPreferredSize): Call preferredSize.
1495 (minimumSize): Calculate minimum size based on backing
1496 GtkEntry's borders, font metrics and number of columns.
1497 (preferredSize): Likewise for preferred size.
1498 (get_border_width): New static function.
1499
cbc63517
TF
1500 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1501 Override GtkWindowPeer's setResizable method to account for menu
1502 bar height when setting the frame's size.
1503
ee6d1619
MK
15042004-01-19 Matthias Klose <doko@debian.org>
1505
1506 * libtool-version: Increased `current' to 6.
1507
a2708c12
KH
15082004-01-19 Kim Ho <kho@redhat.com>
1509
1510 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1511 (connectJObject): Iterate through the vbox's children to find layout.
1512
6fdab8cc
FN
15132004-01-19 Fernando Nasser <fnasser@redhat.com>
1514
1515 * java/awt/EventQueue.java (invokeAndWait): Use list-aware
1516 isDispatchThread method to replace wrong test condition.
1517
605d10f7
FN
15182004-01-19 Fernando Nasser <fnasser@redhat.com>
1519
1520 * java/awt/EventQueue.java (pop): Prevent racing condition to add
1521 events to the queue out of order by acquiring locks in the proper
1522 order and not by releasing one before acquiring the other.
1523
8f9f8d71
FN
15242004-01-19 Fernando Nasser <fnasser@redhat.com>
1525
1526 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
1527 visible so that dialog can be reused.
1528
aadc6da0
FN
15292004-01-19 Fernando Nasser <fnasser@redhat.com>
1530
1531 * java/awt/EventQueue.java (getCurrentEvent): Consider that system
1532 events may be handled by any queue in the stack.
1533
2c20a171
KH
15342004-01-19 Kim Ho <kho@redhat.com>
1535
1536 * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
1537 MenuBarPeer parameter.
1538 (removeMenuBarPeer): New native method.
1539 (setMenuBar): Call remove if menu bar is null. Adjust insets
1540 appropriately.
1541 (postSizeAllocateEvent): New method. Called when menu bar size is
1542 allocated. Adjust insets and redo layout.
1543 (GtkFramePeer): Set menu bar during frame creation.
1544 (postConfigureEvent): Adjust position and size to accomodate
1545 menu bar.
1546 * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
1547 * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
1548 (addNotify): Create the peer if it doesn't exist and call addNotify
1549 for the menu's items.
1550 * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
1551 * java/awt/MenuItem.java (addNotify): Create the peer if it
1552 doesn't exist.
1553 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1554 (removeMenuBarPeer): New method. Remove menu bar on the current
1555 frame.
1556 (setMenuBarPeer): Add the menu bar to the current frame and the
1557 callback for size-allocate events on the menu bar.
1558 (getMenuBarHeight): Add menu bar parameter.
1559 (menubar_resize_cb): New callback method for postSizeAllocate events.
1560
1561 Also: Fix indentation on last ChangeLog entry.
1562
9543baba
KH
15632004-01-16 Kim Ho <kho@redhat.com>
1564
2c20a171
KH
1565 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1566 (gtkWidgetGetDimensions): Remove.
1567 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1568 (gtkWidgetGetDimensions): Remove.
9543baba 1569
b54a2715
TT
15702004-01-16 Tom Tromey <tromey@redhat.com>
1571
d440f642
TT
1572 * java/awt/Container.java: Typo and indentation fixes.
1573
b54a2715
TT
1574 * java/lang/natClassLoader.cc: Moved VMClassLoader methods...
1575 * java/lang/natVMClassLoader.cc: ...here. New file.
1576 * Makefile.in: Rebuilt.
1577 * Makefile.am (nat_source_files): Added natVMClassLoader.cc.
1578
2f9c39f8
FN
15792004-01-16 Fernando Nasser <fnasser@redhat.com>
1580
1581 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
1582 Discard GDK_ENTER_NOTIFY related to ungrabs.
1583
da1c22e1
FN
15842004-01-16 Fernando Nasser <fnasser@redhat.com>
1585
1586 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
1587 is called for an intermediate queue.
1588
eae433e9
TF
15892004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
1590
1591 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1592 (window_property_changed_cb): Set id_set.
1593
2b8deefa 15942004-01-16 Kim Ho <kho@redhat.com>
eae433e9 1595
2b8deefa 1596 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
eae433e9
TF
1597 it is a FileDialog and has dimensions of 0 by 0, then the initial
1598 size is set to size request plus insets.
1599 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1600 (gtkWidgetGetDimensions): Override method.
1601 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1602 (gtkWidgetGetDimensions): Override method. Returns size request plus
1603 insets.
2b8deefa 1604
a3fe7b56
AH
16052004-01-16 Andrew Haley <aph@redhat.com>
1606
1607 * sysdep/x86-64/locks.h: Don't use in/out memory constraints.
1608 * sysdep/i386/locks.h: Likewise.
1609
101900aa
FN
16102004-01-16 Fernando Nasser <fnasser@redhat.com>
1611
1612 * java/awt/EventDispatchThread.java (run): Stop running when
1613 interrupted.
1614 * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
1615 Reset the queue after transferring its contents.
1616 (push): Start a new dispatch thread if none is running.
1617
f30dbd20
OR
16182004-01-16  Olga Rodimina <rodimina@redhat.com>
1619
1620 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1621 (doPolygon): set fill rule of polygon to
1622 WIND_EVEN_ODD by default.
1623
b1231017
OR
16242004-01-15 Olga Rodimina <rodimina@redhat.com>
1625
1626 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
1627 Implemented rendering hints related methods.
1628 (getDefaultHints): New helper method. Returns
1629 default rendering hints.
1630 (walkPath): changed to normalize path if
1631 the KEY_STROKE_CONTROL key is in "normalize" mode.
1632 (draw3DRect): changed coordinates of rectangle by +0.5
1633 if in "normalize" mode.
1634
e18243dd
TT
16352004-01-15 Tom Tromey <tromey@redhat.com>
1636
1637 * Makefile.in: Rebuilt.
1638 * Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
1639 (%.lo: %.java) Filter out StackTrace.lo.
1640
d5b2f1be
KC
16412004-01-14 Kelley Cook <kcook@gcc.gnu.org>
1642
1643 * configure.in: Add in AC_PREREQ(2.13)
1644 * libltdl/configure.ac: Update to AC_PREREQ(2.57). Delete
1645 FIXME comment.
1646
092b50e2
NB
16472004-01-14 Nathan Bryant <nbryant@optonline.net>
1648 Tom Tromey <tromey@redhat.com>
1649
1650 PR libgcj/12001:
1651 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Pass empty
1652 array to superclass.
1653 (init): Changed interface; add URLs here.
1654 (initialize): New static method.
1655 * prims.cc (_Jv_CreateJavaVM): Initialize ClassLoader here...
1656 (_Jv_RunMain): ... not here.
1657
b3e5b452
MK
16582004-01-14 Michael Koch <konqueror@gmx.de>
1659
1660 * java/text/MessageFormat.java:
1661 Added descriptions to exceptions.
1662 This fixes PR libgcj/2429.
1663
25c3f7c8
FN
16642004-01-13 Fernando Nasser <fnasser@redhat.com>
1665
1666 * java/awt/EventQueue.java (isDispatchThread): Do check on top of stack.
1667 (push): Make sure push is performed at the top of the thread stack.
092b50e2 1668
9e2c04c5
TF
16692004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1670
1671 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
1672 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
1673 (native create): Add width and height parameters. Set text
1674 view's size request according to new parameters.
1675 (create): Calculate text view size based on current font's
1676 metrics and number of rows and columns. Set TextArea's font if
1677 not already set. Call native create.
1678 (getMinimumSize): Call minimumSize.
1679 (getPreferredSize): Call preferredSize.
1680 (getHScrollbarHeight): New method.
1681 (getVScrollbarWidth): New method.
1682 (minimumSize): Calculate minimum size based on scrollbar
1683 visibility, scrollbar sizes, font metrics and number of rows and
1684 columns.
1685 (preferredSize): Likewise for preferred size.
1686 (gtkTextGetSize): Remove method.
1687
db19e39b
TF
16882004-01-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1689
1690 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1691 (initializeInsets): Remove method.
1692 (GtkComponentPeer): Initialize insets field. Remove call to
1693 initializeInsets.
1694 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
1695 Remove method.
1696 * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
1697 Remove method.
1698 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1699 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
1700 (latestInsets): Remove field.
1701 (native create): Add insets parameter. Call
1702 window_get_frame_extents. Set the window's default size and
1703 size request based on its frame extents.
1704 (create): Initialize insets.
1705 (postInsetsChangedEvent): New method.
1706 (postConfigureEvent): Remove parameters top, left, bottom,
1707 right. Remove insets-related logic.
1708 (connectJObject): Handle property-notify-event.
1709 (window_get_frame_extents, request_frame_extents,
1710 property_notify_predicate, window_property_changed_cb): New
1711 static functions.
1712 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
1713 (pre_event_handler): Remove insets-related logic for configure
1714 events.
1715 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit):
1716 Update postConfigureEvent signature.
1717
25c3f7c8 17182004-01-13 Fernando Nasser <fnasser@redhat.com>
81c740ba
FN
1719
1720 * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
1721 to handle Window "Closing" events.
1722
e6cca488
DJ
17232004-01-13  David Jee  <djee@redhat.com>
1724
1725 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
1726 (setBackground): New method. Children with no explicitly-set
1727 background will be repainted with the parent container's new
1728 background color.
1729
17302004-01-13  David Jee  <djee@redhat.com>
1731
1732 * Makefile.am: Add BitwiseXORComposite.java.
1733 * Makefile.in: Regenerated.
1734 * gcj/Makefile.in: Regenerated.
1735 * include/Makefile.in: Regenerated.
1736 * testsuite/Makefile.in: Regenerated.
1737
e5baf3bd
FN
17382004-01-12 Fernando Nasser <fnasser@redhat.com>
1739
1740 * gnu/java/awt/peer/gtk/TestAWT.java: Fix test program so that it does
1741 not show modal dialogs twice and so that it allows showing a modal
1742 dialog from another modal dialog.
1743
cc11dca9
FN
17442004-01-12 Fernando Nasser <fnasser@redhat.com>
1745
1746 * java/awt/Dialog.java (show): Enable blocking for all modal dialogs
1747 and run secondary dispatch thread to process event queue while this
1748 thread is blocked.
1749
55db8fa9
GH
17502004-01-12 Graydon Hoare <graydon@redhat.com>
1751
1752 * gnu/java/awt/gtk/GdkGraphics2D.java
1753 (static): Check GtkToolkit before initializing static state.
1754 (Graphics2D): Don't construct transform with 0.5 unit offset.
1755
17562003-11-06 Sascha Brawer <brawer@dandelis.ch>
1757
1758 * gnu/java/awt/BitwiseXORComposite.java: Add.
1759 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1760 (setXORMode): Switch to gnu.java.awt.BitwiseXORComposite.
1761 (BitwiseXORComposite): Remove inner class.
1762
df9bad81
MK
17632004-01-11 Michael Koch <konqueror@gmx.de>
1764
1765 * gnu/java/lang/reflect/TypeSignature.java
1766 (getEncodingOfClass): Documentation fixed.
1767 (getClassForEncoding): Give class loader to Class.forName().
1768 Documentation fixed.
1769
fc58328a
SB
17702004-01-11 Sascha Brawer <brawer@dandelis.ch>
1771
1772 * javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
1773
6a425fbe
MK
17742004-01-11 Michael Koch <konqueror@gmx.de>
1775
1776 * javax/swing/undo/StateEditable.java
1777 (RCSID): Removed redundant modifiers.
1778
162fd675
MK
17792004-01-10 Michael Koch <konqueror@gmx.de>
1780
1781 * javax/print/attribute/EnumSyntax.java
1782 (getStringTable): Made protected.
1783 (getEnumValueTable): Likewise.
1784 * javax/print/attribute/standard/JobKOctetsProcessed.java
1785 (JobKOctetsProcessed): Don't implement PrintRequestAttribute.
1786 * javax/print/attribute/standard/JobMediaSheetsCompleted.java
1787 (JobMediaSheetsCompleted): Made class final.
1788 * javax/print/attribute/standard/OutputDeviceAssigned.java
1789 (getName): Fixed typo.
1790 * javax/print/attribute/standard/RequestingUserName.java
1791 (serialVersionUID): Fixed value.
1792
12e978c5
MK
17932004-01-10 Michael Koch <konqueror@gmx.de>
1794
1795 * javax/swing/plaf/basic/BasicButtonUI.java,
1796 javax/swing/plaf/basic/BasicCheckBoxUI.java,
1797 javax/swing/plaf/basic/BasicListUI.java,
1798 javax/swing/plaf/basic/BasicOptionPaneUI.java,
1799 javax/swing/plaf/basic/BasicPanelUI.java,
1800 javax/swing/plaf/basic/BasicRadioButtonUI.java,
1801 javax/swing/plaf/basic/BasicScrollPaneUI.java,
1802 javax/swing/plaf/basic/BasicToggleButtonUI.java,
1803 javax/swing/plaf/basic/BasicViewportUI.java:
1804 Fixed import statements.
1805
4a8e7041
MK
18062004-01-10 Michael Koch <konqueror@gmx.de>
1807
1808 * gnu/java/awt/image/ImageDecoder.java
1809 (produce): Made public.
1810 * gnu/java/awt/peer/GLightweightPeer.java,
1811 gnu/java/awt/peer/gtk/GtkToolkit.java:
1812 Reformated.
1813
5c9092a7
MK
18142004-01-10 Michael Koch <konqueror@gmx.de>
1815
1816 * javax/swing/JRadioButtonMenuItem.java,
1817 javax/swing/JSeparator.java,
1818 javax/swing/JSplitPane.java,
1819 javax/swing/JTextPane.java,
1820 javax/swing/JToolBar.java,
1821 javax/swing/ListCellRenderer.java,
1822 javax/swing/ListModel.java,
1823 javax/swing/MenuElement.java,
1824 javax/swing/OverlayLayout.java,
1825 javax/swing/ProgressMonitor.java,
1826 javax/swing/ProgressMonitorInputStream.java,
1827 javax/swing/Renderer.java,
1828 javax/swing/RootPaneContainer.java,
1829 javax/swing/Scrollable.java,
1830 javax/swing/SingleSelectionModel.java,
1831 javax/swing/ToolTipManager.java,
1832 javax/swing/ViewportLayout.java,
1833 javax/swing/event/DocumentEvent.java,
1834 javax/swing/event/SwingPropertyChangeSupport.java,
1835 javax/swing/event/TreeSelectionEvent.java,
1836 javax/swing/event/UndoableEditEvent.java,
1837 javax/swing/text/AbstractDocument.java,
1838 javax/swing/text/AttributeSet.java,
1839 javax/swing/text/Caret.java,
1840 javax/swing/text/ComponentView.java,
1841 javax/swing/text/DefaultCaret.java,
1842 javax/swing/text/DefaultEditorKit.java,
1843 javax/swing/text/Document.java,
1844 javax/swing/text/EditorKit.java,
1845 javax/swing/text/GapContent.java,
1846 javax/swing/text/Keymap.java,
1847 javax/swing/text/MutableAttributeSet.java,
1848 javax/swing/text/PlainEditorKit.java,
1849 javax/swing/text/Segment.java,
1850 javax/swing/text/Style.java,
1851 javax/swing/text/StyledDocument.java,
1852 javax/swing/text/StyledEditorKit.java,
1853 javax/swing/text/TextAction.java,
1854 javax/swing/text/View.java: Fixed import statements.
1855
27c99ffe
GH
18562004-01-08 Graydon Hoare <graydon@redhat.com>
1857
1858 * javax/swing/JLayeredPane.java: Rewrite to accomodate
1859 djee@redhat.com's recent inverse ordering of Container elements.
1860
e6f82998
MK
18612004-01-09 Michael Koch <konqueror@gmx.de>
1862
1863 * gnu/java/lang/ArrayHelper.java
1864 (equalsArray): Removed.
1865
d55d97f1
AH
18662004-01-09 Andrew Haley <aph@redhat.com>
1867
1868 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
1869 a Utf8Const field before looking at its class.
1870
41b19a2d
MK
18712004-01-09 Michael Koch <konqueror@gmx.de>
1872
1873 * javax/print/attribute/standard/DocumentName.java,
1874 javax/print/attribute/standard/JobHoldUntil.java,
1875 javax/print/attribute/standard/JobMessageFromOperator.java,
1876 javax/print/attribute/standard/JobName.java,
1877 javax/print/attribute/standard/JobOriginatingUserName.java,
1878 javax/print/attribute/standard/OutputDeviceAssigned.java,
1879 javax/print/attribute/standard/PrinterInfo.java,
1880 javax/print/attribute/standard/PrinterLocation.java,
1881 javax/print/attribute/standard/PrinterMakeAndModel.java,
1882 javax/print/attribute/standard/PrinterMessageFromOperator.java,
1883 javax/print/attribute/standard/PrinterName.java,
1884 javax/print/attribute/standard/RequestingUserName.java: New files.
1885 * Makefile.am (javax_source_files): Added new files.
1886 * Makefile.in: Regenerated.
1887
af008858
MK
18882004-01-09 Michael Koch <konqueror@gmx.de>
1889
1890 * javax/swing/AbstractAction.java,
1891 javax/swing/AbstractSet.java,
1892 javax/swing/Action.java,
1893 javax/swing/ActionMap.java,
1894 javax/swing/BoundedRangeModel.java,
1895 javax/swing/ButtonModel.java,
1896 javax/swing/CellEditor.java,
1897 javax/swing/CellRendererPane.java,
1898 javax/swing/ComboBoxEditor.java,
1899 javax/swing/DebugGraphics.java,
1900 javax/swing/DefaultCellEditor.java,
1901 javax/swing/DefaultCellRenderer.java,
1902 javax/swing/DefaultComboBoxModel.java,
1903 javax/swing/DefaultDesktopManager.java,
1904 javax/swing/DefaultFocusManager.java,
1905 javax/swing/DefaultListCellRenderer.java,
1906 javax/swing/Icon.java,
1907 javax/swing/JButton.java,
1908 javax/swing/JCheckBoxMenuItem.java,
1909 javax/swing/JDesktopPane.java,
1910 javax/swing/JEditorPane.java,
1911 javax/swing/JMenu.java,
1912 javax/swing/JPanel.java,
1913 javax/swing/JPasswordField.java,
1914 javax/swing/JPopupMenu.java,
1915 javax/swing/JProgressBar.java: Reworked imports.
1916
bbe4ef89
MK
19172004-01-09 Michael Koch <konqueror@gmx.de>
1918
1919 * java/awt/geom/PathIterator.java
1920 (WIND_EVEN_ODD): Removed redundant modifiers.
1921 (WIND_NON_ZERO): Likewise.
1922 (SEG_MOVETO): Likewise.
1923 (SEG_LINETO): Likewise.
1924 (SEG_QUADTO): Likewise.
1925 (SEG_CUBICTO): Likewise.
1926 (SEG_CLOSE): Likewise.
1927 * java/awt/image/SinglePixelPackedSampleModel.java:
1928 Removed redundant semicolon.
1929 * java/io/ObjectInputStream.java
1930 (inputGetObjectStreamClasses): Removed unused variable "ret_val".
1931 * java/util/logging/Filter.java
1932 (isLoggable): Removed redundant modifier.
1933 * java/util/logging/LogManager.java:
1934 Removed redundant semicolon.
1935 * java/util/logging/XMLFormatter.java
1936 (format): Removed unused variable "key".
1937
06fe3d7d
FN
19382004-01-08 Fernando Nasser <fnasser@redhat.com>
1939
1940 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
1941 New name for the former setFile native method.
1942 (setFile): New method.
1943 (setDirectory): Implemented.
1944 (connectSignals): New native method.
1945 (setFilenameFilter): Improve comment.
1946 (getGraphics): Comment.
1947 (gtkHideFileDialog): New method.
1948 (gtkDisposeFileDialog): New method.
1949 (gtkSetFilename): New method.
1950 * java/awt/Dialog.java (show): Block on modal dialogs, but only
1951 for FileDialog for now.
1952 (hide): New method.
1953 (dispose): New method.
1954 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1955 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
1956 deprecated creation functions. Make dialog modal. Add it to the
1957 window group.
1958 (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
1959 function.
1960 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
1961 Rename to...
1962 (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
1963 name.
1964 (window_closed): New function.
1965 (ok_clicked): New function.
1966 (cancel_clicked): New function.
1967
bafa7fed
MK
19682004-01-08 Michael Koch <konqueror@gmx.de>
1969
1970 * javax/swing/JLayeredPane.java: Revert changes to standard
1971 boilerplate, reworked imports.
1972
11e584ed
TT
19732004-01-07 Tom Tromey <tromey@redhat.com>
1974
1975 PR libgcj/13439:
1976 * verify.cc (state::merge): Copy changed locals out of subroutine
1977 in NO_STACK case.
1978 (state::FLAG_CHANGED): New const.
1979 (state::FLAG_UNUSED): Likewise.
1980 (state::local_changed): Removed. Updated all users.
1981 (state::flags): New field.
1982 (state::merge): Added jsr_semantics argument, more logic.
1983 (push_jump_merge): Added jsr_semantics argument.
1984 (handle_jsr_insn): Set jsr_semantics on push_jump_merge when
1985 merging through the jsr instruction.
1986
ce972ee8
TT
19872004-01-07 Tom Tromey <tromey@redhat.com>
1988
1989 * scripts/MakeDefaultMimeTypes.java: Use \n, not
1990 backslash-newline.
1991
fbea267f
GH
19922004-01-07 Graydon Hoare <graydon@redhat.com>
1993
1994 * java/awt/Container.java (LightweightDispatcher): Implement.
1995 (visitChild): Reuse graphics object.
1996 (dispatchEventImpl): Optionally dispatch to lightweight.
1997 (addNotifyContainerChildren): Build LightweightDispatcher.
1998
627e4e5f
DJ
19992004-01-07 David Jee <djee@redhat.com>
2000
2001 * java/awt/Container.java
2002 (update): Clear only the clipped region, instead of clearing the
2003 entire Container.
2004 (visitChildren): Visit children in descending order.
2005
40f8ee2d
MK
20062004-01-07 Michael Koch <konqueror@gmx.de>
2007
2008 * java/lang/reflect/Array.java: Merged documentation with classpath.
2009
9b773289
MK
20102004-01-07 Michael Koch <konqueror@gmx.de>
2011
2012 * java/text/CollationElementIterator.java
2013 (textIndex): Renamed from index.
2014 * java/text/CollationKey.java
2015 (collator): New member.
2016 (CollationKey): New argument for parent collator.
2017 (equals): Check for same collator, source string and key array.
2018 * java/text/RuleBasedCollator.java:
2019 Reformated.
2020 (RuleBasedCollator): Don't re-initialize frenchAccents with default
2021 value.
2022 (getCollationElementIterator): Rewritten.
2023 (getCollationKey): Added new argument to CollationKey constructor.
2024
26067b8b
MK
20252004-01-07 Michael Koch <konqueror@gmx.de>
2026
2027 * gnu/java/nio/DatagramChannelImpl.java
2028 (blocking): Removed.
2029 (DatagramChannelImpl): Call configureBlocking().
2030 (implConfigureBlocking): Dont initialize blocking.
2031 * gnu/java/nio/ServerSocketChannelImpl.java
2032 (blocking): Removed.
2033 (ServerSocketChannelImpl): Call configureBlocking().
2034 (implConfigureBlocking): Dont initialize blocking.
2035 * gnu/java/nio/SocketChannelImpl.java
2036 (blocking): Removed.
2037 (SocketChannelImpl): Call configureBlocking().
2038 (implConfigureBlocking): Dont initialize blocking.
2039 (connect): Use isBlocking().
2040 * java/nio/channels/spi/AbstractSelectableChannel.java
2041 (configureBlocking): Use blockingLock() instead of LOCK.
2042 Set blocking after successfully called implConfigureBlocking().
2043 (register): Use blockingLock() instead of LOCK.
2044
89e4eb2a
MK
20452004-01-07 Michael Koch <konqueror@gmx.de>
2046
2047 * java/net/ServerSocket.java (isBound): Fixed documentation.
2048
b3db7ef1
SB
20492004-01-07 Sascha Brawer <brawer@dandelis.ch>
2050
2051 * javax/swing/DefaultBoundedRangeModel.java: Documented API.
2052 (changeEvent): Create event object on demand.
2053 (DefaultBoundedRangeModel, toString, setValue, setExtent,
2054 setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
2055 fireStateChanged): Re-written.
2056 * javax/swing/event/EventListenerList.java: Reformatted, document
2057 typical usage.
2058 (toString): Implemented.
2059 (getListeners): Re-written.
2060 (remove): Re-written.
2061 (add): Re-written.
2062 (NO_LISTENERS): New singleton field.
2063 (listenerList): Declare as transient; document.
2064 (serialVersionUID): Document.
2065 (getListenerCount(Class)): More efficient implementation,
2066 also accepts null argument. Improve Javadoc.
2067 (getListenerCount()): Remove unnecessary cast; docfix.
2068 * javax/swing/undo/UndoableEditSupport.java:
2069 Re-format, document.
2070 (UndoableEditSupport): Set realSource field. Improve documentation.
2071 (_postEdit): Iterate over cloned listener vector.
2072 (toString): Don't emit realSource.
2073 (beginUpdate, endUpdate): Support nested updates.
2074 (postEdit): Use compound edit if present.
2075
257dd280
GH
20762004-01-06 Graydon Hoare <graydon@redhat.com>
2077
2078 * java/awt/Container.java (swapComponents): Add forgotten
2079 function, required for JLayeredPane change.
2080
5f383ba5
MK
20812004-01-06 Michael Koch <konqueror@gmx.de>
2082
2083 * java/text/CollationElementIterator.java: Reformated.
2084 (CollationElementIterator): Changed order of arguments.
2085 * java/text/RuleBasedCollator.java
2086 (RuleBasedCollator): Merged class documentation.
2087 (CollationElement): Added documentation.
2088 (compare): Reformated, renamed arguments.
2089 (equals): Likewise.
2090 (getCollationElementIterator): Likewise.
2091 (getCollationKey): Likewise.
2092
68f14fb0
GH
20932004-01-06 Graydon Hoare <graydon@redhat.com>
2094
2095 * javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
2096
a023ec34
MK
20972004-01-06 Michael Koch <konqueror@gmx.de>
2098
2099 * gnu/java/net/protocol/file/Connection.java:
2100 Reformated copyright.
2101 (hdrHash): Removed.
2102 (hdrVec): Removed.
2103 (gotHeaders): Removed.
2104 (getHeaderField): Removed.
2105 (getHeaderField): Removed.
2106 (getHeaderFieldKey): Removed.
2107 (getKey): Removed.
2108 (getField): Removed.
2109 (getHeaders): Removed.
2110
a67e295f
MK
21112004-01-06 Michael Koch <konqueror@gmx.de>
2112
9ba6f952
MK
2113 * javax/print/attribute/standard/DateTimeAtCompleted.java,
2114 javax/print/attribute/standard/DateTimeAtCreation.java,
2115 javax/print/attribute/standard/DateTimeAtProcessing.java,
2116 javax/print/attribute/standard/JobImpressionsCompleted.java,
2117 javax/print/attribute/standard/JobKOctets.java,
2118 javax/print/attribute/standard/JobKOctetsProcessed.java,
2119 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
2120 javax/print/attribute/standard/JobPrioritySupported.java: New files.
2121 * Makefile.am (javax_source_files): Added new files.
2122 * Makefile.in: Regenerated.
68dad687 2123
9ba6f952
MK
21242004-01-06 Michael Koch <konqueror@gmx.de>
2125
a67e295f
MK
2126 * java/net/URLConnection.java
2127 (contentHandler): Removed.
2128 (locale): Removed.
2129 (getHeaderFields): Return an empty map instead of null.
2130 (getContent): Connect if needed, renamed "cType" to "type" and
2131 "contentHandler" to "ch" and made it a local variable.
2132 (getPermission): Don't use package in class name.
2133 (setDefaultRequestProperty): Fixed typo in documentation.
2134 (initializeDateFormats): Made locale a local variable.
2135
907cdc7f
MK
21362004-01-06 Michael Koch <konqueror@gmx.de>
2137
2138 * java/lang/Package.java
2139 (getPackage): Get the current class loader directly.
2140 * java/lang/SecurityManager.java
2141 (currentLoadedClass): Dont iterate over class contexts.
2142 (classLoaderDepth): Don't check class loaders if everything is allowed.
2143
6037221c
TF
21442004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
2145
a8c2775c
TF
2146 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
2147 (pre_event_handler): Set all insets to 0 when a Configure event
2148 is received for a GtkPlug.
2149 * gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
2150 Make handle long, not int.
2151 (EmbeddedWindow()): New constructor.
2152 (EmbeddedWindow(int)): Rename window_id to handle. Make handle
2153 long, not int.
2154 (setHandle): New method.
2155 (getHandle): Return long, not int.
2156 * gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
2157 declaration.
2158 * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
2159 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
2160 (create(long)): Take long parameter, not int. Cast gtk_plug_new
2161 argument to GdkNativeWindow.
2162 (construct): New method.
2163 (embed): New method.
2164
6037221c
TF
2165 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
2166 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
2167 (create(int, int)): New method.
2168 (create): Call new create method.
2169 (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
2170 methods.
2171 (childResized): Remove native implementation. Implement in
2172 Java.
2173 (getHScrollbarHeight, getVScrollbarWidth): Call
2174 gtk_widget_size_request to get scrollbar dimensions.
2175 * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
2176 call getVScrollbarWidth and getHScrollbarHeight when vertical
2177 and horizontal scrollbars respectively are needed.
2178 (doLayout): Enlarge child if it is smaller than the viewport.
2179
975fde59
FN
21802004-01-05 Fernando Nasser <fnasser@redhat.com>
2181
2182 * java/awt/Dialog.java (constructor): Accept null title as per spec.
2183 * java/awt/FileDialog.java (constructor): Throw exception on invalid
2184 argument as per spec.
2185
b7a9b4af
FN
21862004-01-05 Fernando Nasser <fnasser@redhat.com>
2187
2188 * java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
2189 (insert): Ditto.
2190 (remove): Ditto. Also, Check for valid argument.
2191 (removeAll): Use peer interface method.
2192 * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
2193 native add function.
2194 (nativeRemove): New name for native remove function.
2195 (getHistory): New native function.
2196 (constructor): Generate ItemEvent.
2197 (add): Ditto, if selection is changed.
2198 (remove): Ditto, ditto.
2199 (removeAll): Add implementation.
2200 (handleEvent): Remove. Dead code.
2201 (choicePostItemEvent): Add comment.
2202 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
2203 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
2204 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
2205 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
2206 comments and fix condition to change selection.
2207 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
2208 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
2209 remove all capability.
2210 (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
2211 (item_activate): Add cast to remove compiler warning.
2212
b17fc9eb
TF
22132004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
2214
2215 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2216 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2217 (getPreferredSize): Call preferredSize.
2218 (preferredSize): Call gtkWidgetGetPreferredDimensions.
2219 (getMinimumSize): Call minimumSize.
2220 (minimumSize): Call gtkWidgetGetPreferredDimensions.
2221 (gtkWidgetGetDimensions): Return the peer widget's current size
2222 request.
2223 (gtkWidgetGetPreferredDimensions): Return the peer widget's
2224 natural size request.
2225
ab22bc91
SB
22262004-01-05 Sascha Brawer <brawer@dandelis.ch>
2227
2228 Thanks to Brian Gough <bjg@network-theory.com>
2229 * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented.
2230 * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written.
2231
e44b879c
MK
22322004-01-04 Matthias Klose <doko@debian.org>
2233
2234 * aclocal.m4: Rebuilt using "aclocal -I .".
2235 * configure: Rebuilt.
2236
5814ecc2
PB
22372004-01-03 Per Bothner <per@bothner.com>
2238
2239 * java/util/Date.java (parse): Fix a number of problems.
2240 (skipParens): Remove no-longer-needed method.
2241