]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/ChangeLog
Makefile.am: Run aclocal with -I ../config
[thirdparty/gcc.git] / libjava / ChangeLog
CommitLineData
5b7a26f6
KC
12004-09-22 Kelley Cook <kcook@gcc.gnu.org>
2
3 * Makefile.am: Run aclocal with -I ../config
4 * acinclude.m4: Delete macros picked up from ../config and tidy.
5 (AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
6 * aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
7 * include/Makefile.in, testsuite/Makefile.in: Regenerate.
8
54805b23
KC
92004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10
11 * aclocal.m4: Regenerate with aclocal 1.9.2.
12 * configure: Regenerate.
13 * Makefile.in, gcj/Makefile.in: Regenerate with automake 1.9.2.
14 * include/Makefile.in, testsuite/Makefile.in: Likewise.
15
d0259e11
DD
162004-09-22 David Daney <ddaney@avtrex.com>
17
18 PR libgcj/17623
19 * java/net/URL.java (URL): Copy userInfo from context.
20 (getUserInfo): Return cached userInfo if present.
21
aa8cb1ad
TT
222004-09-22 Tom Tromey <tromey@redhat.com>
23
24 PR libgcj/6182:
25 * mauve-libgcj: Enable java.lang.Character tests.
26
733a7ed9
AT
272004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
28
29 * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
30 dependencies.
31 (lib_org_ietf_jgss_la_LIBADD): Likewise.
32 * Makefile.in: Regenerated.
33
44bffd9f
AT
342004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
35
36 * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
37 * configure: Regenerate.
38 * include/config.h.in: Likewise.
39 * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
40 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
41 macro to gtkpeer.h.
42 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
43 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
44 pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
45 architectures.
46 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
47 Likewise.
48
ecd16bf6
TT
492004-09-22 Tom Tromey <tromey@redhat.com>
50
51 PR libgcj/14446:
52 * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
53 when comparing CRCs.
54 * java/util/zip/InflaterInputStream.java (onebytebuffer): New
55 field.
56 (read()): New overload.
57
3a3d0225
TT
582004-09-21 Tom Tromey <tromey@redhat.com>
59
60 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
61 Indentation fix.
62
93880692
MK
632004-09-21 Michael Koch <konqueror@gmx.de>
64
65 * java/net/Socket.java
66 (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
67
448a698b
CM
682004-09-21 Casey Marshall <csm@gnu.org>
69
70 * javax/crypto/MacSpi.java (clone): Provide meaningful
71 implementation.
72
34f87940
TT
732004-09-21 Tom Tromey <tromey@redhat.com>
74
75 PR libgcj/16869:
76 * Makefile.in: Rebuilt.
77 * Makefile.am (MOSTLYCLEANFILES): Removed.
78 (mostlyclean-local): Remove header files.
79
f1b18462
AT
802004-09-21 Casey Marshall <csm@gnu.org>
81
82 * java/security/cert/X509CRLSelector.java:
83 (match): remove unreachable try-catch clauses.
84 Reported by: Dalibor Topic <robilad@kaffe.org>
85
862004-09-21 Mark Wielaard <mark@klomp.org>
87
88 * java/util/TreeMap.java (root): Don't initialize.
89 (TreeMap(Comparator)): Call fabricateTree(0).
90 (fabricateTree): Initialize root and size when count is 0.
91
9413382e
SM
922004-09-21 Sven de Marothy <sven@physto.se>
93
94 * java/nio/ByteBuffer.java (hashCode): Implemented.
95 * java/nio/CharBuffer.java: Likewise.
96 * java/nio/DoubleBuffer.java: Likewise.
97 * java/nio/FloatBuffer.java: Likewise.
98 * java/nio/LongBuffer.java: Likewise.
99 * java/nio/IntBuffer.java: Likewise.
100 * java/nio/ShortBuffer.java: Likewise.
101
936f1f06
AT
1022004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
103
104 * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
105
1062004-09-21 Michael Koch <konqueror@gmx.de>
107
108 * javax/net/ssl/SSLServerSocket.java:
109 Removed comment about "Do not edit this file, it's generated.".
110
6f5ce93b
AT
1112004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
112
113 Import the big Crypto/Jessie/Security merge from Classpath.
114
115 * Makefile.am: Add imported files.
116 * Makefile.in: Regenerate.
117
118 2004-08-14 Casey Marshall <csm@gnu.org>
119
120 The Big Crypto Merge of 2004.
121
122 * javax/security/auth/x500/X500Principal.java: Replaced with GNU
123 Crypto's version.
124
125 Files imported from GNU Crypto.
126 * javax/crypto/BadPaddingException.java
127 * javax/crypto/Cipher.java
128 * javax/crypto/CipherInputStream.java
129 * javax/crypto/CipherOutputStream.java
130 * javax/crypto/CipherSpi.java
131 * javax/crypto/EncryptedPrivateKeyInfo.java
132 * javax/crypto/ExemptionMechanism.java
133 * javax/crypto/ExemptionMechanismException.java
134 * javax/crypto/ExemptionMechanismSpi.java
135 * javax/crypto/IllegalBlockSizeException.java
136 * javax/crypto/KeyAgreement.java
137 * javax/crypto/KeyAgreementSpi.java
138 * javax/crypto/KeyGenerator.java
139 * javax/crypto/KeyGeneratorSpi.java
140 * javax/crypto/Mac.java
141 * javax/crypto/MacSpi.java
142 * javax/crypto/Makefile.am
143 * javax/crypto/NoSuchPaddingException.java
144 * javax/crypto/NullCipher.java
145 * javax/crypto/NullCipherImpl.java
146 * javax/crypto/SealedObject.java
147 * javax/crypto/SecretKey.java
148 * javax/crypto/SecretKeyFactory.java
149 * javax/crypto/SecretKeyFactorySpi.java
150 * javax/crypto/ShortBufferException.java
151 * javax/crypto/interfaces/DHKey.java
152 * javax/crypto/interfaces/DHPrivateKey.java
153 * javax/crypto/interfaces/DHPublicKey.java
154 * javax/crypto/interfaces/PBEKey.java
155 * javax/crypto/spec/DESKeySpec.java
156 * javax/crypto/spec/DESedeKeySpec.java
157 * javax/crypto/spec/DHGenParameterSpec.java
158 * javax/crypto/spec/DHParameterSpec.java
159 * javax/crypto/spec/DHPrivateKeySpec.java
160 * javax/crypto/spec/DHPublicKeySpec.java
161 * javax/crypto/spec/IvParameterSpec.java
162 * javax/crypto/spec/PBEKeySpec.java
163 * javax/crypto/spec/PBEParameterSpec.java
164 * javax/crypto/spec/RC2ParameterSpec.java
165 * javax/crypto/spec/RC5ParameterSpec.java
166 * javax/crypto/spec/SecretKeySpec.java
167 * javax/security/auth/AuthPermission.java
168 * javax/security/auth/DestroyFailedException.java
169 * javax/security/auth/Destroyable.java
170 * javax/security/auth/Policy.java
171 * javax/security/auth/PrivateCredentialPermission.java
172 * javax/security/auth/RefreshFailedException.java
173 * javax/security/auth/Refreshable.java
174 * javax/security/auth/Subject.java
175 * javax/security/auth/SubjectDomainCombiner.java
176 * javax/security/auth/callback/Callback.java
177 * javax/security/auth/callback/CallbackHandler.java
178 * javax/security/auth/callback/ChoiceCallback.java
179 * javax/security/auth/callback/ConfirmationCallback.java
180 * javax/security/auth/callback/LanguageCallback.java
181 * javax/security/auth/callback/NameCallback.java
182 * javax/security/auth/callback/PasswordCallback.java
183 * javax/security/auth/callback/TextInputCallback.java
184 * javax/security/auth/callback/TextOutputCallback.java
185 * javax/security/auth/callback/UnsupportedCallbackException.java
186 * javax/security/auth/login/AccountExpiredException.java
187 * javax/security/auth/login/AppConfigurationEntry.java
188 * javax/security/auth/login/Configuration.java
189 * javax/security/auth/login/CredentialExpiredException.java
190 * javax/security/auth/login/FailedLoginException.java
191 * javax/security/auth/login/LoginContext.java
192 * javax/security/auth/login/LoginException.java
193 * javax/security/auth/login/NullConfiguration.java
194 * javax/security/auth/x500/X500PrivateCredential.java
195 * javax/security/sasl/AuthenticationException.java
196 * javax/security/sasl/AuthorizeCallback.java
197 * javax/security/sasl/RealmCallback.java
198 * javax/security/sasl/RealmChoiceCallback.java
199 * javax/security/sasl/Sasl.java
200 * javax/security/sasl/SaslClient.java
201 * javax/security/sasl/SaslClientFactory.java
202 * javax/security/sasl/SaslException.java
203 * javax/security/sasl/SaslServer.java
204 * javax/security/sasl/SaslServerFactory.java
205 * org/ietf/jgss/ChannelBinding.java
206 * org/ietf/jgss/GSSContext.java
207 * org/ietf/jgss/GSSCredential.java
208 * org/ietf/jgss/GSSException.java
209 * org/ietf/jgss/GSSManager.java
210 * org/ietf/jgss/GSSName.java
211 * org/ietf/jgss/MessageProp.java
212 * org/ietf/jgss/Oid.java
213 * org/ietf/jgss/MessagesBundle.properties
214
215 Files imported from Jessie <http://www.nongnu.org/jessie/>
216 * javax/net/ServerSocketFactory.java
217 * javax/net/SocketFactory.java
218 * javax/net/VanillaServerSocketFactory.java
219 * javax/net/VanillaSocketFactory.java
220 * javax/net/ssl/HandshakeCompletedEvent.java
221 * javax/net/ssl/HandshakeCompletedListener.java
222 * javax/net/ssl/HostnameVerifier.java
223 * javax/net/ssl/HttpsURLConnection.java
224 * javax/net/ssl/KeyManager.java
225 * javax/net/ssl/KeyManagerFactory.java
226 * javax/net/ssl/KeyManagerFactorySpi.java
227 * javax/net/ssl/ManagerFactoryParameters.java
228 * javax/net/ssl/SSLContext.java
229 * javax/net/ssl/SSLContextSpi.java
230 * javax/net/ssl/SSLException.java
231 * javax/net/ssl/SSLHandshakeException.java
232 * javax/net/ssl/SSLKeyException.java
233 * javax/net/ssl/SSLPeerUnverifiedException.java
234 * javax/net/ssl/SSLPermission.java
235 * javax/net/ssl/SSLProtocolException.java
236 * javax/net/ssl/SSLServerSocket.java
237 * javax/net/ssl/SSLServerSocketFactory.java
238 * javax/net/ssl/SSLSession.java
239 * javax/net/ssl/SSLSessionBindingEvent.java
240 * javax/net/ssl/SSLSessionBindingListener.java
241 * javax/net/ssl/SSLSessionContext.java
242 * javax/net/ssl/SSLSocket.java
243 * javax/net/ssl/SSLSocketFactory.java
244 * javax/net/ssl/TrivialHostnameVerifier.java
245 * javax/net/ssl/TrustManager.java
246 * javax/net/ssl/TrustManagerFactory.java
247 * javax/net/ssl/TrustManagerFactorySpi.java
248 * javax/net/ssl/X509KeyManager.java
249 * javax/net/ssl/X509TrustManager.java
250 * javax/security/cert/Certificate.java
251 * javax/security/cert/CertificateEncodingException.java
252 * javax/security/cert/CertificateException.java
253 * javax/security/cert/CertificateExpiredException.java
254 * javax/security/cert/CertificateNotYetValidException.java
255 * javax/security/cert/CertificateParsingException.java
256 * javax/security/cert/X509CertBridge.java
257 * javax/security/cert/X509Certificate.java
258
259 2004-08-20 Casey Marshall <csm@gnu.org>
260
261 * java/security/cert/X509CRLSelector.java: New file.
262 * java/security/cert/X509CertSelector.java: New file.
263
c36992ff
MK
2642004-09-15 Michael Koch <konqueror@gmx.de>
265
266 * gnu/java/net/protocol/file/Handler.java
267 (openConnection): Don't throw exception if host part for file: URI is
268 present. setURL() keeps file: protocol if ftp: protocol is not
269 available.
270
72826319
RH
2712004-09-14 Richard Henderson <rth@redhat.com>
272
273 * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
274 value of sigsuspend.
275
3abcc195
TT
2762004-09-12 Tom Tromey <tromey@redhat.com>
277
278 * javax/naming/CompoundName.java (CompoundName): Don't check for
279 separator in "flat" case.
280
bdd1aed4
MK
2812004-09-12 Michael Koch <konqueror@gmx.de>
282
283 * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
284 AM_CONFIG_HEADER by AC_CONFIG_FILES.
285 * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
286 Regenerate.
287
a0be84dd
ME
2882004-09-11 Mohan Embar <gnustuff@thisiscool.com>
289
290 PR libgcj/14751
291 * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
292 handle in newly-allocated _Jv_Thread_t.
293 (_Jv_ThreadDestroyData): Close thread handle.
294 (_Jv_ThreadStart): Remove obsolete comment.
295 Store handle of newly-created thread in _Jv_Thread_t.
296 * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
297 before including <windows.h>
298 #define _Jv_HaveCondDestroy
299
bdbf6060
ME
3002004-09-11 Mohan Embar <gnustuff@thisiscool.com>
301
302 * java/lang/natThread.cc (finalize_native): Destroy
303 join conditional variable and mutex if these destroy
304 operations are supported.
305
cad79bac
MK
3062004-09-10 Dalibor Topic <robilad@kaffe.org>
307
308 * gnu/java/net/protocol/file/Connection.java (permission): New field.
309 (DEFAULT_PERMISSION): New constant.
310 (Connection): Create a FilePermission with permission to read file.
311
3122004-09-10 Michael Koch <konqueror@gmx.de>
313
314 * gnu/java/net/protocol/file/Connection.java
315 (getLastModified): Moved around.
316 (getPermission): Return stored permission.
317
8166c201
MK
3182004-09-10 Michael Koch <konqueror@gmx.de>
319
320 * Makefile.in: Regenerate.
321
3cf735f6
MK
3222004-09-10 Michael Koch <konqueror@gmx.de>
323
324 * Makefile.am: Reverted accidently commited stuff.
325 * configure: Regenerated.
326
5123971a
MK
3272004-09-10 Michael Koch <konqueror@gmx.de>
328
329 * gnu/java/net/protocol/file/Connection.java
330 (lineSeparator): Made non-final.
331 (static): Removed.
332 (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
333 instead of StringBufferInputStream.
334
3352004-09-10 Michael Koch <konqueror@gmx.de>
336
337 * gnu/java/net/protocol/file/Connection.java
338 (connect): Handle file is a directory case.
339
456d47b3
MK
3402004-09-10 Michael Koch <konqueror@gmx.de>
341
342 * Makefile.am
343 (xlib_includes): Removed.
344 (AM_CPPFLAGS): Renamed from INCLUDES.
345 (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
346 * Makefile.in: Regenerate.
347
4166b036
AT
3482004-09-09 Michael Koch <konqueror@gmx.de>
349
350 * java/security/ProtectionDomain.java,
351 * java/util/PropertyPermissionCollection.java:
352 Fixed javadocs all over.
353
3542004-09-09 Sven de Marothy <sven@physto.se>
355
356 Patch from David Gilbert <david.gilbert@object-refinery.com>
357 * java/lang/Comparable.java: Fixed documentation errors.
358 * java/util/Arrays.java: Likewise.
359
3602004-09-09 Andrew John Hughes <gnu_andrew@member.fsf.org>
361
362 * java/net/Inet4Address.java
363 (Inet4Address): Added comment to serialization UID.
364 * java/text/Format.java
365 (Format): Added comment to serialization UID.
366
c6614d3e
MK
3672004-09-09 Michael Koch <konqueror@gmx.de>
368
369 * java/lang/System.java
370 (err): Fixed javadoci to point to setErr() and not setOut().
371
6273ba37
MK
3722004-09-09 Jeroen Frijters <jeroen@frijters.net>
373
374 (normalizePath): Added special case for windows systems.
375
3762004-09-09 Michael Koch <konqueror@gmx.de>
377
378 * java/io/File.java
379 (dupSeparator): Made private.
380 (File(URI)): New constructor.
381 (getParentFile): Fixed javadoc.
382 (createTempFile): Reformated.
383 (setReadOnly): Added comment.
384 (deleteOnExit): Merged javadoc with classpath version.
385
93177580
MK
3862004-09-09 Michael Koch <konqueror@gmx.de>
387
388 * Makefile.am: Don't try to include deps.mk.
389 * Makefile.in: Regenerated.
390
2e8401ae
BM
3912004-09-08 Bryce McKinlay <mckinlay@redhat.com>
392
393 * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
394 .d files.
395 * configure: Rebuilt.
396
56fa138b
ME
3972004-09-04 Mohan Embar <gnustuff@thisiscool.com>
398
399 * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
400 Changed pfn from static local to local.
401
351cfd8b
BM
4022004-09-03 Bryce McKinlay <mckinlay@redhat.com>
403 H.J. Lu <hongjiu.lu@intel.com>
404
405 PR libgcj/17290
406 * Makefile.am (GCJCOMPILE): Remove definition.
407 (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
408 Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
409 * Makefile.in: Rebuilt.
410
48d0dd75
KC
4112004-09-03 Kelley Cook <kcook@gcc.gnu.org>
412
413 * configure.ac (enable-gc-debug): Update help for new syntax.
414 * configure: Regenerate.
415
321c496b
DD
4162004-09-03 David Daney <ddaney@avtrex.com>
417
418 * include/mips-signal.h: Update copyright.
419
04efec81
DD
4202004-09-03 David Daney <ddaney@avtrex.com>
421
422 * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
423 * include/mips-signal.h: Added HANDLE_FPE support.
424
57579172
GH
4252004-08-31 Michael Koch <konqueror@gmx.de>
426
427 * javax/swing/plaf/basic/BasicTextAreaUI.java
428 (create): New method.
429 * javax/swing/text/DefaultHighlighter.java
430 (DefaultHighlightPainter.debugRect): Removed.
431 * javax/swing/text/StyleContext.java
432 (DEFAULT_STYLE): New field.
433
4342004-08-31 Michael Koch <konqueror@gmx.de>
435
436 * javax/swing/plaf/basic/BasicLookAndFeel.java
437 (initComponentDefaults): Add keybindings for selection.backward and
438 selection-forward for text components.
439 * javax/swing/plaf/basic/BasicTextUI.java
440 (paintSafely): Paint highlight only when something is actually
441 selected.
442 * javax/swing/text/DefaultCaret.java
443 (handleHighlight): New method.
444 (setSelectionVisible): Don't do anything when nothing changes.
445 Handle highlight.
446 (moveDot): Reimplemented. Handle highlight.
447 (setDot): Set mark too. Handle highlight.
448 (getSelectionPainter): New method.
449 * javax/swing/text/DefaultEditorKit.java
450 (defaultActions): Added new actions for text selection.
451 * javax/swing/text/DefaultHighlighter.java
452 (DefaultHighlightPainter): New inner class.
453 (DefaultPainter): New field.
454 (paint): Implemented.
455 * javax/swing/text/PlainView.java
456 (paint): Don't draw background here again.
457 * javax/swing/text/Utilities.java
458 (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
459 (drawTabbedText): Likewise.
460
4612004-08-31 Graydon Hoare <graydon@redhat.com>
462
463 * javax/swing/JComponent.java
464 (resetKeyboardActions): Add null checks.
465
4662004-08-31 Graydon Hoare <graydon@redhat.com>
467
468 * javax/swing/DefaultButtonModel.java:
469 Skip group notification when no group is set.
470
4712004-08-31 Graydon Hoare <graydon@redhat.com>
472
473 * javax/swing/JColorChooser.java:
474 Make a couple inner classes static, for jikes.
475
4762004-08-31 Michael Koch <konqueror@gmx.de>
477
478 * javax/swing/plaf/basic/BasicTextUI.java
479 (RottView.modelToView): New method.
480 (UpdateHandler): Renamed from EventHandler.
481 (updateHandler): Renamed from eventHandler.
482 (modelToView): Implemented.
483 * javax/swing/text/AbstractDocument.java
484 (BranchElement.getElement): Return null for non-existing indeces.
485 (BranchElement.getElementIndex): Return 0 in some corner cases.
486 * javax/swing/text/FieldView.java
487 (modelToView): New method.
488 * javax/swing/text/PlainView.java
489 (modelToView): Made public.
490
4912004-08-31 Kim Ho <kho@redhat.com>
492
493 * Makefile.am: New files.
494 * Makefile.in: Regenerate.
495 * gcj/Makefile.in: Regenerate.
496 * include/Makefile.in: Regenerate.
497 * java/awt/Color.java: Fix documentation.
498 (RGBtoHSB): Use floats for conversions.
499 * javax/swing/ButtonGroup.java: Run Jalopy.
500 (setSelected): Reimplement.
501 * javax/swing/DefaultButtonModel.java: Run Jalopy.
502 (changeState): Let ButtonGroup know that the button
503 is changing state.
504 * javax/swing/JColorChooser.java: Implement.
505 * javax/swing/JLabel.java: Run Jalopy.
506 * javax/swing/JSpinner.java: Run Jalopy.
507 (setValue): New method.
508 * javax/swing/JTabbedPane.java: Run Jalopy.
509 (removeTabAt): Call correct remove method.
510 * javax/swing/SpinnerNumberModel.java: Run Jalopy.
511 (getPreviousValue): Compare minimum value.
512 * javax/swing/Timer.java: Run Jalopy.
513 (run): Comment out println.
514 * javax/swing/ToolTipManager.java:
515 (mouseMoved): Get new tooltip text for location.
516 * javax/swing/colorchooser/AbstractColorChooserPanel.java:
517 Jalopy and Javadoc.
518 * javax/swing/colorchooser/ColorChooserComponentFactory.java:
519 Implement.
520 * javax/swing/colorchooser/DefaultColorSelectionModel.java:
521 Run Jalopy.
522 (setSelectedColor): Fire ChangeEvent.
523 * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
524 New file. Implement.
525 * javax/swing/colorchooser/DefaultPreviewPanel.java:
526 Ditto.
527 * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
528 Ditto.
529 * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
530 Ditto.
531 * javax/swing/plaf/basic/BasicArrowButton.java:
532 (getArrow): Fix size of upward pointing button.
533 * javax/swing/plaf/basic/BasicColorChooserUI.java:
534 Implement.
535 * javax/swing/plaf/basic/BasicSliderUI.java:
536 (getWidthOfWidestLabel): Use preferred dimensions.
537 (getHeightOfTallestLabel): Ditto.
538 * javax/swing/plaf/basic/BasicSpinnerUI.java:
539 Run Jalopy.
540 (mousePressed): Disable changes to spinner if it is not enabled.
541 * testsuite/Makefile.in: Regenerate.
542
543
5442004-08-31 Michael Koch <konqueror@gmx.de>
545
546 * javax/swing/plaf/basic/BasicTableHeaderUI.java,
547 javax/swing/plaf/basic/BasicTableUI.java:
548 Added copyright notice.
549
5502004-08-31 Olga Rodimina <rodimina@redhat.com>
551
552 * Makefile.am: Added new files.
553 * Makefile.in: Regenerate.
554 * javax/swing/ComboBoxEditor.java: Added javadocs.
555 * javax/swing/ComboBoxModel.java: Likewise.
556 * javax/swing/DefaultComboBoxModel.java: Implemented.
557 * javax/swing/DefaultListCellRenderer.java: Added javadocs
558 and ran through jalopy to fix formatting style.
559 (getListCellRendererComponent): Use appropriate border
560 if renderer has focus and use noFocusBorder when it doesn't.
561 * javax/swing/JComboBox.java: Implemented.
562 * javax/swing/JList.java:
563 (locationToIndex): New Method. Implemented.
564 (indexToLocation): New Method.
565 * javax/swing/JPopupMenu.java:
566 (visible): New field.
567 (isVisible): Changed to use new field above.
568 (setVisible): Likewise.
569 * javax/swing/MutableComboBoxModel.java: Added javadocs.
570 * javax/swing/plaf/basic/BasicArrowButton.java:
571 (shadow): Changed default color to Color.gray.
572 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
573 UI delegate for JComboBox.
574 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
575 Popup menu containing list of JComboBox's items.
576 * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
577 * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
578 * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
579 * javax/swing/plaf/basic/BasicComboPopup.java: New File.
580 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
581 (popupMenuWillBecomeVisible): Set selected path to the first
582 element only if it is of type MenuElement. Also fix formatting
583 style.
584 * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
585 methods signatures.
586
5872004-08-31 Michael Koch <konqueror@gmx.de>
588
589 * javax/swing/text/AbstractDocument.java
590 (createBranchElement): Use new constructor of BranchElement.
591 (createLeafElement): Renamed arguments.
592 (getRootElements): Implemented.
593 (BranchElement.start): Removed.
594 (BranchElement.end): Likewise.
595 (BranchElement.BranchElement): Fixed arguments.
596 (BranchElement.getEndOffset): Reimplemented.
597 (BranchElement.getStartOffset): Likewis.
598 * javax/swing/text/DefaultCaret.java
599 (paint): Draw simple vertical line as caret instead of a rectangle.
600 * javax/swing/text/JTextComponent.java
601 (setText): Use doc directly.
602 * javax/swing/text/PlainView.java
603 (nextTabStop): Implemented.
604 * javax/swing/text/Utilities.java
605 (drawTabbedText): nextTabStop() returns an absolute x position.
606 (getTabbedTextWidth): Likewise.
607
6082004-08-31 Graydon Hoare <graydon@redhat.com>
609
610 * java/awt/Component.java
611 (isFocusTraversable): Predicate on isLightweight()
612 (setFocusable): Set isFocusTraversableOverridden.
613 (requestFocus): Predicate peer dispatch on !isLightweight()
614 (requestFocusInWindow): Likewise.
615 (dispatchEventImpl): Coordinate with KeyboardFocusManager.
616 * java/awt/Container.java
617 (dispatchEventImpl): Predicate on event mask.
618 (LightweightDispatcher): Remove focus machinery.
619 * java/awt/DefaultFocusTraversalPolicy.java
620 (accept): Expand predicate to include isFocusable().
621 * java/awt/DefaultKeyboardFocusManager.java:
622 Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
623 * java/awt/KeyboardFocusManager.java
624 (redispatchEvent): Synchronize on event to prevent feedback.
625 * javax/swing/AbstractButton.java
626 (ButtonFocusListener): Remove class.
627 (init): Set focusPainted, focusable.
628 * javax/swing/ActionMap.java (get): Check parent for null.
629 * javax/swing/InputMap.java (get): Likewise.
630 * javax/swing/JComponent.java
631 (inputMap_whenFocused): New InputMap.
632 (inputMap_whenAncestorOfFocused): Likewise.
633 (inputMap_whenInFocusedWindow): Likewise.
634 (getActionForKeyStroke): Rewrite.
635 (getConditionForKeystroke): Likewise.
636 (ActionListenerProxy): New private class.
637 (setInputMap): Implement.
638 (getInputMap): Likewise.
639 (setActionMap): Likewise.
640 (getActionMap): Likewise.
641 (processComponentKeyEvent): New empty method.
642 (processKeyEvent): Implement.
643 (processKeyBinding): Likewise.
644 (resetKeyboardActions): Rewrite.
645 * javax/swing/KeyStroke.java: Rewrite.
646 * javax/swing/SwingUtilities.java
647 (notifyAction): Implement.
648 (replaceUIActionMap): Likewise.
649 (replaceUIInputMap): Likewise.
650 * javax/swing/plaf/basic/BasicButtonListener.java
651 (focusGained): Implement.
652 (focusLost): Repaint if focusPainted().
653 (installKeyboardActions): Install pressed / released actions.
654 (uninstallKeyboardActions): Implement.
655 * javax/swing/plaf/basic/BasicButtonUI.java
656 (focusColor): New field.
657 (installDefaults): Load focus color, install input map.
658 (installKeyboardActions): Implement.
659 (uninstallKeyboardActions): Likewise.
660 (paintFocus): Rewrite.
661 * javax/swing/plaf/basic/BasicLookAndFeel.java
662 (Button.focus): New default, midPurple.
663 * javax/swing/plaf/basic/BasicTextUI.java
664 (kit): Make static.
665 (installUI): Get doc from kit, load defaults.
666 (getKeymapName): Implement.
667 (createKeymap): Likewise.
668 (installKeyboardActions): Likewise.
669 (getInputMap): Likewise.
670 (getActionMap): Likewise.
671 (createActionMap): Likewise.
672 * javax/swing/text/AbstractDocument.java
673 (getStartPosition): Implement.
674 (getEndPosition): Likewise.
675 * javax/swing/text/DefaultEditorKit.java
676 (CopyAction): New class.
677 (CutAction): Likewise.
678 (DefaultKeyTypedAction): Likewise.
679 (InsertBreakAction): Likewise.
680 (InsertContentAction): Likewise.
681 (InsertTabAction): Likewise.
682 (PasteAction): Likewise.
683 (defaultActions): New static table.
684 (createCaret): Implement.
685 (getActions): Likewise.
686 * javax/swing/text/JTextComponent.java
687 (KeymapWrapper): New private class.
688 (KeymapActionMap): Likewise.
689 (DefaultKeymap): New class.
690 (keymaps): New static table.
691 (keymap): New field.
692 (getKeymap): Implement.
693 (removeKeymap): Likewise.
694 (addKeymap): Likewise.
695 (setKeymap): Likewise.
696 (loadKeymap): Likewise.
697 (getActions): Likewise.
698 (margin): New field.
699 (JTextComponent): Build and install default keymap.
700 * javax/swing/text/TextAction.java
701 (textAction): Call super properly.
702 (getTextComponent): Implement.
703 * javax/swing/text/Utilities.java
704 (drawTabbedText): Adjust position by ascent.
705
7062004-08-31 David Jee <djee@redhat.com>
707
708 PR AWT/17156
709
710 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
711 (setEnabled): Make it a native method.
712 * java/awt/DefaultKeyboardFocusManager.java
713 (postProcessKeyEvent): Only post event if the menu item
714 is active.
715 * java/awt/MenuItem.java:
716 Private field 'enabled' should be true by default.
717 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
718 (setEnabled): New function.
719
7202004-08-31 David Jee <djee@redhat.com>
721
722 PR AWT/17059
723
724 * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
725 (nativeSetHelpMenu): New native method declaration.
726 (addHelpMenu): Call nativeSetHelpMenu().
727 (addMenu): Remove.
728 * java/awt/MenuBar.java
729 (setHelpMenu): Call addNotify() on the new help menu.
730 (add): Call addNotify() on the new menu.
731 (addNotify): Set the help menu if one exists.
732 * java/awt/peer/MenuBarPeer.java
733 (addMenu): Remove.
734 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
735 (nativeSetHelpMenu): New method.
736
7372004-08-31 Graydon Hoare <graydon@redhat.com>
738
739 * Makefile.am: Add new files.
740 * Makefile.in: Regenerate.
741 * javax/swing/Box.java: Fix setting of layout in ctor.
742 * javax/swing/JScrollPane.java: Scroll headers as well.
743 * javax/swing/JTable.java: Reimplement.
744 * javax/swing/JViewPort.java: Only add non-null children.
745 * javax/swing/ScrollPaneLayout.java: Correct header calculations.
746 * javax/swing/Timer.java: Fix stopping null waker.
747 * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
748 * javax/swing/plaf/basic/BasicTableUI.java: New file.
749 * javax/swing/table/DefaultTableCellRenderer.java: Configure.
750 * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
751 * javax/swing/table/DefaultTableModel.java: Clean up.
752 * javax/swing/table/JTableHeader.java: Implement.
753
7542004-08-31 Mark Wielaard <mark@klomp.org>
755
756 * javax/swing/JSpinner.java (getChangeListeners): Remove double
757 semi-colon.
758
7592004-08-31 Mark Wielaard <mark@klomp.org>
760
761 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
762 Declare variables at top of functions/block.
763 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
764
7652004-08-31 Mark Wielaard <mark@klomp.org>
766
767 * java/lang/Rectangle.java (intersects): Check r.width and r.height
768 first.
769
7702004-08-31 Michael Koch <konqueror@gmx.de>
771
772 * javax/swing/text/PlainView.java
773 (selectedColor): New field.
774 (unselectedColor): Likewise.
775 (font): Likewise.
776 (updateMetrics): New method.
777 (lineToRect): Likewise.
778 (modelToView): Likewise.
779 (drawSelectedText): Use color from JTextComponent ad draw with
780 Utilities class.
781 (drawUnselectedText): Likewise.
782 (paint): Initialize helper fields.
783 * javax/swing/text/View.java
784 (getChildAllocation): New method.
785 (getViewIndex): Likewise.
786 (getToolTipText): Likewise.
787
7882004-08-31 Michael Koch <konqueror@gmx.de>
789
790 * javax/swing/text/Utilities.java
791 (drawTabbedText): Reimplemented.
792 (getTabbedTextWidth): Likewise.
793
7942004-08-31 Michael Koch <konqueror@gmx.de>
795
796 * javax/swing/plaf/basic/BasicTextUI.java
797 (installDefaults): Install caret and highlighter.
798 (modelToView): Use Bias.Forward when calling sibling.
799 * javax/swing/text/AbstractDocument.java
800 (ElementEdit): Implements DocumentEvent.ElementChange.
801 (ElementEdit.ElementEdit): New method.
802 (ElementEdit.getChildrenAdded): Likewise.
803 (ElementEdit.getChildrenRemoved): Likewise.
804 (ElementEdit.getElement): Likewise.
805 (ElementEdit.getIndex): Likewise.
806 * javax/swing/text/DefaultCaret.java
807 (color): Removed.
808 (textComponent): Renamed from parent, made private.
809 (selectionVisible): Renamed from vis_sel, made private.
810 (blinkRate): Renamed from blink, made private.
811 (magicCaretPosition): Renamed from magic, made private.
812 (visible): Renamed from vis, made private.
813 (dot): Made private.
814 (mark): Likewise.
815 (deinstall): Remove as MouseMotionListener.
816 (install): Initialize textComponent first. Add as MouseMotionListener.
817 (paint): Reimplemented.
818 * javax/swing/text/JTextComponent.java
819 (setCaret): Deinstall old caret, install new one and fire property
820 change after setting property.
821 (setHighlighter): Deinstall old highlighter, install new one and fire
822 property change after setting property.
823 (setCaretColor): Fire property change after setting property.
824 (setDisabledTextColor): Likewise.
825 (setSelectedTextColor): Likewise.
826 (setSelectionColor): Likewise.
827 (modelToView): New method.
828
8292004-08-31 Michael Koch <konqueror@gmx.de>
830
831 * javax/swing/text/AbstractDocument.java
832 (getText): Simplified.
833 * javax/swing/text/Segment.java
834 (current): New field.
835 (current): Reimplemented.
836 (first): Likewise.
837 (getIndex): Likewise.
838 (last): Likewise.
839 (next): Likewise.
840 (previous): Likewise.
841 (setIndex): Likewise.
842
8432004-08-31 Michael Koch <konqueror@gmx.de>
844
845 * javax/swing/plaf/basic/BasicButtonUI.java
846 (defaultTextIconGap): Made protected.
847 (defaultTextShiftOffset): Likewise.
848 (textShiftOffset): New field.
849 (clearTextShiftOffset): New method.
850 (getTextShiftOffset): Likewise.
851 (setTextShiftOffset): Likewise.
852
8532004-08-31 Michael Koch <konqueror@gmx.de>
854
855 * javax/swing/plaf/basic/BasicTextUI.java
856 (installUI): Add eventHandler as property listener.
857 (uninstallUI): remove eventHandler as propert listener.
858 (installDefaults): Added comment.
859 (installListeners): Likewise.
860 (installKeyboardActions): Likewise.
861 (uninstallDefaults): Likewise.
862 (uninstallListeners): Likewise.
863 (uninstallKeyboardActions): Likewise.
864
8652004-08-31 Michael Koch <konqueror@gmx.de>
866
867 * javax/swing/text/AbstractDocument.java:
868 Fixed some typos in comments.
869 (insertString): Reimplemented.
870 (remove): Likewise.
871 (replace): New method.
872 (children): Dont use fully qualified class name.
873 (DefaultDocumentEvent.offset): Renamed from off.
874 (DefaultDocumentEvent.length): Renamed from len.
875 (DefaultDocumentEvent.type): New field.
876 (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
877 (DefaultDocumentEvent.getType): Implemented.
878
8792004-08-31 Michael Koch <konqueror@gmx.de>
880
881 * javax/swing/plaf/basic/BasicTextUI.java
882 (RootView.textComponent): Removed.
883 (RootView.RootView): Don't initialize textComponent.
884 (RootView.getViewFactory): New method.
885 (EventHandler): New inner class.
886 (rootView): Initialize at instance creation.
887 (eventHandler): New field.
888 (installUI): Don't create view hierarchy directly,
889 call modelChanged() instead.
890 (modelChanged): New method.
891 * javax/swing/text/JTextComponent.java
892 (setDocument): Fire property change event.
893
8942004-08-31 Michael Koch <konqueror@gmx.de>
895
896 * javax/swing/plaf/basic/BasicTextUI.java
897 (RootView.paint): Removed debug output.
898 (paintSafely): Draw highlighter before text.
899 (paintBackground): Use background color of text component.
900 * javax/swing/plaf/basic/BasicToggleButtonUI.java:
901 Reformatted.
902
9032004-08-31 Michael Koch <konqueror@gmx.de>
904
905 * javax/swing/plaf/basic/BasicToolBarUI.java
906 (BasicToolBarUI): Fixed arguments for constructor.
907 (createUI): Fixed creation of object.
908
9092004-08-31 Michael Koch <konqueror@gmx.de>
910
911 * javax/swing/DefaultListSelectionModel.java
912 (fireValueChanged): Renamed from fireSelectionValueChanged,
913 made protected.
914
9152004-08-31 Michael Koch <konqueror@gmx.de>
916
917 * javax/swing/text/TabSet.java
918 (TabSet): Implements java.io.Serializable.
919 * javax/swing/text/TabStop.java
920 (TabStop): Implements java.io.Serializable.
921 (TabStop): Made public.
922
9232004-08-31 Michael Koch <konqueror@gmx.de>
924
925 * javax/swing/JComponent.java
926 (setUI): Fire PropertyChange.
927 * javax/swing/JLabel.java
928 (text): Renamed from labelText.
929 (horizontalAlignment): New default vlaue.
930 (icon): Renamed from activeIcon.
931 (displayedMnemonic): Renamed from mnemonicKey, added default value.
932 (displayedMnemonicIndex): Renamed from underlineChar.
933 (setDisplayedMnemonic): Reimplemented.
934 * javax/swing/JRadioButton.java
935 (JRadioButton): New constructors.
936 * javax/swing/JTextField.java
937 (JTextField): Throw exception if colums < 0, initialitialz
938 this.columns directly and initialize document with text conditionally.
939
9402004-08-31 Michael Koch <konqueror@gmx.de>
941
942 * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
943 javax/swing/plaf/basic/BasicPasswordFieldUI.java,
944 javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
945 * javax/swing/text/FieldView.java
946 (paint): Just call super method for now.
947 * Makefile.am: Added new files.
948 * Makefile.in: Regenerated.
949
9502004-08-31 Ka-Hing Cheung <kahing@javabsp.org>
951
952 * javax/swing/AbstractSpinnerModel.java,
953 javax/swing/JSpinner.java,
954 javax/swing/SpinnerNumberModel.java,
955 javax/swing/plaf/basic/BasicSpinnerUI.java:
956 New files.
957 * javax/swing/plaf/basic/BasicLookAndFeel.java
958 (initClassDefaults): Added defaults for BasicSpinnerUI.
959
9602004-08-31 Michael Koch <konqueror@gmx.de>
961
962 * Makefile.am: Added new files.
963 * Makefile.in: Regenerated.
964
9652004-08-31 Michael Koch <konqueror@gmx.de>
966
967 * javax/swing/TransferHandler.java,
968 javax/swing/plaf/basic/ComboPopup.java: New files
969 * Makefile.am: Added javax/swing/TransferHandler.java and
970 javax/swing/plaf/basic/ComboPopup.java
971 * Makefile.in: Regenerated.
972
9732004-08-31 Roman Kennke <roman@ontographics.com>
974
975 * javax/swing/text/Utilities.java: New file.
976
9772004-08-31 Michael Koch <konqueror@gmx.de>
978
979 * Makefile.am: Added javax/swing/text/Utilities.java.
980 * Makefile.in: Regenerated.
981
9822004-08-31 Graydon Hoare <graydon@redhat.com>
983
984 * javax/swing/text/SimpleAttributeSet.java: New file.
985 * javax/swing/text/StyleConstants.java: New file.
986 * javax/swing/text/StyleContext.java: New file.
987 * javax/swing/text/TabSet.java: New file.
988 * javax/swing/text/TabStop.java: New file.
989 * javax/swing/text/AbstactDocument.java:
990 (AbstractElement): Implement attribute support.
991 * javax/swing/text/AttributeSet.java
992 (NameAttribute): New static field.
993 (ResolveAttribute): New static field.
994 * Makefile.am: Update for new files.
995 * Makefile.in: Regenerate.
996
9972004-08-31 Craig Black <craig.black@aonix.com>
998
999 * gnu/java/awt/peer/gtk/GdkGraphics.java
1000 (drawImage): Add support for scaling pixmaps.
1001 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
1002 (copyAndScalePixmap): New native method.
1003
10042004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1005
1006 PR AWT/16121
1007 * jni/gtk-peer/gthread-jni.c: Include stdio.h. Eliminate
1008 type-punning compiler warnings using unions.
1009 (throw): Replace bzero with memset.
1010
10112004-08-31 Andreas Tobler <a.tobler@schweiz.ch>
1012 Thomas Fitzsimmons <fitzsim@redhat.com>
1013
1014 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
1015 NSA_PB macros to gtkpeer.h. Include gtkpeer.h.
1016 * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
1017 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1018 (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
1019
10202004-08-31 Mark Wielaard <mark@klomp.org>
1021
1022 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
1023 #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
1024 and stdlib.h, not gtkpeer.h.
1025 (*vm): New static variable.
1026 (areaPreparedID): Make static.
1027 (areaUpdatedID): Likewise.
1028 (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1029 (area_prepared): Likewise.
1030 (area_updated): Likewise.
1031 (closed): Likewise.
1032 (initStaticState): Initialize *vm javaVM.
1033 (pumpBytes): Use given env, not global gdk_env.
1034
10352004-08-31 Mark Wielaard <mark@klomp.org>
1036
1037 * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1038 comments.
1039
10402004-08-31 Sven de Marothy <sven@physto.se>
1041
1042 * java/awt/geom/CubicCurve2D.java: Reindent.
1043 (contains): Implemented.
1044 (intersects): Implemented.
1045 * java/awt/geom/QuadCurve2D.java: Likewise.
1046 * java/awt/geom/GeneralPath.java: Reindent and document.
1047 Fully (re)implemented using separate xpoints and ypoints
1048 float[] coords.
1049 * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1050
10512004-08-31 Michael Koch <konqueror@gmx.de>
1052
1053 * javax/swing/JMenuItem.java
1054 (getMenuDragMouseListeners): New method.
1055 (getMenuKeyListeners): Likewise.
1056
10572004-08-31 Michael Koch <konqueror@gmx.de>
1058
1059 * javax/swing/AbstractButton.java
1060 (model): Made protected.
1061 (actionListener): Likewise.
1062 (changeListener): Likewise.
1063 (itemListener): Likewise.
1064 (multiClickThreshhold): New field.
1065 (getActionListeners): New method.
1066 (getChangeListeners): Likewise.
1067 (getItemListeners): Likewise.
1068 (fireItemStateChanged): Simplified implementation.
1069 (fireActionPerformed): Likewise.
1070 (fireStateChanged): Likewise.
1071 (getMultiClickThreshhold): New method.
1072 (setMultiClickThreshhold): Likewise.
1073
10742004-08-31 Tom Tromey <tromey@redhat.com>
1075
1076 * java/awt/image/Kernel.java (clone): Use super.clone().
1077
10782004-08-31 David Jee <djee@redhat.com>
1079
1080 PR AWT/16682
1081 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1082 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1083 (nativeSetIconImageFromData): New native method declaration.
1084 (setIconImage): Handle images not produced from GdkPixbufDecoder.
1085 * gnu/java/awt/peer/gtk/GtkImage.java
1086 (getPixelCache): New method.
1087 (getColorModel): New method.
1088 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1089 (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1090 (free_pixbuf_data): New helper function.
1091 (nativeSetIconImageFromData): New function.
1092
10932004-08-31 Graydon Hoare <graydon@redhat.com>
1094
1095 PR SWING/16576
1096 * javax/swing/JLayeredPane.java
1097 (setLayer): Permit changing layer after addition.
1098 (setPosition): Permit over-length positions.
1099 (layerToRange): Compare intValue()s.
1100 * javax/swing/Box.java (createHorizontalBox): Implement.
1101 (createRigidArea): Likewise.
1102 (createVerticalBox): Likewise.
1103
11042004-08-31 Kim Ho <kho@redhat.com>
1105
1106 * java/awt/Component.java:
1107 (processMouseEvent): Consume event after
1108 listeners process it.
1109 (processMouseMotionEvent): ditto.
1110 (processMouseWheelEvent): ditto.
1111 * java/awt/Container.java:
1112 (acquireComponentForMouseEvent):
1113 Do not dispatch to events that have been
1114 removed from the Container.
1115 (handleEvent): Consume the MouseEvents.
1116 * javax/swing/RepaintManager.java:
1117 (paintDirtyRegions): Do not add to list of
1118 damaged areas if the component has no root.
1119
11202004-08-31 Michael Koch <konqueror@gmx.de>
1121
1122 * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1123
11242004-08-31 Mark Wielaard <mark@klomp.org>
1125
1126 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1127 null when a MissingResourceException is thrown. Should never happen.
1128
11292004-08-31 Mark Wielaard <mark@klomp.org>
1130
1131 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1132 when argument is null.
1133
11342004-08-31 Mark Wielaard <mark@klomp.org>
1135
1136 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1137 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1138 Define hid at start of function.
1139 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1140 Likewise.
1141
11422004-08-31 Mark Wielaard <mark@klomp.org>
1143
1144 * gnu/java/awt/EmbeddedWindow.java: Reindent.
1145 * javax/swing/JButton.java: Reindent.
1146 * javax/swing/JCheckBox.java: Reindent.
1147
11482004-08-31 Mark Wielaard <mark@klomp.org>
1149
1150 * Makefile.am (gtk_c_source_files): Added
1151 jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1152 (gtk_awt_peer_sources): Added
1153 gnu/java/awt/peer/gtk/GThreadMutex.java and
1154 gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1155 * Makefile.in: Regenerated.
1156
11572004-08-31 Archie Cobbs <archie@dellroad.org>
1158
1159 * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1160
11612004-08-31 Steven Augart <augart@watson.ibm.com>
1162
1163 * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types):
1164 Added jfieldID, jmethodID.
1165
11662004-08-31 Mark Wielaard <mark@klomp.org>
1167
1168 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1169 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1170 gdk_env before calling any gdk or gtk function.
1171
1172 * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1173 (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1174 (run): Set gtkInitCalled.
1175
11762004-08-31 Steven Augart <augart@watson.ibm.com>
1177
1178 * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of
1179 the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1180
1181 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1182 (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1183 portableNativeSync. Delegate PORTABLE_NATIVE_SYNC work to
1184 init_glib_threads.
1185 (init_glib_threads): New function.
1186
11872004-08-31 Mark Wielaard <mark@klomp.org>
1188
1189 * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1190 PRIORITY when not already defined in header file.
1191
11922004-08-31 Mark Wielaard <mark@klomp.org>
1193
1194 * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1195 ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1196
11972004-08-31 Steven Augart <augart@watson.ibm.com>
1198
1199 * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1200 Implemented missing functions for GTK2.
1201 Added error handling.
1202 Renamed static functions out of the g_ namespace.
1203 Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN,
1204 EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1205 Rewrote global-reference code.
1206 Eliminated cascading errors.
1207 (mutex_trylock_jni_impl) Fully implemented.
1208 (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1209 resolution.
1210 (setup_cache) New function.
1211 (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1212 bug where they were not unlocking the GMutex associated with the
1213 condition variable during the wait on that condition variable.
1214
1215 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1216 native/jni/gtk-peer/gthread-jni.c,
1217 native/jni/gtk-peer/gthread-jni.h
1218 (g_thread_jni_functions): Renamed to ...
1219 (portable_native_sync_jni_functions): this name.
1220 (gdk_vm): Renamed to...
1221 (the_vm): this name.
1222
1223 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1224 (gdk_vm): Removed duplicate definition.
1225 (gtkInit): Removed stray message to stdout.
1226 (gtkInit): Use g_malloc and g_free instead of malloc and free.
1227 (gtkInit): Fix a const assignment bug.
1228 (gtkInit): Simplified code.
1229
1230 * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1231 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1232 native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1233 gnu/java/awt/peer/gtk/GThreadMutex.java:
1234 New files.
1235
12362004-08-31 Mark Wielaard <mark@klomp.org>
1237
1238 * javax/swing/Box.java: Put FIXME comment above class declaration.
1239 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1240 * javax/swing/JCheckBox.java: Likewise.
1241 * javax/swing/JDialog.java: Likewise.
1242 * javax/swing/JRadioButton.java: Likewise.
1243 * javax/swing/JToggleButton.java: Likewise.
1244 * javax/swing/UIManager.java: Likewise.
1245 * javax/swing/border/TitledBorder.java: Likewise.
1246 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1247 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1248 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1249 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1250 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1251 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1252 * javax/swing/text/JTextComponent.java: Likewise.
1253
12542004-08-31 David Jee <djee@redhat.com>
1255
1256 PR AWT/16682
1257 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1258 (setIconImage): Add a FIXME for unhandled cases.
1259
12602004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1261
1262 PR AWT/16040
1263 * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1264 getModifiers. Replace old button masks with new ones.
1265 * gnu/awt/xlib/XEventLoop.java: Likewise.
1266 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1267 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1268 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1269 * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1270 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1271 * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1272 * java/awt/Component.java: Replace old modifier masks with new
1273 ones.
1274 * java/awt/Container.java: Call getModifiersEx, not
1275 getModifiers.
1276 * java/awt/DefaultKeyboardFocusManager.java: Likewise. Remove
1277 old modifier masks.
1278 * javax/swing/JMenuItem.java: Replace old button masks with new
1279 ones.
1280 * javax/swing/KeyStroke.java: Call getModifiersEx, not
1281 getModifiers.
1282 * javax/swing/SwingUtilities.java: Likewise.
1283 * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1284 * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1285 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1286 mask macros with new ones.
1287 * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1288 macros with new ones representing new masks.
1289
12902004-08-31 Craig Black <craig.black@aonix.com>
1291
1292 * gnu/java/awt/peer/gtk/GdkGraphics.java
1293 (drawRoundRect): Implemented.
1294 (fillRoundRect): Implemented.
1295 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1296 (drawRoundRect): Reimplemented to match GdkGraphics.
1297 (fillRoundRect): Reimplemented to match GdkGraphics.
1298
12992004-08-31 Mark Wielaard <mark@klomp.org>
1300
1301 * Makefile.in: Regenerated.
1302
13032004-08-31 Michael Koch <konqueror@gmx.de>
1304
1305 * gnu/java/awt/EmbeddedWindow.java
1306 (addNotify): Use AccessController to allow execution of privileged
1307 code.
1308
13092004-08-31 Michael Koch <konqueror@gmx.de>
1310
1311 * gnu/java/awt/EmbeddedWindow.java
1312 (static): Removed.
1313 (addNotify): Set peer via reflection.
1314 (setWindowPeer): Removed.
1315 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1316 * Makefile.am (nat_source_files):
1317 Removed gnu/java/awt/natEmbeddedWindow.cc.
1318
13192004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1320
1321 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
1322 and gnu/java/security/action/SetAccessibleAction.java.
1323
13242004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1325
1326 * gnu/java/security/action/GetPropertyAction.java (setParameters):
1327 Renamed from 'setName'. New 2-argument form with default value.
1328 (run): Pass default 'value' parameter to System.getProperty().
1329 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1330 typos.
1331
13322004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1333
1334 * gnu/java/security/action/GetPropertyAction.java: New class.
1335 * gnu/java/security/action/SetAccessibleAction.java: New class.
1336
13372004-08-31 David Jee <djee@redhat.com>
1338
1339 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1340 (setIconImage): Check if image is null.
1341
13422004-08-31 David Jee <djee@redhat.com>
1343
1344 * gnu/java/awt/peer/gtk/GtkFramePeer.java
1345 (create): Set the icon image.
1346 (nativeSetIconImage): New native method declaration.
1347 (setIconImage): Implement.
1348 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1349 (nativeSetIconImage): New function.
1350
13512004-08-31 Dalibor Topic <robilad@kaffe.org>
1352
1353 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1354 (filenameFilterCallback): Declare local variable accepted before use.
1355
13562004-08-31 Dalibor Topic <robilad@kaffe.org>
1357
1358 * gnu/java/awt/ComponentDataBlitOp.java:
1359 Cleaned up imports.
1360
13612004-08-31 Tom Tromey <tromey@redhat.com>
1362
1363 * gnu/java/awt/peer/GLightweightPeer.java,
1364 gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1365 gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1366 javax/swing/JScrollPane.java: Removed
1367 redundant imports.
1368
13692004-08-31 David Jee <djee@redhat.com>
1370
1371 * java/awt/DefaultKeyboardFocusManager.java
1372 (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1373 event. Fix shift modifier checking.
1374 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1375 (accel_attach): Remove.
1376 (setupAccelGroup): Remove calls to accel_attach.
1377
13782004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1379
1380 * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1381 * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1382
1383 * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1384 GtkArgList.java.
1385 (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1386 * Makefile.in: Regenerate.
1387 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1388 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1389 (create(String)): New method.
1390 (create): Call new create method.
1391 (getArgs): Remove method.
1392 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1393 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
1394 (nativeCreate): Rename to create.
1395 (gtkSetLabel): Rename to gtkButtonSetLabel.
1396 (gtkToggleButtonSetActive): New method.
1397 (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1398 (setState): Replace set call with gtkToggleButtonSetActive.
1399 (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1400 (getArgs): Remove method.
1401 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1402 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1403 (gtkWidgetSetSensitive): New method.
1404 (gtkWidgetSetParent): Likewise.
1405 (GtkComponentPeer): Call setParent, setComponentBounds and
1406 setVisibleAndEnabled.
1407 (setParent): New method.
1408 (setComponentBounds): New method.
1409 (setVisibleAndEnabled): New method.
1410 (setEnabled): Call gtkWidgetSetSensitive.
1411 (getArgs): Remove method.
1412 Remove all set methods.
1413 * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1414 gtkWindowSetModal, setTitle and setResizable.
1415 (getArgs): Remove method.
1416 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1417 (setComponentBounds): New method.
1418 * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1419 Replace set call with gtkWindowSetResizable.
1420 (getArgs): Remove method.
1421 (create): Call setTitle and setResizable.
1422 * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1423 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1424 (gtkWindowSetTitle): New method.
1425 (gtkWindowSetResizable): New method.
1426 (gtkWindowSetModal): New method.
1427 (setParent): New method.
1428 (setVisibleAndEnabled): New method.
1429 (getArgs): Remove method.
1430 (setTitle): Call gtkWindowSetTitle.
1431 (setResizable): Call gtkWindowSetResizable.
1432 * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1433 and off locking instrumentation.
1434
14352004-08-31 Kim Ho <kho@redhat.com>
1436
1437 * Makefile.am: Add new file.
1438 * Makefile.in: Regenerate.
1439 * gcj/Makefile.in: Regenerate
1440 * include/Makefile.in:
1441 * java/awt/Container.java:
1442 (acquireComponentForMouseEvent): Respect
1443 the event mask when looking for candidate.
1444 * javax/swing/JComponent.java:
1445 Remove toolTip field.
1446 (createToolTip): Create a tooltip on demand.
1447 (setToolTipText): Register with the ToolTipManager.
1448 (getToolTipText(MouseEvent)): Return getToolTipText().
1449 * javax/swing/JToolTip.java: Implement.
1450 * javax/swing/Timer.java: Jalopy.
1451 (restart): Call stop, then start.
1452 (stop): Interrupt the timer rather than wait for
1453 the timer to come to a stop naturally.
1454 * javax/swing/ToolTipManager.java: Implement.
1455 * javax/swing/plaf/basic/BasicLookAndFeel.java:
1456 Change ToolTip.background color.
1457 * javax/swing/plaf/basic/BasicToolTipUI.java:
1458 Implement.
1459 * testsuite/Makefile.in: Regenerate
1460
14612004-08-31 Jerry Quinn <jlquinn@optonline.net>
1462
1463 * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1464 constructor param comments.
1465
14662004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1467
1468 * java/awt/Component.java: Document AWT 1.0 event handler
1469 methods.
1470
14712004-08-31 Roman Kennke <roman@ontographics.com>
1472
1473 * javax/swing/Box.java:
1474 (createGlue): Implemented
1475 (createHorizontalGlue): Implemented
1476 (createHorizontalStrut): Implemented
1477 (createVerticalGlue): Implemented
1478 (createVerticalStrut): Implemented
1479
14802004-08-31 David Jee <djee@redhat.com>
1481
1482 * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1483 (GtkChoicePeer): Do not automatically select first item.
1484 (getHistory): Remove.
1485 (nativeGetSelected): New method.
1486 (nativeRemoveAll): New method.
1487 (add): Use nativeGetSelected() instead of getHistory().
1488 (remove): Likewise.
1489 (removeAll): Call nativeRemoveAll().
1490 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1491 (create): Migrate to GtkComboBox.
1492 (append): Likewise.
1493 (nativeAdd): Likewise.
1494 (nativeRemove): Likewise.
1495 (select): Likewise.
1496 (nativeRemoveAll): New method.
1497 (nativeGetSelected): New method.
1498 (selection_changed): New method.
1499 (getHistory): Remove.
1500 (item_activate): Remove.
1501 (item_removed): Remove.
1502 (connect_choice_item_selectable_hook): Remove.
1503
15042004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1505
1506 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1507 variable in setEditable call.
1508
1509 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1510 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1511 (gtkWidgetSetBackground): New method.
1512 (gtkWidgetSetForeground): Likewise.
1513 (create): Set peer's editable state based on awtComponent's.
1514
1515 * java/awt/Button.java (Button()): Use empty string rather than
1516 null in no-label constructor.
1517
15182004-08-31 Roman Kennke <roman@ontographics.com>
1519
1520 * javax/swing/BoxLayout.java: Reimplement.
1521
15222004-08-31 Thomas Fitzsimmons <fitzsim@redhat.com>
1523
1524 * gnu/java/awt/peer/gtk/GdkGraphics.java,
1525 gnu_java_awt_peer_gtk_GdkGraphics.c
1526 (initState(GtkComponentPeer)): Don't return array of colour
1527 values.
1528 (GdkGraphics(int,int)): Set default font to size 12.
1529 (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1530 component's foreground colour.
1531 * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1532 gnu_java_awt_peer_gtk_GdkGraphics2D.c
1533 (initState(GtkComponentPeer)): Don't return array of colour
1534 values.
1535 (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1536 colours to component's colours.
1537 (current_colors_of_widget): Remove function.
1538 * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1539 Return a new graphics object.
1540 * java/awt/Font.java (toString): Fix format.
1541 * java/awt/Graphics.java (toString): Likewise.
1542
15432004-08-31 Craig Black <craig.black@aonix.com>
1544
1545 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1546 (addTearOff): New function.
1547 * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1548 New native method.
1549 (init): Call addTearOff() when menu.isTearOff().
1550
15512004-08-31 Bryce McKinlay <mckinlay@redhat.com>
1552
1553 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1554 Default implementation.
1555 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1556 Implement using GdkPixbufDecoder.
1557
15582004-08-31 David Jee <djee@redhat.com>
1559
1560 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1561 (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1562 setting the size of GtkFileDialogPeers.
1563 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1564 (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1565 use their default sizes rather than their natural requisitions.
1566
15672004-08-31 Michael Koch <konqueror@gmx.de>
1568
1569 * javax/swing/JFormattedTextField.java
1570 (JFormattedTextField): Implemented.
1571 * javax/swing/text/DefaultEditorKit.java
1572 (BeepAction): New inner class.
1573 * javax/swing/text/Segment.java
1574 (partialReturn): New field.
1575 (setPartialReturn): New method.
1576 (isPartialReturn): Likewise.
1577 * javax/swing/text/View.java
1578 (createFragment): Fixed typo.
1579 (getStartOffset): New method.
1580 (getEndOffset): Likewise.
1581
15822004-08-31 Michael Koch <konqueror@gmx.de>
1583
1584 * javax/swing/table/DefaultTableColumnModel.java
1585 (serialVersionUID): Made private.
1586 (listenerList): Initialize.
1587 (changeEvent): Initialize.
1588 * javax/swing/table/JTableHeader.java
1589 (JTableHeader): New constructors.
1590 (createDefaultColumnModel): New method.
1591 * javax/swing/table/TableColumn.java
1592 (setHeaderRenderer): Simplified code.
1593 (setCellRenderer): Likewise.
1594 (setWidth): Likewise.
1595
e2ab6d12
TT
15962004-08-31 Tom Tromey <tromey@redhat.com>
1597
1598 * java/text/AttributedString.java (AttributedString): Use
1599 ArrayList to build array of attribute ranges. Don't use
1600 `attribs' before it is set.
1601
1c340cb6
AT
16022004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1603
1604 * HACKING: Remove reference to special automake. No longer needed.
1605
b6e9851a
TT
16062004-08-30 Tom Tromey <tromey@redhat.com>
1607
1608 * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1609 return result from `add'.
1610
05502144
TT
16112004-08-30 Tom Tromey <tromey@redhat.com>
1612
1613 * java/rmi/server/UID.java (UID): Read `nextCount', not count.
1614
e7023b0f
AT
16152004-08-30 Andreas Tobler <a.tobler@schweiz.ch>
1616
1617 * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
1618
2c64dead
JF
16192004-08-30 Jeroen Frijters <jeroen@frijters.net>
1620
1621 * java/io/File.java File(String,String): Fixed handling of empty
1622 path.
1623
bd8a2e96
CM
16242004-08-30 Casey Marshall <csm@gnu.org>
1625
1626 Author e-mail updated for all files.
1627 * gnu/java/security/OID.java (equals): Test if the aurgment is an
1628 instance of OID.
1629 (compareTo): Use `equals'.
1630 * gnu/java/security/der/BitString.java (equals): Test if the
1631 argument is an instance of BitString.
1632 * gnu/java/security/der/DERReader.java: Removed NIO imports. Made
1633 class final. Made fields private.
1634 (<init>): New constructor.
1635 (skip): New method.
1636 (makeString): Made static; don't use NIO.
1637 (fromIso88591, fromUtf16Be, fromUtf8): New methods.
1638 * gnu/java/security/der/DERWriter.java: Fixed imports.
1639 (writeString): Don't use NIO.
1640 (toIso88591, toUtf16Be, toUtf8): New methods.
1641 * gnu/java/security/der/DERValue.java: Formatting changes only.
1642 * gnu/java/security/der/DER.java: Likewise.
1643
68760aee
AT
16442004-08-30 Tom Tromey <tromey@redhat.com>
1645
1646 * java/nio/CharBuffer.java (put): Fix typo.
1647 * java/nio/DoubleBuffer.java (put): Fix typo.
1648 * java/nio/FloatBuffer.java (put): Fix typo.
1649 * java/nio/IntBuffer.java (put): Fix typo.
1650 * java/nio/LongBuffer.java (put): Fix typo.
1651 * java/nio/ShortBuffer.java (put): Fix typo.
1652
16532004-08-30 Florian Weimer <fw@deneb.enyo.de>
1654
1655 * java/nio/ByteBuffer.java (put): Fix typo.
1656
28839b70
CM
16572004-08-30 Casey Marshall <csm@gnu.org>
1658
1659 * java/security/DummyKeyPairGenerator.java (clone): Removed
1660 useless instanceof check.
1661 * java/security/DummyMessageDigest.java (clone): Likewise.
1662 * java/security/DummySignature.java (clone): Likewise.
1663 * java/security/MessageDigest.java (clone): Remove useless
1664 instanceof check.
1665 * java/security/MessageDigestSpi.java (clone): Likewise.
1666 * java/security/Signature.java (clone): Provide meaningful
1667 implementation.
1668 * java/security/SignatureSpi.java (clone): Likewise.
1669
6cd655a3
MW
16702004-08-29 Mark Wielaard <mark@klomp.org>
1671
1672 * java/util/Arrays.java
1673 (sort(byte[], int, int)): Check fromIndex < 0.
1674 (sort(char[], int, int)): Likewise.
1675 (sort(short[], int, int)): Likewise.
1676 (sort(int[], int, int)): Likewise.
1677 (sort(long[], int, int)): Likewise.
1678 (sort(float[], int, int)): Likewise.
1679 (sort(double[], int, int)): Likewise.
1680 (sort(Object[], int, int, Comparator)): Likewise.
1681 (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
1682 (qsort(char[], int, int)): Likewise.
1683 (qsort(short[], int, int)): Likewise.
1684 (qsort(int[], int, int)): Likewise.
1685 (qsort(long[], int, int)): Likewise.
1686 (qsort(float[], int, int)): Likewise.
1687 (qsort(double[], int, int)): Likewise.
1688
477a21f7
AJH
16892004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
1690
1691 * java/util/AbstractCollection.java, java/util/AbstractList.java,
1692 java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
1693 java/util/ArrayList.java, java/util/Arrays.java,
1694 java/util/BitSet.java, java/util/Calendar.java,
1695 java/util/Collection.java, java/util/ListIterator.java,
1696 java/util/Map.java, java/util/SortedSet.java:
1697 Added additional exceptions to documentation, along
1698 with some additions and corrections.
1699
ed347998
HB
17002004-08-27 Hans Boehm <Hans.Boehm@hp.com>
1701
1702 * configure.ac: Handle --enable-gc-debug.
1703 * configure: Regenerate.
1704 * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
1705 * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
1706 Rearrange include file order.
1707 (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
1708 (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
1709 (disable_gc_mutex): Delete along with all references.
1710 (_Jv_MarkObj, _Jv_MarkArray): Use public types,
1711 adjust for debug header size.
1712 (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
1713 debug case.
1714 (_Jv_AllocArray): Declare min_heap_addr only if needed.
1715 (gcj_describe_type_fn): New.
1716 (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
1717 Register gcj_describe_type_fn.
1718 * include/boehm-gc.h:
1719 (_Jv_AllocObj, _Jv_allocPtrFreeObj):
1720 Don't define, but declare, for debug case.
1721 * java/lang/natObject.cc:
1722 (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
1723
42348101
MW
17242004-08-26 Mark Wielaard <mark@klomp.org>
1725
1726 Fixes PR libgcj/17002:
1727 * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
1728 a TimeZoneId string and then try to convert that to a TimeZone with
1729 getDefaultSystemTimeZone(String).
1730 (timezones0): Changed type from Hashtable to HashMap.
1731 (timezones): Create HashMap, not Hashtable.
1732 (getDefaultTimeZone): New method, rewritten from CNI version.
1733 (readTimeZoneFile): New method.
1734 (readtzFile): Likewise.
1735 (skipFully): Likewise.
1736 * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
1737 getDefaultTimeZoneId and rewritten.
1738 (getDefaultTimeZoneId): Rewritten in java.
1739
ed89de94
DD
17402004-08-25 David Daney <daney@avtrex.com>
1741
1742 * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.
1743 * Makefile.in: Regenerated.
1744
8ba14152
BM
17452004-08-23 Bryce McKinlay <mckinlay@redhat.com>
1746
1747 * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
1748 only if jvmpi is enabled.
1749 (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
1750 (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
1751 (_Jv_AllocString): Likewise.
1752 (_Jv_AllocPtrFreeObject): Likewise.
1753
0039c16d 17542004-08-23 Hans Boehm <Hans.Boehm@hp.com>
8ba14152 1755
0039c16d
HB
1756 * defineclass.cc: Include <stdio.h>.
1757 * java/lang/natClassLoader.cc: Include <stdio.h>.
1758
be2043db
AT
17592004-08-21 Andreas Tobler <a.tobler@schweiz.ch>
1760 Michael Koch <konqueror@gmx.de>
1761
1762 * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
1763 * Makefile.in: Regenerated.
1764
b7d9c3ae
MK
17652004-08-20 Michael Koch <konqueror@gmx.de>
1766
1767 * configure.ac: Replaced all AC_TRY_COMPILE macros with
1768 AC_COMPILE_IFELSE macros.
1769
80d8905c
MK
17702004-08-20 Michael Koch <konqueror@gmx.de>
1771
1772 * configure.in: Renamed to configure.ac.
1773 * configure.ac: New file.
1774 * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
1775 include/config.h.in, testsuite/Makefile.in: Regenerated.
1776
cad90591
MK
17772004-08-20 Michael Koch <konqueror@gmx.de>
1778
1779 * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
1780 * aclocal.m4, configure: Regenerated.
1781
e3f92d3b
MK
17822004-08-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1783 Michael Koch <konqueror@gmx.de>
1784
438c7f23
BM
1785 * configure.in, Makefile.am: Ported to automake 1.9.
1786 * Makefile.in, aclocal.m4, configure, gcj/Makefile.in,
1787 include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
e3f92d3b
MK
1788 Regenerated.
1789
476a918f
TT
17902004-08-19 Tom Tromey <tromey@redhat.com>
1791
1792 * java/net/DatagramSocket.java: Fixed typo.
1793
bb0452b1
BM
17942004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1795
1796 PR libgcj/17081
1797 * java/net/URI.java (string): New field. Make all other fields
1798 transient.
1799 (readObject): Implemented.
1800 (writeObject): Implemented.
1801 (URI): Set 'string'.
1802
b4b3435e
BM
18032004-08-18 Bryce McKinlay <mckinlay@redhat.com>
1804
1805 PR libgcj/17079
1806 * java/util/logging/Handler.java (isLoggable): Accept record if its
1807 log level equals the threshold level. From Robin Green.
1808
720086cd
DD
18092004-08-18 David Daney <ddaney@avtrex.com>
1810
1811 * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
1812 instead of sigwait.
1813
baeff970
MK
18142004-08-17 Michael Koch <konqueror@gmx.de>
1815
1816 * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
1817 * Makefile.in: Regenerated.
1818
0e5b1376
TT
18192004-08-16 Tom Tromey <tromey@redhat.com>
1820
1821 PR java/8473:
1822 * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
1823
be170ef2
MK
18242004-08-16 Michael Koch <konqueror@gmx.de>
1825
1826 * Makefile.am
1827 (math_c_files): Renamed from c_files.
1828 (math_c_source_files): Renamed from c_source_files.
1829 * Makefile.in,
1830 gcj/Makefile.in,
1831 include/Makefile.in,
1832 testsuite/Makefile.in: Regenerated.
1833
7614fd28
BM
18342004-08-16 Bryce McKinlay <mckinlay@redhat.com>
1835
1836 * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
1837 to avoid autoconf warning.
1838 * configure: Rebuilt.
1839
1c5192e4
AT
18402004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
1841
1842 * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
1843 localhostAddress to loopbackAddress.
1844 * java/net/natInetAddressWin32.cc (lookup): Likewise.
1845
4109fe85
BM
18462004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1847
1848 * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
1849 boehm-gc's include dirs.
1850 * configure: Rebuilt.
1851 * include/boehm-gc.h: Include gc_config.h.
1852
d7945faf
BM
18532004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1854
1855 * java/net/InetAddress.java (loopbackAddress): Renamed from
1856 localhostAddress.
1857 (getByName): Return loopback address for null hostname, without
1858 security check. Use lookup(), not getAllByName.
1859 (getAllByName): Return loopback address for null hostname, without
1860 security check.
1861 * java/net/natInetAddressPosix.cc (lookup): Don't perform security
1862 check here.
1863
73389fa4
BM
18642004-08-13 Bryce McKinlay <mckinlay@redhat.com>
1865
1866 PR libgcj/17020
1867 Reported by Robin Green.
1868 * defineclass.cc (handleField): Don't throw exception on unrecognised
1869 modifier. Add FIXME comments for spec compliance.
1870 (handleMethod): Likewise.
1871
28e99c62
HB
18722004-08-10 Hans Boehm <Hans.Boehm@hp.com>
1873
1874 PR libgcj/16662
1875 * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
1876 (Almost everywhere): add LOG calls, fix, add comments.
1877 (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
1878 Add explicit check for LOCKED bit in slow case (PR 16662).
1879 (_Jv_MonitorExit): Add casts in debug-only code.
1880 Always release LOCKED bit before throwing exception.
1881 (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
1882 isn't. Handle easy cases without lock acquisition.
1883 (Object::wait): Use NotifyAll for lock inflation.
1884
faa03cf1
DD
18852004-08-12 David Daney <ddaney@avtrex.com>
1886
1887 * testsuite/libjava.lang/Process_1.java: New test.
1888 * testsuite/libjava.lang/Process_2.java: New test.
1889 * testsuite/libjava.lang/Process_3.java: New test.
1890 * testsuite/libjava.lang/Process_4.java: New test.
1891 * testsuite/libjava.lang/Process_5.java: New test.
1892 * testsuite/libjava.lang/Process_6.java: New test.
1893 * testsuite/libjava.lang/Process_1.out: Expected result.
1894 * testsuite/libjava.lang/Process_2.out: Expected result.
1895 * testsuite/libjava.lang/Process_3.out: Expected result.
1896 * testsuite/libjava.lang/Process_4.out: Expected result.
1897 * testsuite/libjava.lang/Process_5.out: Expected result.
1898 * testsuite/libjava.lang/Process_6.out: Expected result.
1899
19002004-08-12 David Daney <ddaney@avtrex.com>
1901
1902 PR libgcj/11801
1903 * java/lang/PosixProcess.java: Rewrote.
1904 * java/lang/natPosixProcess.cc: Rewrote.
1905 * java/lang/Runtime.java (execInternal): Declare throws IOException.
1906 * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
1907 * posix-threads.cc (block_sigchld) New function.
1908 (_Jv_ThreadRegister) Use it.
1909 (_Jv_ThreadStart) Use it.
1910 * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
1911 * Makefile.am: ... to specify extra native headers.
1912 * configure: Regenerated.
1913 * include/config.h: Regenerated.
1914 * Makefile.in: Regenerated.
1915 * gcj/Makefile.in: Regenerated.
1916 * include/Makefile.in: Regenerated.
1917 * testsuite/Makefile.in: Regenerated.
1918
c597ef4e
DN
19192004-08-12 Diego Novillo <dnovillo@redhat.com>
1920
1921 PR tree-optimization/16867
1922 * testsuite/libjava.lang/PR16867.java: New test.
1923
b4d49f49
PB
19242004-08-09 Per Bothner <per@bothner.com>
1925
1926 * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
1927 with private fields and access methods.
1928 (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
1929 * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
1930 * prims.cc (_Jv_Utf8COnst::init): New method implementation.
1931 ( _Jv_makeUtf8Const): Rewrite using new constructors.
1932 (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
1933 * defineclass.cc: Use new _Utf8Const access/convenience methods.
1934 * jni.cc: Likewise.
1935 * resolve.cc: Likewise.
1936 * gcj/field.h: Likewise.
1937 * include/jvm.h: Likewise.
1938 * java/lang/Class.h: Likewise.
1939 * java/lang/natClass.cc: Likwise.
1940 * java/lang/natClassLoader.cc: Likewise
1941 * java/lang/reflect/natMethod.cc: Likewise
1942 * verify.cc: Likewise.
1943 (_Jv_BytecodeVerifier::make_utf8_const): Optimize.
1944 (~_Jv_BytecodeVerifier): Don't need second _Jv_Free call.
1945
7e04b67b
AH
19462004-08-10 Andrew Haley <aph@redhat.com>
1947
1948 * testsuite/libjava.lang/err14.java: New file.
1949 * testsuite/libjava.lang/err14.out: New file.
1950
48a8c565
AT
19512004-08-05 Andreas Tobler <a.tobler@schweiz.ch>
1952
1953 * Makefile.am: Fix missing rename from x_nat_headers to
1954 xlib_nat_headers.
1955 * Makefile.in: Regenerated.
1956
26be638d
AH
19572004-08-04 Andrew Haley <aph@redhat.com>
1958
1959 * java/security/BasicPermission.java: Don't check wildcards.
1960
614c0fc2
TF
19612004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1962 Michael Koch <konqueror@gmx.de>
1963
1964 * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
1965 * configure.in: Replaced all usages of AC_LINK_FILES by
1966 AC_CONFIG_LINKS.
1967 * aclocal.m4,
1968 configure: Regenerated.
1969
ff78c80b
TF
19702004-08-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1971 Michael Koch <konqueror@gmx.de>
1972
1973 * acconfig.h: Removed.
1974 * Makefile.am: Rename variables for xlib peer to include xlib and
1975 gtk_c_headers to gtk_jni_headers.
1976 * Makefile.in: Regenerated.
1977
76207f7c
AH
19782004-08-04 Andrew Haley <aph@redhat.com>
1979
1980 * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
1981 debugging.
1982
aed6152d
NN
19832004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
1984
1985 * configure.in: Eliminate uses of changequote (mostly by quoting []).
1986 Replace most top level 'dnl' comments with '#' comments, conforming
1987 to new autoconf style. Use AS_HELP_STRING throughout; improve a few
1988 help strings.
1989 * configure: Rebuilt.
1990
ed698112
NN
19912004-07-17 Nathanael Nerode <neroden@gcc.gnu.org>
1992
1993 * acinclude.m4: Include no-executables.m4.
1994 * aclocal.m4: Rebuild.
1995 * configure.in: Convert to the autoconf 2.59 version of
1996 of the no-executables hack, and also of the nonstandard CXX
1997 hack and the multilibbed CC and CXX hack. Change prerequisite
1998 to autoconf 2.59.
1999 * configure: Rebuild with autoconf 2.59. (Woo-hoo!)
2000 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
2001 testsuite/Makefile.in: Regenerate.
2002
8e9031ec
TT
20032004-08-03 Tom Tromey <tromey@redhat.com>
2004
2005 * jni.cc: Reindented.
2006
474f5417
BM
20072004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2008
2009 * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
2010
899deeca
BM
20112004-08-02 Bryce McKinlay <mckinlay@redhat.com>
2012
2013 * testsuite/libjava.compile/PR16701.java: New test.
2014
b828123e
AJH
20152004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
2016
2017 * java/util/Collection.java, java/util/List.java,
2018 java/util/Map.java, java/util/Set.java,
2019 java/util/SortedMap.java, java/util/SortedSet.java:
2020 Added additional exceptions to documentation.
2021
5b5662ee
DS
20222004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
2023
2024 PR libgcj/16814
2025 * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2026 * configure. Regenerate.
2027 * include/win32.h: Explicitly include winsock2.h
2028 * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2029 Winsock api.
2030
f370ef24
MK
20312004-07-30 Michael Koch <konqueror@gmx.de>
2032
2033 * java/util/zip/GZIPInputStream.java
2034 (GZIPInputStream): Increase buffer size to 4k.
2035 * java/util/zip/GZIPOutputStream.java
2036 (GZIPOutputStream): Likewise.
2037 * java/util/zip/Inflater.java
2038 (setInput): Merged formating with GNU classpath.
2039 * java/util/zip/InflaterInputStream.java
2040 (InflaterInputStream): Increase buffer size to 4k.
2041 (fill): Throw exception if stream ends early.
2042 (read): Merged endless-loop with GNU classpath.
2043 (skip): Increase buffer size to 2k.
2044
2afed683
MK
20452004-07-30 Michael Koch <konqueror@gmx.de>
2046
2047 * gnu/java/awt/EmbeddedWindow.java
2048 (addNotify): Use AccessController to allow execution of privileged
2049 code.
2050
a639e504
MK
20512004-07-29 Michael Koch <konqueror@gmx.de>
2052
2053 * gnu/java/lang/MainThread.java:
2054 Explicitely import used classes.
2055 (args): Make it type String[].
2056
1cc49b13
DT
20572004-07-29 Dalibor Topic <robilad@kaffe.org>
2058
2059 * gnu/java/awt/ComponentDataBlitOp.java,
2060 gnu/java/beans/ExplicitBeanInfo.java,
2061 gnu/java/beans/IntrospectionIncubator.java,
2062 gnu/java/beans/editors/ColorEditor.java,
2063 gnu/java/beans/editors/FontEditor.java,
2064 gnu/java/beans/editors/NativeBooleanEditor.java,
2065 gnu/java/beans/editors/NativeByteEditor.java,
2066 gnu/java/beans/editors/NativeDoubleEditor.java,
2067 gnu/java/beans/editors/NativeFloatEditor.java,
2068 gnu/java/beans/editors/NativeIntEditor.java,
2069 gnu/java/beans/editors/NativeLongEditor.java,
2070 gnu/java/beans/editors/NativeShortEditor.java,
2071 gnu/java/beans/editors/StringEditor.java,
2072 gnu/java/io/ClassLoaderObjectInputStream.java,
2073 gnu/java/io/decode/Decoder.java,
2074 gnu/java/io/encode/Encoder.java,
2075 gnu/java/lang/ClassHelper.java,
2076 gnu/java/locale/Calendar.java,
2077 gnu/java/locale/Calendar_de.java,
2078 gnu/java/locale/Calendar_en.java,
2079 gnu/java/locale/Calendar_nl.java,
2080 gnu/java/locale/LocaleInformation_de.java,
2081 gnu/java/locale/LocaleInformation_en.java,
2082 gnu/java/locale/LocaleInformation_nl.java:
2083 Cleaned up imports.
2084
4d4fed15
BM
20852004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2086
2087 * README: Remove obsolete info. Update bug URL.
2088 * THANKS: Updated.
e90bcbf5 2089 * NEWS: Updated with news up to GCC 3.4 release.
4d4fed15 2090
64d696b6
BM
20912004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2092
2093 * gnu/java/security/action/GetPropertyAction.java (setParameters):
2094 Renamed from 'setName'. New 2-argument form with default value.
2095 (run): Pass default 'value' parameter to System.getProperty().
2096 * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2097 typos.
2098 * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2099 not 'setName'.
2100
f0faf24b
BM
21012004-07-28 Bryce McKinlay <mckinlay@redhat.com>
2102
2103 * configure.in: Check for minimum GTK version 2.4 requirement.
2104 * configure: Rebuilt.
2105
ce961468
BM
21062004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2107
2108 * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2109 * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2110 Reduce sleep time.
2111 * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2112 compiler bug.
2113 * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
2114 address. Reduce sleep times. Synchronize with target threads before
2115 attempting to interrupt them. Don't try to calibrate yeild count,
2116 instead, always loop for a fixed time.
2117 * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2118 * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2119 * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2120 * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2121 * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2122 * testsuite/libjava.lang/pr179.java: Likewise.
2123 * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2124 time. Remove upper bounds check on sleep time.
2125
0954f3eb
BM
21262004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2127
2128 * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2129 * testsuite/libjava.lang/Thread_HoldsLock.out: New.
2130
d078f7c0
BM
21312004-07-27 Bryce McKinlay <mckinlay@redhat.com>
2132
2133 * java/io/File.java (toURI): Throw RuntimeException, not
2134 InternalError.
2135 * java/lang/Runtime.java (exit): Qualify static sleep() call with
2136 class name, not instance.
2137
8b66a9e9
BM
21382004-07-24 Bryce McKinlay <mckinlay@redhat.com>
2139
2140 * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2141 and gnu/java/security/action/SetAccessibleAction.java.
2142 * Makefile.in: Rebuilt.
2143
ffe4e037
BM
21442004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2145
2146 * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2147 (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2148 _Jv_InitPrimClass.
2149 (DECLARE_PRIM_TYPE): Don't declare array vtables.
2150 * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2151 * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2152
ef05818b
TF
21532004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
2154
2155 * Makefile.am: Replace jar, rmic and rmiregistry references with
2156 gjar, grmic and grmiregistry.
2157 * configure.in: Likewise.
2158 * Makefile.in: Regenerate.
2159 * configure: Likewise.
2160 * gcj/Makefile.in: Likewise.
2161 * include/Makefile.in: Likewise.
2162 * testsuite/Makefile.in: Likewise.
2163
ae066484
BM
21642004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2165
ec5c28ec
BM
2166 * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2167 for privileged getProperty calls.
2168 * java/io/ObjectOutputStream.java (getField): No longer static. Use
2169 SetAccessibleAction instead of anonymous class for doPrivileged call.
2170 (getMethod): Likewise.
2171 (setAccessible): New field. PrivilegedAction object to use when
2172 calling setAccessible.
2173 * java/io/ObjectStreamClass.java (calculateOffsets): Use
2174 SetAccessibleAction instead of anonymous class for diPrivileged call.
2175 (setFields): Likewise.
2176 (getClassUID): Likewise.
2177 (findMethod): Likewise.
2178 * gnu/java/security/action/GetPropertyAction.java: New class.
2179 * gnu/java/security/action/SetAccessibleAction.java: New class.
2180
21812004-07-23 Bryce McKinlay <mckinlay@redhat.com>
2182
2183 * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2184 for final fields.
ae066484
BM
2185 * testsuite/libjava.lang/Serialization.java: New test.
2186 * testsuite/libjava.lang/Serialization.out: New.
2187
21882004-07-23 Bryce McKinlay <mckinlay@redhat.com>
694e657a
MW
2189
2190 * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2191 missed in last commit.
2192
392abf6b
MW
21932004-07-23 Mark Wielaard <mark@klomp.org>
2194
2195 * java/lang/System.java (static): Set http.agent system property when
2196 not yet set.
2197 * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2198 from system property inside AccessController.doPrivileged() call.
2199 (proxyPort): Made package private.
2200 (proxyInUse): Likewise.
2201 (proxyHost): Likewise.
2202 (userAgent): Likewise.
2203
6d97cb60
MW
22042004-07-23 Mark Wielaard <mark@klomp.org>
2205
2206 * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2207 implementation.
2208
f1f90ae0
BM
22092004-07-22 Bryce McKinlay <mckinlay@redhat.com>
2210
2211 * Makefile.am (ordinary_java_source_files): Add
2212 DefaultContentHandlerFactory.java.
2213 * Makefile.in: Rebuilt.
2214 * java/net/URLConnection.java (defaultFactory): New field.
2215 (getContent):
2216 (getContentHandler): Renamed from 'setContentHandler'. Try
2217 defaultFactory after user-set factory, if any. Search for content
2218 handler implementations in gnu.java.net.content, not gnu.gcj.content.
2219 * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2220 Implemented.
2221 (getLastModified): Implemented.
2222 (getPermission): Create file permission here, instead of in
2223 constructor.
2224 * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2225 Implemented.
2226 * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2227 Implemented.
2228 (getLastModified): Implemented.
2229 * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2230 Default implementation.
2231 * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2232 Implement using GdkPixbufDecoder.
2233
8e99fb4f
GH
22342004-07-21 Michael Koch <konqueror@gmx.de>
2235
2236 * javax/swing/JTextArea.java
2237 (setLineWrap): Fire property change event after new value is set.
2238 (setTabSize): Likewise.
2239
22402004-07-21 Michael Koch <konqueror@gmx.de>
2241
2242 * javax/swing/JTable.java
2243 (autoCreateColumnsFromModel): New field.
2244 (autoResizeMode): Likewise.
2245 (cellEditor): Likewise.
2246 (cellSelectionEnabled): Likewise.
2247 (columnModel): Likewise.
2248 (dataModel): Likewise.
2249 (defaultEditorsByColumnClass): Likewise.
2250 (defaultRenderersByColumnClass): Likewise.
2251 (editingColumn): Likewise.
2252 (editingRow): Likewise.
2253 (gridColor): Likewise.
2254 (preferredViewportSize): Likewise.
2255 (rowHeight): Likewise.
2256 (rowMargin): Likewise.
2257 (rowSelectionAllowed): Likewise.
2258 (selectionBackground): Likewise.
2259 (selectionForeground): Likewise.
2260 (selectionModel): Likewise.
2261 (showHorizontalLines): Likewise.
2262 (showVerticalLines): Likewise.
2263 (tableHeader): Likewise.
2264 (JTable): Implemented.
2265 (getColumnModel): Likewise.
2266 (getSelectedRow): Likewise.
2267 (getSelectionModel): Likewise.
2268 (setModel): Likewise.
2269 (setSelectionModel): Likewise.
2270 (createScrollPaneForTable): New method.
2271 (createDefaultDataModel): Likewise.
2272 (createDefaultListSelectionModel): Likewise.
2273 (getModel): Likewise.
2274 (getTableHeader): Likewise.
2275 (setTableHeader): Likewise.
2276 (getColumnSelectionAllowed): Likewise.
2277 (setColumnSelectionAllowed): Likewise.
2278 (getRowSelectionAllowed): Likewise.
2279 (setRowSelectionAllowed): Likewise.
2280 (getAutoResizeMode): Likewise.
2281 (setAutoResizeMode): Likewise.
2282 (getColumnCount): Likewise.
2283 (getRowCount): Likewise.
2284 (getCellRenderer): Likewise.
2285 * javax/swing/JTree.java
2286 (cellRenderer): New field.
2287 (editable): Likewise.
2288 (rootVisible): Likewise.
2289 (showsRootHandles): Likewise.
2290 (getModel): New method.
2291 (setModel): Likewise.
2292 (isEditable): Likewise.
2293 (setEditable): Likewise.
2294 (isRootVisbile): Likewise.
2295 (setRootVisible): Likewise.
2296 (getShowsRootHandles): Likewise.
2297 (setShowRootHandles): Likewise.
2298 (getCellRenderer): Likewise.
2299 (setCellRenderer): Likewise.
2300
23012004-07-21 Michael Koch <konqueror@gmx.de>
2302
2303 * javax/swing/JFormattedTextField.java
2304 (setDocument): Implemented.
2305 * javax/swing/JRootPane.java:
2306 Fixed javadocs.
2307 * javax/swing/JTable.java
2308 (getDefaultRenderer): New method.
2309 * javax/swing/JTextField.java
2310 (setFont): Likewise.
2311 (getPreferredSize): Likewise.
2312 * javax/swing/JToggleButton.java
2313 (getAccessibleContext): Fix javadoc.
2314 * javax/swing/JTree.java:
2315 Add some javadocs.
2316 * javax/swing/JViewport.java:
2317 Likewise.
2318
23192004-07-21 David Jee <djee@redhat.com>
2320
2321 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2322 Collect all native method declaration at the top.
2323 (create): Set the filename filter if necessary.
2324 (setDirectory): Call nativeSetDirectory().
2325 (setFilenameFilter): Implement.
2326 (filenameFilterCallback): New method.
2327 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2328 (create): Configure dialog to show hidden files.
2329 (filenameFilterCallback): New function.
2330 (nativeSetFilenameFilter): New function.
2331 (nativeSetDirectory): New function.
2332
23332004-07-21 Kim Ho <kho@redhat.com>
2334
2335 * javax/swing/plaf/basic/BasicSliderUI.java:
2336 Ran Jalopy.
2337 (paintTrack): Fill the track before painting
2338 the borders.
2339
23402004-07-21 Graydon Hoare <graydon@redhat.com>
2341
2342 patch from Roman Kennke <roman@ontographics.com>
2343 * javax/swing/Spring.java: New file.
2344 * javax/swing/SpringLayout.java: New file.
2345 * Makefile.am: Add new files.
2346 * Makefile.in: Regenerate.
2347
23482004-07-21 Graydon Hoare <graydon@redhat.com>
2349
2350 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2351 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2352 * javax/swing/ScrollPaneLayout.java: Likewise.
2353
23542004-07-21 Kim Ho <kho@redhat.com>
2355
2356 * javax/swing/DefaultDesktopManager.java:
2357 (findMinimum): Removed.
2358 (resizeFrame): Trust the UI to pass valid
2359 bounds.
2360 * javax/swing/JOptionPane.java:
2361 Implemented showInternalXXXDialog methods.
2362 (startModal): New method.
2363 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2364 (BorderListener::mouseDragged): Verify that the new
2365 bounds are valid before passing them to the DesktopManager.
2366 (preferredLayoutSize): Delegate
2367 to getSize.
2368 (minimumLayoutSize): Ditto.
2369 (getSize): New method.
2370 (GlassPaneDispatcher): Reimplemented by copying
2371 a stripped down LightweightDispatcher from Container.
2372 (getMinimumSize): Call minimumLayoutSize.
2373 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2374 Ran Jalopy.
2375 (mousePressed): Add ability to properly close
2376 JInternalFrames.
2377 * javax/swing/plaf/basic/BasicToolBarUI.java:
2378 (DragWindow): Set owner for DragWindow.
2379
23802004-07-21 Jerry Quinn <jlquinn@optonline.net>
2381
2382 * java/awt/image/ShortLookupTable.java: New file.
2383 * java/awt/image/ByteLookupTable.java: New file.
2384 * Makefile.am: Added new files.
2385 * Makefile.in: Regenerated.
2386
23872004-07-21 David Jee <djee@redhat.com>
2388
2389 * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2390 (create(GtkContainerPeer)): New native method.
2391 (create()): Call native create(), passing in the parent frame
2392 as the paramter. Natively set the current file and directory.
2393 (setFile): Construct an absolute filename before passing it to
2394 the native peer.
2395 (nativeGetDirectory): New method.
2396 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2397 (window_closed): Removed.
2398 (ok_clicked): Likewise.
2399 (cancel_clicked): Likewise.
2400 (handle_response): New method.
2401 (create): Use GtkFileChooserDialog.
2402 (connectSignals): Connect to handle_response.
2403 (nativeGetDirectory): New method.
2404 (nativeSetFile): Use GtkFileChooserDialog.
2405
24062004-07-21 Jerry Quinn <jlquinn@optonline.net>
2407
2408 * java/awt/image/LookupTable.java: New file.
2409 * Makefile.am: Added new file.
2410 * Makefile.in: Regenerated.
2411
24122004-07-21 Jerry Quinn <jlquinn@optonline.net>
2413
2414 * java/awt/image/Kernel.java: New file.
2415 * Makefile.am: Added new file.
2416 * Makefile.in: Regenerated.
2417
24182004-07-21 Olga Rodimina <rodimina@redhat.com>
2419
2420 * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2421 * javax/swing/JMenu.java: Likewise.
2422 * javax/swing/JMenuBar.java: Likewise.
2423 (MARGIN_CHANGED_PROPERTY): New property.
2424 (setMargin): Implemented.
2425 * javax/swing/JMenuItem.java: Fixed javadocs.
2426 * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2427 (LABEL_CHANGED_PROPERTY): New property.
2428 (add): changed to use createActionComponent.
2429 (createActionComponent): Implemented.
2430 (setLabel): Fire PropertyChangeEvent if label property
2431 changes.
2432 * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2433 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2434 (ContainerHandler): Repaint if margin property has changed.
2435 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2436 (installUI): Call installComponents().
2437 (uninstallUI): Call uinstallComponents().
2438 * javax/swing/plaf/basic/BasicMenuUI.java:
2439 Fixed javadocs.
2440 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2441 Likewise.
2442
24432004-07-21 Kim Ho <kho@redhat.com>
2444
2445 * javax/swing/plaf/basic/BasicToolBarUI.java:
2446 (DragWindow): Use the right constructor.
2447
24482004-07-21 Kim Ho <kho@redhat.com>
2449
2450 * javax/swing/JToolBar.java:
2451 (layoutContainer): Use getComponents.
2452 * javax/swing/plaf/basic/BasicToolBarUI.java:
2453 (DragWindow): Don't use SwingUtilities'
2454 getOwnerFrame
2455 (ToolBarDialog): ditto.
2456
24572004-07-21 Kim Ho <kho@redhat.com>
2458
2459 * javax/swing/JRootPane.java:
2460 Ran jalopy.
2461 (layoutContainer): Set the glasspane's size to
2462 be the same as the content pane.
2463 (createGlassPane): Set opaque property to false.
2464
24652004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2466
2467 * java/awt/Component.java (requestFocus()): Don't handle Panels
2468 specially.
2469 (requestFocus(boolean)): Likewise.
2470 (requestFocusInWindow(boolean)): Likewise.
2471 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2472 Set GTK_CAN_FOCUS flag.
2473
24742004-07-21 Kim Ho <kho@redhat.com>
2475
2476 * Makefile.am: Added new file.
2477 * Makefile.in: Regenerated.
2478 * gcj/Makefile.in: Regenerated.
2479 * include/Makefile.in: Regenerated.
2480 * javax/swing/AbstractButton.java:
2481 Add rollOverEnabled property.
2482 (setRolloverEnabled): Use new property.
2483 (isRolloverEnabled): Use new property.
2484 * javax/swing/JTabbedPane.java:
2485 (setComponent): Remove useless JTabbedPane.this.
2486 * javax/swing/JToolBar.java: Finish implementation.
2487 * javax/swing/plaf/basic/BasicArrowButton.java:
2488 (paint): Moved border painting to a border.
2489 * javax/swing/plaf/basic/BasicLookAndFeel.java:
2490 Change JToolBar look and feel defaults.
2491 * javax/swing/plaf/basic/BasicOptionPaneUI.java
2492 (actionPerformed): Return Integer index instead of name.
2493 (addButtonComponents): Check to see if component is
2494 JButton last.
2495 (createMessageArea): Don't use components that are not
2496 completed yet.
2497 (getIconForType): Use temporary icons.
2498 * javax/swing/plaf/basic/BasicSliderUI.java:
2499 (mousePressed): Do not return if it's on thumb.
2500 (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2501 (paintMinorTickForVertSlider): ditto.
2502 (paintMajorTickForHorizSlider): ditto.
2503 (paintMajorTickForVertSlider): ditto.
2504 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2505 Add a border around the SplitPaneDivider.
2506 * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2507 Remove comments.
2508 * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2509 New file. Implemented.
2510 * javax/swing/plaf/basic/BasicToolBarUI.java:
2511 Implemented.
2512 * testsuite/Makefile.in: Regenerated.
2513
25142004-07-21 Graydon Hoare <graydon@redhat.com>
2515
2516 * javax/swing/Timer.java (run): Queue events each time cycle.
2517
25182004-07-21 David Jee <djee@redhat.com>
2519
2520 * gnu/java/awt/peer/gtk/GtkImagePainter.java
2521 (imageComplete): Call image.imageComplete().
2522 * java/awt/image/MemoryImageSource.java:
2523 Reimplement consumers as a Vector instead of a Hashtable. This is
2524 because enumeration on a Hashtable is not thread-safe.
2525 (addConsumer): Adapt to Vector consumers.
2526 (isConsumer): Adapt to Vector consumers.
2527 (removeConsumer): Adapt to Vector consumers.
2528 (startProduction): Adapt to Vector consumers. Call imageComplete()
2529 with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2530 (newPixels): Adapt to Vector consumers.
2531 (sendPicture): Set the color model of the image consumer.
2532 (newPixels(IIII)): Adapt to Vector consumers.
2533 (newPixels(IIIIB)): Adapt to Vector consumers.
2534
25352004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2536
2537 * java/awt/Component.java (deliverEvent): Implement.
2538 (postEvent): Implement.
2539 (handleEvent): Implement.
2540 (translateEvent): New method.
2541 (dispatchEventImpl): Document. Add AWT 1.0 event handling.
2542 * java/awt/Container.java (deliverEvent): Implement.
2543 * java/awt/Event.java (paramString): Fix formatting.
2544 * java/awt/Font.java (toString): Likewise.
2545 * java/awt/Window.java (postEvent): Implement.
2546
25472004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2548
2549 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2550 Set window's focus owner upon receiving a FOCUS_LOST event.
2551 * java/awt/Window.java (Window()): Refocus the previously
2552 focused component within the window when the window regains the
2553 top-level focus.
2554 (setFocusOwner): New method.
2555 * java/awt/Component.java (requestFocus): Add FIXME.
2556
2557 * libgcj.pc.in: Remove library flags.
2558
25592004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2560
2561 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2562 MOUSE_PRESSED event.
2563 * java/awt/Component.java (requestFocus()): Handle Panel
2564 specially. Post FOCUS_LOST event on opposite component.
2565 (requestFocus(boolean)): Likewise.
2566 (requestFocusInWindow(boolean)): Likewise.
2567 (paramString): Reorder dimension fields.
2568 * java/awt/Container.java (paramString): Fix string format.
2569 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2570 Handle FOCUS_LOST events. Don't handle Windows specially. Only
2571 process key events if the focus owner is non-null.
2572 (dispatchKeyEvent): Likewise.
2573 * java/awt/Frame.java (paramString): Fix formatting.
2574 (generateName): New method.
2575 (getUniqueLong): Likewise.
2576 * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2577 the temporary focus owner is null. If so, return the permanent
2578 focus owner.
2579 * java/awt/Panel.java (generateName): New method.
2580 (getUniqueLong): Likewise.
2581 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2582 signal handling to make callbacks more specific.
2583
25842004-07-21 Michael Koch <konqueror@gmx.de>
2585
2586 * javax/swing/text/Position.java
2587 (Bias): Implemented.
2588
25892004-07-21 Michael Koch <konqueror@gmx.de>
2590
2591 * javax/swing/LookAndFeel.java
2592 (provideErrorFeedback): New method.
2593
25942004-07-21 Michael Koch <konqueror@gmx.de>
2595
2596 * javax/swing/JTextArea.java
2597 (tabSize): New field.
2598 (getTabSize): New method.
2599 (setTabSize): Likewise.
2600
26012004-07-21 Michael Koch <konqueror@gmx.de>
2602
2603 * javax/swing/ActionMap.java:
2604 Fixed javadocs all over.
2605 (serialVersionUID): Made private.
2606 (parent): Don't explicitely initialize with default value.
2607 (get): SImplified.
2608 (keys): Reimplemented.
2609 (allKeys): Likewise.
2610 (convertSet): Removed.
2611 * javax/swing/ComponentInputMap.java:
2612 Fixed javadocs all over.
2613 (ComponentInputMap): Implemented.
2614 (put): Likewise.
2615 (clear): Likewise.
2616 (remove): Likewise.
2617 (SetParent): Likewise.
2618 (getComponent): Likewise.
2619 * javax/swing/InputMap.java:
2620 Fixed javadocs all over.
2621 (serialVersionUID): Made private.
2622 (parent): Don't explicitely initialize with default value.
2623 (get): SImplified.
2624 (keys): Reimplemented.
2625 (allKeys): Likewise.
2626 (convertSet): Removed.
2627
26282004-07-21 Michael Koch <konqueror@gmx.de>
2629
2630 * javax/swing/ActionMap.java,
2631 javax/swing/ComponentInputMap.java,
2632 javax/swing/InputMap.java,
2633 javax/swing/table/DefaultTableColumnModel.java,
2634 javax/swing/table/TableColumn.java,
2635 javax/swing/table/TableColumnModel.java,
2636 javax/swing/table/TableModel.java,
2637 javax/swing/text/AbstractDocument.java,
2638 javax/swing/text/TextAction.java:
2639 Reformated.
2640
26412004-07-21 Graydon Hoare <graydon@redhat.com>
2642
2643 * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError):
2644 Make method non-static.
2645 * javax/swing/AbstractButton.java:
2646 Rename fields to match property names where possible.
2647 (iconTextGap): New property.
2648 * javax/swing/JCheckBox.java: Match AbstractButton changes.
2649 (init) New method, call from after various constructors.
2650 * javax/swing/JComponent.java (revalidate):
2651 Invalidate before queueing repair.
2652 * javax/swing/JList.java (getPreferredScrollableViewportSize):
2653 Reimplement in terms of visibleRowCount property.
2654 * javax/swing/JMenuButton.java: Match AbstractButton changes.
2655 * javax/swing/JScrollPane.java (createScrollListener):
2656 Remove tracing chatter.
2657 * javax/swing/JToggleButton.java: Match AbstractButton changes.
2658 * javax/swing/RepaintManager.java (addInvalidComponent):
2659 Don't invalidate.
2660 * javax/swing/ScrollPaneLayout.java: Various corrections to layout
2661 calculations.
2662 * javax/swing/SwingUtilities.java (layoutCompoundLabel):
2663 Mimic sun behavior on top left/right positioning.
2664 * javax/swing/ViewportLayout.java (preferredLayoutSize):
2665 Remove mistaken use of preferredScrollableViewportSize here.
2666 (layoutContainer): Use view's preferred size as basis.
2667 * javax/swing/plaf/basic/BasicButtonUI.java:
2668 Set, get, and use textIconGap property.
2669 (paint) Paint text returned from layout (with ellipsis).
2670 * javax/swing/plaf/basic/BasicListUI.java:
2671 Remove tracing chatter, correct various minor calculations.
2672 (getCellBounds): Update layout state before calculating.
2673 * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
2674 Use margin default similar to sun's.
2675 * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
2676 (createIncreaseIcon): Center icon, minimize margins.
2677 (createDecreaseIcon): Likewise.
2678 * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
2679 Implement.
2680 (installUI): Call it.
2681 (uninstallDefaults): Implement.
2682 (uninstallUI): Call it.
2683 * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
2684 Call existing Window constructor.
2685 * javax/swing/plaf/basic/BasicViewportUI.java (paint):
2686 Set clip before painting.
2687
26882004-07-21 Olga Rodimina <rodimina@redhat.com>
2689
2690 * javax/swing/JMenuItem.java:
2691 (processMouseEvent): Reimplemented to deal with
2692 mouse drag events.
2693 (createMenuDragMouseEvent): New private helper method.
2694 Creates MenuDragMouseEvent.
2695 * javax/swing/MenuSelectionManager.java
2696 (componentForPoint): Implemented.
2697 (isComponentPartOfCurrentMenu): Made public.
2698 (processMouseEvent): Reimplemented to deal with
2699 mouse drag events.
2700 (setSelectedPath): Corrected small mistake that caused
2701 path to be set incorrectly.
2702 (getPath): If given component is JMenu then also add this
2703 menu's popup menu to the selected path.
2704 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2705 (getPath): Ditto.
2706 (getPreferredSize): Call getPreferredMenuItemSize().
2707 (getPreferredItemSize): Moved code from getPreferredSize to here.
2708 (installListeners): Install MouseMotionListeners.
2709 (MouseInputHandler): Pass mouse release event to MenuSelectionManager
2710 if mouse wasn't released in the bounds of this menu item.
2711 (MenuDragMouseHandler): Implemented.
2712 * javax/swing/plaf/basic/BasicMenuUI.java:
2713 (installListeners): Install MouseMotionListener and
2714 MenuDrageMouseListener.
2715 (MenuDragMouseHandler): Implemented.
2716 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2717 (uninstallListeners): Implemented.
2718
27192004-07-21 Michael Koch <konqueror@gmx.de>
2720
2721 * javax/swing/JCheckBox.java: Reformated.
2722 (JCheckBox): Fixed all constructors.
2723 (isBorderPaintedFlat): New method.
2724 (setBorderPaintedFlat): New method.
2725 * javax/swing/JEditorPane.java
2726 (createEditorKitForContentType): Made public.
2727 (scrollToReference): Likewise.
2728 * javax/swing/JTextArea.java
2729 (setLineWrap): Fire property change.
2730 * javax/swing/JToggleButton.java
2731 (JToggleButton): New constructor.
2732 (JToggleButton): Simplified.
2733 * javax/swing/text/AttributeSet.java
2734 (FontAttribute): Renamed from FontCharacterAttribute.
2735 * javax/swing/text/JTextComponent.java
2736 (KeyBinBinding): Added javadoc.
2737 (JTextComponent): Likewise.
2738 (getAccessibleContext): Fixed javadoc.
2739 * javax/swing/text/View.java
2740 (View): Added javadoc.
2741 * javax/swing/text/TabableView.java: New file.
2742 * Makefile.am: Added javax/swing/text/TabableView.java.
2743 * Makefile.in: Regenerated.
2744
27452004-07-21 Graydon Hoare <graydon@redhat.com>
2746
2747 * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
2748 * gnu/java/awt/peer/gtk/GtkToolkit.java
2749 (GtkErrorImage): New helper class.
2750 (bufferedImageOrError): New helper method.
2751 (createImage): Use it.
2752
27532004-07-21 David Jee <djee@redhat.com>
2754
2755 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
2756 (setCaretPosition): Scroll the text view so the new caret position
2757 is visible on screen.
2758
27592004-07-21 David Jee <djee@redhat.com>
2760
2761 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2762 (setBounds): Do not validate awtComponent here.
2763 * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
2764 (getPreferredSize): New method.
2765 * java/awt/ScrollPane.java
2766 (ScrollPane): Set default size to 100x100.
2767 (addNotify): If child is not a Panel, wrap it with a new Panel.
2768 (paramString): Implement.
2769
27702004-07-21 Olga Rodimina <rodimina@redhat.com>
2771
2772 * javax/swing/JMenu.java:
2773 (setSelected): Display popup menu only if this menu
2774 is showing on the screen.
2775 * javax/swing/JPopupMenu.java:
2776 (processMouseEvent): Added comment.
2777 (processKeyEvent): Likewise.
2778 * javax/swing/MenuSelectionManager.java:
2779 (clearSelectedPath): Only fireStateChanged() after
2780 selected path was changed, not before.
2781 (setSelectedPath): Likewise.
2782 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2783 (paintMenuItem): Corrected position of menu item's
2784 icon.
2785 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2786 (installUI): Correct setDefaultLightWeightPopupEnabled call.
2787 (popupMenuCanceled): Reimplemented.
2788 (popupMenuWillBecomeVisible): Select first menu item by default
2789 when displaying free floating popup menus.
2790 (TopWindowListener): Reimplemented.
2791
27922004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2793
2794 * java/awt/Panel.java (dispatchEventImpl): Override to prevent
2795 Panel from being painted twice when it is first shown.
2796
27972004-07-21 Olga Rodimina <rodimina@redhat.com>
2798
2799 * java/awt/Window.java: Reverted changes from my
2800 previous patch for creating window without an owner.
2801 * javax/swing/SwingUtilities.java:
2802 (SwingUtilities.OwnerFrame): made static.
2803 (OwnerFrame.setVisible): New method. Overridden with
2804 empty implementation.
2805 (OwnerFrame.isShowing): New method. Ovverridden
2806 to return always true.
2807
28082004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
2809
2810 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2811 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2812 (GtkComponentPeer): Remove temporary try/catch block.
2813 (setVisible): Call show and hide.
2814 (show): Make native.
2815 (hide): Likewise.
2816 (getArgs): Don't add "visible" argument.
2817 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2818 (property_notify_predicate): Return Bool instead of int.
2819 (find_layout): New function.
2820 (connectJObject): Call find_layout.
2821 (connectSignals): Likewise.
2822 (moveLayout): Likewise.
2823 (gtkLayoutSetVisible): Likewise.
2824
28252004-07-21 Mark Wielaard <mark@klomp.org>
2826
2827 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
2828 on notifier object before calling notifyAll().
2829
28302004-07-21 Olga Rodimina <rodimina@redhat.com>
2831
2832 * java/awt/Window.java: Changed constructors to use new
2833 method that is described below. Constructors call this
2834 methods only if newly created window should have an owner.
2835 (setWindowOwner): New method. Implementation for
2836 this method is moved from this(owner,configuration).
2837 * javax/swing/JWindow.java:
2838 (JWindow): Reimplement to use SwingUtilities.ownerFrame
2839 instead of owner.
2840 * javax/swing/SwingUtilities.java:
2841 (ownerFrame): Change type of this field to OwnerFrame.
2842 (getOwnerFrame): Changed to return object of type OwnerFrame.
2843 (SwingUtilities.OwnerFrame): New class. Represents owner
2844 of a Window that is not provided with one.
2845
28462004-07-21 Olga Rodimina <rodimina@redhat.com>
2847
2848 * javax/swing/AbstractButton.java:
2849 (configurePropertiesFromAction): Set action command
2850 to button's text by default if action command is not
2851 explicitely specified.
2852 * javax/swing/JMenu.java: Remove unnecessary listener
2853 and methods relevant to it.
2854 (setSelected): Reimplemented.
2855 (menuSelectionChanged): Moved most part of implementation to
2856 setSelected() and call it instead.
2857 * javax/swing/JMenuItem.java:
2858 (init): Comment out statement that sets paint_border to false.
2859 (configurePropertiesFromAction): Do not set accelerator
2860 for JMenu.
2861 (menuSelectionChanged): Change selected index in the selection
2862 model of menu item's parent.
2863 * javax/swing/JPopupMenu.java:
2864 (remove): Set constraints.fill field to GridBagConstraints.BOTH
2865 instead of GridBagConstraints.HORIZONTAL.
2866 (insert): Likewise.
2867 (createActionChangeListener): Implemented.
2868 (setVisible): Correct location of HeavyWeightMenu and
2869 don't firePopupMenuCanceled().
2870 (menuSelectionChanged): Implemented.
2871 (ActionChangeListener): New Listener. Implemented.
2872 * javax/swing/plaf/basic/BasicMenuBarUI.java:
2873 (BasicMenuBarUI.ContainerHandler): Implemented.
2874 * javax/swing/plaf/basic/BasicMenuItemUI.java:
2875 (paintMenuItem): Uncommented out code that paints
2876 icon, now that icons are working properly.
2877 (PropertyChangeListener): Implemented.
2878 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2879 Added javadocs.
2880 (topWindowListener): New field.
2881 (Constructor): initialize topWindowListener.
2882 (BasicPopupMenuUI.TopWindowListener): Implemented.
2883 (BasicPopupMenuUI.PopupMenuHandler): Implemented.
2884 (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
2885 Implemented.
8e99fb4f
GH
2886
28872004-07-21 Michael Koch <konqueror@gmx.de>
2888
2889 * javax/swing/plaf/basic/BasicButtonUI.java
2890 (paintFocus): Fixed method signature.
2891 (paintButtonPressed): Likewise.
2892 (paintButtonNormal): Likewise.
2893 (paintText): New method.
2894 * javax/swing/plaf/basic/BasicLabelUI.java
2895 (paint): Re-indented.
2896 * javax/swing/plaf/basic/BasicTextUI.java
2897 (installUI): Set parent textComponent to opaque.
2898 * javax/swing/text/DefaultHighlighter.java
2899 (checkPositions): New helper method.
2900 (addHighlight): Throws BadLocationException, check positions.
2901 (changeHighlight): Likewise.
2902 * javax/swing/text/EditorKit.java
2903 (EditorKit): Implements Serializable.
2904 * javax/swing/text/JTextComponent.java
2905 (getUI): Added javadoc.
2906 (setUI): Likewise.
2907 (upadteUI): Added javadoc, don't revalidate and repaint.
2908
29092004-07-21 David Jee <djee@redhat.com>
2910
2911 * java/awt/GridBagLayout.java
2912 (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
2913 * javax/swing/AbstractButton.java
2914 (setText): Reindent.
2915 * javax/swing/RepaintManager.java
2916 (addInvalidComponent): Find the first ancestor that isValidateRoot().
2917
29182004-07-21 Michael Koch <konqueror@gmx.de>
2919
2920 * javax/swing/JFormattedTextField.java
2921 (value): New field.
2922 (JFormattedTextField): Implemented.
2923 (getValue): Likewise.
2924 (setValue): Likewise.
2925 * javax/swing/LookAndFeel.java
2926 (getSupportsWindowDecorations): New method.
2927 * javax/swing/UIDefaults.java:
2928 Use java.beans.PropertyChangeSupport instead of doing all ourself.
2929 (addPropertyChangeListener): Made public.
2930 (addResourceBundle): Likewise.
2931 (removeResourceBundle): Likewise.
2932 (setDefaultLocale): Likewise.
2933 * javax/swing/plaf/basic/BasicRootPaneUI.java
2934 (BasicRootPaneUI): Implements PropertyChangeListener.
2935 (propertyChange): New method.
2936 * javax/swing/plaf/basic/BasicTextUI.java
2937 (BasicHighlighter): New inner class.
2938 (createHighlighter): New method.
2939 * javax/swing/plaf/basic/BasicToolBarUI.java
2940 (DragWindow): Extends java.awt.Window.
2941 * javax/swing/text/JTextComponent.java
2942 (getDocument): Removed debug output.
2943 * javax/swing/plaf/basic/BasicTextFieldUI.java,
2944 javax/swing/text/DefaultHighlighter.java,
2945 javax/swing/text/FieldView.java,
2946 javax/swing/text/PlainView.java: New files.
2947 * Makefile.am: Added new files.
2948 * Makefile.in: Regenerated.
2949
29502004-07-21 Michael Koch <konqueror@gmx.de>
2951
2952 * javax/swing/JEditorPane.java
2953 (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
2954 (createEditorKitForContentType): Likewise.
2955 * javax/swing/text/DefaultEditorKit.java
2956 (serialVersionUID): Added constant field.
2957 (EndOfLineStringPropery): Fixed typo.
2958 (DefaultEditorKit): New constructor.
2959 * javax/swing/text/Segment.java:
2960 Import java.text.CharacterIterator.
2961 * javax/swing/text/CharacterIterator.java,
2962 javax/swing/text/PlainEditorKit.java: Removed.
2963 * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
2964 javax/swing/text/PlainEditorKit.java.
2965 * Makefile.in: Regenerated.
2966
29672004-07-21 Michael Koch <konqueror@gmx.de>
2968
2969 * javax/swing/JButton.java,
2970 javax/swing/text/DefaultEditorKit.java,
2971 javax/swing/text/EditorKit.java,
2972 javax/swing/text/Segment.java,
2973 javax/swing/text/StyledEditorKit.java:
2974 Reformatted.
2975
29762004-07-21 Michael Koch <konqueror@gmx.de>
2977
2978 * javax/swing/ImageIcon.java
2979 (file): Removed.
2980 (description): Renamed from descr.
2981 (ImageIcon): Added missing constructors.
2982 (setParent): Removed.
2983 (setImageObserver): New method.
2984 (getImageObserver): New method.
2985 (paintIcon): Handle observer = null.
2986 * javax/swing/JButton.java
2987 (removeNotify): Fixed javadoc.
2988 (updateUI): Simplified.
2989 * javax/swing/JRootPane.java
2990 (serialVersionUID): New constant field.
2991 * javax/swing/UIManager.java:
2992 Fixed javadocs all over.
2993 (setLookAndFeel): Throws UnsupportedLookAndFeelException.
2994 * javax/swing/text/AbstractDocument.java
2995 (createPosition): Throws BadLocationException.
2996 (getText): Likewise.
2997 (remove): Likewise.
2998 * javax/swing/text/ComponentView.java
2999 (modelToView): Likewise.
3000 * javax/swing/text/DefaultEditorKit.java:
3001 Made all public methods public.
3002 (read): Throws BadLocationException and IOException.
3003 (write): Likewise.
3004 * javax/swing/text/EditorKit.java:
3005 Made all public methods public.
3006 (serialVersionUID): New constant field.
3007 (clone): New method.
3008 (read): Throws BadLocationException and IOException.
3009 (write): Likewise.
3010 * javax/swing/text/Segment.java
3011 (array): Made public.
3012 (count): Likewise.
3013 (offset): Likewise.
3014 (Segment): New constructors.
3015 (clone): Reimplemented.
3016 * javax/swing/text/StyledEditorKit.java
3017 (serialVersionUID): New constant field.
3018
30192004-07-21 Graydon Hoare <graydon@redhat.com>
3020
3021 * java/awt/image/BufferedImage.java
3022 (getSource): Implement.
3023 * javax/swing/ImageIcon.java
3024 (ImageIcon): Implement ctor.
3025 * javax/swing/ScrollPaneLayout.java
3026 (preferredLayoutSize): Be more careful about nulls.
3027
30282004-07-21 Michael Koch <konqueror@gmx.de>
3029
3030 * javax/swing/text/AttributeSet.java
3031 (CharacterAttribute): New interface
3032 (ColorAttribute): Likewise.
3033 (FontCharacterAttribute): Likewise.
3034 (ParagraphAttribute): Likewise.
3035 * javax/swing/text/DefaultCaret.java
3036 (moveCaret): New method.
3037 (positionCaret): Likewise.
3038 (repaint): Made protected.
3039 * javax/swing/text/JTextComponent.java
3040 (KeyBinding): Made it static.
3041 * javax/swing/text/View.java
3042 (getContainer): Honor parent == null.
3043
30442004-07-21 Michael Koch <konqueror@gmx.de>
3045
3046 * javax/swing/text/AbstractDocument.java:
3047 Reformatted.
3048
30492004-07-21 Michael Koch <konqueror@gmx.de>
3050
3051 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3052 Import javax.swing.UIManager explicitely.
3053 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3054 (ScrollingButton): Made it static.
3055
30562004-07-21 Michael Koch <konqueror@gmx.de>
3057
3058 * javax/swing/UIDefaults.java
3059 (ActiveValue): Made public.
3060 (LazyValue): Likewise.
3061 * javax/swing/plaf/basic/BasicTextUI.java
3062 (RootView): Reintroduced.
3063 (view): Removed.
3064 (rootView): New field.
3065 (installUI): Create document if needed, initialize rootView.
3066 (uninstallUI): Hanle rootView.
3067 (paint): Likewise.
3068 (getRootView): Likewise.
3069 (setView): Likewise.
3070 * javax/swing/text/DefaultCaret.java:
3071 Renamed all "evt" variables to "event".
3072
30732004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3074
3075 * libgcj.spec.in: Add -l-java-util-logging.
3076
30772004-07-21 Andreas Tobler <a.tobler@schweiz.ch>
3078
3079 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3080 (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3081 gtk-xft-dpi can no calculate the right value.
3082 (dpi_changed_cb): Mark *pspec as unsused.
3083
30842004-07-21 David Jee <djee@redhat.com>
3085
3086 * java/awt/Component.java
3087 (move): Delegate to setBounds().
3088 (resize): Likewise.
3089 (reshape): Fix so it repaints parent and self only when necessary.
3090
30912004-07-21 David Jee <djee@redhat.com>
3092
3093 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3094 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3095 (GtkComponentPeer): Revert previous patch from 2004-06-22.
3096 (setVisible): Likewise.
3097 (show): Likewise.
3098 (hide): Likewise.
3099 (getArgs): Likewise.
3100 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3101 (property_notify_predicate): Likewise.
3102 (find_layout): Likewise.
3103 (connectJObject): Likewise.
3104 (connectSignals): Likewise.
3105 (moveLayout): Likewise.
3106 (gtkLayoutSetVisible): Likewise.
3107
31082004-07-21 Graydon Hoare <graydon@redhat.com>
3109
3110 * Makefile.am
3111 (jv_convert_LDADD):
3112 (gij_LDADD):
3113 (rmic_LDADD):
3114 (rmiregistry_LDADD): Add lib-java-util-logging.la
3115 * Makefile.in: Regenerate.
3116
31172004-07-21 Michael Koch <konqueror@gmx.de>
3118
3119 * javax/swing/text/AbstractDocument.java
3120 (replace): Dont use protected method of java.util.Vector directly.
3121
31222004-07-21 Michael Koch <konqueror@gmx.de>
3123
3124 * javax/swing/plaf/basic/BasicTextUI.java
3125 (installUI): Call specialized install methods.
3126 (installDefaults): New method.
3127 (installListeners): Likewise.
3128 (installKeyboardActions): Likewise.
3129 (uninstallUI): Likewise.
3130 (uninstallDefaults): New method.
3131 (uninstallListeners): Likewise.
3132 (uninstallKeyboardActions): Likewise.
3133 (getPropertyPrefix): New abstract method.
3134 (paint): Made final, just call paintSafely().
3135 (paintSavely): New method.
3136 (paintBackground): Likewise.
3137 (getVisibleEditorRect): Likewise.
3138 * javax/swing/text/LayeredHighlighter.java,
3139 javax/swing/text/TabExpander.java: New files.
3140 * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3141 and javax/swing/text/TabExpander.java.
3142 * Makefile.in: Regenerated.
3143
31442004-07-21 Michael Koch <konqueror@gmx.de>
3145
3146 * javax/swing/plaf/basic/BasicTextUI.java
3147 (BasicTextUI): Made abstract.
3148 (BasicCaret): New inner class.
3149 (view): Don't explicitely initialize with "null".
3150 (textComponent): New field.
3151 (textColor): Removed.
3152 (disabledTextColor): Removed.
3153 (normalBackgroundColor): Removed.
3154 (RootView): Removed commented out inner class.
3155 (createUI): Removed.
3156 (createCaret): New method.
3157 (getComponent): Likewise.
3158 (installUI): Initialize textComponent only.
3159 (getPreferredSize): Use installed JTextComponent.
3160 (setView): New method.
3161 (create): Likewise.
3162 * javax/swing/text/JTextComponent.java
3163 (highlighter): New field.
3164 (caretColor): Likewise.
3165 (disabledTextColor): Likewise.
3166 (seletedTextColor): Likewise.
3167 (selectionColor): Likewise.
3168 (setUI): New method.
3169 (getCaretColor): Likewise.
3170 (setCaretColor): Likewise.
3171 (getDisabledColor): Likewise.
3172 (setDisabledColor): Likewise.
3173 (getSelectedTextColor): Likewise.
3174 (setSelectedTextColor): Likewise.
3175 (getSelectionColor): Likewise.
3176 (setSelectionColor): Likewise.
3177 (getHighlighter): Likewise.
3178 (setHighlighter): Likewise.
3179 (replaceSelection): Likewise.
3180
31812004-07-21 Michael Koch <konqueror@gmx.de>
3182
3183 * javax/swing/plaf/basic/BasicScrollPaneUI.java
3184 (BasicScrollPaneUI): Implements ScrollPaneConstants.
3185 * javax/swing/plaf/basic/BasicToolBarUI.java
3186 (BasicToolBarUI): Implements SwingConstants.
3187
31882004-07-21 Michael Koch <konqueror@gmx.de>
3189
3190 * javax/swing/JPopupMenu.java: Removed CVS tags.
3191 * javax/swing/UIDefaults.java: Reformatted.
3192 * javax/swing/plaf/basic/BasicRootPaneUI.java:
3193 Explicitely import used classes.
3194
31952004-07-21 Thomas Fitzsimmons <fitzsim@redhat.com>
3196
3197 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3198 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3199 (GtkComponentPeer): Remove temporary try/catch block.
3200 (setVisible): Call show and hide.
3201 (show): Make native.
3202 (hide): Likewise.
3203 (getArgs): Don't add "visible" argument.
3204 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3205 (property_notify_predicate): Return Bool instead of int.
3206 (find_layout): New function.
3207 (connectJObject): Call find_layout.
3208 (connectSignals): Likewise.
3209 (moveLayout): Likewise.
3210 (gtkLayoutSetVisible): Likewise.
3211
32122004-07-21 Olga Rodimina <rodimina@redhat.com>
3213
3214 * javax/swing/AbstractButton.java:
3215 (setDisplayedMnemonicIndex): Check if button
3216 text is not null before checking its length.
3217 * javax/swing/JMenuItem.java:
3218 (processMouseEvent): Disarm menu item if mouse has
3219 exited it.
3220 * javax/swing/plaf/basic/BasicMenuUI.java:
3221 (MouseInputHandler.mouseEntered): Do not raise
3222 popup menu if this menu is already selected.
3223 (MouseInputHandler.mousePressed): Do not fire
3224 MenuEvents.
3225 (MenuHandler): Implemented.
3226
32272004-07-21 Olga Rodimina <rodimina@redhat.com>
3228
3229 * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3230 (getSelectedObjects): Implemented.
3231 * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3232 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:
3233 Added javadoc for few methods.
3234 (processMouseEvent): Made public.
3235 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3236 (processMouseEvent): Likewise.
3237
32382004-07-21 Olga Rodimina <rodimina@redhat.com>
3239
3240 * javax/swing/AbstractButton.java:
3241 (init): Set display mnemonic index to -1.
3242 (setMnemonic(char)): Use setMnemonic(int).
3243 (setMnemonic(int)): Set display mnemonic index.
3244 (getDisplayedMnemonicIndex): Change method signature
3245 by removing 'index' parameter.
3246 * javax/swing/plaf/basic/BasicLookAndFeel.java:
3247 Added default for Menu.selectionBackground.
3248 * javax/swing/plaf/basic/BasicMenuItemUI.java:
3249 (paintMenuItem): Change background color of the selected
3250 menu item.
3251 (paintText): Paint differently when menu item is disabled.
3252 Also paint mnemonic if it appears in the menu item's label.
3253 (paintAccelerator): Paint accelerator differently
3254 if menu item is disabled.
3255 * javax/swing/plaf/basic/BasicMenuUI.java:
3256 (installDefaults): Install defaults for
3257 selectionForeground and selectionBackground.
3258 (uninstallDefaults): Uninstall defauls for
3259 selectionForeground and selectionBackground.
3260
32612004-07-21 Michael Koch <konqueror@gmx.de>
3262
3263 * javax/swing/text/AbstractDocument.java
3264 (BranchElement): Implemented.
3265 (LeafElement): Implemented.
3266 * javax/swing/text/DefaultCaret.java:
3267 Import used classes.
3268 (serialVersionUID): New constant.
3269 * javax/swing/text/JTextComponent.java
3270 (AccessibleJTextComponent): Removed dead declaration.
3271 (caretPos): Removed.
3272 (setCaret): New method.
3273 * javax/swing/text/PlainDocument.java
3274 (rootElement): New field.
3275 (PlainDocument): Initialize rootElement.
3276 (createDefaultRoot): New method.
3277 (getDefaultRootElement): Implemented.
3278 * javax/swing/text/View.java: Reformatted.
3279 * javax/swing/text/ViewFactory.java
3280 (create): Added javadoc.
3281
32822004-07-21 Michael Koch <konqueror@gmx.de>
3283
3284 * javax/swing/ToolTipManager.java: Reformatted.
3285
32862004-07-21 Rodimina Olga <rodimina@redhat.com>
3287
3288 * javax/swing/AbstractButton.java
3289 (changeEvent): New field.
3290 (fireItemStateChanged): Change source of the event
3291 to 'this' before firing it to button listeners.
3292 (fireActionPerformed): Likewise.
3293 (fireStateChanged): Likewise.
3294 (createActionListener): Do not set source
3295 of the event to AbstractButton.
3296 * javax/swing/plaf/basic/BasicMenuBarUI.java:
3297 (ContainerHandler.componentAdded): Removed
3298 print out statement.
3299 (ContainerHandler.componentRemoved): Likewise.
3300
33012004-07-21 Michael Koch <konqueror@gmx.de>
3302
3303 * javax/swing/text/Highlighter.java: New file.
3304 * Makefile.am: Added javax/swing/text/Highlighter.java.
3305 * Makefile.in: Regenerated.
3306
33072004-07-21 Michael Koch <konqueror@gmx.de>
3308
3309 * javax/swing/ToolTipManager.java
3310 (stillInsideTimerAction): Fixed constructor arguments.
3311 (outsideTimerAction): Likewise.
3312 (insideTimerAction): Likewise.
3313
33142004-07-21 Michael Koch <konqueror@gmx.de>
3315
3316 * javax/swing/JButton.java: Reformatted.
3317 * javax/swing/JFormattedTextField.java
3318 (getUIClassID): Implemented.
3319 * javax/swing/JRootPane.java
3320 (serialVersionUID): New constant.
3321 * javax/swing/JTextField.java
3322 (align): New field.
3323 (JTextField): Simplified.
3324 (getUIClassID): New method.
3325 (getActionListeners): Added @since tag.
3326 (setColumns): Invalidate layout and repaint.
3327 (getHorizontalAlignment): New method.
3328 (setHorizontalAlignment): New method.
3329 (selectAll): Removed.
3330 * javax/swing/SwingUtilities.java
3331 (getAncestorOfClass): Removed redundant @see tag.
3332 (isLeftMouseButton): Fixed implementation.
3333 (isMiddleMouseButton): Likewise.
3334 (isRightMouseButton): Likewise.
3335 * javax/swing/text/AbstractDocument.java
3336 (AttributeContext.addAttribute): New method.
3337 (AttributeContext.addAttributes): New method.
3338 (AttributeContext.getEmptySet): New method.
3339 (AttributeContext.reclaim): New method.
3340 (AttributeContext.removeAttribute): New method.
3341 (AttributeContext.removeAttributes): New method.
3342 * javax/swing/text/Document.java
3343 (createPosition): Throws BadLocationException.
3344 (getText): Likewise.
3345 (remove): Likewise.
3346 * javax/swing/text/JTextComponent.java
3347 (getText): Return null if no document is set. Catch
3348 BadLocationException.
3349 (getUI): Return ui.
3350 (updateUI): Simplified.
3351
33522004-07-21 Michael Koch <konqueror@gmx.de>
3353
3354 * javax/swing/JButton.java
3355 (removeNotify): Fixed javadoc.
3356 (updateUI): Simplified.
3357
33582004-07-21 David Jee <djee@redhat.com>
3359
3360 * gnu/java/awt/image/ImageDecoder.java
3361 (startProduction): Only add consumer if it's not added yet.
3362 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3363 (GdkPixbufDecoder): Don't call initState() here.
3364 (produce): Call initState() here, to ensure area_prepared and
3365 area_updated signals are properly connected.
3366 * gnu/java/awt/peer/gtk/GtkImage.java
3367 (setColorModel): Use equals() to compare ColorModel objects.
3368 (setPixels): Likewise.
3369 * java/awt/image/ColorModel.java
3370 (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3371 * java/awt/image/RGBImageFilter.java
3372 (setColorModel): Set consumer's color model.
3373 (setPixels): Use equals() to compare ColorModel objects.
3374
eecbcf54
BM
33752004-07-21 Bryce McKinlay <mckinlay@redhat.com>
3376
3377 * java/net/URLConnection.java (position): New field.
3378 (dateFormat1, dateFormat2, dateFormat3): Removed.
3379 (dateFormats): New field.
3380 (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3381 each time instead of re-allocating.
3382 (initializeDateFormats): Initialize 'dateFormats'.
3383
f82bb1be
BM
33842004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3385
3386 PR libgcj/16591
3387 * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3388 is defined.
3389
f6bbce40
BM
33902004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3391
3392 * java/net/Socket.java (getImpl): Now private. Remove comment.
3393
8246c778
BM
33942004-07-20 Bryce McKinlay <mckinlay@redhat.com>
3395
3396 * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3397 of chained Writer when calling super-constructor.
3398 * java/io/FilterWriter.java (FilterWriter): Likewise.
3399 * java/io/PrintWriter.java (PrintWriter): Likewise.
3400
b4ffdef7
BM
34012004-07-19 Bryce McKinlay <mckinlay@redhat.com>
3402
3403 * prims.cc (process_gcj_properties): Don't increment i within LHS
3404 of assignment.
3405
963ddbd5
PB
34062004-07-19 Per Bothner <per@bothner.com>
3407
3408 Print -verbose:message on "loading", not initialization.
3409 * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED): Swap order.
3410 * defineclass.cc (_Jv_ClassReader::parse): Print message if
3411 gcj::verbose_class_flag.
3412 * java/lang/natClass.cc (initializeClass): Don't print message here.
3413 * java/lang/natClassLoader.cc (_Jv_WaitForState): If state was
3414 _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3415 (_Jv_PrepareCompiledClass): Likewise.
3416
60557047
MK
34172004-07-18 Matthias Klose <doko@debian.org>
3418
3419 * configure.in: Substitute target_noncanonical.
3420 * configure: Regenerate
3421
1792f52d
MK
34222004-07-17 Michael Koch <konqueror@gmx.de>
3423
3424 * java/lang/String.java: Fixed javadocs all over.
3425
baa61e09
MK
34262004-07-17 Mark Wielaard <mark@klomp.org>
3427
3428 * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3429 when size is smaller.
3430 * java/io/RandomAccessFile.java (setLength): Use truncate for
3431 shrinking the file and seek plus write for expanding the file.
3432
34332004-07-17 Michael Koch <konqueror@gmx.de>
3434
3435 * gnu/java/nio/channels/natFileChannelPosix.cc
3436 (implTruncate): Always save current position. Only reposition file
3437 pointer to where we started if not beyond new lenght. Reposition file
3438 pointer to file length if it points beyond the end of file.
3439
6fd3cc05
MW
34402004-07-17 Mark Wielaard <mark@klomp.org>
3441
3442 * javax/swing/Box.java: Put FIXME comment above class declaration.
3443 * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3444 * javax/swing/JCheckBox.java: Likewise.
3445 * javax/swing/JDialog.java: Likewise.
3446 * javax/swing/JRadioButton.java: Likewise.
3447 * javax/swing/JToggleButton.java: Likewise.
3448 * javax/swing/UIManager.java: Likewise.
3449 * javax/swing/border/TitledBorder.java: Likewise.
3450 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3451 * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3452 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3453 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3454 * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3455 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3456 * javax/swing/text/JTextComponent.java: Likewise.
3457
320e32f6
MK
34582004-07-17 Jeroen Frijters <jeroen@frijters.net>
3459
3460 * java/net/DatagramPacket.java (setAddress): Removed check for
3461 null address.
3462
34632004-07-17 Michael Koch <konqueror@gmx.de>
3464
3465 * java/net/DatagramSocket.java
3466 (getLocalAddress): Check if socket is bound or not.
3467 * java/net/Socket.java
3468 (getLocalAddrss): Check if socket is bound or not.
3469 (getPort): Return -1 when not connected. Dont check getImpl() for
3470 null.
3471 (setReuseAddress): Check if socket is closed.
3472 (isConnected): Check if getImpl() returns null.
3473
10c383a4
MW
34742004-07-17 Mark Wielaard <mark@klomp.org>
3475
3476 * java/awt/event/InvocationEvent.java (dispatch): Synchronize
3477 on notifier object before calling notifyAll().
3478
2ccc5a95
MK
34792004-07-17 Michael Koch <konqueror@gmx.de>
3480
3481 * gnu/java/nio/channels/FileChannelImpl.java
3482 (finalize): Added javadoc.
3483
61ce29b1
GL
34842004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
3485
3486 * java/text/CollationElementIterator.java
3487 (text_decomposition): Changed type to RuleBasedCollator.CollationElement[]
3488 (setText): Use ArrayList instead of Vector.
3489
651ba822
MK
34902004-07-17 Michael Koch <konqueror@gmx.de>
3491
3492 * java/nio/ByteOrder.java
3493 (static): Removed. Not needed.
3494 Thanks to Patrick Reali for noticing.
3495 * java/nio/charset/CharsetDecoder.java
3496 (decode): Fix for classpath bug #9177: Reset state before flipping.
3497
e3fe5b9c
MK
34982004-07-17 Michael Koch <konqueror@gmx.de>
3499
3500 * java/security/Security.java: Fixed javadocs all over.
3501
316a1df4
MK
35022004-07-17 Michael Koch <konqueror@gmx.de>
3503
3504 * gnu/java/awt/EmbeddedWindow.java
3505 (static): Removed.
3506 (addNotify): Set peer via reflection.
3507 (setWindowPeer): Removed.
3508 * gnu/java/awt/natEmbeddedWindow.cc: Removed.
3509 * Makefile.am (nat_source_files):
3510 Removed gnu/java/awt/natEmbeddedWindow.cc.
3511 * Makefile.in: Regenerated.
3512
c0f43fa7
RE
35132004-07-17 Richard Earnshaw <rearnsha@arm.com>
3514
3515 * configure.in(ZIP, GCJH): Remove white space around '=' in variable
3516 assignment.
3517 * configure: Regenerated.
3518
4c86f325
NN
35192004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
3520
b764adea
NN
3521 * configure.in: Use build_noncanonical rather than build_alias.
3522 * configure: Rebuild.
3523
f11d297f
NN
3524 * configure.in: Eliminate CANADIAN and NULL_TARGET variables
3525 by logic refactoring. Move default definition of NATIVE closer
3526 to first alternate definition.
3527 * configure: Regenerate.
3528
4c86f325
NN
3529 * Makefile.am: Set ZIP and GCJH directly using autoconf.
3530 * Makefile.in, include/Makefile.in, testsuite/Makefile.in,
3531 gcj/Makefile.in: Regenerate.
3532 * configure.in: Set ZIP and GCJH. Remove redundant condition
3533 in AM_CONDITIONAL(NATIVE,...)
3534 * configure: Regenerate.
3535
bc03b358
NN
35362004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
3537
ed2e3d33
NN
3538 * configure.in: Use target_noncanonical rather than
3539 target_alias for forward-compatibility with autoconf 2.59.
3540 * configure: Regenerate.
3541 * Makefile.am, gcj/Makefile.am, include/Makefile.am,
3542 testsuite/Makefile.am: Substitute target_noncanonical.
3543 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3544 testsuite/Makefile.in: Regenerate.
3545
bc03b358
NN
3546 * configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
3547 Introduce _GCC_TOPLEV_NONCANONICAL_TARGET.
3548 * acinclude.m4: Include acx.m4.
3549 * aclocal.m4: Regenerate.
3550 * configure: Regenerate.
3551
cbd7a79b
BM
35522004-07-15 Bryce McKinlay <mckinlay@redhat.com>
3553
3554 PR libgcj/16574
3555 * java/sql/Timestamp.java (dateFormat): Renamed from sdf.
3556 (decimalFormat): New static variable.
3557 (sbuf): Likewise.
3558 (getTime): New. Override Date.getTime().
3559 (toString): Synchronize. Use decimalFormat to format nanos value
3560 correctly. Truncate extra zeros.
3561 (before): Compare getNanos() only if getTime() is equal.
3562 (after): Likewise.
3563
b2281cb3
NN
35642004-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3565
36609570
NN
3566 * acinclude.m4: "Inline" LIBGCJ_CONFIGURE macro into...
3567 * configure.in: ...here.
3568 * aclocal.m4: Regenerate.
3569 * configure: Regenerate.
3570
b2281cb3
NN
3571 * aclocal.m4: Rebuilt with aclocal gcj-1.4.
3572 * configure: Rebuilt with autoconf 2.13.
3573 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3574 testsuite/Makefile.in: Rebuilt with automake gcj-1.4.
3575
b845ed9f
BM
35762004-07-14 Bryce McKinlay <mckinlay@redhat.com>
3577
3578 PR libgcj/16204
3579 * Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
3580 large file support.
3581 * Makefile.in: Rebuilt.
3582 * testsuite/libjava.lang/LargeFile.java: New test case.
3583 * testsuite/libjava.lang/LargeFile.out: New file.
3584
ade1907d
JQ
35852004-07-14 Jerry Quinn <jlquinn@optonline.net>
3586
3587 * java/beans/EventHandler.java: Remove debugging statements.
3588
12e8e7ea
JQ
35892004-07-14 Jerry Quinn <jlquinn@optonline.net>
3590
3591 * java/beans/EventHandler.java: New file.
3592 * Makefile.am (awt_java_source_files): Add EventHandler.java.
3593 * Makefile.in, gcj/Makefile.in, include/Makefile.in,
3594 testsuite/Makefile.in: Regenerate.
3595
7cb73054
AT
35962004-07-14 Andreas Tobler <a.tobler@schweiz.ch>
3597
3598 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Add deprecation
3599 flag to the gcj_setup.
3600 (gcj_jacks_run): Check tclsh version and launch jacks directly with
3601 the tclsh.
3602 * testsuite/libjava.jacks/jacks.xfail: Update fails to reflect the
3603 deprecation flag change. 58 XFAILS removed.
3604
220a826e
UW
36052004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3606
3607 * configure.host (DIVIDESPEC) [s390*-*-*]: Set to
3608 -fno-use-divide-subroutine.
3609 * include/s390-signal.h: Include <ucontext.h> and <limits.h>.
3610 (HANDLE_FPE): Define.
3611 (SIGNAL_HANDLER): Change third argument to ucontext_t *.
3612 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3613 (HANDLE_DIVIDE_OVERFLOW): Define.
3614
c1b4f64d
MK
36152004-07-14 Michael Koch <konqueror@gmx.de>
3616 Matthias Klose <doko@debian.org>
3617
12e8e7ea 3618 * java/awt/im/InputContext.java: Initialize in, line.
c1b4f64d 3619
5549179f
UW
36202004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
3621
3622 * interpret.cc (run): Correctly access libffi return values of
3623 integral smaller-than-int type; these are implicitly promoted.
3624
6187fd28
BM
36252004-07-13 Bryce McKinlay <mckinlay@redhat.com>
3626
3627 PR libgcj/7587
3628 * interpret.cc (compile_mutex): New.
3629 (_Jv_InitInterpreter): New. Initialize compile_mutex.
3630 (run): Lock compile_mutex before calling compile() if compilation is
3631 required.
3632 * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter().
3633 * include/java-interp.h (_Jv_InitInterpreter): Declare.
3634
7a1c3d48
BM
36352004-07-12 Bryce McKinlay <mckinlay@redhat.com>
3636
3637 PR libgcj/15713
3638 * include/jvm.h (_Jv_value): New union type.
3639 * gcj/field.h (_Jv_Field): Add new _addr union field variants
3640 * interperet.cc (run): Use _Jv_value union type and *_addr _Jv_Field
3641 union members.
3642
717b2091
SG
36432004-07-12 Scott Gilbertson <scottg@mantatest.com>
3644
3645 * gnu/awt/xlib/XCanvasPeer.java (createImage): Implement.
3646 * gnu/awt/xlib/XOffScreenImage.java
3647 (XOffScreenImage): Add ImageConsumer interface. Add ColorModel
3648 constructor argument. Add constructor using ImageProducer.
3649 (getSource): Implement.
3650 (imageComplete): New method.
3651 (setColorModel): New method.
3652 (setDimensions): New method.
3653 (setHints): New method.
3654 (setPixels): New method.
3655 (setProperties): New method.
3656 * gnu/gcj/xlib/GC.java (drawPoint): New native method.
3657 * gnu/gcj/xlib/natGC.cc (drawPoint): New native method.
3658
31a7b755
BM
36592004-07-11 Bryce McKinlay <mckinlay@redhat.com>
3660
abd1b60d 3661 PR libgcj/16478
31a7b755
BM
3662 * prims.cc (_Jv_CreateJavaVM): Fix comment.
3663 * gnu/gcj/runtime/FinalizerThread.java (init): New. Native.
3664 (finalizerReady): Now native.
3665 (run): Likewise.
3666 (runFinalizers): Removed.
3667 * gnu/gcj/runtime/natFinalizerThread.cc (run): Implement here. Use
3668 a primitive lock, and don't hold it while running the finalizers.
3669 (runFinalizers): Implement. Don't aquire any Java lock.
3670 (finalizerReady): Use lock primitives to signal finalizer thread.
3671
eeb32988
MW
36722004-07-11 Mark Wielaard <mark@klomp.org>
3673
3674 Reported by Roman Kennke <roman@ontographics.com> (bug #9331)
3675 * java/net/URLStreamHandler.java (parseURL): When url file part
3676 doesn't contain a '/' just ignore context.
3677
bbb362e6
UW
36782004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
3679
3680 * include/s390-signal.c (SIGNAL_HANDLER): Use SIGINFO-style prototype.
3681 (struct old_s390_kernel_sigaction): Likewise for k_sa_handler.
3682 (MAKE_THROW_FRAME): Do not modify PSW address.
3683 (INIT_SEGV): Install SIGINFO-style signal handler.
3684 (INIT_FPE): Likewise.
3685
33dc5b0b
BM
36862004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3687
3688 * testsuite/libjava.jacks/jacks.xfail: Updates to reflect current
3689 status. 21 xfail's removed, 1 added.
3690
a4548f27
BM
36912004-07-10 Bryce McKinlay <mckinlay@redhat.com>
3692
3693 * gcj/javaprims.h: Regenerate CNI namespace definitions.
3694
8f0ce8da
IK
36952004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
3696
3697 * java/text/MessageFormat.java
3698 (formatInternal): Append "{n}" if argument n is unavailable.
3699 (format(Object, StringBuffer, FieldPosition)): This
3700 should be equivalent to format(Object[],
3701 StringBuffer, FieldPosition).
3702
3ee7acd1
BM
37032004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3704
3705 * java.util.Calendar.java (cache): New private static field. Cached
3706 mappings of locales->calendar classes.
3707 (ctorArgTypes): New private static field. Singleton argument for
3708 calendar class constructor lookup.
3709 (getInstance): Cache Locale->Calendar class mappings using HashMap.
3710 Optimize by bypassing reflection instantiation for the
3711 GregorianCalendar case.
3712
284d6a1f
BM
37132004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3714
3715 * java/util/Calendar.java: Use getSystemClassLoader as argument for
3716 ResourceBundle.getBundle() calls.
3717 * java/util/GregorianCalendar.java: Likewise.
3718 * java/util/Currency.java: Likewise.
3719 * java/text/BreakIterator.java: Likewise.
3720 * java/text/Collator.java: Likewise.
3721 * java/text/DateFormat.java: Likewise.
3722 * java/text/DateFormatSymbols.java: Likewise.
3723 * java/text/DecimalFormatSymbols.java: Likewise.
3724 * java/text/NumberFormat.java: Likewise.
3725 * java/awt/Window.java: Likewise.
3726
21f56031
BM
37272004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3728
3729 * java/util/ResourceBundle.java (bundleCache): Renamed from
3730 resourceBundleCache. Update comments.
3731 (getObject): Don't catch MissingResourceException.
3732 (getBundle(String)): Remove 'final'. Use system classloader if
3733 getCallingClassLoader returned null.
3734 (getBundle(String, Locale)): Likewise.
3735 (BundleKey): New private class. HashMap key for bundle cache lookup.
3736 (lookupKey): New. Singleton instance of BundleKey.
3737 (nullEntry): New. Cache entry to represent failed lookups.
3738 (getBundle(String, Locale, ClassLoader)): Re-written to use new
3739 caching strategy, no-allocation lookup, and new tryBundle methods.
3740 (tryBundle(String, ClassLoader)): New. Load a locale-qualified bundle
3741 name using given classloader.
3742 (tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
3743 baseName for given Locale and attempt to load bundle.
3744
42c00752
BM
37452004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3746
3747 * javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
3748 illegal protected method calls.
3749
6e342fc1
BM
37502004-07-09 Bryce McKinlay <mckinlay@redhat.com>
3751
3752 Fix or remove some bogus test cases.
3753 * testsuite/libjava.compile/pr10459_2.java: Removed.
3754 * testsuite/libjava.compile/pr10459.java: Test using its own method,
3755 not Object.clone().
3756 * testsuite/libjava.compile/inner_data.java: Test against its own
3757 protected field.
3758
1f33f6b4
MK
37592004-07-09 Michael Koch <konqueror@gmx.de>
3760
3761 * scripts/unicode-muncher.pl: Updated to version 2.1
3762 from GNU classpath. Added some clarifications on where to find the
3763 needed files from www.unicode.org.
3764 * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
3765 gnu/gcj/convert/UnicodeData-3.0.0.txt:
3766 Removed, these can directly be downloaded from www.unicode.org if
3767 needed.
3768 * gnu/java/lang/CharData.java: Regenerated.
3769 * include/java-chartables.h: Regenerated.
3770 * Makefile.am (ordinary_java_source_files):
3771 Removed gnu/java/lang/CharData.java.
3772 * Makefile.in: Regenerated.
3773
771aacd3
MK
37742004-07-09 Michael Koch <konqueror@gmx.de>
3775
3776 * java/security/AccessControlContext.java,
3777 java/security/SecureClassLoader.java:
3778 Fixed javadocs.
3779
3d5f053c
MK
37802004-07-09 Michael Koch <konqueror@gmx.de>
3781
3782 * java/io/ObjectInputStream.java (readFields): Use long datatype
3783 when shifting byte values more then 24 bits left.
3784
d642571f
MK
37852004-07-09 Michael Koch <konqueror@gmx.de>
3786
3787 * java/util/zip/DeflaterOutputStream.java,
3788 java/util/zip/GZIPInputStream.java,
3789 java/util/zip/GZIPOutputStream.java,
3790 java/util/zip/InflaterInputStream.java:
3791 Reformatted. Added javadocs. Reordered all stuff.
3792 Renamed variables to be more clear.
3793
3042e24b
MK
37942004-07-09 Michael Koch <konqueror@gmx.de>
3795
3796 * javax/imageio/IIOException.java,
3797 javax/imageio/event/IIOReadProgressListener.java,
3798 javax/imageio/event/IIOReadUpdateListener.java,
3799 javax/imageio/event/IIOReadWarningListener.java,
3800 javax/imageio/event/IIOWriteProgressListener.java,
3801 javax/imageio/event/IIOWriteWarningListener.java:
3802 New files.
3803 * Makefile.am: Added new files.
3804 * Makefile.in: Regenerated.
3805
4a738a82
GL
38062004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
3807
3808 * java/text/RuleBasedCollator.java
3809 (mergeRules): Use ArrayList instead of Vector.
3810 (subParseString): likewise.
3811 (parseString): likewise.
3812 (buildCollationVector): likewise.
3813 (getCollationKey): likewise.
3814
28e0ee76
DT
38152004-07-09 Dalibor Topic <robilad@kaffe.org>
3816
3817 * java/text/DateFormat.java (parse):
3818 Improved javadoc. Improved exception message.
3819
2e54a860
MW
38202004-07-09 Mark Wielaard <mark@klomp.org>
3821
3822 * gnu/java/nio/SelectorImpl.java (select): Call static Thread
3823 interrupted() method to clear interupt flag of our Thread.
3824
23c41c08
DT
38252004-07-09 Dalibor Topic <robilad@kaffe.org>
3826
3827 * java/nio/Buffer.java,
3828 java/nio/ByteBuffer.java,
3829 java/nio/ByteBufferHelper.java,
3830 java/nio/ByteBufferImpl.java,
3831 java/nio/CharBuffer.java,
3832 java/nio/CharBufferImpl.java,
3833 java/nio/CharViewBufferImpl.java,
3834 java/nio/DirectByteBufferImpl.java,
3835 java/nio/DoubleBuffer.java,
3836 java/nio/DoubleBufferImpl.java,
3837 java/nio/DoubleViewBufferImpl.java,
3838 java/nio/FloatBuffer.java,
3839 java/nio/FloatBufferImpl.java,
3840 java/nio/FloatViewBufferImpl.java,
3841 java/nio/IntBuffer.java,
3842 java/nio/IntBufferImpl.java,
3843 java/nio/IntViewBufferImpl.java,
3844 java/nio/LongBuffer.java,
3845 java/nio/LongBufferImpl.java,
3846 java/nio/LongViewBufferImpl.java,
3847 java/nio/MappedByteBufferImpl.java,
3848 java/nio/ShortBuffer.java,
3849 java/nio/ShortBufferImpl.java,
3850 java/nio/ShortViewBufferImpl.java:
3851 Fixed javadocs all over. Improved input error
3852 checking.
3853
3854 * java/nio/Buffer.java
3855 (checkForUnderflow, checkForOverflow, checkIndex,
3856 checkIfReadOnly, checkArraySize): New helper methods
3857 for error checking.
3858
3859 * java/nio/ByteBufferHelper.java
3860 (checkRemainingForRead, checkRemainingForWrite,
3861 checkAvailableForRead, checkAvailableForWrite): Removed
3862 no longer needed methods.
3863
e484d7d5
MK
38642004-07-09 Michael Koch <konqueror@gmx.de>
3865
3866 * gnu/regexp/CharIndexedInputStream.java:
3867 Reordered imports to match classpath.
3868
3e518ab0
MK
38692004-07-09 Michael Koch <konqueror@gmx.de>
3870
3871 * gnu/java/awt/EmbeddedWindow.java:
3872 Load native library for setWindowPeer method.
3873
8c5ac2c4
RC
38742004-07-08 Randolph Chung <tausq@debian.org>
3875
3876 * configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
3877 * configure: Regenerate.
3878 * configure.host: Set can_unwind_signal for hppa*-linux.
3879 * include/pa-signal.h: New file.
3880
0bd24153
PB
38812004-07-07 Per Bothner <per@bothner.com>
3882
fedf5454
PB
3883 * Makefile.am: Add rules to build libgij from just gij.cc.
3884
0bd24153
PB
3885 * include/jvm.h (namespace jcj): Declare verbose_class_flag
3886 * java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
3887 (initializeClass): If verbose_class_flag, print message.
3888 * gij.cc (main): Handle -verbose:class flag.
3889
0e497b6c
AT
38902004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
3891
3892 * configure.host: Enable hash synchronization on Darwin.
3893 * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of
3894 ';', since this is a comment on Darwin.
3895 (compare_and_swap_release): Likewise.
3896
c09bade6
ME
38972004-07-06 Mohan Embar <gnustuff@thisiscool.com>
3898
3899 * java/net/URLStreamHandler.java (parseURL): Canonicalize
3900 file portion of URL in addition to spec for file: protocol.
3901
23f99379 39022004-07-05 Anthony Green <green@redhat.com>
0e497b6c 3903
23f99379
AG
3904 * java/io/File.java (toURI): Merge from Classpath.
3905
a1433c46
BM
39062004-07-05 Bryce McKinlay <mckinlay@redhat.com>
3907
3908 * gnu/gcj/runtime/VMClassLoader.java (init): Check classpath entry
3909 before passing to URL constructor. Rethrow any MalformedURLException
3910 as a RuntimeException. Catch MalformedURLException specifically, not
3911 all exceptions.
0e497b6c 3912
a86f0372
BM
39132004-07-05 Bryce McKinlay <mckinlay@redhat.com>
3914
3915 * java/util/Locale.java (readObject): Intern strings read from object
3916 stream.
3917
74fa958e
MK
39182004-07-04 Michael Koch <konqueror@gmx.de>
3919
3920 * gnu/gcj/runtime/FirstThread.java,
3921 gnu/gcj/runtime/natFirstThread.cc: Removed.
3922 * gnu/java/lang/MainThread.java,
3923 gnu/java/lang/natMainThread.cc: New files.
3924 * prims.cc (_Jv_RunMain): Use MainThread instead of FirstThread.
3925 * Makefile.am: Added new files and removed deleted ones.
3926 * Makefile.in: Regenerated.
3927
94fbf267 39282004-07-03 Mark Wielaard <mark@klomp.org>
0e497b6c 3929 Anthony Green <green@redhat.com>
94fbf267
AG
3930
3931 * java/net/URL.java (getFile): Clarify return value doc.
3932 (getPath): Return null if file is empty - not empty String.
3933 (set): Convert protocol to lower case before doing anything.
3934 Only change the protocol handler if it's different.
3935
39362004-07-03 Anthony Green <green@redhat.com>
3937
3938 * java/net/URL.java (URL): Convert protocol to lower case before
3939 doing anything, so we getURLStreamHandler() with the proper value.
3940
b5349c07
BM
39412004-07-02 Bryce McKinlay <mckinlay@redhat.com>
3942
3943 * java/util/Locale.java (hashcode): Made transient.
3944 (hashCode): No longer synchronized.
3945 (equals): Remove comment.
3946 (writeObject): No longer synchronized. Implement using writeObject
3947 calls instead of tweaking hashCode field. Update doc.
3948 (readObject): Implement using readObject calls.
3949
f8a57be8
GK
39502004-06-26 Geoffrey Keating <geoffk@apple.com>
3951 Andreas Tobler <a.tobler@schweiz.ch>
3952
3953 * configure.host (powerpc-*-darwin*): New case, define
3954 can_unwind_signal.
3955 * configure.in (*-*-darwin*): New case, point to darwin-signal.h.
3956 * configure: Regenerate.
3957 * include/darwin-signal.h: New.
3958
dcfbe7c7
JQ
39592004-06-30 Jerry Quinn <jlquinn@optonline.net>
3960
3961 * java/beans/Statement.java (doExecute): Fix formatting.
3962
8319dc87
PB
39632004-06-29 Per Bothner <per@bothner.com>
3964
3965 * jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
3966 etc etc): Remove needless parenthesis, which causes __stdcall__
3967 attribute on MinGW to get ignored.
3968
b4bbd47e
BM
39692004-06-29 Bryce McKinlay <mckinlay@redhat.com>
3970
3971 * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
3972
b5493719
BM
39732004-06-28 Bryce McKinlay <mckinlay@redhat.com>
3974
b4bbd47e 3975 * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
b5493719 3976
7b63e340
JQ
39772004-06-28 Jerry Quinn <jlquinn@optonline.net>
3978
3979 * java/beans/Expression.java: New file.
3980 * java/beans/Statement.java: New file.
3981 * Makefile.am: Added new files.
3982 * Makefile.in: Re-generate.
3983
01036503
MW
39842004-06-27 Mark Wielaard <mark@klomp.org>
3985
3986 * java/io/FilePermission.java (usingPerms): Removed.
3987 (actionsString): Made final.
3988 (cachePerms): Renamed to checkPerms.
3989 (checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
3990 on action String.
3991 (FilePermission): Check arguments, call checkPerms().
3992 (equals): Remove cachePerms() call.
3993 (implies): Likewise.
3994
ce6230c4
MW
39952004-06-27 Mark Wielaard <mark@klomp.org>
3996
3997 * gnu/java/net/protocol/http/Connection.java (userAgent): New static
3998 final field.
3999 (sendRequest): Use new field in user-agent http agent.
4000
66a74d2a
MW
40012004-06-27 Mark Wielaard <mark@klomp.org>
4002
4003 * java/awt/EventQueue.java (postEvent): Throw NullPointerException
4004 when argument is null.
4005
40062004-06-26 Mark Wielaard <mark@klomp.org>
4007
4008 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
4009 (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
4010 GetMethodID call.
4011 (cancel_clicked): Likewise.
4012
d168da74
AT
40132004-06-26 Andreas Tobler <a.tobler@schweiz.ch>
4014
4015 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
4016 (init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
4017 can not calculate the right value.
4018 (dpi_changed_cb): Likewise. Mark *pspec as unused.
4019
cc21f43e
BM
40202004-06-24 Bryce McKinlay <mckinlay@redhat.com>
4021
4022 * testsuite/libjava.jacks/jacks.xfail: Remove
4023 15.9.1-qualified-concrete-20.
4024
eb8163ab
BM
40252004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4026
4027 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
4028 encoding name to iconv.
4029 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
4030
f50aa505
BM
40312004-06-22 Bryce McKinlay <mckinlay@redhat.com>
4032
4033 PR libgcj/16134:
e9cb3dac
BM
4034 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Canonicalize
4035 encoding name before cache lookup. Thanks to Hannes Wallnoefer.
4036 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
f50aa505 4037
deb3d52f
AH
40382004-06-21 Andrew Haley <aph@redhat.com>
4039
4040 * java/io/ObjectOutputStream.java: Add DEBUG statements
4041 everywhere.
4042 (dumpElementln): New method.
4043 (depth): New field.
4044 * java/io/ObjectInputStream.java
4045 (currentClassLoader): Make native.
4046 (callersClassLoader): New field.
4047 (depth): New field.
4048 (readObject): ENDBLOCKDATA is generated if the class has a write
4049 method, not if it has a read method.
4050 (readObject): Save and restore this.currentObject and
4051 this.currentObjectStreamClass around calls to callReadMethod().
4052 * java/io/natObjectInputStream.cc (getCallersClassLoader): New
4053 method.
4054
cfc74dce
AT
40552004-06-18 Andreas Tobler <a.tobler@schweiz.ch>
4056
4057 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Add lgcc_s for
4058 darwin.
4059
bd760894
RM
40602004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4061
4062 * prims.cc (_Jv_CreateJavaVM): Install SEGV and FPE handlers,
4063 if desired, before the default class loader is initialised.
4064 Call INIT_SEGV only if HANDLE_SEGV is defined.
4065
6ca77e6f
RM
40662004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4067
4068 * gnu/gcj/runtime/VMClassLoader.java (init): Add extensions
4069 directory only if it actually exists.
4070
67a69e82
GH
40712004-06-18 Graydon Hoare <graydon@redhat.com>
4072
4073 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
4074 Fix up non-ansi comments.
4075
40762004-06-18 Ranjit Mathew <rmathew@hotmail.com>
4077
4078 * javax/swing/text/AbstractDocument.java: Adding missing import
4079 for javax.swing.event.EventListenerList.
4080 * javax/swing/text/DefaultCaret.java: Likewise.
4081
4dfcdad1
GH
40822004-06-17 Michael Koch <konqueror@gmx.de>
4083
4084 * javax/swing/JToolBar.java
4085 (name): Removed.
4086 (JToolBar): Use Component.setName(String) instead of doing it all
4087 alone.
4088 * javax/swing/Timer.java
4089 (queueEvent): Added missing modifier.
4090
40912004-06-17 Olga Rodimina <rodimina@redhat.coom>
4092
4093 * Makefile.am: Added new file.
4094 * Makefile.in: Re-generate.
4095 * javax/swing/JMenu.java:
4096 (insertSeparator): Implemented.
4097 * javax/swing/JPopupMenu.java:
4098 (JPopupMenu.Separator): Implemented.
4099 * javax/swing/MenuSelectionManager.java:
4100 (processMouseEvent): Use java.awt.Component
4101 for event source instead of javax.swing.JComponent.
4102 * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java:
4103 New File. Implemented.
4104
41052004-06-16 David Jee <djee@redhat.com>
4106
4107 * java/awt/GridBagLayout.java
4108 (GetLayoutInfo): Adjust cell sizes iff parent size is not zero.
4109 Make sure pos_x and pos_y are never negative.
4110
41112004-04-16 Andrew Overholt <overholt@redhat.com>
4112
4113 * Makefile.am: Add new file.
4114 * Makefile.in: Re-generate.
4115 * javax/swing/JToolBar.java
4116 Partially implemented.
4117 * javax/swing/plaf/basic/BasicToolBarUI.java
4118 New file. Partially implemented.
4119
41202004-06-16 Graydon Hoare <graydon@redhat.com>
4121
4122 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
4123 (setComposite): Accept AlphaComposite arguments.
4124 * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
4125 (createBufferedImage): Add new overloads.
4126 * gnu/java/awt/peer/gtk/GtkToolkit.java
4127 (createImage): Use GdkPixbufDecoder.createBufferedImage
4128 when useGraphics2D() is true.
4129 (getImage): Delegate to createImage.
4130 * javax/swing/JList.java
4131 (isSelectionEmpty):
4132 (getFirstVisibleIndex):
4133 (getLastVisibleIndex):
4134 (setSelectedValue):
4135 (ensureIndexIsVisible): New methods.
4136 * javax/swing/Timer.java: Reimplement.
4137
41382004-06-16 Michael Koch <konqueror@gmx.de>
4139
4140 * javax/swing/text/AbstractDocument.java
4141 (AbstracElement): Made public, implements java.io.Serializable.
4142 (AttributeContext): Made public.
4143 (BranchElement): Likewise.
4144 (Content): Likewise.
4145 (DefaultDocumentEvent): Made public, extends
4146 javax.swing.undo.CompoundEdit.
4147 (ElementEdit): Made public, extends
4148 javax.swing.undo.AbstractUndoableEdit.
4149 (LeafElement): Made public.
4150 (LeafElement.LeafElement): Made public.
4151
41522004-06-16 Michael Koch <konqueror@gmx.de>
4153
4154 * javax/swing/text/JTextComponent.java: Totally reworked. Removed many
4155 methods (that were obviously never be intended to get included hi this
4156 class. Added some methods too.
4157
41582004-06-16 Michael Koch <konqueror@gmx.de>
4159
4160 * javax/swing/text/PlainDocument.java
4161 (serialVersionUID): New constant.
4162 (lineLimitAttribute): Likewise.
4163 (tabSizeAttribute): Likewise.
4164 (tabSize): New field.
4165 (PlainDocument): Made public.
4166 (PlainDocument): New constructor.
4167
41682004-06-16 Michael Koch <konqueror@gmx.de>
4169
4170 * javax/swing/text/AbstractDocument.java
4171 (insertString): Throws BadLocationException.
4172 * javax/swing/text/Document.java
4173 (insertString): Likewise.
4174 * javax/swing/text/JTextComponent.java:
4175 Javadocs and comments cleaned up.
4176
41772004-06-16 Michael Koch <konqueror@gmx.de>
4178
4179 * javax/swing/event/UndoableEditListener.java: Reformatted.
4180 * javax/swing/text/AbstractDocument.java
4181 (AbstractDocument): Implements java.io.Serializable.
4182 (doc_list): Removed.
4183 (undo_list): Removed.
4184 (AbstractElement.serialVerionUID): New field.
4185 (BranchElement.serialVerionUID): Likewise.
4186 (DefaultDocumentEvent.serialVerionUID): Likewise.
4187 (ElementEdit.serialVerionUID): Likewise.
4188 (LeafElement.serialVerionUID): Likewise.
4189 (serialVerionUID): Likewise.
4190 (BAD_LOCATION): New constant.
4191 (BidiElementName): Likewise.
4192 (ContentElementName): Likewise.
4193 (ParagraphElementName): Likewise.
4194 (SectionElementName): Likewise.
4195 (ElementNameAttribute): Likewise.
4196 (AbstractDocument): Made protected.
4197 (AbstractDocument): New construtor.
4198 (listenerList): New field.
4199 (fireChangedUpdate): Implemented.
4200 (fireInsertUpdate): Likewise.
4201 (fireRemoveUpdate): Likewise.
4202 (fireUndoableEditUpdate): Likewise.
4203 (getListeners): Likewise.
4204 (addDocumentListener): Likewise.
4205 (removeDocumentListener): Likewise.
4206 (addUndoableEditListener): Likewise.
4207 (removeUndoableEditListener): Likewise.
4208 (getDocumentListeners): New method.
4209 (getUndoableEditListeners): Likewise.
4210 (getAsynchronousLoadPriority): Made public.
4211 (getBidiRootElement): Likewise.
4212 (setAsynchronousLoadPriority): Likewise.
4213 (setDocumentProperties): Likewise.
4214 * javax/swing/text/BadLocationException.java
4215 (serialVerionUID): New field.
4216 * javax/swing/text/DefaultCaret.java
4217 (changeEvent): New field.
4218 (listenerList): Likewise.
4219 (changes): Removed.
4220 (addChangeListener): Reimplemented.
4221 (removeChangeListener): Likewise.
4222 (getListeners): New method.
4223 (getChangeListeners): Likwise.
4224 (getComponent): Likewise.
4225 * javax/swing/text/GapContent.java
4226 (GapContent): Implements java.io.Serializable.
4227 (serialVerionUID): New field.
4228
42292004-06-16 Michael Koch <konqueror@gmx.de>
4230
4231 * javax/swing/JTree.java
4232 (treeModel): New field.
4233 (JTree): New constructors, one existing one made public.
4234 (createTreeModel): New method.
4235 (addTreeExpansionListener): Likewise.
4236 (removeTreeExpansionListener): Likewise.
4237 (getTreeExpansionListeners): Likewise.
4238 (fireTreeCollapsed): Likewise.
4239 (fireTreeExpanded): Likewise.
4240 (addTreeSelectionListener): Likewise.
4241 (removeTreeSelectionListener): Likewise.
4242 (getTreeSelectionListeners): Likewise.
4243 (fireValueChanged): Likewise.
4244 (addTreeWillExpandListener): Likewise.
4245 (removeTreeWillExpandListener): Likewise.
4246 (getTreeWillExpandListeners): Likewise.
4247 (fireTreeWillCollapse): Likewise.
4248 (fireTreeWillExpand): Likewise.
4249
42502004-06-16 Michael Koch <konqueror@gmx.de>
4251
4252 * javax/swing/JTree.java: Reformatted.
4253
42542004-06-16 Michael Koch <konqueror@gmx.de>
4255
4256 * javax/swing/JTextArea.java: New file.
4257 * javax/swing/JTextField.java
4258 (actions): Removed.
4259 (notifyAction): New constant.
4260 (columns): New field.
4261 (JTextField): New constructors.
4262 (createDefaultModel): New method.
4263 (addActionListener): Reimplmemented.
4264 (removeActionListener): Reimplemented.
4265 (getActionListeners): New method.
4266 (fireActionPerformed): New method.
4267 (getColumns): New method.
4268 (setColumne): New method.
4269 * javax/swing/text/JTextComponent.java
4270 (AccessibleJTextComponent.serialVersionUID): New field.
4271 (serialVersionUID): Likewise.
4272 (DEFAULT_KEYMAP): Likewise.
4273 (FOCUS_ACCELERATOR_KEY): Likewise.
4274 (doc): Made private.
4275 (icon_gap): Likewise.
4276 (icon): Likewise.
4277 (align): Likewise.
4278 (JTextComponent): Some constructors removed.
4279 (getScrollableTracksViewportHeight): New method.
4280 (getScrollableTracksViewportWidth): Likewise.
4281 * Makefile.am: Added javax/swing/JTextArea.java.
4282 * Makefile.in: Regenerated.
4283
42842004-06-15 Graydon Hoare <graydon@redhat.com>
4285
4286 * javax/swing/ImageIcon.java (ImageIcon): New constructor.
4287 * javax/swing/JFrame.java (defaultLookAndFeelDecorated): New property.
4288 * javax/swing/JViewport.java
4289 (getExtentSize): Return size rather than preferred size.
4290 (toViewCoordinates): New methods.
4291 (getViewSize): Return size rather than preferred size.
4292 (setViewSize): Note view size as set.
4293 * javax/swing/ViewportLayout.java (layoutContainer): Reimplement.
4294 * javax/swing/plaf/basic/BasicScrollBarUI.java
4295 (getPreferredSize): Don't redo layout.
4296 * javax/swing/plaf/basic/BasicViewportUI.java
4297 (paint): Translate image properly and eat exceptions.
4298
42992004-06-15 Kim Ho <kho@redhat.com>
4300
4301 * javax/swing/JTabbedPane.java
4302 (setComponent): Remove old component and
4303 add new component.
4304 (setSelectedIndex): Don't operate on the
4305 components if they're null. Don't set index
4306 on the model if the index is the same.
4307 (insertTab): Don't add or hide the component
4308 if it's null. Repaint the container.
4309 * javax/swing/plaf/basic/BasicLookAndFeel.java
4310 Change colors for TabbedPane.
4311 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
4312 (mousePressed): Re-layout and paint the component.
4313 (layoutContainer): Don't set location on the view.
4314 (ScrollingViewport::paint): Remove.
4315
43162004-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
4317
4318 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4319 (gtkWidgetDispatchKeyEvent): Change warning message to comment.
4320
4321 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
4322 Wrap baseline y value in PANGO_PIXELS macro, rather than simply
4323 dividing by PANGO_SCALE. Call gdk_flush before leaving GDK
4324 critical region.
4325 (drawLine): Call gdk_flush before leaving GDK critical region.
4326 (fillRect): Likewise.
4327 (drawRect): Likewise.
4328 (copyArea): Likewise.
4329 (copyPixmap): Likewise.
4330 (clearRect): Likewise.
4331 (drawArc): Likewise.
4332 (drawPolyline): Likewise.
4333 (drawPolygon): Likewise.
4334 (fillPolygon): Likewise.
4335 (fillArc): Likewise.
4336 (drawOval): Likewise.
4337 (fillOval): Likewise.
4338
4339 * gnu/java/awt/peer/gtk/GdkFontMetrics.java (initState): Add
4340 style parameter.
4341 (GdkFontMetrics): Add style argument to initState call.
4342 (stringWidth(String,int,int,String)): Add style parameter.
4343 (stringWidth(String)): Add style argument to stringWidth call.
4344 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
4345 (initState): Set pango font style and weight based on AWT style
4346 parameter. Pass default GTK language to
4347 pango_context_get_metrics. Use PANGO_PIXELS macro rather than
4348 simply dividing by PANGO_SCALE.
4349 (stringWidth): Set pango font style and weight based on AWT style
4350 parameter.
4351
4352 * java/awt/Button.java (next_button_number): New field.
4353 (paramString): Change output.
4354 (generateName): New method.
4355 (getUniqueLong): New method.
4356
43572004-06-14 Kim Ho <kho@redhat.com>
4358
4359 * javax/swing/JTabbedPane.java:
4360 (setComponentAt): Set the component, not
4361 the enabled status.
4362 * javax/swing/plaf/basic/BasicDesktopIconUI.java
4363 (actionPerformed): Let deiconize catch exception.
4364
43652004-06-14 Olga Rodimina <rodimina@redhat.com>
4366
4367 * javax/swing/JPopupMenu.java:
4368 (setVisible): Corrected location of a
4369 heavyweight popup menu.
4370
43712004-06-14 Olga Rodimina <rodimina@redhat.com>
4372
4373 * javax/swing/MenuSelectionManager.java:
4374 Ran through jalopy to fix formatting style.
4375
43762004-06-14 Olga Rodimina <rodimina@redhat.com>
4377
4378 * javax/swing/JLayeredPane.java:
4379 (remove): Revalidate and repaint layered pane after
4380 the component was removed.
4381 javax/swing/JMenu.java:
4382 (setVisible): Display popup menu at the user location,
4383 if one was set by the user.
4384 (setMenuLocation): Reimplemented. Fixed javadoc.
4385 * javax/swing/JMenuBar.java: Added javadoc.
4386 (BORDER_PAINTED_CHANGED_PROPERTY): New Property.
4387 (MODEL_CHANGED_PROPERTY): New Property.
4388 (isSelected): Implemented.
4389 (setBorderPainted): Fire PropertyChangeEvent
4390 if paintBorder property changes.
4391 (setSelected): Implemented.
4392 (setSelectionModel): Implemented.
4393 * javax/swing/JPopupMenu.java: Added Javadoc
4394 (pack): Implemented.
4395 (setVisible): Reimplemented.
4396 (show): Fixed location.
4397 (JPopupMenu.LigthWeightPopup): Reimplemented to use
4398 Container instead of JPanel.
4399 * javax/swing/MenuSelectionManager.java: Added Javadocs.
4400 (clearSelectedPath): Reimplemented to clear selectedPath
4401 in reverse order.
4402 (processMouseEvent): Reimplemented.
4403 (setSelectedPath): Fire stateChange event indicating that
4404 selected menu path has changed.
4405 (getPath): Change to use ArrayList instead of Vector.
4406 * javax/swing/plaf/basic/BasicMenuBarUI.java:
4407 (installUI): call installKeyboardActions().
4408 (uninstallUI): call uninstallKeyboardActions().
4409
44102004-06-13 Michael Koch <konqueror@gmx.de>
4411
4412 * javax/swing/text/DefaultCaret.java,
4413 javax/swing/text/BadLocationException.java:
4414 Reformatted.
4415
44162004-06-12 Thomas Fitzsimmons <fitzsim@redhat.com>
4417
4418 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (DEFAULT_ROWS,
4419 DEFAULT_COLS): New variables.
4420 (create): Don't allow 0 rows or 0 columns. Instead, set the
4421 values to DEFAULT_ROWS or DEFAULT_COLS.
4422 (getMinimumSize): Likewise.
4423 (getPreferredSize): Likewise.
4424 (minimumSize): Likewise.
4425 (preferredSize): Likewise.
4426 (create): Set peer's editable state.
4427 * java/awt/TextArea.java (TextArea()): Set rows and columns to
4428 zero. Update javadocs.
4429 (TextArea(String)): Likewise.
4430 (TextArea(int,int)): Fix javadocs.
4431 (TextArea(String,int,int,int)): Only throw exception if one of
4432 rows or columns is zero. Fix javadocs.
4433
44342004-06-11 Thomas Fitzsimmons <fitzsim@redhat.com>
4435
4436 * java/awt/AWTEvent.java (toString): Handle MenuComponents in
4437 addition to Components.
4438
4439 * java/awt/MenuItem.java (dispatchEventImpl): If the event
4440 wasn't consumed by normal processing, send it to the parent
4441 menu.
4442
4443 * gnu/java/awt/peer/gtk/GtkImagePainter.java
4444 (setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
4445 translation.
4446
44472004-06-11 David Jee <djee@redhat.com>
4448
4449 * java/awt/MediaTracker.java
4450 (addImage(Image,int)): Call imageUpdate() to udpate image status.
4451 (addImage(Image,int,int,int)): Likewise.
4452
44532004-06-11 Michael Koch <konqueror@gmx.de>
4454
4455 * javax/swing/text/AbstractDocument.java,
4456 javax/swing/text/Document.java,
4457 javax/swing/text/GapContent.java,
4458 javax/swing/text/JTextComponent.java,
4459 javax/swing/text/PlainDocument.java:
4460 Reformatted.
4461
44622004-06-11 Michael Koch <konqueror@gmx.de>
4463
4464 * javax/swing/JRootPane.java
4465 (AccessibleJRootPane.serialVersionUID): New field.
4466 (AccessibleJRootPane.AccessibleJRootPane): New constructor.
4467 (AccessibleJRootPane.getAccessibleRole): New method.
4468 (RootLayout): Implements Serializable.
4469 (RootLayout.serialVersionUID): New field.
4470 (RootLayout.RootLayout): New constructor.
4471 (setJMenuBar): Made public.
4472 (getJMenuBar): Likewise.
4473 (JRootPane): Likewise.
4474 (createContentPane): Likewise.
4475 (createGlassPane): Likewise.
4476 (createLayeredPane): Likewise.
4477
44782004-06-11 Michael Koch <konqueror@gmx.de>
4479
4480 * javax/swing/SwingUtilities.java
4481 (isLeftMouseButton): Fixed javadoc.
4482 (isMiddleMouseButton): Likewise.
4483 (isRightMouseButton): Likewise.
4484
44852004-06-11 Michael Koch <konqueror@gmx.de>
4486
4487 * javax/swing/JScrollPane.java
4488 (serialVersionUID): New field.
4489 (columnHeader): Made protected.
4490 (rowHeader): Likewise.
4491 (lowerLeft): Likewise.
4492 (lowerRight): Likewise.
4493 (upperLeft): Likewise.
4494 (upperRight): Likewise.
4495 (horizontalScrollBar): Likewise.
4496 (horizontalScrollBarPolicy): Likewise.
4497 (verticalScrollBar): Likewise.
4498 (verticalScrollBarPolicy): Likewise.
4499 (viewport): Likewise.
4500
45012004-06-11 Michael Koch <konqueror@gmx.de>
4502
4503 * javax/swing/LookAndFeel.java: Fixed javadocs.
4504
45052004-06-11 Michael Koch <konqueror@gmx.de>
4506
4507 * javax/swing/JEditorPane.java: Fixed javadocs.
4508 (JEditorPane): Removed redundant call to to this().
4509 (fireHyperlinkUpdate): Implemented.
4510
45112004-06-10 Olga Rodimina <rodimina@redhat.com>
4512
4513 * javax/swing/JMenu.java: Fixed file name
4514 in the file comment.
4515
45162004-06-10 Olga Rodimina <rodimina@redhat.com>
4517
4518 * javax/swing/JMenu.java: Added javadoc.
4519 (JMenu): Added MenuChangeListener to listen to
4520 ChangeEvents occuring in menu's model.
4521 (insert): Throw IllegalArgumentException if
4522 index is less than 0
4523 (setSelected): Reimplement.
4524 (setPopupMenuVisible): Call menu's model isEnabled()
4525 (setDelay): Throw IllegalArgumentException if
4526 given amount of delay is less than 0.
4527 (createActionComponent): Implemented.
4528 (createActionChangeListener): Implemented.
4529 (addSeparator): Implemented.
4530 (getItem): Throw IllegalArgumentException if index is
4531 less than 0.
4532 (getItemCount): Implemented.
4533 (fireMenuSelected): Changed to use menuEvent.
4534 (fireMenuDeselected): Likewise.
4535 (fireMenuCanceled): Likewise.
4536 (setAccelerator): Changed to throw an error if this
4537 method is used.
4538 (doClick): Implemented.
4539 (JMenu.ActionChangedListener): New inner class to handle
4540 PropertyChangeEvents occuring in the actions associated with menu.
4541 * javax/swing/plaf/basic/BasicMenuUI.java: Added javadoc.
4542 (BasicMenuUI): Added PropertyChangeListener to the menu.
4543 (createChangeListener): Implemented.
4544 (createMenuDragMouseListener): Likewise.
4545 (createMenuKeyListener): Likewise.
4546 (createPropertyChangeListener): Likewise.
4547 (uninstallListeners): Likewise.
4548 (BasicMenuUI.MouseInputHandler): Reimplemented.
4549 (BasicMenuUI.PropertyChangeHandler): New class. Not implemented yet.
4550 (BasicMenuUI.ChangeHandler): Likewise.
4551 (BasicMenuUI.MenuDragMouseHandler): Likewise.
4552 (BasicMenuUI.MenuKeyHandler): Likewise.
4553
45542004-06-10 David Jee <djee@redhat.com>
4555
4556 * java/awt/MediaTracker.java
4557 (imageUpdate): Only do notifyAll() if the image is complete.
4558
45592004-06-10 Olga Rodimina <rodimina@redhat.com>
4560
4561 * javax/swing/JApplet.java:
4562 (getJMenuBar): Made public.
4563 (setJMenuBar): Likewise.
4564 * javax/swing/JFrame.java:
4565 (getJMenuBar): Made public.
4566 (setJMenuBar): Likewise.
4567 * javax/swing/JWindow.java:
4568 (getJMenuBar): Removed.
4569 (setJMenuBar): Removed.
4570
45712004-06-10 Michael Koch <konqueror@gmx.de>
4572
4573 * javax/swing/JEditorPane.java
4574 (createEditorKitForContentType): Fixed visibility.
4575 (fireHyperlinkUpdate): Likewise.
4576 (getContentType): Likewise.
4577 (getEditorKit): Likewise.
4578 (getEditorKitForContentType): Likewise.
4579 (getPage): Likewise.
4580 (read): Likewise.
4581 (registerEditorKitForContentTyoe): Likewise.
4582 (replaceSelection): Likewise.
4583 (setContentType): Likewise.
4584 (setEditorKit): Likewise.
4585 (setPage): Likewise.
4586
45872004-06-10 Michael Koch <konqueror@gmx.de>
4588
4589 * javax/swing/Timer.java
4590 (Timer): New constructor.
4591 * javax/swing/plaf/basic/BasicProgressBarUI.java
4592 (animationTimer): Don't initialize at construction.
4593 (startAnimationTimer): Added since tag.
4594 (stopAnimationTimer): Likewise.
4595 (installUI): Use new Timer constructor.
4596 * javax/swing/plaf/basic/BasicScrollBarUI.java
4597 (installUI): Likewise.
4598 * javax/swing/plaf/basic/BasicSliderUI.java
4599 (installUI): Likewise.
4600
46012004-06-10 Michael Koch <konqueror@gmx.de>
4602
4603 * javax/swing/ButtonGroup.java
4604 (serialVersionUID): Made private.
4605 (buttons): Renamed from v, added javadoc.
4606 (sel): Added javadoc.
4607 (ButtonGroup): Likewise.
4608 (add): Likewise.
4609 (remove): Likewise.
4610 (getElements): Likewise.
4611 (getSelection): Likewise.
4612 (setSelected): Likewise.
4613 (isSelected): Likewise.
4614 (getButtonCount): Likewise.
4615
46162004-06-10 Michael Koch <konqueror@gmx.de>
4617
4618 * javax/swing/ButtonGroup.java,
4619 javax/swing/ImageIcon.java,
4620 javax/swing/JEditorPane.java,
4621 javax/swing/JRootPane.java,
4622 javax/swing/JTextField.java,
4623 javax/swing/LookAndFeel.java,
4624 javax/swing/plaf/basic/BasicTextUI.java:
4625 Reindented.
4626
46272004-06-10 Michael Koch <konqueror@gmx.de>
4628
4629 * javax/swing/text/Style.java: Added javadocs.
4630
46312004-06-10 Michael Koch <konqueror@gmx.de>
4632
4633 * javax/swing/JComponent.java
4634 (fireVetoableChange): Removed redundant cast.
4635 * javax/swing/JLabel.java
4636 (getDisabledIcon): Save icon for next call.
4637
46382004-06-10 Michael Koch <konqueror@gmx.de>
4639
4640 * javax/swing/KeyStroke.java
4641 (getKeyStroke(char,boolean)): Marked deprecated.
4642
46432004-06-10 Michael Koch <konqueror@gmx.de>
4644
4645 * javax/swing/DefaultCellEditor.java,
4646 javax/swing/GrayFilter.java,
4647 javax/swing/event/DocumentEvent.java,
4648 javax/swing/text/JTextComponent.java,
4649 javax/swing/text/MutableAttributeSet.java:
4650 Reindented.
4651
46522004-06-10 Michael Koch <konqueror@gmx.de>
4653
4654 * javax/swing/plaf/BorderUIResource.java:
4655 Added serialVersionUID all over.
4656
46572004-06-10 Sascha Brawer <brawer@dandelis.ch>
4658
4659 * javax/swing/undo/UndoManager.java: Re-written from scratch.
4660
46612004-06-10 Michael Koch <konqueror@gmx.de>
4662
4663 * javax/swing/table/DefaultTableCellRenderer.java
4664 (noFocusBorder): Initialize directly.
4665
46662004-06-10 Michael Koch <konqueror@gmx.de>
4667
4668 * javax/swing/plaf/basic/BasicArrowButton.java
4669 (setDirection): Use method argument.
4670
46712004-06-10 Michael Koch <konqueror@gmx.de>
4672
4673 * javax/swing/plaf/BorderUIResource.java,
4674 javax/swing/plaf/ComponentUI.java,
4675 javax/swing/undo/CompoundEdit.java,
4676 javax/swing/undo/StateEdit.java:
4677 Fixed javadocs all over.
4678
46792004-06-10 Michael Koch <konqueror@gmx.de>
4680
4681 * javax/swing/DefaultButtonModel.java
4682 (ARMED): Made public final, fixed value.
4683 (ENABLED): Likewise.
4684 (PRESSED): Likewise.
4685 (ROLLOVER): Likewise.
4686 (SELECTED): Likewise.
4687 (stateMask): Initialize directly.
4688 (listenerList): Likewise.
4689 (mnemonic): Likewise.
4690 (fireStateChanged): Removed argument, use changeEvent as event.
4691 All places where this method is called are fixed too.
4692 (getActionCommant): Fixed javadoc.
4693 (setGroup): Fixed javadoc.
4694 (getGroup): New method.
4695
46962004-06-09 Olga Rodimina <rodimina@redhat.com>
4697
4698 * javax/swing/AbstractButton.java
4699 (AbstractButton): Use init() to initialize the button.
4700 (init): New Method. Initializes AbstractButton.
4701 * javax/swing/JMenuItem.java: Documented.
4702 (JMenuItem): Reimplemented.
4703 (init): Implemented.
4704 (setEnabled): Changed to call super.setEnabled()
4705 (processMouseEvent): Reimplemented.
4706 (fireMenuKeyPressed): Implemented.
4707 (fireMenuKeyReleased): Implemented.
4708 (fireMenuKeyTyped): Implemented.
4709 (menuSelectionChanged): disarm the model if the menu item was
4710 deselected.
4711 * javax/swing/plaf/basic/BasicMenuItemUI.java:Documented.
4712 (getPath): Change to use ArrayList instead of Vector.
4713 (getPreferredSize): Renamed variable.
4714 (paintMenuItem): Paint margin area of menu item.
4715 (MouseInputHandler.mouseEntered): Set selection in MenuSelectionManager.
4716 (MouseInputHandler.mouseReleased): Check if mouse was pressed inside
4717 menu item's bounds before clearing the selection.
4718
47192004-06-09 David Jee <djee@redhat.com>
4720
4721 * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
4722 (GtkTextComponentPeer): Set caret position to 0.
4723 * java/awt/TextComponent.java
4724 (setText): Set caret position to 0.
4725 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
4726 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
4727 Handle GtkScrolledWindow separately. Fix signal handler blocking.
4728 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
4729 Likewise.
4730 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
4731 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Make cursor
4732 visible.
4733
47342004-06-09 Kim Ho <kho@redhat.com>
4735
4736 * Makefile.am: New files
4737 * Makefile.in: Regenerated
4738 * java/awt/Container.java
4739 (getComponentAt): Removed.
4740 * javax/swing/AbstractAction.java
4741 (ENABLED_PROPERTY): New property.
4742 (putValue): Fire PropertyChangeEvents.
4743 (setEnabled): ditto.
4744 (firePropertyChange): Javadoc and implement
4745 convenience method.
4746 * javax/swing/AbstractButton.java
4747 (setAction): Don't create PropertyChangeListener
4748 if new Action is null.
4749 (setIcon): Don't set icon till after comparing
4750 it.
4751 (configurePropertiesFromAction): Check mnemonic
4752 key before calling intValue().
4753 (createActionPropertyChangeListener): Check
4754 properties rather than bulk change.
4755 * javax/swing/DefaultDesktopManager.java:
4756 Implement.
4757 * javax/swing/DesktopManager.java:
4758 Jalopy and javadoc.
4759 * javax/swing/JComponent.java
4760 (fireVetoableChange): Implement.
4761 (paintImmediately): Use root component.
4762 * javax/swing/JDesktopPane.java: Implement
4763 * javax/swing/JInternalFrame.java: Implement
4764 * javax/swing/JLabel.java
4765 (getDisabledIcon): Return grayscaled icon if
4766 no disabled icon specified.
4767 * javax/swing/JMenuBar.java
4768 (getComponentAtIndex): Use getComponent
4769 * javax/swing/JOptionPane.java
4770 (getDesktopPaneForComponent): Use SwingUtilities'
4771 getAncestorOfClass
4772 (getFrameForComponent): ditto.
4773 * javax/swing/JSplitPane.java
4774 (remove): Use getComponent.
4775 * javax/swing/SwingUtilities.java
4776 (convertPoint): Implement.
4777 * javax/swing/plaf/basic/BasicButtonUI.java
4778 (paintButtonNormal): Check opaqueness before
4779 filling background.
4780 * javax/swing/plaf/basic/BasicDesktopIconUI.java:
4781 Implement
4782 * javax/swing/plaf/basic/BasicDesktopPaneUI.java:
4783 Implement.
4784 * javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:
4785 Implement.
4786 * javax/swing/plaf/basic/BasicInternalFrameUI.java:
4787 Implement.
4788 * javax/swing/plaf/basic/BasicLookAndFeel.java:
4789 Change InternalFrame and Desktop colors.
4790
47912004-06-09 David Jee <djee@redhat.com>
4792
4793 * java/awt/Container.java
4794 (remove): Do not set component to invisible.
4795
47962004-06-09 Michael Koch <konqueror@gmx.de>
4797
4798 * javax/swing/tree/DefaultMutableTreeNode.java
4799 (getLeafCount): Renamed enum to e.
4800
48012004-06-09 Michael Koch <konqueror@gmx.de>
4802
4803 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
4804 (positionForMouseEvent): Removed redundant semicolon.
4805 (continueDrag): Use method arguments.
4806
48072004-06-09 Michael Koch <konqueror@gmx.de>
4808
4809 * javax/swing/border/TitledBorder.java,
4810 javax/swing/filechooser/FileSystemView.java,
4811 javax/swing/plaf/basic/BasicButtonListener.java,
4812 javax/swing/plaf/basic/BasicGraphicsUtils.java,
4813 javax/swing/plaf/basic/BasicLabelUI.java,
4814 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
4815 javax/swing/plaf/basic/BasicScrollBarUI.java,
4816 javax/swing/plaf/basic/BasicScrollPaneUI.java,
4817 javax/swing/plaf/basic/BasicSliderUI.java,
4818 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
4819 javax/swing/plaf/basic/BasicToggleButtonUI.java,
4820 javax/swing/table/JTableHeader.java,
4821 javax/swing/text/AbstractDocument.java,
4822 javax/swing/text/DefaultCaret.java,
4823 javax/swing/text/StyledEditorKit.java,
4824 javax/swing/tree/DefaultTreeCellEditor.java:
4825 Reworked import statements.
4826
48272004-06-08 Graydon Hoare <graydon@redhat.com>
4828
4829 * javax/swing/Box.java: Temporarily comment out code
4830 broken due to visibility bug.
4831
48322004-06-09 Michael Koch <konqueror@gmx.de>
4833
4834 * javax/swing/ImageIcon.java
4835 (ImageIcon): Added missing constructor.
4836
48372004-06-08 Michael Koch <konqueror@gmx.de>
4838
4839 * javax/swing/JToggleButton.java
4840 (JToggleButton): New constructor.
4841 (getAccessibleContext): Moved documentation into javadoc.
4842 (getUIClassID): Likewise.
4843
48442004-06-08 Michael Koch <konqueror@gmx.de>
4845
4846 * javax/swing/AbstractButton.java
4847 (getDisabledIcon): Create disabled icon if none exists yet.
4848
48492004-06-08 Michael Koch <konqueror@gmx.de>
4850
4851 * javax/swing/plaf/basic/BasicLookAndFeel.java
4852 (initClassDefaults): Added FormattedTextFieldUI.
4853 (loadResourceBundle): Renamed enum to e.
4854
48552004-06-08 Michael Koch <konqueror@gmx.de>
4856
4857 * javax/swing/plaf/basic/BasicButtonUI.java
4858 (paintIcon): Simplified.
4859 (paintText): Paint disabled button correctly.
4860
48612004-06-08 Michael Koch <konqueror@gmx.de>
4862
4863 * javax/swing/JComponent.java
4864 (createToolTip): Use official JToolTip API.
4865
48662004-06-08 Michael Koch <konqueror@gmx.de>
4867
4868 * javax/swing/JToolTip.java
4869 (JToolTip): No arguments in API.
4870 (setTipText): New method.
4871
48722004-06-08 Michael Koch <konqueror@gmx.de>
4873
4874 * javax/swing/SwingUtilities.java
4875 (isLeftMouseButton): New method.
4876 (isMiddleMouseButton): New method.
4877 (isRightMouseButton): New method.
4878
48792004-06-08 Michael Koch <konqueror@gmx.de>
4880
4881 * javax/swing/AbstractButton.java,
4882 javax/swing/CellRendererPane.java,
4883 javax/swing/JCheckBoxMenuItem.java,
4884 javax/swing/JColorChooser.java,
4885 javax/swing/JComboBox.java,
4886 javax/swing/JComponent.java,
4887 javax/swing/JDesktopPane.java,
4888 javax/swing/JFileChooser.java,
4889 javax/swing/JMenu.java,
4890 javax/swing/JMenuItem.java,
4891 javax/swing/JOptionPane.java,
4892 javax/swing/JPasswordField.java,
4893 javax/swing/JPopupMenu.java,
4894 javax/swing/JProgressBar.java,
4895 javax/swing/JRadioButtonMenuItem.java,
4896 javax/swing/JScrollBar.java,
4897 javax/swing/JSeparator.java,
4898 javax/swing/JSlider.java,
4899 javax/swing/JSplitPane.java,
4900 javax/swing/JTabbedPane.java,
4901 javax/swing/JTextField.java,
4902 javax/swing/JToolBar.java,
4903 javax/swing/text/JTextComponent.java:
4904 Fixed all constructors of accessibility classes.
4905
49062004-06-08 Michael Koch <konqueror@gmx.de>
4907
4908 * javax/swing/ScrollPaneLayout.java: Renamed all memeber variables all
4909 over.
4910
49112004-06-08 Michael Koch <konqueror@gmx.de>
4912
4913 * javax/swing/Box.java
4914 (AccessibleBoxFiller): Extends AccessibleAWTComponent.
4915 (AccessibleBoxFiller.serialVersionUID): New member variable.
4916 * javax/swing/DefaultButtonModel.java
4917 (stateMask): Made protected.
4918 (listenerList): Likewise.
4919 (changeEvent): Likewise.
4920 (group): Likewise.
4921 (mnemonic): Likewise.
4922 (actionCommand): Likewise.
4923 (getListeners): New method.
4924 (getActionListeners): New method.
4925 (getItemListeners): New method.
4926 (getChangeListeners): New method.
4927 (fireItemStateChanged): Simplified.
4928 (fireActionPerformed): Simplified.
4929 (fireStateChanged): Simplified.
4930 * javax/swing/JFrame.java
4931 (JFrame): Implements WindowContants.
4932 (HIDE_ON_CLOSE): Removed.
4933 (EXIT_ON_CLOSE): Removed.
4934 (DISPOSE_ON_CLOSE): Removed.
4935 (DO_NOTHING_ON_CLOSE): Removed.
4936 (processWindowEvent): Exit with code 0.
4937 (setDefaultCloseOperation): Do security check before setting value.
4938 * javax/swing/JOptionPane.java
4939 (message): Initialize only in constructor.
4940 * javax/swing/JToolTip.java: Removed unused imports.
4941 * javax/swing/JViewport.java
4942 (serialVersionUID): New member variable.
4943 (SIMPLE_SCROLL_MODE): Made final, fixed value.
4944 (BLIT_SCROLL_MODE): Likewise.
4945 (BACKINGSTORE_SCROLL_MODE): Likewise.
4946 (scrollUnderway): Made protected.
4947 (isViewSizeSet): Likewise.
4948 * javax/swing/ListModel.java: Fixed javadoc.
4949 * javax/swing/Popup.java: Likewise.
4950 * javax/swing/RepaintManager.java
4951 (paintDirtyRegions): Don't use internal classes of
4952 java.util.AbstractMap.
4953 * javax/swing/ScrollPaneConstants.java: Reindented.
4954 * javax/swing/ScrollPaneLayout.java
4955 (viewport): Made protected.
4956 (verticalScrollBar): Made protected, renamed to vsb.
4957 (horizontalScrollBar): Made protected, renamed to hsb.
4958 (rowHeader): Made protected, renamed to rowHead.
4959 (columnHeader): Made protected, renamed to colHead.
4960 (lowerLeft): Made protected.
4961 (lowerRight): Made protected.
4962 (upperLeft): Made protected.
4963 (upperRight): Made protected.
4964 (verticalScrollBarPolicy): Made protected, renamed to vsbPolicy.
4965 (horizontalScrollBarPolicy): Made protected, renamed to hsbPolicy.
4966
49672004-06-07 Bernd Schmidt <bernds@btinternet.com>
4968
4969 * java/awt/MediaTracker.java (imageUpdate): Only set status to
4970 LOADING if flags has SOMEBITS set.
4971
49722004-06-07 Michael Koch <konqueror@gmx.de>
4973
4974 * javax/swing/AbstractButton.java: Reorganized imports.
4975 * javax/swing/ActionMap.java: Likewise.
4976 * javax/swing/DefaultButtonModel.java: Likewise.
4977 * javax/swing/DefaultListModel.java: Likewise.
4978 * javax/swing/ImageIcon.java: Likewise.
4979 (serialVersionUID): New member variable.
4980 * javax/swing/JComboBox.java: Reorganized imports.
4981 * javax/swing/JComponent.java: Likewise.
4982 (ui): Made protected.
4983 (listenerList): Made protected.
4984 (TOOL_TIP_TEXT_KEY): New constant.
4985 (scrollRectToVisible): Removed redundant null check.
4986 * javax/swing/JFrame.java: Reorganized imports.
4987 * javax/swing/JInternalFrame.java: Reorganized imports.
4988 * javax/swing/JProgressBar.java: Likewise.
4989 * javax/swing/JRootPane.java: Likewise.
4990 * javax/swing/JScrollBar.java: Likewise.
4991 * javax/swing/JSeparator.java: Likewise.
4992 * javax/swing/JSlider.java: Likewise.
4993 * javax/swing/JTabbedPane.java: Likewise.
4994 * javax/swing/JTextField.java: Likewise.
4995 * javax/swing/JToolBar.java: Likewise.
4996 * javax/swing/JTree.java: Likewise.
4997 * javax/swing/JViewport.java: Likewise.
4998 * javax/swing/JWindow.java: Likewise.
4999 * javax/swing/KeyStroke.java: Likewise.
5000 * javax/swing/LookAndFeel.java: Likewise.
5001 * javax/swing/MenuSelectionManager.java: Likewise.
5002 * javax/swing/SwingUtilities.java: Likewise.
5003 * javax/swing/Timer.java: Likewise.
5004 * javax/swing/DefaultBoundedRangeModel.java: Fixed javadoc.
5005 * javax/swing/JList.java
5006 (HORIZONTAL_WRAP): Made final, fixed value.
5007 (VERTICAL): Likewise.
5008 (VERTICAL_WRAP): Likewise.
5009
50102004-06-07 Michael Koch <konqueror@gmx.de>
5011
5012 * javax/swing/AbstractButton.java
5013 (serialVersionUID): New member variable.
5014 (AccessibleAbstractButton.serialVersionUID): Likewise.
5015 (AbstractButton): Made public.
5016 * javax/swing/Box.java
5017 (AccessibleBox.serialVersionUID): New member variable.
5018 (Filler.serialVersionUID): Likewise.
5019 * javax/swing/DefaultListSelectionModel.java
5020 (serialVersionUID): Likewise.
5021 * javax/swing/JApplet.java
5022 (serialVersionUID): Likewise.
5023 * javax/swing/JCheckBox.java
5024 (serialVersionUID): Likewise.
5025 * javax/swing/JCheckBoxMenuItem.java
5026 (serialVersionUID): Likewise.
5027 (AccessibleJCheckBoxMenuItem.serialVersionUID): Likewise.
5028 * javax/swing/JColorChooser.java
5029 (serialVersionUID): Likewise.
5030 (AccessibleJColorChooser.serialVersionUID): Likewise.
5031 * javax/swing/JComponent.java
5032 (serialVersionUID): Made private.
5033 (AccessibleJComponent.serialVersionUID): New member variable.
5034 * javax/swing/JDesktopPane.java
5035 (serialVersionUID): Likewise.
5036 * javax/swing/JDialog.java
5037 (serialVersionUID): Likewise.
5038 * javax/swing/JFormattedTextField.java
5039 (serialVersionUID): Fixed value.
5040 * javax/swing/JFrame.java
5041 (serialVersionUID): New member variable.
5042 (getDefaultCloseOpertation): Made public.
5043 * javax/swing/JLayeredPane.java
5044 (serialVersionUID): Likewise.
5045 (LAYER_PROPERTY): Made final, fixed value.
5046 (JLayeredPane): Made public.
5047 * javax/swing/JMenu.java
5048 (AccessibleJMenu.serialVersionUID): New member variable.
5049 (WinListener.serialVersionUID): Likewise.
5050 * javax/swing/JMenuBar.java
5051 (serialVersionUID): Likewise.
5052 (getComponentAtIndex): Added @deprecated tag.
5053 * javax/swing/JMenuItem.java
5054 (serialVersionUID): New member variable.
5055 (AccessibleJMenuItem.serialVersionUID): Likewise.
5056 * javax/swing/JOptionPane.java
5057 (serialVersionUID): Likewise.
5058 (AccessibleJOptionPane.serialVersionUID): Likewise.
5059 * javax/swing/JPopupMenu.java
5060 (serialVersionUID): Likewise.
5061 (AccessibleJPopupMenu.serialVersionUID): Likewise.
5062 (getPopupMenuListeners): New method.
5063 (getComponentAtIndex): Added @deprecated tag.
5064 * javax/swing/JProgressBar.java
5065 (serialVersionUID): New member variable.
5066 (AccessibleJProgressBar.serialVersionUID): Likewise.
5067 * javax/swing/JRadioButton.java
5068 (serialVersionUID): Likewise.
5069 * javax/swing/JRadioButtonMenuItem.java
5070 (serialVersionUID): Likewise.
5071 (AccessibleJRadioButtonMenuItem.serialVersionUID): Likewise.
5072 * javax/swing/JScrollBar.java
5073 (serialVersionUID): Likewise.
5074 (AccessibleJScrollBar.serialVersionUID): Likewise.
5075 * javax/swing/JSeparator.java
5076 (serialVersionUID): Likewise.
5077 (AccessibleJSeparator.serialVersionUID): Likewise.
5078 * javax/swing/JSlider.java: Fixed javadocs.
5079 (AccessibleJSlider.serialVersionUID): New member variable.
5080 * javax/swing/JSplitPane.java: Added copyright statement.
5081 (serialVersionUID): New member variable.
5082 (AccessibleJSplitPane.serialVersionUID): Likewise.
5083 * javax/swing/JTabbedPane.java
5084 (serialVersionUID): Likewise.
5085 (AccessibleJTabbedPane.serialVersionUID): Likewise.
5086 (ModelListener.serialVersionUID): Likewise.
5087 (ModelListener.ModelListener): New constructor.
5088 (SCROLL_TAB_LAYOUT): Made public final, fixed value.
5089 (WRAP_TAB_LAYOUT): Likewise.
5090 * javax/swing/JTable.java
5091 (serialVersionUID): New member variable.
5092 * javax/swing/JToggleButton.java
5093 (serialVersionUID): Likewise.
5094 (ToggleButtonModel): Made static.
5095 (ToggleButtonModel.serialVersionUID): New member variable.
5096 * javax/swing/JToolTip.java
5097 (serialVersionUID): Likewise.
5098 * javax/swing/JTree.java
5099 (serialVersionUID): Likewise.
5100 * javax/swing/JWindow.java
5101 (serialVersionUID): Likewise.
5102 * javax/swing/Timer.java
5103 (serialVersionUID): Likewise.
5104
51052004-06-06 Michael Koch <konqueror@gmx.de>
5106
5107 * javax/swing/SwingConstants.java
5108 (NEXT): New constant.
5109 (PREVIOUS): Likewise.
5110 * javax/swing/UIManager.java
5111 (LookAndFeel): Made public.
5112 (LookAndFeel.getClassName): Likewise.
5113 (LookAndFeel.getName): Likewise.
5114
51152004-06-02 Olga Rodimina <rodimina@redhat.com>
5116
5117 * javax/swing/JCheckBoxMenuItem.java:
5118 Removed CVS tags.
5119 * javax/swing/JMenu.java: Likewise.
5120 * javax/swing/JMenuBar.java: Likewise.
5121 * javax/swing/JMenuItem.java: Likewise.
5122 * javax/swing/JPopupMenu.java: Likewise.
5123 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5124 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5125 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5126 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5127 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5128 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5129 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5130
51312004-05-31 Olga Rodimina <rodimina@redhat.com>
5132
5133 * javax/swing/plaf/basic/BasicMenuUI.java:
5134 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5135 Call getPath() from super class instead.
5136
51372004-05-31 David Jee <djee@redhat.com>
5138
5139 * java/awt/Container.java
5140 (remove): Set component visibility to false after removing it.
5141
51422004-05-27 Thomas Fitzsimmons <fitzsim@redhat.com>
5143
5144 * java/awt/Component.java (getForeground): Return SystemColor if
5145 parent is null.
5146 (getBackground): Likewise.
5147
5148 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5149 (item_highlighted): New function.
5150 (connectSignals): Set item_highlighted as list's select
5151 function.
5152
5153 * java/applet/Applet.java: Revert changes from 2004-04-29,
5154 2004-03-15 and 2004-03-14.
5155
5156 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5157 Divide baseline y coordinate by PANGO_SCALE, not DPI conversion
5158 factor.
5159
5160 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (create): Set
5161 "Dialog" as the default font.
5162 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create):
5163 Likewise.
5164 * java/awt/Component.java (getFont): Return "Dialog" font by
5165 default.
5166 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
5167 Multiply size argument to pango_font_description_set_size by the
5168 DPI conversion factor rather than by PANGO_SCALE.
5169 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c: Likewise.
5170 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Likewise.
5171 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c: Likewise.
5172 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
5173 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5174 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c: Likewise.
5175 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
5176 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c: Likewise.
5177 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise.
5178 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
5179 Divide baseline y coordinate by DPI conversion factor rather
5180 than by PANGO_SCALE.
5181 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
5182 (area_prepared): Fix typo.
5183 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
5184 (gtkSetFont): Move gtk_bin_get_child inside GDK critical region.
5185 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
5186 (dpi_conversion_factor): New global variable.
5187 (init_dpi_conversion_factor): New function to calculate and
5188 track DPI conversion factor.
5189 (dpi_changed_cb): New callback.
5190 * jni/gtk-peer/gtkpeer.h (dpi_conversion_factor): Declare.
5191
51922004-05-27 David Jee <djee@redhat.com>
5193
5194 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5195 (getGraphics): Return a new GdkGraphics instance.
5196 * gnu/java/awt/peer/gtk/GtkContainerPeer.java
5197 (getGraphics): Call super.getGraphics().
5198
51992004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5200
5201 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5202 (setNativeBounds): Clamp width and height values to >= 0.
5203
5204 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5205 (find_fg_color_widget): Handle GtkOptionMenu specially.
5206
5207 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5208 (pre_event_handler): Only post configure events to visible
5209 top-level windows.
5210
52112004-05-26 David Jee <djee@redhat.com>
5212
5213 * java/awt/BorderLayout.java
5214 (layoutContainer): Fix size calculations.
5215
52162004-05-26 Thomas Fitzsimmons <fitzsim@redhat.com>
5217
5218 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5219 (window_wm_protocols_filter): Remove function.
5220 (create): Remove filter that removes WM_TAKE_FOCUS client
5221 messages.
5222
794c3bee
AG
52232004-06-17 Anthony Green <green@redhat.com>
5224
1616280e
AG
5225 * java/util/zip/ZipFile.java (getInputStream): Return null if
5226 entry not found.
5227
794c3bee
AG
5228 * gnu/gcj/runtime/VMClassLoader.java (init): Add extension
5229 directory contents to the class path.
5230
d1238423
AH
52312004-06-15 Andrew Haley <aph@redhat.com>
5232
5233 * java/lang/natSystem.cc (getenv0): Don't assume environment
5234 variable is Latin 1 coded.
5235
f1c3e0a6
AJ
52362004-06-14 Andreas Jaeger <aj@suse.de>
5237
5238 * configure.in: Support --enable-version-specific-runtime-libs.
5239 * configure: Regenerated.
5240
84b1d821
BM
52412004-06-14 Bryce McKinlay <mckinlay@redhat.com>
5242
5243 * java/util/Calendar.java: Change ResourceBundle.getBundle() calls
5244 to pass ClassLoader argument.
5245 * java/util/GregorianCalendar.java: Likewise.
5246 * java/util/Currency.java: Likewise.
5247 * java/text/BreakIterator.java: Likewise.
5248 * java/text/Collator.java: Likewise.
5249 * java/text/DateFormat.java: Likewise.
5250 * java/text/DateFormatSymbols.java: Likewise.
5251 * java/text/DecimalFormatSymbols.java: Likewise.
5252 * java/text/NumberFormat.java: Likewise.
5253 * java/awt/Window.java: Likewise.
5254
df94fa14
AH
52552004-06-14 Andrew Haley <aph@redhat.com>
5256
5257 * java/lang/System.java: (getenv0): New method.
5258 (getenv): Add security check. Do the right thing.
5259 * java/lang/natSystem.cc (getenv0): New method.
5260
ff6ea709
MW
52612004-06-12 Mark Wielaard <mark@klomp.org>
5262
5263 * javax/swing/RepaintManager.java
5264 (paintDirtyRegions): Use entrySet(), not values().
5265
d1ee8381
MW
52662004-06-10 Mark Wielaard <mark@klomp.org>
5267
5268 * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
5269 NoSuchMethodError.
5270
b092552d
JQ
52712004-06-11 Jerry Quinn <jlquinn@optonline.net>
5272
5273 * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
5274 when we already know the answer.
5275 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
5276 (setStartRule,setEndRule): Don't take abs of day number.
5277 (getOffset): Clarify docs. Add argument checks.
5278 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
5279 (equals,hasSameRules,toString,readObject): Use startTimeMode and
5280 endTimeMode.
5281
618df745
TT
52822004-06-10 Tom Tromey <tromey@redhat.com>
5283
5284 * interpret.cc (run): Handle wide fload.
5285
648b6075
JQ
52862004-06-06 Jerry Quinn <jlquinn@optonline.net>
5287
5288 * java/util/zip/ZipEntry.java (setTime): Remove scaling.
5289
9fc3ed51
MK
52902004-06-05 Michael Koch <konqueror@gmx.de>
5291
5292 * javax/swing/SwingConstants.java
5293 (NEXT): New constant.
5294 (PREVIOUS): Likewise.
5295
c6dd0441
MK
52962004-06-05 Michael Koch <konqueror@gmx.de>
5297
5298 * javax/swing/UIManager.java
5299 (LookAndFeel): Made public.
5300 (LookAndFeel.getName): Likewise.
5301 (LookAndFeel.getClassName): Likewise.
5302
53ef271f
MK
53032004-06-03 Michael Koch <konqueror@gmx.de>
5304
5305 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5306 (requestFocus): Revert last changes.
5307 (gtkRequestFocus): Removed.
5308 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5309 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5310 Renamed to ...
5311 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
5312 Reverted last patch.
5313 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5314 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
5315 Reverted comment change.
5316
26f4ba86
OR
53172004-06-02 Olga Rodimina <rodimina@redhat.com>
5318
5319 * javax/swing/JCheckBoxMenuItem.java:
5320 Removed CVS tags.
5321 * javax/swing/JMenu.java: Likewise.
5322 * javax/swing/JMenuBar.java: Likewise.
5323 * javax/swing/JMenuItem.java: Likewise.
5324 * javax/swing/JPopupMenu.java: Likewise.
5325 * javax/swing/JRadioButtonMenuItem.java: Likewise.
5326 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:Likewise.
5327 * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
5328 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5329 * javax/swing/plaf/basic/BasicMenuUI.java: Likewise.
5330 * javax/swing/plaf/basic/BasicPopupMenuUI.java: Likewise.
5331 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Likewise.
5332
c05e85e2
MK
53332004-06-01 Tom Tromey <tromey@redhat.com>
5334
5335 * java/io/ObjectStreamField.java: Cleaned up imports.
5336
53372004-06-01 Michael Koch <konqueror@gmx.de>
5338
5339 * java/io/ObjectStreamField.java: Style and javadoc cleanup.
5340
53412004-06-01 Mark Wielaard <mark@klomp.org>
5342
5343 * java/io/Writer.java (Writer(Object)): Fixed API doc.
5344
6ef44cfd
MK
53452004-06-01 Michael Koch <konqueror@gmx.de>
5346
5347 * java/security/Security.java
5348 (insertProviderAt): Use equals() instead of ==.
5349 (removeProvicer): Likewise.
5350 (getProvider): Likewise.
5351 * java/security/Signature.java
5352 (sign): Don't set state to UNINITIALIZED.
5353 (verify): Likewise.
5354
1900c4c6
MW
53552004-06-01 Mark Wielaard <mark@klomp.org>
5356
5357 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus):
5358 Implement by calling gtkRequestFocus.
5359 (gtkRequestFocus): New native method.
5360 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5361 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__):
5362 Renamed to ...
5363 (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
5364 New function name.
5365 (filter_expose_event_handler):
5366 Mark static.
5367 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
5368 (menu_pos): Mark static.
5369
57807c31
MK
53702004-06-01 Michael Koch <konqueror@gmx.de>
5371
5372 * java/text/CollationElementIterator.java,
5373 java/text/CollationKey.java,
5374 java/text/RuleBasedCollator.java: New versions from GNU classpath.
5375 * testsuite/libjava.mauve/xfails: Removed all
5376 java.text.CollationElementIterator tests.
5377
f7dbd56c
MK
53782004-06-01 Michael Koch <konqueror@gmx.de>
5379
5380 * java/util/zip/InflaterInputStream.java: Merged more with Classpath
5381 version.
5382 * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed
5383 Java 1.5 keyword usage.
5384
44a4b8db
OR
53852004-05-31 Olga Rodimina <rodimina@redhat.com>
5386
5387 * javax/swing/plaf/basic/BasicMenuUI.java:
5388 (MouseEntered): Do not call getPath() from MenuSelectionManager.
5389 Call getPath() from super class instead.
5390
58128b9d
MK
53912004-05-31 Michael Koch <konqueror@gmx.de>
5392
5393 * java/io/SequenceInputStream.java:
5394 Rename enum to e because enum is a keyword in Java 1.5.
5395
771b9ca3
MK
53962004-05-31 Michael Koch <konqueror@gmx.de>
5397
5398 * gnu/java/rmi/rmic/CompilerProcess.java:
5399 Fixed javadoc to by XHTML compliant.
5400
7a70d70c
MW
54012004-05-30 Mark Wielaard <mark@klomp.org>
5402
5403 * java/awt/Toolkit.java (loadSystemColors): Implement.
5404
289f9db7
MK
54052004-05-30 Michael Koch <konqueror@gmx.de>
5406
071917b0
MK
5407 * java/lang/System.java: Reordered imports.
5408
54092004-05-30 Guilhem Lavaux <guilhem@kaffe.org>
5410
289f9db7
MK
5411 * java/text/DecimalFormat.java
5412 (parse): Fixed parsing of decimal strings. Number of maximum
5413 digits to be read should now work.
5414 * java/text/SimpleDateFormat.java
5415 (SimpleDateFormat): Set maximumFractionDigit to 0 for the number
5416 formatter. This fixes DateFormatTest.
5417
1b2545bc
MK
54182004-05-30 Michael Koch <konqueror@gmx.de>
5419
5420 * java/nio/Buffer.java
5421 (limit): Fixed off by one error.
5422 * java/nio/CharBuffer.java
5423 (wrap): Fixed arguments, added javadocs.
5424
74c2dbf7
MK
54252004-05-30 Michael Koch <konqueror@gmx.de>
5426
5427 * gnu/java/beans/BeanInfoEmbryo.java,
5428 java/awt/im/InputContext.java,
5429 javax/swing/tree/DefaultMutableTreeNode.java:
5430 Rename enum to e because enum is a keyword in Java 1.5.
5431
27d14326
MK
54322004-05-30 Michael Koch <konqueror@gmx.de>
5433
5434 * gnu/java/math/MPN.java,
5435 java/awt/geom/Arc2D.java:
5436 Fixed javadocs all over.
5437
933592af
MK
54382004-05-30 Michael Koch <konqueror@gmx.de>
5439
5440 * java/awt/DefaultKeyboardFocusManager.java
5441 (dispatchEvent): Call method to get key event dispatchers.
5442 (dispatchKeyEvent): Call method to get key event post processors.
5443 * javax/swing/JComponent.java
5444 (listenerList): Made protected.
5445 * javax/swing/JOptionPane.java
5446 (message): Don't initialize.
5447 (JOptionPane): Set message text.
5448 * javax/swing/JPopupMenu.java
5449 (show): Fixed typo in argument name.
5450 * javax/swing/RepaintManager.java
5451 (paintDirtyRegions): Use public API of java.util.Map.
5452 * javax/swing/plaf/basic/BasicSplitPaneDivider.java
5453 (positionForMouseEvent): Removed redundant ';'.
5454 (continueDrag): Use method arguments.
5455
5ba95354
RM
54562004-05-29 Ranjit Mathew <rmathew@hotmail.com>
5457
5458 * testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
5459 results.
5460
ca60dce2
BM
54612004-05-28 Bryce McKinlay <mckinlay@redhat.com>
5462
5463 * gcj/cni.h (JvAllocBytes): New public CNI function. Calls
5464 _Jv_AllocBytes.
5465 * gnu/gcj/RawDataManaged.java: New file.
5466 * java/lang/Thread.java (data): Declare as RawDataManaged.
5467 * java/lang/natThread.cc (init_native): Cast natThread data to
5468 RawDataManaged, not jobject.
5469 * Makefile.am (ordinary_java_source_files): Add RawDataManaged.
5470 * Makefile.in: Rebuilt.
5471
b9f065be
JQ
54722004-05-27 Jerry Quinn <jlquinn@optonline.net>
5473
5474 * java/util/SimpleTimeZone.java: Reverting my last change until I
5475 can fix it properly.
5476
a4171ce1
MK
54772004-05-27 Michael Koch <konqueror@gmx.de>
5478
5479 * javax/swing/JPopupMenu.java
5480 (isVisible): Do not use visible directly.
5481 (setVisible): Likewise.
5482 * javax/swing/JWindow.java
5483 (JWindow): call accessible constructor.
5484 * javax/swing/RepaintManager.java
5485 (paintDirtyRegions): Use public methods to obtain iterator.
5486
c5d2de6b
GH
54872004-05-25 David Jee <djee@redhat.com>
5488
5489 * java/awt/Container.java
5490 (remove): Set component's parent to null only after we removed the
5491 component from its parent's layout manager.
5492
54932004-05-25 David Jee <djee@redhat.com>
5494
5495 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5496 (GtkComponentPeer): Set bounds regardless of whether awtComponent
5497 is valid.
5498 * gnu/java/awt/peer/gtk/GtkListPeer.java
5499 (getSize): Change native method declaration.
5500 (minimumSize): Pass visible row count into getSize().
5501 (preferredSize): Likewise.
5502 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
5503 (Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize): Use scroll window's
5504 natural size. Use visible row count to determine the final height
5505 value to return.
5506
55072004-05-21 Graydon Hoare <graydon@redhat.com>
5508
5509 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
5510 (setClip): Minor correction to order of operations.
5511
5512 * javax/swing/JScrollPane.java: Extend sketchy implementation.
5513 * javax/swing/ScrollPaneLayout.java: Likewise.
5514 * javax/swing/JViewPort.java: Likewise.
5515 * javax/swing/ViewportLayout.java: Likewise.
5516
5517 * javax/swing/JComponent.java: Rewrite.
5518 * javax/swing/RepaintManager.java: Likewise.
5519
5520 * javax/swing/JLayeredPane.java: Change validate() to revalidate().
5521 * javax/swing/JList.java
5522 (setSelectedIndices):
5523 (getSelectedIndices):
5524 (getSelectedValues): New functions.
5525 (getPreferredScrollableViewportSize): Return preferred size.
5526 (getScrollableUnitIncrement):
5527 (getScrollableBlockIncrement): Initial implementations.
5528 * javax/swing/JRootPane.java: Clean up slightly.
5529 (getUI):
5530 (setUI):
5531 (updateUI):
5532 (getUIClassID):
5533 (isValidateRoot): Add overrides from JComponent.
5534 * javax/swing/JScrollBar.java: Set default orientation to VERTICAL.
5535 * javax/swing/UIManager.java (getDimension): Return the dimension.
5536
5537 * javax/swing/plaf/basic/BasicButtonUI.java: Set component opaque.
5538 * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
5539 * javax/swing/plaf/basic/BasicMenuItemUI.java: Likewise.
5540 * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
5541 * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
5542 * javax/swing/plaf/basic/BasicSliderUI.java: Likewise.
5543 * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
5544 * javax/swing/plaf/basic/BasicRootPaneUI.java:
5545 Likewise, and set background.
5546 * javax/swing/plaf/basic/BasicListUI.java:
5547 Likewise, and improve a bit.
5548 * javax/swing/plaf/basic/BasicScrollBarUI.java:
5549 Likewise, and adjust calculations.
5550 * javax/swing/plaf/basic/BasicViewportUI.java:
5551 Likewise, and improve a bit.
5552 * javax/swing/plaf/basic/BasicLookAndFeel.java
5553 (Button.margin): Shrink.
5554
5555 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
5556 Hack to set horizontal always, workaround pango.
5557
5558 * jni/gtk-peer/gtkcairopeer.h: Change to match pattern API.
5559 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
5560 Synchronize more often, check cairo status after ops,
5561 handle changes to cairo pattern API, check for disposal.
5562
55632004-05-21 Olga Rodimina <rodimina@redhat.com>
5564
5565 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5566 (BasicMenuItemUI): Create propertyChangeListener.
5567 (getPath):Implemented.
5568 (installListeners): Add propertyChangeListener to menuItem.
5569 (uninstallListeners): Remove propertyChangeListener from menuItem.
5570 (update): Implemented.
5571 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5572 (mouseEntered): Take insets of popup menu into account when
5573 calculating position of popup menu.
5574
55752004-05-18 Olga Rodimina <rodimina@redhat.com>
5576
5577 * Makefile.am: Added new file.
5578 * Makefile.in: Regenerate.
5579 * javax/swing/JMenuBar.java:
5580 Started implementation.
5581 * javax/swing/JPopupMenu.java:
5582 (setVisible): Fixed location of lightweight/mediumweight
5583 popup menu.
5584 (show): Fixed location of PopupMenu.
5585 * javax/swing/plaf/basic/BasicMenuBarUI.java:
5586 New file. UI Delegate for JMenuBar.
5587 * javax/swing/plaf/basic/BasicMenuUI.MouseInputHandler:
5588 (mouseEntered): Corrected position of the submenu.
5589
55902004-05-18 Thomas Fitzsimmons <fitzsim@redhat.com>
5591
5592 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Remove calls
5593 to _gtk_accel_group_attach.
5594 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
5595 Likewise.
5596
5597 * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Give gtkSetFont
5598 package access. Don't override setFont.
5599 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Likewise.
5600 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Give
5601 gtkWidgetRequestFocus package access.
5602 * gnu/java/awt/peer/gtk/GtkLabelPeer.java: Don't override
5603 setFont.
5604 * gnu/java/awt/peer/gtk/GtkListPeer.java: Override gtkSetFont.
5605 Give gtkWidgetRequestFocus package access.
5606 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Give
5607 gtkWidgetRequestFocus package access. Don't override setFont.
5608 * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Don't override
5609 setFont.
5610 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5611 (gtkSetLabel): Move call to gtk_bin_get_child into GDK critical
5612 region.
5613 (gtkSetFont): Likewise.
5614 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (gtkSetFont):
5615 Implement.
5616 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5617 (gtkSetFont): Whitespace fix.
5618
5619 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5620 (gtkWidgetSetUsize): Remove method.
5621
56222004-05-18 David Jee <djee@redhat.com>
5623
5624 * java/awt/image/MemoryImageSource.java
5625 (newPixels(int,int,int,int,boolean)): Set only the specified
5626 rectangle of pixels.
5627 (newPixels(byte[],ColorModel,int,int)): Implement.
5628 (newPixels(int[],ColorModel,int,int)): Implement.
5629
56302004-05-18 Olga Rodimina <rodimina@redhat.com>
5631
5632 * Makefile.am: Added new file.
5633 * Makefile.in: Regenerate.
5634 * javax/swing/JMenu.java: Started
5635 implementation.
5636 * javax/swing/JPopupMenu.java:
5637 (insert): If specified index is -1, then
5638 add component at the end.
5639 (isPopupTrigger): Reimplemented.
5640 (JPopupMenu.LightWeightPopup): setBounds
5641 of the lightWeightPopup before adding it
5642 to the layeredPane.
5643 (javax/swing/plaf/basic/BasicIconFactory.java):
5644 (getMenuArrowIcon): Implemented.
5645 * javax/swing/plaf/basic/BasicMenuItemUI.java:
5646 (getPreferredSize): Add size of the arrow icon
5647 if this menu item is instance of JMenu.
5648 (paintMenuItem): Paint arrow icon if this
5649 menu item is a submenu.
5650 * javax/swing/plaf/basic/BasicMenuUI.java:
5651 New File. UI Delegate for JMenu.
5652
56532004-05-17 Thomas Fitzsimmons <fitzsim@redhat.com>
5654
5655 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent):
5656 Post KEY_TYPED events.
5657 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5658 (generates_key_typed_event): Remove function.
5659
56602004-05-17 Olga Rodimina <rodimina@redhat.com>
5661
5662 * javax/swing/JRootPane.java
5663 (JRootPane.RootLayout): Reimplemented to
5664 set bounds of contentPane and menuBar.
5665 (setJMenuBar): Add menu bar to the layered pane.
5666 (createLayeredPane): Set layout of layeredPane
5667 to null.
5668 * javax/swing/JLayeredPane.java:
5669 (addImpl): Calculate index of the component in the
5670 layeredPane according to the specified position within
5671 the layer.
5672
56732004-05-17 David Jee <djee@redhat.com>
5674
5675 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5676 (setPixels): Change color model to the default model after
5677 converting pixels.
5678 * java/awt/image/MemoryImageSource.java
5679 (newPixels): Set only the specified rectangle of pixels.
5680
56812004-05-13 Thomas Fitzsimmons <fitzsim@redhat.com>
5682
5683 * libgcj.spec.in (lib): Add -l-java-awt -l-java-applet
5684 -l-java-beans -l-javax-accessibility -l-javax-swing.
5685
5686 * java/awt/AWTEvent.java (toString): Print source's name rather
5687 than the source itself.
5688
56892004-05-12 Thomas Fitzsimmons <fitzsim@redhat.com>
5690
5691 * gnu/java/awt/peer/gtk/GtkToolkit.java (loadSystemColors): Make
5692 native.
5693 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
5694 (gdk_color_to_java_color): New function.
5695 * jni/gtk-peer/gtkpeer.h: Add SystemColor defines.
5696
56972004-05-12 David Jee <djee@redhat.com>
5698
5699 * java/awt/image/RGBImageFilter.java:
5700 Initialize origmodel as null.
5701 (makeColor): Fix pixel component order.
5702 (filterRGBPixels): Fix pixel iteration.
5703 (setPixels): Add extra checks for index color model. Convert pixels
5704 to default color model if necessary.
5705 (convertColorModelToDefault): New override method for byte pixels.
5706 (convertColorModelToDefault): For int pixels, fix pixel iteration.
5707 (makeColorbyDefaultCM): New override method for byte pixels.
5708 (makeColorbyDefaultCM): For int pixel, add color model as argument.
5709 (makeColor): Fix pixel component order.
5710
57112004-05-11 Kim Ho <kho@redhat.com>
5712
5713 * javax/swing/Box.java:
5714 Comment out more parts of Box.Filler.
5715
57162004-05-11 Kim Ho <kho@redhat.com>
5717
5718 * javax/swing/Box.java:
5719 Remove reference to AccessibleAWTComponent so
5720 it compiles again.
5721
57222004-05-10 Thomas Fitzsimmons <fitzsim@redhat.com>
5723
5724 * gnu/java/awt/peer/gtk/GtkListPeer.java,
5725 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Update
5726 implementation of list peer to use GtkTreeView instead of
5727 deprecated GtkCList.
5728
57292004-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
5730
5731 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5732 (gtkWidgetDispatchKeyEvent): Remove keyChar parameter.
5733 (handleEvent): Remove keyChar argument to
5734 gtkWidgetDispatchKeyEvent calls.
5735 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Fix
5736 compiler warnings.
5737 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5738 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
5739 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
5740 Likewise.
5741
57422004-05-06 Thomas Fitzsimmons <fitzsim@redhat.com>
5743
5744 * gnu/java/awt/peer/gtk/GtkComponentPeer.java
5745 (gtkWidgetRequestFocus): Mark protected.
5746 (GtkComponentPeer): Only set the peer's bounds if its component
5747 is valid.
5748 * java/awt/Component.java (static): Set the default keyboard
5749 focus manager.
5750 (requestFocus(), requestFocus(boolean), requestFocusInWindow(),
5751 requestFocusInWindow(temporary)): Don't request focus if the
5752 component is not showing. Get tree lock before traversing
5753 component hierarchy.
5754 * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
5755 Only set the global focus owner if it is not a Window.
5756 (processKeyEvent): Consume keystrokes associated with the focus
5757 traversal keystroke.
5758 (focusPreviousComponent, focusNextComponent, upFocusCycle,
5759 downFocusCycle): Call requestFocusInWindow instead of
5760 requestFocus.
5761 * java/awt/EventDispatchThread.java (run): Move setting of
5762 default keyboard focus manager to Component.java.
5763 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5764 (awt_keycode_to_keysym): New function.
5765 (gtkWidgetDispatchKeyEvent): Finish implementation.
5766 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5767 (pre_event_handler): Add FIXME comment.
5768
5769 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
5770 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
5771 (gtkWidgetRequestFocus): New method.
5772 * java/awt/TextArea.java (TextArea): Set focus traversal keys to
5773 disable Tab and Shift-Tab keystrokes.
5774 (addNotify, appendText, insertText, replaceText): Simplify peer
5775 retrieval code.
5776 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
5777 (connectSignals): Remove connections to "commit" signals.
5778 Remove C++-style comments.
5779
5780 * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
5781 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
5782 (handleEvent): Activate GTK button when the space bar key is
5783 pressed.
5784 (gtkActivate): New method.
5785
57862004-05-06 David Jee <djee@redhat.com>
5787
5788 * java/awt/image/CropImageFilter.java
5789 (setPixels): Implement for byte array pixels.
5790 * java/awt/image/ReplicateScaleFilter.java
5791 (setPixels): Implement for byte array pixels.
5792 (replicatePixels): Overload for byte array pixels.
5793
57942004-05-06 Kim Ho <kho@redhat.com>
5795
5796 * javax/swing/Box.java:
5797 (getAccessibleContext): Return an instance of the
5798 correct class.
5799
58002004-05-05 David Jee <djee@redhat.com>
5801
5802 * gnu/java/awt/peer/gtk/GdkGraphics.java
5803 (drawImage): When component is null, use SystemColor.window as
5804 the default bgcolor.
5805 * gnu/java/awt/peer/gtk/GtkImage.java
5806 (setPixels): We can avoid iterating through the pixel rows only
5807 when height is 1.
5808 * java/awt/Image.java
5809 (getScaledInstance): Partially implement.
5810 * java/awt/image/CropImageFilter.java
5811 (setProperties): Fix "filter" property.
5812 (setPixels): Implement.
5813 * java/awt/image/ReplicateScaleFilter.java
5814 (setDimensions): Use scaled dimensions.
5815 (setPixels): Implement.
5816 (replicatePixels): New method.
5817
58182004-05-05 David Jee <djee@redhat.com>
5819
5820 * gnu/java/awt/peer/gtk/GtkImagePainter.java
5821 (convertPixels): If either pixels or model is null, return null.
5822 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
5823 (Java_gnu_java_awt_peer_gtk_GtkImagePainter_drawPixels): If jpixels
5824 is null, do nothing and return.
5825
58262004-05-03 Kim Ho <kho@redhat.com>
5827
5828 * gnu/java/awt/peer/gtk/GtkDialogPeer.java:
5829 (getGraphics): Like GtkFramePeer, the Graphics
5830 object needs to be translate to account for
5831 window decorations.
5832 (postMouseEvent): New method. Account for
5833 translation.
5834 (postExposeEvent): ditto.
5835 * javax/swing/Box.java: Stubbed.
5836 * javax/swing/JDialog.java: Ran through jalopy
5837 to fix indentation.
5838 (JDialog): Call SwingUtilities' getOwnerFrame
5839 for null owners.
5840 (setLayout): Check isRootPaneCheckingEnabled
5841 * javax/swing/JOptionPane.java: Re-implemented.
5842 * javax/swing/SwingUtilities.java:
5843 (getOwnerFrame): Static method to grab a default
5844 owner frame for Dialogs that don't specify owners.
5845 * javax/swing/event/SwingPropertyChangeSupport.java:
5846 (firePropertyChange): Fix early exit condition.
5847 * javax/swing/plaf/basic/BasicLabelUI.java:
5848 (paint): Avoid painting text if it is null
5849 or empty.
5850 * javax/swing/plaf/basic/BasicOptionPaneUI.java:
5851 Implement.
5852
58532004-05-03 Olga Rodimina <rodimina@redhat.com>
5854
5855 * Makefile.am: Added new file.
5856 * Makefile.in: Regenerate.
5857 * javax/swing/JPopupMenu.java:
5858 Started implementation.
5859 * javax/swing/JWindow.java
5860 (JWindow): call super() if parent for window
5861 is not specified.
5862 * javax/swing/plaf/basic/BasicPopupMenuUI.java:
5863 New File. UI Delegate for JPopupMenu.
5864
58652004-04-30 Olga Rodimina <rodimina@redhat.com>
5866
5867 * javax/swing/JApplet.java: Indicated that JApplet
5868 implements RootPaneContainer and made method of this
5869 interface public.
5870 * javax/swing/JFrame.java: Ditto.
5871 * javax/swing/JWindow.java: Ditto.
5872
58732004-04-29 Thomas Fitzsimmons <fitzsim@redhat.com>
5874
5875 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
5876 (nativeSetBounds): Call gdk_window_move in addition to
5877 gtk_window_move.
5878
5879 * java/applet/Applet.java (preferredSize): Call parent's
5880 preferredSize if the applet stub is null.
5881 (minimumSize): Likewise for parent's minimumSize.
5882
58832004-04-27 Olga Rodimina <rodimina@redhat.com>
5884
5885 * javax/swing/JMenuItem.java
5886 (createActionPropertyChangeListener): Implemented.
5887 (processMouseEvent): Ditto.
5888 (fireMenuDragMouseEntered): Ditto.
5889 (fireMenuDragMouseExited): Ditto.
5890 (fireMenuDragMouseDragged): Ditto.
5891 (fireMenuDragMouseReleased): Ditto.
5892 (menuSelectionChanged): Ditto.
5893 (getSubElements): Ditto.
5894 (getComponent): Ditto.
5895 (addMenuDragMouseListener): Ditto.
5896 (removeMenuDragMouseListener):Ditto.
5897 (addMenuKeyListener): Ditto.
5898 (removeMenuKeyListener): Ditto.
5899 * javax/swing/plaf/basic/BasicMenuItemUI.java
5900 (doClick): Imlemented.
5901 * javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler:
5902 Don't handle mouse events here. Pass them to
5903 MenuSelectionManager.
5904
59052004-04-26 Olga Rodimina <rodimina@redhat.com>
5906 Used correct version of jalopy configuration
5907 file to fix style in the files below.
5908
59092004-04-26 Olga Rodimina <rodimina@redhat.com>
5910
5911 * javax/swing/JCheckBoxMenuItem.java:
5912 Fixed style and removed unnecessary comments.
5913 * javax/swing/JMenuItem.java: Ditto.
5914 * javax/swing/JRadioButtonMenuItem.java: Ditto.
5915 * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: Ditto.
5916 * javax/swing/plaf/basic/BasicMenuItemUI.java: Ditto.
5917 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java: Ditto.
5918
59192004-04-23 Thomas Fitzsimmons <fitzsim@redhat.com>
5920
5921 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Change FIXME comment to
5922 C-style.
5923
5924 * gnu_java_awt_peer_gtk_GtkWindowPeer.c: Add FIXME comment.
5925
5926 * java/awt/ContainerOrderFocusTraversalPolicy.java
5927 (getComponentAfter): Start from current component and work up
5928 the component hierarchy until an acceptable component is found.
5929 Synchronize on tree lock.
5930 (getComponentBefore): Likewise.
5931
59322004-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
5933
5934 * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Remove
5935 focus-related debugging messages.
5936 * java/awt/DefaultKeyboardFocusManager.java: Likewise.
5937 * java/awt/EventDispatchThread.java: Likewise.
5938 * java/awt/KeyboardFocusManager.java: Likewise.
5939 * java/awt/Window.java: Likewise.
5940 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
5941 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5942
5943 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Change
5944 new C++-style comments to C-style comments.
5945 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
5946
5947 * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
5948 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
5949 (handleEvent): Dispatch key press and key release events to
5950 backing widget.
5951 (requestFocus): Post a FOCUS_GAINED event to the event queue.
5952 (gtkWidgetRequestFocus): New method.
5953 (gtkWidgetDispatchKeyEvent): Likewise.
5954 * java/awt/Component.java (requestFocus, requestFocus(boolean),
5955 requestFocusInWindow, requestFocusInWindow(boolean),
5956 getFocusCycleRootAncestor, nextFocus, transferFocus,
5957 transferFocusBackward, transferFocusUpCycle, hasFocus,
5958 isFocusOwner): Implement and document focus-handling methods.
5959 (setFocusTraversalKeys): Inherit focus traversal keys when
5960 keystrokes argument is null. Fix focus-handling documentation
5961 throughout class.
5962 * java/awt/Container.java (setFocusTraversalKeys,
5963 getFocusTraversalKeys, areFocusTraversalKeysSet,
5964 isFocusCycleRoot, setFocusTraversalPolicy,
5965 getFocusTraversalPolicy, isFocusTraversalPolicySet,
5966 setFocusCycleRoot, isFocusCycleRoot, transferFocusDownCycle):
5967 Implement and document focus-handling methods.
5968 (transferFocusBackward): Remove method.
5969 (readObject, writeObject): Implement and document serialization
5970 methods.
5971 * java/awt/ContainerOrderFocusTraversalPolicy.java: Implement
5972 and document.
5973 * java/awt/DefaultFocusTraversalPolicy.java: Implement and
5974 document.
5975 * java/awt/DefaultKeyboardFocusManager.java: Implement and
5976 partially document.
5977 * java/awt/EventDispatchThread.java (run): Set default keyboard
5978 focus manager. Attempt to dispatch each event to the keyboard
5979 focus manager before normal dispatch.
5980 * java/awt/KeyboardFocusManager.java: Implement and partially
5981 document.
5982 * java/awt/Window.java (Window): Set focusCycleRoot to true.
5983 (show): Focus initial component when window is shown for the
5984 first time.
5985 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
5986 (pre_event_handler): Replace complex key press and key release
5987 logic with simple callbacks into GtkComponentPeer.
5988 * jni/gtk-peer/gtkpeer.h: Fix FOCUS_GAINED/FOCUS_LOST reversal.
5989
59902004-04-21 Olga Rodimina <rodimina@redhat.com>
5991
5992 * javax/swing/MenuSelectionManager.java
5993 (componentForPoint): Added new method.
5994 (defaultManager): New Method. Implemented.
5995 (getSelectedPath): Ditto.
5996 (isComponentPartOfCurrentMenu): Ditto.
5997 (processKeyEvent): Added new method.
5998 (processMouseEvent): New Method. Implemented.
5999 (setSelectedPath): Ditto.
6000 (getPath): Ditto.
6001
60022004-04-19 Kim Ho <kho@redhat.com>
6003
6004 * java/awt/Container.java:
6005 (remove): Set the component's parent to null.
6006 (getComponentAt): Implement.
6007 * javax/swing/JComponent.java:
6008 (JComponent): Initialize defaultLocale
6009 (getDefaultLocale): Implement.
6010 (setDefaultLocale): ditto.
6011 * javax/swing/JSlider.java:
6012 (JSlider): Fix calculation of value.
6013 * javax/swing/JSplitPane.java: Implement.
6014 * javax/swing/plaf/basic/BasicLookAndFeel.java:
6015 Change SplitPane's default divider size.
6016 * javax/swing/plaf/basic/BasicScrollBarUI.java:
6017 (paint): Remove unused code.
6018 * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
6019 Added comments and ran through jalopy.
6020 (setBasicSplitPaneUI): Get reference to hidden divider
6021 and set up one touch buttons if necessary.
6022 (setBorder): Fire propertyChangeEvent only if
6023 borders are different.
6024 (getPreferredSize): Defer to layout manager.
6025 (propertyChange): Implement.
6026 (oneTouchExpandableChanged): ditto.
6027 (createLeftOneTouchButton): Use BasicArrowButton.
6028 (createRightOneTouchButton): ditto.
6029 (moveDividerTo): New method. Moves the divider
6030 to a set location based on the last divider location.
6031 (BasicSplitPaneDivider::MouseHandler): Implement.
6032 (BasicSplitPaneDivider::OneTouchButton): Removed.
6033 (BasicSplitPaneDivider::DragController): Implement.
6034 (BasicSplitPaneDivider::VerticalDragController):
6035 ditto.
6036 (BasicSplitPaneDivider::DividerLayout): ditto.
6037 * javax/swing/plaf/basic/BasicSplitPaneUI.java: Reimplement.
6038 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
6039 (calculateLayoutInfo): Don't show component if it's
6040 null.
6041 (paintTab): Fix title paint logic.
6042
2140214f
JQ
60432004-05-26 Jerry Quinn <jlquinn@optonline.net>
6044
6045 PR libgcj/8321
6046 * java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
6047 (setStartRule,setEndRule): Don't take abs of day number.
6048 (getOffset): Clarify docs. Add argument checks.
6049 (isBefore): Take abs of day number in DOW_LE_DOM_MODE.
6050 (equals,hasSameRules,toString,readObject): Use startTimeMode and
6051 endTimeMode.
6052 * testsuite/libjava.mauve/xfails
6053 (gnu.testlet.java.util.SimpleTimeZone.check12): XFAIL test 22.
6054
17abdabc
BM
60552004-05-21 Bryce McKinlay <mckinlay@redhat.com>
6056
6057 Layout interfaces during preparation, not initialization.
6058 * java/lang/natClass.cc (initializeClass): Move
6059 _Jv_LayoutInterfaceMethods call...
6060 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.
6061
0fa13661
AG
60622004-05-19 Anthony Green <green@localhost.localdomain>
6063
6064 * Makefile.am (awt_java_source_files): Remove javax.rmi and
6065 gnu.javax.rmi code.
6066 * Makefile.in: Rebuilt.
6067 * javax/rmi/ClassDesc.java, javax/rmi/StubDelegate.java,
6068 javax/rmi/UtilDelegate.java, javax/rmi/Stub.java,
6069 javax/rmi/Util.java, javax/rmi/ObjectImpl.java,
6070 javax/rmi/SystemException.java, javax/rmi/ValueHandler.java,
6071 javax/rmi/PortableRemoteObjectDelegate.java, javax/rmi/Tie.java,
6072 gnu/javax/rmi/CORBA/DelegateFactory.java,
6073 gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
6074 gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
6075 gnu/javax/rmi/CORBA/StubDelegateImpl.java,
6076 gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
6077 gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
6078 gnu/javax/rmi/PortableServer.java: Remove files.
6079
0f22079e
AG
60802004-05-19 Anthony Green <green@redhat.com>
6081
6082 * Makefile.am: Define JAVA_EXT_DIRS.
6083 * Makefile.in: Rebuilt.
6084 * java/lang/natRuntime.cc (insertSystemProperties): Set
6085 java.ext.dirs property.
6086
9152dcf4
MW
60872004-05-16 Mark Wielaard <mark@klomp.org>
6088
6089 * java/io/Writer.java (Writer(Object)): Check for null lock object.
6090
fb0e7ec0
MW
60912004-05-15 Mark Wielaard <mark@klomp.org>
6092
6093 * doc/cni.sgml: Removed, merged into gcj.texi.
6094
85ff6f62
MW
60952004-05-15 Mark Wielaard <mark@klomp.org>
6096
6097 * Makefile.am (ordinary_java_source_files): Add new javax.print
6098 classes.
6099 * Makefile.in: Regenerated.
6100
61012004-05-15 Michael Koch <konqueror@gmx.de>
6102
6103 * javax/print/attribute/standard/DateTimeAtCompleted.java,
6104 javax/print/attribute/standard/DateTimeAtCreation.java,
6105 javax/print/attribute/standard/DateTimeAtProcessing.java,
6106 javax/print/attribute/standard/DocumentName.java,
6107 javax/print/attribute/standard/JobHoldUntil.java,
6108 javax/print/attribute/standard/JobImpressionsCompleted.java,
6109 javax/print/attribute/standard/JobMessageFromOperator.java,
6110 javax/print/attribute/standard/JobName.java,
6111 javax/print/attribute/standard/JobOriginatingUserName.java,
6112 javax/print/attribute/standard/JobPriority.java,
6113 javax/print/attribute/standard/JobPrioritySupported.java,
6114 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6115 javax/print/attribute/standard/OutputDeviceAssigned.java,
6116 javax/print/attribute/standard/PrinterInfo.java,
6117 javax/print/attribute/standard/PrinterLocation.java,
6118 javax/print/attribute/standard/PrinterMakeAndModel.java,
6119 javax/print/attribute/standard/PrinterMessageFromOperator.java,
6120 javax/print/attribute/standard/PrinterName.java,
6121 javax/print/attribute/standard/QueuedJobCount.java,
6122 javax/print/attribute/standard/RequestingUserName.java:
6123 Fixed javadocs all over.
6124
61252004-05-15 Michael Koch <konqueror@gmx.de>
6126
6127 * javax/print/DocFlavor.java,
6128 javax/print/attribute/standard/ColorSupported.java,
6129 javax/print/attribute/standard/Compression.java,
6130 javax/print/attribute/standard/CopiesSupported.java,
6131 javax/print/attribute/standard/Fidelity.java,
6132 javax/print/attribute/standard/Finishings.java,
6133 javax/print/attribute/standard/JobImpressionsSupported.java,
6134 javax/print/attribute/standard/JobKOctetsSupported.java,
6135 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6136 javax/print/attribute/standard/JobSheets.java,
6137 javax/print/attribute/standard/JobState.java,
6138 javax/print/attribute/standard/JobStateReason.java,
6139 javax/print/attribute/standard/JobStateReasons.java,
6140 javax/print/attribute/standard/Media.java,
6141 javax/print/attribute/standard/MediaSizeName.java,
6142 javax/print/attribute/standard/MultipleDocumentHandling.java,
6143 javax/print/attribute/standard/NumberUpSupported.java,
6144 javax/print/attribute/standard/OrientationRequested.java,
6145 javax/print/attribute/standard/PDLOverrideSupported.java,
6146 javax/print/attribute/standard/PageRanges.java,
6147 javax/print/attribute/standard/PresentationDirection.java,
6148 javax/print/attribute/standard/PrintQuality.java,
6149 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6150 javax/print/attribute/standard/PrinterMoreInfo.java,
6151 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6152 javax/print/attribute/standard/PrinterResolution.java,
6153 javax/print/attribute/standard/PrinterState.java,
6154 javax/print/attribute/standard/PrinterStateReason.java,
6155 javax/print/attribute/standard/PrinterStateReasons.java,
6156 javax/print/attribute/standard/PrinterURI.java,
6157 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6158 javax/print/attribute/standard/Severity.java,
6159 javax/print/attribute/standard/SheetCollate.java,
6160 javax/print/attribute/standard/Sides.java:
6161 Added serialVersionUID and removed final keyword where it doenst
6162 belong.
6163
61642004-05-15 Michael Koch <konqueror@gmx.de>
6165
6166 * javax/print/PrintServiceLookup.java: New file.
6167
61682004-05-15 Michael Koch <konqueror@gmx.de>
6169
6170 * javax/print/DocFlavor.java:
6171 Implemented all flavor classes.
6172
61732004-05-15 Michael Koch <konqueror@gmx.de>
6174
6175 * javax/print/attribute/standard/ColorSupported.java,
6176 javax/print/attribute/standard/Compression.java,
6177 javax/print/attribute/standard/CopiesSupported.java,
6178 javax/print/attribute/standard/Fidelity.java,
6179 javax/print/attribute/standard/Finishings.java,
6180 javax/print/attribute/standard/JobImpressionsSupported.java,
6181 javax/print/attribute/standard/JobKOctetsSupported.java,
6182 javax/print/attribute/standard/JobMediaSheetsSupported.java,
6183 javax/print/attribute/standard/JobSheets.java,
6184 javax/print/attribute/standard/JobState.java,
6185 javax/print/attribute/standard/JobStateReason.java,
6186 javax/print/attribute/standard/JobStateReasons.java,
6187 javax/print/attribute/standard/Media.java,
6188 javax/print/attribute/standard/MediaSizeName.java,
6189 javax/print/attribute/standard/MultipleDocumentHandling.java,
6190 javax/print/attribute/standard/NumberUpSupported.java,
6191 javax/print/attribute/standard/OrientationRequested.java,
6192 javax/print/attribute/standard/PDLOverrideSupported.java,
6193 javax/print/attribute/standard/PageRanges.java,
6194 javax/print/attribute/standard/PresentationDirection.java,
6195 javax/print/attribute/standard/PrintQuality.java,
6196 javax/print/attribute/standard/PrinterIsAcceptingJobs.java,
6197 javax/print/attribute/standard/PrinterMoreInfo.java,
6198 javax/print/attribute/standard/PrinterMoreInfoManufacturer.java,
6199 javax/print/attribute/standard/PrinterResolution.java,
6200 javax/print/attribute/standard/PrinterState.java,
6201 javax/print/attribute/standard/PrinterStateReason.java,
6202 javax/print/attribute/standard/PrinterStateReasons.java,
6203 javax/print/attribute/standard/PrinterURI.java,
6204 javax/print/attribute/standard/ReferenceUriSchemesSupported.java,
6205 javax/print/attribute/standard/Severity.java,
6206 javax/print/attribute/standard/SheetCollate.java,
6207 javax/print/attribute/standard/Sides.java: New files.
6208
62092004-05-15 Michael Koch <konqueror@gmx.de>
6210
6211 * javax/print/Doc.java
6212 (getPrintData): Throws IOException.
6213 (getReaderForText): Likewise.
6214 (getStreamForBytes): Likewise.
6215 * javax/print/DocFlavor.java:
6216 Fixed filename in copyright.
6217 (serialVersionUID): New field.
6218 * javax/print/ServiceUIFactory.java:
6219 Made all constants final.
6220 * javax/print/AttributeException.java
6221 javax/print/MultiDoc.java
6222 javax/print/MultiDocPrintJob.java
6223 javax/print/MultiDocPrintService.java
6224 javax/print/StreamPrintService.java
6225 javax/print/URIException.java: New files.
6226 * javax/print/Makefile.am
6227 (EXTRA_DIST): Added all new files.
6228
62292004-05-15 Michael Koch <konqueror@gmx.de>
6230
6231 * javax/print/attribute/standard/Copies.java,
6232 javax/print/attribute/standard/DateTimeAtCompleted.java,
6233 javax/print/attribute/standard/DateTimeAtCreation.java,
6234 javax/print/attribute/standard/DateTimeAtProcessing.java,
6235 javax/print/attribute/standard/DocumentName.java,
6236 javax/print/attribute/standard/JobHoldUntil.java,
6237 javax/print/attribute/standard/JobImpressions.java,
6238 javax/print/attribute/standard/JobImpressionsCompleted.java,
6239 javax/print/attribute/standard/JobKOctets.java,
6240 javax/print/attribute/standard/JobKOctetsProcessed.java,
6241 javax/print/attribute/standard/JobMediaSheets.java,
6242 javax/print/attribute/standard/JobMediaSheetsCompleted.java,
6243 javax/print/attribute/standard/JobMessageFromOperator.java,
6244 javax/print/attribute/standard/JobName.java,
6245 javax/print/attribute/standard/JobOriginatingUserName.java,
6246 javax/print/attribute/standard/JobPriority.java,
6247 javax/print/attribute/standard/JobPrioritySupported.java,
6248 javax/print/attribute/standard/NumberOfDocuments.java,
6249 javax/print/attribute/standard/NumberOfInterveningJobs.java,
6250 javax/print/attribute/standard/NumberUp.java,
6251 javax/print/attribute/standard/OutputDeviceAssigned.java,
6252 javax/print/attribute/standard/PagesPerMinute.java,
6253 javax/print/attribute/standard/PagesPerMinuteColor.java:
6254 Fixed @return tag all over.
6255
62562004-05-15 Michael Koch <konqueror@gmx.de>
6257
6258 * javax/print/attribute/AttributeSetUtilities.java
6259 (verifyCategoryForValue): Fixed typo in javadoc.
6260 * javax/print/attribute/HashAttributeSet.java
6261 (containsKey): Fixed @return tag.
6262 (comtainsValue): Likewise.
6263 (equals): Likewise.
6264 * javax/print/attribute/IntegerSyntax.java
6265 (equals): Likewise.
6266 * javax/print/attribute/ResolutionSyntax.java
6267 (equals): Likewise.
6268 (getCrossFeedResolution): Removed unused code.
6269 (getFeedResolution): Likewise.
6270 * javax/print/attribute/SetOfIntegerSyntax.java
6271 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
6272 (equals): Fixed @return tag.
6273 * javax/print/attribute/TextSyntax.java
6274 (TextSyntax): Take locale into account.
6275 (hashCode): Better implementation.
6276
62772004-05-15 Michael Koch <konqueror@gmx.de>
6278
6279 * javax/print/CancelablePrintJob.java,
6280 javax/print/Doc.java,
6281 javax/print/DocFlavor.java,
6282 javax/print/DocPrintJob.java,
6283 javax/print/FlavorException.java,
6284 javax/print/PrintException.java,
6285 javax/print/PrintService.java,
6286 javax/print/ServiceUIFactory.java: New files.
6287
f437e359
MW
62882004-05-15 Mark Wielaard <mark@klomp.org>
6289
6290 * gnu/regexp/CharIndexedReader.java: Removed.
6291 * gnu/regexp/REFilterReader.java: Likewise.
6292 * gnu/regexp/RETokenLookAhead.java: Likewise.
6293 * Makefile.am (ordinary_java_source_files): Remove above classes.
6294 * Makefile.in: Regenerated.
6295
ae0d0d59
TT
62962004-05-14 Tom Tromey <tromey@redhat.com>
6297
6298 * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
6299 not `XGraphicsConfiguration.XOffScreenImage'.
6300
1cd29ad2
SG
63012004-05-14 Scott Gilbertson <scottg@mantatest.com>
6302
6303 * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
6304
a01a235c
SA
63052004-05-14 Steven Augart <augart@watson.ibm.com>
6306
6307 * include/jni.h (_Jv_func): Removed.
6308 (struct JNINativeInterface): Use `void *' for reserved slots.
6309 (struct JNIInvokeInterface): Likewise.
6310
8f0b9daa
MK
63112004-05-11 Michael Koch <konqueror@gmx.de>
6312
6313 * gnu/java/net/natPlainSocketImplPosix.cc
6314 (read): Fixed typo in expression.
6315
3f68457e
AT
63162004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
6317
6318 * testsuite/lib/libjava.exp (libjava_invoke): Add new argument
6319 ld_library_additions. Adjust all calls to libjava_invoke to match
6320 the new argument.
6321
6322 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
6323 path to cxxflagslist.
6324 Pass path of libstdc++ to libjava_invoke.
6325
6326 * testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
6327 libjava_invoke arguments.
6328
731d47a6
RM
63292004-05-10 Ranjit Mathew <rmathew@hotmail.com>
6330
6331 * testsuite/libjava.jacks/jacks.xfail: Update to reflect the current
6332 reality.
6333
8e31e128
RM
63342004-05-07 Ranjit Mathew <rmathew@gmail.com>
6335
6336 * testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Don't link the
6337 main binary against the JNI shared library.
6338
61af3d86
JQ
63392004-05-07 Jerry Quinn <jlquinn@optonline.net>
6340
6341 * java/util/SimpleTimeZone.java (startTimeMode, endTimeMode,
6342 WALL_TIME, STANDARD_TIME, UTC_TIME): New members.
6343 (SimpleTimeZone): Tweak docs. Add new variation.
6344 (setStartRule,setEndRule): Add new variations. Use
6345 startTimeMode and endTimeMode.
6346
63472004-05-07 Jerry Quinn <jlquinn@optonline.net>
6348
6349 * java/util/Calendar.java (getActualMinimum,
6350 getActualMaximum): Remove abstract. Implement.
6351
579f9640
BM
63522004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6353
6354 Run the jni tests using the interpreter.
6355 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Append
6356 options_cxx to shared lib compile command.
6357 (gcj_jni_test_one): Pass cxxflags to gcj_jni_compile_c_to_so, so
6358 they are used to link the shared lib, not the main binary.
6359 Use libjava_invoke to run gij.
6360
0a215a11
MK
63612004-05-06 Michael Koch <konqueror@gmx.de>
6362
6363 * java/util/logging/Level.java
6364 (parse): Use == instead of String.equals().
6365
e51f7aeb
BM
63662004-05-06 Bryce McKinlay <mckinlay@redhat.com>
6367
6368 * defineclass.cc (_Jv_ClassReader::prepare_pool_entry): Use
6369 verify_field_signature and verify_method_signature, not
6370 _Jv_VerifyFieldSignature and _Jv_VerifyMethodSigntature.
6371 (_Jv_ClassReader::handleField): Likewise.
6372 (_Jv_ClassReader::handleMethod): Likewise.
6373
c8395524
MK
63742004-05-06 Michael Koch <konqueror@gmx.de>
6375
6376 * javax/swing/table/TableColumn.java:
6377 Reformated.
6378
c8b86f1a
MK
63792004-05-06 Michael Koch <konqueror@gmx.de>
6380
6381 * javax/imageio/spi/ImageReaderWriterSpi.java
6382 (ImageReaderWriterSpi): Made it public.
6383 * javax/imageio/stream/ImageInputStream.java:
6384 Clean up imports.
6385
9f2eefb7
MK
63862004-05-06 Michael Koch <konqueror@gmx.de>
6387
6388 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6389 Removed empty line.
6390
45505d4d
MK
63912004-05-06 Michael Koch <konqueror@gmx.de>
6392
6393 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c,
6394 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c:
6395 New files.
6396 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c:
6397 Include gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.h.
6398 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
6399 Moved GtkCheckboxGroupPeer_dispose and GtkCheckboxGroupPeer_remove to
6400 their own source file.
6401 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6402 Moved GtkGenericPeer_dispose and GtkComponentPeer_requestFocus to
6403 their own source file. Removed GtkComponentPeer_gtkWidgetSetUsize.
6404 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
6405 (create): Define variable on top of function.
6406 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
6407 (menu_pos): Prototyped.
6408 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
6409 (setTitle): Removed.
6410 * jni/gtk-peer/gthread-jni.c
6411 (gdk_threads_wake): Removed.
6412 * Makefile.am (gtk_c_source_files): Added new files
6413 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c and
6414 jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c.
6415 * Makefile.in: Regenerated.
6416
74e94435
BM
64172004-05-05 Bryce McKinlay <mckinlay@redhat.com>
6418
6419 * testsuite/libjava.jni/pr11951.java: Add missing System.loadLibrary()
6420 call.
6421
68ea5833
MW
64222004-05-05 Mark Wielaard <mark@klomp.org>
6423
6424 * javax/swing/AbstractButton.java: Replace special HTML entities with
6425 ASCII equivalent.
6426 * javax/swing/DefaultBoundedRangeModel.java: Likewise.
6427 * javax/swing/DefaultButtonModel.java: Likewise.
6428 * javax/swing/DefaultListModel.java: Likewise.
6429 * javax/swing/JList.java: Likewise.
6430 * javax/swing/JSlider.java: Likewise.
6431 * javax/swing/ListModel.java: Likewise.
6432 * javax/swing/Popup.java: Likewise.
6433 * javax/swing/SwingUtilities.java: Likewise.
6434
880fa238
MK
64352004-05-05 Michael Koch <konqueror@gmx.de>
6436
6437 * javax/swing/AbstractButton.java,
6438 javax/swing/ActionMap.java,
6439 javax/swing/DefaultButtonModel.java,
6440 javax/swing/DefaultListModel.java,
6441 javax/swing/ImageIcon.java,
6442 javax/swing/JComboBox.java,
6443 javax/swing/JComponent.java,
6444 javax/swing/JFrame.java,
6445 javax/swing/JInternalFrame.java,
6446 javax/swing/JMenuBar.java,
6447 javax/swing/JMenuItem.java,
6448 javax/swing/JOptionPane.java,
6449 javax/swing/JProgressBar.java,
6450 javax/swing/JRootPane.java,
6451 javax/swing/JScrollBar.java,
6452 javax/swing/JScrollPane.java,
6453 javax/swing/JSeparator.java,
6454 javax/swing/JSlider.java,
6455 javax/swing/JTabbedPane.java,
6456 javax/swing/JTable.java,
6457 javax/swing/JTextField.java,
6458 javax/swing/JToolBar.java,
6459 javax/swing/JToolTip.java,
6460 javax/swing/JTree.java,
6461 javax/swing/JViewport.java,
6462 javax/swing/JWindow.java,
6463 javax/swing/KeyStroke.java,
6464 javax/swing/LookAndFeel.java,
6465 javax/swing/SwingUtilities.java,
6466 javax/swing/Timer.java,
6467 javax/swing/ToolTipManager.java,
6468 javax/swing/UIDefaults.java,
6469 javax/swing/border/TitledBorder.java,
6470 javax/swing/filechooser/FileSystemView.java,
6471 javax/swing/plaf/basic/BasicButtonListener.java,
6472 javax/swing/plaf/basic/BasicButtonUI.java,
6473 javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java,
6474 javax/swing/plaf/basic/BasicGraphicsUtils.java,
6475 javax/swing/plaf/basic/BasicLabelUI.java,
6476 javax/swing/plaf/basic/BasicMenuItemUI.java,
6477 javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java,
6478 javax/swing/plaf/basic/BasicRootPaneUI.java,
6479 javax/swing/plaf/basic/BasicScrollBarUI.java,
6480 javax/swing/plaf/basic/BasicScrollPaneUI.java,
6481 javax/swing/plaf/basic/BasicSliderUI.java,
6482 javax/swing/plaf/basic/BasicTabbedPaneUI.java,
6483 javax/swing/plaf/basic/BasicToggleButtonUI.java,
6484 javax/swing/table/JTableHeader.java,
6485 javax/swing/text/AbstractDocument.java,
6486 javax/swing/text/DefaultCaret.java,
6487 javax/swing/text/StyledEditorKit.java,
6488 javax/swing/tree/DefaultTreeCellEditor.java:
6489 Cleaned up imports.
6490
4a93a226
MK
64912004-05-05 Michael Koch <konqueror@gmx.de>
6492
6493 * java/util/prefs/AbstractPreferences.java
6494 (AbstractPreferences): Added parenthesis for clarity.
6495 Closes classpath bug #7940.
6496
aaec686e
TT
64972004-05-05 Tom Tromey <tromey@redhat.com>
6498
6499 * javax/naming/CompoundName.java (endsWith): Look at correct
6500 element of source name.
6501
b1210ca2
MW
65022004-05-05 Mark Wielaard <mark@klomp.org>
6503
6504 Reported by f.haeglsperger@gmx.de [classpath patch #2485]
6505 * java/util/HashMap.java (rehash): Add entry at start of bucket.
6506
a54f498a
TT
65072004-05-05 Tom Tromey <tromey@redhat.com>
6508
6509 * java/io/BufferedReader.java (skip): Removed unused
6510 variable.
6511
e8430418
MK
65122004-05-05 Michael Koch <konqueror@gmx.de>
6513
6514 * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
6515
f32c742c
DT
65162004-05-05 Dalibor Topic <robilad@kaffe.org>
6517
6518 * java/text/AttributedString.java,
6519 java/text/AttributedStringIterator.java,
6520 java/text/Collator.java,
6521 java/text/DecimalFormatSymbols.java,
6522 java/text/NumberFormat.java,
6523 java/text/RuleBasedCollator.java:
6524 Cleaned up imports.
6525
d70bd7ff
TT
65262004-05-05 Tom Tromey <tromey@redhat.com>
6527
6528 * java/text/Format.java: Cleaned up imports.
6529 * java/text/DecimalFormat.java: Cleaned up imports.
6530 * java/security/SecureRandom.java: Cleaned up imports.
6531 (SecureRandom): Removed unused variable.
6532 * java/security/UnresolvedPermission.java: Cleaned up imports.
6533 * java/util/Date.java (parse): Removed unused variable.
6534 * java/util/ResourceBundle.java: Cleaned up imports.
6535 (getBundle): Removed unused variable.
6536 (tryBundle): Likewise.
6537 * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
6538
2225a42a
GL
65392004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6540
6541 * java/text/SimpleDateFormat.java:
6542 (formatWithAttribute): New method. It implements
6543 the formatting process with attributes.
6544 (format): Use formatWithAttribute.
6545 (formatToCharacterIterator): New method. Use
6546 formatWithAttribute.
6547
1f646142
GL
65482004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6549
6550 * java/text/MessageFormat.java:
6551 (class Field): New class.
6552 (formatToCharacterIterator): New method.
6553 (format): Use formatInternal now.
6554 (formatInternal): New method. String formatter should
6555 be done here (with attributes). Attributes merging supported.
6556 (parse): More documentation.
6557 (getFormatsByArgumentIndex): New method.
6558 (setFormatByArgumentIndex): New method.
6559 (setFormatsByArgumentIndex): New method.
6560
8cf1edb3
GL
65612004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6562
6563 * java/text/DecimalFormat.java
6564 (MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
6565 (applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
6566 (parse): Fixed handling of exponentiation notation and grouping.
6567
65682004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
6569
6570 * java/text/DecimalFormat.java
6571 (scanFix): Build attribute array. Fixed error reporting.
6572 (applyPatternWithSymbols): Store attributes for the prefix and
6573 suffix.
6574 (formatInternal): New method. Changed the way the string is
6575 computed. Implemented attributes. Cleant up rounding in
6576 exponential notation.
6577 (format): Use formatInternal.
6578 (formatToCharacterIterator): New method.
6579 (exponentRound, negativePrefixRanges, positivePrefixRanges,
6580 negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
6581 positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
6582 New fields.
6583
aff9d141
DT
65842004-05-04 Dalibor Topic <robilad@kaffe.org>
6585
6586 * java/security/interfaces/DSAKeyPairGenerator.java,
6587 java/security/interfaces/DSAPrivateKey.java,
6588 java/security/interfaces/DSAPublicKey.java,
6589 java/security/interfaces/RSAPrivateKey.java,
6590 java/security/interfaces/RSAPublicKey.java:
6591 Cleaned up imports.
6592
933522fb
MK
65932004-05-04 Michael Koch <konqueror@gmx.de>
6594
6595 * java/nio/ByteBuffer.java,
6596 java/nio/CharBuffer.java,
6597 java/nio/DoubleBuffer.java,
6598 java/nio/FloatBuffer.java,
6599 java/nio/IntBuffer.java,
6600 java/nio/LongBuffer.java,
6601 java/nio/ShortBuffer.java:
6602 (compareTo): Fixed bogus implementation in all buffer classes.
6603
27c2c3ec
IP
66042004-05-04 Ingo Proetel <proetel@aicas.com>
6605
6606 * java/awt/image/ColorModel.java (getRGBdefault): Default ColorModel has
6607 32 bit pixels not 8 bit pixels.
6608 (isCompatibleRaster): Added javadoc comment.
6609
66102004-05-04 Ingo Proetel <proetel@aicas.com>
6611
6612 * java/awt/image/ComponentSampleModel.java (setDataSamples):Do not reset
6613 scanline stride.
6614
66152004-05-04 Ingo Proetel <proetel@aicas.com>
6616
6617 * java/awt/ColorPaintContext.java (<init>): Added ColorModel to signature.
6618 (getColorModel): Return the actual color model.
6619 (getRaster): Implemented.
6620 (ColorRaster): New inner class.
6621 * java/awt/SystemColor.java (createContext): Use ColorModel when creating
6622 a PaintContext.
6623 * java/awt/Color.java (<init>): Make exception more verbose.
6624 (createContext): Use ColorModel when creating a PaintContext.
6625
a31d9d6c
MK
66262004-05-04 Michael Koch <konqueror@gmx.de>
6627
6628 * gnu/java/text/CharacterBreakIterator.java
6629 (previous): Removed unused variable.
6630
065afdfa
GL
66312004-05-04 Guilhem Lavaux <guilhem@kaffe.org>
6632
6633 * gnu/java/text/FormatBuffer.java,
6634 gnu/java/text/AttributedFormatBuffer.java,
6635 gnu/java/text/StringFormatBuffer.java: New classes to implement
6636 attributed iterators in java.text.
6637 * gnu/java/text/FormatCharacterIterator.java: Moved
6638 from java/text as it is an internal class.
6639 * java/text/FormatCharacterIterator.java: Removed.
6640 * java/text/Format.java:
6641 Import gnu.java.text.FormatCharacterIterator.
6642 * Makefile.am (java_source_files): Added new files.
6643 * Makefile.in: Regenerated.
6644
6645
af62fd12
MW
66462004-05-04 Mark Wielaard <mark@klomp.org>
6647
53c87e49 6648 * gnu/java/nio/channels/FileChannelImpl.java (finalize): New method.
af62fd12 6649
a3c44036
AT
66502004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
6651
6652 * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
6653 * Makefile.in: Rebuilt.
6654
007265b8
MW
66552004-05-03 Mark Wielaard <mark@klomp.org>
6656
6657 * gnu/java/security/der/DERReader.java: Call static methods staticly.
6658 * java/awt/TextComponent.java (select): Use selectionEnd parameter.
6659 * java/net/URL.java
6660 (set(String, String, int, String, String, String, String, String)):
6661 Assign this.file to path or path + "?" + query.
6662 * java/util/Arrays.java: Call static methods staticly.
6663 * java/util/zip/ZipEntry.java: Likewise.
6664 * javax/swing/plaf/basic/BasicArrowButton.java (setDirection): Assign
6665 dir to this.direction.
6666 * javax/swing/table/DefaultTableCellRenderer.java (noFocusBorder):
6667 Assign static field only once.
6668 (DefaultTableCellRenderer): Don't reassign noFocusBorder each time.
6669
a00d3b3c
MW
66702004-05-03 Mark Wielaard <mark@klomp.org>
6671
6672 * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java (minimumSize): Removed
6673 unused variables hScrollbarHeight and vScrollbarWidth.
6674 (preferredSize): Likewise.
6675 * gnu/java/security/provider/DSAParameters.java (engineToString):
6676 Removed unused call to System.getProperty("line.seperator");
6677 * java/security/Security.java (loadProviders): Return result.
6678
7b68f0bf
TT
66792004-05-03 Tom Tromey <tromey@redhat.com>
6680
6681 * java/net/URLStreamHandler.java (toExternalForm): Removed
6682 unused variables.
6683 unused constructor.
6684 * java/math/BigDecimal.java (divide): Removed unused variable.
6685 * java/lang/Throwable.java: Cleaned up imports.
6686 * java/lang/ClassLoader.java: Cleaned up imports.
6687 * java/io/FilePermission.java (implies): Removed unused
6688 variable.
6689 * java/awt/TextComponent.java: Removed unused import.
6690 * gnu/java/util/prefs/NodeReader.java: Cleaned up imports.
6691 * gnu/java/util/DoubleEnumeration.java: Removed unused import.
6692 * gnu/java/text/WordBreakIterator.java: Removed unused import.
6693 * gnu/java/text/SentenceBreakIterator.java: Removed unused
6694 import.
6695 * gnu/java/text/LineBreakIterator.java: Removed unused import.
6696 * gnu/java/text/CharacterBreakIterator.java: Removed
6697 unused import.
6698 * gnu/java/security/provider/DSAKeyPairGenerator.java:
6699 Cleaned up imports.
6700 * gnu/java/security/der/DERWriter.java: Cleaned up imports.
6701 * gnu/java/nio/charset/UTF_16Decoder.java (put): Removed
6702 unused method.
6703 * gnu/java/nio/SocketChannelImpl.java: Cleaned up imports.
6704 * gnu/java/nio/FileLockImpl.java: Cleaned up imports.
6705 * gnu/java/io/Base64InputStream.java: Cleaned up imports.
6706 * gnu/java/beans/info/ComponentBeanInfo.java: Cleaned up imports.
6707 * gnu/classpath/ServiceFactory.java: Cleaned up imports.
6708 (lookupProviders): Removed unused variable.
6709 (loadNextServiceProvider): Likewise.
6710 * gnu/java/beans/BeanInfoEmbryo.java: Cleaned up imports.
6711
493b3c9c
MK
67122004-05-03 Michael Koch <konqueror@gmx.de>
6713
6714 Fixes PR libgcj/14695:
6715 * java/net/NetworkInterface.java
6716 (getByName): Return null when no interface was found.
6717
55ce9c52
RM
67182004-04-30 Ranjit Mathew <rmathew@hotmail.com>
6719 Tom Tromey <tromey@redhat.com>
6720
6721 * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use
6722 additional option "-Wmissing-prototypes" for compiling C sources.
6723 Print actual filename for pass/fail rather than $name.c.
6724 * testsuite/libjava.jni/PR15133.java: New testcase file.
6725 * testsuite/libjava.jni/PR15133.c: Likewise.
6726 * testsuite/libjava.jni/PR15133.out: Likewise.
6727
2d99c042
RS
67282004-04-30 Roger Sayle <roger@eyesopen.com>
6729
6730 * testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
6731 ceil and floor.
6732
c1fcbbc3
RM
67332004-04-25 Ranjit Mathew <rmathew@hotmail.com>
6734
6735 * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly
6736 limit the maximum heap size to avoid unnecessary thrashing.
6737
6f0b1fa5
JQ
67382004-04-24 Jerry Quinn <jlquinn@optonline.net>
6739
6740 * java/text/CollationElementIterator.java (reset): Reset
6741 lookahead variables.
6742
99a88816
MW
67432004-04-23 Mark Wielaard <mark@klomp.org>
6744
6745 * jni/classpath/jcl.c: Changed C++ comments into C comments.
6746
b4e7ef8d
DT
67472004-04-23 Dalibor Topic <robilad@kaffe.org>
6748
6749 * java/sql/DriverManager.java:
6750 Cleaned up imports.
6751
e9d34968
MK
67522004-04-23 Michael Koch <konqueror@gmx.de>
6753
6754 * java/net/URL.java
6755 (hashcode): Don't initialize with default value explicitely.
6756 (getContent): Removed redundant "final" keyword.
6757 (openStream): Likewise.
6758 (getURLStreamHandler): Fixed coding style.
6759 * java/net/URLConnection.java
6760 (defaultAllowUserInteraction): Don't initialize with default value
6761 explicitely.
6762 (connected): Likewise.
6763 (doOutput): Likewise.
6764 (ifModifiedSince): Likewise.
6765 (dateformats_initialized): Likewise.
6766 (setURLStreamHander): Use StreamTokenizer where it belongs to.
6767
87939d70
MK
67682004-04-23 Michael Koch <konqueror@gmx.de>
6769
6770 * gnu/java/nio/channels/FileChannelImpl.java
6771 (SET, CUR): Unused, removed.
6772 (read): Implement here directly.
6773 (implRead): Removed.
6774 (write): Implement here directly.
6775 (implWrite): Removed.
6776
5d837a58
DT
67772004-04-23 Dalibor Topic <robilad@kaffe.org>
6778
6779 * javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
6780 javax/rmi/CORBA/Stub.java,
6781 javax/rmi/CORBA/Util.java,
6782 javax/rmi/CORBA/ValueHandler.java,
6783 javax/rmi/CORBA/ValueHandler.java,
6784 javax/rmi/PortableRemoteObject.java:
6785 Cleaned up imports.
6786
ace7ed7c
DT
67872004-04-23 Dalibor Topic <robilad@kaffe.org>
6788
6789 * java/util/jar/JarFile.java,
6790 java/util/jar/JarInputStream.java,
6791 java/util/jar/JarOutputStream.java,
6792 java/util/jar/Manifest.java:
6793 Cleaned up imports.
6794
67952004-04-23 Dalibor Topic <robilad@kaffe.org>
6796
6797 * java/util/ArrayList.java,
6798 java/util/Calendar.java,
6799 java/util/Currency.java,
6800 java/util/HashMap.java,
6801 java/util/HashSet.java,
6802 java/util/Hashtable.java,
6803 java/util/LinkedList.java,
6804 java/util/Properties.java,
6805 java/util/PropertyPermission.java,
6806 java/util/TimeZone.java,
6807 java/util/TreeMap.java,
6808 java/util/TreeSet.java,
6809 java/util/Vector.java,
6810 java/util/WeakHashMap.java:
6811 Cleaned up imports.
6812
68132004-04-23 Dalibor Topic <robilad@kaffe.org>
6814
6815 * java/util/logging/FileHandler.java,
6816 java/util/logging/Formatter.java,
6817 java/util/logging/Handler.java,
6818 java/util/logging/Logger.java,
6819 java/util/logging/SimpleFormatter.java,
6820 java/util/logging/XMLFormatter.java:
6821 Cleaned up imports.
6822
ae522139
MW
68232004-04-22 Mark Wielaard <mark@klomp.org>
6824
6825 * Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
6826 -Wno-long-long flags variable.
6827 (gtk_c_files): Use PEDANTIC_CFLAGS.
6828 * Makefile.in: Regenerated.
6829
838a4849
MK
68302004-04-22 Mark Wielaard <mark@klomp.org>
6831
6832 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
6833 Changed C++ comments into C comments.
6834 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c:
6835 Likewise.
6836
68372004-04-22 Michael Koch <konqueror@gmx.de>
6838
6839 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c:
6840 Merged copyright year with GNU classpath.
6841
fe2235d1
DT
68422004-04-22 Dalibor Topic <robilad@kaffe.org>
6843
6844 * javax/security/auth/x500/X500Principal.java:
6845 Cleaned up imports.
6846
b7db3d0a
DT
68472004-04-22 Dalibor Topic <robilad@kaffe.org>
6848
6849 * javax/swing/JSlider.java:
6850 Fixed HTML tags in comments.
6851
32bfc773
DT
68522004-04-22 Dalibor Topic <robilad@kaffe.org>
6853
6854 * javax/accessibility/AccessibleText.java:
6855 Cleaned up imports.
6856
e930d01a
MK
68572004-04-22 Jeroen Frijters <jeroen@sumatra.nl>
6858
6859 * java/net/URLStreamHandler.java
6860 (parseURL): Convert the file path to using '/' instead of native
6861 file separator.
6862
68632004-04-22 Guilhem Lavaux <guilhem@kaffe.org>
6864
6865 * java/net/URL.java
6866 (userInfo): New field.
6867 (URL): Set authority to the right value.
6868 (setURL): Fixed authority and file initialization.
6869 * java/net/URLStreamHandler.java
6870 (parseURL): Take care of the query tag. Build authority.
6871 (toExternalForm): Fixed URL building using authority.
6872
5d79367d
MK
68732004-04-22 Michael Koch <konqueror@gmx.de>
6874
6875 * java/net/Socket.java
6876 (impl): Made package-private.
6877 * java/net/ServerSocket.java
6878 (implAccept): Access Socket.impl field directly.
6879
c0dce235
DT
68802004-04-22 Dalibor Topic <robilad@kaffe.org>
6881
6882 * java/util/prefs/Preferences.java,
6883 java/util/prefs/InvalidPreferencesFormatException.java,
6884 java/util/prefs/BackingStoreException.java,
6885 java/util/prefs/AbstractPreferences.java:
6886 Cleaned up imports.
6887
68882004-04-22 Dalibor Topic <robilad@kaffe.org>
6889
6890 * java/util/regex/Matcher.java,
6891 java/util/regex/Pattern.java:
6892 Cleaned up imports.
6893
5c09d725
MK
68942004-04-22 Michael Koch <konqueror@gmx.de>
6895
6896 * java/nio/charset/IllegalCharsetNameException.java
6897 (charsetName): Made private.
6898 (IllegalCharsetNameException): Added @param tag to javadoc.
6899 (getCharsetName): Added @return tag to javadoc.
6900 * java/nio/charset/MalformedInputException.java
6901 (MalformedInputException): Added @param tag to javadoc.
6902 (getInputLength): Revised method description, added @return tag.
6903 (getMessage): Added @return tag.
6904
83ef3f2b
JQ
69052004-04-22 Jerry Quinn <jlquinn@optonline.net>
6906
6907 * java/awt/Font.java (deriveFont): Implement missing variants.
6908 * gnu/java/awt/peer/ClasspathFontPeer.java (deriveFont): Implement
6909 missing variants.
6910
746ecc78
BM
69112004-04-21 Bryce McKinlay <mckinlay@redhat.com>
6912
6913 * java/lang/natClass.cc (_Jv_LayoutInterfaceMethods): New method.
6914 Set method->index values for interface methods to their itable index.
6915 (initializeClass): Call _Jv_LayoutInterfaceMethods.
6916
86a80fc3
MK
69172004-04-21 Michael Koch <konqueror@gmx.de>
6918
6919 * java/nio/DirectByteBufferImpl.java
6920 (shiftDown): Made static, give address as argument and
6921 provide a convenience method that overwrites shiftDown in
6922 ByteBufferImpl and calls the native shiftDown.
6923 * java/nio/MappedByteBufferImpl.java
6924 (): Use optimized method in DirectByteBufferImpl.
6925 * java/nio/natDirectByteBufferImpl.cc
6926 (shiftDown): Changed method signature. Removed usage of array_offset.
6927
6e90ed19
MK
69282004-04-21 Michael Koch <konqueror@gmx.de>
6929
6930 * gnu/java/net/natPlainSocketImplPosix.cc
6931 (SocketInputStream::read): Make sure returned data is a byte value.
6932
96d22b12
MK
69332004-04-21 Michael Koch <konqueror@gmx.de>
6934
6935 * gnu/classpath/ServiceFactory.java,
6936 gnu/classpath/ServiceProviderLoadingAction.java,
6937 javax/imageio/ImageReader.java,
6938 javax/imageio/ImageTranscoder.java,
6939 javax/imageio/ImageWriter.java,
6940 javax/imageio/package.html,
6941 javax/imageio/spi/IIOServiceProvider.java,
6942 javax/imageio/spi/ImageInputStreamSpi.java,
6943 javax/imageio/spi/ImageOutputStreamSpi.java,
6944 javax/imageio/spi/ImageReaderWriterSpi.java,
6945 javax/imageio/spi/ImageTranscoderSpi.java,
6946 javax/imageio/spi/RegisterableService.java,
6947 javax/imageio/spi/ServiceRegistry.java,
6948 javax/imageio/spi/package.html,
6949 javax/imageio/stream/IIOByteBuffer.java,
6950 javax/imageio/stream/ImageInputStream.java,
6951 javax/imageio/stream/ImageOutputStream.java,
6952 javax/imageio/stream/package.html:
6953 New files.
6954 * Makefile.am
6955 (ordinary_java_source_files): Added
6956 gnu/classpath/ServiceFactory.java and
6957 gnu/classpath/ServiceProviderLoadingAction.java.
6958 (javax_source_files): Added
6959 javax/imageio/ImageReader.java,
6960 javax/imageio/ImageTranscoder.java,
6961 javax/imageio/ImageWriter.java,
6962 javax/imageio/spi/IIOServiceProvider.java,
6963 javax/imageio/spi/ImageInputStreamSpi.java,
6964 javax/imageio/spi/ImageOutputStreamSpi.java,
6965 javax/imageio/spi/ImageReaderWriterSpi.java,
6966 javax/imageio/spi/ImageTranscoderSpi.java,
6967 javax/imageio/spi/RegisterableService.java,
6968 javax/imageio/spi/ServiceRegistry.java,
6969 javax/imageio/stream/IIOByteBuffer.java,
6970 javax/imageio/stream/ImageInputStream.java and
6971 javax/imageio/stream/ImageOutputStream.java.
6972 * Makefile.in: Regenerated.
6973
ca17d211
MK
69742004-04-21 Michael Koch <konqueror@gmx.de>
6975
6976 * java/util/Properties.java
6977 (load): Fix wrongly merged fix.
6978
60e957d0
MW
69792004-04-21 Mark Wielaard <mark@klomp.org>
6980
6981 * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
6982 malloc and free buf.
6983
27dd18cf
DT
69842004-04-21 Dalibor Topic <robilad@kaffe.org>
6985
6986 * javax/naming/AuthenticationException.java,
6987 javax/naming/AuthenticationNotSupportedException.java,
6988 javax/naming/CannotProceedException.java,
6989 javax/naming/CommunicationException.java,
6990 javax/naming/CompoundName.java,
6991 javax/naming/ConfigurationException.java,
6992 javax/naming/ContextNotEmptyException.java,
6993 javax/naming/InitialContext.java,
6994 javax/naming/InsufficientResourcesException.java,
6995 javax/naming/InterruptedNamingException.java,
6996 javax/naming/LimitExceededException.java,
6997 javax/naming/LinkException.java,
6998 javax/naming/LinkLoopException.java,
6999 javax/naming/LinkRef.java,
7000 javax/naming/MalformedLinkException.java,
7001 javax/naming/Name.java,
7002 javax/naming/NameAlreadyBoundException.java,
7003 javax/naming/NameNotFoundException.java,
7004 javax/naming/NamingSecurityException.java,
7005 javax/naming/NoInitialContextException.java,
7006 javax/naming/NoPermissionException.java,
7007 javax/naming/NotContextException.java,
7008 javax/naming/PartialResultException.java,
7009 javax/naming/ReferralException.java,
7010 javax/naming/ServiceUnavailableException.java,
7011 javax/naming/SizeLimitExceededException.java,
7012 javax/naming/TimeLimitExceededException.java,
7013 javax/naming/directory/Attribute.java,
7014 javax/naming/directory/Attributes.java,
7015 javax/naming/directory/SearchResult.java,
7016 javax/naming/event/NamingExceptionEvent.java,
7017 javax/naming/spi/ResolveResult.java:
7018 Cleaned up imports.
7019
2635995a
MW
70202004-04-21 Mark Wielaard <mark@klomp.org>
7021
7022 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c:
7023 Changed C++ comments into C comments. Removed commented out code.
7024 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
7025 Likewise.
7026 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:
7027 Likewise.
7028 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c:
7029 Likewise.
7030 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c:
7031 Likewise.
7032 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
7033 Likewise.
7034 * native/jni/gtk-peer/gthread-jni.c:
7035 Likewise.
7036
1c3d6bb2
MW
70372004-04-21 Mark Wielaard <mark@klomp.org>
7038
7039 * javax/awt/JFrame.java: Implement WindowConstants. Remove final
7040 static fields defined in interface.
7041 * javax/awt/JDialog.java: Likewise.
7042 (JDialog): Make constructors public.
7043 (getDefaultCloseOperation): Make public.
7044 (processWindowEvent): Call System.exit(0) when EXIT_ON_CLOSE set.
7045 (setDefaultCloseOperation): Make public. Check argument. Add API doc.
7046 * javax/swing/JViewport.java (JViewport): Make constructor public.
7047
387fa012
MK
70482004-04-21 Michael Koch <konqueror@gmx.de>
7049
7050 * java/util/Map.java
7051 (Entry): Removed redundant "static" modifier.
7052 * java/text/AttributedCharacterIterator.java:
7053 Updated copyright year.
7054
bf9f06ae
MK
70552004-04-20 Michael Koch <konqueror@gmx.de>
7056
7057 * javax/naming/directory/SearchControls.java:
7058 Don't explicitely extend java.lang.Object.
7059 * javax/naming/spi/DirStateFactory.java:
7060 Merged copyright year with GNU classpath.
7061
8a6c1d29
MK
70622004-04-20 Michael Koch <konqueror@gmx.de>
7063
7064 * java/nio/channels/Channels.java:
7065 Merged coding style with GNU classpath.
7066
f5874634
MK
70672004-04-20 Michael Koch <konqueror@gmx.de>
7068
7069 * java/net/ServerSocket.java
7070 Merged coding style from GNU classpath.
7071
90cb5151
MK
70722004-04-20 Michael Koch <konqueror@gmx.de>
7073
7074 * java/io/BufferedWriter.java:
7075 Reordered variables to be at top of the class.
7076 (localFlush): Removed redundant final keyword.
7077
5ede96a4
IP
70782004-04-20 Ingo Proetel <proetel@aicas.com>
7079
7080 * java/awt/event/MouseEvent.java (<init>): fixed field assignment
7081
391d8ef5
MK
70822004-04-20 Jeroen Frijters <jeroen@frijters.net>
7083
7084 * java/text/DecimalFormat.java (scanFix): Removed suffix check
7085 for percent and permill check.
7086
70872004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7088
7089 * java/text/FieldPosition.java
7090 (FieldPosition) Constructor now behaves as it should according
7091 to the java documentation.
7092
70932004-04-20 Mark Wielaard <mark@klomp.org>
7094
7095 * java/util/Properties.java: Use the word umlaut, not &auml; in api
7096 documentation.
7097
92e1fe67
MK
70982004-04-20 Michael Koch <konqueror@gmx.de>
7099
7100 * java/nio/Buffer.java,
7101 java/nio/channels/AlreadyConnectedException.java,
7102 java/nio/channels/AsynchronousCloseException.java,
7103 java/nio/channels/ByteChannel.java,
7104 java/nio/channels/CancelledKeyException.java,
7105 java/nio/channels/Channel.java,
7106 java/nio/channels/Channels.java,
7107 java/nio/channels/ClosedByInterruptException.java,
7108 java/nio/channels/ClosedChannelException.java,
7109 java/nio/channels/ClosedSelectorException.java,
7110 java/nio/channels/ConnectionPendingException.java,
7111 java/nio/channels/DatagramChannel.java,
7112 java/nio/channels/FileChannel.java,
7113 java/nio/channels/FileLock.java,
7114 java/nio/channels/FileLockInterruptionException.java,
7115 java/nio/channels/GatheringByteChannel.java,
7116 java/nio/channels/IllegalBlockingModeException.java,
7117 java/nio/channels/IllegalSelectorException.java,
7118 java/nio/channels/InterruptibleChannel.java,
7119 java/nio/channels/NoConnectionPendingException.java,
7120 java/nio/channels/NonReadableChannelException.java,
7121 java/nio/channels/NonWritableChannelException.java,
7122 java/nio/channels/NotYetBoundException.java,
7123 java/nio/channels/NotYetConnectedException.java,
7124 java/nio/channels/OverlappingFileLockException.java,
7125 java/nio/channels/Pipe.java,
7126 java/nio/channels/ReadableByteChannel.java,
7127 java/nio/channels/ScatteringByteChannel.java,
7128 java/nio/channels/SelectableChannel.java,
7129 java/nio/channels/SelectionKey.java,
7130 java/nio/channels/Selector.java,
7131 java/nio/channels/ServerSocketChannel.java,
7132 java/nio/channels/SocketChannel.java,
7133 java/nio/channels/UnresolvedAddressException.java,
7134 java/nio/channels/UnsupportedAddressTypeException.java,
7135 java/nio/channels/WritableByteChannel.java,
7136 java/nio/channels/spi/AbstractInterruptibleChannel.java,
7137 java/nio/channels/spi/AbstractSelectableChannel.java,
7138 java/nio/channels/spi/AbstractSelectionKey.java,
7139 java/nio/channels/spi/AbstractSelector.java,
7140 java/nio/channels/spi/SelectorProvider.java,
7141 java/nio/charset/spi/CharsetProvider.java:
7142 Fixed javadocs and jalopied all over java.nio.
7143
08c5d757
MK
71442004-04-20 Michael Koch <konqueror@gmx.de>
7145
7146 * java/nio/ByteBufferImpl.java,
7147 java/nio/CharBufferImpl.java,
7148 java/nio/DirectByteBufferImpl.java,
7149 java/nio/DoubleBufferImpl.java,
7150 java/nio/DoubleViewBufferImpl.java,
7151 java/nio/FloatBufferImpl.java,
7152 java/nio/FloatViewBufferImpl.java,
7153 java/nio/IntBufferImpl.java,
7154 java/nio/IntViewBufferImpl.java,
7155 java/nio/LongBufferImpl.java,
7156 java/nio/LongViewBufferImpl.java,
7157 java/nio/MappedByteBufferImpl.java,
7158 java/nio/ShortBufferImpl.java,
7159 java/nio/ShortViewBufferImpl.java:
7160 Made sure all classes are final and removed final keyword from all
7161 methods.
7162
a17c9f2e
MK
71632004-04-20 Michael Koch <konqueror@gmx.de>
7164
7165 * java/rmi/MarshalledObject.java,
7166 java/rmi/Naming.java,
7167 java/rmi/RemoteException.java,
7168 java/rmi/activation/ActivationException.java,
7169 java/rmi/server/ServerCloneException.java,
7170 java/security/AccessController.java,
7171 java/security/AlgorithmParameterGenerator.java,
7172 java/security/AlgorithmParameters.java,
7173 java/security/CodeSource.java,
7174 java/security/Identity.java,
7175 java/security/IdentityScope.java,
7176 java/security/KeyPairGenerator.java,
7177 java/security/KeyStore.java,
7178 java/security/Security.java,
7179 java/security/Signature.java,
7180 java/security/SignatureSpi.java,
7181 java/security/SignedObject.java,
7182 java/security/spec/DSAParameterSpec.java,
7183 java/security/spec/DSAPrivateKeySpec.java,
7184 java/security/spec/DSAPublicKeySpec.java,
7185 java/sql/Array.java,
7186 java/sql/DatabaseMetaData.java,
7187 java/sql/ResultSet.java,
7188 java/text/ChoiceFormat.java,
7189 java/text/CollationElementIterator.java,
7190 java/text/CollationKey.java,
7191 java/text/Collator.java,
7192 java/text/DateFormat.java,
7193 java/text/DateFormatSymbols.java,
7194 java/text/DecimalFormatSymbols.java,
7195 java/text/Format.java,
7196 java/text/ParsePosition.java,
7197 java/text/RuleBasedCollator.java,
7198 java/text/SimpleDateFormat.java,
7199 java/text/StringCharacterIterator.java,
7200 java/util/Collections.java,
7201 java/util/PropertyResourceBundle.java,
7202 java/util/ResourceBundle.java,
7203 java/util/StringTokenizer.java,
7204 java/util/jar/Attributes.java,
7205 java/util/logging/ConsoleHandler.java,
7206 java/util/logging/LogManager.java,
7207 java/util/logging/MemoryHandler.java,
7208 java/util/logging/SocketHandler.java,
7209 javax/naming/NamingException.java:
7210 Fixed javadoc, coding style and argument names all over.
7211
0fc920c8
MK
72122004-04-20 Jeroen Frijters <jeroen@frijters.net>
7213
7214 * java/io/FileDescriptor.java: (FileDescriptor) Added public
7215 constructor. (valid) Added null check.
7216
72172004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
7218
7219 Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com>
7220 * java/io/FileOutputStream.java
7221 (FileOutputStream) Reorganized constructors. Constructors now
7222 check whether the given path is directory.
7223
f6d49f66
MK
72242004-04-20 Michael Koch <konqueror@gmx.de>
7225
7226 * java/net/Authenticator.java,
7227 java/net/BindException.java,
7228 java/net/ConnectException.java,
7229 java/net/ContentHandler.java,
7230 java/net/ContentHandlerFactory.java,
7231 java/net/DatagramPacket.java,
7232 java/net/DatagramSocket.java,
7233 java/net/DatagramSocketImpl.java,
7234 java/net/DatagramSocketImplFactory.java,
7235 java/net/FileNameMap.java,
7236 java/net/HttpURLConnection.java,
7237 java/net/Inet4Address.java,
7238 java/net/Inet6Address.java,
7239 java/net/InetAddress.java,
7240 java/net/InetSocketAddress.java,
7241 java/net/JarURLConnection.java,
7242 java/net/MalformedURLException.java,
7243 java/net/MulticastSocket.java,
7244 java/net/NetPermission.java,
7245 java/net/NetworkInterface.java,
7246 java/net/NoRouteToHostException.java,
7247 java/net/PasswordAuthentication.java,
7248 java/net/PortUnreachableException.java,
7249 java/net/ProtocolException.java,
7250 java/net/ServerSocket.java,
7251 java/net/Socket.java,
7252 java/net/SocketAddress.java,
7253 java/net/SocketException.java,
7254 java/net/SocketImpl.java,
7255 java/net/SocketImplFactory.java,
7256 java/net/SocketOptions.java,
7257 java/net/SocketPermission.java,
7258 java/net/SocketTimeoutException.java,
7259 java/net/URI.java,
7260 java/net/URISyntaxException.java,
7261 java/net/URL.java,
7262 java/net/URLClassLoader.java,
7263 java/net/URLConnection.java,
7264 java/net/URLDecoder.java,
7265 java/net/URLEncoder.java,
7266 java/net/URLStreamHandler.java,
7267 java/net/URLStreamHandlerFactory.java,
7268 java/net/UnknownHostException.java,
7269 java/net/UnknownServiceException.java:
7270 Fixed javadocs, coding style and argument names all over.
7271
cf6f7d55
MK
72722004-04-20 Michael Koch <konqueror@gmx.de>
7273
7274 * java/lang/Byte.java,
7275 java/lang/CharSequence.java,
7276 java/lang/ClassLoader.java,
7277 java/lang/Compiler.java,
7278 java/lang/Double.java,
7279 java/lang/Float.java,
7280 java/lang/Integer.java,
7281 java/lang/Long.java,
7282 java/lang/Math.java,
7283 java/lang/Number.java,
7284 java/lang/Package.java,
7285 java/lang/Runtime.java,
7286 java/lang/RuntimePermission.java,
7287 java/lang/SecurityManager.java,
7288 java/lang/Short.java,
7289 java/lang/StringBuffer.java,
7290 java/lang/System.java,
7291 java/lang/ThreadGroup.java,
7292 java/lang/Throwable.java,
7293 java/lang/reflect/InvocationHandler.java,
7294 java/lang/reflect/Proxy.java:
7295 Fixed javadocs, coding style and argument names all over.
7296
9f714d5e
MK
72972004-04-20 Michael Koch <konqueror@gmx.de>
7298
7299 * java/io/BufferedWriter.java,
7300 java/io/ByteArrayInputStream.java,
7301 java/io/CharArrayWriter.java,
7302 java/io/DataInput.java,
7303 java/io/DataInputStream.java,
7304 java/io/File.java,
7305 java/io/FilterInputStream.java,
7306 java/io/InputStream.java,
7307 java/io/InputStreamReader.java,
7308 java/io/ObjectInputStream.java,
7309 java/io/ObjectStreamClass.java,
7310 java/io/PipedInputStream.java,
7311 java/io/PipedReader.java,
7312 java/io/PushbackInputStream.java,
7313 java/io/PushbackReader.java,
7314 java/io/RandomAccessFile.java,
7315 java/io/SerializablePermission.java,
7316 java/io/StreamTokenizer.java,
7317 java/io/StringWriter.java,
7318 java/io/WriteAbortedException.java,
7319 java/io/Writer.java:
7320 Fixed javadocs all over, rename arguments to match javadocs,
7321 fixed coding style.
7322
23f0ecff
MK
73232004-04-20 Ingo Proetel <proetel@aicas.com>
7324
7325 * java/awt/FontMetrics.java:
7326 (charsWidth): fixed accumulation of total_width
7327 (getWidth): simple default implementation
7328 * java/awt/Polygon.java (getBoundingBox): Use correct y-coordinate
7329 in Rectangle constructor.
7330 * java/awt/image/Raster.java (toString): Added method.
7331 * java/awt/image/SampleModel.java (<init>): Added error cause
7332 information to thrown exception.
7333 * java/awt/image/SinglePixelPackedSampleModel.java (getDataElements):
7334 New method.
7335 (setDataElements): New method.
7336 (setPixels): New method.
7337 (toString): New method.
7338
73392004-04-20 Sascha Brawer <brawer@dandelis.ch>
7340
7341 * java/awt/image/ComponentColorModel.java
7342 (createCompatibleSampleModel): Return PixelInterleavedSampleModel
7343 for TYPE_BYTE and TYPE_USHORT transferTypes, in order to pass the
7344 Mauve tests on this method. Improved documentation.
7345
2c4d54e6
MK
73462004-04-20 Michael Koch <konqueror@gmx.de>
7347
7348 * javax/swing/JLayeredPane.java,
7349 javax/swing/plaf/BorderUIResource.java,
7350 javax/swing/plaf/ComponentUI.java,
7351 javax/swing/undo/CompoundEdit.java,
7352 javax/swing/undo/StateEdit.java:
7353 Fixed HTML tags in javadocs all over.
7354
5589f3e5
MK
73552004-04-20 Michael Koch <konqueror@gmx.de>
7356
7357 * javax/print/attribute/EnumSyntax.java
7358 (getOffset): Made protected.
7359 * javax/print/attribute/HashAttributeSet.java
7360 (HashAttributeSet): Likewise.
7361 * javax/print/attribute/ResolutionSyntax.java
7362 (getFeedResolution): Fixed typo in exception name.
7363 (getCrossFeedResolution): Likewise.
7364 * javax/print/attribute/SetOfIntegerSyntax.java
7365 (SetOfIntegerSyntax): Fixed HTML entities in javadoc.
7366 * javax/print/attribute/TextSyntax.java
7367 (TextSyntax): Handle locale correctly.
7368 (hashCode): Calc better hashcode value.
7369 (equals): Fixed @return tag.
7370 (toString): New method.
7371
0150fc22
MK
73722004-04-20 Michael Koch <konqueror@gmx.de>
7373
7374 * gnu/java/nio/FileLockImpl.java
7375 (static): Removed, not needed anymore.
7376 * gnu/java/nio/channels/FileChannelImpl.java
7377 (FileChannelImpl): Made final.
7378 (mode): Made private.
7379 (READ, WRITE, APPEND): Made public.
7380 (EXCL, SYNC, DSYNC): Likewise.
7381 (static): Load native JNI library, when needed.
7382 (length): Unused, removed.
7383 (available): Made public.
7384 (implPosition): Throws IOException.
7385 (seek): Likewise.
7386 (implTruncate): Likewise.
7387 (unlock): Likewise.
7388 (lock): Likewise.
7389
7431acbe
MK
73902004-04-20 Michael Koch <konqueror@gmx.de>
7391
7392 * java/awt/AWTPermission.java,
7393 java/awt/Component.java,
7394 java/awt/ComponentOrientation.java,,
7395 java/awt/Dialog.java,
7396 java/awt/FontMetrics.java,
7397 java/awt/Graphics.java,
7398 java/awt/datatransfer/DataFlavor.java,
7399 java/beans/Introspector.java,
7400 java/beans/PropertyEditor.java,
7401 java/beans/PropertyEditorManager.java,
7402 java/beans/beancontext/BeanContextServiceProvider.java:
7403 Fixed HTML tags in javadocs all over.
7404
7f6f517f
MW
74052004-04-20 Mark Wielaard <mark@klomp.org>
7406
7407 * gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
7408 MissingResourceException is thrown.
7409 * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
7410 null when a MissingResourceException is thrown. Should never happen.
7411
8ecb0346
MK
74122004-04-20 Sascha Brawer <brawer@dandelis.ch>
7413
7414 * java/awt/image/DataBufferShort.java,
7415 java/awt/image/DataBufferFloat.java,
7416 java/awt/image/DataBufferDouble.java,
7417 java/awt/image/PixelInterleavedSampleModel.java: New files.
7418 * gnu/java/awt/Buffers.java (createBuffer, createBufferFromData,
7419 getData): Added support for TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE.
7420
74212004-04-20 Michael Koch <konqueror@gmx.de>
7422
7423 * Makefile.am (java_source_files): Added
7424 java/awt/image/DataBufferDouble.java,
7425 java/awt/image/DataBufferFloat.java,
7426 java/awt/image/DataBufferShort.java and
7427 java/awt/image/PixelInterleavedSampleModel.java.
7428 * Makefile.in: Regenerated.
7429
f5310108
BM
74302004-04-19 Bryce McKinlay <mckinlay@redhat.com>
7431
7432 * gcj/cni.h (JvAllocObject): Remove these obsolete,
7433 undocumented CNI calls.
7434 * include/java-interp.h (_Jv_InterpClass): No longer
7435 extends java.lang.Class.
7436 * java/lang/Class.h (Class): Add new field `aux_info'.
7437 * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking.
7438 * defineclass.cc: Remove Class<->_Jv_InterpClass casts.
7439 Use Class->aux_info instead.
7440 * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject.
7441 * resolve.cc: Remove Class<->_Jv_InterpClass casts.
7442 Use Class->aux_info instead.
7443 * java/io/natObjectInputStream.cc (allocateObject): Use
7444 _Jv_AllocObject.
7445 * java/lang/natClass.cc (newInstance): Likewise.
7446 * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise.
7447 * java/lang/natObject.cc (clone): Likewise.
7448 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
7449 * java/lang/natVMClassLoader.cc (defineClass): Don't use
7450 JvAllocObject. Allocate klass->aux_info here for interpreted
7451 class.
7452
afd7c0dc
MW
74532004-04-17 Mark Wielaard <mark@klomp.org>
7454
7455 * javax/swing/JToggleButton.java (ToggleButtonModel):
7456 Make public static inner class.
7457 * javax/swing/JTabbedPane.java (setComponentAt):
7458 Call Page.setComponent().
7459 (SCROLL_TAB_LAYOUT): Make public, value is 1.
7460 (WRAP_TAB_LAYOUT): Make public, value is 0.
7461 * javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
7462 Make private static inner class.
7463
bf7ad402
BM
74642004-04-16 Bryce McKinlay <mckinlay@redhat.com>
7465
7466 * interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject
7467 arguments to match new signature. Remove FIXME comments.
7468
31e632d3
GH
74692004-04-09 Thomas Fitzsimmons <fitzsim@redhat.com>
7470
7471 * gnu/java/awt/peer/gtk/GtkPanelPeer.java (connectSignals):
7472 Remove method.
7473 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c: Remove
7474 unused code.
7475
74762004-04-02 Olga Rodimina <rodimina@redhat.com>
7477
7478 * Makefile.am: Added new file.
7479 * Makefile.in: Regenerate.
7480 * javax/swing/ImageIcon.java:
7481 (ImageIcon(file)): set description of the icon
7482 to the file name
7483 * javax/swing/JCheckBoxMenuItem.java:
7484 Mostly Implemented. Work in progress.
7485 * javax/swing/JRadioButtonMenuItem.java:
7486 Reimplement constructors to use JToggleButtonModel.
7487 * javax/swing/plaf/basic/BasicIconFactory.java:
7488 (getCheckBoxMenuItemIcon): return check box
7489 icon.
7490 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7491 paint menu item selected only when it is armed and
7492 pressed.
7493
74942004-04-02 David Jee <djee@redhat.com>
7495
7496 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7497 (GtkMenuItemPeer): Only connect signals if this isn't a Menu peer.
7498 * java/awt/Component.java
7499 (add): Set the parent of the popup as this component.
7500 * java/awt/PopupMenu.java
7501 (addNotify): Create popup menu when peer is null.
7502 (show): Call addNotify() if peer is null.
7503 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
7504 (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_show): Set the button
7505 argument for gtk_menu_popup() as zero. This causes the popup menu to
7506 respond to any mouse button.
7507
75082004-03-31 Olga Rodimina <rodimina@redhat.com>
7509
7510 * Makefile.am: Added new file.
7511 * Makefile.in: Regenerate.
7512 * javax/swing/JRadioButtonMenuItem.java:
7513 Implemented.
7514 * javax/swing/plaf/basic/BasicIconFactory.java:
7515 (getRadioButtonMenuItemIcon): Return
7516 radio button icon.
7517 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7518 (getPreferredSize): Add size of checkIcon if it
7519 exists.
7520 (installDefaults): Don't initialize checkIcon.
7521 It's value will be set in subclasses.
7522 (uninstallDefaults): remove uninstallation of
7523 checkIcon.
7524 (paint): Moved code to paintMenuItem().
7525 (paintMenuItem): Implemented.
7526 * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java:
7527 UI delegate for JRadioButtonMenuItem.
7528
75292004-03-29 Olga Rodimina <rodimina@redhat.com>
7530
7531 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7532 Corrected position of the accelerator.
7533
75342004-03-29 Olga Rodimina <rodimina@redhat.com>
7535
7536 * Makefile.am: Added new file.
7537 * Makefile.in: Regenerate.
7538 * javax/swing/JMenuItem.java: Partly
7539 implemented. Work in progress
7540 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7541 Changed default value of acceleratorDelimiter.
7542 * javax/swing/plaf/basic/BasicMenuItemUI.java:
7543 New class. Partly implemented.
7544
75452004-03-26 Mark Wielaard <mark@klomp.org>
7546
7547 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
7548 (item_activate): Declare label before use.
7549 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
7550 (gtkSetFont): Removed unused variable label.
7551 (addExposeFilter): Declare variables before use.
7552 (removeExposeFilter): Likewise.
7553 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
7554 (ok_clicked): Declare str_fileName before use.
7555
75562004-03-26 David Jee <djee@redhat.com>
7557
7558 * gnu/java/awt/peer/gtk/GtkMenuPeer.java
7559 (addSeparator): Remove.
7560 * java/awt/Menu.java
7561 (separator): Remove static final MenuItem field.
7562 (separatorLabel): New static final String field.
7563 (addSeparator): Do not use peer method; use add(MenuItem) instead.
7564 Use separatorLabel to denote that it is a separator.
7565 (insertSeparator): Create a new MenuItem with separatorLabel, instead
7566 of reusing the static separator instance, because a MenuItem instance
7567 can't be added more than once without being cloned.
7568 * java/awt/peer/MenuPeer.java
7569 (addSeparator): Remove from interface.
7570
75712004-03-26 David Jee <djee@redhat.com>
7572
7573 * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
7574 (connectSignals): New native method declaration.
7575 (GtkMenuItemPeer): Connect signals if the parent is a Menu.
7576 * java/awt/MenuItem.java
7577 (getActionCommand): Return the label if the action command is not set.
7578 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
7579 (Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_addMenu): Use
7580 gtk_menu_shell_append().
7581 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
7582 (item_activate): Fix argument type.
7583 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Do not connect
7584 signal here.
7585 (Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_connectSignals): New
7586 method.
7587 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
7588 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Check if a label is
7589 given. Add the menu widget's top-level GtkWindow to the global window
7590 group, so it can grab the pointer.
7591 (Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem): Use
7592 gtk_menu_shell_append().
7593
75942004-03-23 Graydon Hoare <graydon@redhat.com>
7595
7596 * java/text/AttributedString.java
7597 (addAttribute): Fix off-by-one.
7598 (getIterator): Likewise.
7599 * java/text/AttributedStringIterator.java
7600 (getRunLimit): Correct logic.
7601 (getRunStart): Likewise.
7602 (getAttribute): Fix inequality.
7603 (getAttributes): Likewise.
7604 * testsuite/libjava.mauve/xfails: Remove AttributedString xfail.
7605
76062004-03-23 Kim Ho <kho@redhat.com>
7607
7608 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7609 (calculateSizes): Return real width and height.
7610
76112004-03-23 Kim Ho <kho@redhat.com>
7612
7613 * javax/swing/plaf/basic/BasicTabbedPaneUI.java
7614 (calculateTabRects): Set the selectedRun before
7615 trying to rotate tabs.
7616
76172004-03-23 Kim Ho <kho@redhat.com>
7618
7619 * Makefile.am: New file
7620 * Makefile.in: Regenerate
7621 * java/awt/Graphics.java: (drawRect):
7622 Draw to the correct point.
7623 * javax/swing/DefaultSingleSelectionModel.java
7624 (isSelected): Return true if the selected index
7625 is not -1.
7626 * javax/swing/JLabel.java: Do not change mnemonic
7627 index if text is null.
7628 * javax/swing/JProgressBar.java: Use JComponent's
7629 EventListenerList.
7630 * javax/swing/JScrollBar.java: Ditto.
7631 * javax/swing/JSlider.java: Ditto.
7632 * javax/swing/JTabbedPane.java: Reimplement.
7633 * javax/swing/plaf/basic/BasicLookAndFeel.java:
7634 Add defaults for TabbedPane.
7635 * javax/swing/plaf/basic/BasicArrowButton.java:
7636 Implement
7637 * javax/swing/plaf/basic/BasicProgressBarUI.java:
7638 (paintDeterminate): Don't paint String if it's
7639 empty.
7640 (paintIndeterminate): ditto.
7641 * javax/swing/plaf/basic/BasicTabbedPaneUI.java:
7642 Reimplement.
7643
76442004-03-19 Michael Koch <konqueror@gmx.de>
7645
7646 * java/awt/image/AffineTransformOp.java
7647 (AffineTransformOp): Made public.
7648 * javax/swing/JComponent.java
7649 (listenerList): Made protected.
7650 (accessibleContext): Likewise.
7651 * javax/swing/JList.java
7652 (valueChanged): Dont use internal fields of ListSelectionEvent.
7653 * javax/swing/JViewport.java
7654 (getView): Dont use internal fields of Component.
7655 (addImpl): Likewise.
7656 * javax/swing/Timer.java
7657 (isRunning): Made public.
7658 (start): Likewise.
7659 (stop): Likewise.
7660 * javax/swing/UIDefaults.java
7661 (getInt): Made public.
7662 * javax/swing/plaf/basic/BasicListUI.java
7663 (mousePressed): Dont use internal fields of MouseEvent.
7664 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7665 * javax/swing/plaf/basic/BasicScrollBarUI.java
7666 (arrowIcon): Made static.
7667 * javax/swing/plaf/basic/BasicViewportUI.java
7668 (stateChanged): Dont use internal field on ChangeEvent.
7669 * javax/swing/text/JTextComponent.java
7670 (getUI): Call UIManager.getUI().
7671 (updateUI): Use getUI().
7672
76732004-03-19 Graydon Hoare <graydon@redhat.com>
7674
7675 * javax/swing/JComponent.java: Turn off double buffer by default.
7676 * javax/swing/plaf/basic/BasicViewportUI.java: Clear rects before painting.
7677 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
7678 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
7679 Use cairo to copy areas.
7680 (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoClip):
7681 Initialize and set clip region.
7682
76832004-03-15 Thomas Fitzsimmons <fitzsim@redhat.com>
7684
7685 * java/applet/Applet.java (preferredSize): Override deprecated
7686 variant of getPreferredSize.
7687 (minimumSize): Override deprecated variant of getMinimumSize.
7688
76892004-03-15 Olga Rodimina <rodimina@redhat.com>
7690
7691 * gnu/java/awt/peer/gtk/GdkGraphics2D.java
7692 (drawImage(img,xform,bgcolor,obs)): New Method.
7693 Helper function that every drawImage method will
7694 use.
7695 (drawRaster): Added new parameter, bgcolor. All
7696 transparent pixels are changed to bgcolor before
7697 image is drawn.
7698 (drawRenderedImage): Fixed to use changed drawRaster().
7699 (drawImage(image,xform,obs): Fixed to use new helper function
7700 (drawImage(image,op,x,y)): Ditto.
7701 (drawImage (img,x,y,observer)): Ditto.
7702 ((PainterThread) bgcolor): New Field.
7703 ((PainterThread) (setPixels)): Changed all transparent pixels
7704 to bgcolor.
7705 (drawImage(img,x,y,width,height,bgcolor,observer)):
7706 Fixed FIXME - all the transparent pixels are
7707 changed to the specified bgcolor.
7708 (drawImage(img, x, y, width, height, observer): Changed to
7709 use function above.
7710 (drawImage (img,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,bgcolor,observer)):
7711 Fixed FIXME- changed all transparent pixels to bgcolor.
7712 (drawImage (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer)):
7713 Changed to use function above.
7714
77152004-03-14 Thomas Fitzsimmons <fitzsim@redhat.com>
7716
7717 * java/applet/Applet.java (dimensions): New field.
7718 (getDimensions): New method.
7719 (getPreferredSize): Call getDimensions.
7720 (getMinimumSize): Likewise.
7721
77222004-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
7723
7724 * jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
7725 * jni/classpath/jnilink.c: Likewise.
7726
7727 * java/applet/Applet.java (getPreferredSize): New method.
7728 (getMinimumSize): New method.
7729
245c3c04
BM
77302004-04-15 Bryce McKinlay <mckinlay@redhat.com>
7731
7732 * prims.cc (_Jv_AllocObject): Remove `size' argument.
7733 (_Jv_AllocObjectNoFinalizer): Likewise.
7734 (_Jv_AllocObjectNoInitNoFinalizer): Likewise.
7735 (_Jv_AllocPtrFreeObject): Likewise.
7736 (_Jv_AllocString): Moved from natString.cc. Call collector interface
7737 directly even in the JVMPI case.
7738 * gcj/cni.h (JvAllocObject): Remove `size' argument from
7739 _Jv_AllocObject calls.
7740 * gcj/javaprims.h: Update prototypes.
7741 * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject.
7742 * java/lang/Class.h: Update _Jv_AllocObject friend prototype.
7743 * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
7744
d7afe286
BM
77452004-04-14 Andrew Haley <aph@redhat.com>
7746 Bryce McKinlay <mckinlay@redhat.com>
7747
7748 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
7749 _Jv_LookupInterfaceMethodIdx for calls to interfaces.
7750 * include/jvm.h (_Jv_CallAnyMethodA): Add new `iface' arg.
7751
7752 * testsuite/libjava.lang/InvokeInterface.java: New file.
7753 * testsuite/libjava.lang/InvokeInterface.out: New file.
7754
84264cb6
RM
77552004-04-09 Ranjit Mathew <rmathew@hotmail.com>
7756
7757 * java/lang/VMThrowable.java (getStackTrace): Pass trace as-is to
7758 modified lookup().
7759 * gnu/gcj/runtime/NameFinder.java (lookup): Change to take in a
7760 StackTraceElement directly.
7761 (newElement): New native helper method to create StackTraceElement
7762 bypassing Java access control.
7763 (createStackTraceElement): Use newElement() instead of directly
7764 calling StackTraceElement's constructor.
7765 * gnu/gcj/runtime/natNameFinder.cc (newElement): New method.
7766
2b6b5c35
MK
77672004-04-01 Michael Koch <konqueror@gmx.de>
7768
7769 * java/lang/SecurityManager.java
7770 (checkAwtEventQueueAccess): Implemented.
7771
1c19eacc
GB
77722004-04-01 Gary Benson <gbenson@redhat.com>
7773
7774 * resolve.cc (_Jv_ResolvePoolEntry): Put field name in exception.
7775 (_Jv_SearchMethodInClass): Likewise.
7776
99b43239
PM
77772004-03-26 Peter Moon <peterm@miraculum.com>
7778
7779 * java/text/NumberFormat.java: Fix spelling of setCurrency
7780 method.
7781
95e59f1a
AG
77822004-03-21 Anthony Green <green@redhat.com>
7783
7784 * java/lang/natClass.cc (getClassLoader): Circumvent infinite
7785 recursion when searching for the system ClassLoader.
7786
de205e06
IK
77872004-03-21 Ito Kazumitsu <kaz@maczuka.gcd.org>
7788
7789 * java/net/ServerSocket.java
7790 (accept): Close the socket when error occured.
7791
bdf11d55
JF
77922004-03-21 Jeroen Frijters <jeroen@frijters.net>
7793
7794 * java/net/URI.java (parseURI): Added unquoting.
7795 (unquote): New method.
7796 (quoteAuthority): Implemented.
7797 (quote(String,String)): New method.
7798 (quotePath): Implemented.
7799 (getRawSchemeSpecificPart): Return new rawSchemeSpecificPart field.
7800 (getSchemeSpecificPart): Removed FIXME comment.
7801 (getRawAuthority): Return new rawAuthority field.
7802 (getAuthority): Removed FIXME comment.
7803 (getRawUserInfo): Return new rawUserInfo field.
7804 (getUserInfo): Removed FIXME comment.
7805 (getRawPath): Return new rawPath field.
7806 (getPath): Removed FIXME comment.
7807 (getRawQuery): Return new rawQuery field.
7808 (getQuery): Removed FIXME comment.
7809 (getRawFragment): Return new rawFragment field.
7810 (getFragment): Removed FIXME comment.
7811
0d13be1e
MK
78122004-03-20 Michael Koch <konqueror@gmx.de>
7813
7814 * java/net/URLConnection.java: Merged copyright year with classpath.
7815
f903e73b
NF
78162004-03-20 Norbert Frese <postfach@nfrese.net>
7817
7818 * gnu/java/rmi/server/RMIIncomingThread.java: New file.
7819 * gcc/libjava/gnu/java/rmi/server/UnicastConnection.java:
7820 Create a new RMIObjectOuputStream/RMIObjectInputStream for every
7821 rmi-message.
7822 (getObjectInputStream): Return object reference, throw IOException if null.
7823 (startObjectInputStream): Create new RMIObjectInputStream on top of 'din'.
7824 (getObjectOutputStream): Return object reference, throw IOException if null.
7825 (startObjectOutputStream): Create new RMIObjectOutputStream on top of 'dout'.
7826 * gcc/libjava/gnu/java/rmi/server/UnicastConnectionManager.java:
7827 (UnicastConnectionManager): Throw RemoteException if port is not available.
7828 (getInstance): Throw RemoteException.
7829 (run): Lookup client host and attach it to new RMIIncomingThread for later retrieval.
7830 * gcc/libjava/gnu/java/rmi/server/UnicastRef.java:
7831 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
7832 Collect Exceptions which are returned by a rmi-call and fix void returns.
7833 * gcc/libjava/gnu/java/rmi/server/UnicastRemoteCall.java:
7834 Start a new RMIObjectInputStream/RMIObjectOutputStream for every rmi-message.
7835 * gcc/libjava/gnu/java/rmi/server/UnicastServer.java:
7836 (dispatch): Answer ping messages which are sent by other java implementions.
7837 (incomingMessageCall): Start a new RMIObjectInputStream/RMIObjectOutputStream
7838 for every rmi-message and fix void return problems.
7839 * gcc/libjava/gnu/java/rmi/server/UnicastServerRef.java
7840 (UnicastServerRef): Throw RemoteException.
7841 (exportObject): Find the class up the class hierarchy which has a _Stub generated by rmic.
7842 In some situations it is necessary to export a subclass of the class which has the _Stub.
7843 For instance when the class with has the _Stub is abstract.
7844 (findStubSkelClass): New method which looks for the class which has the _Stub.
7845 (getClientHost): Implementated.
7846 * gcc/libjava/java/rmi/server/RemoteServer.java
7847 (getClientHost): Implementated.
7848 * gcc/libjava/Makefile.am (rmi_java_source_files):
7849 Added gnu/java/rmi/server/RMIIncomingThread.java.
7850 * Makefile.in: Regenerated.
7851
7f5773c6
MK
78522004-03-20 Michael Koch <konqueror@gmx.de>
7853
7854 * java/net/InetAddress.java
7855 (getLocalHostname): Added javadoc.
7856
ab16524d
PB
78572004-03-19 Per Bothner <per@bothner.com>
7858
7859 * configure.in: FILE variable overrides FLATFORM when linking
7860 natFileChannelXXX.cc.
7861
7862 * gnu/java/nio/channels/natFileChannelEcos.cc (diag_write): Restored.
7863 (write): Call diag_write, as in old natFileDescriptorEcos.cc.
7864
0fca95f5
PB
78652004-03-19 Per Bothner <per@bothner.com>
7866
7867 * gnu/gcj/convert/Input_UnicodeBig.java: New class..
7868 * gnu/gcj/convert/Input_UnicodeLittle.java: New class.
7869 * Makefile.am: Update accordingly.
7870 * gnu/gcj/convert/IOConverter.java: Define "utf-16le" and "utf16be"
7871 as aliases for UnicodeLittle and UnicodeBig.
7872
edb3d426
MW
78732004-03-20 Mark Wielaard <mark@klomp.org>
7874
7875 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
7876 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
7877 Don't access ws when it is null.
7878 (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
7879 Likewise.
7880
b121dcb5
JF
78812004-03-19 Jeroen Frijters <jeroen@frijters.net>
7882
7883 * java/lang/ThreadGroup.java (list): Changed print to println.
7884
44b20223
MW
78852004-03-19 Mark Wielaard <mark@klomp.org>
7886
7887 * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc
7888 happy.
7889
f94b0887
RC
78902004-02-10 Randolph Chung <tausq@debian.org>
7891
7892 * configure.in: Build java for hppa target.
7893 * configure: Regenerate.
7894 * libjava/configure.host (hppa-*): Add target.
7895 * libjava/sysdeps/pa/lock.h: New file.
7896
d511a273
MW
78972004-03-19 Mark Wielaard <mark@klomp.org>
7898
7899 Reported by Stephen Crawley
7900 * java/io/FilePermission.java (implies): Use String.length() -1 to
7901 access last char of String.
7902
9c6637c8
MK
79032004-03-19 Michael Koch <konqueror@gmx.de>
7904
7905 * java/awt/image/AffineTransformOp.java
7906 (AffineTransformOp): Made public.
7907 * javax/swing/JComponent.java
7908 (listenerList): Made protected.
7909 (accessibleContext): Likewise.
7910 * javax/swing/JList.java
7911 (valueChanged): Dont use internal fields of ListSelectionEvent.
7912 * javax/swing/JViewport.java
7913 (getView): Dont use internal fields of Component.
7914 (addImpl): Likewise.
7915 * javax/swing/Timer.java
7916 (isRunning): Made public.
7917 (start): Likewise.
7918 (stop): Likewise.
7919 * javax/swing/UIDefaults.java
7920 (getInt): Made public.
7921 * javax/swing/plaf/basic/BasicListUI.java
7922 (mousePressed): Dont use internal fields of MouseEvent.
7923 (propertyChanged): Dont use internal fields of PropertyChangeEvent.
7924 * javax/swing/plaf/basic/BasicScrollBarUI.java
7925 (arrowIcon): Made static.
7926 * javax/swing/plaf/basic/BasicViewportUI.java
7927 (stateChanged): Dont use internal field on ChangeEvent.
7928 * javax/swing/text/JTextComponent.java
7929 (getUI): Call UIManager.getUI().
7930 (updateUI): Use getUI().
7931
165c9b04
RO
79322004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7933
7934 * verify.cc: Undef PC.
7935
138f5109
MK
79362004-03-18 Michael Koch <konqueror@gmx.de>
7937
7938 * java/nio/channels/spi/AbstractSelectableChannel.java
7939 (keys): Initialize at declaration.
7940 (locate): keys cant be null.
7941 (add): Removed.
7942 (addSelectionKey): New method.
7943 (removeSelectionKey): New method.
7944 * java/nio/channels/spi/AbstractSelectionKey.java
7945 (cancel): Call AbstractSelector.cancelKey(SelectionKey key).
7946 * java/nio/channels/spi/AbstractSelector.java
7947 (provider): Javadoc added.
7948 (cancelledKeys): Javadoc added.
7949 (cancelKey): Javadoc added, add key to cancelledKeys.
7950 (deregister): Implemented.
7951
acc63e4c
RO
79522004-03-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7953
7954 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast
7955 MAP_FAILED to void *.
7956
86881a7b
GH
79572004-03-12 Graydon Hoare <graydon@redhat.com>
7958
7959 * gnu/java/awt/peer/gtk/GdkGraphics2D.java: Clipping fixes.
7960 * javax/swing/JComponent.java (paint): Use persistent double buffer.
7961 * javax/swing/JList.java (ListListener): Revalidate on changes.
7962 * javax/swing/JScrollPane.java: Reimplement.
7963 * javax/swing/JViewport.java: Reimplement.
7964 * javax/swing/ScrollPaneLayout.java: Reimplement.
7965 * javax/swing/ViewportLayout.java: Tidy up.
7966 * javax/swing/plaf/basic/BasicButtonListener.java: Remove printlns.
7967 * javax/swing/plaf/basic/BasicScrollPaneUI.java: Reimplement.
7968 * javax/swing/plaf/basic/BasicSliderUI.java: Handle missing labels.
7969 * javax/swing/plaf/basic/BasicViewportUI.java: Implement in terms of
7970 backing store only.
7971
79722004-03-11 Thomas Fitzsimmons <fitzsim@redhat.com>
7973
7974 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
7975 (window_wm_protocols_filter): New function.
7976 (window_focus_in_cb): Remove function.
7977 (window_focus_out_cb): Likewise.
7978 (window_focus_or_active_state_change_cb): New function.
7979 (create): Add filter that removes WM_TAKE_FOCUS client messages.
7980 (connectSignals): Don't attach handlers to focus-in-event or
7981 focus-out-event signals. Handle notify signal.
7982
79832004-03-11 David Jee <djee@redhat.com>
7984
7985 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
7986 (gtkSetLabel): New native method declaration.
7987 (setLabel): Use gtkSetLabel.
7988 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
7989 (Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkSetLabel): New method.
7990
79912004-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
7992
7993 * gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Default to
7994 black when color argument is null.
7995
79962004-03-10 Kim Ho <kho@redhat.com>
7997
7998 * java/awt/Container.java: Remove check
7999 for drag events.
8000
80012004-03-10 Kim Ho <kho@redhat.com>
8002
8003 * java/awt/Container.java: (visitChild):
8004 Remove candidate clip. Use the component
8005 clip to intersect.
8006 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8007 (handleEvent): Use the PaintEvent's clip.
8008
80092004-03-10 Kim Ho <kho@redhat.com>
8010
8011 * gnu/java/awt/peer/gtk/GtkComponentPeer.java:
8012 (handleEvent): Don't set the clip for the
8013 Graphics object.
8014
80152004-03-09 Graydon Hoare <graydon@redhat.com>
8016
8017 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
8018 Fix double <-> fixed macros, reset font transform.
8019 * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
8020 Likewise.
8021
8022