OSDN Git Service

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