OSDN Git Service

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