OSDN Git Service

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