OSDN Git Service

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