OSDN Git Service

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