OSDN Git Service

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