OSDN Git Service

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