OSDN Git Service

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