OSDN Git Service

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