OSDN Git Service

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