OSDN Git Service

987ac9eff84047063cc1461897400211d6e44b58
[pf3gnuchains/gcc-fork.git] / libjava / classpath / ChangeLog
1 2007-04-18  Tom Tromey  <tromey@redhat.com>
2
3         * tools/gnu/classpath/tools/javah/MethodHelper.java (print):
4         Changed arguments.  Directly print method name.
5         * tools/gnu/classpath/tools/javah/ClassWrapper.java
6         (methodNameMap): New field.
7         (makeVtable): Initialize it.
8         (printMethods): Compute name for bridge targets.
9
10 2007-04-17  Andrew Haley  <aph@redhat.com>
11
12         * gnu/java/rmi/server/UnicastConnectionManager.java
13         (UnicastConnectionManager(int port, RMIServerSocketFactory)):
14         Listen on "localhost", not localhost.
15
16 2007-04-17  Francis Kung  <fkung@redhat.com>
17
18         PR classpath/31311
19         * gnu/java/awt/peer/gtk/ComponentGraphics.java
20         (dispose): Removed method.
21         (disposeSurface): Removed method.
22         * gnu_java_awt_peer_gtk_ComponentGraphics.h: Regenerated.
23         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c
24         (Java_gnu_java_awt_peer_gtk_ComponentGraphics_disposeSurface): Removed.
25         (Java_gnu_java_awt_peer_gtk_ComponentGraphics_initState): Destroy surface
26         after it is used to create a cairo context.
27
28 2007-04-16  Tom Tromey  <tromey@redhat.com>
29
30         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=236614
31         * gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java
32         (createSocket): Change order of delegation.
33
34 2007-04-16  Andrew Haley  <aph@redhat.com>
35
36         * java/io/ObjectInputStream.java: (parseContent):  Call (String,
37         Object) version of dumpElementln.
38         (dumpElementln(String, Object)): New method.
39         * java/io/ObjectOutputStream.java (writeObject): Call (String,
40         Object) version of dumpElementln.
41         (dumpElementln(String, Object)): New method.
42
43 2007-04-16  Andrew John Hughes  <gnu_andrew@member.fsf.org>
44
45         * javax/management/ObjectName.java:
46         (parse(String)): Catch multiple wildcards,
47         initialise with an empty string (so null isn't
48         appended), and emit comma even when wildcard
49         ends the list.
50         (checkComponents()): Catch newlines.
51         (quote(String)): Handle newlines and quotes
52         correctly.
53
54 2007-04-16  Andrew Haley  <aph@redhat.com>
55
56         * org/omg/IOP/TaggedComponentHelper.java (read): Use
57         read_octet_array(), not read().
58         (write): Use write_octet_array(), not write().
59
60         * org/omg/PortableServer/Servant.java (_get_delegate): Throw if no
61         delegate has been set.
62
63         * javax/management/ObjectName.java serialVersionUID: Declare.
64         Make all fields transient.
65         (parse): Break out from constructor.
66         (writeObject, readObject): New methods.
67
68 2007-04-02  Keith Seitz  <keiths@redhat.com>
69
70         * gnu/classpath/jdwp/event/ThreadStartEvent.java (Event):
71         Event type is "THREAD_START" not "THREAD_END".
72
73         * gnu/classpath/jdwp/transport/SocketTransport.java (ITransport):
74         Handle configure strings ":port" and "port".
75
76 2007-03-30  Andrew Haley  <aph@redhat.com>
77
78         * javax/management/ObjectName.java: Handle 0-length names.
79
80 2007-03-27  Andrew Haley  <aph@redhat.com>
81
82         * javax/management/MBeanServerFactory.java: Use the domain that
83         we've been passed, not the fixed string "DefaultDomain".
84
85 2007-03-29  Tom Tromey  <tromey@redhat.com>
86
87         PR libgcj/29869:
88         * gnu/java/util/jar/JarUtils.java (log): Commented out.
89         (readSFManifest): Don't log.
90
91 2007-03-28  Casey Marshall  <csm@gnu.org>
92
93         * gnu/javax/net/ssl/provider/ClientHandshake.java (RSAGen.implRun):
94         check keyEncipherment bit of the certificate, and just pass the public
95         key to the cipher.
96
97 2007-03-27  Casey Marshall  <csm@gnu.org>
98
99         PR classpath/31302:
100         * gnu/javax/net/ssl/provider/SSLSocketImpl.java (SSLSocketImpl):
101         Always make a new socket.
102         (bind, connect, getInetAddress, getLocalAddress, getPort,
103         getLocalPort, getRemoteSocketAddress, getLocalSocketAddress,
104         setTcpNoDelay, getTcpNoDelay, setSoLinger, getSoLinger,
105         setOOBInline, getOOBInline, setSoTimeout, getSoTimeout,
106         setSendBufferSize, getSendBufferSize, setReceiveBufferSize,
107         getReceiveBufferSize, setKeepAlive, getKeepAlive, setTrafficClass,
108         getTrafficClass, setReuseAddress, getReuseAddress, close,
109         shutdownInput, shutdownOutput, isConnected, isBound, isClosed,
110         isInputShutdown, isOutputShutdown): Always use
111         'underlyingSocket'.
112
113 2007-03-27  Tom Tromey  <tromey@redhat.com>
114
115         PR classpath/31303:
116         * external/sax/org/xml/sax/helpers/XMLReaderFactory.java
117         (createXMLReader): Code in Classpath default.
118
119 2007-03-27  Keith Seitz  <keiths@redhat.com>
120
121         Merged from upstream:
122         2007-03-09  Kyle Galloway  <kgallowa@redhat.com>
123         * gnu/classpath/jdwp/exception/InvalidTagException.java: New file.
124         * gnu/classpath/jdwp/processor/ArrayReferenceCommandSet.java
125         (executeGetValues): Use Value type.
126         (exectureSetValues): Ditto.  
127         * gnu/classpath/jdwp/processor/ClassTypeCommandSet.java
128         (executeGetValues): Use Value type.
129         (executeSetValues): Ditto.
130         (invokeMethod): Record method return type.
131         * gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java
132         (executeGetValues): Use Value type.
133         (executeSetValues): Ditto.
134         * gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
135         (executeGetValues): Use Value type.
136         * gnu/classpath/jdwp/processor/StackFrameCommandSet.java
137         (executeGetValues): Use Value type.
138         (executeSetValues): Ditto.
139         * gnu/classpath/jdwp/util/MethodResult.java: Add resType to store
140         return type.
141         (getResultType): New Method.
142         (setResultType): Ditto.
143         * gnu/classpath/jdwp/util/Value.java: Remove.
144         * gnu/classpath/jdwp/value: New Package.
145         * gnu/classpath/jdwp/value/Value.java: New file.
146         * gnu/classpath/jdwp/value/BooleanValue.java: New file.
147         * gnu/classpath/jdwp/value/ByteValue.java: New file.
148         * gnu/classpath/jdwp/value/CharValue.java: New file.
149         * gnu/classpath/jdwp/value/DoubleValue.java: New file.
150         * gnu/classpath/jdwp/value/FloatValue.java: New file.
151         * gnu/classpath/jdwp/value/IntValue.java: New file.
152         * gnu/classpath/jdwp/value/LongValue.java: New file.
153         * gnu/classpath/jdwp/value/ObjectValue.java: New file.
154         * gnu/classpath/jdwp/value/ShortValue.java: New file.
155         * gnu/classpath/jdwp/value/StringValue.java: New file.
156         * gnu/classpath/jdwp/value/ValueFactory.java: New file.
157         * gnu/classpath/jdwp/value/VoidValue.java: New file.
158
159         2007-02-28  Keith Seitz  <keiths@redhat.com>
160         * gnu/classpath/jdwp/processor/EventRequestCommandSet.java
161         (executeSet): Check if VM has capability for field access
162         or modification events.
163         * gnu/classpath/jdwp/processor/MethodCommandSet.java
164         (executeByteCodes): Check if VM has capability and
165         implement.
166         * gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java
167         (executeMonitorInfo): Likewise.
168         * gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
169         (executeSourceDebugExtension): Likewise.
170         * gnu/classpath/jdwp/processor/StackFrameCommandSet.java
171         (executePopFrames): Likewise.
172         * gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java
173         (executeOwnedMonitors): Likewise.
174         (executeCurrentContendedMonitor): Likewise.
175         * gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
176         (executeCapabilities): Rewrite using new VMVirtualMachine
177         capabilities.
178         (executeRedefineClasses): Check if VM has capability and
179         implement.
180         (executeSetDefaultStratum): Likewise.
181         * gnu/classpath/jdwp/util/MonitorInfo.java; New file.
182         * vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java
183         (canWatchFieldModification): New class constant.
184         (canWatchFieldAccess): Likewise.
185         (canGetBytecodes): Likewise.
186         (canGetSyntheticAttribute): Likewise.
187         (canGetOwnedMonitorInfo): Likewise.
188         (canGetCurrentContendedMonitor): Likewise.
189         (canGetMonitorInfo): Likewise.
190         (canRedefineClasses): Likewise.
191         (canAddMethod): Likewise.
192         (canUnrestrictedlyRedefineClasses): Likewise.
193         (canPopFrames): Likewise.
194         (canUseInstanceFilters): Likewise.
195         (canGetSourceDebugExtension): Likewise.
196         (canRequestVMDeathEvent): Likewise.
197         (canSetDefaultStratum): Likewise.
198         (redefineClasses): New method.
199         (setDefaultStratum): Likewise.
200         (getSourceDebugExtension): Likewise.
201         (getBytecodes): Likewise.
202         (getMonitorInfo): Likewise.
203         (getOwnedMonitors): Likewise.
204         (getCurrentContendedMonitor): Likewise.
205         (popFrames): Likewise.
206
207         2007-02-28  Keith Seitz  <keiths@redhat.com>
208         * gnu/classpath/jdwp/processor/MethodCommandSet.java
209         (executeLineTable): Use ReferenceTypeId instead of
210         ClassReferenceTypeId.
211         (executeVariableTable): Likewise.
212         (executeVariableTableWithGeneric): Fix error message.
213         * gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
214         (executeSignatureWithGeneric): Fix error message.
215         (executeFieldWithGeneric): Likewise.
216         (executeMethodsWithGeneric): Likewise.
217         * gnu/classpath/jdwp/processor/StackFrameCommandSet.java
218         (executeGetValues): Use ThreadId instead of ObjectId.
219         (executeSetValues): Likewise.
220         (executeThisObject): Likewise.
221
222         2007-02-28  Kyle Galloway  <kgallowa@redhat.com>
223         * gnu/classpath/jdwp/id/NullObjectId.java: New class.
224         * gnu/classpath/jdwp/util/NullObject.java: New class.
225         * vm/reference/gnu/classpath/jdwp/VMIdManager.java
226         (getObjectId): Handle null object.
227         (get): Handle objectId of 0. 
228
229         2007-02-22  Keith Seitz  <keiths@redhat.ecom>
230         * vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java
231         (getAllLoadedClassesCount): Remove.
232         (getAllLoadedClasses): Return a Collection.
233         * gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
234         (executeClassesBySignature): VMVirtualMachine.getAllLoadedClasses
235         now returns Collection.
236         (executeAllClasses): Likewise.
237         Get size of return from Colleciton instead of calling
238         getAllLoadedClassesCount.
239
240         2007-02-22  Kyle Galloway  <kgallowa@redhat.com>
241         * gnu/classpath/jdwp/processor/StackFrameCommandSet.java 
242         (executeGetValues): Pass a signature byte to VMFrame.getValue.
243         * vm/reference/gnu/classpath/jdwp/VMFrame.java (getValue): Add
244         signature parameter.
245
246         2007-02-02  Kyle Galloway  <kgallowa@redhat.com>
247         * gnu/classpath/jdwp/processor/StackFrameCommandSet.java
248         (executeGetValues): Changed getFrame to use a jlong to pass frameID.
249         (executeSetValues): Ditto.
250         (executeThisObject): Ditto.
251         * vm/reference/gnu/classpath/jdwp/VMFrame.java: Added thread field
252         and a constructor used to create VMFrames.
253         (getThread): New method.
254         * vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java(getFrame):
255         Changed to take a long instead of a ByteBuffer to pass the frameID.
256
257         2007-01-15  Kyle Galloway  <kgallowa@redhat.com>
258         * gnu/classpath/jdwp/exception/InvalidSlotException.java: New file.
259
260 2007-03-26  Tom Tromey  <tromey@redhat.com>
261
262         * doc/cp-tools.texinfo (gcjh Tool): Added more text.
263         (rmid Tool): Likewise.
264
265 2007-03-25  Dalibor Topic  <robilad@kaffe.org>
266
267         * doc/cp-tools.texinfo: Fix node ordering.
268
269 2007-03-19  Matthias Klose  <doko@ubuntu.com>
270
271         * doc/Makefile.am: Build a gcjh(1) man page.
272         * doc/cp-tools.texinfo: Add documentation for gcjh.
273
274 2007-03-26  Stepan Kasal  <skasal@redhat.com>
275
276         * tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New
277         field.
278         (getParser): Use new field.
279
280 2007-03-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
281
282         * resource/com/sun/tools/javac/messages.properties
283         (Main.FailedToRead, Main.MalformedURL, Main.FailedToLoad): Clarify
284         messages for when --with-ecj-jar is not specified.
285         * configure.ac (FOUND_ECJ_JAR): Remove conditional.
286         * tools/Makefile.am: Build com.sun.tools.javac package
287         unconditionally.
288         * configure, doc/api/Makefile.in, doc/Makefile.in,
289         examples/Makefile.in, external/jsr166/Makefile.in,
290         external/Makefile.in, external/relaxngDatatype/Makefile.in,
291         external/sax/Makefile.in, external/w3c_dom/Makefile.in,
292         include/Makefile.in, lib/Makefile.in, Makefile.in,
293         native/fdlibm/Makefile.in, native/jawt/Makefile.in,
294         native/jni/classpath/Makefile.in,
295         native/jni/gconf-peer/Makefile.in,
296         native/jni/gtk-peer/Makefile.in, native/jni/java-io/Makefile.in,
297         native/jni/java-lang/Makefile.in, native/jni/java-net/Makefile.in,
298         native/jni/java-nio/Makefile.in, native/jni/java-util/Makefile.in,
299         native/jni/Makefile.in, native/jni/midi-alsa/Makefile.in,
300         native/jni/midi-dssi/Makefile.in,
301         native/jni/native-lib/Makefile.in, native/jni/qt-peer/Makefile.in,
302         native/jni/xmlj/Makefile.in, native/Makefile.in,
303         native/plugin/Makefile.in, resource/Makefile.in,
304         scripts/Makefile.in, tools/Makefile.in: Regenerate.
305         * tools/classes/com/sun/tools/javac: New directory.
306         * tools/classes/com/sun/tools/javac/Main.class,
307         tools/classes/com/sun/tools/javac/Messages.class: New files.
308
309 2007-03-16  Tom Tromey  <tromey@redhat.com>
310
311         * tools/gnu/classpath/tools/javah/Main.java (run): Use class'
312         name in File case.
313
314 2007-03-16  Tom Tromey  <tromey@redhat.com>
315
316         * tools/gnu/classpath/tools/javah/JniStubPrinter.java
317         (printClass): Added filename argument.
318         * tools/gnu/classpath/tools/javah/JniIncludePrinter.java
319         (printClass): Added filename argument.
320         * tools/gnu/classpath/tools/javah/CniIncludePrinter.java
321         (printClass): Use user's file name.
322         * tools/gnu/classpath/tools/javah/CniStubPrinter.java
323         (printClass): Use user's file name.
324         * tools/gnu/classpath/tools/javah/Printer.java (printClass): Added
325         filename argument.
326         * tools/gnu/classpath/tools/javah/Main.java (getParser): Fix '-v'
327         argument order.
328         (writeHeaders): Use a HashMap.
329         (run): Put class name into HashMap for writeHeaders.
330
331 2007-03-02  Mario Torre  <neugens@limasoftware.net>
332
333         PR classpath/31017:
334         committed for Petteri Räty <betelgeuse@gentoo.org>
335         * configure.ac: fix broken build for gcj browser plugin
336
337 2007-02-20  Jakub Jelinek  <jakub@redhat.com>
338
339         * java/util/Date.java (parse): Properly parse 09:01:02 as
340         hours/minutes/seconds, not as hours/minutes/year.
341         * java/util/SimpleTimeZone.java (SimpleTimeZone): Simplify
342         {start,end}TimeMode constructor by calling shorter constructor,
343         set {start,end}TimeMode fields after it returns.
344         (setStartRule): Don't adjust startTime into WALL_TIME.  Set
345         startTimeMode to WALL_TIME.
346         (endStartRule): Similarly.
347         (getOffset): Handle properly millis + dstOffset overflowing into the
348         next day.  Adjust startTime resp. endTime based on startTimeMode
349         resp. endTimeMode.
350         * java/util/TimeZone.java (zoneinfo_dir, availableIDs, aliases0): New
351         static fields.
352         (timezones): Remove synchronized keyword.  Set zoneinfo_dir.
353         If non-null, set up aliases0 and don't put anything into
354         timezones0.
355         (defaultZone): Call getTimeZone instead of timezones().get.
356         (getDefaultTimeZone): Fix parsing of EST5 or EST5EDT6.  Use
357         getTimeZoneInternal instead of timezones().get.
358         (parseTime): Parse correctly hour:minute.
359         (getTimeZoneInternal): New private method.
360         (getTimeZone): Do the custom ID checking first, canonicalize
361         ID for custom IDs as required by documentation.  Call
362         getTimeZoneInternal to handle the rest.
363         (getAvailableIDs(int)): Add locking.  Handle zoneinfo_dir != null.
364         (getAvailableIDs(File,String,ArrayList)): New private method.
365         (getAvailableIDs()): Add locking.  Handle zoneinfo_dir != null.
366         * gnu/java/util/ZoneInfo.java: New file.
367
368 2007-02-20  Matthias Klose  <doko@ubuntu.com>
369
370         * doc/Makefile.am: Add rules to build and install man pages
371         from texinfo docs.
372         * doc/hacking.texinfo doc/tools.texinfo, doc/vmintegration.texinfo:
373         Rename, prefix files with "cp-".
374         * doc/cp-tools.texinfo: Add markup for man page generation,
375         add documentation for command line options for gjar, gjavah,
376         gnative2ascii, gorbd, grmid, grmiregistry, gserialver, gtnameserv.
377         doc/texi2pod.pl: New, taken from the GCC sources.
378
379 2006-10-14  Edwin Steiner  <edwin.steiner@gmx.net>
380
381         PR classpath/28652:
382         * javax/management/MBeanInfo.java (MBeanInfo): 
383         Use clone to duplicate the arrays in order to
384         preserve the array type.
385
386 2007-02-16  Andrew Haley  <aph@redhat.com>
387
388         * gnu/java/lang/management/MemoryMXBeanImpl.java,
389         javax/management/MBeanServerDelegate.java: Use
390         gnu.javax.management.ListenerData rather than
391         gnu.classpath.ListenerData.
392         * gnu/javax/management/ListenerData.java: Move here from
393         gnu/classpath/ListenerData.java.
394
395 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
396         Andrew Haley  <aph@redhat.com>
397
398         * java/util/TimeZone.java (getDateParams): Negate dayOfWeek.
399
400 2007-02-09  Tom Tromey  <tromey@redhat.com>
401
402         PR libgcj/30647:
403         * configure: Rebuilt.
404         * configure.ac: Also check for jack/jack.h.
405
406 2007-02-09  Jakub Jelinek  <jakub@redhat.com>
407
408         * java/util/TimeZone.java: Handle default (one hour) daylight
409         savings.
410
411 2007-02-09  Jakub Jelinek  <jakub@redhat.com>
412
413         PR 23566
414         * scripts/timezones.pl: Parse each file in 2 passes, in one parse
415         just Rule lines, in the other everything else.  Pass 0 instead of
416         $savings as second argument to parseRule when parsing the start
417         rule.
418         * java/util/TimeZone.java (timezones): Regenerate from tzdata2007a.
419
420 2007-02-07  Chris Burdess  <dog@gnu.org>
421
422         Fixes PR 30718.
423         * gnu/xml/dom/ls/SAXEventSink.java: Add public accessor/mutators.
424         * gnu/xml/transform/XSLURIResolver.java: Add support for custom
425           SAXSources without a backing URL or stream.
426
427         Fixes PR 27710.
428         * gnu/xml/dom/DomDocumentBuilderFactory.java: Fall back to synchronous
429           LSParser if implementation does not support asynchronous.
430         * gnu/xml/stream/XMLParser.java,
431           gnu/xml/stream/XIncludeFilter.java: Use custom code instead of
432           java.net.URL to resolve to an an absolute URI, to avoid nonexistent
433           protocol handler problems.
434
435 2007-02-06  Tom Tromey  <tromey@redhat.com>
436
437         PR libgcj/30707:
438         * tools/gnu/classpath/tools/javah/JniIncludePrinter.java
439         (printClass): Always print a header.
440
441 2007-02-05  Andrew Haley  <aph@redhat.com>
442
443         PR cp-tools/30706
444         * tools/gnu/classpath/tools/javah/JniIncludePrinter.java:
445         (printClass): Replace '/' in filenames with '_'.
446         * tools/gnu/classpath/tools/javah/JniStubPrinter.java
447         (printClass): Likewise.
448
449 2007-02-05  Tom Tromey  <tromey@redhat.com>
450
451         * java/net/Proxy.java (equals): Handle case where address==null.
452         (hashCode): Likewise.
453         (toString): Likewise.
454
455 2007-01-31  Tom Tromey  <tromey@redhat.com>
456
457         * resource/gnu/classpath/tools/jar/messages.properties
458         (Main.Stdin): New message.
459         * tools/gnu/classpath/tools/jar/Main.java (initializeParser): Add
460         '-@' option.
461         (readNames): New method.
462         (run): Use it.
463
464 2007-01-26  Andrew Haley  <aph@redhat.com>
465
466         * java/lang/SecurityManager.java: Load and initialize
467         java.security.Security.
468
469 2007-01-26  Tom Tromey  <tromey@redhat.com>
470
471         * tools/gnu/classpath/tools/javah/FieldHelper.java (print): Print
472         'volatile' after field type.
473
474 2007-01-23  Marco Trudel  <mtrudel@gmx.ch>
475
476         * java/util/Arrays.java (binarySearch): Change comparison order.
477
478 2007-01-17  Tom Tromey  <tromey@redhat.com>
479
480         * tools/gnu/classpath/tools/javah/PathOptionGroup.java
481         (PathOptionGroup): Set default boot class path.
482
483 2006-12-14  Andrew Haley  <aph@redhat.com>
484
485         * tools/gnu/classpath/tools/jar/Creator.java: Close the
486         inputStream.
487
488 2006-10-12  Andrew Haley  <aph@redhat.com>
489
490         * java/lang/InheritableThreadLocal.java: Rename NULL to sentinel.
491         * java/lang/ThreadLocal.java: Likewise.
492
493 2006-09-13  Andrew Haley  <aph@redhat.com>
494
495         * external/jsr166/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java:
496         Revert previous gcj-specific disabling of checks.
497         * external/jsr166/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.java:
498         Likewise.
499         * classpath/external/jsr166/java/util/concurrent/atomic/AtomicLongFieldUpdater.java:
500         Likewise.
501
502 2006-09-13  Andrew Haley  <aph@redhat.com>
503
504         * java/util/PriorityQueue.java: Throw IllegalArgumentException for
505         capacity < 1.
506         (Iterator.remove()): Decrement index after removing element.
507
508 2006-12-11  Jeroen Frijters  <jeroen@frijters.net>
509
510         * javax/net/ssl/SSLSocketFactory.java (getDefault):
511         Chain exception cause.
512
513 2006-12-11  Roman Kennke  <kennke@aicas.com>
514
515         * .classpath: Include ASM in Eclipse classpath.
516
517 2006-12-11  Andrew John Hughes  <gnu_andrew@member.fsf.org>
518
519         * gnu/java/lang/management/BeanImpl.java:
520         (translate(String)): Trim strings of whitespace.
521         * javax/management/MBeanAttributeInfo.java:
522         (MBeanAttributeInfo(String,String,Method,Method)):
523         Use Class.getName() for normal (non-parameterized) cases.
524         * javax/management/MBeanConstructorInfo.java:
525         (MBeanConstructorInfo(String, Constructor)):
526         Likewise.
527         * javax/management/MBeanOperationInfo.java:
528         (MBeanOperationInfo(String, Method)):
529         Likewise.
530
531 2006-12-11  Andrew John Hughes  <gnu_andrew@member.fsf.org>
532
533         * java/lang/Class.java:
534         (getClasses()): Return Class<?>[].
535         (internalGetClasses()): Likewise.
536         (getConstructor(Class<?>...)): Add type parameter
537         to parameters.
538         (getDeclaredConstructor(Class<?>...)): Likewise.
539         (getDeclaredClasses()): Return Class<?>[].
540         (getDeclaredClasses(boolean)): Likewise.
541         (getDeclaredConstructors()): Return Constructor<?>[].
542         (getDeclaredConstructors(boolean)): Likewise.
543         (getDeclaredMethod(String,Class<?>...)): Add type
544         parameter to parameters.
545         (getInterfaces()): Return Class<?>[].
546         (getMethods(String,Class<?>...)): Add type
547         parameter to parameters.
548         * java/text/CollationKey.java:
549         Make non-final.
550         * java/text/DecimalFormatSymbols.java:
551         Likewise.
552         
553 2006-12-11  Andrew John Hughes  <gnu_andrew@member.fsf.org>
554
555         * gnu/java/lang/management/BeanImpl.java:
556         (translate(String)): Handle Map and List as
557         Strings of the form "java.util.Map<K,V>" and
558         "java.util.List<E>"
559         * javax/management/MBeanAttributeInfo.java:
560         (MBeanAttributeInfo(String,String,Method,Method)):
561         Use generic parameter and return types.
562         * javax/management/MBeanConstructorInfo.java:
563         (MBeanConstructorInfo(String, Constructor)):
564         Use generic parameter types.
565         * javax/management/MBeanOperationInfo.java:
566         (MBeanOperationInfo(String, Method)):
567         Use generic parameter and return types.
568         
569 2006-12-10  Andrew John Hughes  <gnu_andrew@member.fsf.org>
570
571         * gnu/java/lang/management/BeanImpl.java:
572         (translate(String)): Comment out code for using type
573         variables for Map and List.
574         * java/lang/Thread.java:
575         (Thread(ThreadGroup,Runnable,String,long)): Fix
576         incrementation of totalThreadsCreated to be prior to use.
577         
578 2006-12-10  Andrew John Hughes  <gnu_andrew@member.fsf.org>
579
580         * javax/management/MBeanServerFactory.java:
581         (createMBeanServer(String)): Added security check.
582         (findMBeanServer(String)): Likewise.
583         (newMBeanServer(String)): Likewise.
584         (releaseMBeanServer(String)): Likewise.
585         * javax/management/MBeanServerPermission.java:
586         New file.
587         
588 2006-12-08  David Daney  <ddaney@avtrex.com>
589
590         * native/jni/java-nio/gnu_java_nio_VMChannel.c (is_non_blocking_fd):
591         Fix comment.
592
593 2006-12-08  David Daney  <ddaney@avtrex.com>
594
595         * NEWS: Mention URLConnection.[get|set]ReadTimeout.
596
597 2006-12-08  David Daney  <ddaney@avtrex.com>
598
599         * gnu/java/net/protocol/http/HTTPConnection.java (imports): Add
600         SocketException.
601         (HTTPConnection): Handle NumberFormatException in properties parsing.
602         (Pool.get): Set timeout on reused sockets.
603         * gnu/java/net/protocol/http/HTTPURLConnection.java (proxyPort):
604         Initialize.
605         (HTTPURLConnection): Cleanup properties handling.
606         (getConnection): Use both connection and read timeouts.
607         (setConnectTimeout): Removed.
608         (setReadTimeout): New method.
609         * java/net/URLConnection.java (timeout): Renamed to...
610         (connectTimeout): ... connectTimeout throughout.
611         (readTimeout): New field.
612         (getReadTimeout): New method.
613         (setReadTimeout): New method.
614
615 2006-12-08  Tania Bento  <tbento@redhat.com>
616
617         * java/awt/ScrollPane.java
618         (doLayout): Change the location of the scrollpane's child
619         to (0, 0).
620
621 2006-12-08  David Daney  <ddaney@avtrex.com>
622
623         * native/jni/java-nio/gnu_java_nio_VMChannel.c (is_non_blocking_fd):
624         New method.
625         (Java_gnu_java_nio_VMChannel_read__ILjava_nio_ByteBuffer_2): Throw
626         SocketTimeoutException if a blocking socket timesout.
627         (Java_gnu_java_nio_VMChannel_readScattering): Same.
628         (Java_gnu_java_nio_VMChannel_read__I): Same.
629         (Java_gnu_java_nio_VMChannel_connect): Initialize the fd set.
630         (Java_gnu_java_nio_VMChannel_connect6): Same.
631
632 2006-12-08  Mark Wielaard  <mark@klomp.org>
633
634         * configure.ac (VERSION): Set to 0.93-generics.
635         * NEWS: Add release date.
636
637 2006-12-08  Tania Bento  <tbento@redhat.com>
638
639         * java/awt/ScrollPane.java
640         (getScrollPosition): Throw NullPointerException if scrollpane
641         does have a child.
642         (setScrollPosition(int, int)): Throw NullPointerException if
643         scrollpane does have a child.  Check that both ints are within
644         the allowed bounds; If they are not, scroll to the closest allowed
645         bound.
646
647 2006-12-07  Roman Kennke  <kennke@aicas.com>
648
649         * javax/swing/JEditorPane.java
650         (EditorKitMapping): New inner helper class.
651         (editorKits): New static field for caching editor kit instances.
652         (static_initiazer): Initialize static mappings here.
653         (createEditorKitForContentType): Try to use cached instance.
654         Use correct classloader for loading.
655         (getEditorKitClassNameForContentType): Make use of EditorKitMapping
656         class.
657         (getEditorKitForContentType): Store the fetched editor kit.
658         Fallback to createDefaultEditorKit().
659         (init): Don't clean the static registry here.
660         (registerEditorKitForContentType(String,String,ClassLoader)):
661         Implemented.
662         (registerEditorKitForContentType(String,String)): Delegate to
663         the other version of this method with the thread's context
664         classloader.
665
666 2006-12-07  Mark Wielaard  <mark@klomp.org>
667
668         * examples/gnu/classpath/examples/swing/HtmlDemo.java
669         (setPage): Don't convert URL to String for setPage().
670
671 2006-12-07  Mark Wielaard  <mark@klomp.org>
672
673         * tools/Makefile.am (clean-local): Remove iasm and asm.lst.
674
675 2006-12-07  Mark Wielaard  <mark@klomp.org>
676
677         * tools/Makefile.am: Explicitly define  and use bootclasspath as
678         GLIBJ_BOOTCLASSPATH
679
680 2006-12-07  Mark Wielaard  <mark@klomp.org>
681
682         * javax/swing/JEditorPane.java (createEditorKitForContentType):
683         Always load from system class loader.
684
685 2006-12-07  Mark Wielaard  <mark@klomp.org>
686
687         * java/net/URL.java (URL(URL,String,URLStreamHandler,boolean)): New
688         private constructor.
689         (URL(URL,String,URLStreamHandler)): Call new constructor.
690         (URL(URL,String)): Likewise.
691         (URL(String)): Likewise.
692
693 2006-12-07  Tom Tromey  <tromey@redhat.com>
694
695         * NEWS: Mention ASM.
696         * INSTALL: Don't mention --with-asm.
697         * tools/external/README: New file.
698         * tools/toolwrapper.c (main): Don't use ASM_JAR.
699         * tools/gjavah.in: Don't use PATH_TO_ASM.
700         * tools/grmic.in: Likewise.
701         * tools/Makefile.am (GLIBJ_CLASSPATH): Removed PATH_TO_ASM, added
702         'asm'.
703         (javah, rmic): Removed variables.
704         (bin_PROGRAMS): Updated.
705         (gappletviewer_CFLAGS): Don't define ASM_JAR.
706         (gjarsigner_CFLAGS): Likewise.
707         (gkeytool_CFLAGS): Likewise.
708         (gjar_CFLAGS): Likewise.
709         (gnative2ascii_CFLAGS): Likewise.
710         (gserialver_CFLAGS): Likewise.
711         (grmiregistry_CFLAGS): Likewise.
712         (gtnameserv_CFLAGS): Likewise.
713         (gorbd_CFLAGS): Likewise.
714         (grmid_CFLAGS): Likewise.
715         (gjavah_CFLAGS): Likewise.
716         (grmic_CFLAGS): Likewise.
717         (bin_SCRIPTS): Updated.
718         (TOOLS_JAVA_FILES): Updated.
719         ($(TOOLS_ZIP)): Compile ASM sources.  Copy resource files.
720         * configure.ac: Removed --with-asm.  Always build gjavah.
721
722 2006-12-06  Roman Kennke  <kennke@aicas.com>
723
724         * examples/gnu/classpath/examples/swing/BrowserEditorKit.java:
725         New class.
726         * examples/gnu/classpath/examples/swing/HtmlDemo.java
727         (LoadActionListener): Call setPage() helper method.
728         (createContent): Register tweaked editor kit. For FormSubmitEvents
729         call submitForm(), otherwise setPage().
730         (postData): Helper method for posting form data.
731         (setPage): Helper method for navigating to a new URL.
732         (submitForm): Helper method for submitting a form.
733         * examples/gnu/classpath/examples/swing/forms.html:
734         Added text/password fields and select boxes.
735         * examples/gnu/classpath/examples/swing/welcome.html: Fixed typo.
736
737 2006-12-06  Roman Kennke  <kennke@aicas.com>
738
739         * javax/swing/text/html/FormView.java
740         (SubmitThread.postData): Implemented.
741         (SubmitThread.run): Pass data to postData().
742         (actionPerformed): Reset form when reset button is activated.
743         (createComponent): Add support for select lists and comboboxes.
744         Don't set value of text and password fields here, this is done
745         now in HTMLDocument for consistency.
746         (getElementFormData): Add support for fetching form data from
747         select lists and comboboxes as well as textareas.
748         (getSelectData): New helper method. Fetches form data from
749         select boxes.
750         (getTextAreaData): New helper method. Fetches form data from
751         textareas.
752         (resetForm): New helper method. Resets the entire form.
753         * javax/swing/text/html/HTMLDocument.java
754         (HTMLReader.FormAction.end): Handle SELECT and OPTION tags.
755         (HTMLReader.FormAction.start): Handle SELECT and OPTION tags.
756         (HTMLReader.FormAction.setModel): Initialize text and password
757         values here. Also, use the resetable special models.
758         Group radio buttons into ButtonGroup for exclusive selection.
759         (HTMLReader.FormTagAction): New class. Handles FORM tags.
760         (HTMLReader.buttonGroups): New field.
761         (HTMLReader.numOptions): New field.
762         (HTMLReader.option): New field.
763         (HTMLReader.selectModel): New field.
764         (HTMLReader.textAreaDocument): Make ResetablePlainDocument.
765         (HTMLReader.handleText): Handle OPTION text.
766         (HTMLReader.initTags): Map FORM tags to FormTagAction.
767         (HTMLReader.textAreaContent): Set initial content.
768         * javax/swing/text/html/Option.java
769         (Option): Make copy of attribute set. Initialize selected state.
770         (getValue): Fetch value from attribute set.
771         * javax/swing/text/html/ResetableModel.java: New interface.
772         * javax/swing/text/html/ResetablePlainDocument.java: New class.
773         Supports resetting the state.
774         * javax/swing/text/html/ResetableToggleButtonModel.java: Likewise.
775         * javax/swing/text/html/SelectComboBoxModel.java: Likewise.
776         * javax/swing/text/html/SelectListModel.java: Likewise.
777
778 2006-12-06  Roman Kennke  <kennke@aicas.com>
779
780         * javax/swing/text/DefaultCaret.java
781         (appear): Adjust visibility here.
782         (setDotImpl): Don't adjust visibility here.
783         (moveDotImpl): Don't adjust visibility here.
784
785 2006-12-06  Roman Kennke  <kennke@aicas.com>
786
787         * gnu/java/awt/peer/gtk/AsyncImage.java
788         (Loader.run): Synchronize on the AsyncImage to avoid threading
789         issues.
790         (addObservers): Check for obs==null outside and synchronize on
791         this inside to avoid locking issues.
792         (checkImage): New helper method.
793         (notifyObservers): Check that the correct lock is held and
794         remove actual locking.
795         * gnu/java/awt/peer/gtk/GtkToolkit.java
796         (checkImage): Added special handling for AsyncImages.
797         
798 2006-12-06  Roman Kennke  <kennke@aicas.com>
799
800         * examples/gnu/classpath/examples/swing/Demo.java
801         (getIcon): Made package private.
802         * examples/gnu/classpath/examples/swing/HtmlDemo.java
803         (hyperlinkUpdate): Convert URL to string.
804
805 2006-12-06  Mark Wielaard  <mark@klomp.org>
806
807         * gnu/java/awt/peer/gtk/AsyncImage.java (addObserver): Never notify
808         null Observer.
809
810 2006-12-06  Roman Kennke  <kennke@aicas.com>
811
812         * examples/gnu/classpath/examples/icons/back.png,
813         * examples/gnu/classpath/examples/icons/reload.png:
814         New icons for the HTML browser.
815         * examples/gnu/classpath/examples/swing/HtmlDemo.java
816         (history): New field. Manages the browsing history.
817         (HtmlDemo): Initialize history.
818         (createContent): Set location and add history. Add toolbar.
819         (createToolBar): New helper method.
820         (main): Make default size bigger.
821         * examples/gnu/classpath/examples/swing/frame1.html,
822         * examples/gnu/classpath/examples/swing/frame2.html,
823         * examples/gnu/classpath/examples/swing/frame3.html,
824         * examples/gnu/classpath/examples/swing/frame4.html,
825         * examples/gnu/classpath/examples/swing/frames.html,
826         * examples/gnu/classpath/examples/swing/tables.html:
827         New example pages.
828         * examples/gnu/classpath/examples/swing/welcome.html
829         Add a couple of links and new test pages.
830
831 2006-12-06  Roman Kennke  <kennke@aicas.com>
832
833         * javax/swing/JEditorPane.java
834         (getStream): Buffer the stream for efficiency.
835         (setPage): Don't scroll the view at this point.
836         * javax/swing/plaf/basic/BasicTextUI.java
837         (RootView.paint): Call RootView's setSize to get synchronization.
838         (RootView.setSize): Synchronize to prevent race in layout code.
839         * javax/swing/text/AbstractDocument.java
840         (notifyListeners): New field.
841         (fireChangedUpdate): Track notifyListener field.
842         (fireRemoveUpdate): Track notifyListener field.
843         (fireIndertUpdate): Track notifyListener field.
844         (writeLock): Check notifyListener and throw IllegalStateException.
845         * javax/swing/text/View.java
846         (preferenceChanged): Create local var for better thread safety and
847         more efficiency.
848
849 2006-12-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
850
851         * java/awt/ScrollPane.java (addNotify): Add a parent panel for any
852         lightweight component, not just for non-Panel components.
853         (addImpl): Do not call doLayout.
854         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
855         (setNativeBounds): Ensure widget parent is a GtkFixed before
856         calling gtk_fixed_move.
857         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
858         (setNativeBounds): Likewise.
859         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
860         (setNativeBounds): Likewise.
861
862 2006-12-06  Roman Kennke  <kennke@aicas.com>
863
864         * javax/swing/text/html/TableView.java
865         (RowView.layoutMajorAxis): Check column index for invalid value.
866         (updateGrid): Check column index for invalid value.
867
868 2006-12-06  Roman Kennke  <kennke@aicas.com>
869
870         * javax/swing/text/html/BlockView.java
871         (getAlignment): Align blocks horizontally by the superclass.
872         * javax/swing/text/html/HTMLEditorKit.java
873         (HTMLFactory.create): Replace equals comparison by == for efficiency.
874         Add mapping for misplaced tr, td and th tags. Include object mapping.
875         * javax/swing/text/html/TableView.java
876         (RowView.replace): Invalidate grid early.
877         (gridValid): Initialize with false.
878         (create): Only create RowView and CellView for correctly placed
879         tags. Avoid unnecessary casts.
880         (getAlignment): Removed.
881         (replace): Invalidate grid early.
882
883 2006-12-06  Francis Kung  <fkung@redhat.com>
884
885         * java/awt/geom/RectangularShape.java
886         (getBounds): Remove empty rectangle check.
887
888 2006-12-06  Ben Konrath  <bkonrath@redhat.com>
889
890         Fixes PR 29853.
891         * gnu/xml/dom/DomAttr.java: Don't report mutation if oldValue and
892         newValue are the same.
893         * gnu/xml/dom/DomNode.java: Set parent if null during mutation.
894
895 2006-12-06  Tania Bento  <tbento@redhat.com>
896
897         * javax/swing/border/CompoundBorder.java:
898         (isBorderOpaque): If inside border is null, return true if outside
899         border is opaque, false otherwise; if outside border is null, return
900         true if inside border is opaque, false otherwise; if inside or
901         outside border are both not null, then return true only if both the
902         inside and outside border are opaque, false otherwise.
903
904 2006-12-06  Tania Bento  <tbento@redhat.com>
905
906         * javax/swing/border/CompoundBorder.java:
907         (isBorderOpaque): If inside and outside border both have a null
908         value, return true.
909
910 2006-12-06  Chris Burdess  <dog@gnu.org>
911
912         Fixes PR 29272.
913         * javax/xml/parsers/DocumentBuilderFactory.java: Fix broken Javadoc.
914         * gnu/xml/stream/SAXParser.java: Fix file descriptor leak.
915
916 2006-12-06  Chris Burdess  <dog@gnu.org>
917
918         Fixes PR 29264.
919         * gnu/xml/stream/XMLStreamWriterImpl.java: Allow arbitrary text in
920           writeDTD method.
921
922 2006-12-06  Chris Burdess  <dog@gnu.org>
923
924         Fixes PR 28816.
925         * javax/xml/validation/SchemaFactory.java: Use correct algorithm to
926           discover schema factory implementation class.
927
928 2006-12-05  Francis Kung  <fkung@redhat.com>
929
930         * java/awt/BasicStroke.java
931         (capEnd): Prevent division by zero.
932         * java/awt/geom/Arc2D.java
933         (ArcIterator.ArcIterator): Do not shift the arc to make the extent positive.
934         (ArcIterator.currentSegment): Handle a negative extent.
935
936 2006-12-05  Francis Kung  <fkung@redhat.com>
937
938         * gnu/java/awt/peer/gtk/BufferedImageGraphics.java
939         (constructor): Handle translated subimages properly, ie, if the image's
940         0,0 position is not the data buffer's first element.
941
942 2006-12-05  Roman Kennke  <kennke@aicas.com>
943
944         * gnu/java/awt/peer/gtk/AsyncImage.java
945         (Loader.run): Nullify observers after loading.
946         (observers): Made package private.
947         (addObserver): Check for null observers field. Create local
948         variable for thread safety.
949         (getHeight): Use addObserver() for checking state of field
950         and notifying observer when necessary.
951         (getWidth): Use addObserver() for checking state of field
952         and notifying observer when necessary.
953         (getProperty): Use addObserver() for checking state of field
954         and notifying observer when necessary.
955         (notifyObservers): Check for null observers field. Create local
956         variable for thread safety.
957
958 2006-12-05  Roman Kennke  <kennke@aicas.com>
959
960         * javax/swing/text/html/HTMLEditorKit.java
961         (HTMLFactory.create): Removed debug output.
962         * javax/swing/text/html/InlineView.java
963         (getBreakWeight): Likewise.
964         * javax/swing/text/html/StyleSheet.java
965         (addRule): Likewise.
966         (ListPainter.paint): Removed debug output.
967
968 2006-12-05  Roman Kennke  <kennke@aicas.com>
969
970         * javax/swing/text/html/BlockView.java
971         (painter): Made package visible.
972         * javax/swing/text/html/StyleSheet.java
973         (translateBorder): New helper method.
974         (translateHTMLToCSS): Add mappings for border attributes.
975         * javax/swing/text/html/TableView.java
976         Made class subclass of BlockView to get CSS goodness.
977         (CellView.rowSpan): New field.
978         (CellView.setPropertiesFromAttributes): Fetch rowspan.
979         (RowView.overlap): New field.
980         (RowView.rowIndex): New field.
981         (RowView.layoutMajorAxis): Skip overlapping cells.
982         (RowView.layoutMinorAxis): Layout cells that span more than 1 row.
983         (numColumns): New field.
984         (tmpRect): New field.
985         (TableView): Initialize tmpRect.
986         (calculateColumnRequirements): Adjusted and fixed for multirows.
987         (getAlignment): Overridden to center tables.
988         (paint): Overridden to fix clipping.
989         (getStyleSheet): Made protected.
990         (layoutMajorAxis): Invalidate rows.
991         (setPropertiesFromAttributes): Made protected and call super.
992         (updateGrid): Update the overlapping information for multirows.
993
994 2006-12-05  Roman Kennke  <kennke@aicas.com>
995
996         * gnu/java/awt/peer/gtk/AsyncImage.java
997         (addObserver): Check for null and ignore null observers.
998         (getWidth): Check for null and ignore null observers.
999         (getHeight): Check for null and ignore null observers.
1000         (getProperty): Check for null and ignore null observers.
1001
1002 2006-12-05  Francis Kung  <fkung@redhat.com>
1003
1004         * java/awt/BasicStroke.java
1005         (capEnd): Prevent division by zero.
1006         * java/awt/geom/Arc2D.java
1007         (ArcIterator.ArcIterator): Do not shift the arc to make the extent positive.
1008         (ArcIterator.currentSegment): Handle a negative extent.
1009
1010 2006-12-05  Francis Kung  <fkung@redhat.com>
1011
1012         * gnu/java/awt/peer/gtk/BufferedImageGraphics.java
1013         (constructor): Handle translated subimages properly, ie, if the image's
1014         0,0 position is not the data buffer's first element.
1015
1016 2006-12-05  Roman Kennke  <kennke@aicas.com>
1017
1018         * javax/swing/text/html/ImageView.java
1019         (imageUpdate): Use spans field to determine if the CSS width/height
1020         are set. Call safePreferenceChanged to protect view structure
1021         from threading issues.
1022         (spans): Made package private.
1023         (ImageView): Initialize loadOnDemand with false.
1024         (loadImage): Call Toolkit.prepareImage() to make sure we have
1025         our Observer registered.
1026         (safePreferenceChanged): New helper method. Calls preferenceChanged
1027         in a thread safe environment.
1028
1029 2006-12-05  Roman Kennke  <kennke@aicas.com>
1030
1031         * NEWS: Add entry about improved HTML support.
1032
1033 2006-12-05  Roman Kennke  <kennke@aicas.com>
1034
1035         * javax/swing/text/html/ImageView.java
1036         (ImageView): Initialize spans array here.
1037         (setPropertiesFromAttributes): Moved init of spans array to
1038         constructor.
1039
1040 2006-12-05  Roman Kennke  <kennke@aicas.com>
1041
1042         * javax/swing/text/html/BlockView.java
1043         (painter): Made package visible.
1044         * javax/swing/text/html/StyleSheet.java
1045         (translateBorder): New helper method.
1046         (translateHTMLToCSS): Add mappings for border attributes.
1047         * javax/swing/text/html/TableView.java
1048         Made class subclass of BlockView to get CSS goodness.
1049         (CellView.rowSpan): New field.
1050         (CellView.setPropertiesFromAttributes): Fetch rowspan.
1051         (RowView.overlap): New field.
1052         (RowView.rowIndex): New field.
1053         (RowView.layoutMajorAxis): Skip overlapping cells.
1054         (RowView.layoutMinorAxis): Layout cells that span more than 1 row.
1055         (numColumns): New field.
1056         (tmpRect): New field.
1057         (TableView): Initialize tmpRect.
1058         (calculateColumnRequirements): Adjusted and fixed for multirows.
1059         (getAlignment): Overridden to center tables.
1060         (paint): Overridden to fix clipping.
1061         (getStyleSheet): Made protected.
1062         (layoutMajorAxis): Invalidate rows.
1063         (setPropertiesFromAttributes): Made protected and call super.
1064         (updateGrid): Update the overlapping information for multirows.
1065
1066 2006-12-05  Roman Kennke  <kennke@aicas.com>
1067
1068         * javax/swing/text/html/HTMLEditorKit.java
1069         (HTMLFactory.create): Removed debug output.
1070         * javax/swing/text/html/InlineView.java
1071         (getBreakWeight): Likewise.
1072         * javax/swing/text/html/StyleSheet.java
1073         (addRule): Likewise.
1074         (ListPainter.paint): Removed debug output.
1075
1076 2006-12-06  Roman Kennke  <kennke@aicas.com>
1077
1078         * javax/swing/text/html/BlockView.java
1079         (getAlignment): Align blocks horizontally by the superclass.
1080         * javax/swing/text/html/HTMLEditorKit.java
1081         (HTMLFactory.create): Replace equals comparison by == for efficiency.
1082         Add mapping for misplaced tr, td and th tags. Include object mapping.
1083         * javax/swing/text/html/TableView.java
1084         (RowView.replace): Invalidate grid early.
1085         (gridValid): Initialize with false.
1086         (create): Only create RowView and CellView for correctly placed
1087         tags. Avoid unnecessary casts.
1088         (getAlignment): Removed.
1089         (replace): Invalidate grid early.
1090
1091
1092 2006-12-06  Roman Kennke  <kennke@aicas.com>
1093
1094         * javax/swing/text/html/TableView.java
1095         (RowView.layoutMajorAxis): Check column index for invalid value.
1096         (updateGrid): Check column index for invalid value.
1097
1098 2006-12-06  Roman Kennke  <kennke@aicas.com>
1099
1100         * javax/swing/JEditorPane.java
1101         (getStream): Buffer the stream for efficiency.
1102         (setPage): Don't scroll the view at this point.
1103         * javax/swing/plaf/basic/BasicTextUI.java
1104         (RootView.paint): Call RootView's setSize to get synchronization.
1105         (RootView.setSize): Synchronize to prevent race in layout code.
1106         * javax/swing/text/AbstractDocument.java
1107         (notifyListeners): New field.
1108         (fireChangedUpdate): Track notifyListener field.
1109         (fireRemoveUpdate): Track notifyListener field.
1110         (fireIndertUpdate): Track notifyListener field.
1111         (writeLock): Check notifyListener and throw IllegalStateException.
1112         * javax/swing/text/View.java
1113         (preferenceChanged): Create local var for better thread safety and
1114         more efficiency.
1115
1116 2006-12-06  Roman Kennke  <kennke@aicas.com>
1117
1118         * examples/gnu/classpath/examples/icons/back.png,
1119         * examples/gnu/classpath/examples/icons/reload.png:
1120         New icons for the HTML browser.
1121         * examples/gnu/classpath/examples/swing/HtmlDemo.java
1122         (history): New field. Manages the browsing history.
1123         (HtmlDemo): Initialize history.
1124         (createContent): Set location and add history. Add toolbar.
1125         (createToolBar): New helper method.
1126         (main): Make default size bigger.
1127         * examples/gnu/classpath/examples/swing/frame1.html,
1128         * examples/gnu/classpath/examples/swing/frame2.html,
1129         * examples/gnu/classpath/examples/swing/frame3.html,
1130         * examples/gnu/classpath/examples/swing/frame4.html,
1131         * examples/gnu/classpath/examples/swing/frames.html,
1132         * examples/gnu/classpath/examples/swing/tables.html:
1133         New example pages.
1134         * examples/gnu/classpath/examples/swing/welcome.html
1135         Add a couple of links and new test pages.
1136
1137 2006-12-06  Roman Kennke  <kennke@aicas.com>
1138
1139         * examples/gnu/classpath/examples/swing/Demo.java
1140         (getIcon): Made package private.
1141         * examples/gnu/classpath/examples/swing/HtmlDemo.java
1142         (hyperlinkUpdate): Convert URL to string.
1143
1144 2006-12-06  Roman Kennke  <kennke@aicas.com>
1145
1146         * javax/swing/text/DefaultCaret.java
1147         (appear): Adjust visibility here.
1148         (setDotImpl): Don't adjust visibility here.
1149         (moveDotImpl): Don't adjust visibility here.
1150
1151 2006-12-06  Roman Kennke  <kennke@aicas.com>
1152
1153         * javax/swing/text/html/FormView.java
1154         (SubmitThread.postData): Implemented.
1155         (SubmitThread.run): Pass data to postData().
1156         (actionPerformed): Reset form when reset button is activated.
1157         (createComponent): Add support for select lists and comboboxes.
1158         Don't set value of text and password fields here, this is done
1159         now in HTMLDocument for consistency.
1160         (getElementFormData): Add support for fetching form data from
1161         select lists and comboboxes as well as textareas.
1162         (getSelectData): New helper method. Fetches form data from
1163         select boxes.
1164         (getTextAreaData): New helper method. Fetches form data from
1165         textareas.
1166         (resetForm): New helper method. Resets the entire form.
1167         * javax/swing/text/html/HTMLDocument.java
1168         (HTMLReader.FormAction.end): Handle SELECT and OPTION tags.
1169         (HTMLReader.FormAction.start): Handle SELECT and OPTION tags.
1170         (HTMLReader.FormAction.setModel): Initialize text and password
1171         values here. Also, use the resetable special models.
1172         Group radio buttons into ButtonGroup for exclusive selection.
1173         (HTMLReader.FormTagAction): New class. Handles FORM tags.
1174         (HTMLReader.buttonGroups): New field.
1175         (HTMLReader.numOptions): New field.
1176         (HTMLReader.option): New field.
1177         (HTMLReader.selectModel): New field.
1178         (HTMLReader.textAreaDocument): Make ResetablePlainDocument.
1179         (HTMLReader.handleText): Handle OPTION text.
1180         (HTMLReader.initTags): Map FORM tags to FormTagAction.
1181         (HTMLReader.textAreaContent): Set initial content.
1182         * javax/swing/text/html/Option.java
1183         (Option): Make copy of attribute set. Initialize selected state.
1184         (getValue): Fetch value from attribute set.
1185         * javax/swing/text/html/ResetableModel.java: New interface.
1186         * javax/swing/text/html/ResetablePlainDocument.java: New class.
1187         Supports resetting the state.
1188         * javax/swing/text/html/ResetableToggleButtonModel.java: Likewise.
1189         * javax/swing/text/html/SelectComboBoxModel.java: Likewise.
1190         * javax/swing/text/html/SelectListModel.java: Likewise.
1191
1192 2006-12-06  Roman Kennke  <kennke@aicas.com>
1193
1194         * examples/gnu/classpath/examples/swing/BrowserEditorKit.java:
1195         New class.
1196         * examples/gnu/classpath/examples/swing/HtmlDemo.java
1197         (LoadActionListener): Call setPage() helper method.
1198         (createContent): Register tweaked editor kit. For FormSubmitEvents
1199         call submitForm(), otherwise setPage().
1200         (postData): Helper method for posting form data.
1201         (setPage): Helper method for navigating to a new URL.
1202         (submitForm): Helper method for submitting a form.
1203         * examples/gnu/classpath/examples/swing/forms.html:
1204         Added text/password fields and select boxes.
1205         * examples/gnu/classpath/examples/swing/welcome.html: Fixed typo.
1206
1207 2006-12-07  Mark Wielaard  <mark@klomp.org>
1208
1209         * java/net/URL.java (URL(URL,String,URLStreamHandler,boolean)): New
1210         private constructor.
1211         (URL(URL,String,URLStreamHandler)): Call new constructor.
1212         (URL(URL,String)): Likewise.
1213         (URL(String)): Likewise.
1214
1215 2006-12-07  Mark Wielaard  <mark@klomp.org>
1216
1217         * javax/swing/JEditorPane.java (createEditorKitForContentType):
1218         Always load from system class loader.
1219
1220 2006-12-06  Ben Konrath  <bkonrath@redhat.com>
1221
1222         Fixes PR 29853.
1223         * gnu/xml/dom/DomAttr.java: Don't report mutation if oldValue and
1224         newValue are the same.
1225         * gnu/xml/dom/DomNode.java: Set parent if null during mutation.
1226
1227 2006-12-06  Chris Burdess  <dog@gnu.org>
1228
1229         Fixes PR 29272.
1230         * javax/xml/parsers/DocumentBuilderFactory.java: Fix broken Javadoc.
1231         * gnu/xml/stream/SAXParser.java: Fix file descriptor leak.
1232
1233 2006-12-06  Chris Burdess  <dog@gnu.org>
1234
1235         Fixes PR 29264.
1236         * gnu/xml/stream/XMLStreamWriterImpl.java: Allow arbitrary text in
1237         writeDTD method.
1238
1239 2006-12-056  Chris Burdess  <dog@gnu.org>
1240
1241         Fixes PR 28816.
1242         * javax/xml/validation/SchemaFactory.java: Use correct algorithm to
1243         discover schema factory implementation class.
1244
1245 2006-12-05  Roman Kennke  <kennke@aicas.com>
1246
1247         * gnu/java/awt/peer/gtk/AsyncImage.java: New class. Supports
1248         asynchronous loading of images.
1249         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
1250         (drawImage): Fetch real image from possibly AsyncImage.
1251         * gnu/java/awt/peer/gtk/ComponentGraphics.java
1252         (drawImage): Fetch real image from possibly AsyncImage.
1253         * gnu/java/awt/peer/gtk/GtkToolkit.java
1254         (createImage(URL)): Create async image.
1255         (imageOrError): Made method static for easy access from AsyncImage.
1256         (prepareImage): For async images, register the observer to the
1257         image.
1258
1259 2006-12-05  Roman Kennke  <kennke@aicas.com>
1260
1261         (paintComponent): Include paint area from event.
1262         (updateComponent): Include paint area from event.
1263
1264 2006-12-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
1265
1266         * java/awt/ScrollPane.java (addNotify): Add a parent panel for any
1267         lightweight component, not just for non-Panel components.
1268         (addImpl): Do not call doLayout.
1269         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1270         (setNativeBounds): Ensure widget parent is a GtkFixed before
1271         calling gtk_fixed_move.
1272         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
1273         (setNativeBounds): Likewise.
1274         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1275         (setNativeBounds): Likewise.
1276
1277 2006-12-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
1278
1279         * java/awt/Component.java (getFontImpl): Return a default font if
1280         topmost parent's font is null.
1281
1282 2006-12-04  Mark Wielaard  <mark@klomp.org>
1283
1284         * javax/swing/text/html/CSS.java (parseMarginShorthand):
1285         Remove debug output.
1286
1287 2006-12-04  Roman Kennke  <kennke@aicas.com>
1288
1289         * java/awt/font/TextLayout.java
1290         (hitTestChar): Fixed conditions for inclusion of range.
1291         Use layout information in the run for more efficiency.
1292
1293 2006-12-04  Roman Kennke  <kennke@aicas.com>
1294
1295         * javax/swing/text/GlyphView.java
1296         (J2DGlyphPainter): New inner class.
1297         (checkPainter): For Java2D capable environments create
1298         a J2DGlyphPainter.
1299
1300 2006-12-04  Roman Kennke  <kennke@aicas.com>
1301
1302         * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
1303         (FreeTypeGlyphVector): Don't filter control chars here.
1304         (getGlyphs): Filter control chars and replace them by
1305         hair space char.
1306
1307 2006-12-04  Roman Kennke  <kennke@aicas.com>
1308
1309         * native/jni/java-nio/gnu_java_nio_VMChannel.c
1310         (Java_gnu_java_nio_VMChannel_connect): Retry on EINTR.
1311
1312 2006-12-04  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1313
1314         * gnu/java/lang/management/BeanImpl.java:
1315         (translate(String)): Don't assume the list uses "E",
1316         just use the first and only type variable.
1317         * java/lang/management/ManagementFactory.java:
1318         (getPlatformMBeanServer()): Register logging bean.
1319         * javax/management/openmbean/OpenType.java:
1320         (OpenType(String,String,String)): Actually use
1321         the string created to handle arrays.
1322         
1323 2006-12-04  Mark Wielaard  <mark@klomp.org>
1324
1325         * native/jni/java-nio/gnu_java_nio_VMChannel.c
1326         (JCL_thread_interrupted): Use CallStaticBooleanMethod.
1327
1328 2006-12-04  Mark Wielaard  <mark@klomp.org>
1329
1330         * vm/reference/gnu/java/nio/VMChannel.java (isThreadInterrupted):
1331         Make static.
1332         * native/jni/java-nio/gnu_java_nio_VMChannel.c
1333         (JCL_thread_interrupted): Only take JNIEnv.
1334         (vm_channel_class): New static variable.
1335         (initID): Set vm_channel_class.
1336         Wrap all reads() and writes() in do-while blocks that check
1337         interrupted status.
1338
1339 2006-12-04  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1340
1341         * gnu/javax/management/Server.java:
1342         Make map final and initialise it.
1343         (unregisterMBean(ObjectName)): Match against
1344         delegate's object name and not the instance.
1345         * java/lang/management/ManagementFactory.java:
1346         Added constant fields.
1347         (getPlatformMBeanServer()): Implemented.
1348         * javax/management/MBeanServerFactory.java: New file.
1349         
1350 2006-12-04  Roman Kennke  <kennke@aicas.com>
1351
1352         * javax/swing/text/BoxView.java
1353         (paint): Replaced painting algorithm with more simple and more
1354         reliable painting of the box.
1355         * javax/swing/text/html/BlockView.java
1356         (PositionInfo): New inner class. Stores additional CSS
1357         positioning information.
1358         (positionInfo): New field.
1359         (BlockView): Initialize positionInfo field.
1360         (fetchLayoutInfo): New helper method. Fetches additional
1361         CSS positioning information.
1362         (layoutMajorAxis): Perform additional CSS layout.
1363         (layoutMinorAxis): Perform additional CSS layout.
1364         (positionView): New helper method.
1365         (replace): Overridden to fetch additional layout information.
1366         * javax/swing/text/html/CSS.java
1367         (Attribute.POSITION): New field.
1368         (Attribute.LEFT): New field.
1369         (Attribute.RIGHT): New field.
1370         (Attribute.TOP): New field.
1371         (Attribute.BOTTOM): New field.
1372         (getValue): Create Length for left, right, top and bottom
1373         attributes.
1374
1375 2006-12-04  Roman Kennke  <kennke@aicas.com>
1376
1377         * gnu/javax/swing/text/html/parser/support/Parser.java
1378         (Sgml): Consume any whitespace that immediately follows
1379         and sgml insertion.
1380         (parseDocument): Consume any initial whitespace.
1381
1382 2006-12-03  Mark Wielaard  <mark@klomp.org>
1383
1384         * gnu/javax/management/Server.java (beans): Initialize.
1385         (registerMBean): Don't initialize beans.
1386
1387 2006-12-03  Mark Wielaard  <mark@klomp.org>
1388
1389         * java/util/logging/LogManager.java (getLevelProperty): Check
1390         whether value is null before passing to Level.parse().
1391
1392 2006-12-04  Robert Lougher  <rob.lougher@gmail.com>
1393
1394         * java/lang/management/ThreadInfo.java (ThreadInfo): Check
1395         whether given a null lock and lockOwner.
1396
1397 2006-12-03  Mark Wielaard  <mark@klomp.org>
1398
1399         * javax/swing/JEditorPane.java (PageLoader.in): Made a PageStream.
1400         (PageLoader.page): Made package local.
1401         (PageLoader.run): Don't reset loader.
1402         (PageLoader.cancel): New method.
1403         (loading): Renamed to loader.
1404         (getPage): Return loader.page.
1405         (setPage): Always set loader. Never reset to null.
1406
1407 2006-12-03  Mark Wielaard  <mark@klomp.org>
1408
1409         * javax/swing/plaf/basic/BasicTreeUI.java (paint): Check whether
1410         path[k] is null.
1411         (isLastChild): Return false when path is null.
1412
1413 2006-12-03  Mark Wielaard  <mark@klomp.org>
1414
1415         * gnu/java/awt/peer/gtk/GtkComponentPeer.java (paintArea): Renamed
1416         to currentPaintArea.
1417         (paintComponent): Work with local reference to currentPaintArea.
1418         (updateComponent): Likewise.
1419         (coalescePaintEvent): Set currentPaintArea.
1420
1421 2006-12-02  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1422
1423         * javax/management/MBeanServerBuilder.java: New file.
1424         
1425 2006-12-01  Mark Wielaard  <mark@klomp.org>
1426
1427         * java/text/DecimalFormat.java (parse): Always increment parsing
1428         index and adjust pos result.
1429
1430 2006-12-01  Roman Kennke  <kennke@aicas.com>
1431
1432         * javax/swing/text/html/HTML.java
1433         (Attribute.DYNAMIC_CLASS): New field.
1434         (Attribute.PSEUDO_CLASS): New field.
1435         * javax/swing/text/html/HTMLDocument.java
1436         (HTMLReader.CharacterAction.start): Initialize anchor with link
1437         pseudo attribute.
1438         (updateSpecialClass): New helper method. Updates the dynamic
1439         or pseudo class for anchor tags.
1440         * javax/swing/text/html/HTMLEditorKit.java
1441         (LinkController.lastAnchorElement): New field. For tracking
1442         enter/exit of anchors.
1443         (LinkController.activateLink): Set pseudo class to 'visited'.
1444         (LinkController.mouseMoved): Added support for tracking
1445         the 'hover' dynamic class.
1446         * javax/swing/text/html/InlineView.java
1447         (changedUpdate): Fetch new properties.
1448         * javax/swing/text/html/StyleSheet.java
1449         (attributeSetToMap): New helper method.
1450         (getRule): Also append dynamic and pseudo class to key.
1451         (resolveStyle): Resolve style based generally on all attributes.
1452         * javax/swing/text/html/TableView.java
1453         (RowView.layoutMajorAxis): Make sure the grid is valid.
1454         (updateGrid): Made package private.
1455         * gnu/javax/swing/text/html/css/Selector.java
1456         (calculateSpecificity): Added support for dynamic and pseudo classes.
1457         (matches): Changed to operate on general attributes.
1458         Added support for dynamic and pseudo classes.
1459
1460 2006-12-01  Mario Torre  <neugens@limasoftware.net>
1461
1462         * java/text/DecimalFormat.java (formatInternal): move the formatting of
1463         fractional portion in a separate method.
1464         Also fixes the handling of decimal separator and its associated field.
1465         (handleFractionalPart): new method, needed to relax a bit
1466         formatInternal.
1467         
1468 2006-12-01  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1469
1470         * java/beans/beancontext/BeanContextServicesSupport.java:
1471         (BCSSProxyServiceProvider.getCurrentServiceSelectors(BeanContextServices,
1472         Class)): Implemented.
1473         (BCSSProxyServiceProvider.getService(BeanContextServices, Object,
1474         Class, Object)): Implemented.
1475         (BCSSProxyServiceProvider.releaseService(BeanContextServices,
1476         Object, Object)): Implemented.
1477         (BCSSProxyServiceProvider.serviceRevoked(BeanContextServiceRevokedEvent)):
1478         Implemented.
1479         (initialiseBeanContextResources()): Implemented.
1480         (releaseBeanContextResoures()): Implemented.
1481         
1482 2006-12-01  Mark Wielaard  <mark@klomp.org>
1483
1484         * include/gnu_java_awt_peer_gtk_GdkFontPeer.h: Regenerated.
1485
1486 2006-12-01  Roman Kennke  <kennke@aicas.com>
1487
1488         * gnu/javax/swing/text/html/css/BorderStyle.java: New class for
1489         handling border styles.
1490         * gnu/javax/swing/text/html/css/BorderWidth.java
1491         (isValid): New method.
1492         * gnu/javax/swing/text/html/css/Length.java
1493         (isValid): New method.
1494         * javax/swing/text/html/CSS.java
1495         (addInternal): Added shorthand parsing for border, padding and
1496         margin.
1497         (parseBackgroundShorthand): Added API docs.
1498         (parsePaddingShorthand): New method. Handles padding shorthand
1499         values.
1500         (parseMarginShorthand): New method. Handles margin shorthand
1501         values.
1502         (parseBorderShorthand): New method. Handles border shorthand
1503         values.
1504         * javax/swing/text/html/StyleSheet.java
1505         (translateHTMLToCSS): Set specific padding attributes.
1506         (BoxPainter.BoxPainter): Don't handle PADDING and MARGIN here.
1507         These shorthands are now handled in CSS.
1508         (BoxPainter.paint): Exclude the outer margin.
1509
1510 2006-12-01  Roman Kennke  <kennke@aicas.com>
1511
1512         * gnu/javax/swing/text/html/css/Length.java
1513         (emBase): New field.
1514         (exBase): New field.
1515         (isFontEMRelative): New field.
1516         (isFontEXRelative): New field.
1517         (Length): Recognize and setup EM and EX relative values.
1518         (getValue): Handle EM and EX relative values.
1519         (isEMRelative): New method.
1520         (isEXRelative): New method.
1521         (setEMBase): New method.
1522         (setEXBase): New method.
1523         (setFontBases): New method.
1524         * gnu/javax/swing/text/html/parser/support/Parser.java
1525         (_handleEmptyTag): Use new isBlock() helper method.
1526         (_handleEndTag_remaining): Use new isBlock() helper method.
1527         (_handleStartTag): Consume whitespace after block start tag.
1528         (Comment): Consume whitespace after a comment.
1529         (isBlock): New helper method.
1530         (readAttributes): Consider all characters in unquoted attribute
1531         values.
1532         * javax/swing/text/html/BlockView.java
1533         (layoutMinorAxis): Use cached span value.
1534         (paint): Added debug code (commented out).
1535         (setPropertiesFromAttributes): Set the EM and EX base on lengths.
1536         * javax/swing/text/html/CSSBorder.java
1537         (CSSBorder): Take StyleSheet as argument. Call getBorderWidth()
1538         with stylesheet.
1539         (getBorderWidth): Set the EM and EX base on the length values.
1540         * javax/swing/text/html/HTMLDocument.java
1541         (HTMLReader.ParagraphAction.end): Do not set the inParagraph field.
1542         (HTMLReader.ParagraphAction.start): Do not set the inParagraph field.
1543         (HTMLReader.inImpliedParagraph): Removed.
1544         (HTMLReader.inParagraph): Removed.
1545         (HTMLReader.parseStack): New field.
1546         (HTMLReader.addContent): Use new paragraph handling.
1547         (HTMLReader.addSpecialElement): Use new paragraph handling.
1548         (HTMLReader.blockClose): Use new paragraph handling.
1549         (HTMLReader.blockOpen): Use new paragraph handling.
1550         (HTMLReader.inImpliedParagraph): New helper method.
1551         (HTMLReader.inParagraph): New helper method.
1552         * javax/swing/text/html/ImageView.java
1553         (attributes): New field. Caches view attributes.
1554         (spans): New field. Caches CSS spans.
1555         (getAttributes): Correctly setup CSS view attributes.
1556         (getPreferredSpan): Use caches spans.
1557         (getStyleSheet): Use the view's getDocument() method.
1558         (setPropertiesFromAttributes): Cache spans and setup EM and EX.
1559         (updateSize): Use cached spans.
1560         * javax/swing/text/html/ParagraphView.java
1561         (setPropertiesFromAttributes): Setup EM and EX.
1562         * javax/swing/text/html/StyleSheet.java
1563         (BoxPainter.BoxPainter): Setup EM and EX correctly.
1564         (getEMBase): New helper method.
1565         (getEXBase): New helper method.
1566         * javax/swing/text/html/TableView.java
1567         (width): New field. Caches the table width.
1568         (calculateMinorAxisRequirements): Use caches span.
1569         (setPropertiesFromAttributes): Cache span and setup EM/EX.
1570         (updateGrid): Correctly setup EM/EX.
1571
1572 2006-11-30  Roman Kennke  <kennke@aicas.com>
1573
1574         * javax/swing/text/html/FormSubmitEvent.java: New class.
1575         * javax/swing/text/html/FormView.java
1576         (SubmitThread): New class for submitting data in a separate thread.
1577         (actionPerformed): Fetch the actual for data.
1578         (addData): New helper method.
1579         (getElementFormData): New helper method.
1580         (getFormData): New helper method.
1581         (getInputFormData): New helper method.
1582         (submitData): Implemented.
1583         * javax/swing/text/html/FrameView.java
1584         (createComponent): Add this as hyperlink listener.
1585         Set the target document as frame document.
1586         (getTopEditorPane): New helper method.
1587         (hyperlinkUpdate): Implementation of the HyperlinkListener interface.
1588         (handleHyperlinkEvent): New helper method.
1589         (handleFormSubmitEvent): New helper method.
1590         * javax/swing/text/html/HTMLDocument.java
1591         (HTMLReader.BaseAction.start): Track the base target.
1592         (HTMLReader.BaseAction.end): Removed.
1593         (baseTarget): New field.
1594         (frameDocument): New field.
1595         (getBaseTarget): New property accessor.
1596         (isFrameDocument): New property accessor.
1597         (processHTMLFrameHyperlinkEvent): Implemented.
1598         (setFrameDocument): New property accessor.
1599         (updateFrame): New helper method.
1600         (updateFrameSet): New helper method.
1601         * javax/swing/text/html/HTMLEditorKit.java
1602         (LinkController.createHyperlinkEvent): Handle frame documents.
1603         (autoFormSubmission): New field.
1604         (HTMLEditorKit): Set autoFormSubmission to true.
1605         (isAutoFormSubmission): New property accessor.
1606         (setAutoFormSubmission): New property accessor.
1607
1608 2006-11-30  Roman Kennke  <kennke@aicas.com>
1609
1610         * javax/swing/text/ElementIterator.java
1611         (ElementRef): New inner class.
1612         (currentDepth): Removed.
1613         (currentElement): Removed.
1614         (previousItem): Removed.
1615         (stack): New field. Holds the iteration stack.
1616         (state): Removed.
1617         (ElementIterator(Document)): Removed init of removed fields.
1618         (ElementIterator(Element)): Removed init of removed fields.
1619         (current): Changed to stack based algorithm.
1620         (deepestLeaf): New helper method.
1621         (depth): Changed to stack based algorithm.
1622         (first): Changed to stack based algorithm.
1623         (next): Changed to stack based algorithm.
1624         (previous): Changed to stack based algorithm.
1625
1626 2006-11-30  Francis Kung  <fkung@redhat.com>
1627
1628         * .settings/org.eclipse.jdt.core.prefs: Set compilar compliance to 1.4.
1629         * .externalToolBuilders/ClasspathJar.launch: Include sun.* classses.
1630
1631 2006-11-30  Francis Kung  <fkung@redhat.com>
1632
1633         * gnu/java/awt/peer/gtk/BufferedImageGraphics.java
1634         (draw): Set transform in buffered composite.
1635         (drawComposite): Do not transform bounds; round bounds.
1636         (drawGlyphVector):  Set transform in buffered composite.
1637         (drawRenderedImage):  Set transform in buffered composite.
1638         (fill):  Set transform in buffered composite.
1639         (updateBufferedImage): Fix scanline & height calculations.
1640         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
1641         (createPath): Simplify width & height calculation.
1642         (drawImage): Also transform width & height.
1643
1644 2006-11-30  Roman Kennke  <kennke@aicas.com>
1645
1646         * javax/swing/text/html/FrameSetView.java: New class. Implements
1647         HTML framesets.
1648         * javax/swing/text/html/FrameView.java: New class. Implements
1649         HTML frames.
1650         * javax/swing/text/html/HTMLDocument.java:
1651         (HTMLReader.addSpecialElement): Only add one artificial space.
1652         * javax/swing/text/html/HTMLEditorKit.java
1653         (HTMLFactory.create): Uncomment code for FrameSetView and FrameView.
1654         * gnu/javax/swing/text/html/parser/support/Parser.java
1655         (_handleEmptyTag): Also consume whitespace after frame tags.
1656
1657 2006-11-30  Gary Benson  <gbenson@redhat.com>
1658
1659         * java/lang/Thread.java: Javadoc fixes.
1660
1661 2006-11-29  Tom Tromey  <tromey@redhat.com>
1662
1663         PR classpath/28203:
1664         * java/lang/Class.java (getAnnotations): Rewrote.
1665
1666 2006-11-29  Tania Bento  <tbento@redhat.com>
1667
1668         * tools/gnu/classpath/tools/appletviewer/TagParser.java:
1669         (parseParams): Unescape 'val' before putting it into the Map.
1670         (unescapeString): New private method.
1671
1672 2006-11-29  Tom Tromey  <tromey@redhat.com>
1673
1674         * tools/gnu/classpath/tools/getopt/package.html: New file.
1675
1676 2006-11-29  David Gilbert  <david.gilbert@object-refinery.com>
1677
1678         * javax/swing/plaf/metal/MetalIconFactory.java
1679         (HorizontalSliderThumbIcon.paintIcon()): Commented out gradient paint,
1680         (VerticalSliderThumbIcon.paintIcon()): Likewise.
1681
1682 2006-11-29  Mario Torre  <neugens@limasoftware.net>
1683
1684         * java/text/NumberFormat.java (getCurrencyInstance): Replaced dollar sign
1685         with the default international currency sign \u00A4.
1686         * java/text/DecimalFormat.java (scanFix): Fix to use the localized symbol
1687         table for string formatting.
1688         (formatInternal): likewise.
1689         (scanNegativePattern): likewise.
1690         (applyPattern): likewise.
1691         * java/text/DecimalFormatSymbols.java (clone): Revert to old version as
1692         Locale is immutable and does not need clone.
1693
1694 2006-11-29  Francis Kung  <fkung@redhat.com>
1695
1696         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
1697         (drawLine): Remove hard-coded pixel shifting.
1698
1699 2006-11-29  Roman Kennke  <kennke@aicas.com>
1700
1701         * java/awt/Component.java
1702         (isShowing): Simplified condition code and avoid unnecessary
1703         if-codepaths.
1704         (coalesceEvents): Always coalesce paint events and let the peer
1705         figure out the expanding of the repaint area.
1706         * gnu/java/awt/peer/swing/SwingComponentPeer.java
1707         (currentPaintEvents): Removed. Replaced by paintArea.
1708         (paintArea): New field. Tracks the dirty area.
1709         (SwingComponentPeer): Removed init of currentPaintEvents.
1710         (coalescePaintEvent): Simplified to only union the dirty regions.
1711         (handleEvent): Paint dirty region that was tracked in paintArea.
1712         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1713         (paintArea): New field. Tracks the dirty region.
1714         (coalescePaintEvent): Implemented to track the dirty region.
1715         (paintComponent): Use the dirty region in paintArea. Protect
1716         state by putting the paint and dispose code in a try-finally.
1717         (updateComponent): Use the dirty region in paintArea. Protect
1718         state by putting the paint and dispose code in a try-finally.
1719
1720 2006-11-29  Roman Kennke  <kennke@aicas.com>
1721
1722         * java/awt/font/TextLayout.java
1723         (getVisualHighlightShape): Removed debug output.
1724
1725 2006-11-28  Andrew Haley  <aph@redhat.com>
1726
1727         * vm/reference/sun/reflect/misc/ReflectUtil.java
1728         (checkPackageAccess): Implement.
1729
1730 2006-11-28  Dalibor Topic  <robilad@kaffe.org>
1731
1732         * native/jni/java-lang/java_lang_VMDouble.c:
1733         (parseDoubleFromChars) New function. Factored out from ...
1734         (Java_java_lang_VMDouble_parseDouble): Factored out the parsing.
1735         (dtoa_toString): New function. Factored out from ...
1736         (Java_java_lang_VMDouble_toString) : Factored out the conversion.
1737         Changed conversion mode to 2, as modes 0 and 1 don't round
1738         as the API spec demands. Invoke conversion function as often
1739         as necessary with growing precision until a reversible
1740         representation of the double in form of a string is reached.
1741
1742 2006-11-28  Roman Kennke  <kennke@aicas.com>
1743
1744         * javax/swing/JComponent.java
1745         (putClientProperty): Do not fire event when both old and new
1746         value are == null.
1747
1748 2006-11-27  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1749
1750         * java/lang/Enum.java:
1751         Make name and ordinal final.
1752         
1753 2006-11-27  Casey Marshall  <csm@gnu.org>
1754
1755         * java/util/jar/JarEntry.java (certs): removed.
1756         (jarfile): new field.
1757         (getCertificates): read the certificates from the containing JarFile.
1758         * java/util/jar/JarFile.java (JarEnumeration.nextElement): don't
1759         fill in 'certs,' fill in 'jarfile' for the entry.
1760         (getEntry): likewise.
1761         
1762 2006-11-27  Francis Kung  <fkung@redhat.com>
1763
1764         * java/awt/image/WritableRaster.java
1765         (createChild): Implemented.
1766
1767 2006-11-27  Roman Kennke  <kennke@aicas.com>
1768
1769         * java/awt/font/TextLayout.java
1770         (TextLayout(TextLayout,int,int)): Also layout the new runs.
1771         (getVisualHighlightShape): Implemented.
1772         (layoutRuns): Fixed boundary so that the last run is also laid out.
1773         (left): New helper method.
1774         (right): New helper method.
1775
1776 2006-11-27  Roman Kennke  <kennke@aicas.com>
1777
1778         * java/awt/font/TextLayout.java
1779         (getCaretShape(TextHitInfo,Rectangle2D)): Implemented.
1780         (getCaretShape(TextHitInfo)): Use natural bounds.
1781         (getCaretShapes(int,Rectangle2D,CaretPolicy)): New API method.
1782         (getCaretShapes(int,Rectangle2D)): Delegate to new method
1783         above with DEFAULT_CARET_POLICY.
1784         (getCaretShapes(int)): Use natural bounds.
1785
1786 2006-11-27  Roman Kennke  <kennke@aicas.com>
1787
1788         * java/awt/font/TextLayout.java
1789         (Run.font): New field.
1790         (Run.location): New field.
1791         (Run.Run): Initialize font.
1792         (font): Removed field. This is moved into Run as the actual font
1793         is something run-specific.
1794         (TextLayout(String,Font,FontRenderContext)): Set font on the
1795         single runs. Layout the runs here.
1796         (TextLayout(TextLayout,int,int)): Copy over the run fonts.
1797         (findRunAtIndex): New helper method.
1798         (getCaretInfo): Implemented.
1799         (layoutRuns): New helper method.
1800         (toString): Don't put font in output string.
1801
1802 2006-11-27  Raif S. Naffah  <classpath@naffah-raif.name>
1803
1804         * AUTHORS: Added Jeroen Fritjers.
1805
1806 2006-11-27  neugens  <neugens@nirvana.limasoftware.net>
1807
1808         * java/text/DecimalFormat.java (formatInternal): Add an explicit test
1809         for FieldPosition to be null.
1810         Check if the factional part is just 0 and can be omitted from the
1811         result.
1812         (scanNegativePattern): Fixed index out of bound exception when searching
1813         for international currency symbol in negative pattern.  
1814
1815 2006-11-27  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1816
1817         * java/beans/beancontext/BeanContextSupport.java:
1818         (readObject(ObjectInputStream)): Implemented.
1819         (writeObject(ObjectOutputStream)): Likewise.
1820         (BCSChild.getTargetChild()): Added.
1821         (bcsPreDeserializationHook()): Implemented.
1822         (bcsPreSerializationHook()): Likewise.
1823         (childDeserializedHook(Object,BCSChild)): Likewise.
1824         (isSerializing()): Likewise.
1825         (readChildren(ObjectInputStream)): Likewise.
1826         (writeChildren(ObjectOutputStream)): Likewise.
1827         
1828 2006-11-26  Roger Sayle  <roger <at> eyesopen.com>
1829             Ian Lance Taylor  <ian <at> airs.com>
1830             Paolo Bonzini <bonzini <at> gnu.org>
1831
1832         Fixes bug #25557.
1833
1834         * lib/gen-classlist.sh.in:  Avoid using test's -ef operator for
1835         increased portability.  Likewise, use -f instead of -e.
1836
1837 2006-11-26  Mark Wielaard  <mark@klomp.org>
1838
1839         * lib/Makefile.am (propertydirs): Removed.
1840         (resources): Explicitly create all dirs.
1841
1842 2006-11-26  Mark Wielaard  <mark@klomp.org>
1843
1844         * gnu/java/net/PlainSocketImpl.java (accept): Reset timeout on Socket.
1845
1846 2006-11-26  Dalibor Topic  <robilad@kaffe.org>
1847
1848         * native/target/.cvsignore,
1849         native/target/generic/.cvsignore,
1850         native/target/Linux/.cvsignore:
1851         Removed no longer used files.
1852
1853         * native/target: Removed no longer used directory.
1854
1855 2006-11-26  Dalibor Topic  <robilad@kaffe.org>
1856
1857         Fixes bug #29133.
1858
1859         * libraries/clib/nio/gnu_java_nio_VMSelector.c
1860         (Java_gnu_java_nio_VMSelector_select):
1861         Use strerror if strerror_r is not available.
1862
1863         Reported by:  Michael Franz <mvfranz@gmail.com>,
1864                       Riccardo Mottola <zuse@libero.it>
1865
1866 2006-11-26  Dalibor Topic  <robilad@kaffe.org>
1867
1868         Fixes bug #26756.
1869         
1870         * native/jni/midi-dssi/Makefile.am (AM_CFLAGS): Removed 
1871         STRICT_WARNING_CFLAGS since it caused the build to fail 
1872         on GNU/Linux.
1873
1874 2006-11-26  Ian Rogers  <ian.rogers@manchester.ac.uk>
1875
1876         * doc/vmintegration.texinfo: Update VM Threading Model section.
1877
1878 2006-11-26  Tom Tromey  <tromey@redhat.com>
1879
1880         * native/jni/java-net/java_net_VMNetworkInterface.c: Conditionally
1881         include ifaddrs.h.
1882         (Java_java_net_VMNetworkInterface_getVMInterfaces): Updated
1883         conditional.
1884         * native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c:
1885         Conditionally include ifaddrs.h.
1886         (getif_address): Updated conditional.
1887         (getif_index): Likewise.
1888         * configure.ac: Check for ifaddrs.h.
1889
1890 2006-11-25  Mark Wielaard  <mark@klomp.org>
1891
1892         * java/io/File.java (list): Return empty list for unreadable dirs.
1893
1894 2006-11-25  Mark Wielaard  <mark@klomp.org>
1895
1896         * gnu/java/awt/peer/gtk/CairoGraphics2D.java (drawGlyphVector):
1897         Synchronize on font peer.
1898         (setFont): Likewise.
1899         * gnu/java/awt/peer/gtk/GdkFontPeer.java (getFontMetrics): Mark
1900         synchronized.
1901         (getTextMetrics): Likewise.
1902
1903 2006-11-25  Roman Kennke  <kennke@aicas.com>
1904
1905         * javax/swing/text/GapContent.java
1906         (getPositionsInRange): Rewritten to use the more efficient
1907         binary search searchFirst() and avoid an NPE that was caused
1908         by GC'ed positions.
1909
1910 2006-11-25  Mark Wielaard  <mark@klomp.org>
1911
1912         * javax/swing/text/CompositeView.java (modelToView): Never return
1913         null.
1914
1915 2006-11-25  Mark Wielaard  <mark@klomp.org>
1916
1917         * javax/swing/text/html/TableView.java (calculateColumnRequirements):
1918         Check whether rowView instanceof RowView.
1919         (updateGrid): Likewise.
1920
1921 2006-11-25  Mario Torre  <neugens@nirvana.limasoftware.net>
1922
1923         PR28462
1924         * java/text/DecimalFormat.java: Almost new rewrite, and update to 1.5.
1925         * java/text/NumberFormat.java (format): all format methods, fixed
1926         FieldPosition argument should never be null.
1927         (format(Object, StringBuffer, FieldPosition)): fixed signature,
1928         method is not final.
1929         * java/text/DecimalFormatSymbols.java (clone): fixed to also clone
1930         locale.
1931         * AUTHORS: added my name to the file.
1932
1933 2006-11-25  Mark Wielaard  <mark@klomp.org>
1934
1935         * javax/swing/text/html/StyleSheet.java (paint): Guard against
1936         getChildAllocation() returning null.
1937
1938 2006-11-25  Mark Wielaard  <mark@klomp.org>
1939
1940         * gnu/javax/swing/text/html/css/Selector.java (calculateSpecificity):
1941         Use clazzIndex for id substring.
1942
1943 2006-11-25  Mark Wielaard  <mark@klomp.org>
1944
1945         * java/awt/EventQueue.java (pop): Only terminate dispatchThread when
1946         it is still running.
1947
1948 2006-11-25  Mark Wielaard  <mark@klomp.org>
1949
1950         Fixes bug #28822
1951         * doc/api/Makefile.am (create_html): Guard GJDOC invocation with
1952         CREATE_API_DOCS
1953
1954 2006-11-24  Tania Bento  <tbento@redhat.com>
1955
1956         * java/awt/font/TextHitInfo.java
1957         (equals(TextHitInfo)): If TextHitInfo parameter is null, return false.
1958         (beforeOffset): Decreased first parameter by 1.
1959
1960 2006-11-24  Francis Kung  <fkung@redhat.com>
1961
1962         * gnu/java/awt/peer/gtk/BufferedImageGraphics.java
1963         (constructor): Check sample model when setting fastCM flag.
1964         (updateBufferedImage): Check scanline and sample model offsets before
1965         copying data directly into the image data buffer.
1966
1967 2006-11-24  Francis Kung  <fkung@redhat.com>
1968
1969         * gnu/java/awt/java2d/QuadSegment.java
1970         (offsetSubdivided): Handle special straight-line cases.
1971
1972 2006-11-24  Roman Kennke  <kennke@aicas.com>
1973
1974         * java/awt/dnd/DropTarget.java
1975         (DropTargetAutoScroller.HYSTERESIS): New constant.
1976         (DropTargetAutoScroller.DELAY): New constant.
1977         (DropTargetAutoScroller.inner): New field. A cached
1978         Rectangle instance.
1979         (DropTargetAutoScroller.outer): New field. A cached
1980         Rectangle instance.
1981         (DropTargetAutoScroller.timer): New field. The actual timer.
1982         (DropTargetAutoScroller.DropTargetAutoScroller):
1983         Initialize timer.
1984         (DropTargetAutoScroller.actionPerformed): Implemented.
1985         (DropTargetAutoScroller.stop): Implemented.
1986         (DropTargetAutoScroller.updateLocation): Implemented.
1987         (clearAutoscroll): Stop the autoscroller before nullifying it.
1988         (createDropTargetAutoScroller): Don't set the field here,
1989         only return a new instance.
1990         (dragEnter): Only do something when active. Initialize
1991         auto scrolling.
1992         (dragExit): Only do something when active. Stop auto scrolling.
1993         (dragOver): Only do something when active. Update auto scrolling.
1994         (drop): Only do something when active. Update auto scrolling.
1995         (dropActionChanged): Only do something when active. Update
1996         auto scrolling.
1997         (initializeAutoScrolling): Check if component is an instance
1998         of Autoscroll, otherwise do nothing.
1999         (setActive): Disable autoscrolling when deactivating.
2000         (setComponent): When component is set to null, disable autoscrolling.
2001
2002 2006-11-24  David Gilbert  <david.gilbert@object-refinery.com>
2003
2004         * java/beans/beancontext/BeanContextServicesSupport.java
2005         (getChildBeanContextServicesListener): Implemented.
2006
2007 2006-11-23  Roman Kennke  <kennke@aicas.com>
2008
2009         * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java
2010         (createGraphics): Use constructor to create new instance of
2011         BufferedImageGraphics.
2012         * java/awt/Toolkit.java
2013         (getDefaultToolkit): Really try to get a real toolkit. Only
2014         use HeadlessToolkit if no other is available.
2015         * gnu/java/awt/peer/gtk/GtkToolkit.java
2016         (checkHeadless): New helper method. Checks for headless environment
2017         and throws HeadlessException if appropriate.
2018         (createButton): Check for headless.
2019         (createCanvas): Check for headless.
2020         (createCheckbox): Check for headless.
2021         (createCheckboxMenuItem): Check for headless.
2022         (createChoice): Check for headless.
2023         (createDialog): Check for headless.
2024         (createDragGestureRecognizer): Check for headless.
2025         (createDragSourceContextPeer): Check for headless.
2026         (createEmbeddedWindow): Check for headless.
2027         (createFileDialog): Check for headless.
2028         (createFrame): Check for headless.
2029         (createCheckbox): Check for headless.
2030         (createLabel): Check for headless.
2031         (createList): Check for headless.
2032         (createMenu): Check for headless.
2033         (createMenuBar): Check for headless.
2034         (createMenuItem): Check for headless.
2035         (createPanel): Check for headless.
2036         (createPopupMenu): Check for headless.
2037         (createScrollbar): Check for headless.
2038         (createScrollPane): Check for headless.
2039         (createTextArea): Check for headless.
2040         (createTextField): Check for headless.
2041         (createWindow): Check for headless.
2042
2043 2006-11-23  David Gilbert  <david.gilbert@object-refinery.com>
2044
2045         * java/beans/beancontext/BeanContextSupport.java
2046         (deserialize): Implemented,
2047         (serialize): Implemented.
2048
2049 2006-11-23  Roman Kennke  <kennke@aicas.com>
2050
2051         * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java
2052         (createGraphics): Try to use Cairo graphics if available.
2053
2054 2006-11-22  David Gilbert  <david.gilbert@object-refinery.com>
2055
2056         * java/beans/beancontext/BeanContextSupport.java
2057         (toArray): Added API docs,
2058         (toArray(Object[])): Added API docs, removed NotImplementedException.
2059
2060 2006-11-22  Tania Bento  <tbento@redhat.com>
2061
2062         * javax/swing/JRootPane.java
2063         (setLayeredPane): Added documentation; throw 
2064         IllegalComponentStateException if layered pane parameter is null.
2065
2066 2006-11-22  David Gilbert  <david.gilbert@object-refinery.com>
2067
2068         * java/beans/beancontext/BeanContextSupport.java
2069         (avoidingGui): Removed NotImplementedException.
2070
2071 2006-11-22  Francis Kung  <fkung@redhat.com>
2072
2073         * gnu/java/awt/peer/gtk/BufferedImageGraphics.java
2074         (drawGlyphVector): Clip updated area to glyph bounds.
2075         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
2076         (createPath): Eliminate distortion when pixel-shifting rectangles; separate
2077         x-coordinate and y-coordinate pixel shifting.
2078         (shifted): Removed method.
2079         (shiftX): New method, recognising scaling transforms.
2080         (shiftY): New method, recognising scaling transforms.
2081         (walkPath): Separate x-coordinate and y-coordinate pixel shifting.
2082
2083 2006-11-22  Roman Kennke  <kennke@aicas.com>
2084
2085         * java/awt/font/TextLayout.java
2086         (hash): New field. Caches the hash code.
2087         (hashCode): Implemented.
2088
2089 2006-11-22  Roman Kennke  <kennke@aicas.com>
2090
2091         * java/awt/image/ImageFilter.java
2092         Reformat whole class.
2093         (getFilterInstance): Don't touch the consumer field. Don't check
2094         consumer.
2095         (imageComplete): Don't check consumer.
2096         (setColorModel): Don't check consumer.
2097         (setDimensions): Don't check consumer.
2098         (setHints): Don't check consumer.
2099         (setPixels): Don't check consumer.
2100         (setProperties): Pass the original property too.
2101         * java/awt/image/IndexColorModel.java
2102         (IndexColorModel(int,int,byte[],byte[],byte[],int)): Set the
2103         transparent pixel by calling the new helper method.
2104         (IndexColorModel(int,int,byte[],int,boolean,int)): Set the
2105         transparent pixel by calling the new helper method.
2106         (IndexColorModel(int,int,int[],int,boolean,int,int)): Set the
2107         transparent pixel by calling the new helper method.
2108         (coerceData): Removed. This is not needed.
2109         (getAlpha): Simply return value from color map. The transparent
2110         pixel has to be there.
2111         (setTransparentPixel): New helper method. Inserts the transparent
2112         pixel.
2113         * java/awt/image/RGBImageFilter.java
2114         Reformat whole class.
2115         (convertColorModelToDefault): Removed. No longer needed.
2116         (filterIndexColorModel): Don't handle transparent pixels
2117         separately.
2118         (filterRGBPixels): Set pixels on consumer already.
2119         (makeColor): Removed. No longer needed.
2120         * java/awt/image/ReplicateScaleFilter.java
2121         (replicatePixels): Removed.
2122         (setDimension): Correctly compute destination size, avoid double
2123         calculations.
2124         (setPixels): Avoid double calculations. Fixed some boundary cases.
2125         (setupSources): New helper method.
2126         * java/awt/image/SampleModel.java
2127         (setDataElements): Also handle TYPE_SHORT, TYPE_FLOAT
2128         and TYPE_DOUBLE.
2129         * java/awt/image/SinglePixelPackedSampleModel.java
2130         (setDataElements(int,int,int,int,Object,DataBuffer)): Removed.
2131         This is not needed as the superclass already copies line
2132         by line.
2133         (setDataElements(int,int,Object,DataBuffer)): Simplified code,
2134         removed some checks that the RI also doesn't perform. Call
2135         DataBuffer.setElem().
2136
2137 2006-11-22  Roman Kennke  <kennke@aicas.com>
2138
2139         * java/awt/text/TextLayout.java
2140         (getLogicalRangesForVisualSelection): Implemented.
2141
2142 2006-11-21  Andrew John Hughes  <gnu_andrew@member.fsf.org>
2143
2144         * sun/reflect/annotation/AnnotationParser.java,
2145         * sun/reflect/annotation/AnnotationType.java,
2146         * sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java,
2147         * sun/reflect/annotation/ExceptionProxy.java:
2148         Stubbed.
2149         * sun/misc/ServiceConfigurationError.java,
2150         * sun/misc/Service.java:
2151         Implemented.
2152         
2153 2006-11-21  Roman Kennke  <kennke@aicas.com>
2154
2155         * java/awt/text/TextLayout.java
2156         (Run.isLeftToRight): New helper method.
2157         (logicalToVisual): New field. Maps logical indices to visual
2158         indices.
2159         (visualToLogical): New field. Maps visual indices to logical
2160         indices.
2161         (TextLayout): Setup mappings.
2162         (setupMappings): New method for setting up the mappings.
2163         (getCharacterLevel): Reorganized code.
2164         (getNextLeftHit(int)): Implemented.
2165         (getNextLeftHit(int,CaretPolicy)): New method.
2166         (getNextLeftHit(TextHitInfo)): Implemented.
2167         (getNextRightHit(int)): Implemented.
2168         (getNextRightHit(int,CaretPolicy)): New method.
2169         (getNextRightHit(TextHitInfo)): New method.
2170         (getVisualOtherHit): Implemented.
2171         (checkHitInfo): New helper methods for checking parameters.
2172         (hitToCaret): New helper method. Maps hit infos to caret locations.
2173         (caretToHit): New helper method. Maps caret locations to hit infos.
2174         (isCharacterLTR): New helper method.
2175         (CaretPolicy.getStrongCaret): Implemented.
2176
2177 2006-11-21  Francis Kung  <fkung@redhat.com>
2178
2179         * gnu/java/awt/peer/gtk/BufferedImageGraphics.java
2180         (draw): Include stroke width when calculating bounds.
2181         (updateBufferedImage): Round bounds more generously, handle negative
2182         height/width values, and clip more intelligently.
2183         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
2184         (createPath): Add shortcut optimization for lines.
2185         (draw): Include stroke width when calculating bounds.
2186         (drawLine): Delegate to main draw() method.
2187         (drawRect): Likewise.
2188         (fillRect): Delegate to main fill() method.
2189         (findStrokedBounds): New method.
2190         (setCustomPaint): Round bounds more generously.
2191         * gnu/java/awt/peer/gtk/ComponentGraphics.java
2192         (drawLine): Removed.
2193         (drawRect): Removed.
2194         (fillRect): Removed.
2195
2196 2006-11-21  Francis Kung  <fkung@redhat.com>
2197
2198         * gnu/java/awt/java2d/TexturePaintContext.java
2199         (getRaster): Handle negative coordinate values.
2200         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
2201         (setPaint): Moved custom paint processing to a new method.
2202         (setPaintPixels): Added x, y parameters.
2203         (getRealBounds): Added documentation.
2204         (copy): Copy clipping information.
2205         (drawLine): Process custom paints.
2206         (setCustomPaint): New method.
2207         (fill): Process custom paints.
2208         (drawGlyphVector): Process custom paints.
2209         (drawRect): Process custom paints.
2210         (draw): Process custom paints.
2211         * gnu/java/awt/peer/gtk/CairoSurface.java
2212         (cairoCM_opaque): New constant.
2213         * gnu/java/awt/peer/gtk/BufferedImageGraphics.java
2214         (argb32): Removed constant.
2215         (rgb32): Removed constant.
2216         (BufferedImageGraphics(BufferedImage)): Updated constant names.
2217         (BufferedImageGraphics(BufferedImageGraphics)): Copy color model flags.
2218         (updateBufferedImage): Transform to device-space before updating.
2219         * include/gnu_java_awt_peer_gtk_CairoGraphics2D.h
2220         (Java_gnu_java_awt_peer_gtk_CairoGraphics2D_setPaintPixels): Added x, y
2221         parameters.
2222         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
2223         (Java_gnu_java_awt_peer_gtk_CairoGraphics2D_setPaintPixels): Set pattern
2224         source at designated x, y origin.
2225
2226 2006-11-21  Roman Kennke  <kennke@aicas.com>
2227
2228         * java/awt/text/TextLayout.java
2229         (Run): New inner helper class.
2230         (length): New field.
2231         (naturalBounds): New field.
2232         (offset): New field.
2233         (runIndices): Removed. This is now encapsulate in a Run object.
2234         (runs): Changed to Run[].
2235         (string): Changed to char[].
2236         (totalAdvance): New field. Caches advance value.
2237         (TextLayout(String,Font,FontRenderContext)): Change to store
2238         string as char[] and run layout as Run[]. Clean out empty
2239         run items.
2240         (TextLayout(TextLayout,int,int)): Change to store
2241         string as char[] and run layout as Run[].
2242         (clone): Call private constructor for maximum efficiency.
2243         (determineWhitespace): Adapted to use char[] data.
2244         (draw): Adapted to use Run objects.
2245         (getAdvance): Cache computed total advance.
2246         (getBlackBoxBounds): Adapted to use Run objects.
2247         (getCaretInfo): Use natural layout bounds.
2248         (getCharacterCount): Return length field.
2249         (getLogicalHighlightShape): Adapted to use Run objects.
2250         (getNaturalBounds): New helper method. Calculates and returns the
2251         natural bounds of this text layout.
2252         (getOutline): Adapted to use Run objects.
2253         (getStringProperties): Adapted to use char[] data.
2254         (getVisibleAdvance): Adapted to use char[] and Run data.
2255         (handleJustify): Adapted to use char[] and Run data.
2256         (hitTestChar(float,float,Rectangle2D)): Implemented.
2257         (hitTestChar(float,float)): Use natural bounds.
2258         (setCharIndices): Adapted to use char[] and Run data.
2259         (toString): Adapted to use char[] and Run data.
2260         * java/text/Bidi.java
2261         (requiresBidi): Exclude paragraph separators from bidi-triggers.
2262
2263 2006-11-21  Roman Kennke  <kennke@aicas.com>
2264
2265         * gnu/java/awt/peer/gtk/GdkFontMetrics.java:
2266         Removed. This is now an inner class in GdkFontPeer.
2267         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
2268         (drawString(float,float)): Use text layout cache from
2269         GdkFontPeer.
2270         (getFontMetrics): Delegate to GdkFontPeer.
2271         * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
2272         (getGlyphCodes): Also check array size.
2273         (getGlyphPositions): Also check array size.
2274         * gnu/java/awt/peer/gtk/GdkFontPeer.java
2275         (GdkFontLineMetrics.fm): Removed.
2276         (GdkFontLineMetrics.strikeThroughOffset): Removed.
2277         (GdkFontLineMetrics.strikeThroughThickness): Removed.
2278         (GdkFontLineMetrics.underlineOffset): Removed.
2279         (GdkFontLineMetrics.underlineThickness): Removed.
2280         (GdkFontLineMetrics.GdkFontLineMetrics): Don't take
2281         FontMetrics argument. Don't init removed fields.
2282         (GdkFontLineMetrics.getAscent): Return font peer's field.
2283         (GdkFontLineMetrics.getDescent): Return font peer's field.
2284         (GdkFontLineMetrics.getHeight): Return font peer's field.
2285         (GdkFontLineMetrics.getLeading): Return font peer's field.
2286         (GdkFontLineMetrics.getNumChars): Reformat.
2287         (GdkFontLineMetrics.getStrikeThroughOffset): Return half ascent.
2288         (GdkFontLineMetrics.getStrikeThroughThickness): Return 1.
2289         (GdkFontLineMetrics.getUnderlineOffset): Return font peer's field.
2290         (GdkFontLineMetrics.getUnderlineThickness): Return font peer's field.
2291         (GdkFontMetrics): Moved class in here as inner class. 
2292         Make it use the font peer's fields and for the char(s) width
2293         and string width method, use TextLayout to measure the actual widths.
2294         (ascent): New field.
2295         (bundle): Removed.
2296         (DEFAULT_CTX): New constant field.
2297         (descent): New field.
2298         (FONT_METRICS_ASCENT): New constant.
2299         (FONT_METRICS_DESCENT): New constant.
2300         (FONT_METRICS_HEIGHT): New constant.
2301         (FONT_METRICS_MAX_ADVANCE): New constant.
2302         (FONT_METRICS_MAX_ASCENT): New constant.
2303         (FONT_METRICS_MAX_DESCENT): New constant.
2304         (FONT_METRICS_UNDERLINE_OFFSET): New constant.
2305         (FONT_METRICS_UNDERLINE_THICKNESS): New constant.
2306         (height): New field.
2307         (maxAdvance): New field.
2308         (maxAscent): New field.
2309         (maxDescent): New field.
2310         (metrics): New field. Stores a FontMetrics for this font.
2311         (textLayoutCache): New field. Caches TextLayout instances.
2312         (underlineOffset): New field.
2313         (underlineThickness): New field.
2314         (cinit): Don't initialize resource bundle.
2315         (GdkFontPeer): Setup the metrics.
2316         (getFontMetrics): Return stored metrics if possible.
2317         (getLineMetrics): Adapt to new constructor.
2318         (initFont): New helper method.
2319         (setupMetrics): New helper method.
2320         * gnu/java/awt/peer/gtk/GtkToolkit.java
2321         (LRUCache): Made class a static class.
2322         (getFontMetrics): Delegate to GdkFontPeer.
2323         * native/jni/gtk-peer/gdkfont.h
2324         Added new constant defines.
2325         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
2326         (getFontMetrics): Rewritten to fetch the font metrics from
2327         FreeType.
2328
2329 2006-11-20  Tania Bento  <tbento@redhat.com>
2330
2331         * javax/swing/ButtonGroup.java:
2332         (setSelected): Select the ButtonModel if all conditions
2333         are met.
2334
2335 2006-11-20  Tania Bento  <tbento@redhat.com>
2336
2337         * javax/swing/JSlider.java:
2338         (updateLabelUIs): Removed casting.
2339
2340 2006-11-20  Mark Wielaard  <mark@klomp.org>
2341
2342         * gnu/java/util/regex/RE.java (messages): Don't initialize.
2343         (bundle): New static final String field.
2344         (getLocalizedMessage): Initialize messages when still null.
2345         * gnu/java/util/regex/RESyntax.java (SYNTAX_IS_FINAL): Removed.
2346         (set): Use RE.getLocalizedMessage().
2347         (clear): Likewise.
2348         (setLineSeparator): Likewise.
2349
2350 2006-11-20  Roman Kennke  <kennke@aicas.com>
2351
2352         * javax/swing/text/html/StyleSheet.java
2353         (linked): New field.
2354         (styleSheet): Replaced by linked.
2355         (addStyleSheet): Use an arraylist for simplicity.
2356         (getRule): Removed useless instantiation.
2357         (getStyleSheets): Convert array list to array.
2358         (removeStyleSheet): Use an arraylist for simplicity.
2359         (resolveStyle): Include styles from linked lists.
2360
2361 2006-11-20  Roman Kennke  <kennke@aicas.com>
2362
2363         * javax/swing/text/BoxView.java
2364         (BoxView): Initialize with invalid req's.
2365         (forwardUpdate): Trigger repaint when children changed the
2366         major axis.
2367         (getResizeWeight): Return resizable when the pref differs from
2368         the min or the pref differs from the max size.
2369         (layoutMajorAxis): Actually sum up the preferred sizes.
2370         (paint): Made binary search more robust.
2371         (replace): Let arrays shrink when needed.
2372         (replaceLayoutArray): Let arrays shrink when needed.
2373         (setAxis): Trigger preferenceChanged.
2374         * javax/swing/text/CompositeView.java
2375         (getInsideAllocation): Call insets method to take account
2376         of overriding subclasses.
2377         * javax/swing/text/DefaultStyledDocument.java
2378         (ElementBuffer.finishEdit): Clear the stack and edits buffer.
2379         (ElementBuffer.insertUpdate): Only remove the found element, not
2380         all.
2381         * javax/swing/text/GlyphView.java
2382         (insertUpdate): Pass null in preferenceChanged.
2383         (removeUpdate): Pass null in preferenceChanged.
2384         (changedUpdate): Pass null in preferenceChanged.
2385         * javax/swing/text/Utilities.java
2386         (drawTabbedText): Avoid single calls to charWidth() and instead
2387         call charsWidth() on whole chunks.
2388         * javax/swing/text/html/HTMLDocument.java
2389         (BlockElement.getName): Fall back to super when necessary.
2390         (RunElement.getName): Fall back to super when necessary.
2391         (HTMLReader.MAX_THRESHOLD): New constant field.
2392         (HTMLReader.GROW_THRESHOLD): New constant field.
2393         (HTMLReader.theshold): New field.
2394         (HTMLReader.HTMLReader): Fetch threshold from document.
2395         (HTMLReader.addContent): Sucessivly grow the threshold.
2396         (createLeafElement): Don't create two elemens and don't set
2397         attribute.
2398         * javax/swing/text/html/TableView.java
2399         (RowView.replace): Invalidate grid.
2400         (gridValid): Made package private.
2401         (layoutMinorAxis): Mark all rows as invalid.
2402         (replace): Invalidate grid.
2403
2404 2006-11-20  Roman Kennke  <kennke@aicas.com>
2405
2406         * javax/swing/text/AbstractDocument.java
2407         (DefaultDocumentEvent.changes): Changed to be a HashMap.
2408         (DefaultDocumentEvent.modified): Made private.
2409         (DefaultDocumentEvent.THRESHOLD): New constant field.
2410         (DefaultDocumentEvent.DefaultDocumentEvent): Don't initialize
2411         changes table.
2412         (DefaultDocumentEvent.addEdit): Switch to hashmap only when
2413         exceeding threshold.
2414         (DefaultDocumentEvent.getChange): Use iterative approach
2415         when we have no hashmap yet.
2416         (documentCV): Removed.
2417         (numWriters): Renamed from numWritersWaiting.
2418         (createPosition): Reformat.
2419         (getCurrentWriter): Synchronized.
2420         (readLock): Implement more straightforward.
2421         (readUnlock): Implement more straightforward.
2422         (writeLock): Implement more straightforward.
2423         (writeUnlock): Implement more straightforward.
2424         (remove): Write-lock here.
2425         (removeImpl): Don't write-lock here.
2426
2427 2006-11-20  Roman Kennke  <kennke@aicas.com>
2428
2429         * javax/swing/JEditorPane.java
2430         (setPage): Set priority on loading thread.
2431
2432 2006-11-20  Roman Kennke  <kennke@aicas.com>
2433
2434         * javax/swing/plaf/basic/BasicTextUI.java
2435         (RootView.paint): Avoid allocation.
2436         (cachedInsets): New field. Caches an Insets instance.
2437         (getNextVisualPositionFrom): Read-lock the document to avoid
2438         thread nastiness. Push allocation.
2439         (getPreferredSize): Push fake allocation when not yet laid out.
2440         (getVisibleEditorRect): Use cached insets.
2441         (viewToModel): Read-lock the document to avoid
2442         thread nastiness. Push allocation.
2443
2444 2006-11-20  Roman Kennke  <kennke@aicas.com>
2445
2446         * javax/swing/text/StyleContext.java
2447         (attributeSetPool): Synchronize this map.
2448         (addAttribute): Synchronize this method.
2449         (addAttributes: Synchronize this method.
2450         (readObject): Install synchronized map on target object.
2451         (removeAttribute): Synchronize this method.
2452         (removeAttributes): Synchronize this method.
2453         (removeAttributes): Synchronize this method.    
2454         
2455 2006-11-20  Roman Kennke  <kennke@aicas.com>
2456
2457         * javax/swing/text/GapContent.java
2458         (GapContentPosition.GapContentPosition): Removed constructor.
2459         (Mark): Made subclass of WeakReference to refer directly to
2460         the associated position.
2461         (Mark.refCount): Removed.
2462         (Mark.Mark(int,GapContentPosition,ReferenceQueue):
2463         New constructor. Used to reference a position and register the
2464         reference queue.
2465         (Mark.Mark(index)): Call super and don't adjust mark offset.
2466         (Mark.compareTo): Removed.
2467         (Mark.equals): Removed.
2468         (Mark.getOffset): Return at least null. Removed assert.
2469         (Mark.getPosition): New helper method.
2470         (garbageMarks): New field.
2471         (positions): Removed.
2472         (searchMark): New field.
2473         (GapContent): Removed init of positions map.
2474         (addImpl): New helper method.
2475         (adjustPositionsInRange): Removed.
2476         (compare): New helper method.
2477         (createPosition): Rewritten for new datastructures. This now
2478         performs a much more efficient binary search for finding
2479         a position at the requested offste.
2480         (garbageCollect): Rewritten to collect unused marks.
2481         (getPositionsInRange): Adjusted for new data structures.
2482         (removeImpl): New helper method.
2483         (replace): Use new addImpl() and removeImpl() helper method for
2484         correctly adjusting the positions and gap.
2485         (search): Rewritten. Implements a more suitable binary search.
2486         (searchFirst): New helper method.
2487         (setPositionsInRange): Removed.
2488         (shiftEnd): Update the marks here.
2489         (shiftGap): Update the marks here.
2490         (shiftGapEndUp): Update the marks here.
2491         (shiftGapStartDown): Update the marks here.
2492
2493 2006-11-20  Marco Trudel <mtrudel@gmx.ch>
2494
2495         * java/util/jar/JarFile.java (digestAlgorithms): New field used to cache
2496         digest algorithm implementations.
2497         (readSignatures): Parse the manifest once and reuse that data.
2498         Add support for line breaks.
2499         (verifyHashes): Use the parsed manifest entry.
2500         (readManifestEntry): Removed.
2501
2502 2006-11-20  Andrew John Hughes  <gnu_andrew@member.fsf.org>
2503
2504         * java/beans/beancontext/BeanContextServicesSupport.java:
2505         Added more documentation.
2506         (addService(Class,BeanContextServiceProvider,boolean)):
2507         Synchronized over global hierarchy lock.
2508         (bcsPreDeserializationHook(ObjectInputStream)): Implemented.
2509         (bcsPreSerializationHook(ObjectOutputStream)): Implemented.
2510         (childJustRemovedHook(Object,BCSChild)): Implemented.
2511         (createBCSSServiceProvider(Class,BeanContextServiceProvider)):
2512         Implemented.
2513         (fireServiceRevoked(BeanContextServiceRevokedEvent)):
2514         Added revocation-only listeners.
2515         (getBeanContextServicesPeer()): Implemented.
2516         (getCurrentServiceClasses(Class)): Synchronized over global
2517         hierarchy lock.
2518         (getCurrentServiceSelectors(Class)): Synchronized over global
2519         hierarchy lock, and fixed FIXME.
2520         (getService(BeanContextChild,Object,Class,Object,
2521         BeanContextServiceRevokedListener)): Implemented.
2522         (hasService(Class)): Synchronized over global hierarchy lock.
2523         (releaseService(BeanContextChild,Object,Object)): Implemented.
2524         (revokeService(Class,BeanContextServiceProvider,boolean)): Implemented.
2525         * java/beans/beancontext/BeanContextSupport.java:
2526         (remove(Object, boolean)): Documentation correction.
2527         
2528 2006-11-19  Roman Kennke  <kennke@aicas.com>
2529
2530         * javax/swing/JEditorPane.java
2531         (PageStream): New inner class.
2532         (PageLoader): New inner class.
2533         (loading): New field.
2534         (setPage): Implemented asynchronous loading.
2535         * javax/swing/text/DefaultStyledDocument.java
2536         (ElementBuffer.create): New helper method.
2537         (create): Use new ElementBuffer method instead of hack.
2538         * javax/swing/text/html/HTMLDocument.java
2539         (HTMLReader.flushImpl): New helper method.
2540         (HTMLReader.addContent): Use flushImpl().
2541         (HTMLReader.blockClose): Added null check.
2542         (HTMLReader.flush): Use flushImpl().
2543         * javax/swing/text/html/HTMLEditorKit.java
2544         (createDefaultDocument): Set load priority to 4 and token threshold
2545         to 100.
2546         * javax/swing/text/html/TableView.java
2547         (insertUpdate): Overridden to provide correct view factory.
2548         (removeUpdate): Overridden to provide correct view factory.
2549         (changedUpdate): Overridden to provide correct view factory.
2550
2551 2006-11-19  Roman Kennke  <kennke@aicas.com>
2552
2553         * javax/swing/text/BoxView.java
2554         (clipRect): New field.
2555         (tmpRect): New field.
2556         (layout): Reorganized code. Now uses layoutAxis() helper method.
2557         (layoutAxis): New helper method.
2558         (paint): Optimized by using cached Rectangle objects and
2559         a binary search for child views inside the clip.
2560         * javax/swing/text/CompositeView.java
2561         (insideAllocation): Made private and initialized in constructor.
2562         (getInsideAllocation): Removed initialization block for
2563         insideAllocation field. Avoid unnecessary allocations.
2564         * javax/swing/text/GlyphView.java
2565         (DefaultGlyphPainter.paint): Only paint the actual glyphs here
2566         The remaining stuff (background, underline and striking) is
2567         done in the GlpyhView itself. Avoid unnecessary allocations.
2568         (cached): A cached Segment instance.
2569         (getText): Return cached segment.
2570         (paint): Paint underline, strike and background here. Avoid
2571         unecessary allocs.
2572
2573 2006-11-19  Roman Kennke  <kennke@aicas.com>
2574
2575         * javax/swing/text/html/StyleSheet.java
2576         (getFontSize): Removed debug output.
2577         (ListPainter.tmpRect): New field.
2578         (ListPainter.paint): Align bullet vertically centered to
2579         the first line of the paragraph.
2580
2581 2006-11-17  Roman Kennke  <kennke@aicas.com>
2582
2583         * gnu/javax/swing/text/html/css/CSSParser.java
2584         (parseDeclaration): Trim string before reporting.
2585         * gnu/javax/swing/text/html/css/FontSize.java
2586         (size): New field.
2587         (isRelative): New field.
2588         (sizeIndex): New field.
2589         (FontSize): Initialize new fields.
2590         (getValue): Changed to call getValue(int).
2591         (getValue(int)): New method. Implements relative font sizes.
2592         (isRelative): New method.
2593         (mapAbsolute): Store index.
2594         (mapEM): New helper method.
2595         (mapLarger): New helper method.
2596         (mapPercent): New helper method.
2597         (mapRelative): New helper method.
2598         (mapSmaller): New helper method.
2599         (mapValue): New helper method.
2600         * javax/swing/text/html/CSS.java
2601         (parseBackgroundShorthand): Create CSSColor directly.
2602         * javax/swing/text/html/StyleSheet.java
2603         (addRule): Invalidate resolved styles.
2604         (getFont): Call new getFontSize() method to resolve relative
2605         font sizes.
2606         (getFontSize): New helper method. Resolves relative font sizes.
2607         (translateHTMLToCSS): Create CSS objects directly.
2608
2609 2006-11-13  Andrew John Hughes  <gnu_andrew@member.fsf.org>
2610
2611         * gnu/java/util/regex/RETokenNamedProperty.java:
2612         (getHandler(String)): Add support for 'all'.
2613
2614 2006-11-18  Andrew John Hughes  <gnu_andrew@member.fsf.org>
2615
2616         * gnu/javax/management/Server.java:
2617         Initial implementation of a GNU management server.
2618         * javax/management/MBeanPermission.java,
2619         * javax/management/MBeanRegistration.java,
2620         * javax/management/MBeanTrustPermission.java:
2621         Implemented.
2622         
2623 2006-11-17  Mark Wielaard  <mark@klomp.org>
2624
2625         * docs/www.gnu.org/newsitems.txt: Add Sun GPL news announcement.
2626
2627 2006-11-17  Gary Benson  <gbenson@redhat.com>
2628
2629         * java/net/DatagramSocket.java (getLocalAddress, connect,
2630         receive): Perform security check on address not hostname.
2631
2632 2006-11-16  Roman Kennke  <kennke@aicas.com>
2633
2634         * gnu/javax/swing/text/html/parser/support/Parser.java
2635         (_handleText): Fixed condition for consuming whitespace.
2636         Removed validator check, this is superfluous now.
2637
2638 2006-11-16  Roman Kennke  <kennke@aicas.com>
2639
2640         * gnu/javax/swing/text/html/css/CSSParser.java
2641         (parseRuleset): Support 'combined' selectors.
2642         (main): Adapt callback for combined selectors support.
2643         * gnu/javax/swing/text/html/css/CSSParserCallback.java
2644         (startStatement): Take selector array as argument, to
2645         support combined selectors.
2646         * javax/swing/text/html/BlockView.java
2647         (calculateMinorAxisRequirements): Fetch and apply alignment.
2648         * javax/swing/text/html/StyleSheet.java
2649         (CSSStyle): Inverted the constants for correct precedence.
2650         (CSSStyleSheetParserCallback.styles): New field. Stores the current
2651         styles.
2652         (CSSStyleSheetParserCallback.style): Removed.
2653         (CSSStyleSheetParserCallback.declaration): Update multiple styles.
2654         (CSSStyleSheetParserCallback.end): Push multiple styles.
2655         (CSSStyleSheetParserCallback.start): Initialize multiple styles.
2656
2657 2006-11-16  Roman Kennke  <kennke@aicas.com>
2658
2659         * javax/swing/text/FlowView.java
2660         (LogicalView.getPreferredSpan): Calculate maximum correctly.
2661         * javax/swing/text/GlyphView.java
2662         (tabExpander): New field.
2663         (tabX): New field.
2664         (breakView): Set tabX on broken view.
2665         (getPartialSpan): Let the painter fetch the span.
2666         (getTabbedSpan): Update the tab expander field. Maybe trigger
2667         relayout.
2668         (getTabExpander): Simply return the stored expander.
2669         * javax/swing/text/Utilities.java
2670         (getTabbedTextOffset): Made algoritm a little smarter and more
2671         efficient.
2672         (getTabbedTextWidth): Don't add single char widths, instead add
2673         chunks of characters.
2674         * javax/swing/text/html/ParagraphView.java
2675         (calculateMinorAxisRequirements): Adjust margin only when the
2676         CSS span is not fixed.
2677
2678 2006-11-16  David Gilbert  <david.gilbert@object-refinery.com>
2679
2680         * java/beans/beancontext/BeanContextSupport.java
2681         (getChildBeanContextMembershipListener): Implemented,
2682         (getChildPropertyChangeListener): Implemented,
2683         (getChildSerializable): Implemented,
2684         (getChildVetoableChangeListener): Implemented,
2685         (getChildVisibility): Implemented,
2686         (setDesignTime): Use same property name as Sun's implementation.
2687
2688 2006-11-16  David Gilbert  <david.gilbert@object-refinery.com>
2689
2690         * java/beans/DesignMode.java: Reformatted and removed a FIXME,
2691         * java/beans/Statement.java
2692         (toString): Updated to match reference implementation.
2693
2694 2006-11-15  Roman Kennke  <kennke@aicas.com>
2695
2696         * javax/swing/text/html/HTMLEditorKit.java
2697         (InsertHTMLTextAction.actionPerformed): Also try inserting
2698         the alternate tag. Adjust the selection accordingly.
2699         (InsertHTMLTextAction.adjustSelection): New helper method.
2700         Adjusts the selection after an insertion.
2701         (insertAtBoundary): Delegate to deprecated method.
2702         (insertAtBoundry): Implemented missing method.
2703         (tryInsert): New helper method.
2704         (defaultActions): Implemented to fill the array with
2705         a couple of InsertHTMLTextActions.
2706
2707 2006-11-15  Roman Kennke  <kennke@aicas.com>
2708
2709         * javax/swing/text/html/ImageView.java
2710         (Observer): New class. Observes image loading.
2711         (haveHeight): New field.
2712         (haveWidth): New field.
2713         (height): New field.
2714         (width): New field.
2715         (image): New field.
2716         (imageIcon): New field.
2717         (loading): New field.
2718         (observer): New field.
2719         (reloadImage): New field.
2720         (reloadProperties): New field.
2721         (ImageView): Initialize observer and some flags.
2722         (getImage): Update the image state and return the image.
2723         (loadImage): New helper method. Actually starts loading.
2724         (paint): Rewritten to paint the image directly, not via Icon.
2725         (reloadImage): Rewritten. Loads the image and its properties.
2726         (renderIcon): Removed. No more necessary.
2727         (setPropertiesFromAttributes): Don't nullify image here.
2728         Added comment about missing impl.
2729         (setSize): Added comment about missing impl.
2730         (updateSize): New helper method. Updates the size attributes.
2731         (updateState): New helper method. Makes sure the image
2732         and its properties are valid.
2733
2734 2006-11-15  Roman Kennke  <kennke@aicas.com>
2735
2736         * gnu/javax/swing/text/html/parser/support/Parser.java
2737         (_handleEndTag_remaining): Consume whitespace after a closing
2738         block like tag.
2739
2740 2006-11-15  Roman Kennke  <kennke@aicas.com>
2741
2742         * javax/swing/text/html/HTMLDocument.java
2743         (HTMLReader.ParagraphAction.end): Call super instead of blockClose()
2744         directly.
2745         (HTMLReader.ParagraphAction.start): Call super instead of blockOpen()
2746         directly.
2747         (HTMLReader.parseStack): Removed.
2748         (HTMLReader.blockClose): Simply call addContent() with ' '
2749         instead of doing more complicated stuff. Removed parseStack
2750         handling.
2751         (HTMLReader.blockOpen): Removed parseStack handling.
2752         (getInsertingReader): Removed parseStack init.
2753         * gnu/javax/swing/text/html/parser/htmlValidator.java
2754         (closeTag): Return true only when the tag actually should be
2755         closed.
2756         * gnu/javax/swing/text/html/parser/support/Parser.java
2757         (_handleEndTag): Only actually close the tag when the validator
2758         allows it.
2759
2760 2006-11-15  Roman Kennke  <kennke@aicas.com>
2761
2762         * javax/swing/text/html/CSS.java
2763         (Attribute.BORDER_SPACING): New field for the CSS border-spacing
2764         attribute.
2765         * javax/swing/text/html/StyleSheet.java
2766         (BoxPainter.bottomPadding): New field.
2767         (BoxPainter.leftPadding): New field.
2768         (BoxPainter.rightPadding): New field.
2769         (BoxPainter.topPadding): New field.
2770         (BoxPainter.BoxPainter): Fetch the MARGIN and PADDING* attributes
2771         too.
2772         (BoxPainter.getInset): Recognize and include the padding.
2773         (translateHTMLToCSS): Added mapping for CELLPADDING and CELLSPACING.
2774          javax/swing/text/html/TableView.java
2775         (RowView.calculateMajorAxisRequirements): Adjust req's for
2776         cellSpacing.
2777         (RowView.layoutMajorAxis): Adjust multi-column span for cellSpacing.
2778         (cellSpacing): New field.
2779         (columnRequirements): Made package private to avoid accessor method.
2780         (calculateMinorAxisRequirements): Include cellSpacing.
2781         (calculateMajorAxisRequirements): Overridden to include cellSpacing.
2782         (layoutMajorAxis): Likewise.
2783         (layoutColumns): Respect cellSpacing.
2784         (setParent): Overridden to fetch the CSS attributes when view gets
2785         connected.
2786         (setPropertiesFromAttributes): New method. Fetches the cell
2787         spacing from the CSS attributes.
2788
2789 2006-11-15  Roman Kennke  <kennke@aicas.com>
2790
2791         * gnu/javax/swing/text/html/parser/support/Parser.java
2792         (_handleText): Consume whitespace directly before a closing tag.
2793         (restOfTag): Consume whitespace directly after opening.
2794         * gnu/javax/swing/text/html/parser/support/textPreProcessor.java
2795         (preprocess): Don't perform array boundary checking by
2796         catch AIOOBE, instead check the boundary in loop condition.
2797         * gnu/javax/swing/text/html/parser/support/low/Constants.java
2798         (TAG_CLOSE): New constants. Describes the token pattern for
2799         a closing tag.
2800
2801 2006-11-14  Roman Kennke  <kennke@aicas.com>
2802
2803         * javax/swing/text/html/ImageView.java
2804         (getPreferredSpan): Use CSS length values.
2805         * javax/swing/text/html/TableView.java
2806         (CellView.calculateMajorAxisRequirements): Overridden to
2807         set the maximum reqs to maximum.
2808         (RowView.getMaximumSize): For the X_AXIS, set the maximum
2809         span to maximum.
2810         (RowView.getMinimumSpan): Overridden. For the X_AXIS, return
2811         the total column reqs.
2812         (RowView.getPreferredSpan): Overridden. For the X_AXIS, return
2813         the total column reqs.
2814         * gnu/javax/swing/text/html/css/CSSColor.java
2815         (convertValue): Catch NumberFormatExceptions for more robustness.
2816         * gnu/javax/swing/text/html/css/FontSize.java
2817         (mapPixels): Actually map px values. Catch NFE for more robustness.
2818
2819 2006-11-14  Roman Kennke  <kennke@aicas.com>
2820
2821         * gnu/java/awt/font/autofit/AxisHints.java,
2822         * gnu/java/awt/font/autofit/Constants.java,
2823         * gnu/java/awt/font/autofit/GlyphHints.java,
2824         * nu/java/awt/font/autofit/Latin.java,
2825         * nu/java/awt/font/autofit/LatinAxis.java,
2826         * gnu/java/awt/font/autofit/LatinMetrics.java,
2827         * gnu/java/awt/font/autofit/Scaler.java,
2828         * gnu/java/awt/font/autofit/Script.java,
2829         * gnu/java/awt/font/autofit/ScriptMetrics.java,
2830         * gnu/java/awt/font/autofit/Segment.java,
2831         * gnu/java/awt/font/autofit/Width.java:
2832         New classes. This is some skeleton stuff for the FreeType-alike
2833         auto-gridfitter.
2834         * gnu/java/awt/font/opentype/CharGlyphMap.java: Made class public.
2835         * gnu/java/awt/font/opentype/OpenTypeFont.java
2836         (unitsPerEm): Made field public.
2837         (getRawGlyphOutline): New method. Fetches the raw outline.
2838         * gnu/java/awt/font/opentype/Scaler.java
2839         (getRawGlyphOutline): New method. Fetches the raw outline.
2840         * gnu/java/awt/font/opentype/truetype/GlyphLoader.java
2841         (loadGlyph): New method. This is used to load raw outlines.
2842         * gnu/java/awt/font/opentype/truetype/TrueTypeScaler.java
2843         (getRawOutline): New method. Fetches the raw outline.
2844         * gnu/java/awt/font/opentype/truetype/Zone.java:
2845         Made class public.
2846
2847 2006-11-14  Roman Kennke  <kennke@aicas.com>
2848
2849         * javax/swing/RepaintManager.java
2850         (RepaintManager): Fetch the default state for the double buffering
2851         from a system property gnu.swing.doublebuffering.
2852
2853 2006-11-14  Roman Kennke  <kennke@aicas.com>
2854
2855         * javax/swing/plaf/basic/BasicLabelUI.java
2856         (cachedInsets): New field.
2857         (getFontMetrics): New helper method. Fetches the font metrics
2858         from the component or the toolkit.
2859         (getPreferredSize): Use getFontMetrics() helper method for
2860         fetching the font metrics.
2861         (paint): Use getFontMetrics() helper method for
2862         fetching the font metrics. Only paint if icon or text
2863         are != null. Use cached insets.
2864         (paintDisabledText): Don't store/restore color object. The
2865         JComponent painting mechanism takes care of this by calling
2866         create().
2867         (paintEnabledText): Don't store/restore color object. The
2868         JComponent painting mechanism takes care of this by calling
2869         create().
2870
2871 2006-11-14  Roman Kennke  <kennke@aicas.com>
2872
2873         * gnu/java/awt/peer/GLightweightPeer.java
2874         (handleEvent): Try to do something reasonable and trigger painting
2875         for the lightweight component.
2876         (getFontMetrics): Fetch and return a font metrics object from
2877         the Toolkit.
2878
2879 2006-11-13  Andrew John Hughes  <gnu_andrew@member.fsf.org>
2880
2881         * gnu/java/util/regex/RETokenNamedProperty.java:
2882         (getHandler(String)): Add support for 'all'.
2883         
2884 2006-11-13  Andreas Tobler  <a.tobler@schweiz.org>
2885
2886         * AUTHORS: Add myself.
2887
2888 2006-11-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
2889
2890         * AUTHORS: Add Tania Bento, Thomas Fitzsimmons, Francis Kung and
2891         Dalibor Topic.  Re-order 'K' section.  Remove trailing space from
2892         Roman Kennke's entry.
2893
2894 2006-11-13  Roman Kennke  <kennke@aicas.com>
2895
2896         * java/awt/image/IndexColorModel.java
2897         (createCompatibleSampleModel): Implemented missing method.
2898
2899 2006-11-11  Andreas Tobler  <a.tobler@schweiz.org>
2900
2901         * gnu/java/awt/peer/gtk/GtkImageConsumer.java (setPixels): Handle data
2902         from big endian systems correctly.
2903
2904 2006-11-11  Roman Kennke  <kennke@aicas.com>
2905
2906         * gnu/javax/swing/text/html/css/CSSColor.java
2907         (isValidColor): New helper method. Checks strings if they
2908         form a valid color value.
2909         * gnu/javax/swing/text/html/css/Length.java
2910         (Length): Catch number format exceptions.
2911         * javax/swing/text/html/CSS.java
2912         (addInternal): New method. Checks for shorthand CSS attributes
2913         and parses them.
2914         (parseBackgroundShorthand): New method. Parses the background
2915         shorthand attribute.
2916         * javax/swing/text/html/HTMLDocument.java
2917         (HTMLReader.LinkAction): Made class a subclass of HiddenAction.
2918         (HTMLReader.LinkAction.start): Implemented to load the linked
2919         stylesheet.
2920         (HTMLReader.LinkAction.end): Removed. This is not needed.
2921         * javax/swing/text/html/StyleSheet.java
2922         (CSSStyleSheetParserCallback.declaration): Push declaration
2923         through CSS.addInternal() to parse shorthand attributes.
2924         (addCSSAttribute): Push declaration through CSS.addInternal()
2925         to parse shorthand attributes.
2926         (importStyleSheet): Implemented. This adds a stylesheet from
2927         an URL.
2928         * javax/swing/text/html/TableView.java
2929         (calculateColumnRequirements): Increase column index for
2930         non CellView children to avoid endless loop.
2931         * javax/swing/text/CompositeView.java
2932         (setParent): Comparen with numChildren not with real arraylength.
2933
2934 2006-11-11  David Gilbert  <david.gilbert@object-refinery.com>
2935
2936         * java/beans/beancontext/BeanContextSupport.java
2937         (getChildBeanContextChild): Implemented.
2938
2939 2006-11-10  Roman Kennke  <kennke@aicas.com>
2940
2941         * javax/swing/text/View.java
2942         (updateLayout): Only repaint when needed.
2943
2944 2006-11-10  David Gilbert  <david.gilbert@object-refinery.com>
2945
2946         * java/util/Collections.java
2947         (sort(List)): Minor API doc addition,
2948         (sort(List, Comparator)): Likewise.
2949
2950 2006-11-10  David Fu  <fchoong@netbeans.jp>
2951
2952         * javax/swing/text/html/HTMLWriter.java
2953         (traverse): Removed Classpath specific handling of implied
2954         tags.
2955         (traverseHtmlFragment): Removed Classpath specific handling of
2956         implied tags.
2957
2958 2006-11-10  Roman Kennke  <kennke@aicas.com>
2959
2960         * javax/swing/text/ParagraphView.java
2961         (Row.getMaximumSize): Removed. This method is not necessary.
2962         * javax/swing/text/html/TableView.java
2963         (CellView): Moved attribute init to setPropertiesFromAttributes().
2964         (setPropertiesFromAttributes): Fetch attributes here.
2965         (RowView.RowView): Documented.
2966         (RowView.getMaximumSpan): Overridden to restrict the max span
2967         in the Y direction.
2968         (RowView.layoutMajorAxis): Correctly layout the spans.
2969         (columnWidths): New field. Stores the width attributes of
2970         the columns.
2971         (calculateColumnRequirements): Added support for relative
2972          (== percent) width attributes.
2973         (calculateMajorAxisRequirements): Removed.
2974         (calculateMinorAxisRequirements): Removed unnecessary code.
2975         (getMaximumSpan): Overridden to restrict the table's width.
2976         (layoutColumns): Documented. Implement more clever table layout,
2977         i.e. for relative columns etc.
2978         (layoutMinorAxis): Don't mark rows invalid.
2979         (updateGrid): Added docs. Initialize column widths.
2980
2981 2006-11-09  Roman Kennke  <kennke@aicas.com>
2982
2983         * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment,
2984         * gnu/java/awt/peer/headless/HeadlessToolkit: New classes.
2985         Implement basic headless toolkit.
2986         * java/awt/Toolkit.java
2987         (getDefaultToolkit): Check headless property and create
2988         headless toolkit when true.
2989
2990 2006-11-09  Ingo Proetel  <proetel@aicas.com>
2991 2006-11-09  Roman Kennke  <kennke@aicas.com>
2992
2993         * gnu/java/awt/peer/swing/SwingButtonPeer.java
2994         (SwingButton.button): New field.
2995         (SwingButton.SwingButton): Added constructor.
2996         (SwingButton.isShowing): Access button field instead of
2997         the surrounding class.
2998         (SwingButton.getParent): Access button field instead of
2999         the surrounding class.
3000         (SwingButtonPeer): Call new SwingButton constructor.
3001         * gnu/java/awt/peer/swing/SwingComponent.java:
3002         Several documentation updates.
3003         * gnu/java/awt/peer/swing/SwingComponentPeer.java
3004         (currentPaintEvents): New field.
3005         (peerFont): New field.
3006         (SwingComponentPeer): Initialize currentPaintEvents fields.
3007         (coalescePaintEvents): Implemented.
3008         (dispose): Unregister peer from heavyweight list of its container.
3009         (getGraphics): Fetch graphics from parent component.
3010         (handleEvent): Discard paint event if its coalesced.
3011         (init): Register component with its container for proper painting.
3012         (paint): Call peerPaint().
3013         (peerPaint): Added argument that indicates if we should update.
3014         Call paint or update on the actual AWT component.
3015         (peerPaintComponent): New method. Paints the peer (Swing) component.
3016         (setFont): Set peerFont field.
3017         * gnu/java/awt/peer/swing/SwingContainerPeer.java
3018         (backbuffer): New field.
3019         (focusOwner): New field.
3020         (heavyweightDescendents): New field.
3021         (SwingContainerPeer): Take Container as argument. Don't call init
3022         yet.
3023         (addHeavyweightDescendent): New method.
3024         (getFocusOwner): New helper method.
3025         (getInsets): Delegate to insets().
3026         (handleKeyEvent): Dispatch event to focus owner.
3027         (handleMouseEvent): Dispatch to child component.
3028         (isDoubleBuffering): New helper method.
3029         (peerPaint): Overridden to implement container painting with
3030         double buffering.
3031         (peerPaintChildren): New method. Paints the descendents of this
3032         container.
3033         (removeHeavyweightDescendent): New helper method.       
3034         * gnu/java/awt/peer/swing/SwingFramePeer.java
3035         (peerPaint): Removed.
3036         (peerPaintComponent): Overridden to paint the menu bar.
3037         * gnu/java/awt/peer/swing/SwingLabelPeer.java
3038         (SwingLabel.label): New field.
3039         (SwingLabel.SwingLabel): Added constructor with Label argument.
3040         (SwingLabel.getGraphics): Implemented to fetch the graphics from
3041         the actual AWT component.
3042         (SwingLabel.getParent): Implemented to fetch the parent from
3043         the AWT component.
3044         (SwingLabel.isShowing): Access the label field.
3045         (SwingLabelPeer): Set alignment from label.
3046         * gnu/java/awt/peer/swing/SwingListPeer.java: New class.
3047         * gnu/java/awt/peer/swing/SwingMenuBarPeer.java: Documentation
3048         fixlet.
3049         * gnu/java/awt/peer/swing/SwingPanelPeer.java:
3050         Don't be a lighweight peer.
3051         (SwingPanelPeer): Call init.
3052         * gnu/java/awt/peer/swing/SwingTextAreaPeer.java: New class.
3053         * gnu/java/awt/peer/swing/SwingTextFieldPeer.java
3054         (SwingTextField.textField): New field.
3055         (SwingTextField.SwingTextField): New constructor.
3056         (SwingTextField.isShowing): Access field not enclosing class.
3057         (SwingTextField.getGraphics): New method.
3058         (SwingTextField.getParent): New method.
3059         (SwingTextFieldPeer): Call new constructor.
3060         (select): Renamed arguments.
3061         * gnu/java/awt/peer/swing/SwingWindowPeer.java
3062         (SwingWindowPeer): Call init.
3063
3064 2006-11-09  Tania Bento  <tbento@redhat.com>
3065
3066         * javax/swing/JLabel.java
3067         (JLabel(Icon)): Changed documentation; Changed text to null.
3068         (JLabel(Icon,int)): Likewise.
3069         (JLabel(text)): Changed documenation.
3070         (JLabel(text,int)): Likewise.
3071         (JLabel(text,Icon,int)): Changed documentation; Throw 
3072         IllegalArgumentException if int is not one of LEFT, RIGHT,
3073         CENTER, LEADING or TRAILING.
3074
3075 2006-11-09  David Gilbert  <david.gilbert@object-refinery.com>
3076
3077         * java/beans/beancontext/BeanContextSupport.java
3078         (BeanContextSupport): Use correct dtime default,
3079         (BeanContextSupport(BeanContext)): Likewise,
3080         (BeanContextSupport(BeanContext, Locale)): Likewise, plus renamed
3081         locale argument,
3082         (BeanContextSupport(BeanContext, Locale, boolean)): Likewise,
3083         (BeanContextSupport(BeanContext, Locale, boolean, boolean)): Likewise.
3084
3085 2006-11-09  David Gilbert  <david.gilbert@object-refinery.com>
3086
3087         * java/beans/beancontext/BeanContextSupport.java
3088         (getBeanContextPeer): Implemented.
3089
3090 2006-11-09  Roman Kennke  <kennke@aicas.com>
3091
3092         * javax/swing/text/html/BlockView.java
3093         (cssHeight): Removed.
3094         (cssWidth): Removed.
3095         (cssSpans): New field. Replaces the two fields above.
3096         (BlockView): Allocate cssSpans array.
3097         (layoutMinorAxis): Fetch and use child span, not this view's span.
3098         (setCSSSpan): Adjusted to use cssSpans array.
3099         (setPropertiesFromAttributes): Adjusted to use cssSpans array.
3100
3101 2006-11-09  Roman Kennke  <kennke@aicas.com>
3102
3103         * javax/swing/text/html/InlineView.java
3104         (nowrap): New field.
3105         (getBreakWeight): Add support for nowrap.
3106         (setPropertiesFromAttributes): Fetch the nowrap setting.
3107
3108 2006-11-09  Roman Kennke  <kennke@aicas.com>
3109
3110         * gnu/javax/swing/text/html/css/CSSParser.java
3111         (parseRuleset): Use new Selector class.
3112         (parseValue): Parse multiple anys, not only one.
3113         (main): Allow stylesheet be specified on the command line.
3114         Use new Selector class.
3115         * gnu/javax/swing/text/html/css/CSSParserCallback.java
3116         (startStatement): Use Selector class.
3117         * gnu/javax/swing/text/html/css/CSSScanner.java
3118         (readName): Actually read a character in the loop to avoid
3119         endless loop.
3120         * gnu/javax/swing/text/html/css/Length.java
3121         (getValue): Only multiply when we have a percentage value.
3122         * gnu/javax/swing/text/html/css/Selector.java:
3123         New class. Provides handling of CSS selectors.
3124         * javax/swing/text/html/StyleSheet.java
3125         (CSSStyle.PREC_AUTHOR_IMPORTANT): New constant field.
3126         (CSSStyle.PREC_AUTHOR_NORMAL): New constant field.
3127         (CSSStyle.PREC_NORM): New constant field.
3128         (CSSStyle.PREC_UA): New constant field.
3129         (CSSStyle.PREC_USER_IMPORTANT): New constant field.
3130         (CSSStyle.precedence): New field.
3131         (CSSStyle.priority): Removed.
3132         (CSSStyle.selector): New field.
3133         (CSSStyle.CSSStyle(int,Selector)): Initialize with Selector
3134         and precendence.
3135         (CSSStyle.compareTo): Adjusted to use the precedence and
3136         specificity of the selector.
3137         (CSSStyleSheetParserCallback.precedence): New field.
3138         (CSSStyleSheetParserCallback.selector): Removed.
3139         (CSSStyleSheetParserCallback.style): New field.
3140         (CSSStyleSheetParserCallback.CSSStyleSheetParserCallback):
3141         Initialize with precedence.
3142         (CSSStyleSheetParserCallback.declaration): Don't look up
3143         existing rule, simply create new one.
3144         (CSSStyleSheetParserCallback.endStatement): Append style
3145         to stylesheet.
3146         (CSSStyleSheetParserCallback.startStatement): Use new Selector
3147         class.
3148         (css): Changed to be ArrayList.
3149         (addRule): Create parser with author-normal precendence.
3150         (getRule): Fixed implementation.
3151         (loadRules): Create parser with UA precendence.
3152         (resolveStyle): Use Selector class for resolving and matching
3153         stylesheet rules.
3154         (translateHTMLToCSS): Added mappings for a couple of HTML
3155         attributes.
3156
3157 2006-11-09  David Gilbert  <david.gilbert@object-refinery.com>
3158
3159         Fixes bug #29770
3160         * java/beans/SimpleBeanInfo.java
3161         (loadImage): Check for nulls.
3162
3163 2006-11-09  Robert Schuster  <robertschuster@fsfe.org>
3164
3165         * native/jni/java-nio/gnu_java_nio_VMChannel.c:
3166         (getpeername): Added 16 byte offset to memcpy operation.
3167
3168 2006-11-09  Robert Schuster  <robertschuster@fsfe.org>
3169
3170         * native/jni/java-nio/gnu_java_nio_VMChannel.c:
3171         (getsockname): Added 16 byte offset to memcpy operation.
3172
3173 2006-11-08  Mark Wielaard  <mark@klomp.org>
3174
3175         Fixes bug #29754
3176         * java/io/OutputStreamWriter.java
3177         (OutputStreamWriter(OutputStream,Charset)): Set encodingName.
3178         (OutputStreamWriter(OutputStream,CharsetEncoder)): Likewise.
3179
3180 2006-11-08  Roman Kennke  <kennke@aicas.com>
3181
3182         * javax/swing/text/html/HTMLEditorKit.java
3183         (getParser): Use plain HTML_401F DTD.
3184         * javax/swing/text/html/HTMLDocument.java
3185         (HTMLReader.print): Removed method and all calls to it.
3186         (HTMLReader.printBuffer): Removed method and all calls to it.
3187         (HTMLReader.inImpliedParagraph): New field.
3188         (HTMLReader.inParagraph): New field.
3189         (HTMLReader.addContent): Create implied p-tag if necessary.
3190         (HTMLReader.addSpecialElement): Create implied p-tag if necessary.
3191         (HTMLReader.blockClose): Close implied p-tag if necessary.
3192         (HTMLReader.blockOpen): Close implied p-tag if necessary.
3193         * gnu/javax/swing/text/html/parser/HTML_401Swing.java: Removed.
3194
3195 2006-11-08  Roman Kennke  <kennke@aicas.com>
3196
3197         * javax/swing/text/html/HTMLEditorKit.java
3198         (HTMLFactory.create): Removed mapping for TD tag. This
3199         is done in TableView.
3200         * javax/swing/text/html/TableView.java:
3201         Implemented from scratch.
3202
3203 2006-11-07  Roman Kennke  <kennke@aicas.com>
3204
3205         * gnu/javax/swing/text/html/parser/support/Parser.java
3206         (_handleText): Check if text content is actually allowed before
3207         passing empty text fragments on to the parser callbacks.
3208
3209 2006-11-07  Mark Wielaard  <mark@klomp.org>
3210
3211         * gnu/java/net/protocol/jar/Handler.java (parseURL): Flatten jar
3212         path.
3213         (flat): New method.
3214
3215 2006-11-07  Tania Bento  <tbento@redhat.com>
3216
3217         * java/awt/FlowLayout.java
3218         (getSize): If parent does not have a component, then a 
3219         different formula is used to calcuate the width.
3220
3221 2006-11-07  Roman Kennke  <kennke@aicas.com>
3222
3223         * javax/swing/text/html/HTMLEditorKit.java
3224         (HTMLFactory.create): Include ListView.
3225         * javax/swing/text/html/ListView.java
3226         (paint): Removed comment.
3227         * javax/swing/text/html/StyleSheet.java
3228         (CSSStyle.priority): New field.
3229         (CSSStyle.CSSStyle(int)): New constructor with priority.
3230         (CSSStyle.compareTo): New method. Used for sorting the styles.
3231         (CSSStyleSheetParserCallback.declaration): Store the style
3232         with the complete selector.
3233         (ListPainter.attributes): Renamed as field.
3234         (ListPainter.styleSheet): New field.
3235         (ListPainter.type): New field.
3236         (ListPainter.ListPainter): Pass StyleSheet to constructor.
3237         (ListPainter.paint): Provide simplistic implementation.
3238         (getListPainter): Pass StyleSheet to constructor.
3239         (resolveStyle): Fixed CSS style resolving.
3240
3241 2006-11-07  Roman Kennke  <kennke@aicas.com>
3242
3243         * gnu/javax/swing/text/html/css/BorderWidth.java:
3244         New class. Handles CSS border width values.
3245         * gnu/javax/swing/text/html/css/Length.java
3246         (floatValue): Made protected so that BorderWidth can access it.
3247         * javax/swing/text/html/CSS.java
3248         (Attribute.BORDER_BOTTOM_COLOR): New static field.
3249         (Attribute.BORDER_BOTTOM_STYLE): New static field.
3250         (Attribute.BORDER_LEFT_COLOR): New static field.
3251         (Attribute.BORDER_LEFT_STYLE): New static field.
3252         (Attribute.BORDER_RIGHT_COLOR): New static field.
3253         (Attribute.BORDER_RIGHT_STYLE): New static field.
3254         (Attribute.BORDER_TOP_COLOR): New static field.
3255         (Attribute.BORDER_TOP_STYLE): New static field.
3256         (getValue): Added some mappings for the border color and
3257         border width values.
3258         * javax/swing/text/html/CSSBorder.java: New class. Implements
3259         CSS borders.
3260         * javax/swing/text/html/StyleSheet.java
3261         (BoxPainter.background): New field.
3262         (BoxPainter.border): New field.
3263         (BoxPainter.bottomInset): Documented.
3264         (BoxPainter.leftInset): Documented.
3265         (BoxPainter.rightInset): Documented.
3266         (BoxPainter.topInset): Documented.
3267         (BoxPainter.BoxPainter): Added support for borders and background.
3268         (BoxPainter.getInset): Add border insets.
3269         (BoxPainter.paint): Implemented. Paints the background and the
3270         CSS border.
3271         (addRule): Be less picky about parse and IO exceptions.
3272         (getBoxPainter): Adjust to new BoxPainter constructor.
3273
3274 2006-11-07  Andreas  <a.tobler@schweiz.org>
3275
3276         * examples/Makefile.am: Add rule to install the *.html files we use
3277         in the Swing Demo.
3278
3279 2006-11-06  Francis Kung  <fkung@redhat.com>
3280
3281         * gnu/java/awt/peer/gtk/ComponentGraphics.java
3282         (fillRect): Handle custom composites.
3283         (drawRenderedImage): Handle custom composites.
3284         (drawImage): Handle custom composites.
3285         (createBuffer): New method.
3286         (drawLine): Handle custom composites.
3287         (drawComposite): New method.
3288         (fill): Handle custom composites.
3289         (getNativeCM): New method.
3290         (drawGlyphVector): Handle custom composites.
3291         (drawRect): Handle custom composites.
3292         (draw): Handle custom composites.
3293         * gnu/java/awt/peer/gtk/VolatileImageGraphics.java
3294         (drawComposite): Unset composite during draw call, to prevent parent
3295         from handling composite again.
3296         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
3297         (getBufferCM): Added comments.
3298         (getNativeCM): Made abstract.
3299         (setComposite): Removed comments.
3300
3301 2006-11-06  Roman Kennke  <kennke@aicas.com>
3302
3303         * examples/gnu/classpath/examples/swing/HtmlDemo.java:
3304         Fixed initial window size and start document.
3305
3306 2006-11-06  Roman Kennke  <kennke@aicas.com>
3307
3308         * javax/swing/text/html/HTMLDocument.java
3309         (HTMLReader.addSpecialElement): Removed comment about
3310         htmlAttributeSet.
3311         (HTMLReader.handleComment): Create SimpleAttributeSet instead
3312         of htmlAttributeSet.
3313         * javax/swing/text/html/parser/DocumentParser.java
3314         (gnuParser.handleStartTag): Use SimpleAttributeSet instead
3315         of htmlAttributeSet.
3316         * javax/swing/text/html/parser/ParserDelegator.java
3317         (gnuParser.handleStartTag): Use SimpleAttributeSet instead
3318         of htmlAttributeSet.
3319         * gnu/javax/swing/text/html/parser/GnuParserDelegator.java
3320         (gnuParser.handleStartTag): Use SimpleAttributeSet instead
3321         of htmlAttributeSet.
3322         * gnu/javax/swing/text/html/parser/support/Parser.java
3323         (getAttributes): Return a SimpleAttributeSet.
3324         (restOfTag): Don't set resolving parent here.
3325
3326 2006-11-06  Tania Bento  <tbento@redhat.com>
3327
3328         * java/awt/TextComponent.java
3329         (setSelectionStart): Added check.
3330
3331 2006-11-06  Tania Bento  <tbento@redhat.com>
3332
3333         * java/awt/TextField.java
3334         (minimumSize(int)): Check if minimum size has been previously
3335         set and changed values of Dimension returned if peer == null.
3336         (preferredSize(int)): Check if preferred size has been previously
3337         set and changed values of Dimension returned if peer == null.
3338
3339 2006-11-06  Roman Kennke  <kennke@aicas.com>
3340
3341         * javax/swing/JTree.java
3342         (TreeModelHandler.treeNodesRemoved): Implemented.
3343         (TreeModelHandler.treeStructureChanged): Implemented.
3344         (nodeStates): Made package private.
3345
3346 2006-11-06  Francis Kung  <fkung@redhat.com>
3347
3348         PR 29420
3349         * javax/swing/JTree.java
3350         (clearSelectionPathStates): New private method to clean up nodeStates.
3351         (removeSelectionPath): Call clearSelectionPathStates().
3352         (removeSelectionPaths): Call clearSelectionPathStates().
3353         (removeSelectionRow): Call clearSelectionPathStates().
3354         (setSelectionPath): Call clearSelectionPathStates().
3355         (setSelectionPaths): Call clearSelectionPathStates().
3356         (setSelectionRow): Call clearSelectionPathStates().
3357
3358 2006-11-06  Ito Kazumitsu  <kaz@maczuka.gcd.org>
3359
3360         Fixes bug #29703
3361         * java/util/regex/Matcher.java(reset): Reset inputCharIndexed.
3362
3363 2006-11-06  Roman Kennke  <kennke@aicas.com>
3364
3365         * examples/gnu/classpath/examples/swing/HtmlDemo.java:
3366         Changed to implement a minimalistic browser.
3367         * examples/gnu/classpath/examples/swing/forms.html,
3368         * examples/gnu/classpath/examples/swing/textstyles.html,
3369         * examples/gnu/classpath/examples/swing/welcome.html:
3370         Some example content.
3371
3372 2006-11-06  Roman Kennke  <kennke@aicas.com>
3373
3374         * javax/swing/text/ComponentView.java
3375         (setParent): Lock the document and repaint the hosting
3376         container.
3377         * javax/swing/text/FlowView.java
3378         (FlowStrategy.createView): Removed comment.
3379         (FlowView): Initialize span with Short.MAX_VALUE.
3380         (getFlowStart): Return 0 unconditionally.
3381         (layout): Moved code around to make it more readable.
3382         (loadChildren): Always set the parent.
3383         * javax/swing/text/GlyphView.java
3384         (DefaultGlyphPainter.fontMetrics): New field.
3385         (DefaultGlyphPainter.getAscent): Use new helper method to
3386         synchronize the font metrics.
3387         (DefaultGlyphPainter.getBoundedPosition): Use new helper method
3388         to synchronize the font metrics.
3389         (DefaultGlyphPainter.getDescent): Use new helper method to
3390         synchronize the font metrics.
3391         (DefaultGlyphPainter.getHeight): Use new helper method to
3392         synchronize the font metrics.
3393         (DefaultGlyphPainter.getSpan): Use new helper method to
3394         synchronize the font metrics.
3395         (DefaultGlyphPainter.modelToView): Use new helper method to
3396         synchronize the font metrics.
3397         (DefaultGlyphPainter.updateFontMetrics): New helper method for
3398         font metrics caching.
3399         (DefaultGlyphPainter.viewToModel): Use new helper method to
3400         synchronize the font metrics. Fixed view to model mapping.
3401         * javax/swing/text/View.java
3402         (removeAll): Pass null to replace().
3403         (setParent): Only reparent children that have this view as parent.
3404
3405 2006-11-05  Mark Wielaard  <mark@klomp.org>
3406
3407         * include/gnu_java_net_VMPlainDatagramSocketImpl.h: Removed.
3408         * include/gnu_java_nio_channels_FileChannelImpl.h: Removed.
3409         * native/jni/java-net/gnu_java_net_VMPlainDatagramSocketImpl.c:
3410         Removed.
3411         * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c:
3412         Removed.
3413         * native/jni/java-nio/Makefile.am (libjavanio_la_SOURCES):
3414         Remove gnu_java_nio_channels_FileChannelImpl.c.
3415
3416 2006-11-03  Roman Kennke  <kennke@aicas.com>
3417
3418         * javax/swing/text/html/BlockView.java
3419         (attributes): New field.
3420         (cssHeight): New field.
3421         (cssWidth): New field.
3422         (painter): New field.
3423         (calculateMajorAxisRequirements): Overridden to account for
3424         CSS settings.
3425         (calculateMinorAxisRequirements): Overridden to account for
3426         CSS settings.
3427         (layoutMinorAxis): Overridden to account for CSS settings.
3428         (changedUpdate): Formatting fixlet.
3429         (constrainSize): New helper method.
3430         (getAlignment): Fix alignment.
3431         (getAttributes): Cache attributes for better performance.
3432         (getStyleSheet): Fetch stylesheet from document rather than creating
3433         a new one.
3434         (paint): Remove comment.
3435         (setCSSSpan): New helper method.
3436         (setPropertiesFromAttributes): Implemented to fetch the
3437         recognized properties.
3438         * javax/swing/text/html/CSS.java
3439         (getValue): Added mapping for width and height attributes.
3440         * javax/swing/text/html/InlineView.java
3441         (longestWord): New field.
3442         (getLongestWord): New helper method.
3443         (calculateLongestWord): New helper method.
3444         (getMinimumSpan): Overridden to constrain the minimum span by the
3445         longest word.
3446         * javax/swing/text/html/ParagraphView.java
3447         (cssHeight): New field.
3448         (cssWidth): New field.
3449         (calculateMinorAxisRequirements): Overridden to account for
3450         CSS settings.
3451         (setCSSSpan): New helper method.
3452         (setPropertiesFromAttributes): Fetch CSS width and height. Added
3453         null check.
3454         * gnu/javax/swing/text/html/css/Length.java
3455         (percentage): New field.
3456         (Length): Determine percentage values.
3457         (getValue(float)): New method for handling percentage values.
3458         (isPercentage): New method.
3459
3460 2006-11-03  Tania Bento  <tbento@redhat.com>
3461
3462         * java/awt/TextArea.java
3463         (getMinimumSize): Changed documentation.
3464         (getPreferredSize): Changed documentation.
3465         (getMinimumSize(int,int)): Changed documenation.
3466         (getPreferredSize(int,int)): Changed documenation.
3467         (minimumSize): Changed documentation.
3468         (preferredSize): Changed documenation.
3469         (minimumSize(int,int)): Changed documentation.  Checked if 
3470         minimum size had been previously set and changed values of
3471         Dimension returned if peer == null.
3472         (preferredSize(int, int)): Checked if preferred size had been
3473         previously set and changed values of Dimension returned if
3474         peer = null.
3475
3476 2006-11-03  Tania Bento  <tbento@redhat.com>
3477
3478         * java/awt/event/ComponentEvent.java
3479         (paramString): Changed format of string representation returned.
3480
3481 2006-11-03  Roman Kennke  <kennke@aicas.com>
3482
3483         * javax/swing/text/html/HTMLDocument.java
3484         (HTMLReader.FormAction.start): Added support for textarea.
3485         (HTMLReader.FormAction.end): Added support for textarea.
3486         (HTMLReader.HeadAction.end): Call super to actually close the
3487         block.
3488         (HTMLReader.inTextArea): New field.
3489         (HTMLReader.textAreaDocument): New field.
3490         (HTMLReader.handleText): Call textAreaContent when inside
3491         a textarea tag.
3492         (HTMLReader.textAreaContent): Implemented to initialize
3493         the text area's model.
3494         * javax/swing/text/html/FormView.java
3495         (createComponent): Added support for textarea tag.
3496
3497 2006-11-03  Roman Kennke  <kennke@aicas.com>
3498
3499         * javax/swing/text/html/HTMLDocument.java
3500         (HTMLReader.IsindexAction.start): Implemented.
3501
3502 2006-11-03  Roman Kennke  <kennke@aicas.com>
3503
3504         * javax/swing/text/html/StyleSheet.java
3505         (addRule): Implemented.
3506         * javax/swing/text/html/HTMLDocument.java
3507         (HTMLReader.inStyleTag): New field.
3508         (HTMLReader.styles): New field.
3509         (HTMLReader.HeadAction.end): Implemented to read all stylesheets,
3510         if any.
3511         (HTMLReader.StyleAction.start): Set inStyleTag flag.
3512         (HTMLReader.StyleAction.end): Set inStyleTag flag.
3513         (HTMLReader.handleText): When inside a style tag, add
3514         content to the styles array.
3515
3516 2006-11-02  Roman Kennke  <kennke@aicas.com>
3517
3518         * javax/swing/text/html/FormView.java
3519         (maxIsPreferred): New field.
3520         (createComponent): Initialize components correctly.
3521         (getMaximumSpan): Return the preferred span for components
3522         that need this. The maxIsPreferred flag is set accordingly
3523         in createComponent.
3524         * javax/swing/text/html/HTMLDocument.java
3525         (HTMLReader.FormAction.start): Implemented to set the
3526         correct model as attribute.
3527         (HTMLReader.FormAction.setModel): New helper method.
3528         (HTMLReader.FormAction.end): Call super to finish the element.
3529         Added TODO about things left to do.
3530         (HTMLReader.handleComment): Use SimpleAttributeSet rather
3531         than htmlAttributeSet.
3532         * javax/swing/text/html/HTMLEditorKit.java
3533         (HTMLFactory.create): Create BlockView for FORM tags.
3534         Create FormView for INPUT, TEXTAREA and SELECT tags.
3535
3536 2006-11-02  David Gilbert  <david.gilbert@object-refinery.com>
3537
3538         * java/awt/geom/GeneralPath.java: API doc fixes.
3539
3540 2006-11-02  Roman Kennke  <kennke@aicas.com>
3541
3542         * javax/swing/text/html/ImageView.java
3543         (getImageURL): Fetch attribute from element. Consider the
3544         base URL for relative image locations.
3545
3546 2006-11-02  Roman Kennke  <kennke@aicas.com>
3547
3548         * javax/swing/JEditorPane.java
3549         (setContentType): Strip off attributes.
3550         * javax/swing/text/html/HTMLEditorKit.java
3551         (LinkController.activateLink(int,JEditorPane,int,int): New
3552         method. Implements activation of a hyperlink.
3553         (LinkController.activateLinke(int,JEditorPane)): Delegate
3554         to the other activateLink() method.
3555         (LinkController.createHyperlinkEvent): New helper method.
3556         (LinkController.mouseClicked): Implemented to activate the link.
3557         (LinkController.mouseDragged): Added comment that this
3558         method does nothing.
3559         (LinkController.mouseMoved): Update cursor for hyperlinks.
3560         (mouseHandler): Renamed field to linkController.
3561         (HTMLEditorKit): Create a link controller.
3562         (clone): Give the clone a new link controller.
3563         (deinstall): De-install link controller as mouseMotionListener too.
3564         (install): Install link controller as mouseMotionListener too.
3565
3566 2006-11-02  Roman Kennke  <kennke@aicas.com>
3567
3568         PR 29644
3569         * javax/swing/text/FlowView.java
3570         (FlowStrategy.changedUpdate): Reversed condition. This caused
3571         wrong layout and bad performance.
3572         (FlowStrategy.insertUpdate): Reversed condition. This caused
3573         wrong layout and bad performance.
3574         (FlowStrategy.removeUpdate): Reversed condition. This caused
3575         wrong layout and bad performance.
3576         (LogicalView): Changed to be a subclass of CompositeView.
3577         (LogicalView()): Only take one Element argument.
3578         (LogicalView.childAllocation): New method for implementing
3579         the abstract CompositeView method.
3580         (LogicalView.forwardUpdateToView): Overridden for correct
3581         reparenting.
3582         (getMinimumSpan): Overridden to handle line breaking correctly.
3583         (getPreferredSpan): Implemented to handle line breaking correctly.
3584         (getViewAtPoint): New method for implementing
3585         the abstract CompositeView method.
3586         (getViewIndexAtPosition): Overridden to handle leaf elements
3587         correctly.
3588         (isAfter): New method for implementing
3589         the abstract CompositeView method.
3590         (isBefore): New method for implementing
3591         the abstract CompositeView method.
3592         (loadChildren): Overridden to handle leaf elements
3593         correctly.
3594         (paint): New method for implementing
3595         the abstract CompositeView method.
3596         (calculateMinorAxisRequirements): Use preferredSpan in calculation.
3597         (loadChildren): Initialize flow layout by sending a synthetic
3598         insertUpdate() to the layout strategy.
3599         * javax/swing/text/GlyphView.java
3600         (DefaultGlyphPainter.getBoundedPosition): Fall back to Toolkit's
3601         font metrics if component is not available. Add initial offset
3602         to result.
3603         (breakView): Be more clever when breaking the view.
3604         (getBreakLocation): New helper method to determine a good
3605         break location.
3606         (getBreakWeight): Be more clever when breaking the view.
3607         (getTabbedSpan): Make sure we have a painter. Use view's
3608         start and end offset rather than the element's.
3609         * javax/swing/text/Utilities.java
3610         (drawTabbedText): Avoid useless add and sub with the y offset.
3611
3612 2006-11-02  Roman Kennke  <kennke@aicas.com>
3613
3614         PR 29644
3615         * gnu/java/awt/peer/ClasspathFontPeer.java
3616         (getStringBounds): Removed abstract method. This is replaced
3617         in java.awt.Font to use a TextLayout.
3618         * gnu/java/awt/peer/gtk/GtkWindowPeer.java
3619         (GtkWindowPeer): Set a font on the window object.
3620         * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
3621         (FreetypeGlyphVector(Font,String,FontRenderContext,int)):
3622         Changed to take char,int,int instead of String. Filter
3623         control characters.
3624         (FreetypeGlyphVector(Font,String,FontRenderContext)):
3625         Create char array out of string.
3626         (getLogicalBounds): Don't translate bounds. They already are
3627         translated.
3628         * gnu/java/awt/peer/gtk/GdkFontMetrics.java
3629         (stringWidth): Filter out control characters.
3630         * gnu/java/awt/peer/gtk/GdkFontPeer.java
3631         (getStringBounds): Removed unneeded method.
3632         (layoutGlyphVector): Pass char array directly to FreetypeGlyphVector
3633         constructor.
3634         * gnu/java/awt/peer/qt/QtFontPeer.java
3635         (getStringBounds): Removed unneeded method.
3636         * gnu/java/awt/peer/x/XFontPeer.java
3637         (getStringBounds): Removed unneeded method.
3638         * gnu/java/awt/peer/x/XFontPeer2.java
3639         (getStringBounds): Removed unneeded method.
3640         * java/awt/Font.java
3641         (getStringBounds(char[],int,int,FontRenderContext)):
3642         Use TextLayout to determine the bounds.
3643         (getStringBounds(CharacterIterator,int,int,FontRenderContext)):
3644         Delegate to the char[] version of this method.
3645         (getStringBounds(String,FontRenderContext)):
3646         Delegate to the char[] version of this method.
3647         (getStringBounds(String,int,int,FontRenderContext)):
3648         Delegate to the String version of this method.
3649
3650 2006-11-01  Tania Bento  <tbento@redhat.com>
3651
3652         * java/awt/ScrollPaneAdjustable.java
3653         (paramString): Changed format of string representation returned.
3654         (paramStringHelper): New private method.
3655
3656 2006-11-01  Tania Bento  <tbento@redhat.com>
3657
3658         * java/awt/GridBagLayout.java
3659         (toString): Implemented method.
3660
3661 2006-10-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
3662
3663         * native/plugin/gcjwebplugin.cc (GCJ_New): Move GLib threading
3664         initialization to NP_Initialize.
3665         (NP_Initialize): Initialize GLib threading.
3666
3667 2006-10-31  Tania Bento  <tbento@redhat.com>
3668
3669         * javax/swing/JTextField.java
3670         (fireActionPerformed): When creating the new event, if
3671         actionCommand == null, then getText() is used.
3672
3673 2006-10-31  Francis Kung  <fkung@redhat.com>
3674
3675         * gnu/java/awt/peer/gtk/CairoGraphics2D.java
3676         (fillArc): Corrected arc type to Arc2D.PIE.
3677
3678 2006-10-31  Roman Kennke  <kennke@aicas.com>
3679
3680         * javax/swing/text/html/HTMLDocument.java
3681         (HTMLReader.PreAction.end): Implemented.
3682         (HTMLReader.PreAction.start): Implemented.
3683         (HTMLReader.inPreTag): New field.
3684         (HTMLReader.handleTag): When inside a pre tag, call preContent().
3685         (HTMLReader.preContent): Implemented.
3686
3687 2006-10-31  Tania Bento  <tbento@redhat.com>
3688
3689         * javax/swing/JTextField.java
3690         (fireActionPerformed): When creating the new event, 
3691         actionCommand should be used as the command, not
3692         getText().
3693
3694 2006-10-31  Roman Kennke  <kennke@aicas.com>
3695
3696         * javax/swing/text/html/HTMLEditorKit.java
3697         (write): Use HTMLWriter or MinimalHTMLWriter for writing
3698         HTML or Styled documents.
3699
3700 2006-10-31  David Fu  <fchoong@netbeans.jp>
3701
3702         * javax/swing/text/html/HTMLWriter.java: New class.
3703
3704 2006-10-30  Roman Kennke  <kennke@aicas.com>
3705
3706         * java/awt/dnd/DragSourceContext.java
3707         (dragExit): Use constant fields instead of 0.
3708         (updateCurrentCursor): Completed implementation.
3709
3710 2006-10-30  Roman Kennke  <kennke@aicas.com>
3711
3712         * java/awt/dnd/DragGestureRecognizer.java
3713         (resetRecognizer): Added API docs. Do not replace the events object
3714         but rather clear() it. Removed not implemented tag.
3715
3716 2006-10-30  Roman Kennke  <kennke@aicas.com>
3717
3718         * java/awt/datatransfer/DataFlavor.java
3719         (writeExternal): Remove not implemented tag.
3720
3721 2006-10-30  Roman Kennke  <kennke@aicas.com>
3722
3723         * java/awt/datatransfer/DataFlavor.java
3724         (javaFileListFlavor): Don't explicitly specify class.
3725         (plainTextFlavor): Don't explicitly specify class.
3726         (mimeType): Changed to type MimeType. Remove final.
3727         (representationClass): Remove final.
3728         (DataFlavor): Don't do anything here.
3729         (DataFlavor(Class,String,String)): Removed.
3730         (DataFlavor(Class,String)): Initialize here.
3731         (DataFlavor(String,String,ClassLoader)): Initialize in init().
3732         (DataFlavor(String,String)): Initialize in init().
3733         (DataFlavor(String)): Initialize in init().
3734         (init): New initialization method.
3735         (getMimeType): Delegate to MimeType.toString().
3736         (getParameter(String,String)): Removed. Is now done in MimeType.
3737         (getParameter(String)): Delegate to MimeType.
3738         (getPrimaryType): Delegate to MimeType.
3739         (getRepresentationClassFromMime): Removed.
3740         (getRepresentationClassFromMimeThrows): Removed.
3741         (getSubType): Delegate to MimeType.
3742         (hashCode): Take MimeType.toString() for the hashCode.
3743         (isFlavorRemoveObjectType): Return true only when representation
3744         class is remove and serializable and the mime type is remote.
3745         (isFlavorSerializedObjectType): Return true only when representation
3746         class is serializable and the mime type is serialized.
3747         (isMimeTypeEqual): Rewritten to delegate to MimeType.matches().
3748         (isMimeTypeSerializedObject): Delegate to isMimeTypeEqual().
3749         (readExternal): Implemented stub method.
3750         (writeExternal): Implemented stub method.
3751         * java/awt/datatransfer/MimeType.java: New helper class.
3752
3753 2006-10-28  Roman Kennke  <kennke@aicas.com>
3754
3755         * javax/swing/TransferHandler.java
3756         (importData): Implemented stub method. Added API docs.
3757
3758 2006-10-26  Christian Elias Naur  <elias@oddlabs.com>
3759
3760         * native/jni/gtk-peer/gtk_jawt.c (classpath_jawt_get_depth): New
3761         function.
3762         * native/jni/classpath/classpath_jawt.h: Likewise.
3763         * native/jawt/jawt.c (_Jv_GetDrawingSurfaceInfo): Added
3764         initializer for surface_info_x11->depth.
3765
3766 2006-10-26  Tania Bento  <tbento@redhat.com>
3767         
3768         * java/awt/FileDialog.java:
3769         (setFile): Changed if-clause condition.
3770
3771 2006-10-25  Francis Kung  <fkung@redhat.com>
3772
3773         * include/gnu_java_nio_VMChannel.h,
3774         * include/java_net_VMNetworkInterface.h,
3775         * include/gnu_java_nio_EpollSelectorImpl.h,
3776         * include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
3777         * include/gnu_java_nio_FileChannelImpl.h,
3778         * include/gnu_java_nio_KqueueSelectorImpl.h,
3779         * include/gnu_java_nio_VMPipe.h,
3780         * include/gnu_java_net_VMPlainSocketImpl.h: Regenerated.
3781
3782 2006-10-25  Tania Bento  <tbento@redhat.com>
3783
3784         * java/awt/Dialog.java: Created new private variable
3785         next_dialog_number.
3786         (Dialog(Frame, String, boolean, GraphicsConfiguration)):
3787         Set cursor to default cursor.
3788         (Dialog(Dialog, STring, boolean, GraphicsConfiguration)):
3789         Same.