OSDN Git Service

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