OSDN Git Service

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