OSDN Git Service

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