OSDN Git Service

From Adam Welc <welc@cs.purdue.edu>:
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
2
3         * java/lang/natMath.cc: Declare fabsf() function.
4         * java/lang/mprec.h: Don't include math.h.
5         * java/lang/dtoa.c: Include string.h.
6         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
7         compiler warning.
8         
9         From Adam Welc <welc@cs.purdue.edu>:
10         * java/util/LinkedList.java (removeFirst): Update `first' field.
11         Handle the last == first case.
12         (removeLast): Update `last' field. Handle the last == first case.
13
14 2000-12-01  Warren Levy  <warrenl@cygnus.com>
15
16         * Makefile.am: Added entries for new java.sql modules.
17         * Makefile.in: Rebuilt.
18
19 2000-12-01  Warren Levy  <warrenl@cygnus.com>
20
21         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
22         that aren't quite 1.2 compatible yet.
23
24 2000-11-30  Warren Levy  <warrenl@cygnus.com>
25
26         * java/sql/Array.java: New file from classpath.
27         * java/sql/BatchUpdateException.java: Ditto.
28         * java/sql/Blob.java: Ditto.
29         * java/sql/Clob.java: Ditto.
30         * java/sql/Ref.java: Ditto.
31         * java/sql/SQLData.java: Ditto.
32         * java/sql/SQLInput.java: Ditto.
33         * java/sql/SQLOutput.java: Ditto.
34         * java/sql/Struct.java: Ditto.
35         * java/sql/CallableStatement.java: Merged file from claspath.
36         * java/sql/Connection.java: Ditto.
37         * java/sql/DataTruncation.java: Ditto.
38         * java/sql/DatabaseMetaData.java: Ditto.
39         * java/sql/DriverManager.java: Ditto.
40         * java/sql/PreparedStatement.java: Ditto.
41         * java/sql/ResultSet.java: Ditto.
42         * java/sql/ResultSetMetaData.java: Ditto.
43         * java/sql/SQLException.java: Ditto.
44         * java/sql/SQLWarning.java: Ditto.
45         * java/sql/Statement.java: Ditto.
46         * java/sql/Types.java: Ditto.
47
48 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
49
50         * java/lang/natSystem.cc (init_properties): Set user.language and
51         user.region.
52         * configure.in: Check for setlocale.
53         * configure: Rebuilt.
54         * include/config.h.in: Rebuilt.
55         
56         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
57         the infate() call didn't deliver any output. Throw a ZipException if
58         the needsDictionary() call returns true.
59         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
60         * java/io/InputStreamReader: Use the default buffer size for the
61         contained BufferedInputStream.
62
63 2000-11-28  Warren Levy  <warrenl@cygnus.com>
64
65         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
66         more time zone entries.
67         * java/text/SimpleDateFormat.java (format): Added case for
68         TIMEZONE_FIELD.
69
70 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
71
72         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
73         directly rather than read() in all cases. Make primitive read 
74         implementations more efficient, as defined in JDK online docs.
75         (skipBytes): Behave like the JDK's implementation.
76         * java/io/BufferedReader.java: Merge classpath docs. Check for a 
77         closed stream with checkStatus() whenever an IOException can be 
78         thrown.
79         (checkStatus): New private method.
80
81 2000-11-27  Warren Levy  <warrenl@cygnus.com>
82
83         * Makefile.am: Added natTimeZone.cc.
84         * Makefile.in: Rebuilt.
85         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
86         * java/text/DateFormatSymbols.java (ampms): Made package private.
87         (eras): Made package private.
88         (months): Made package private.
89         (shortMonths): Made package private.
90         (shortWeekdays): Made package private.
91         (weekdays): Made package private.
92         (formatPrefixes): New private field.
93         (localPatternCharsDefault): Made private.
94         (dateFormats): New package private field.
95         (timeFormats): New package private field.
96         (formatsForKey): New private method.
97         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
98         (DateFormatSymbols(DateFormatSymbols)): Ditto.
99         * java/text/SimpleDateFormat.java: Merged with Classpath.
100         * java/util/TimeZone.java: Merged with Classpath.
101         * java/util/natTimeZone.cc: New file.
102
103 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
104
105         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
106         (addElement): Don't increment elementCount twice. Doh.
107         * java/util/ArrayList.java (add): Only call ensureCapacity if the
108         array needs to be expanded.
109         (addAll): Ditto.
110         * java/util/Collections.java (UnmodifiableCollection): Implement
111         toString().
112         (UnmodifiableList): Throw UnsupportedOperationException from 
113         modification methods. Set `l' from the one-parameter constructor.
114         (UnmodifiableMap): Implement toString().
115         (SynchronizedCollection): Ditto.
116         (SynchronizedList): Set `l' from the one-parameter constructor.
117         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
118         (SynchronizedMap): Implement toString().
119
120 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
121
122         * javax/naming/NameParser.java,
123         javax/naming/directory/AttributeInUseException.java,
124         javax/naming/directory/AttributeModificationException.java,
125         javax/naming/directory/InvalidAttributeIdentifierException.java,
126         javax/naming/directory/InvalidAttributesException.java,
127         javax/naming/directory/InvalidAttributeValueException.java,
128         javax/naming/directory/InvalidSearchControlsException.java,
129         javax/naming/directory/InvalidSearchFilterException.java,
130         javax/naming/directory/NoSuchAttributeException.java,
131         javax/naming/directory/SchemaViolationException.java: New files.
132         
133 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
134
135         * javax/naming/InitialContext.java (rebind): Implement.
136         (unbind): Implement.
137         (rename): Implement.
138         (list): Implement.
139         (listBindings): Implement.
140         (destroySubcontext): Implement.
141         (createSubcontext): Implement.
142         (lookupLink): Implement.
143         (getNameParser): Implement.
144         (composeName): Implement.
145         (addToEnvironment): Implement.
146
147 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
148
149         * javax/naming/AuthenticationException.java,
150         javax/naming/AuthenticationNotSupportedException.java,
151         javax/naming/CannotProceedException.java,
152         javax/naming/CommunicationException.java,
153         javax/naming/ConfigurationException.java,
154         javax/naming/ContextNotEmptyException.java,
155         javax/naming/InsufficientResourcesException.java,
156         javax/naming/InterruptedNamingException.java,
157         javax/naming/InvalidNameException.java,
158         javax/naming/LimitExceededException.java,
159         javax/naming/LinkException.java,
160         javax/naming/LinkLoopException.java,
161         javax/naming/MalformedLinkException.java,
162         javax/naming/NameAlreadyBoundException.java,
163         javax/naming/NameNotFoundException.java,
164         javax/naming/NamingSecurityException.java,
165         javax/naming/NoPermissionException.java,
166         javax/naming/NotContextException.java,
167         javax/naming/PartialResultException.java,
168         javax/naming/ReferralException.java,
169         javax/naming/ServiceUnavailableException.java,
170         javax/naming/SizeLimitExceededException.java,
171         javax/naming/TimeLimitExceededException.java: New files.
172
173         * javax/naming/Name.java (clone): New method.
174         (compareTo): New method.
175         (isEmpty): New method.
176         (getAll): New method.
177         (getPrefix): New method.
178         (getSuffix): New method.
179         (startsWith): New method.
180         (endsWith): New method.
181         (addAll): New method.
182         (addAll): New method.
183         (add): New method.
184         (add): New method.
185         (remove): New method.
186
187         * javax/naming/Context.java (lookup): New method.
188         (rebind): New method.
189         (unbind): New method.
190         (rename): New method.
191         (list): New method.
192         (listBindings): New method.
193         (destroySubcontext): New method.
194         (createSubcontext): New method.
195         (lookupLink): New method.
196         (getNameParser): New method.
197         (composeName): New method.
198         (addToEnvironment): New method.
199         (removeFromEnvironment): New method.
200         (getEnvironment): New method.
201         (close): New method.
202         (getNameInNamespace): New method.
203
204         * javax/naming/InitialContext.java (lookup): New method.
205         (rebind): New method.
206         (unbind): New method.
207         (rename): New method.
208         (list): New method.
209         (listBindings): New method.
210         (destroySubcontext): New method.
211         (createSubcontext): New method.
212         (lookupLink): New method.
213         (getNameParser): New method.
214         (composeName): New method.
215         (addToEnvironment): New method.
216         (removeFromEnvironment): New method.
217         (getEnvironment): New method.
218         (close): New method.
219         (getNameInNamespace): New method.
220
221 2000-11-26  Tom Tromey  <tromey@cygnus.com>
222
223         * Makefile.in: Rebuilt.
224         * Makefile.am (core_java_source_files): Added
225         RuntimePermission.java.
226         * java/lang/RuntimePermission.java: Imported from Classpath.
227         * java/lang/Thread.java (getContextClassLoader): Now
228         synchronized.  Added security code.
229         (setContextClassLoader): Likewise.
230
231         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
232         length field of array.
233         (_Jv_NewPrimArray): Likewise.
234         * gcj/array.h (__JArray): `length' field now const.  Added
235         constructor.
236
237 2000-11-26  Anthony Green  <green@redhat.com>
238
239         * javax/naming/spi/NamingManager.java,
240         javax/naming/spi/ObjectFactory.java,
241         javax/naming/spi/InitialContextFactory.java,
242         javax/naming/spi/InitialContextFactoryBuilder.java,
243         javax/naming/RefAddr.java, javax/naming/Reference.java,
244         javax/naming/NamingException.java, javax/naming/Context.java,
245         javax/naming/Referenceable.java,
246         javax/naming/directory/InitialDirContext.java,
247         javax/naming/directory/DirContext.java,
248         javax/naming/directory/Attributes.java,
249         javax/naming/directory/Attribute.java,
250         javax/naming/StringRefAddr.java,
251         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
252         javax/naming/InitialContext.java,
253         javax/naming/NoInitialContextException.java: New files.
254         
255 2000-11-25  Anthony Green  <green@redhat.com>
256
257         * prims.cc (_Jv_NewObjectArray): Undo placement change.
258         (_Jv_NewPrimArray): Likewise.
259         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
260         (class JArray): Removed constructor.
261
262         * java/lang/Thread.java (context_class_loader): New private data.
263         (getContextClassLoader): New method.
264         (setContextClassLoader): New method.
265         (Thread): Initialize context_class_loader.
266
267         * java/net/URLClassLoader.java: Import java.util.Enumeration.
268         (getResource): Rename to findResource.
269         (findResource): New method.  Used to be getResource.
270         (getResourceAsStream): Deleted.
271         (jarFileize): Extracted logic from URLClassLoader constructor into
272         this new private method.
273         (addURL): New protected method.
274         (URLClassLoader): Call jarFileize.  Use addElement instead of
275         insertElementAt.
276         (findResources): New method.
277         
278         * java/lang/ClassLoader.java: Import java.util.Enumeration.
279         (getResource): Implement correct logic.
280         (findResource): New method.
281         (getResources): New method.
282         (findClass): Create a ClassNotFoundException with the name of the
283         class rather than nothing at all.
284         (defineClass) Only throw ClassFormatError.
285         
286         * java/lang/Class.java (forName): New method.
287         * java/lang/Class.h (forName): New method.
288         * java/lang/natClass.cc (forName): New method.
289
290 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
291
292         * java/lang/System.java (setProperties): Only call init_properties()
293         if properties is null.  
294         (getProperties): Ditto.
295         (getProperty): Ditto.
296         (setProperty): Call init_properties if properties are null.
297         (prop_init): Remove field.
298         * java/lang/natSystem.cc (init_properties): Synchronize the entire
299         method. Check for null properties after synchronizing instead of 
300         prop_init flag. Set the properties field last for thread safety.
301
302         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
303         test for gcj.dumpobjects property and enable object stream dumping
304         if it is set.
305         (dumpElement): No longer native.
306         (dumpElementln): Ditto.
307         (setDump): Do not define.
308         * java/io/natObjectInputStream.cc (dumpElement): Removed.
309         (dumpElementln): Removed.
310         (setDump): Removed.
311
312 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
313
314         * configure: Rebuilt.
315         * Makefile.in: Rebuilt.
316         * Makefile.am (built_java_source_files): Add Configuration.java.
317         * configure.in: Add Configuration.java to CONFIG_FILES. Set 
318         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. 
319         Create `gnu' directory in the build tree.
320         * gnu/classpath/Configuration.java.in: New file.
321
322 2000-11-24  Tom Tromey  <tromey@cygnus.com>
323
324         * prims.cc (_Jv_NewObjectArray): Use placement new to create
325         array.
326         (_Jv_NewPrimArray): Likewise.
327         Include <new>.
328         * gcj/array.h (__JArray): `length' field now const.  Added
329         constructor.
330         (class JArray): Added constructor.
331
332 2000-11-23  Mark Wielaard  <mark@klomp.org>
333
334         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
335         lookup.
336
337 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
338
339         * java/util/Vector.java: Improve exception messages.
340         (Vector): Check initialCapacity for IllegalArgumentException.
341         (tromToSize): Don't check for elementCount == elementData.length
342         case.
343         (toArray): Don't try to set null marker if target array is the same
344         length as the vector.
345
346 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
347
348         * Makefile.in: Rebuilt.
349         * Makefile.am (core_java_source_files): Added Collections.java.
350         * java/util/List.java: Merged from classpath.
351         * java/util/Vector.java: Ditto. 
352         * java/util/Collections.java: From classpath.
353         * java/util/ArrayList.java (addAll(Collection)): Call 
354         addAll(int,Collection) instead of duplicating code.
355         (indexOf): Clean up int initialization.
356         (clear): Set cleared array entries to null, to allow garbage 
357         collection.
358         * java/util/List.java: Minor formatting fixes.  
359         * java/util/SimpleTimeZone.java: ditto.
360         
361 2000-11-18  Tom Tromey  <tromey@cygnus.com>
362
363         * Makefile.in: Rebuilt.
364         * Makefile.am (core_java_source_files): Added new files.
365         * java/lang/reflect/ReflectPermission.java: New class.
366         * java/io/FileFilter.java: From Classpath
367         * java/io/FilePermission.java: From Classpath.
368
369 2000-11-17  Tom Tromey  <tromey@cygnus.com>
370
371         * java/lang/reflect/AccessibleObject.java (isAccessible,
372         setAccessible): Now public.
373
374         * java/lang/natString.cc: Include Locale.h.
375         (toUpperCase): Added `locale' argument.  Handle locale
376         sensitivity.
377         (toLowerCase): Added `locale' argument.  Handle locale
378         sensitivity.
379         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
380         CAPITAL_I): New defines.
381         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
382         final.
383         Import Locale.
384         (toUpperCase, toLowerCase): New methods.  Variants which accept
385         locale now native.
386
387         * java/lang/ExceptionInInitializerError.java (printStackTrace):
388         New methods.
389
390         * java/util/PropertyPermission.java: Re-merged from Classpath.
391
392         * java/text/RuleBasedCollator.java (getCollationElementIterator):
393         New method.
394         * java/text/StringCharacterIterator.java: Reindented.
395         (setText): New method.
396
397 2000-11-17  Mark Wielaard  <mark@klomp.org>
398
399         Merge with Classpath (changes by Bryce McKinlay)
400         * java/util/jar/*.java: Reformat all to unofficial standard coding
401         style. No changes of substance.
402
403 2000-11-17  Mark Wielaard  <mark@klomp.org>
404
405         * java/util/zip/*.java: Javadoc updates.
406
407 2000-11-17  Tom Tromey  <tromey@cygnus.com>
408
409         * java/text/CollationKey.java: Implement Comparable.
410         (compareTo(Object)): New method.
411         * java/text/Collator.java (compare(Object,Object)): New method.
412         Implement Comparator.
413
414         * java/util/zip/InflaterInputStream.java (available): New method.
415         (close): New method.
416         (read, available, skip, fill): Throw exception if stream closed.
417         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
418         getNextEntry): Throw exception if closed.
419
420 2000-11-16  Tom Tromey  <tromey@cygnus.com>
421
422         * java/io/PushbackReader.java: Merged with Classpath.
423         * java/util/Arrays.java: Updated from Classpath.
424
425         * scripts/blocks.pl: New file.
426         * java/lang/Character.java (Subset): New class.
427         (UnicodeBlock): New class.
428
429         * java/lang/Math.java (toDegrees, toRadians): New methods.
430
431         * java/lang/Float.java: Implement Comparable.
432         (compareTo): New methods.
433         * java/lang/Double.java: Implement Comparable.
434         (compareTo): New methods.
435
436 2000-11-16  Warren Levy  <warrenl@cygnus.com>
437
438         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
439         transient.
440         (listeners): Made transient.
441         (source): Renamed from 'bean'.
442         (children): New field for serialization.
443         (propertyChangeSupportSerializedDataVersion): Ditto.
444         (serialVersionUID): Ditto.
445         (writeObject): New serialization method.
446         (readObject): New serialization method.
447         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
448         transient.
449         (listeners): Made transient.
450         (source): Renamed from 'bean'.
451         (children): New field for serialization.
452         (vetoableChangeSupportSerializedDataVersion): Ditto.
453         (serialVersionUID): Ditto.
454         (writeObject): New serialization method.
455         (readObject): New serialization method.
456         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
457         to allow constructor to have a return type (i.e. the class that the
458         constructor constructs).
459
460 2000-11-14  Tom Tromey  <tromey@cygnus.com>
461
462         * Makefile.in: Rebuilt.
463         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
464         and -k not given.
465
466 2000-11-02  Warren Levy  <warrenl@cygnus.com>
467
468         * java/io/ObjectInputStream.java (readObject): Added code to
469         conditionally dump out the serialized data.
470         Handle ENDBLOCKDATA case a bit more gracefully since the current
471         behavior doesn't seem to work as expected.
472         (readStreamHeader): Added code for serialized data dumper.
473         (readNextBlock): Ditto.
474         (readFields): Ditto.
475         (dump): New private static field for turning on/off dumper.
476         (setDump): New native method.
477         (dumpElement): New native method.
478         (dumpElementln): New native method.
479         * java/io/natObjectInputStream.cc (setDump): New method.
480         (dumpElement): New method.
481         (dumpElementln): New method.
482
483 2000-11-02  Warren Levy  <warrenl@cygnus.com>
484
485         * java/net/InetAddress.java (addr): Renamed from 'address'.
486         (address): New field to match Serialized Form doc.
487         (hostName): Renamed from 'hostname' to match Serialized Form doc.
488         (family): New serialization field.
489         (serialVersionUID): New field.
490         (readObject): New method.
491         (writeObject): New method.
492         (getFamily): New native method.
493         (InetAddress): Set family.
494         * java/net/natInetAddress.cc (getFamily): New method.
495         (addr): Renamed from 'address'.
496         (hostName): Renamed from 'hostname' to match Serialized Form doc.
497         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
498         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
499
500 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
501
502         * java/util/AbstractList.java (SubList): Make it a top-level private
503         class.
504         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
505         (add): Ditto.
506         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
507         * Makefile.in: Rebuilt.
508
509 2000-11-02  Tom Tromey  <tromey@cygnus.com>
510
511         * Makefile.in: Rebuilt.
512         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
513         link.
514
515 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
516
517         * java/util/AbstractList.java (remove): Comment out modCount increment
518         to work around compiler bug.
519         (add): Ditto.
520
521 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
522
523         * java/util/AbstractList.java: Throw messages with 
524         IndexOutOfBoundsExceptions.
525          (listIterator()): Call listIterator(0).
526         (size): New field. Initialize to size().
527         (hasNext): Test position against size, not size().
528         (remove): Increment knownMod by one instead of resetting it from 
529         modCount.
530         (add): Ditto.
531         (SubList.upMod): Removed.
532         (SubList.set): Don't call upMod() or update knownMod.
533         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
534         (SubList.remove): Ditto.
535         (SubList.addAll): Don't call backingList.size(). Increment size from 
536         c.size().
537         (SubList.iterator): New method. Call listIterator(0).
538         (SubList.listIterator): New method. Restore code to return an anonymous
539         listIterator implementation (with some changes).
540         * java/util/AbstractSequentialList.java: Throw messages with 
541         IndexOutOfBoundsExceptions.
542         (addAll): Add a specnote.
543         * java/util/ArrayList.java (removeRange): Get the math right.
544         (addAll): Increment modCount _before_ creating iterator.
545         * java/util/LinkedList.java: Rewritten, mostly.
546
547 2000-11-01  Tom Tromey  <tromey@cygnus.com>
548
549         * scripts/encodings.pl: Added `ASCII' alias.
550         * Makefile.in: Rebuilt.
551         * Makefile.am (convert_source_files): Added new files.
552         * gnu/gcj/convert/Input_ASCII.java: New file.
553         * gnu/gcj/convert/Output_ASCII.java: New file.
554         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
555         out-of-range characters.
556         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
557         (read): Swap bytes if required.  Treat `count' as character count,
558         not byte count.
559         (write): Likewise.  Also, handle case where iconv fails on a given
560         character.
561         (init): Put encoding into exception.
562         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
563         (static): Call iconv_init.  Rebuilt alias list.
564         (iconv_init): New private method.
565
566 2000-11-01  Tom Tromey  <tromey@cygnus.com>
567
568         * Makefile.in: Rebuilt.
569         * Makefile.am (install-exec-hook): Only make a single symlink, and
570         remove the destination before making the link.
571         * configure: Rebuilt.
572         * configure.in: Call AC_PROG_LN_S.
573
574 2000-10-31  Warren Levy  <warrenl@cygnus.com>
575
576         * jni.cc: Added include of java/lang/ThreadGroup.h.
577         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
578         per change of 2000-10-05.
579
580 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
581
582         * java/util/BitSet.java: Updated @specnote.
583
584         * java/io/Reader.java: Merge docs from classpath.
585         (skip): Synchronize on `lock'.
586         * java/io/FileReader.java: Import correct implementation from 
587         classpath.
588         * java/io/StringReader.java: Merge docs from classpath.
589         (ready): Throw IOException if stream is closed.
590
591 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
592
593         * java/util/AbstractCollection.java (addAll): Use size() instead of
594         hasNext() in iterator loop.
595         (clear): Ditto.
596         (contains): Ditto. Simplify loop.
597         (containsAll): Ditto.
598         (remove): Ditto.
599         (removeAll): Ditto.
600         (retainAll): Ditto.
601         (toArray): Ditto.
602         (toString): Ditto. Use string concatenation operators, not
603         StringBuffer.
604         * java/util/AbstractList.java (addAll): Use size() instead of
605         hasNext() in iterator loop.
606         (equals): Ditto.
607         (hashCode): Ditto.
608         (indexOf): Ditto. Don't take null check outside of the loop.
609         (iterator): Return an AbstractListItr instead of anonymous class.
610         (lastIndexOf): Use a for loop bounded by size() instead of 
611         hasPrevious() in iterator loop.
612         (listIterator): Return an AbstractListItr.
613         (removeRange): Remove bounds checking code and docs.
614         (AbstractListItr): New inner class. Code moved here from 
615         listIterator().
616         (SubList.iterator): Removed. Use default implementation from 
617         AbstractList instead.
618         (SubList.listIterator): As above.
619         * java/util/AbstractMap.java (clear): Use a for loop bounded by size() 
620         instead of hasNext() in iterator loop.
621         (containsValue): Ditto.
622         (equals): Ditto.
623         (get): Ditto.
624         (put): Ditto.
625         (putAll): Ditto.
626         (remove): Ditto.
627         (toString): Ditto. Use string concatenation operators, not
628         StringBuffer.
629         * java/util/AbstractSequentialList.java (addAll): Use a for loop 
630         bounded by size() instead of hasNext() in iterator loop.
631         * java/util/AbstractSet.java (hashCode): Don't catch exception as
632         part of normal execution flow. Do an explicit null check instead.
633         * java/util/ArrayList.java (_iSize): Rename to `size'.
634         (_arData): Rename to `data'.
635         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
636         message.
637         (remove): Ditto.
638         (removeRange): Make protected. Don't check bounds.
639         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
640         message.
641         (addAll (Collection)): Use a size-bounded for loop instead of hasNext() 
642         check.
643         (addAll (int, Collection)): Check lower bounds. Simplify exception
644         string.
645         (clone): Clone the data array too.
646         (indexOf): Inline doesEqual().
647         (lastIndexOf): Ditto.
648         (clear): Don't set array data to null.
649         (set): Check lower bounds. Simplify exception string.
650         (toArray): Correct comment.
651         (trimToSize): Don't update modCount, this is not a structural change.
652         Add comment.
653         
654         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
655         implemented.
656         (toString): Declare `bit' as long, not int.
657         (data): Made package-private, not private.      
658
659 2000-10-27  Warren Levy  <warrenl@cygnus.com>
660
661         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
662         array elements to true.
663
664 2000-10-27  Warren Levy  <warrenl@cygnus.com>
665
666         * Makefile.am: Added locale files from Classpath.
667         * Makefile.in: Rebuilt.
668         * gnu/java/locale/Calendar.java: New file.
669         * gnu/java/locale/Calendar_de.java: New file.
670         * gnu/java/locale/Calendar_en.java: New file.
671         * gnu/java/locale/Calendar_nl.java: New file.
672         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
673         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
674         serialization compatibility.
675         (scale): Made private.
676         (serialVersionUID): New field.
677         * java/math/BigInteger.java (ival): Made transient.
678         (words): Made transient.
679         (bitCount): New serialization field.
680         (bitLength): Ditto.
681         (firstNonzeroByteNum): Ditto.
682         (lowestSetBit): Ditto.
683         (magnitude): Ditto.
684         (signum): Ditto.
685         (serialVersionUID): New field.
686         (readObject): New method.
687         (writeObject): New method.
688         * java/util/BitSet.java (serialVersionUID): New field.
689         * java/util/Calendar.java: Replaced with Classpath file.
690         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
691         of getDefault() for TimeZone or Locale instead of passing nulls.
692         * java/util/Locale.java (serialVersionUID): New field.
693         (writeObject): New method.
694         (readObject): New method.
695         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
696
697 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
698
699         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
700         (core_java_source_files): Put java.lang, java.io, and java.util here.
701         (ordinary_java_source_files): Order so that core_java_source_files are 
702         built first.
703         (java_source_files): Reorder so that special_java_source_files are 
704         built first.
705         * configure.in: Don't pass -I flag to gcj.
706         * Makefile.in: Rebuilt.
707         * configure: Rebuilt.
708
709 2000-10-25  Tom Tromey  <tromey@cygnus.com>
710
711         * Makefile.in: Rebuilt.
712         * Makefile.am (install-exec-hook): New target.
713
714 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
715
716         * java/util/EventObject.java: Merged from classpath.
717         
718         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
719         with stack dump.
720
721 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
722
723         * java/util/AbstractSet.java (equals): Re-installed original code.
724
725 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
726
727         * Makefile.am: Added rules for libgcjx library.
728         * Makefile.in: Rebuilt.
729         * configure.in: Added check for X.
730         * configure: Rebuilt.
731         * gnu/awt/LightweightRedirector.java: New file.
732         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
733         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
734         * gnu/awt/j2d/Graphics2DImpl.java: New file.
735         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
736         * gnu/awt/j2d/MappedRaster.java: New file.
737         * gnu/awt/xlib/XCanvasPeer.java: New file.
738         * gnu/awt/xlib/XEventLoop.java: New file.
739         * gnu/awt/xlib/XEventQueue.java: New file.
740         * gnu/awt/xlib/XFontMetrics.java: New file.
741         * gnu/awt/xlib/XFramePeer.java: New file.
742         * gnu/awt/xlib/XGraphics.java: New file.
743         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
744         * gnu/awt/xlib/XPanelPeer.java: New file.
745         * gnu/awt/xlib/XToolkit.java: New file.
746         * gnu/gcj/xlib/Clip.java: New file.
747         * gnu/gcj/xlib/Colormap.java: New file.
748         * gnu/gcj/xlib/Display.java: New file.
749         * gnu/gcj/xlib/Drawable.java: New file.
750         * gnu/gcj/xlib/Font.java: New file.
751         * gnu/gcj/xlib/GC.java: New file.
752         * gnu/gcj/xlib/Pixmap.java: New file.
753         * gnu/gcj/xlib/Screen.java: New file.
754         * gnu/gcj/xlib/Visual.java: New file.
755         * gnu/gcj/xlib/WMSizeHints.java: New file.
756         * gnu/gcj/xlib/Window.java: New file.
757         * gnu/gcj/xlib/WindowAttributes.java: New file.
758         * gnu/gcj/xlib/XAnyEvent.java: New file.
759         * gnu/gcj/xlib/XButtonEvent.java: New file.
760         * gnu/gcj/xlib/XColor.java: New file.
761         * gnu/gcj/xlib/XConfigureEvent.java: New file.
762         * gnu/gcj/xlib/XConnectException.java: New file.
763         * gnu/gcj/xlib/XEvent.java: New file.
764         * gnu/gcj/xlib/XException.java: New file.
765         * gnu/gcj/xlib/XExposeEvent.java: New file.
766         * gnu/gcj/xlib/XID.java: New file.
767         * gnu/gcj/xlib/XImage.java: New file.
768         * gnu/gcj/xlib/XUnmapEvent.java: New file.
769         * gnu/gcj/xlib/natClip.cc: New file.
770         * gnu/gcj/xlib/natColormap.cc: New file.
771         * gnu/gcj/xlib/natDisplay.cc: New file.
772         * gnu/gcj/xlib/natDrawable.cc: New file.
773         * gnu/gcj/xlib/natFont.cc: New file.
774         * gnu/gcj/xlib/natGC.cc: New file.
775         * gnu/gcj/xlib/natPixmap.cc: New file.
776         * gnu/gcj/xlib/natScreen.cc: New file.
777         * gnu/gcj/xlib/natVisual.cc: New file.
778         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
779         * gnu/gcj/xlib/natWindow.cc: New file.
780         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
781         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
782         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
783         * gnu/gcj/xlib/natXColor.cc: New file.
784         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
785         * gnu/gcj/xlib/natXException.cc: New file.
786         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
787         * gnu/gcj/xlib/natXImage.cc: New file.
788         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
789         * java/awt/EventDispatchThread.java: Start thead on creation.
790
791 2000-10-20  Tom Tromey  <tromey@cygnus.com>
792
793         From Arno J. Klaassen:
794         * interpret.cc: Include <stdlib.h> for alloca.
795         * defineclass.cc: Include <stdlib.h> for alloca.
796
797         * Makefile.in: Rebuilt.
798         * Makefile.am: Include deps.mk.
799         (GCJCOMPILE): Added -MD, -MT, and -MF.
800         ($(javao_files)): Don't depend on libgcj.zip.
801         (all-recursive): New target.
802         (%.lo:%.cc): Do dependency tracking.
803         ($(nat_headers)): Don't depend on libgcj.zip.
804         * configure: Rebuilt.
805         * configure.in: Make .d files and deps.mk.
806
807 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
808
809         * exception.cc: Don't #include "exception".
810         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
811
812         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
813         * Makefile.in: Updated.
814
815 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
816
817         * java/awt/peer/ChoicePeer.java (addItem): Removed.
818         * java/awt/peer/ComponentPeer.java (disable): Removed.
819         (enable): Removed.
820         (hide): Removed.
821         (minimumSize): Removed.
822         (preferredSize): Removed.
823         (reshape): Removed.
824         (show): Removed.
825         * java/awt/peer/ListPeer.java (addItem): Removed.
826         (clear): Removed.
827         (minimumSize): Removed.
828         (preferredSize): Removed.
829         (setMultipleSelections): Removed.
830         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
831         (remove): Renamed from removeMenu.
832         * java/awt/peer/MenuItemPeer.java (disable): Removed.
833         (enable): Removed.
834         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
835         (remove): Renamed from removeItem.
836         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
837         (getMinimumSize): Removed.
838         (getPreferredSize): Removed.
839         (minimumSize): Removed.
840         (preferredSize): Removed.
841         (replaceText): Removed.
842         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
843         (preferredSize): Removed.
844         (getMinimumSize): Removed.
845         (getPreferredSize): Removed.
846         (setEchoCharacter): Removed.
847
848 2000-10-10  Warren Levy  <warrenl@cygnus.com>
849
850         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
851         * java/sql/Date.java (serialVersionUID): New field.
852         * java/sql/Time.java (serialVersionUID): New field.
853         * java/sql/Timestamp.java (serialVersionUID): New field.
854         * java/text/ChoiceFormat.java (serialVersionUID): New field.
855         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
856         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
857         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
858         (readObject): New serialization method.
859         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
860         (serialVersionOnStream): New field.
861         (readObject): New serialization method.
862         (getMonetaryDecimalSeparator): New method.
863         (setMonetaryDecimalSeparator): New method.
864         * java/text/NumberFormat.java (maxFractionDigits): New field.
865         (maxIntegerDigits): New field.
866         (minFractionDigits): New field.
867         (minIntegerDigits): New field.
868         (serialVersionOnStream): New field.
869         (serialVersionUID): New field.
870         (readObject): New serialization method.
871         (writeObject): New serialization method.
872         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
873         (serialVersionOnStream): New field.
874         (serialVersionUID): New field.
875         (readObject): New serialization method.
876
877 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
878
879         * configure.in (GCJ): Avoid bogus error message when looking for
880         (and not finding) gcj in the build tree.
881         * configure: Rebuilt.
882
883 2000-10-09  Tom Tromey  <tromey@cygnus.com>
884
885         * configure: Rebuilt.
886         * configure.in: Include sys/types.h when checking for socklen_t.
887         From Arno J. Klaassen.
888
889 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
890
891         * include/jvm.h: Enable __builtin_expect().
892
893         * name-finder.cc (lookup): Don't trust dladdr() if the address is from 
894         the main program. Fix for PR libgcj/341.
895
896 2000-10-07  Tom Tromey  <tromey@cygnus.com>
897
898         * java/util/Properties.java: Merged with Classpath version.
899
900 2000-10-05  Tom Tromey  <tromey@cygnus.com>
901
902         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
903         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
904         * java/lang/Class.h (Object): Added `class$' field.
905         * java/lang/Object.h (Object): Added `class$' field.
906         * defineclass.cc (ClassClass): Use `class$' form.
907         (ClassObject): Likewise.
908         * resolve.cc (ClassObject): Use `class$' form.
909         (ObjectClass): Likewise.
910         * interpret.cc (ClassError): Removed.
911         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
912         `class$' form.
913         (IntegerClass): Likewise.
914         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
915         form.
916         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
917         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
918         SerializableClass): Likewise.
919         Include Serializable.h, Cloneable.h.
920         * java/lang/natSystem.cc (SystemClass): Removed.
921         (init_properties): Use `class$' form.
922         * java/lang/natObject.cc (CloneableClass): Removed.
923         (clone): Use `class$' form.
924         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
925         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
926         ConstructorClass): Likewise.
927         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
928         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
929         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
930         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
931         form.
932         (ClassClass): Likewise.
933         * include/jvm.h (StringClass): Use `class$' form.
934         * prims.cc (ObjectClass): Removed.
935         (_Jv_RunMain): Use `class$' form.
936         (_Jv_AllocObject): Likewise.
937         * jni.cc (ClassClass): Use `class$' form.
938         (ThrowableClass): Likewise.
939         (ObjectClass): Likewise.
940         (MethodClass): Likewise.
941         (ThreadGroupClass): Likewise.
942         (NativeThreadClass): Likewise.
943         * boehm.cc (ObjectClass): Removed.
944         (ClassClass): Removed.
945         (_Jv_MarkObj): Use `class$' form.
946         * gcj/field.h (JvFieldIsRef): Use `class$' form.
947         Include RawData.h.
948
949 2000-10-05  Warren Levy  <warrenl@cygnus.com>
950
951         * Makefile.am: Removed java/io/Replaceable.java and
952         java/io/Resolvable.java.
953         * Makefile.in: Rebuilt.
954         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
955         namespace.
956         * java/io/ObjectInputStream.java (processResolution): Fixed typo
957         in method name.
958         (processResolution): Handle readResolve method via reflection with
959         removal of Resolvable interface.
960         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
961         method via reflection with removal of Replaceable interface.
962         * java/io/Replaceable.java: Removed.
963         * java/io/Resolvable.java: Removed.
964         * java/security/Key.java (serialVersionUID): New field.
965         * java/security/Provider.java (serialVersionUID): New field.
966         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
967         New field.
968         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
969         New field.
970         * java/sql/DataTruncation.java (serialVersionUID): New field.
971         * java/sql/SQLException.java (serialVersionUID): New field.
972         * java/sql/SQLWarning.java (serialVersionUID): New field.
973         * java/util/Date.java (serialVersionUID): New field.
974         (millis): Made transient.
975         (readObject): New method.
976         (writeObject): New method.
977
978 2000-10-05  Tom Tromey  <tromey@cygnus.com>
979
980         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
981
982 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
983
984         * prims.cc (_Jv_argv, _Jv_argc): New fields.
985         (JvRunMain): Set _Jv_argv and _Jv_argc.
986         * java/awt/Component.java: Minor fixes.
987         * java/awt/Image.java (UndefinedProperty): Initialize final field.
988         * java/awt/Toolkit.java (systemEventQueue): Removed.
989         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
990         * java/awt/Window.java (getToolkit): Don't call super.
991         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
992         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
993         * gnu/awt/gtk/GtkComponentPeer.java: New file.
994         * gnu/awt/gtk/GtkContainerPeer.java: New file.
995         * gnu/awt/gtk/GtkFramePeer.java: New file.
996         * gnu/awt/gtk/GtkMainThread.java: New file.
997         * gnu/awt/gtk/GtkToolkit.java: New file.
998         * gnu/awt/gtk/GtkWindowPeer.java: New file.
999         * gnu/awt/gtk/gtkcommon.cc: New file.
1000         * gnu/awt/gtk/gtkcommon.h: New file.
1001         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1002         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1003         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1004         * gnu/awt/gtk/natGtkMainThread.cc: New file.
1005         * gnu/awt/gtk/natGtkToolkit.cc: New file.
1006         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1007
1008 2000-09-30  Tom Tromey  <tromey@cygnus.com>
1009
1010         * posix-threads.cc (_Jv_CondWait): Check to see if we are
1011         interrupted before modifying the cv's wait set.
1012         From Corey Minyard.
1013
1014 2000-09-30  Hans Boehm  <boehm@acm.org>
1015             Bryce McKinlay  <bryce@albatross.co.nz>
1016             
1017         Implement bitmap descriptor based marking for Boehm GC.
1018
1019         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1020         * configure: Rebuilt.
1021         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1022         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1023         method get_finalizer().
1024         (struct _Jv_ArrayVTable): Ditto. Declare method array with 
1025         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1026         (_Jv_AllocObj): Add new jclass parameter.
1027         (_Jv_AllocArray): Ditto.
1028         (_Jv_BuildGCDescr): New prototype.
1029         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1030         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1031         get_finalizer() instead of direct finalizer vtable offset.
1032         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1033         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1034         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1035         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1036         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1037         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1038         (_Jv_DetermineVTableIndex): Ditto.
1039         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable 
1040         calculations to account for new gc_descr field.
1041         * boehm.cc: #include gc_gcj.h.
1042         (obj_kind_x, obj_free_list): `#if 0'-ed away.
1043         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1044         New commentary from HB. Mark the classes vtable.
1045         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1046         (GC_DEFAULT_DESCR): New #define.
1047         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.        
1048         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1049         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1050         scan conservativly if size is less than min_heap_addr. Set vtable 
1051         pointer of new object before returning.
1052         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1053         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1054         allocation for obj_kind_x.
1055         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1056         (_Jv_AllocObj): Set vtable on returned object.
1057         (_Jv_AllocArray): Ditto.
1058         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1059         (_Jv_NewPrimArray): Ditto.
1060         (_Jv_AllocObj): Declare as a friend.
1061         (_Jv_AllocArray): Ditto.        
1062         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1063         from &ObjectClass into new array class. Remove offset-by-one 
1064         adjustments from `method' size calculations to account for gc_descr 
1065         field.
1066
1067 2000-09-26  Tom Tromey  <tromey@cygnus.com>
1068
1069         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1070         `remove', not `add'.
1071
1072 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1073
1074         * java/lang/natSystem.cc (file_encoding): Added return statement.
1075
1076 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
1077
1078         * Makefile.am: Re-work shell commands that exceeded command-line
1079         length limits.
1080         * Makefile.in: Rebuilt.
1081
1082         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1083
1084         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1085         * java/lang/natDouble.cc: Likewise.
1086         * java/lang/reflect/natMethod.cc: Likewise.
1087         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
1088
1089 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
1090
1091         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1092         libgcjdata.a.
1093         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
1094         * acinclude.m4: Arrange for automake to not bring in a new
1095         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
1096         * Makefile.am: Leave it up to automake to subst GCJ.
1097         * aclocal.m4, configure, Makefile.in: Rebuilt.
1098
1099 2000-09-13  Tom Tromey  <tromey@cygnus.com>
1100
1101         * java/lang/reflect/natArray.cc (BooleanClass): New define.
1102         (get): Ensure Boolean class is initialized.
1103         * java/lang/reflect/natField.cc (BooleanClass): New define.
1104         (get): Ensure Boolean class is initialized.
1105
1106 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
1107
1108         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1109         Initialize with anonymous class.
1110         (compareToIgnoreCase): New method.
1111         
1112         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1113         (uncaughtException): Set had_uncaught_exception.
1114         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1115         exit with error status if set.
1116         (_Jv_RunMain): Ditto.
1117
1118 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
1119
1120         * configure: Rebuilt with new ../libtool.m4.
1121
1122 2000-09-11  Tom Tromey  <tromey@cygnus.com>
1123
1124         * java/lang/reflect/Field.java (toString): Don't rely on
1125         Class.toString.
1126
1127 2000-09-08  Tom Tromey  <tromey@cygnus.com>
1128
1129         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1130         default decoder use iconv.
1131         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1132         Let default encoder use iconv.
1133         * configure: Rebuilt.
1134         * configure.in: Check for nl_langinfo and <langinfo.h>.
1135         * java/lang/natSystem.cc (file_encoding): New function.
1136         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1137
1138 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
1139
1140         * acinclude.m4: Simplify the tests for CC and CXX.
1141         * aclocal.m4, configure: Rebuilt.
1142
1143         * acinclude.m4: Include libtool macros from the source tree.
1144         * aclocal.m4, configure: Rebuilt.
1145
1146 2000-09-08  Warren Levy  <warrenl@cygnus.com>
1147
1148         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1149         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1150         * java/io/File.java (writeObject): Added.
1151         (readObject): Added.
1152         (serialVersionUID): Added.
1153         * java/io/ObjectOutputStream.java (writeObject): Initialized
1154         fieldsAlreadyWritten before recursion rather than after.
1155         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1156         * java/io/OptionalDataException.java (serialVersionUID): Added.
1157         (OptionalDataException): Made package private.
1158         * java/io/SyncFailedException.java (SyncFailedException): Removed
1159         default constructor to match spec.
1160         * java/lang/Boolean.java (serialVersionUID): Added.
1161         * java/lang/Byte.java (serialVersionUID): Added.
1162         * java/lang/Character.java (serialVersionUID): Added.
1163         * java/lang/Double.java (serialVersionUID): Added.
1164         * java/lang/Float.java (serialVersionUID): Added.
1165         * java/lang/Integer.java (serialVersionUID): Added.
1166         * java/lang/Long.java (serialVersionUID): Added.
1167         * java/lang/Number.java (serialVersionUID): Added.
1168         * java/lang/Short.java (serialVersionUID): Added.
1169         * java/lang/String.java (serialVersionUID): Added.
1170         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1171         to match spec.
1172         * java/lang/reflect/InvocationTargetException.java
1173         (serialVersionUID): Added.
1174         * java/net/URL.java (handler): Made transient.
1175         (hashCode): Added field for serialization, per spec. and use
1176         cached value if available.
1177         (serialVersionUID): Added.
1178         (URL): Initialize hashCode.
1179         (set): Adjust hashCode.
1180         (readObject): New Method to initialize the protocol handler when
1181         deserializing.
1182         (writeObject): New method.
1183         * java/text/BreakIterator.java: Removed 'implements Serializable'.
1184         * java/text/Collator.java: Removed 'implements Serializable'.
1185         * java/util/GregorianCalendar.java (serialVersionUID): Added.
1186         * java/util/Properties.java (serialVersionUID): Added.
1187         * java/util/Random.java (serialVersionUID): Added.
1188         (seed): Made private.
1189         (nextNextGaussian): Made private.
1190         (haveNextNextGaussian): Made private.
1191         * java/util/Stack.java (serialVersionUID): Added.
1192         * java/util/TimeZone.java (serialVersionUID): Added.
1193         * java/util/Vector.java (serialVersionUID): Added.
1194
1195 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
1196
1197         * Makefile.am (Thread.h): Don't be friends with native threads 
1198         functions.
1199         * Makefile.in: Rebuilt.
1200         * java/lang/Thread.java (interrupt_flag): Make package-private.
1201
1202 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
1203
1204         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1205         to avoid long long division.
1206
1207 2000-09-06  Tom Tromey  <tromey@cygnus.com>
1208
1209         * java/lang/reflect/Constructor.java (toString): Use `getName' for
1210         parameter types.
1211         * java/lang/reflect/Method.java (toString): Use `getName' for
1212         return type.
1213
1214         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1215         `args' if method takes no parameters.
1216
1217         Fix for PR java.lang/339:
1218         * java/lang/natPosixProcess.cc (fail): New function.
1219         (cleanup): New function.
1220         (startProcess): Use them.  Create pipe so child can communicate
1221         exec failure back to parent.
1222
1223 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
1224
1225         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1226         calls to `throw'.
1227         (send): Undo last patch. Remove the label only.
1228         (mcastGrp): Ditto.
1229         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to 
1230         `throw'.
1231         * java/net/natInetAdress.cc: Ditto.
1232
1233         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1234
1235 2000-09-05  Tom Tromey  <tromey@cygnus.com>
1236
1237         * doc/cni.sgml: Updated from master copy.
1238
1239 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
1240
1241         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
1242         (write): Ditto.
1243         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
1244         stack. Synchronize.
1245         * java/lang/fdlibm.h: #undef __P if previously defined.
1246         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
1247         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable 
1248         block.
1249         (mcastGrp): Ditto.
1250
1251 2000-09-04  Tom Tromey  <tromey@cygnus.com>
1252
1253         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
1254         DELETE mode.
1255
1256 2000-09-04  Anthony Green  <green@redhat.com>
1257
1258         Fix for PR java.io/203:
1259         * java/io/File.java (createTempFile): Obey directory argument.
1260         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
1261         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
1262         variable to set java.io.tmpdir on non-WIN32 systems.
1263
1264 2000-09-04  Anthony Green  <green@redhat.com>
1265
1266         * java/io/File.java (deleteOnExit): New method.
1267         * gnu/gcj/runtime/FileDeleter.java: New class.
1268         * java/lang/natRuntime.cc (exit): Call
1269         FileDeleter.deleteOnExitNow()
1270         * Makefile.am: Add FileDeleter.java.
1271         * Makefile.in: Rebuilt.
1272
1273 2000-09-02  Tom Tromey  <tromey@cygnus.com>
1274
1275         * Makefile.in: Rebuilt.
1276         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
1277         environment variable.
1278
1279 2000-09-01  Andrew Haley  <aph@redhat.com>
1280
1281         * java/io/StreamTokenizer.java: Don't throw a
1282         NumberFormatException if a field is numeric as far as the
1283         StreamTokenizer is concerned but not as far as Double.valueOf() is
1284         concerned: return a zero instead.       
1285
1286 2000-08-30  Tom Tromey  <tromey@cygnus.com>
1287
1288         * Makefile.in: Rebuilt.
1289         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
1290
1291 2000-08-28  Tom Tromey  <tromey@cygnus.com>
1292
1293         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
1294         gnu/gcj/awt/ComponentDataBlitOp.java,
1295         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
1296         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
1297         java/awt/color/ICC_ColorSpace.java,
1298         java/awt/color/ICC_Profile.java,
1299         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
1300         java/awt/image/ComponentColorModel.java,
1301         java/awt/image/ComponentSampleModel.java,
1302         java/awt/image/DataBuffer.java,
1303         java/awt/image/DataBufferByte.java,
1304         java/awt/image/DataBufferInt.java,
1305         java/awt/image/DataBufferUShort.java,
1306         java/awt/image/DirectColorModel.java,
1307         java/awt/image/IndexColorModel.java,
1308         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
1309         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
1310         java/awt/image/SinglePixelPackedSampleModel.java,
1311         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
1312         Removed Latin-1 copyright symbols.
1313         * java/util/zip/ZipFile.java: Indentation fixes.
1314
1315 2000-08-27  Mark Wielaard  <mark@klomp.org>
1316
1317         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
1318         constructor, close can delete the file, finalize calls close.
1319         * java/util/jar/JarFile.java: Constructor that takes mode now
1320         calls super.
1321
1322 2000-08-27  Anthony Green  <green@redhat.com>
1323
1324         * java/util/ArrayList.java, java/util/Timer.java,
1325         java/util/LinkedList.java, java/util/TimerTask.java,
1326         java/util/HashMap.java, java/util/AbstractMap.java,
1327         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
1328         java/util/SortedSet.java: Imported from GNU Classpath.
1329         * Makefile.in: Rebuilt.
1330         * Makefile.am: Added new files.
1331         
1332 2000-08-26  Anthony Green  <green@redhat.com>
1333
1334         * Makefile.in: Rebuilt.
1335         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
1336         friend.
1337
1338         * prims.cc: Include ClassLoader.h.
1339         (_Jv_RunMain): When executing jar files, classpath must be the jar
1340         file only.  Lose our reference to the system ClassLoader in order
1341         to get a new one with the correct classpath.
1342         * java/lang/natSystem.cc (init_properties): When executing a jar
1343         file, only use the jar file for java.class.path.
1344
1345         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
1346         for bytecode archives.
1347
1348         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
1349         exists, but not Main-Class.
1350
1351 2000-08-23  Mark Wielaard  <mark@klomp.org>
1352
1353         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
1354         return -1 when fill() has no more data for the Inflater.
1355
1356 2000-08-23  Mark Wielaard  <mark@klomp.org>
1357
1358         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
1359         write(String) already does.
1360
1361 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1362
1363         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
1364         to `alive_flag', call `init'.
1365         (init): New native method.
1366         * gnu/gcj/jni/natNativeThread.cc (init): New native method
1367         implementation.
1368
1369 2000-08-21  Mark Wielaard  <mark@klomp.org>
1370
1371         * Makefile.in: Rebuilt.
1372         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
1373         a `friend class'.
1374         (java/lang/reflect/Field.h): Likewise.
1375         (java/lang/reflect/Method.h): Likewise.
1376         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
1377         `friend class'.
1378
1379 2000-08-21  Tom Tromey  <tromey@cygnus.com>
1380
1381         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
1382         debugging prints.
1383
1384 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
1385
1386         * java/lang/natSystem.cc (init_properties): Change sourceware
1387         reference to sources.redhat.com.
1388
1389         * include/java-props.h: Add _Jv_Jar_Class_Path.
1390         * prims.cc: Ditto.  Set it from `gij -jar file' option.
1391
1392         * java/lang/natSystem.cc (init_properties): Set java.class.path
1393         from
1394         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
1395
1396         * java/util/PropertyPermission.java: Import from GNU Classpath.
1397         * Makefile.in: Rebuilt.
1398         * Makefile.am: Add java/util/PropertyPermission.java.
1399         * java/lang/System.java: Add setProperty method.
1400
1401         * gij.cc (main): Add -jar option to execute jar files.
1402         (help): Describe -jar option.
1403         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
1404         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
1405         * gnu/gcj/runtime/FirstThread.java (main): New method.
1406
1407         * java/util/jar/Attributes.java: Correct comment spelling.
1408
1409 2000-08-20  Mark Wielaard  <mark@klomp.org>
1410
1411         * java/util/zip/Adler32.java: Make private variables really private
1412         * java/util/zip/CRC32.java: Make private variables really private
1413         * java/util/zip/CheckedInputStream.java: skip() could skip to much
1414         bytes
1415         * java/util/zip/InflaterInputStream.java: skip() could skip to
1416         much bytes
1417         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
1418         * java/util/zip/ZipFile.java: size() new 1.2 method
1419         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
1420         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
1421         closed
1422
1423 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
1424
1425         * java/util/jar/JarFile.java: Don't call
1426         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
1427         <mark@klomp.org>.
1428         
1429 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
1430
1431         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
1432         Read the entire contents of the class file, not just what is
1433         available().
1434
1435         * java/net/JarURLConnection.java: getEntry doesn't take any
1436         arguments.  Return null if element is null.
1437
1438         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
1439         size from the archive, not the inflated size.
1440
1441         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
1442         java.util.zip.ZipFile.getEntry.
1443
1444         * gij.cc (help): Change sourceware reference to
1445         sources.redhat.com.
1446
1447 2000-08-19  Tom Tromey  <tromey@cygnus.com>
1448
1449         * java/util/zip/ZipInputStream.java (createZipEntry):
1450         Implemented.
1451
1452 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
1453
1454         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
1455         java/util/jar/JarException.java, java/util/jar/JarFile.java,
1456         java/util/jar/JarInputStream.java,
1457         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
1458         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
1459         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
1460         java/security/cert/CRL.java, java/security/cert/CRLException.java,
1461         java/security/cert/Certificate.java,
1462         java/security/cert/CertificateEncodingException.java,
1463         java/security/cert/CertificateException.java,
1464         java/security/cert/CertificateExpiredException.java,
1465         java/security/cert/CertificateFactory.java,
1466         java/security/cert/CertificateFactorySpi.java,
1467         java/security/cert/CertificateNotYetValidException.java,
1468         java/security/cert/CertificateParsingException.java,
1469         java/security/cert/X509CRL.java,
1470         java/security/cert/X509CRLEntry.java,
1471         java/security/cert/X509Certificate.java,
1472         java/security/cert/X509Extension.java: Imported from Classpath.
1473         * java/util/Hashtable.java: Imported from Classpath.
1474
1475         * java/util/zip/ZipInputStream.java: Create stub for
1476         createZipEntry.
1477
1478         * gcj/javaprims.h: Updated class list.
1479
1480         * Makefile.in, gcj/Makefile.in: Rebuilt.
1481         * Makefile.am (ordinary_java_source_files): Add these new classes.
1482         
1483 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1484
1485         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
1486         * gnu/gcj/awt/GLightweightPeer.java: New file.
1487         * java/awt/BorderLayout.java: Implemented all methods.
1488         * java/awt/Button.java (actionListener, actionCommand): Renamed
1489         and modifier change.
1490         (addNotify): Call super.
1491         (dispatchEventImpl): New method.
1492         (getListeners): New method.
1493         (label): Made package-private, not private.
1494         * java/awt/Canvas.java: Implemented class body.
1495         * java/awt/Color.java (brighter): New method.
1496         (darker): New method.
1497         (hashCode): New method.
1498         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
1499         (getGraphicsConfiguration): Delegate to
1500         getGraphicsConfigurationImpl().
1501         (getGraphicsConfigurationImpl): New method.
1502         (getToolkit): Only return value from peer if not null.
1503         (isDisplayable): Check with parent.
1504         (isShowing): No parent implies not showing.
1505         (getForeground): Check parent property if local is null.
1506         (getBackground): Likewise.
1507         (getFont): Likewise.
1508         (setForeground): Inform peer.
1509         (setBackground): Likewise
1510         (setLocale): Invalidate component.
1511         (getColorModel): Implemented.
1512         (setLocation): Invalidate, or ignore if no change.
1513         (setSize): Invalidate, or ignore if no change.
1514         (setBounds): Invalidate, or ignore if no change.
1515         (isOpaque): By default, heavyweight implies opaque.
1516         (isLightweight): Implemented.
1517         (getMaximumSize): Implemented.
1518         (doLayout): Implemented, NOP.
1519         (validate): Implemented, NOP.
1520         (invalidate): Only propagate to parent if parent was valid.
1521         (getGraphics): Implemented.
1522         (getFontMetrics): Implemented.
1523         (update): Implemented.
1524         (paintAll): Implemented.
1525         (repaint): Implemented all repaint methods.
1526         (print): Implemented.
1527         (printAll): Implemented.
1528         (createImage): Implemented.
1529         (dispatchEvent): Give the peer a chance to handle the event.
1530         (dispatchEventImpl): Dispatch paint events.
1531         (enableEvents): Lightweights enable events on parent component.
1532         (coalesceEvents): Coalesce paint events, and select event type
1533         using a switch.
1534         (coalescePaintEvents): New method.
1535         (processEvent): Fix unfortunate ordering of statements, and call
1536         correct method for MOUSE_CLICKED.
1537         (processPaintEvent): New method.
1538         (addNotify): Allow container to notify children before event
1539         mask is set in peer.
1540         (addNotifyContainerChildren): New method.
1541         (removeNotify): Visibility should not change on removeNotify.
1542         (paramString): Implemented.
1543         (list): Implemented two of the list methods.
1544         * Container (myInsets): Removed, insets are managed by peer.
1545         (getInsets): Query peer.
1546         (addImpl): Fix reparenting, enable events for lightweights,
1547         initialize component array.
1548         (validate): Call doLayout in validateTree() instead.
1549         (validateTree): Do nothing if already valid. Call beginValidate(),
1550         endValidate() on peer. Call validateTree() instead of validate()
1551         for children that are containers. Mark valid after validation of
1552         children.
1553         (setFont): Partial implementation.
1554         (paint): Implemented.
1555         (visitChildren): New method.
1556         (visitChild): New method.
1557         (update): Implemented.
1558         (print): Implemented.
1559         (paintComponents): Implemented.
1560         (printComponents): Consider translation and clipping.
1561         (getComponentAt): Ignore invisible children. Return this if no
1562         child match.
1563         (addNotify): Call super.
1564         (addNotifyContainerChildren): New method.
1565         (paramString): Implemented.
1566         (list): Implemented.
1567         * java/awt/EventQueue (invokeAndWait): Get system event queue the
1568         right way.
1569         (invokeLater): Likewise.
1570         (isDispatchThread): Likewise.
1571         * java/awt/FontMetrics (getLeading): Formula change.
1572         (getDescent): Consider leading also.
1573         (getMaxAscent): Default to getAscent().
1574         (getMaxDescent): Default to getDescent.
1575         (getMaxAdvance): Return value signifying unknown.
1576         (charWidth): Both methods implemented.
1577         (charsWidth): Implemented.
1578         (bytesWidth): Implemented.
1579         (getWidths): Implemented.
1580         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
1581         state): New fields.
1582         (Frame): Rearragend constuctor chaining to disallow null being
1583         passed as a graphics configuration.
1584         (getTitle): Return empty string if null.
1585         (dispose): Removed.
1586         (getIconImage): New method.
1587         (setIconImage): New method.
1588         (finalize): New method.
1589         (setMenuBar): Notify peer.
1590         (isResizable): New method.
1591         (setResizable): New method.
1592         (getState): New method.
1593         (getFont): Removed.
1594         (remove): Implemented.
1595         (removeNotify): New method.
1596         (getFrames): New method.
1597         * java/awt/Graphics.java: Implemented body of class.
1598         * java/awt/Graphics2D.java: New file.
1599         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
1600         * java/awt/Image.java: Implemented body of class.
1601         * java/awt/Panel.java (Panel): Call correct super constructor.
1602         (addNotify): Implemented.
1603         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
1604         * java/awt/RenderingHints.java: New file.
1605         * java/awt/Toolkit.java (createComponent): Implemented.
1606         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
1607         * java/awt/Window.java (Window): Two new constructors. Reordered
1608         constructor chaining.
1609         (getGraphicsConfigurationImpl): New method.
1610         (finalize): Call super.
1611         (addNotify): Call super.
1612         (pack): Do layout stuff.
1613         (show): Ensure that peer exists and that component is valid.
1614         (dispose): Dispose owned children.
1615         (getOwner): Simplify code, casting null pointers is valid.
1616         (getGraphicsConfiguration): Ask peer if local value is null.
1617         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
1618         getcmd().
1619         * java/awt/image/BufferedImage.java: New file.
1620         * java/awt/image/RasterOp.java: New file.
1621         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
1622         More powerfull replacement for getColorModel().
1623         (getColorModel) Removed.
1624         (setEventMask) New method.
1625         * Makefile.am: Added new files.
1626         * Makefile.in: Rebuilt.
1627
1628 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1629
1630         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
1631         (finit_leg_name): New global.
1632         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
1633         `$finit$'. This is a backward compatibility hack.
1634         (java::lang::Class::_getMethods): Likewise.
1635
1636 2000-08-15  Andrew Haley  <aph@cygnus.com>
1637
1638         * include/jvm.h (_Jv_HashCode): New hash code.
1639
1640 2000-08-15  Tom Tromey  <tromey@cygnus.com>
1641
1642         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
1643
1644 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
1645
1646         * THANKS: More thanks.
1647
1648 2000-08-10  Tom Tromey  <tromey@cygnus.com>
1649
1650         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
1651         when errno not set.
1652         (connect): Likewise.
1653         (accept): Likewise.
1654         (getOption): Likewise.
1655         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
1656         case when errno not set.
1657         (peek): Likewise.
1658         (send): Likewise.
1659         (receive): Likewise.
1660         (mcastGrp): Likewise.
1661         (setOption): Likewise.
1662         (getOption): Likewise.
1663
1664 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
1665             John Stracke <francis@ecal.com>
1666
1667         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
1668         (connect): Don't falsely claim HTTP/1.1 compliance. Call 
1669         getHttpHeaders().
1670         (disconnect): Don't unset connected flag.
1671         (getHeaderField (String)): Call connect() if not connected.
1672         (getHeaderField (int)): Ditto.
1673         (getHeaderFieldKey): Ditto.
1674         (getHttpHeaders): Don't call connect(). 
1675         * java/net/HttpURLConnection.java (instanceFollowRedirects,
1676         gotResponseVals): New fields.
1677         (getResponseCode): Call getResponseVals() conditionally.
1678         (getResponseMessage): Ditto.
1679         (getResponseVals): Call connect(). Don't throw FileNotFoundException.   
1680
1681 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
1682
1683         * Makefile.am: Move beans and applet classes to awt_java_source_files.
1684         * Makefile.in: Rebuilt.
1685         * java/awt/Color.java (getTransparency): New method.
1686         * java/awt/Component.java: Various updates.
1687         * java/awt/Container.java (removeNotify): Call super.removeNotify()
1688         after dealing with children.
1689         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
1690         * java/awt/Window.java: Various new methods and updates.
1691         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
1692         to int for switch.
1693         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
1694         * java/awt/event/WindowEvent.java (paramString): Ditto.
1695         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
1696         try/catch block.
1697         * java/awt/geom/Point2D.java (clone): Ditto.
1698         * java/awt/geom/RectangularShape.java (clone): Ditto.
1699         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
1700         isAlphaPremultiplied): Make package-private, not private.       
1701         
1702 2000-08-08  Tom Tromey  <tromey@cygnus.com>
1703
1704         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
1705         surrogate characters.
1706         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
1707         true.
1708         (write): Correct handling of surrogate characters.
1709
1710 2000-08-07  Tom Tromey  <tromey@cygnus.com>
1711
1712         * java/lang/reflect/Method.java (hashCode): Use getName().
1713         (toString): Likewise.
1714         * java/lang/reflect/natMethod.cc (getType): Initialize
1715         exception_types.
1716
1717         * java/lang/reflect/Method.java (toString): Use Class.getName, not
1718         Class.toString.
1719         * java/lang/reflect/Field.java (toString): Correct formatting.
1720         From Corey Minyard.
1721
1722         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
1723         rewrote.
1724         (receive): Streamlined.
1725
1726 2000-08-05  Tom Tromey  <tromey@cygnus.com>
1727
1728         * java/io/PrintWriter.java: Merged comments from Classpath.
1729         (printlnUnsynchronized): Removed.
1730         (println()): Print the separator.
1731         (println): Call println(), not printlnUnsynchronized.
1732         (out): Now protected, to match spec.
1733
1734 2000-08-04  Tom Tromey  <tromey@cygnus.com>
1735
1736         * java/io/StreamTokenizer.java (TT_NONE): Now private.
1737         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
1738         For PR java.io/301.
1739
1740 2000-08-03  Warren Levy  <warrenl@cygnus.com>
1741
1742         * java/io/ObjectInputStream.java (readFields): Turn off
1743         readDataFromBlock while reading via GetField.
1744         (GetField$1.get(String, Object)): Pass Class of default value to
1745         getField.
1746         (getField): Allow for null default values.
1747
1748         * java/io/ObjectOutputStream.java: Fixed typo in comment.
1749         (PutField$1.put): Fixed calls of checkType in most of the put
1750         methods to pass the correct parameter.
1751         (PutField$1.put(String, Object)): Allow for null value arg.
1752         (PutField$1.write): Turn off writeDataAsBlocks while writing via
1753         PutField.
1754
1755         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
1756         typo in spec'ed field name.
1757         (getSerialPersistentFields): Changed spelling of method to match
1758         the correct spelling of the spec'ed field name.
1759
1760 2000-08-03  Tom Tromey  <tromey@cygnus.com>
1761
1762         * Makefile.in: Rebuilt.
1763         * Makefile.am (awt_java_source_files): Added new files.
1764
1765 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
1766
1767         * Makefile.am: Add new AWT stubs.
1768         * java/awt/Canvas.java: New placeholder class.
1769         * java/awt/Checkbox.java: Ditto.
1770         * java/awt/CheckboxMenuItem.java: Ditto.
1771         * java/awt/Choice.java: Ditto.
1772         * java/awt/Dialog.java: Ditto.
1773         * java/awt/FileDialog.java: Ditto.
1774         * java/awt/List.java: Ditto.
1775         * java/awt/ScrollPane.java: Ditto.
1776         * java/awt/TextField.java: Ditto.
1777         * java/awt/datatransfer/Clipboard.java: Ditto.
1778         * java/awt/Component.java (treeLock): Now a static String. Add comment.
1779         * java/awt/MenuItem.java (MenuItem): Add default constructor.
1780         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. 
1781         Some commented out. Partially implemented.
1782         * java/awt/natToolkit.cc: Removed file.
1783
1784 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
1785
1786         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
1787         Fixes "make -j" builds.
1788         * Makefile.in: Rebuild.
1789
1790 2000-08-02  Tom Tromey  <tromey@cygnus.com>
1791
1792         * Makefile.in: Rebuilt.
1793         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
1794         * java/net/natPlainSocketImpl.cc: Include posix.h.
1795         (accept): Use _Jv_select.
1796         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
1797         (receive): Use _Jv_select.
1798         * java/io/natFileDescriptorPosix.cc: Include posix.h.
1799         (available): Use _Jv_select.
1800         * java/lang/natSystem.cc: Include posix.h.
1801         (currentTimeMillis): Use _Jv_gettimeofday.
1802         * include/posix.h: New file.
1803         * posix.cc: New file.
1804
1805         * scripts/encodings.pl: New file.
1806         * Makefile.in: Rebuilt.
1807         * Makefile.am (convert_source_files): Added IOConverter.java.
1808         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
1809         IOConverter.
1810         (getDefaultDecodingClass): Canonicalize default encoding name.
1811         (getEncoder): Likewise.
1812         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
1813         IOConverter.
1814         (getDefaultDecodingClass): Canonicalize default encoding name.
1815         (getDecoder): Likewise.
1816         * gnu/gcj/convert/IOConverter.java: New file.
1817
1818 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
1819
1820         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
1821         to match C declaration in ffi.h.
1822         * Makefile.am: Add java/awt/Button.java.
1823         * Makefile.in: Rebuilt.
1824
1825 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1826
1827         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
1828         cast of the second argument to `ffi_raw_call' changed to match
1829         prototype.
1830
1831 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1832
1833         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
1834         argument to `ffi_raw_call' changed to match prototype.
1835
1836 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
1837
1838         * java/awt/Component.java (toString): Implemented.
1839         * java/awt/Container.java (addImpl): Remove FIXME. Only call 
1840         dispatchEvent() to dispatch the event.
1841         (removeImpl): Ditto.
1842
1843 2000-07-30  Anthony Green  <green@redhat.com>
1844
1845         * java/awt/Component.java: Add treeLock object.
1846         (getTreeLock): Implement.
1847         (isShowing): Implement.
1848
1849 2000-07-30  Tom Tromey  <tromey@cygnus.com>
1850
1851         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
1852
1853         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
1854
1855         * java/awt/Window.java (addNotify): Wrote.
1856         (addWindowListener): Wrote.
1857         (getLocale): Wrote.
1858         (getWarningString): Wrote.
1859         (processEvent): Wrote.
1860         (processWindowEvent): Wrote.
1861         (removeWindowListener): Wrote.
1862         (show): Call validate(), setVisible().
1863         (toBack): Wrote.
1864         (toFront): Wrote.
1865
1866         * java/awt/Toolkit.java (createWindow): Declare.
1867
1868         * java/awt/Frame.java (addNotify): Use getToolkit to find
1869         toolkit.
1870
1871         * java/awt/Component.java (invalidate): Wrote.
1872         (isValid): Wrote.
1873         (getToolkit): Wrote.
1874
1875         * java/awt/Container.java (addContainerListener): Removed
1876         unnecessary cast.
1877         (removeContainerListener): Likewise.
1878         (addImpl): Wrote.
1879         (add(Component)): Use it.
1880         (add(String,Component)): Likewise.
1881         (add(Component,int)): Likewise.
1882         (add(Component,Object)): Likewise.
1883         (add(Component,Object,int)): Likewise.
1884         (doLayout): Wrote.
1885         (getAlignmentX): Wrote.
1886         (getAlignmentY): Wrote.
1887         (getComponentAt): Wrote.
1888         (getMaximumSize): Wrote.
1889         (invalidate): Wrote.
1890         (list(PrintStream,int)): Wrote.
1891         (list(PrintWriter,int)): Wrote.
1892         (getMinimumSize): Wrote.
1893         (getPreferredSize): Wrote.
1894         (printComponents): Wrote.
1895         (processContainerEvent): Look at containerListener, not
1896         componentListener.
1897         (remove): Added event processing and peer destruction.
1898         (removeAll): Use remove.
1899         (removeNotify): Wrote.
1900         (validate): Wrote.
1901         (validateTree): Wrote.
1902
1903         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
1904         * java/awt/Label.java (addNotify): Do nothing if peer exists.
1905         * java/awt/Container.java (addNotify): Don't create Container
1906         peer.
1907         * java/awt/Button.java (addNotify): Do nothing if peer exists.
1908
1909 2000-07-30  Tom Tromey  <tromey@cygnus.com>
1910
1911         * java/awt/Container.java (remove(int)): Wrote.
1912         (remove(Component)): Wrote.
1913         (add(Component)): Wrote.
1914         (add(Component,int)): Wrote.
1915         (removeAll): Wrote.
1916         (addNotify): Set our own peer.
1917         * java/awt/Scrollbar.java (listeners): Changed type.
1918         (Scrollbar): Don't initialize listeners.
1919         (addNotify): Wrote.
1920         (setValue): Call setValues.
1921         (setMinimum): Likewise.
1922         (setMaxPriority): Likewise.
1923         (setVisibleAmount): Likewise.
1924         (setValues): Wrote.
1925         (setUnitIncrement): Forward to peer.
1926         (setLineIncrement): Call setUnitIncrement.
1927         (setPageIncrement): Call setBlockIncrement.
1928         (setBlockIncrement): Forward to peer.
1929         (addAdjustmentListener): Rewrote.
1930         (removeAdjustmentListener): Rewrote.
1931         (processAdjustmentEvent): Rewrote.
1932         (paramString): Wrote.
1933         * Makefile.in: Rebuilt.
1934         * Makefile.am (awt_java_source_files): Added Button.java.
1935         * java/awt/Button.java: New file.
1936         * java/awt/Toolkit.java (createLabel): Declare.
1937         (createButton): Likewise.
1938         (createScrollbar): Likewise.
1939         (createContainer): Likewise.
1940         * java/awt/Label.java (addNotify): Wrote.
1941         (setAlignment): Call setAlignment in the peer.
1942         (setText): Call setText in the peer.
1943
1944 2000-07-28  Warren Levy  <warrenl@cygnus.com>
1945
1946         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
1947         NotSerializableException with just the class name.
1948
1949 2000-07-26  Andrew Haley  <aph@cygnus.com>
1950
1951         * interpret.cc (continue1): Insert missing break into switch.
1952
1953 2000-07-28  Warren Levy  <warrenl@cygnus.com>
1954
1955         * java/io/ObjectStreamException.java: Made constructors protected.
1956
1957 2000-07-27  Tom Tromey  <tromey@cygnus.com>
1958
1959         * java/io/OutputStreamWriter.java (close): Only flush if not
1960         closed.
1961
1962 2000-07-27  Warren Levy  <warrenl@cygnus.com>
1963
1964         * mauve-libgcj: Activated serialization tests.
1965         * gcj/field.h (getModifiers): Mask off unknown flags.
1966         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
1967         spurious bits don't cause discrepancies.
1968         * java/io/ObjectOutputStream.java: Fixed typo in comment.
1969         * java/io/ObjectStreamClass.java: Fixed typos in comments.
1970         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
1971         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
1972         * java/lang/Throwable.java (serialVersionUID): New field.
1973         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
1974         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
1975         unknown flags.
1976         * java/lang/reflect/natMethod.cc: Ditto.
1977         * java/security/Key.java (serialVersionUID): Removed field for now.
1978         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
1979         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
1980
1981 2000-07-22  Tom Tromey  <tromey@cygnus.com>
1982
1983         * java/awt/geom/RectangularShape.java (getPathIterator):
1984         Wrote.
1985
1986 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1987
1988         * libjava/java/awt/image/ColorModel.java: New file, replaces the
1989         stub libjava/java/awt/ColorModel.java which was located in the
1990         wrong package.
1991         * libjava/java/awt/image/ComponentColorModel.java: New file.
1992         * libjava/java/awt/image/ComponentSampleModel.java: New file.
1993         * libjava/java/awt/image/DataBuffer.java: New file.
1994         * libjava/java/awt/image/DataBufferByte.java: New file.
1995         * libjava/java/awt/image/DataBufferInt.java: New file.
1996         * libjava/java/awt/image/DataBufferUShort.java: New file.
1997         * libjava/java/awt/image/DirectColorModel.java: New file.
1998         * libjava/java/awt/image/PackedColorModel.java: New file.
1999         * libjava/java/awt/image/Raster.java: New file.
2000         * libjava/java/awt/image/SampleModel.java: New file.
2001         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2002         file.
2003         * libjava/java/awt/image/IndexColorModel.java: New file.
2004         * libjava/java/awt/image/ImageConsumer.java: Removed import of
2005         java.awt.ColorModel stub.
2006
2007         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2008         * gnu/gcj/util/Buffers.java: New file, utility class.
2009
2010         * libjava/Makefile.am: Updated to include new files.
2011         * libjava/Makefile.in: Rebuilt.
2012
2013 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
2014
2015         * java/io/StreamTokenizer.java: Merged with classpath.
2016
2017 2000-07-20  Tom Tromey  <tromey@cygnus.com>
2018
2019         * Makefile.in: Rebuilt.
2020         * Makefile.am (awt_java_source_files): Updated for new files.
2021         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2022         * java/awt/Label.java: New file.
2023         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2024         (createIntersection, createUnion, getBounds2D): New methods.
2025         * java/awt/Scrollbar.java: New file.
2026         * java/awt/Shape.java: Updated to 1.2.
2027         * java/awt/geom/AffineTransform.java: New file.
2028         * java/awt/geom/Ellipse2D.java: New file.
2029         * java/awt/geom/NoninvertibleTransformException.java: New file.
2030         * java/awt/geom/PathIterator.java: New file.
2031         * java/awt/geom/Rectangle2D.java: New file.
2032         * java/awt/geom/RectangularShape.java: New file.
2033         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2034         * java/awt/geom/IllegalPathStateException.java: New file.
2035         
2036         * scripts/showval.java: New file.
2037
2038         * scripts/classes.pl (scan): Print inner classes properly.
2039         * gcj/javaprims.h: Updated class list.
2040
2041         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2042         initialize String fields for interpreted classes.  Fixes bug
2043         reported by Hans Boehm.
2044
2045         * java/io/File.java (getParentFile): New method, from Classpath
2046         via Oskar Liljeblad.
2047
2048         * java/util/Vector.java (remove(Object)): Implemented.
2049
2050 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
2051
2052         * java/lang/natThrowable.cc (fillInStackTrace): Check for
2053         zero return from backtrace().
2054
2055 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
2056
2057         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2058         synchronized block.
2059         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2060         before calling notifyAll().
2061
2062 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
2063
2064         Add missing files from last check-in:
2065         * java/awt/image/ImageConsumer.java: New file.
2066         * java/awt/image/ImageProducer.java: New file.
2067         * java/awt/image/ImageObserver.java: New file.
2068
2069 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
2070
2071         Merged implementation of java.applet from classpath:
2072         * java/applet/Applet.java: New file.
2073         * java/applet/AppletContext.java: New file.
2074         * java/applet/AppletStub.java: New file.
2075         * java/applet/AudioClip.java: New file.
2076
2077         * Makefile.am: Added new java.applet classes.
2078         * Makefile.in: Rebuilt.
2079
2080 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
2081
2082         AWT Stuff:
2083         * java/util/ResourceBundle.java (getLocale): stub.
2084         * Makefile.am: Added new AWT classes.
2085         * Makefile.in: Rebuilt.
2086         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, 
2087         constructors. Fix toString() and paramString().
2088         * java/awt/AWTEventMulticaster.java: New class. Implemented.
2089         * java/awt/CheckboxGroup.java: New class.
2090         * java/awt/ColorModel.java: New class.
2091         * java/awt/Component.java: Added stubs for most methods. Implemented 
2092         event dispatch.
2093         * java/awt/Container.java: ditto.
2094         * java/awt/ComponentOrientation.java: New class. Partly implemented.
2095         * java/awt/Cursor.java: ditto.
2096         * java/awt/Event.java: Fix paramString().
2097         * java/awt/EventQueue.java: New class. Implemented.
2098         * java/awt/Font.java: Added additional stub methods. Implemented 
2099         toString().
2100         * java/awt/FontMetrics.java: New class. Stubbed.
2101         * java/awt/GraphicsConfiguration.java: New class. Complete, except for 
2102         Java2D parts.
2103         * java/awt/Insets.java: New class. Implemented.
2104         * java/awt/Menu.java: Add new methods. Partially implemented.
2105         * java/awt/MenuItem.java: Add new methods and fields. Partially 
2106         implemented.
2107         * java/awt/MenuShortcut.java: New class. Implemented.
2108         * java/awt/Panel.java: New class. Placeholder.
2109         * java/awt/PopupMenu.java: New class. Stubbed.
2110         * java/awt/Rectangle.java: New class. Implemented.
2111         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2112         * java/awt/event/ActionEvent.java: Implement paramString().
2113         * java/awt/event/AdjustmentEvent.java: Implement paramString().
2114         * java/awt/event/ComponentEvent.java: Implement paramString().
2115         * java/awt/event/ContainerEvent.java: Implement paramString().
2116         * java/awt/event/FocusEvent.java: Implement paramString().
2117         * java/awt/event/HierarchyBoundsAdapter.java: New class.
2118         * java/awt/event/HierarchyBoundsListener.java: New class.
2119         * java/awt/event/HierarchyEvent.java: New class.
2120         * java/awt/event/HierarchyListener.java: New class.
2121         * java/awt/event/InputMethodEvent.java: Implement paramString().
2122         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw 
2123         exception if !catchExceptions.
2124         * java/awt/event/ItemEvent.java: Implement paramString().
2125         * java/awt/event/KeyEvent.java: Implement paramString().
2126         * java/awt/event/MouseEvent.java: Implement paramString().
2127         * java/awt/event/PaintEvent.java: Implement paramString().
2128         * java/awt/event/TextEvent.java: Implement paramString().
2129         * java/awt/event/WindowEvent.java: Implement paramString().
2130         
2131         AWT Peer interfaces:
2132         * java/awt/peer/ButtonPeer.java: New file.
2133         * java/awt/peer/ListPeer.java: New file.
2134         * java/awt/peer/CanvasPeer.java: New file.
2135         * java/awt/peer/MenuBarPeer.java: New file.
2136         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2137         * java/awt/peer/MenuComponentPeer.java: New file.
2138         * java/awt/peer/CheckboxPeer.java: New file.
2139         * java/awt/peer/MenuItemPeer.java: New file.
2140         * java/awt/peer/ChoicePeer.java: New file.
2141         * java/awt/peer/MenuPeer.java: New file.
2142         * java/awt/peer/ComponentPeer.java: Implemented.
2143         * java/awt/peer/PanelPeer.java: New file.
2144         * java/awt/peer/ContainerPeer.java: Implemented.
2145         * java/awt/peer/PopupMenuPeer.java: New file.
2146         * java/awt/peer/DialogPeer.java: New file.
2147         * java/awt/peer/ScrollPanePeer.java: New file.
2148         * java/awt/peer/FileDialogPeer.java: New file.
2149         * java/awt/peer/ScrollbarPeer.java: New file.
2150         * java/awt/peer/FontPeer.java: New file.
2151         * java/awt/peer/TextAreaPeer.java: New file.
2152         * java/awt/peer/FramePeer.java: Implemented.
2153         * java/awt/peer/TextComponentPeer.java: New file.
2154         * java/awt/peer/LabelPeer.java: New file.
2155         * java/awt/peer/TextFieldPeer.java: New file.
2156         * java/awt/peer/LightweightPeer.java: New file.
2157         * java/awt/peer/WindowPeer.java: Implemented.
2158
2159 2000-07-06  Tom Tromey  <tromey@cygnus.com>
2160
2161         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2162         Initialize static final String fields.
2163
2164 2000-07-03  Tom Tromey  <tromey@cygnus.com>
2165
2166         * java/io/PrintWriter.java (print): Call write(String), not
2167         print(String).  See PR libgcj/277.
2168         (print(String)): Use write, not out.write.
2169
2170 2000-06-30  Tom Tromey  <tromey@cygnus.com>
2171
2172         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
2173
2174 2000-06-27  Andrew Haley  <aph@cygnus.com>
2175
2176        * java/io/File.java (createTempFile): Close the FileDescriptor
2177        used to create a temp file.  Fixes some of PR 203.
2178        * java/io/natFileDescriptorPosix.cc (open): Call garbage
2179        collection if we run out of file handles.
2180
2181 2000-06-28  Warren Levy  <warrenl@cygnus.com>
2182
2183         * gnu/java/security/provider/Gnu.java: New file.
2184         * gnu/java/security/provider/SHA.java: New file.
2185         * gnu/java/security/provider/SHA1PRNG.java: New file.
2186         * Makefile.am: Added the above files.
2187         * Makefile.in: Rebuilt.
2188
2189         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2190
2191 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
2192
2193         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2194         (destroyed_flag): Removed.
2195         (isDestroyed, removeGroup, removeThread): Test for parent == null.      
2196         (activeCount): Added spec note.
2197
2198 2000-06-27  Warren Levy  <warrenl@cygnus.com>
2199
2200         * java/security/Principal.java: New file.
2201         * Makefile.am: Added Principal.java.
2202         * Makefile.in: Rebuilt.
2203
2204 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
2205
2206         * java/awt/event/MouseEvent.java: Fixed coordinate space
2207         confusion.
2208
2209 2000-06-27  Tom Tromey  <tromey@cygnus.com>
2210
2211         * java/io/PushbackInputStream.java (read): If there are characters
2212         in the buffer, don't also call super.read().
2213         * java/io/PushbackReader.java (read): If there are characters in
2214         the buffer, don't also call super.read().
2215
2216         * java/lang/Double.java (valueOf): Call parseDouble().
2217
2218 2000-06-26  Warren Levy  <warrenl@cygnus.com>
2219
2220         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2221         (newVal): Renamed to newValue.
2222         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2223         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2224         (revokeNow): Renamed to invalidateRefs.
2225         * java/io/OptionalDataException.java: Updated FIXME.
2226         (eof): New placeholder field.
2227         (length); Ditto.
2228         * java/io/WriteAbortedException.java (message): Made transient.
2229         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2230         * java/lang/Throwable.java (stackTrace): Made transient.
2231         * java/net/InetAddress.java: Made Serializable.
2232         * java/security/KeyPair.java: Made Serializable.
2233         * java/security/Provider.java: Replaced with Classpath version that
2234         implements serialization and proper methods.
2235         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2236         (limits): Renamed to choiceLimits.
2237
2238 2000-06-24  Tom Tromey  <tromey@cygnus.com>
2239
2240         * java/lang/natDouble.cc (parseDouble): Renamed from
2241         doubleValueOf.
2242         * java/lang/Double.java (parseDouble): Renamed from
2243         doubleValueOf.  Now public.
2244
2245 2000-06-23  Andrew Haley  <aph@cygnus.com>
2246
2247         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
2248         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
2249
2250 2000-06-23  Tom Tromey  <tromey@cygnus.com>
2251
2252         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
2253         * java/lang/natDouble.cc: Always include <alloca.h>.
2254         Fix for PR libgcj/267.
2255
2256 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
2257
2258         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
2259         comply with classpath VM spec.
2260         (add(Group)): Rename to addGroup().
2261         * java/lang/Thread.java (Thread): Use addThread().
2262         * java/lang/natThread.cc (finish_): Use removeThread().
2263
2264 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
2265
2266         * java/lang/ThreadGroup.java: Merged with classpath.
2267         * prims.cc (_Jv_RunMain): Don't use `main_group'.
2268         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
2269         argument.
2270         * java/lang/Thread.java (Thread): Bootstrap initial thread from 
2271         ThreadGroup.root if Thread.currentThread is null. Honour the 
2272         ThreadGroup's max priority setting.
2273
2274 2000-06-18  Tom Tromey  <tromey@cygnus.com>
2275
2276         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
2277         returned class.  For PR gcj/260.
2278
2279 2000-06-16  Tom Tromey  <tromey@cygnus.com>
2280
2281         Fix for PR libgcj/261:
2282         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
2283         argument.
2284         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
2285         argument.  (This is a patch from long ago that somehow went
2286         missing.)
2287
2288 2000-06-15  Tom Tromey  <tromey@cygnus.com>
2289
2290         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
2291         (read): Use it.
2292         (write): Likewise.
2293
2294 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
2295
2296         Fix for PR java.lang/258:
2297         * prims.cc (_Jv_PrimClass): Set state of primitive class to 
2298         JV_STATE_DONE, to prevent accidental initialization.
2299         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call 
2300         _Jv_InterfaceAssignableFrom if target is an interface and source is an
2301         interface or an abstract class. Remove redundant initializeClass calls. 
2302         Remove duplicate if_idt test.
2303         (_Jv_InterfaceAssignableFrom): New function.
2304         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2305
2306 2000-05-31  Tom Tromey  <tromey@cygnus.com>
2307
2308         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
2309         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
2310         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
2311         (NUM_OBJECT_METHODS): New define.
2312         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
2313         `array_vtable' parameter.  Added assertion.
2314         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
2315         parameter.
2316
2317 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
2318
2319         * gcj/cni.h: Include <string.h>.
2320         * defineclass.cc: Include <alloca.h>.
2321         * interpret.cc: Ditto.
2322         * gij.cc: Include <stdlib.h>.
2323
2324 2000-05-30  Tom Tromey  <tromey@cygnus.com>
2325
2326         * include/name-finder.h: Include <sys/wait.h>.
2327         (_Jv_name_finder::pid): Now of type `pid_t'.
2328         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
2329         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
2330         `proc.waitFor()'.
2331
2332 2000-05-24  Warren Levy  <warrenl@cygnus.com>
2333
2334         * java/io/ObjectOutputStream.java (writeObject): Use component type
2335         when writing arrays.
2336         Fixed typo.
2337
2338 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
2339
2340         Fix for PR libgcj/226:
2341         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
2342         since this is an installed header.
2343         
2344         Fix for PR libgcj/228:
2345         * java/util/zip/ZipFile (getInputStream): Create inflater with 
2346         nowrapper option.
2347         
2348         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
2349         with DataFormatException.       
2350
2351 2000-05-20  Tom Tromey  <tromey@cygnus.com>
2352
2353         * Makefile.in: Rebuilt.
2354         * Makefile.am (hack1): Removed.
2355         (awto_files): Likewise.
2356         (libgcjawt_la_SOURCES): Likewise.
2357         (EXTRA_libgcjawt_la_SOURCES): Likewise.
2358         (libgcjawt_la_DEPENDENCIES): Likewise.
2359         (libgcjawt_la_LIBADD): Likewise.
2360         (libgcjawt_la_LDFLAGS): Likewise.
2361         (libgcjawt_la_LINK): Likewise.
2362         ($(awt_java_source_files:.java=.class)): Likewise.
2363         (libgcj.zip): Don't depend on AWT files.
2364         (MOSTLYCLEANFILES): Don't include AWT files.
2365         ($(awto_files)): Removed.
2366         (nat_headers): Removed AWT files.
2367         (cond_awt_java_source_files): Removed.
2368         (ordinary_java_source_files): Added awt_java_source_files.
2369         * libgcj.spec.in (*lib): Removed -lgcjawt.
2370         * configure: Rebuilt.
2371         * configure.in: Removed --enable-java-awt option.
2372
2373 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
2374
2375         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
2376         (ZipEntry): Copy the `name' field.
2377         (clone): Implement JDK1.2 method.
2378         (setCompressedSize): ditto.
2379         (hashCode): ditto.
2380
2381 2000-05-19  Tom Tromey  <tromey@cygnus.com>
2382
2383         * java/io/BufferedWriter.java: Merged with Classpath.
2384         * java/io/BufferedOutputStream.java: Merged with Classpath.
2385
2386 2000-05-16  Andrew Haley  <aph@cygnus.com>
2387
2388         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
2389         build_ia64_frame_state.
2390         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
2391         defintion in gcc.
2392
2393 2000-05-15  Warren Levy  <warrenl@cygnus.com>
2394
2395         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
2396         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
2397         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
2398         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
2399         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
2400         * gnu/gcj/beans/editors/FontEditor.java: Removed.
2401         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
2402         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
2403         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
2404         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
2405         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
2406         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
2407         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
2408         * gnu/gcj/beans/editors/StringEditor.java: Removed.
2409         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
2410         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
2411         * gnu/gcj/io/NullOutputStream.java: Removed.
2412         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
2413         * gnu/gcj/lang/ArrayHelper.java: Removed.
2414         * gnu/gcj/lang/ClassHelper.java: Removed.
2415         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
2416
2417         * gnu/java/beans/BeanInfoEmbryo.java: New file.
2418         * gnu/java/beans/EmptyBeanInfo.java: New file.
2419         * gnu/java/beans/ExplicitBeanInfo.java: New file.
2420         * gnu/java/beans/IntrospectionIncubator.java: New file.
2421         * gnu/java/beans/editors/ColorEditor.java: New file.
2422         * gnu/java/beans/editors/FontEditor.java: New file.
2423         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
2424         * gnu/java/beans/editors/NativeByteEditor.java: New file.
2425         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
2426         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
2427         * gnu/java/beans/editors/NativeIntEditor.java: New file.
2428         * gnu/java/beans/editors/NativeLongEditor.java: New file.
2429         * gnu/java/beans/editors/NativeShortEditor.java: New file.
2430         * gnu/java/beans/editors/StringEditor.java: New file.
2431         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
2432         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
2433         * gnu/java/io/NullOutputStream.java: New file.
2434         * gnu/java/io/ObjectIdentityWrapper.java: New file.
2435         * gnu/java/lang/ArrayHelper.java: New file.
2436         * gnu/java/lang/ClassHelper.java: New file.
2437         * gnu/java/lang/reflect/TypeSignature.java: New file.
2438
2439         * Makefile.am: Updated for moving Classpath files from gnu/gcj
2440         namespace back to the original Classpath gnu/java namespace.
2441         * Makefile.in: Rebuilt.
2442
2443         * java/beans/Beans.java: Namespace change.
2444         * java/beans/EventSetDescriptor.java: Namespace change.
2445         * java/beans/Introspector.java: Namespace change.
2446         * java/beans/PropertyEditorManager.java: Namespace change.
2447         * java/io/ObjectInputStream.java: Namespace change.
2448         * java/io/ObjectOutputStream.java: Namespace change.
2449         * java/io/ObjectStreamClass.java: Namespace change.
2450         * java/io/ObjectStreamField.java: Namespace change.
2451
2452 2000-04-21  Warren Levy  <warrenl@cygnus.com>
2453
2454         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
2455         now that compiler patch is available.
2456         Removed unneeded System.loadLibrary.
2457         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
2458         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
2459
2460 2000-04-19  Andrew Haley  <aph@cygnus.com>
2461
2462         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
2463         and target classes have been initialized.
2464
2465 2000-04-19  Andrew Haley  <aph@cygnus.com>
2466
2467         * java/lang/String.java: implement Serializable, Comparable.
2468         (compareTo (Object)): New method.
2469
2470 2000-04-19  Warren Levy  <warrenl@cygnus.com>
2471
2472         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
2473         instead of getField to retrieve non-public field.
2474         (getSerialPersistantFields): Ditto.
2475
2476 2000-04-18  Warren Levy  <warrenl@cygnus.com>
2477
2478         * mauve-libgcj: Turned off object serialization tests temporarily
2479         due to compiler error.
2480
2481 2000-04-17  Warren Levy  <warrenl@cygnus.com>
2482
2483         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
2484         to avoid build problem.
2485         (DEBUGln): Ditto.
2486         * mauve-libgcj: Turned on object serialization tests.
2487
2488 2000-04-17  Tom Tromey  <tromey@cygnus.com>
2489
2490         * libgcj.spec.in (*lib): Added -lgcjawt.
2491
2492 2000-04-17  Andrew Haley  <aph@cygnus.com>
2493
2494         * Makefile.am: Add new files: 
2495         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
2496         gnu/gcj/io/shs.cc.
2497         * Makefile.in: Rebuilt.
2498
2499         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
2500         interface that has no implementations.
2501         Check for an attempt to assign an abstract class to an interface.
2502
2503         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
2504         if we fail to find MessageDigest.getInstance ("SHA").
2505
2506         * gnu/gcj/io/SimpleSHSStream.java: New file.
2507         * gnu/gcj/io/natSimpleSHSStream.java: New file.
2508         * gnu/gcj/io/shs.cc: New file.
2509         * gnu/gcj/io/shs.h: new file.
2510
2511         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
2512         serializable.
2513
2514         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
2515         punctuation from the classname of an array element.
2516
2517         * gcj/javaprims.h: Add SimpleDigestStream.
2518         
2519 2000-04-17  Andrew Haley  <aph@cygnus.com>
2520
2521         * java/lang/natClass.cc (getPrivateField): Make recursive calls
2522         to getPrivateField for superclasses.
2523  
2524 2000-04-14  Andrew Haley  <aph@cygnus.com>
2525
2526         * Makefile.am: Add new files:
2527         java/io/ObjectOutputStream$PutField.h,
2528         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
2529         java/io/natObjectOutputStream.cc
2530         * Makefile.in: Rebuilt.
2531         * gcj/Makefile.in: Rebuilt.
2532         * include/Makefile.in: Rebuilt.
2533         * java/lang/Class.h (getPrivateField): New method.
2534         (getPrivateMethod): Ditto.
2535         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
2536         and java::io::ObjectStreamClass our friends.
2537         * java/lang/natClass.cc (getPrivateField): New method.
2538         (getPrivateMethod): Ditto.
2539         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
2540         * gcj/javaprims.h: Add serialization classes.   
2541         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
2542         (setByteField): Ditto.
2543         (setCharField): Ditto.
2544         (setDoubleField): Ditto.
2545         (setFloatField): Ditto.
2546         (setIntField): Ditto.
2547         (setLongField): Ditto.
2548         (setShortField): Ditto.
2549         (setObjectField): Ditto.
2550         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
2551         Java.
2552         (getByteField): Ditto.
2553         (getCharField): Ditto.
2554         (getDoubleField): Ditto.
2555         (getFloatField): Ditto.
2556         (getIntField): Ditto.
2557         (getLongField): Ditto.
2558         (getShortField): Ditto.
2559         (getObjectField): Ditto.
2560         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
2561         Java.
2562         (getSerialPersistantFields): Ditto.
2563         (getDefinedSUID): Ditto.
2564         * java/io/natObjectOutputStream.cc: New file.
2565         * java/io/natObjectInputStream.cc: New file.
2566         
2567 2000-04-13  Warren Levy  <warrenl@cygnus.com>
2568
2569         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
2570         problems.  Revert to previous version to reproduce and when fixed.
2571
2572 2000-04-13  Warren Levy  <warrenl@cygnus.com>
2573
2574         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
2575         * gnu/gcj/io/NullOutputStream.java: New file.
2576         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
2577         * java/io/BlockDataException.java: New file.
2578         * java/io/Externalizable.java: New file.
2579         * java/io/InvalidClassException.java: New file.
2580         * java/io/InvalidObjectException.java: New file.
2581         * java/io/NotActiveException.java: New file.
2582         * java/io/NotSerializableException.java: New file.
2583         * java/io/ObjectInput.java: New file.
2584         * java/io/ObjectInputStream.java: New file.
2585         * java/io/ObjectInputValidation.java: New file.
2586         * java/io/ObjectOutput.java: New file.
2587         * java/io/ObjectOutputStream.java: New file.
2588         * java/io/ObjectStreamClass.java: New file.
2589         * java/io/ObjectStreamConstants.java: New file.
2590         * java/io/ObjectStreamField.java: New file.
2591         * java/io/Replaceable.java: New file.
2592         * java/io/Resolvable.java: New file.
2593         * java/io/SerializablePermission.java: New file.
2594         * java/io/WriteAbortedException.java: New file.
2595         * java/security/BasicPermission.java: New file.
2596         * java/security/DigestOutputStream.java: New file.
2597         * java/security/Guard.java: New file.
2598         * java/security/Permission.java: New file.
2599         * java/security/PermissionCollection.java: New file.
2600         * Makefile.am: Added above files.
2601         * Makefile.in: Rebuilt.
2602
2603         * java/beans/Beans.java (instantiate): Activated serialization code.
2604         * java/lang/SecurityManager.java (checkPermission): New method.
2605
2606 2000-04-12  Warren Levy  <warrenl@cygnus.com>
2607
2608         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
2609         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
2610         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
2611         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
2612         * gnu/gcj/beans/editors/ColorEditor.java: New file.
2613         * gnu/gcj/beans/editors/FontEditor.java: New file.
2614         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
2615         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
2616         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
2617         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
2618         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
2619         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
2620         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
2621         * gnu/gcj/beans/editors/StringEditor.java: New file.
2622         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
2623         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
2624         * gnu/gcj/lang/ArrayHelper.java: New file.
2625         * gnu/gcj/lang/ClassHelper.java: New file.
2626         * java/beans/BeanDescriptor.java: New file.
2627         * java/beans/BeanInfo.java: New file.
2628         * java/beans/Beans.java: New file.
2629         * java/beans/Customizer.java: New file.
2630         * java/beans/DesignMode.java: New file.
2631         * java/beans/EventSetDescriptor.java: New file.
2632         * java/beans/FeatureDescriptor.java: New file.
2633         * java/beans/IndexedPropertyDescriptor.java: New file.
2634         * java/beans/IntrospectionException.java: New file.
2635         * java/beans/Introspector.java: New file.
2636         * java/beans/MethodDescriptor.java: New file.
2637         * java/beans/ParameterDescriptor.java: New file.
2638         * java/beans/PropertyChangeEvent.java: New file.
2639         * java/beans/PropertyChangeListener.java: New file.
2640         * java/beans/PropertyChangeSupport.java: New file.
2641         * java/beans/PropertyDescriptor.java: New file.
2642         * java/beans/PropertyEditor.java: New file.
2643         * java/beans/PropertyEditorManager.java: New file.
2644         * java/beans/PropertyEditorSupport.java: New file.
2645         * java/beans/PropertyVetoException.java: New file.
2646         * java/beans/SimpleBeanInfo.java: New file.
2647         * java/beans/VetoableChangeListener.java: New file.
2648         * java/beans/VetoableChangeSupport.java: New file.
2649         * java/beans/Visibility.java: New file.
2650         * java/beans/beancontext/BeanContext.java: New file.
2651         * java/beans/beancontext/BeanContextChild.java: New file.
2652         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
2653         * java/beans/beancontext/BeanContextChildSupport.java: New file.
2654         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
2655         * java/beans/beancontext/BeanContextEvent.java: New file.
2656         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
2657         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
2658         * java/beans/beancontext/BeanContextProxy.java: New file.
2659         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
2660         New file.
2661         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
2662         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
2663         New file.
2664         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
2665         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
2666         New file.
2667         * java/beans/beancontext/BeanContextServices.java: New file.
2668         * java/beans/beancontext/BeanContextServicesListener.java: New file.
2669         * java/util/AbstractCollection.java: New file.
2670         * java/util/AbstractList.java: New file.
2671         * java/util/Arrays.java: New file.
2672         * Makefile.am: Added above files.
2673         * Makefile.in: Rebuilt.
2674
2675 2000-04-11  Warren Levy  <warrenl@cygnus.com>
2676
2677         * java/awt/AWTError.java: New file.
2678         * java/awt/AWTEvent.java: New file.
2679         * java/awt/AWTException.java: New file.
2680         * java/awt/ActiveEvent.java: New file.
2681         * java/awt/Adjustable.java: New file.
2682         * java/awt/BorderLayout.java: New file.
2683         * java/awt/Color.java: New file.
2684         * java/awt/Component.java: New file.
2685         * java/awt/Container.java: New file.
2686         * java/awt/Dimension.java: New file.
2687         * java/awt/Event.java: New file.
2688         * java/awt/Font.java: New file.
2689         * java/awt/Frame.java: New file.
2690         * java/awt/Graphics.java: New file.
2691         * java/awt/IllegalComponentStateException.java: New file.
2692         * java/awt/Image.java: New file.
2693         * java/awt/ItemSelectable.java: New file.
2694         * java/awt/LayoutManager.java: New file.
2695         * java/awt/LayoutManager2.java: New file.
2696         * java/awt/Menu.java: New file.
2697         * java/awt/MenuBar.java: New file.
2698         * java/awt/MenuComponent.java: New file.
2699         * java/awt/MenuContainer.java: New file.
2700         * java/awt/MenuItem.java: New file.
2701         * java/awt/Paint.java: New file.
2702         * java/awt/PaintContext.java: New file.
2703         * java/awt/Point.java: New file.
2704         * java/awt/Rectangle.java: New file.
2705         * java/awt/Shape.java: New file.
2706         * java/awt/TextArea.java: New file.
2707         * java/awt/TextComponent.java: New file.
2708         * java/awt/Toolkit.java: New file.
2709         * java/awt/Transparency.java: New file.
2710         * java/awt/Window.java: New file.
2711         * java/awt/natToolkit.cc: New file.
2712         * java/awt/event/AWTEventListener.java: New file.
2713         * java/awt/event/ActionEvent.java: New file.
2714         * java/awt/event/ActionListener.java: New file.
2715         * java/awt/event/AdjustmentEvent.java: New file.
2716         * java/awt/event/AdjustmentListener.java: New file.
2717         * java/awt/event/ComponentAdapter.java: New file.
2718         * java/awt/event/ComponentEvent.java: New file.
2719         * java/awt/event/ComponentListener.java: New file.
2720         * java/awt/event/ContainerAdapter.java: New file.
2721         * java/awt/event/ContainerEvent.java: New file.
2722         * java/awt/event/ContainerListener.java: New file.
2723         * java/awt/event/FocusAdapter.java: New file.
2724         * java/awt/event/FocusEvent.java: New file.
2725         * java/awt/event/FocusListener.java: New file.
2726         * java/awt/event/InputEvent.java: New file.
2727         * java/awt/event/InputMethodEvent.java: New file.
2728         * java/awt/event/InputMethodListener.java: New file.
2729         * java/awt/event/InvocationEvent.java: New file.
2730         * java/awt/event/ItemEvent.java: New file.
2731         * java/awt/event/ItemListener.java: New file.
2732         * java/awt/event/KeyAdapter.java: New file.
2733         * java/awt/event/KeyEvent.java: New file.
2734         * java/awt/event/KeyListener.java: New file.
2735         * java/awt/event/MouseAdapter.java: New file.
2736         * java/awt/event/MouseEvent.java: New file.
2737         * java/awt/event/MouseListener.java: New file.
2738         * java/awt/event/MouseMotionAdapter.java: New file.
2739         * java/awt/event/MouseMotionListener.java: New file.
2740         * java/awt/event/PaintEvent.java: New file.
2741         * java/awt/event/TextEvent.java: New file.
2742         * java/awt/event/TextListener.java: New file.
2743         * java/awt/event/WindowAdapter.java: New file.
2744         * java/awt/event/WindowEvent.java: New file.
2745         * java/awt/event/WindowListener.java: New file.
2746         * java/awt/geom/Dimension2D.java: New file.
2747         * java/awt/geom/Point2D.java: New file.
2748         * java/awt/peer/ComponentPeer.java: New file.
2749         * java/awt/peer/ContainerPeer.java: New file.
2750         * java/awt/peer/FramePeer.java: New file.
2751         * java/awt/peer/WindowPeer.java: New file.
2752         * java/util/Collection.java: New file.
2753         * java/util/Comparator.java: New file.
2754         * java/util/Iterator.java: New file.
2755         * java/util/List.java: New file.
2756         * java/util/ListIterator.java: New file.
2757         * Makefile.am: Added above files.
2758         * Makefile.in: Rebuilt.
2759
2760 2000-04-10  Warren Levy  <warrenl@cygnus.com>
2761
2762         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
2763         * java/lang/FirstThread.java: Ditto.
2764         * java/lang/StringBuffer.java: Ditto.
2765         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
2766
2767         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
2768         Special case handled in java.math.BigInteger.
2769         * java/math/BigInteger.java (divide): Handle the special case when
2770         dividing by 1 and the high bit of the dividend is set.
2771         (setShiftRight): Handle case when count == 0.
2772
2773 2000-04-05  Andrew Haley  <aph@cygnus.com>
2774
2775         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
2776         special case.
2777
2778 2000-04-05  Andrew Haley  <aph@cygnus.com>
2779
2780         * sysdep/ia64.c (rse_address_add): Delete.
2781         (IS_NaT_COLLECTION_ADDR): Delete.
2782         (ia64_backtrace_helper): check for null unwind_info.
2783         
2784         * sysdep/ia64-frame.h: add calc_caller_bsp.
2785
2786         * java/lang/natThrowable.cc (printRawStackTrace): Flush
2787         PrintWriter.
2788
2789         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
2790         (_Jv_remI): Likewise.
2791         (_Jv_divJ): Likewise.
2792         (_Jv_remJ): Likewise.
2793         
2794         * interpret.cc (continue1): Use divide subroutines to guarantee
2795         correct Java standard behaviour.
2796         Floating-point division should not abort; make it so.
2797
2798 2000-03-29  Tom Tromey  <tromey@cygnus.com>
2799
2800         * configure: Rebuilt.
2801         * configure.in: Test against `libgcj_sjlj', not
2802         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
2803         to be set even when using sjlj.
2804
2805 2000-03-24  Andrew Haley  <aph@cygnus.com>
2806
2807         * Makefile.am: Add file addr2name.awk.
2808         * Makefile.in: Rebuilt.
2809         * addr2name.awk: New file.
2810         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
2811         lookups on ia64.
2812         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
2813         blank line.
2814         
2815 2000-03-22  Andrew Haley  <aph@cygnus.com>
2816
2817         * configure.host: Add -funwind-tables for IA64.
2818         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
2819         * Makefile.in: Rebuilt.
2820         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
2821         * sysdep/ia64.c: New file.
2822         * sysdep/ia64-frame.h: New file.
2823         * configure.in: Add sysdep/ia64.c for ia64.
2824         * configure: Rebuilt.
2825         
2826 2000-03-17  Andrew Haley  <aph@cygnus.com>
2827
2828         * java/lang/natString.cc: Remove `register' keyword.
2829         interpret.cc: ditto.
2830
2831 2000-03-16  Andrew Haley  <aph@cygnus.com>
2832
2833         * configure.host (ia64): Enable interpreter.
2834
2835 2000-03-14  Hans Boehm  <boehm@acm.org>
2836
2837         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
2838
2839 2000-03-14  Andrew Haley  <aph@cygnus.com>
2840
2841         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
2842         `_exception'.
2843
2844 2000-03-10  Andrew Haley  <aph@cygnus.com>
2845
2846         * java/lang/ieeefp.h: Import latest version from fdlibm.
2847
2848 2000-03-14  Andrew Haley  <aph@cygnus.com>
2849
2850         * prims.cc (_Jv_ThrowSignal): New function.
2851         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
2852         (catch_fpe): Ditto.
2853         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
2854         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
2855         * include/ppc-signal.h: New file.
2856
2857 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
2858
2859         * java/lang/Thread.java: Declare `data' as Object, not RawData.
2860         * java/lang/natThread.java (initialize_native): Cast `data' to
2861         jobject.
2862         * gnu/gcj/RawData.java: Clarify documentation.
2863
2864         From Gregory R. Warnes <warnes@biostat.washington.edu>:
2865         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
2866         `jarFile', not `jarFileURL'.
2867
2868 2000-05-15  Andrew Haley  <aph@cygnus.com>
2869
2870         * include/ppc-signal.h: New file.
2871
2872 2000-05-11  Tom Tromey  <tromey@cygnus.com>
2873
2874         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
2875         file headers, don't include `size' in the skip call.
2876
2877 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
2878
2879         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
2880         Avoid arrayCopy() call where possible. Update `count' _after_ calling
2881         arrayCopy().
2882         (replace): Reimplemented. Fix javadoc.
2883         (reverse): Call ensureCapacity_unsynchronized().
2884         (StringBuffer (String)): Use DEFAULT_CAPACITY.
2885
2886         (replace): Calculate length for arraycopy() correctly.
2887         
2888 2000-05-09  Tom Tromey  <tromey@cygnus.com>
2889
2890         * java/lang/StringBuffer.java (toString): Don't mark buffer as
2891         shared.
2892         (insert(int,char[],int,int): New method.
2893         (delete): New method from Classpath.
2894         (deleteCharAt): Likewise.
2895         (substring): Likewise.
2896         (shared): No longer private.
2897         Added JavaDoc comments from Classpath.
2898         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
2899         shared.
2900
2901 2000-05-07  Tom Tromey  <tromey@cygnus.com>
2902
2903         * Makefile.in: Rebuilt.
2904         * Makefile.am (LIBLINK): New macro.
2905         (libgcj_la_LINK): Use it.
2906         (libgcjawt_la_LINK): Likewise.
2907
2908 2000-05-06  Tom Tromey  <tromey@cygnus.com>
2909
2910         * Makefile.in: Rebuilt.
2911         * Makefile.am (libgcj.zip): Don't pass -L to javac.
2912
2913 2000-05-05  Tom Tromey  <tromey@cygnus.com>
2914
2915         Fix for PR libgcj/220:
2916         * Makefile.in: Rebuilt.
2917         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
2918         (jv_convert_LDFLAGS): Likewise.
2919         (libgcj_la_LDFLAGS): Likewise.
2920         (GCJLINK): New macro.
2921         (jv_convert_LINK): Use it.
2922         (gij_LINK): Likewise.
2923         (libgcj_la_LINK): New macro.
2924         (libgcjawt_la_LINK): Likewise.
2925
2926 2000-05-04  Tom Tromey  <tromey@cygnus.com>
2927
2928         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
2929         field.
2930         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
2931         `0x0008'.
2932         Include Modifier.h.
2933
2934 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
2935
2936         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
2937         (_Jv_IsAssignableFrom): Ditto.
2938         (_Jv_IsInstanceOf): Ditto.
2939         (_Jv_CheckCast): Ditto.
2940         (_Jv_CheckArrayStore): Ditto.
2941         * java/lang/Class.h (_Jv_InitClass): Ditto.     
2942         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
2943         not `0'.
2944         (notify): Ditto.
2945         (notifyAll): Ditto.
2946         (wait): Ditto.
2947         (_Jv_MonitorExit): Ditto.
2948         * boehm.cc (_Jv_MarkObj): Ditto.
2949         (_Jv_MarkObj): Ditto.
2950         (_Jv_MarkArray): Ditto.
2951         * prims.cc (_Jv_AllocObject): Ditto.
2952         (_Jv_NewObjectArray): Ditto.
2953         (_Jv_NewPrimArray): Ditto.
2954         (_Jv_Malloc): Ditto.
2955         (_Jv_Realloc): Ditto.
2956         (_Jv_MallocUnchecked): Ditto.
2957         (_Jv_divI): Ditto.
2958         (_Jv_remI): Ditto.
2959         (_Jv_divJ): Ditto.
2960         (_Jv_remJ): Ditto.
2961
2962 2000-05-04  Tom Tromey  <tromey@cygnus.com>
2963
2964         * java/util/Locale.java (Locale): Don't explicitly check for
2965         null.
2966         * java/util/Hashtable.java (containsKey): Don't explicitly check
2967         for null.
2968         (get): Likewise.
2969         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
2970         null.
2971         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
2972         for null.
2973         * java/text/StringCharacterIterator.java
2974         (StringCharacterIterator): Don't check for null.
2975         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
2976         for null pointer.
2977         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
2978         check for null pointer.
2979         (leaveGroup): Likewise.
2980         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
2981         comment.
2982         (setData): Likewise.
2983         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
2984         for `p==null'.
2985
2986 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
2987
2988         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
2989         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
2990         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
2991         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
2992         -rpath for in-gcc builds.
2993         * Makefile.in: Rebuilt.
2994
2995 2000-04-28  Tom Tromey  <tromey@cygnus.com>
2996
2997         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
2998         Fix for PR gcj/218.
2999
3000 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
3001
3002         * libjava/java/lang/String.java (toString): Remove `final' hack.
3003
3004 2000-04-05  Tom Tromey  <tromey@cygnus.com>
3005
3006         Runtime support for PR gcj/2:
3007         * prims.cc (_Jv_ThrowNullPointerException): New function.
3008         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3009
3010 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
3011
3012         * prims.cc (_Jv_NewObjectArray): Fix typo.
3013
3014 2000-04-26  Tom Tromey  <tromey@cygnus.com>
3015
3016         * Makefile.in: Rebuilt.
3017         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3018
3019 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
3020
3021         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3022         calling main.
3023
3024 2000-04-22  Anthony Green  <green@cygnus.com>
3025
3026         * include/jvm.h (__builtin_expect): Define as unused for now.
3027         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3028         (notify): Ditto.
3029         (notifyAll): Ditto.
3030         (wait): Ditto.
3031         (_Jv_MonitorExit): Ditto.
3032         * boehm.cc (_Jv_MarkObj): Ditto.
3033         (_Jv_MarkObj): Ditto.
3034         (_Jv_MarkArray): Ditto.
3035         (_Jv_AllocBytes): Ditto.
3036         * prims.cc (_Jv_AllocObject): Ditto.
3037         (_Jv_NewObjectArray): Ditto.
3038         (_Jv_NewPrimArray): Ditto.
3039         (_Jv_Malloc): Ditto.
3040         (_Jv_Realloc): Ditto.
3041         (_Jv_MallocUnchecked): Ditto.
3042         (_Jv_divI): Ditto.
3043         (_Jv_remI): Ditto.
3044         (_Jv_divJ): Ditto.
3045         (_Jv_remJ): Ditto.
3046
3047         * include/Makefile.in: Rebuilt.
3048         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3049
3050 2000-04-21  Tom Tromey  <tromey@cygnus.com>
3051
3052         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3053         Yet another new version from Classpath.
3054
3055         Fix for PR libgcj/15:
3056         * java/util/natGregorianCalendar.cc (_REENTRANT,
3057         _POSIX_PTHREAD_SEMANTICS): Don't define.
3058         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3059         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3060         Don't define.
3061         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3062         define.
3063         * configure: Rebuilt.
3064         * configure.in: If using POSIX threads, define _REENTRANT if
3065         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
3066         GETHOSTBYNAME_R_NEEDS_REENTRANT.
3067
3068         * java/io/PipedInputStream.java, java/io/PipedReader.java,
3069         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3070         version from Classpath.
3071
3072         Fix for PR libgcj/213:
3073         * Makefile.in: Rebuilt.
3074         * Makefile.am (gij_SOURCES): Added gij.cc.
3075         (EXTRA_gij_SOURCES): Removed.
3076         (gij_LDADD): Removed gij.lo.
3077         (gij_DEPENDENCIES): Likewise.
3078         ($(gij_OBJECTS)): Depend on nat_headers.
3079
3080         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3081         `setURL', not `url.set'.
3082
3083 2000-04-20  Tom Tromey  <tromey@cygnus.com>
3084
3085         Fix for PR java.io/204:
3086         * java/io/PipedInputStream.java, java/io/PipedReader.java,
3087         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3088         from Classpath.
3089
3090         Fix for PR libgcj/212:
3091         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3092         * include/jvm.h (_Jv_word, _Jv_word2): Define.
3093         * java/lang/Class.h (_Jv_word): Declare.
3094
3095         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3096
3097 2000-04-19  Tom Tromey  <tromey@cygnus.com>
3098
3099         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3100         doesn't have a loader.
3101
3102 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
3103
3104         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3105         MAYBE_MARK to ptr_t, for compatibility with new GC version.
3106
3107 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
3108
3109         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3110         libgcj/202.
3111         (available): Initialize `where' to prevent bogus compiler warning.
3112
3113 2000-04-12  Tom Tromey  <tromey@cygnus.com>
3114
3115         * java/lang/natString.cc (intern): Temporarily disable finalizer
3116         registration.
3117
3118         * java/lang/natString.cc (unintern): Added `obj' argument.
3119         (intern): Register finalizer for string.
3120         * java/lang/String.java (unintern): Now static; added obj
3121         argument.
3122
3123 2000-04-11  Tom Tromey  <tromey@cygnus.com>
3124
3125         * java/util/Vector.java (VectorEnumeration): Now `final'.
3126         * java/util/Hashtable.java (HashtableEntry): Now `final'.
3127         (HashtableEnumeration): Likewise.
3128         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3129         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3130
3131 2000-04-10  Warren Levy  <warrenl@cygnus.com>
3132
3133         * java/io/ObjectStreamException.java: New file.
3134         * java/io/OptionalDataException.java: New file.
3135         * java/io/StreamCorruptedException.java: New file.
3136         * java/math/BigDecimal.java: New file.
3137         * java/sql/CallableStatement.java: New file.
3138         * java/sql/Connection.java: New file.
3139         * java/sql/DataTruncation.java: New file.
3140         * java/sql/DatabaseMetaData.java: New file.
3141         * java/sql/Date.java: New file.
3142         * java/sql/Driver.java: New file.
3143         * java/sql/DriverManager.java: New file.
3144         * java/sql/DriverPropertyInfo.java: New file.
3145         * java/sql/PreparedStatement.java: New file.
3146         * java/sql/ResultSet.java: New file.
3147         * java/sql/ResultSetMetaData.java: New file.
3148         * java/sql/SQLException.java: New file.
3149         * java/sql/SQLWarning.java: New file.
3150         * java/sql/Statement.java: New file.
3151         * java/sql/Time.java: New file.
3152         * java/sql/Timestamp.java: New file.
3153         * java/sql/Types.java: New file.
3154         * Makefile.am: Added above new files.
3155         * Makefile.in: Rebuilt.
3156
3157         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3158         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3159         DatagramSocket constructor instead of null.
3160
3161 2000-04-08  Anthony Green  <green@cygnus.com>
3162
3163         * include/posix-threads.h (_Jv_MutexUnlock): Replace
3164         _JV_NOT_OWNER.
3165         
3166 2000-04-08  Anthony Green  <green@cygnus.com>
3167
3168         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3169         (_Jv_MutexUnlock): Ditto.
3170         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3171         (_Jv_MutexUnlock): Ditto.
3172
3173 2000-04-08  Anthony Green  <green@cygnus.com>
3174
3175         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3176         (ensureCapacity_unsynchronized): New private method.
3177         (append): Use ensureCapacity_unsynchronized.
3178
3179 2000-04-08  Tom Tromey  <tromey@cygnus.com>
3180
3181         * Makefile.in: Rebuilt.
3182         * Makefile.am (awt_java_source_files): Added new files.
3183         * java/awt/IllegalComponentStateException.java: New file.
3184         * java/awt/ItemSelectable.java: New file.
3185         * java/awt/event/WindowEvent.java: Finished.
3186         * java/awt/event/TextEvent.java: Finished.
3187         * java/awt/event/ContainerEvent.java: New file.
3188         * java/awt/Component.java (getX, getY): New methods.
3189         * java/awt/event/PaintEvent.java: New file.
3190         * java/awt/event/MouseEvent.java: New file.
3191         * java/awt/ActiveEvent.java: New file.
3192         * java/awt/event/KeyEvent.java: Finished.
3193         * java/awt/event/ItemEvent.java: New file.
3194         * java/awt/Adjustable.java: New file.
3195         * java/awt/event/InputMethodEvent.java: New file.
3196         * java/awt/event/InputEvent.java: Finished.
3197         * java/awt/event/FocusEvent.java: New file.
3198         * java/awt/event/MouseMotionAdapter.java: New file.
3199         * java/awt/event/MouseAdapter.java: New file.
3200         * java/awt/event/KeyAdapter.java: New file.
3201         * java/awt/event/FocusAdapter.java: New file.
3202         * java/awt/event/ContainerAdapter.java: New file.
3203         * java/awt/event/ComponentEvent.java: Finished.
3204         * java/awt/event/AdjustmentEvent.java: New file.
3205         * java/awt/event/ComponentAdapter.java: New file.
3206         * java/awt/event/ActionEvent.java: Finished.
3207         * java/awt/event/MouseMotionListener.java: New file.
3208         * java/awt/event/MouseListener.java: New file.
3209         * java/awt/event/ItemListener.java: New file.
3210         * java/awt/event/InputMethodListener.java: New file.
3211         * java/awt/event/ContainerListener.java: New file.
3212         * java/awt/event/FocusListener.java: New file.
3213         * java/awt/event/ComponentListener.java: New file.
3214         * java/awt/event/AWTEventListener.java: New file.
3215         * java/awt/event/AdjustmentListener.java: New file.
3216
3217 2000-04-08  Anthony Green  <green@cygnus.com>
3218
3219         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3220         check when we have to.
3221
3222         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3223         x) as `inline'.
3224
3225         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
3226         one method call.
3227
3228         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3229         inline hasMoreElements.
3230
3231 2000-04-05  Tom Tromey  <tromey@cygnus.com>
3232
3233         * configure: Rebuilt.
3234         * configure.in: Recognize --enable-java-awt.
3235         (AWT): New conditional.
3236         * Makefile.in: Rebuilt.
3237         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
3238         requested.
3239         (libgcjawt_la_SOURCES): New macro.
3240         (EXTRA_libgcjawt_la_SOURCES): Likewise.
3241         (libgcjawt_la_DEPENDENCIES): Likewise.
3242         (libgcjawt_la_LIBADD): Likewise.
3243         (libgcjawt_la_LDFLAGS): Likewise.
3244         (libgcj.zip): Depend on cond_java_awt_source_files
3245         (cond_awt_java_source_files): New macro.
3246         (MOSTLYCLEANFILES): Added awto_files.
3247         (awto_files): New macro.  Use where javao_files used.
3248         (nat_headers): Use cond_awt_java_source_files.
3249
3250 2000-04-04  Tom Tromey  <tromey@cygnus.com>
3251
3252         * Makefile.in: Rebuilt.
3253         * Makefile.am (awt_java_source_files): Added AWTException.java.
3254         * java/awt/AWTException.java: New file.
3255
3256 2000-04-03  Tom Tromey  <tromey@cygnus.com>
3257
3258         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
3259         commentary from Alex.
3260
3261         * Makefile.in: Rebuilt.
3262         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
3263         From H.J. Lu.
3264
3265 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
3266
3267         * configure: Rebuilt.
3268         * configure.in: Add --disable-jvmpi.
3269         * include/config.h.in: Rebuilt.
3270         * acconfig.h: Add ENABLE_JVMPI.
3271          
3272         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
3273         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
3274         (_Jv_JVMPI_Notify_THREAD_END): New define.
3275         (_Jv_JVMPI_Notify_THREAD_END): New define.
3276         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
3277         (_Jv_JVMPI_Notify_THREAD_END): Declare.
3278         (_Jv_JVMPI_Notify_THREAD_END): Declare.
3279
3280         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
3281         events.
3282
3283         * java/lang/natThread.cc: Include JVMPI headers if necessary.
3284         (finish_): Generate JVMPI thread end events.
3285         (run_): Generate JVMPI thread start events.
3286         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
3287         preloaded JNI library.
3288         Include JVMPI headers if necessary.
3289         (run): Generate JVMPI thread start events.
3290
3291         * boehm.cc: Define GC_disable and GC_enable.
3292         (_Jv_DisableGC): New function.
3293         (_Jv_EnableGC): New function.
3294         (disable_gc_mutex): Declare.
3295         * nogc.cc (_Jv_DisableGC): New function.
3296         (_Jv_EnableGC): New function.
3297           
3298         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
3299         (_Jv_JVMPI_Interface): Define.
3300         (jvmpiEnableEvent): New function.
3301         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
3302           
3303         * include/jvmpi.h: New file.
3304
3305 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
3306
3307         * Makefile.in: New #defines and friends for Thread.h.
3308         * Makefile.am: Ditto.
3309         * posix-threads.cc: (struct starter): Remove `object'.
3310         (_Jv_CondWait): Use interruptable condition variables and new
3311         recursive mutexes. New return codes on interrupt or non-ownership
3312         of mutex.
3313         (_Jv_CondNotify): Ditto.
3314         (_Jv_CondNotifyAll): Ditto.
3315         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
3316         the target thread by signaling its wait condition.
3317         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
3318         not the starter struct. Initialize wait_mutex and wait_cond.
3319         (_Jv_MutexLock): New recursive mutex implementation. Moved from 
3320         posix-threads.h.
3321         (_Jv_MutexUnlock): Ditto.
3322         (really_start): Set info->data->thread from pthread_self() to work 
3323         around a race condition. Destroy wait_mutex and wait_cond when run()
3324         returns.
3325         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
3326         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
3327         set.
3328         startable_flag: New private field.
3329         (Thread): Initialize `startable_flag'.
3330         (toString): Check for null thread group.
3331         * java/lang/natThread.cc: (struct natThread): New fields 
3332         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
3333         (class locker): Removed.
3334         (initialize_native): Initialize `join_cond' and `join_mutex'.
3335         (interrupt): Now just calls _Jv_ThreadInterrupt().
3336         (join): Simplified. Just wait on the target thread's join condition.
3337         (finish_): Remove join list code. Unset thread group. Signal
3338         potential joiners by notifying the dying threads join_cond.
3339         (start): Check for illegal restarts.
3340         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
3341         act appropriatly.
3342         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
3343         #defines and #ifdefs.
3344         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
3345         `wait_mutex', `next'.
3346         (struct _Jv_ConditionVariable_t): Define as a struct instead of 
3347         directly mapping to pthread_cond_t.
3348         (struct _Jv_Mutex_t): New recursive implementation.
3349         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
3350         _Jv_HaveCondDestroy: Never define this for posix-threads.
3351         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
3352         (_Jv_CondNotifyAll): Ditto.
3353         (_Jv_MutexLock): Ditto.
3354         (_Jv_MutexUnlock): Ditto.
3355         (_Jv_MutexInit): Changed to reflect new mutex implementation.
3356         (_Jv_MutexDestroy): Ditto.
3357         (_Jv_CondDestroy): Removed.
3358         (_Jv_PthreadGetMutex): Removed.
3359         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an 
3360         error. Add a FIXME about this.
3361         (_Jv_CondNotifyAll): Ditto.
3362         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess 
3363         _JV_NOT_OWNER on other errors. Add FIXME.
3364
3365 2000-03-26  Tom Tromey  <tromey@cygnus.com>
3366
3367         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
3368         set, throw it.
3369         (call): Don't throw exception here.
3370
3371 2000-03-26  Tom Tromey  <tromey@cygnus.com>
3372
3373         * java/lang/mprec.h: Use SIZEOF_VOID_P.
3374         * interpret.cc: Use SIZEOF_VOID_P.
3375         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
3376         (_Jv_loadLong): Likewise.
3377         (_Jv_storeDouble): Likewise.
3378         * configure: Rebuilt.
3379         * configure.in: Check size of void*.
3380
3381         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
3382
3383 2000-03-26  Hans Boehm  <boehm@acm.org>
3384
3385         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
3386         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
3387         machine.
3388         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
3389         __IEEE_LITTLE_ENDIAN appropriately on IA64.
3390         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
3391         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
3392         case.
3393         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
3394         (FFI_RAW_SIZE): Likewise.
3395         (_Jv_InterpMethod::ncode): Use them.
3396         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
3397         STORED): Define differently on a 64 bit machine.
3398         (continue1): Use ffi_java_raw_call when appropriate.
3399  
3400 2000-03-24  Warren Levy  <warrenl@cygnus.com>
3401
3402         * java/math/BigInteger.java(divide): Handle the special case when
3403         dividing by 1 and the high bit of the dividend is set.
3404         (setShiftRight): Handle case when count == 0.
3405
3406 2000-03-24  Warren Levy  <warrenl@cygnus.com>
3407
3408         * java/awt/Font.java(isBold): Fix syntax error.
3409         (isItalic): ditto.
3410         * java/awt/Frame.java(postEvent): ditto.
3411         * java/awt/Menu.java(postEvent): ditto.
3412         * java/awt/MenuBar.java(postEvent): ditto.
3413         * java/awt/Toolkit.java(init): Included a stub.
3414
3415 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
3416
3417         * java/awt/Event.java: Add all the event type constants.
3418         (Event): Implemented constructors.
3419         (controlDown): Implemented.
3420         (metaDown): Implemented.
3421         (paramString): Stubbed.
3422         (shiftDown): Implemented.
3423         (toString): Implemented.
3424         (translate): Implemented.
3425
3426 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
3427
3428         * java/lang/natClass.cc (isInstance): Initialize `this'.
3429         (isAssignableFrom): Initialize `this' and `klass'.
3430         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
3431         implemented by any loaded class, so return false.
3432         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
3433         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
3434
3435 2000-03-19  Warren Levy  <warrenl@cygnus.com>
3436
3437         * java/awt/Color.java: Specified java.io for Serializable.
3438         * java/awt/Toolkit.java: Imported java.net.URL.
3439
3440 2000-03-19  Warren Levy  <warrenl@cygnus.com>
3441
3442         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
3443
3444 2000-03-16  Warren Levy  <warrenl@cygnus.com>
3445
3446         * java/awt/Color.java: New file.
3447         * java/awt/Graphics.java: New file.
3448         * java/awt/Image.java: New file.
3449         * java/awt/Paint.java: New file.
3450         * java/awt/PaintContext.java: New file.
3451         * java/awt/Transparency.java: New file.
3452         * java/util/Collection.java: New file.
3453         * java/util/Comparator.java: New file.
3454         * java/util/Iterator.java: New file.
3455         * java/util/List.java: New file.
3456         * java/util/ListIterator.java: New file.
3457         * Makefile.am: Added above new files.
3458         * Makefile.in: Rebuilt.
3459
3460         * java/awt/Font.java (PLAIN): New field.
3461         (BOLD): New field.
3462         (ITALIC): New field.
3463         (ROMAN_BASELINE): New field.
3464         (CENTER_BASELINE): New field.
3465         (HANGING_BASELINE): New field.
3466         (name): New field.
3467         (style): New field.
3468         (size): New field.
3469         (pointSize): New field.
3470         (Font): Implemented constructor.
3471         (isPlain): Implemented method.
3472         (isBold): Implemented method.
3473         (isItalic): Implemented method.
3474         (getName): Implemented method.
3475         (getStyle): Implemented method.
3476         (getSize): Implemented method.
3477         (getSize2D): Implemented method.
3478         (decode): Stubbed.
3479         * java/awt/Frame.java (getFont): Stubbed.
3480         (postEvent): Stubbed.
3481         (remove): Stubbed.
3482         * java/awt/Menu.java (postEvent): Stubbed.
3483         * java/awt/MenuBar.java (getFont): Stubbed.
3484         (postEvent): Stubbed.
3485         * java/awt/Toolkit.java (getImage): Added abstract method.
3486
3487 2000-03-15  Tom Tromey  <tromey@cygnus.com>
3488
3489         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
3490
3491         * prims.cc (win32_exception_handler): Reformatted.
3492
3493         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
3494         (_Jv_HaveMutexDestroy): Likewise.
3495
3496 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
3497
3498         * java/io/natFileDescriptorWin32.cc: New file.
3499         * java/io/natFileWin32.cc: New file.
3500         * java/net/natInetAddress.cc: Added conditional inclusion of
3501         Windows / Winsock headers.
3502         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
3503         inclusion of Windows / Winsock headers.
3504         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
3505         Windows / Winsock headers.
3506         * include/win32-signal.h: New file.
3507         * include/win32-threads.h: New file.
3508         * win32-threads.cc: New file.
3509         * exception.cc (win32_get_restart_frame): New function.
3510         * prims.cc (win32_exception_handler): New function.
3511         (main_init) Performs Winsock initialisation.
3512         (main_init) Installs exeception handler.
3513
3514 2000-03-14  Tom Tromey  <tromey@cygnus.com>
3515
3516         * jni.cc (mangled_name): Fixed assertion.
3517         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
3518         turned assert into actual failure.
3519
3520 2000-03-09  Warren Levy  <warrenl@cygnus.com>
3521
3522         * java/security/Key.java(serialVersionUID): Set to 0 for now.
3523         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
3524         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
3525
3526 2000-03-09  Warren Levy  <warrenl@cygnus.com>
3527
3528         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
3529         * java/security/DigestException.java: New file.
3530         * java/security/GeneralSecurityException.java: New file.
3531         * java/security/InvalidAlgorithmParameterException.java: New file.
3532         * java/security/InvalidKeyException.java: New file.
3533         * java/security/InvalidParameterException.java: New file.
3534         * java/security/Key.java: New file.
3535         * java/security/KeyException.java: New file.
3536         * java/security/KeyPair.java: New file.
3537         * java/security/KeyPairGenerator.java: New file.
3538         * java/security/KeyPairGeneratorSpi.java: New file.
3539         * java/security/NoSuchProviderException.java: New file.
3540         * java/security/PrivateKey.java: New file.
3541         * java/security/Provider.java: New file.
3542         * java/security/PublicKey.java: New file.
3543         * java/security/SecureRandom.java: New file.
3544         * java/security/Security.java: New file.
3545         * java/security/Signature.java: New file.
3546         * java/security/SignatureException.java: New file.
3547         * java/security/interfaces/DSAKey.java: New file.
3548         * java/security/interfaces/DSAParams.java: New file.
3549         * java/security/interfaces/DSAPrivateKey.java: New file.
3550         * java/security/interfaces/DSAPublicKey.java: New file.
3551         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
3552         * java/security/interfaces/RSAPrivateKey.java: New file.
3553         * java/security/interfaces/RSAPublicKey.java: New file.
3554         * java/security/spec/AlgorithmParameterSpec.java: New file.
3555         * java/security/spec/InvalidKeySpecException.java: New file.
3556         * java/security/spec/InvalidParameterSpecException.java: New file.
3557         * java/security/spec/KeySpec.java: New file.
3558         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
3559         * java/security/spec/RSAPrivateKeySpec.java: New file.
3560         * java/security/spec/RSAPublicKeySpec.java: New file.
3561         * Makefile.am: Added above java.security files.
3562         * Makefile.in: Rebuilt.
3563
3564         * java/security/MessageDigest.java: Rewritten.
3565         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
3566
3567 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
3568
3569         * README: Updated.
3570
3571 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
3572
3573         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
3574         _Jv_PrepareConstantTimeTables.
3575         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
3576         classes should have an IDT, so don't return if klass is an array
3577         class.
3578
3579 2000-03-08  Tom Tromey  <tromey@cygnus.com>
3580
3581         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
3582         of `void' to be created.
3583
3584 2000-03-08  Warren Levy  <warrenl@cygnus.com>
3585
3586         * java/math/BigInteger.java(signum): Handle zero properly.
3587
3588 2000-03-07  Tom Tromey  <tromey@cygnus.com>
3589
3590         * All files: Updated copyright information.
3591         * COPYING: New file.
3592         * COPYING.LIB: Removed.
3593         * LIBGCJ_LICENSE: We now use GPL + special exception.
3594
3595 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
3596
3597         * resolve.cc (_Jv_SearchMethodInClass): New function.
3598         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
3599         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
3600
3601 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
3602
3603         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
3604         (struct _Jv_ifaces): New declaration.
3605         JV_CLASS: New macro definition.
3606         (getComponentType): Relocate below isArray() for inlining.
3607         (getModifiers): Declare `inline'.
3608         (getSuperclass): Ditto.
3609         (isArray): Ditto.
3610         (isPrimitive): Ditto.
3611         (_Jv_IsAssignableFrom): New prototype.
3612         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
3613         linkage.
3614         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
3615         Check for JV_STATE_DONE before invoking initializeClass().
3616         (_Jv_PrepareConstantTimeTables): New prototype.
3617         (_Jv_GetInterfaces): Ditto.
3618         (_Jv_GenerateITable): Ditto.
3619         (_Jv_GetMethodString): Ditto.
3620         (_Jv_AppendPartialITable): Ditto.
3621         (_Jv_FindIIndex): Ditto.
3622         depth, ancestors, idt: New class fields.
3623
3624         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
3625         inline function `_Jv_IsAssignableFrom'. Use that function.
3626         (isInstance): Declare `inline'.
3627         (initializeClass): Get lock on class before checking `state'. Unlock 
3628         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
3629         the lock held.
3630         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
3631         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
3632         class->depth and ancestor table.
3633         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
3634         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
3635         _Jv_IsAssignableFrom.
3636         (_Jv_CheckArrayStore): Ditto.
3637         (_Jv_LookupInterfaceMethodIdx): New function. 
3638         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
3639         (_Jv_PrepareConstantTimeTables): New function.
3640         (_Jv_IndexOf): Ditto.
3641         (_Jv_GetInterfaces): Ditto.
3642         (_Jv_GenerateITable): Ditto.
3643         (_Jv_GetMethodString): Ditto.
3644         (_Jv_AppendPartialITable): Ditto.
3645         iindex_mutex, iindex_mutex_initialized: New static fields.
3646         (_Jv_FindIIndex): New function.
3647
3648         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
3649
3650         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
3651         (_Jv_CheckArrayStore): Ditto.
3652         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
3653         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
3654         Moved to gcj/array.h.
3655         (_Jv_Realloc): New function.
3656
3657         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
3658
3659         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
3660         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
3661         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
3662         JvNewDoubleArray): Implementations moved from prims.cc and
3663         declared `inline'.
3664
3665         * gcj/javaprims.h (_Jv_Realloc): Prototype.
3666
3667         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
3668
3669 2000-03-06  Tom Tromey  <tromey@cygnus.com>
3670
3671         * jni.cc (MARK_NONE): New define.
3672         (MARK_USER): Likewise.
3673         (MARK_SYSTEM): Likewise.
3674         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
3675         smaller.
3676         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
3677         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
3678         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
3679         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
3680         argument.
3681         (call): Use MARK_SYSTEM.
3682         (_Jv_GetJNIEnvNewFrame): New function.
3683         (_Jv_LookupJNIMethod): New function.
3684         (_Jv_JNI_PopSystemFrame): New function.
3685         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
3686
3687 2000-03-05  Tom Tromey  <tromey@cygnus.com>
3688
3689         Fix for PR libgcj/43:
3690         * include/Makefile.in: Rebuilt.
3691         * include/Makefile.am (include_HEADERS): New define.
3692
3693 2000-03-05  Anthony Green  <green@redhat.com>
3694
3695         * gcj/javaprims.h ("Java"): Remove FirstThread.
3696
3697         * configure.host: Fix __NO_MATH_INLNES botch.
3698
3699         * Makefile.in: Rebuilt.
3700         * Makefile.am (nat_source_files): Move natFirstThread.cc.
3701         (gnu/gcj/runtime/FirstThread.h): Moved.
3702         (ordinary_java_source_files): Move FirstThread.java.
3703         * prims.cc: Deal with FirstThread movement.
3704         (JvRunMain): Ditto.
3705         (_Jv_RunMain): Ditto.
3706
3707         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
3708         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
3709
3710 2000-03-05  Warren Levy  <warrenl@cygnus.com>
3711
3712         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
3713           Handle null addresses.
3714
3715 2000-03-04  Anthony Green  <green@redhat.com>
3716
3717         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
3718         See PR gcj/151.
3719
3720 2000-03-04  Anthony Green  <green@redhat.com>
3721
3722         * configure: Rebuilt.
3723         * configure.in (ZLIBTESTSPEC): New macro.
3724         (GCTESTSPEC): New macro.
3725         (LIBGCJTESTSPEC): New macro.
3726         * libgcj-test.spec.in: New file.
3727
3728 2000-03-02  Tom Tromey  <tromey@cygnus.com>
3729
3730         * include/java-interp.h: Don't include MethodInvocation.h.
3731         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
3732         * Makefile.in: Rebuilt.
3733         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
3734         (ordinary_java_source_files): Don't mention
3735         MethodInvocation.java.
3736         * gnu/gcj/runtime/MethodInvocation.java: Removed.
3737         * interpret.cc (MethodInvocation::continue1): Removed.
3738         (run): Handle exceptions here.
3739         * java/lang/ClassLoader.java (defineClass1, defineClass2):
3740         Removed.
3741         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
3742         here.
3743         (defineClass2): Removed.
3744
3745         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
3746         Removed.
3747         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
3748         exceptions here.
3749         (hack_call): Removed.
3750
3751         * java/lang/Class.h (Class): Removed hackRunInitializers,
3752         hackTrampoline.
3753         * java/lang/natClass.cc (hackRunInitializers): Removed.
3754         (initializeClass): Catch exceptions here.
3755         Include ExceptionInInitializerError.h.
3756         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
3757         Removed.
3758
3759         * java/lang/Object.h (Object): Don't mention hack12_6.
3760         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
3761         here.
3762         * java/lang/Object.java (hack12_6): Removed.
3763
3764         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
3765         (start): Use run_, not run__.
3766         * java/lang/Thread.java (run_): Renamed from run__; old run_
3767         removed.
3768
3769         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
3770         (_Jv_JNI_EnsureLocalCapacity): Likewise.
3771         (_Jv_JNI_DefineClass): Likewise.
3772         (_Jv_JNI_ThrowNew): Likewise.
3773         (_Jv_JNI_AllocObject): Likewise.
3774         (_Jv_JNI_GetAnyMethodID): Likewise.
3775         (_Jv_JNI_CallAnyMethodV): Likewise.
3776         (_Jv_JNI_CallAnyMethodA): Likewise.
3777         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
3778         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
3779         (_Jv_JNI_GetAnyFieldID): Likewise.
3780         (_Jv_JNI_NewString): Likewise.
3781         (_Jv_JNI_NewStringUTF): Likewise.
3782         (_Jv_JNI_GetStringUTFChars): Likewise.
3783         (_Jv_JNI_NewObjectArray): Likewise.
3784         (_Jv_JNI_NewPrimitiveArray): Likewise.
3785         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
3786         (_Jv_JNI_GetStringRegion): Likewise.
3787         (_Jv_JNI_GetStringUTFRegion): Likewise.
3788         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
3789         (_Jv_JNI_MonitorEnter): Likewise.
3790         (_Jv_JNI_MonitorExit): Likewise.
3791         (_Jv_JNI_ToReflectedField): Likewise.
3792         (_Jv_JNI_ToReflectedMethod): Likewise.
3793         (_Jv_JNI_RegisterNatives): Likewise.
3794         (_Jv_JNI_AttachCurrentThread): Likewise.
3795         (_Jv_JNI_DestroyJavaVM): Likewise.
3796
3797 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
3798
3799         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
3800         error caused by the incorrect casting of a long to an int.
3801
3802 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
3803
3804         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
3805         SIGSEV caused by use of the wrong instance variable.
3806
3807 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
3808
3809         * java/io/File.java (File(String, String)): For dirPath, treat an
3810         empty String the same as `null'.
3811
3812 2000-02-26  Anthony Green  <green@cygnus.com>
3813
3814         * gnu/gcj/io/MimeTypes.java: Test for null.
3815
3816         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
3817         (JNI_GetCreatedJavaVMs): Remove compiler warning.
3818
3819         * java/net/URLConnection.java: Update copyright notice.
3820
3821 2000-02-25  Tom Tromey  <tromey@cygnus.com>
3822
3823         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
3824         `INTERPRETER'.
3825
3826 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
3827
3828         * java/net/URLConnection.java (initializeDateFormats): New
3829         private method.
3830         (getHeaderFieldDate): Call initializeDateFormats if required.
3831         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
3832         these.
3833         Fix for PR libgcj/38.
3834
3835 2000-02-24  Warren Levy  <warrenl@cygnus.com>
3836
3837         * java/math/BigInteger.java(ival): Made private.
3838         (words): Ditto.
3839         (neg): Ditto.
3840
3841 2000-02-20  Anthony Green  <green@cygnus.com>
3842
3843         * Makefile.in: Rebuilt.
3844         * Makefile.am (ordinary_java_source_files): Add
3845         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
3846
3847         * scripts/MakeDefaultMimeTypes.java: New file.
3848         * scripts/mime.types: New file.
3849         * scripts/classes.pl: Moved from top level.
3850         * classes.pl: Moved to scripts directory.
3851
3852         * java/net/URLConnection.java: Implement guessContentTypeFromName.
3853
3854         * gnu/gcj/io/MimeTypes.java: New file.
3855         * gnu/gcj/io/DefaultMimeTypes.java: New file.
3856
3857 2000-02-20  Tom Tromey  <tromey@cygnus.com>
3858
3859         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
3860
3861 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
3862
3863         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
3864         (setSize): ditto.
3865
3866 2000-02-18  Tom Tromey  <tromey@cygnus.com>
3867
3868         * include/jvm.h (_Jv_GetJavaVM): Declare.
3869         * include/java-interp.h (_Jv_GetFirstMethod): New function.
3870         (_Jv_MethodBase::get_method): New method.
3871         (_Jv_JNIMethod::set_function): New method.
3872         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
3873         (_Jv_JNI_RegisterNatives): New function.
3874         (_Jv_JNIFunctions): Updated for new functions.
3875         (_Jv_GetJavaVM): New function.
3876         (_Jv_JNI_GetJavaVM): Use it.  Now static.
3877         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
3878         is already a Java thread but does not have a JNIEnv yet.
3879
3880         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
3881         function.
3882
3883 2000-02-17  Tom Tromey  <tromey@cygnus.com>
3884
3885         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
3886         Fixes PR gcj/152.
3887
3888 2000-02-16  Tom Tromey  <tromey@cygnus.com>
3889
3890         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
3891
3892         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
3893         (_Jv_JNI_NewObject): Likewise.
3894         (_Jv_JNI_NewObjectA): Likewise.
3895         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
3896         as "return" type to _Jv_CallAnyMethodA.
3897         (_Jv_JNI_CallAnyMethodA): Likewise.
3898         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
3899
3900         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
3901         findClass.
3902
3903 2000-02-15  Tom Tromey  <tromey@cygnus.com>
3904
3905         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
3906         jni_arg_types.
3907         (init_cif): Added `rtype_p' argument.
3908         * include/java-interp.h (class _Jv_MethodBase): Added
3909         args_raw_size.
3910         (class _Jv_InterpMethod): Removed args_raw_size.
3911         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
3912         * jni.cc (call): Pass JNIEnv and (for static methods only) the
3913         class pointer as well as the ordinary arguments.
3914
3915         * jni.cc (mangled_name): Skip leading `(' in signature.
3916
3917         * jni.cc (add_char): Added missing `else'.
3918
3919         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
3920         fails.
3921
3922 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
3923
3924         * NEWS: Updated.
3925
3926         * java/lang/natRuntime.cc (_load): Include library path with
3927         exception message.
3928
3929         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
3930         property.
3931
3932         * java/lang/natThread.cc (dumpStack): Removed.
3933         * java/lang/Thread.java (dumpStack): Implemented.
3934
3935 2000-02-15  Tom Tromey  <tromey@cygnus.com>
3936
3937         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
3938         with `lib' for loadLibrary.  Fixes PR gcj/150.
3939
3940 2000-02-14  Warren Levy  <warrenl@cygnus.com>
3941
3942         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
3943
3944         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
3945           New constructor.
3946         (min): Implemented.
3947         (max): Implemented.
3948         (modPow): Rewritten to not use the naive, slow, brute force approach.
3949         (isProbablePrime): Implemented.
3950         (testBit): Implemented.
3951         (flipBit): Implemented.
3952         (getLowestSetBit): Implemented.
3953
3954 2000-02-16  Anthony Green  <green@redhat.com>
3955
3956         * configure.host: Use the same options for i386 and i486 as we do
3957         for i586 and i686.
3958
3959 2000-02-12  Tom Tromey  <tromey@cygnus.com>
3960
3961         * java/io/File.java (createTempFile): Use low bits from counter,
3962         not high bits.
3963
3964 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
3965
3966         * THANKS: More thanks.
3967
3968 2000-02-11  Tom Tromey  <tromey@cygnus.com>
3969
3970         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
3971         astore instruction.  From Hans Boehm.
3972
3973 2000-02-11  Warren Levy  <warrenl@cygnus.com>
3974
3975         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
3976         (BigInteger(String)): New constructor.
3977         (not): Rewritten using version from Kawa's BitOps class.
3978         (valueOf): New private methods from Kawa's BitOps class.
3979         (swappedOp): ditto.
3980         (bitOp): ditto.
3981         (setBitOp): ditto.
3982         (and): Implemented.
3983         (or): Implemented.
3984         (xor): Implemented.
3985         (andNot): Implemented.
3986         (clearBit): Implemented.
3987         (setBit): Implemented.
3988         (bitCount): Implemented.
3989         (toByteArray): Implemented.
3990
3991 2000-02-11  Tom Tromey  <tromey@cygnus.com>
3992
3993         * java/io/File.java (nextValue): Now synchronized.
3994
3995 2000-02-10  Tom Tromey  <tromey@cygnus.com>
3996
3997         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
3998         * java/io/FileDescriptor.java (EXCL): New static field.
3999         * java/io/File.java (tmpdir): New static field.
4000         (createTempFile): New method.
4001         (nextValue): New method.
4002         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4003         property.
4004
4005         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4006         (jboolean): Declare as an attributed int, not a bool.
4007         (_Jv_func): Declare differently for C.
4008
4009         * gnu/gcj/jni/natNativeThread.cc: New file.
4010         * gnu/gcj/jni/NativeThread.java: New file.
4011         * java/lang/Thread.java (data): Now a RawData.
4012         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4013         Declare.
4014         * Makefile.in: Rebuilt.
4015         * Makefile.am (java/lang/Thread.h): New target.
4016         (ordinary_java_source_files): Added NativeThread.java.
4017         (nat_source_files): Added natNativeThread.cc.
4018         * java/lang/natThread.cc: Include <jni.h>
4019         (struct natThread): Added `jni_env' field.
4020         (_Jv_GetCurrentJNIEnv): New function.
4021         (_Jv_SetCurrentJNIEnv): Likewise.
4022         (initialize_native): Initialize jni_env.
4023         Include RawData.h.
4024         * jni.cc (ThreadGroupClass): New define.
4025         (_Jv_JNI_InvokeFunctions): New structure.
4026         (JNI_GetCreatedJavaVMs): New function.
4027         (the_vm): New global.
4028         (JNI_GetDefaultJavaVMInitArgs): New function.
4029         Include NativeThread.h.
4030         (NativeThreadClass): New define.
4031         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4032         (_Jv_JNI_DestroyJavaVM): New function.
4033         (_Jv_JNI_AttachCurrentThread): New function.
4034         (_Jv_JNI_DetachCurrentThread): New function.
4035         (_Jv_JNI_GetEnv): New function.
4036         (JNI_CreateJavaVM): New function.
4037         (_Jv_JNI_GetJavaVM): New function.
4038         (_Jv_JNIFunctions): Added entry for GetJavaVM.
4039         * include/jni.h (JavaVMAttachArgs): New structure.
4040         (JNI_EDETACHED): New define.
4041         (JNI_EVERSION): Likewise.
4042         (JavaVM): Define properly.
4043         (struct JNIInvokeInterface): New structure.
4044         (class _Jv_JavaVM): New class.
4045         (JNI_OnLoad, JNI_OnUnload): Declare.
4046         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4047         JNI_GetCreatedJavaVMs): Declare.
4048         (JavaVMInitArgs): New typedef.
4049         (JavaVMOption): Likewise.
4050         (JNI_ERR): New define.
4051         (JNI_OK): Likewise.
4052
4053 2000-02-10  Andrew Haley  <aph@cygnus.com>
4054
4055         * interpret.cc: Don't include fdlibm.h.
4056         Replace #if with #ifdef throughout.
4057         Declare extern __ieee754_fmod.
4058         (continue1): Remove op_getfield, op_getstatic, op_putfield,
4059         op_putstatic insns.
4060         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4061         Search class hierarchy for superclass vtable.
4062
4063         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4064         off the end of a pointer list.
4065
4066         * java/lang/natThread.cc (stop): Don't abort, throw an exception
4067         instead.
4068         (suspend): Ditto.
4069         
4070 2000-02-09  Tom Tromey  <tromey@cygnus.com>
4071
4072         * java/lang/natRuntime.cc (_load): Call add_library.
4073         (loadLibraryInternal): Likewise.
4074
4075         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4076         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
4077         (Output_iconv::finalize): Likewise.
4078
4079 2000-02-08  Tom Tromey  <tromey@cygnus.com>
4080
4081         * java/util/Properties.java (setProperty): New method.
4082         (store): New method.
4083
4084 2000-02-07  Tom Tromey  <tromey@cygnus.com>
4085
4086         * java/lang/Runtime.java (_load): Declare.
4087         (load, loadLibrary): Wrote in terms of _load.
4088         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4089         library.
4090         (loadLibrary): Likewise.
4091         Include <jni.h>.
4092         (_load): New method.
4093         (loadLibrary, load): Removed.
4094
4095         * jni.cc (ThrowableClass): New define.
4096         (_Jv_JNI_Throw): Check argument.
4097         (_Jv_JNI_ThrowNew): Likewise.
4098         (wrap_value): Don't wrap object if it is NULL.
4099         (_Jv_JNI_DefineClass): Use wrap_value.
4100         (_Jv_JNI_FindClass): Likewise.
4101         (_Jv_JNI_GetSuperclass): Likewise.
4102         (_Jv_JNI_ExceptionOccurred): Likewise.
4103         (_Jv_JNI_AllocObject): Likewise.
4104         (_Jv_JNI_GetObjectClass): Likewise.
4105         (_Jv_JNI_NewString): Likewise.
4106         (_Jv_JNI_NewStringUTF): Likewise.
4107         (_Jv_JNI_NewObjectArray): Likewise.
4108         (_Jv_JNI_GetObjectArrayElement): Likewise.
4109         (_Jv_JNI_NewPrimitiveArray): Likewise.
4110         (_Jv_JNI_ToReflectedField): Likewise.
4111         (_Jv_JNI_ToReflectedMethod): Likewise.
4112         (_Jv_JNI_AllocObject): Check argument.
4113         (_Jv_JNI_NewObjectV): Likewise.
4114         (_Jv_JNI_NewObject): Likewise.
4115         (_Jv_JNI_NewObjectA): Likewise.
4116         (_Jv_JNI_GetObjectClass): Likewise.
4117         (_Jv_JNI_GetField): Likewise.
4118         (_Jv_JNI_SetField): Likewise.
4119
4120         * interpret.cc (PUSHL): Don't use expression statement.
4121         (PUSHD): Likewise.
4122         (LOADL): Likewise.
4123         (STOREL): Likewise.
4124
4125         * jni.cc (add_char): Conditional on INTERPRETER.
4126         (mangled_name): Likewise.
4127         (call): Likewise.
4128         * include/java-interp.h (class _Jv_MethodBase): Conditional on
4129         INTERPRETER.
4130         (class _Jv_JNIMethod): Likewise.
4131
4132 2000-02-04  Warren Levy  <warrenl@cygnus.com>
4133
4134         * Makefile.am: Added MPN.java and BigInteger.java.
4135         * Makefile.in: Rebuilt.
4136         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
4137         <per@bothner.com>.
4138         * java/math/BigInteger.java: New file.  Based primarily on
4139         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4140
4141 2000-02-04  Tom Tromey  <tromey@cygnus.com>
4142
4143         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4144         pointers.
4145         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
4146         if the method is native.
4147         * resolve.cc (ncode): Don't handle native methods.
4148         (_Jv_JNIMethod::ncode): New method.
4149         (_Jv_PrepareClass): Handle native methods.
4150         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4151         Include AbstractMethodError.h.
4152         (add_char): New function.
4153         (mangled_name): Likewise.
4154         * include/java-interp.h (class _Jv_JNIMethod): New class.
4155         (class _Jv_MethodBase): New class.
4156         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4157         (_Jv_InterpClass): Changed `interpreted_methods' field to type
4158         `_Jv_MethodBase'.
4159
4160         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4161         * java/lang/natRuntime.cc (libraries_size, libraries_count,
4162         libraries): New globals.
4163         (add_library): New function.
4164         (_Jv_FindSymbolInExecutable): New function.
4165
4166         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4167         Now static.
4168
4169 2000-02-04  Andrew Haley  <aph@cygnus.com>
4170
4171         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4172         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4173         * java/lang/natThrowable.cc (printRawStackTrace): Rename
4174         printStackTrace to printRawStackTrace.
4175
4176 2000-02-03  Tom Tromey  <tromey@cygnus.com>
4177
4178         * java/util/Calendar.java (toString): New method.
4179         * java/util/SimpleTimeZone.java (clone): New method.
4180         (toString): New method.
4181         * java/util/TimeZone.java (clone): New method.
4182         * java/text/SimpleDateFormat.java (clone): New method.
4183         * java/text/NumberFormat.java (clone): New method.
4184         (equals): New method.
4185         * java/text/Format.java (clone): New method.
4186         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4187         constructor.
4188         (clone): New method.
4189         * java/text/DateFormat.java (clone): New method.
4190         * java/text/Collator.java (clone): New method.
4191
4192 2000-02-03  Tom Tromey  <tromey@cygnus.com>
4193
4194         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4195         method.
4196
4197 2000-02-01  Tom Tromey  <tromey@cygnus.com>
4198
4199         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4200         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4201         constructing the closure if the function is native.
4202         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
4203         a template function, #if'd out, or static.
4204         Include <java-interp.h>.
4205
4206         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4207
4208         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4209
4210         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4211         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4212         `locals == NULL'.
4213         (wrap_value): New function.
4214         (_Jv_JNI_CallAnyMethodV): Use it.
4215         (_Jv_JNI_CallAnyMethodA): Likewise.
4216         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4217         (_Jv_JNI_GetStaticField): Likewise.
4218
4219         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4220         (_Jv_JNI_GetStaticField): Likewise.
4221
4222 2000-01-31  Tom Tromey  <tromey@cygnus.com>
4223
4224         * prims.cc (_Jv_MallocUnchecked): New function.
4225         (main_init): Call _Jv_JNI_Init.
4226         * include/jvm.h (_Jv_MallocUnchecked): Declare.
4227         (_Jv_JNI_Init): Declare.
4228         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4229         <string.h>.
4230         (_Jv_JNI_NewGlobalRef): New function.
4231         (_Jv_JNI_DeleteGlobalRef): New function.
4232         (_Jv_JNI_DeleteLocalRef): New function.
4233         (_Jv_JNI_conversion_call): Initialize and clear local reference
4234         frame.
4235         (_Jv_JNI_NewLocalRef): New function.
4236         (struct _Jv_JNI_LocalFrame): New structure.
4237         (_Jv_JNI_PushLocalFrame): New function.
4238         (_Jv_JNI_EnsureLocalCapacity): New function.
4239         (FRAME_SIZE): New define.
4240         (_Jv_JNI_GetStringChars): Mark string, not characters.
4241         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
4242         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
4243         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
4244         elements.
4245         (_Jv_JNI_DefineClass): Make return value a local ref.
4246         (_Jv_JNI_FindClass): Likewise.
4247         (_Jv_JNI_GetSuperclass): Likewise.
4248         (_Jv_JNI_ExceptionOccurred): Likewise.
4249         (_Jv_JNI_AllocObject): Likewise.
4250         (_Jv_JNI_GetObjectClass): Likewise.
4251         (_Jv_JNI_CallAnyMethodV): Likewise.
4252         (_Jv_JNI_NewString): Likewise.
4253         (_Jv_JNI_NewStringUTF): Likewise.
4254         (_Jv_JNI_NewObjectArray): Likewise.
4255         (_Jv_JNI_GetObjectArrayElement): Likewise.
4256         (_Jv_JNI_ToReflectedField): Likewise.
4257         (_Jv_JNI_ToReflectedMethod): Likewise.
4258         (_Jv_JNIFunctions): Updated table for new functions.
4259         (_Jv_JNI_Init): New function.
4260         (mark_for_gc): Wrote.
4261         (unmark_for_gc): Wrote.
4262         * include/jni.h (struct JNINativeInterface): Removed name from
4263         PopLocalFrame parameter.
4264         (class _Jv_JNIEnv): Added `locals' field.
4265
4266 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
4267
4268         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
4269         (write): Ditto.
4270
4271 2000-01-30  Tom Tromey  <tromey@cygnus.com>
4272
4273         * include/config.h.in: Rebuilt.
4274         * acconfig.h (HAVE_ICONV): Define.
4275         * configure: Rebuilt.
4276         * configure.in: Check for `iconv' function.
4277         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
4278         no specific encoder exists.
4279         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
4280         no specific encoder exists.
4281         * Makefile.in: Rebuilt.
4282         * Makefile.am (convert_source_files): Mention Input_iconv.java and
4283         Output_iconv.java.
4284         (nat_source_files): Added natIconv.cc.
4285         * gnu/gcj/convert/natIconv.cc: New file.
4286         * gnu/gcj/convert/Input_iconv.java: New file.
4287         * gnu/gcj/convert/Output_iconv.java: New file.
4288
4289 2000-01-28  Tom Tromey  <tromey@cygnus.com>
4290
4291         * Makefile.in: Rebuilt.
4292         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
4293
4294 2000-01-26  Tom Tromey  <tromey@cygnus.com>
4295
4296         * gcj/method.h (JvNumMethods): Moved from Class.h.
4297         (JvGetFirstMethod): Likewise.
4298         * java/lang/Class.h (Object): Updated decl of
4299         _Jv_JNI_ToReflectedField.
4300         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
4301         * Makefile.in: Rebuilt.
4302         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
4303         argument of _Jv_JNI_ToReflectedField.
4304         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
4305         as a friend.
4306         (java/lang/reflect/Method.h): Likewise.
4307         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
4308         __GCJ_JNI_IMPL__.
4309         (jweak): New typedef.
4310         (struct JNINativeInterface): Correctly declare remaining entries.
4311         * jni.cc: Include Class.h, ClassLoader.h.
4312         (_Jv_JNI_FindClass): New function.
4313         (_Jv_JNI_DefineClass): New function.
4314         (_Jv_JNI_conversion_call): New function.
4315         (_Jv_JNI_FindClass): Use current class loader to find class.
4316         (_Jv_JNI_ExceptionCheck): New function.
4317         (_Jv_JNI_FromReflectedField): Now static.
4318         (MethodClass): New define.
4319         (_Jv_JNI_FromReflectedMethod): New function.
4320         (_Jv_JNI_ToReflectedMethod): Likewise.
4321         Include Method.h.
4322         (_Jv_JNI_IsAssignableFrom): Renamed.
4323         (_Jv_JNI_GetStringRegion): New function.
4324         Include StringIndexOutOfBoundsException.h.
4325         (_Jv_JNI_GetStringUTFRegion): New function.
4326         (_Jv_JNIFunctions): Updated for new functions.
4327         (_Jv_JNI_GetPrimitiveArrayCritical): New function
4328         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
4329         (_Jv_JNI_GetStringCritical): New function.
4330         (_Jv_JNI_ReleaseStringCritical): Likewise.
4331         (get_throwable): Removed.
4332         (GCJ_JV_JNIENV_FRIEND): Removed.
4333         (__GCJ_JNI_IMPL__): Define.
4334         Include method.h.
4335
4336         * resolve.cc (get_ffi_type_from_signature): Handle case where
4337         boolean is an int.
4338
4339 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
4340
4341         * interpret.cc (run): Don't call println.
4342         Don't include PrintStream.h.
4343
4344         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
4345         nameIndex.  Use "jint" as type for boffset.
4346         * java/lang/Class.h (struct _Jv_Method): Made accflags a
4347         _Jv_ushort.
4348         (Class): Likewise.  Also changed type of method_count,
4349         vtable_method_count, size_in_bytes, field_count,
4350         static_field_count, interface_count.
4351         * gcj/array.h (__JArray): Made `length' a const jsize, not an
4352         int.
4353
4354 2000-01-21  Tom Tromey  <tromey@cygnus.com>
4355
4356         * java/lang/reflect/natConstructor.cc (newInstance): Use
4357         _Jv_CallAnyMethodA.
4358         * include/jvm.h: Declare _Jv_CallAnyMethodA.
4359         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
4360         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
4361         Include <jni.h>.
4362         (COPY): Removed.
4363         (invoke): Use _Jv_CallAnyMethodA.
4364         (VAL): Redefined.
4365         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
4366         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
4367         functions.
4368         (struct _Jv_Method): Added getNextMethod method.
4369         (JvNumMethods): New function.
4370         (JvGetFirstMethod): Likewise.
4371         * gcj/field.h (JvGetFirstStaticField): New function.
4372         (JvNumStaticFields): Likewise.
4373         (getNextField): Renamed from getNextInstanceField.
4374         (struct _Jv_Field): New method getClass.
4375         * jni.cc: Wrote many new functions.
4376         * include/jni.h (JNI_TRUE): Define.
4377         (JNI_FALSE): Likewise.
4378         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
4379         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
4380         jcharArray, jfloatArray, jdoubleArray): New typedefs.
4381         (jfieldID, jmethodID): Likewise.
4382         (JNI_COMMIT, JNI_ABORT): New defines.
4383         (JNINativeMethod): New struct.
4384         (struct JNINativeInterface): Correctly declared more entries.
4385         (class _Jv_JNIEnv): Added `ex' member.
4386         (JNI_VERSION_1_1): New define.
4387         (JNI_VERSION_1_2): Likewise.
4388
4389         * boehm.cc (_Jv_MarkObj): Use getNextField, not
4390         getNextInstanceField.
4391
4392 2000-01-20  Tom Tromey  <tromey@cygnus.com>
4393
4394         * resolve.cc (StringClass): Removed.
4395         * defineclass.cc (StringClass): Removed.
4396
4397 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
4398
4399         * NEWS: updated.
4400
4401 2000-01-19  Tom Tromey  <tromey@cygnus.com>
4402
4403         * interpret.cc (PC_REGISTER_ASM): Removed.
4404
4405         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
4406         From Bryce McKinlay.
4407
4408         * All files: Updated copyright to reflect Cygnus purchase.
4409
4410 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
4411
4412         * configure: Rebuilt.
4413         * configure.in: Recognize --disable-interpreter.
4414
4415 2000-01-18  Andrew Haley  <aph@cygnus.com>
4416
4417         * name-finder.cc (lookup): Check for dladdr function.
4418         acconfig.h (HAVE_DLADDR): Add.
4419         configure.in: Check for HAVE_DLADDR
4420         configure: Rebuilt.
4421         include/config.h.in:  Rebuilt.
4422
4423 2000-01-17  Andrew Haley  <aph@cygnus.com>
4424
4425         * prims.cc (_Jv_RunMain): Set the name of this executable.
4426
4427 2000-01-17  Tom Tromey  <tromey@cygnus.com>
4428
4429         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
4430         when backtrace can't be computed.
4431
4432         * configure: Rebuilt.
4433         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
4434
4435         * java/lang/Runtime.java (loadLibraryInternal): Declare.
4436         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
4437         (_Jv_FindClassInCache): Likewise.
4438         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
4439         (findSystemClass): Try to load class from compiled module.
4440         Include Runtime.h.
4441         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
4442         (loadLibrary): Likewise.
4443         (lt_preloaded_symbols): Define.
4444         (loadLibraryInternal): New method.
4445         * include/config.h.in: Rebuilt.
4446         * acconfig.h (USE_LTDL): Added.
4447         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
4448         (INCLUDES): Added $(INCLTDL).
4449         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
4450         (libgcj_la_LIBADD): Likewise.
4451         * aclocal.m4, configure: Rebuilt.
4452         * configure.in: Added libltdl support.
4453
4454 2000-01-15  Tom Tromey  <tromey@cygnus.com>
4455
4456         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
4457
4458 2000-01-14  Andrew Haley  <aph@cygnus.com>
4459
4460         * java/lang/natThrowable.cc: New file.
4461
4462         * java/lang/Throwable.java (fillInStackTrace): Make native.
4463         (printStackTrace): Call native method to do this.
4464         (Throwable): Call fillInStackTrace.
4465         (stackTrace): New variable.
4466         
4467         * include/jvm.h: Add _Jv_ThisExecutable functions.
4468         
4469         * prims.cc: (_Jv_execName): New variable.
4470         (catch_segv): Call fillInStackTrace.
4471         (catch_fpe): Ditto.
4472         (_Jv_ThisExecutable): New functions.
4473         (JvRunMain): Set the name of this executable.
4474
4475         * Makefile.am: Add java/lang/natThrowable.cc.
4476         Add name-finder.cc.
4477         * Makefile.in: Rebuilt.
4478
4479         * acconfig.h: Add HAVE_PROC_SELF_EXE.
4480
4481         * configure.in: Force link with __frame_state_for in
4482         FORCELIBGCCSPEC.  Add new checks for backtrace.
4483         * include/config.h.in: Rebuilt.
4484
4485         * name-finder.cc: New file.
4486         * include/name-finder.h: New file.
4487
4488 2000-01-16  Anthony Green  <green@cygnus.com>
4489
4490         * java/lang/StringBuffer.java (StringBuffer): Don't special case
4491         null argument.
4492
4493 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
4494
4495         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
4496
4497 2000-01-13  Tom Tromey  <tromey@cygnus.com>
4498
4499         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
4500         not system loader, as initiating loader.
4501
4502 2000-01-11  Tom Tromey  <tromey@cygnus.com>
4503
4504         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
4505         HP/UX.  From David Scott Urban.
4506
4507 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
4508
4509         * java/lang/natMath.cc (pow): Cast args to `double', not
4510         `jdouble'.
4511         (atan2): Likewise.
4512         (IEEEremainder): Likewise.
4513         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
4514         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
4515
4516 2000-01-09  Anthony Green  <green@cygnus.com>
4517
4518         * java/lang/natString.cc (init): Test for overflow condition
4519         during out of bounds check.
4520         (getChars): Throw StringIndexOutOfBoundsException, not
4521         ArrayIndexOutOfBoundsException.
4522         (getBytes): Ditto.
4523         (regionMatches): Obey case option during string comparison.
4524
4525         * configure.host (ligcj_interpreter): New variable.  Enable
4526         interpreter by default on IA-32.
4527         * configure.in:  Examine libgcj_interpreter.
4528         * configure: Rebuilt.
4529
4530 2000-01-07  Tom Tromey  <tromey@cygnus.com>
4531
4532         * mauve-libgcj: Don't disable ClassTest.
4533
4534         * java/lang/natClass.cc (getClasses): Wrote.
4535
4536 2000-01-06  Tom Tromey  <tromey@cygnus.com>
4537
4538         * java/lang/natClass.cc (_getConstructors): Correctly check
4539         whether method name is the init name.
4540         (getMethod): Look at accflags on method in `klass', not `this'.
4541
4542 2000-01-05  Tom Tromey  <tromey@cygnus.com>
4543
4544         * java/lang/natClass.cc (getMethod): Compute offset relative to
4545         `klass's methods table, not `this's table.
4546
4547         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
4548         In unwrapping/widening case, check whether `k' is null, not
4549         whether it is primitive.  Initialize `num' from `argelts', not
4550         `paramelts'.  Correct create and pass arguments to ffi_call.
4551         Don't let presence of `this' argument affect index used to look in
4552         argument arrays.
4553         (COPY): Set appropriate element in `values' vector.
4554
4555         * java/lang/natClass.cc: Include <gcj/method.h>.
4556
4557         * java/lang/Class.h (_getMethods): Correctly declare as private,
4558         not public.
4559
4560         * java/lang/Class.h (_getMethods): Declare.
4561         * java/lang/Class.java (_getMethods): Declare.
4562         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
4563         (getDeclaredClasses): Always return empty array.
4564         (_getMethods): New method.
4565         (getMethods): Wrote.
4566         (getDeclaredMethod): Return `rmethod'.
4567         (finit_name): New global.
4568         (getDeclaredMethods): Check for finit_name.
4569         (_getMethods): Likewise.
4570         (getMethod): Only return public methods.
4571
4572         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
4573         jboolean and select correct ffi type on that basis.
4574         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
4575         Constructor call always has `void' return type.
4576
4577 2000-01-04  Tom Tromey  <tromey@cygnus.com>
4578
4579         * java/lang/Class.h (getSignature): Updated.
4580         * java/lang/Class.java (getSignature): Updated.
4581         * java/lang/natClass.cc (getSignature): Added `is_constructor'
4582         argument.
4583         (getConstructor): Ensure constructor is public.
4584         (_getConstructors): Check for public-ness of constructor when
4585         `declared' is false, not when it is true.
4586
4587 2000-01-04  Warren Levy  <warrenl@cygnus.com>
4588
4589         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
4590         comment.
4591         (receive): Set the sender's address in the DatagramPacket.
4592
4593 2000-01-04  Tom Tromey  <tromey@cygnus.com>
4594
4595         * java/lang/reflect/natConstructor.cc (newInstance): Pass
4596         declaring class as return_type argument to
4597         _Jv_CallNonvirtualMethodA.
4598         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
4599         constructor case, create object and use it as `this' argument.
4600         * java/lang/Class.h (_getConstructors): Declare.
4601         (_getFields): Declare.
4602         * java/lang/Class.java (getConstructors): Wrote.
4603         (_getConstructors): New native method.
4604         (getDeclaredConstructors): Wrote.
4605         (_getFields): Declare new native method.
4606         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
4607         incorrect comment.
4608         (getMethod): Work correctly when class is primitive.
4609         (getDeclaredMethods): Likewise.  Compute offset using `method',
4610         not `mptr'.
4611         (getDeclaredMethod): Likewise.
4612         (getConstructor): Wrote.
4613         (ConstructorClass): New define.
4614         (getDeclaredConstructor): Wrote.
4615         (_getConstructors): New method.
4616         (_getFields): New method.
4617         (getFields): Wrote.
4618
4619         * Makefile.in: Rebuilt.
4620         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
4621
4622         * prims.cc: Remove `#pragma implementation'.
4623         * gcj/array.h: Remove `#pragma interface'.
4624
4625         * prims.cc (_Jv_equaln): New function.
4626         * java/lang/Class.java (getSignature): Declare.
4627         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
4628         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
4629         resolve.cc.
4630         (getSignature): New method.
4631         (getDeclaredMethod): Wrote.
4632         (getMethod): Wrote.
4633         Include StringBuffer.h.
4634         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
4635         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
4636         a friend.
4637         (getSignature): Declare.
4638         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
4639         (_Jv_equaln): Declare.
4640         (_Jv_CallNonvirtualMethodA): Declare.
4641         * Makefile.in: Rebuilt.
4642         * Makefile.am (nat_source_files): Added natConstructor.cc.
4643         (java/lang/reflect/Constructor.h): New target.
4644         * java/lang/reflect/natConstructor.cc: New file.
4645         * java/lang/reflect/Constructor.java (newInstance): Now native.
4646         (declaringClass): Renamed from decl_class.
4647         (offset): Renamed from index.
4648         (getType): New native method.
4649         (getModifiers): Now native.
4650         (getParameterTypes): Call getType if required.
4651         (hashCode): Include hash code from declaring class.
4652         (modifiers): Removed.
4653         (toString): Call getType if required.
4654         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
4655         * java/lang/reflect/natMethod.cc (hack_call): New method.
4656         Removed `#if 0' around FFI code.
4657         Include <gnu/gcj/RawData.h>.
4658         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
4659         IllegalArgumentException when argument object and class disagree.
4660         (_Jv_GetTypesFromSignature): New function.
4661         (getType): Use it.
4662         (ObjectClass): New define.
4663         (_Jv_CallNonvirtualMethodA): New function.
4664         * java/lang/reflect/Method.java (hack_trampoline): New method.
4665         (hack_call): New native method.