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