OSDN Git Service

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