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