OSDN Git Service

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