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