OSDN Git Service

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