OSDN Git Service

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