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