OSDN Git Service

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