OSDN Git Service

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