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