OSDN Git Service

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