OSDN Git Service

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