OSDN Git Service

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