OSDN Git Service

* java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2001-03-21  Tom Tromey  <tromey@redhat.com>
2
3         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
4         read/write case.  Fixes PR libgcj/2338.
5
6 2001-03-20  Warren Levy  <warrenl@redhat.com>
7
8         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
9         and corrected SimpleTimeZone's for the timezones hash table.
10
11 2001-03-19  Per Bothner  <per@bothner.com>
12
13         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
14         "canonicalize" "../../xxx" to "/xxx".
15
16 2001-03-19  Mark Wielaard <mark@klomp.org>
17
18         * java/util/ArrayList.java: Remove RCS keywords from comments
19         * java/util/BasicMapEntry.java: idem
20         * java/util/Dictionary.java: idem
21         * java/util/HashSet.java: idem
22
23         * java/util/EventObject.java: reindent
24         * java/util/Properties.java: idem
25         * java/util/SortedMap.java: idem
26
27         * java/util/Enumeration.java: Merge with Classpath
28         * java/util/EventListener.java: idem
29         * java/util/Observable.java: idem
30         * java/util/Observer.java: idem
31         * java/util/Stack.java: idem
32
33 2001-03-17  Tom Tromey  <tromey@redhat.com>
34
35         * java/lang/natString.cc (rehash): Don't bother with memset;
36         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
37         Use UNMASK_PTR.
38         (UNMASK_PTR): New macro.
39         (intern): Unmask pointer before returning it.  Register finalizer
40         for the string.
41         (unintern): Handle case where 
42         (MASK_PTR): New macro.
43         (PTR_MAKSED): Likewise.
44         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
45
46 2001-03-01  Andrew Haley  <aph@redhat.com>
47
48         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
49         stackTrace buffer to a correctly aligned pointer array.
50  
51 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
52
53         * java/lang/Runtime.java (_exit): Declare new package-private native.
54         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
55         without a security manager check.
56         (exit): Call _exit after security check.
57         * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
58         "naturally".
59         * java/lang/System.java (setSecurityManager): If a security manager
60         is already in place, call checkPermission. 
61         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
62         throws an exception, try to deal with it gracefully.
63         * java/lang/ExceptionInInitializerError.java (printStackTrace):
64         Only try to print the subordinate stack trace if "exception" is set.
65         Print our class name first.
66
67 2001-03-08  Tom Tromey  <tromey@redhat.com>
68
69         * java/io/ObjectStreamClass.java (setUID): Don't write interface
70         info for array classes.
71         Fixes PR libgcj/1971.
72
73 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
74
75         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
76         Iterator.hasNext().
77
78 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
79
80         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
81         instead of the new JDK1.2 API.  This is simpler and makes 
82         back-porting the classes to JDK1.1 trivial.
83         (readObject): likewise.
84         
85 2001-03-01  Per Bothner  <per@bothner.com>
86
87         Changes merged from Kawa's gnu.math.
88         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
89         (rshift(int[],int[],int,int):  Removed - not needed.
90         (gcd):  Use rshift0 rather than rshift.
91         * java/math/BigInteger.java (setShiftRight):  Likewise.
92         (divide):  Simplify by using rshift0.
93         (divide):  Zero-extend results if high-order bit set.
94
95 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
96
97         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
98         linking.
99
100 2001-02-23  Per Bothner  <per@bothner.com>
101
102         Change to sometimes include class name in ClassFormatError message.
103         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
104         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
105         boolean instead of throwing ClassFormatError on failure.
106         (throw_class_format_error):  Change static function to method.
107         (_Jv_ClassReader):  New inline methods verify_identifier,
108         two overloads of verify_classname, verify_field_signature, and
109         verify_method_signature
110         * include/java-interp.h:  Update declarations to return bool.
111         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
112         ClassFormatError since _Jv_VerifyClassName now returns bool.
113
114 2001-02-23  Per Bothner  <per@bothner.com>
115
116         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
117         c++filt to select java-style output.
118
119 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
120
121         Fix for PR java/2040:
122         * java/util/HashMap.java (HashMap): Don't throw exception for 
123         loadFactor > 1. Add exception messages.
124         * java/util/Hashtable.java (Hashtable): Likewise.
125
126 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
127
128         Disable libgcjx by default.
129         * configure.in: Add support for --enable-java-awt configure option. 
130         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
131         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
132         * Makefile.in: Rebuilt.
133         * configure: Rebuilt.
134
135 2001-02-20  Tom Tromey  <tromey@redhat.com>
136
137         * java/io/PipedWriter.java (flush): Throw exception if stream
138         closed.
139         * java/io/OutputStreamWriter.java (write): Throw exception if
140         stream closed.
141         (writeChars): Don't throw exception if stream closed.
142         * java/io/CharArrayWriter.java (closed): New field.
143         (close): Set it.
144         (flush): Throw exception if stream closed.
145         (reset): Synchronize on correct lock.  Allow stream to be
146         reopened.
147         (toCharArray, toString, writeTo): Synchronize.
148         (write): Throwe exception if stream closed.
149         * java/io/BufferedWriter.java (close): Clear `buffer'.
150         (flush): Throw IOException if stream is closed.
151         (write): Likewise.
152
153 2001-02-16  Tom Tromey  <tromey@cygnus.com>
154
155         * java/lang/ThreadGroup.java (activeCount): Only include threads
156         which are alive.
157         (enumerate): Likewise.
158
159 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
160
161         * java/lang/Integer.java (getInteger): Return default argument if
162         property is not set. Don't call decode with null argument.
163         * java/lang/Long.java (getLong): Likewise.
164
165         * java/io/CharArrayReader.java (CharArrayReader): Throw 
166         IllegalArgumentException if constructor arguments are illegal.
167         (ready): Return false if no more characters can be read.
168         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
169
170 2001-02-17  Mark Wielaard <mark@klomp.org>
171
172         * java/util/TimerTask.java: New version from Classpath.
173
174 2001-02-17  Mark Wielaard <mark@klomp.org>
175
176         Remerge with Classpath
177         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
178         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
179         (readByte): Use convertToByte().
180         (readChar): Use convertToChar().
181         (readInt): Use convertToInt().
182         (readLong): Use convertToLong().
183         (readShort): Use convertToShort().
184         (readUnsignedByte): Use convertToUnsignedByte().
185         (readUnsignedShort): Use convertToUnsignedShort().
186         (readUTF): Use convertToUTF().
187
188         (convertToBoolean): Resurrected.
189         (convertToByte): Ditto.
190         (convertToChar): Ditto.
191         (convertToInt): Ditto.
192         (convertToLong): Ditto.
193         (convertToShort): Ditto.
194         (convertToUnsignedByte): Ditto.
195         (convertToUnsignedShort): Ditto.
196         (convertToUTF): Ditto.
197
198 2001-02-17  Mark Wielaard <mark@klomp.org>
199
200         * HACKING: new file
201
202 2001-02-17  Mark Wielaard <mark@klomp.org>
203
204         * java/io/DataInputStream.java: update copyright notice
205         * java/io/PrintWriter.java: idem
206         * java/io/Reader.java: idem
207         * java/io/StreamTokenizer.java: idem
208         * java/io/StringReader.java: idem
209         * java/lang/reflect/ReflectPermission.java: idem
210
211 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
212
213         * java/util/TreeSet.java (clone): Made subclass safe, use 
214         super.clone(), not new.
215         * java/util/TreeMap.java (clone): Likewise.
216         
217         * java/util/TreeMap.java (nil): Made non-final.
218         (clone): Create new nil node for copy.
219         
220         * java/util/HashSet.java (clone): Made subclass safe, use 
221         super.clone(), not new.
222
223 2001-02-14  Andrew Haley  <aph@redhat.com>
224
225         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
226         set the handler.
227
228 2001-02-15  Anthony Green  <green@redhat.com>
229
230         * defineclass.cc: Don't include alloca.h.
231         (prepare_pool_entry): Convert alloca to __builtin_alloca.
232         * interpret.cc (run_normal): Ditto.
233         (continue1): Ditto.
234         * java/lang/natDouble.cc (parseDouble): Ditto.
235
236 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
237
238         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not 
239         Object.clone().
240         * java/util/Collections.java (ReverseComparator): New static class.
241         (reverseOrder): Return static instance of ReverseComparator.
242         
243         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
244         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call 
245         Rectangle.clone(), not Object.clone().
246
247         * java/util/HashSet.java (clone): Remove try/catch.
248         
249         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
250         * java/util/Collection.java: Likewise.
251         * java/util/Comparator.java: Likewise.
252         * java/util/Dictionary.java: Likewise.
253         * java/util/Iterator.java: Likewise.
254         * java/util/ListIterator.java: Likewise.
255         * java/util/Map.java: Likewise.
256         * java/util/Set.java: Likewise.
257
258 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
259
260         * java/util/TreeMap.java: New file.
261         * java/util/TreeSet.java: New file.
262         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
263         * Makefile.in: Rebuilt.
264         * java/util/HashSet.java (clone): Use constructor instead of calling
265         clone on itself.
266         * java/util/SortedSet.java: Sync with classpath.
267         * java/util/HashMap.java (hash): Use if statement instead of ternary,
268         for clarity.
269         
270         * java/lang/natClass.cc (getSignature): Don't try to dereference 
271         param_types if it is null. Instead, take this to mean "no parameters".
272         * java/lang/TreeMap.java (TreeIterator.next): Throw 
273         NoSuchElementException in preference to ConcurrentModificationException.
274         (TreeIterator.remove): Throw IllegalStateException in preference to 
275         ConcurrentModificationException.
276         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
277         throw a NoSuchElementException.
278         (SubMap.lastKey): Likewise.
279
280 2001-02-13  Tom Tromey  <tromey@redhat.com>
281
282         * java/io/PipedReader.java (ready): Throw IOException if pipe
283         closed.
284         * java/io/FilterReader.java (close): Don't clear `in'.
285         * java/io/CharArrayReader.java (mark): Throw IOException if stream
286         closed.
287         (read, ready, reset, skip): Added exception message.
288         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
289         Perform checkStatus check inside synchronized block.
290
291 2001-02-13  Tom Tromey  <tromey@redhat.com>
292
293         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
294
295 2001-02-13  Tom Tromey  <tromey@redhat.com>
296
297         Fix for PR libgcj/1351:
298         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
299         interrupted.
300         Include Thread.h and InterruptedIOException.h.
301
302 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
303
304         * java/io/BlockDataException.java: Removed.
305         * java/io/ObjectInputStream.java (readObject): Throw 
306         StreamCorruptedException, not BlockDataException.
307         * Makefile.am: Remove BlockDataException.
308         * Makefile.in: Rebuild.
309
310 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
311             Tom Tromey  <tromey@redhat.com>
312
313         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
314         null pointer check.
315
316 2001-02-09  Tom Tromey  <tromey@redhat.com>
317
318         * java/util/Timer.java: New version from Classpath.
319
320 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
321
322         * java/lang/Double.java (doubleToRawLongBits): Now native.
323         * java/lang/Float.java (floatToRawIntBits): Likewise.
324         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
325         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
326
327 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
328
329         * java/io/File.java (java.net): Imported.
330         (getAbsoluteFile): Added.
331         (getCanonicalPath): Likewise.
332         (toURL): Likewise.
333
334 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
335
336         * java/lang/Byte.java: Remove redundant instanceof and null checks.
337         * java/lang/Integer.java: Likewise.
338         * java/lang/Long.java: Likewise.
339         * java/lang/Short.java: Likewise.
340         * java/lang/Double.java: Likewise.
341         (doubleToRawLongBits): New method.
342         * java/lang/Float.java: As above.
343         (floatToRawIntBits): New method.
344
345         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw 
346         IOException if stream closed.
347
348 2001-02-08  Tom Tromey  <tromey@redhat.com>
349
350         * java/lang/Float.java (parseFloat): New method.
351
352 2001-02-08  Tom Tromey  <tromey@redhat.com>
353
354         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
355         * java/io/InputStreamReader.java (ready, read): Throw IOException
356         if stream has been closed.
357
358 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
359
360         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
361         Change sources.redhat.com and sourceware.cygnus.com references to
362         gcc.gnu.org.
363
364 2001-02-07  Tom Tromey  <tromey@redhat.com>
365
366         Fix for PR libgcj/1906:
367         * java/text/MessageFormat.java (setLocale): Use named class
368         literals.
369         (forName): Removed.
370         (format(Object,StringBuffer,FieldPosition)): Special case if
371         argument is an Object[].
372
373 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
374
375         * java/util/Arrays.java: Removed "cmp" methods.
376         (qsort): Don't use "cmp".
377         (med3): Likewise.
378
379 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
380
381         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
382         sort. Fix for PR java/1895.
383
384 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
385
386         * configure.host: Use sjlj-exceptions for Alpha.
387
388 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
389
390         * libgcj.spec.in: Don't force static libgcc into the executable.
391         * configure.in (FORCELIBGCCSPEC): Removed.
392         * configure: Rebuilt.
393
394 2001-01-31  Tom Tromey  <tromey@redhat.com>
395
396         * Makefile.in: Rebuilt.
397         * Makefile.am (LTCXXCOMPILE): New macro.
398
399 2001-01-26  Andrew Haley  <aph@redhat.com>
400
401         (INIT_FPE): Use a direct system call to set the handler.
402         
403 2001-01-27  Richard Henderson  <rth@redhat.com>
404
405         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
406
407 2001-01-27  Tom Tromey  <tromey@redhat.com>
408
409         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
410         native interface structure.
411
412 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
413
414         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
415         result unsigned.
416         (read (byte[], int, int)): Only call readNextBlock() if the block 
417         buffer would actually be overrun. Increment blockDataPosition.
418         (callReadMethod): Propagate exceptions from invocation target.
419         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate 
420         exceptions from invocation target.
421
422 2001-01-26  Tom Tromey  <tromey@redhat.com>
423
424         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
425         to internal representation.
426         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
427         _Jv_FindClassFromSignature.
428
429 2001-01-26  Warren Levy  <warrenl@redhat.com>
430
431         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
432         and timezone if they are available on the system.
433
434 2001-01-24  Tom Tromey  <tromey@redhat.com>
435
436         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
437
438 2001-01-24  Tom Tromey  <tromey@redhat.com>
439
440         * Makefile.in: Rebuilt.
441         * Makefile.am (c_source_files): Added sf_fabs.c.
442         * java/lang/sf_fabs.c: New file.
443
444 2001-01-19  Warren Levy  <warrenl@redhat.com>
445
446         * java/text/SimpleDateFormat.java (format): Compute hour for cases
447         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
448         correctly.  Adjust properly from 0-23 clock hour.
449
450 2001-01-17  Mark Wielaard  <mark@klomp.org>
451
452         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
453
454 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
455
456         * java/lang/Class.h (isInterface): Move implementation from 
457         natClass.cc. Declare inline.
458         (Class): Add default constructor.
459         * java/lang/Object.h: Update comments.
460         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
461         initialize superclass, saving a call if super is already initialized.
462
463 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
464
465         * prims.cc (init_prim_class): Deleted.
466         (DECLARE_PRIM_TYPE): Rewritten.
467         * java/lang/Class.h (stdio.h): Include removed.
468         (stddef.h): Included.
469         (java/lang/reflect/Modifier.h): Likewise.
470         (Class): Contructor now takes arguments, initializes fields.
471         (initializePrim): Prototype deleted.
472         * java/lang/natClass.cc (initializePrim): Deleted.
473
474 2001-01-16  Warren Levy  <warrenl@redhat.com>
475
476         * java/math/BigInteger.java: Update Copyright year.
477
478 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
479
480         * java/math/BigInteger.java (setShiftRight): Only do negative shift
481         if count != 0.
482
483 2001-01-14  Mark Wielaard  <mark@klomp.org>
484         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
485         (decode): Merge comments with Classpath, don't throw Exception
486
487 2001-01-12  Tom Tromey  <tromey@redhat.com>
488
489         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
490         Wrote.
491         (setCursor): Wrote.
492         Include Cursor.h.
493         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
494         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
495         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
496         * gnu/awt/gtk/GtkLabelPeer.java: New file.
497         * gnu/awt/gtk/GtkButtonPeer.java: New file.
498
499         * java/lang/natSystem.cc: Include locale.h if it exists.
500         * configure: Rebuilt.
501         * configure.in: Check for locale.h.
502
503 2001-01-11  Tom Tromey  <tromey@redhat.com>
504
505         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
506         (Cursor(int), getPredefinedCursor): Throw exception if argument
507         invalid.
508
509 2001-01-03  Tom Tromey  <tromey@redhat.com>
510
511         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
512         (getLocationOnScreen): Wrote.
513
514 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
515
516         * Makefile.am: Re-enable dependencies.
517         * Makefile.in: Rebuilt.
518
519 2001-01-10  Warren Levy  <warrenl@redhat.com>
520
521         * java/math/BigDecimal.java (divide): Fixed comment.
522
523 2001-01-10  Warren Levy  <warrenl@redhat.com>
524
525         Fix for PR libgcj/1596:
526         * java/math/BigDecimal.java (divide): Check newScale for validity.
527         Ensure that BigInteger.pow() is called with a non-negative value.
528         (setScale (int)): New public method.
529         (setScale (int,int)): New public method.
530
531 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
532
533         Fix for PR libgcj/1338:
534         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
535         commentChar.  Fixed typos in comments.
536
537 2001-01-08  Warren Levy  <warrenl@redhat.com>
538
539         Fix for PR libgcj/1411:
540         * Makefile.am: Removed java/util/natTimeZone.cc.
541         * Makefile.in: Rebuilt.
542         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
543         missing localized timezone names.
544         * java/lang/System.java (getDefaultTimeZoneId): New private method.
545         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
546         (init_properties): Set user.timezone property.
547         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
548         default timezone names; removed non-standard ones.  Use standard
549         ID names per JCL.
550         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
551         (UTC): Ditto.
552         * java/util/TimeZone.java: Add standard ID names per JCL; removed
553         non-standard ones.
554         (getDefaultTimeZoneId): Removed.
555         (zoneGMT): Removed.
556         * java/util/natTimeZone.cc: Removed.
557
558 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
559
560         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
561         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
562         (_Jv_GetArrayClass): New inline function.
563         (arrayclass): New field.
564         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
565         _Jv_GetArrayElementFromElementType. 
566         (_Jv_NewPrimArray): Ditto.
567         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
568         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
569         Set Modifier::ABSTRACT.
570         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
571         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void. 
572         Now synchronized. Array classes are now referenced from
573         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
574         Set array classes' accessibility flags correctly. Optimize so that
575         all array classes share the same IDT.
576         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
577         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
578         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
579         in superclasses from overwriting classes own fields.
580         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
581         Modifier::isAbstract().
582         (null_idt): New static field.
583         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
584         no interfaces.
585         (_Jv_IndexOf): Made inline.
586         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
587
588 2001-01-08  Tom Tromey  <tromey@redhat.com>
589
590         Fix for PR java/1586:
591         * Makefile.in: Rebuilt.
592         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
593
594 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
595
596         * Makefile.am: Use the new "-M -MF" option for generating dependencies
597         from the c++ compiler.
598         * Makefile.in: Rebuilt.
599
600 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
601
602         All files with updated copyright.
603         * prims.cc (class _Jv_PrimClass): Removed.
604         (init_prim_class): New function.
605         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
606         `_Jv_PrimClass' in primitive type declarations. Assign to the
607         value returned by `init_prim_class.'
608         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
609         primitive type declarations.
610         (JvPrimClass): Cast to `jclass' removed.
611         * java/lang/Class.h (Class): New constructor.
612         (Class): New copy constructor.
613         (initializePrim): New prototype.
614         (_Jv_PrimClass): Field removed.
615         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
616         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
617         (class java::lang::Object): `finalize' moved up front.
618         * java/lang/natClass.cc 
619         (isAssignableFrom): Turned outline.
620         (isInstance): Likewise.
621         (isInterface): Likewise, fixed indentation.
622         (initializePrim): New function.
623
624 2001-01-07  Anthony Green  <green@redhat.com>
625
626         * Makefile.am (texinfo): Add texinfo target for generating texinfo
627         documentation.
628         * Makefile.in: Rebuilt.
629
630         * scripts/TexinfoDoclet.java: New file.
631
632         * doc/java-applet.texi, doc/java-lang-reflect.texi,
633         doc/java-awt-color.texi, doc/java-lang.texi,
634         doc/java-awt-datatransfer.texi, doc/java-math.texi,
635         doc/java-awt-event.texi, doc/java-net.texi,
636         doc/java-awt-geom.texi, doc/java-security-spec.texi,
637         doc/java-awt-image.texi, doc/java-security.texi,
638         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
639         doc/java-text.texi, doc/java-beans-beancontext.texi,
640         doc/java-util-jar.texi, doc/java-beans.texi,
641         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
642         doc/java-lang-ref.texi: New files.
643
644 2001-01-07  Anthony Green  <green@redhat.com>
645
646         * java/net/URLConnection.java (setDoOutput): URLConnection's may
647         be used for both input and output, so don't clear doInput.
648
649         * java/lang/StringBuffer.java: Fix comments.
650
651 2001-01-06  Anthony Green  <green@redhat.com>
652
653         * java/beans/PropertyDescriptor.java: Fix comment.
654         * java/io/PushbackReader.java: Fix comment.
655         * java/io/ObjectStreamClass.java: Fix comment.
656         * java/io/DataInputStream.java: Fix comment.
657         * java/io/PipedInputStream.java: Fix comments.
658         * java/io/PipedReader.java: Fix comments.
659         * java/sql/DatabaseMetaData.java: Fix comments.
660
661 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
662
663         * java/io/PipedReader: Synchronize on "lock" instead of this.
664
665 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
666
667         * java/lang/Thread.java: Update comment.
668
669         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
670         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
671         * java/io/PipedReader: New implementation based on new 
672         PipedInputStream.
673         * java/io/PipedWriter: Updated to match new PipedReader.
674
675 2001-01-03  Tom Tromey  <tromey@redhat.com>
676
677         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
678         (getViewportSize): Insets include scrollbar size.
679         (doLayout): Finished.
680         (getScrollPosition): Wrote.
681         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
682
683 2001-01-02  Tom Tromey  <tromey@redhat.com>
684
685         * java/awt/ScrollPane.java: Wrote.
686         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
687         method.
688
689         * java/awt/Panel.java (Panel()): Fixed.
690
691         * java/awt/Component.java (isShowing): Return false if no peer
692         exists, and true if component is visible and no parent exists.
693         (getLocationOnScreen): Wrote.
694         (getPreferredSize): Removed FIXME comment.
695         (getMinimumSize): Likewise.
696         (getAlignmentX, getAlignmentY): Wrote.
697         (list): Wrote.
698         (requestFocus): Wrote.
699         (transferFocus): Wrote.
700         (findNextFocusComponent): New method.
701         (hasFocus()): Wrote.
702         (checkImage): Wrote.
703         (enableEvents): Call setEventMask on the peer.
704
705         * java/awt/Container.java (list): Use super.list() to print self.
706         (findNextFocusComponent): New method.
707         (setLayout): Call invalidate.
708         (findComponentAt): Wrote.
709
710 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
711
712         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
713         the correct versions of various linuxthreads functions get linked.
714         * Makefile.in: Rebuilt.
715         * java/lang/natThread.cc (finalize_native): New static function. Call
716         _Jv_ThreadDestroyData.
717         (initialize_native): Register finalizer for "data".
718         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
719         (_Jv_ThreadDestroyData): New prototype.
720         * include/win32-threads.h: Ditto.
721         * include/no-threads.h: Ditto.
722         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
723         (_Jv_ThreadDestroyData): New function. Free native thread "data" and 
724         move mutex and condition variable destroy code from:
725         (really_start): ...here.
726         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
727         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
728         (_Jv_ThreadDestroyData): Implemented.
729         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
730         (_Jv_AllocArray): Ditto.        
731         
732 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
733
734         * java/sql/DriverManager.java (getConnection): Don't set user/password
735         properties if null.
736
737 2000-12-27  Warren Levy  <warrenl@redhat.com>
738
739         Fix for PR libgcj/1358:
740         * java/lang/System.java: Update Copyright date properly.
741         * java/util/Calendar.java: Fix typo in comment.
742         (set): Set 24-hour clock hour instead of 12-hour clock hour.
743         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
744         initialize times.  Spec says to set H:M:S values to zero only if
745         a date is given.
746         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
747         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
748         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
749         timezones and GMT offsets, being careful to account for units of
750         milliseconds vs. seconds.
751
752 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
753
754         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
755         not be assigned to Object.
756
757         Fix for PR libgcj/1516:
758         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
759         Add boolean entry.
760         (can_widen): Declared inline. Remove redundant checks for void 
761         arguments and char->short conversion. Add special case for boolean 
762         conversions.
763         (ffi_type): Declared inline.
764         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
765
766 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
767
768         * java/sql/SQLWarning.java: Fixed typo in comment.
769
770 2000-12-26  Tom Tromey  <tromey@redhat.com>
771
772         * java/awt/MenuItem.java (paramString): Now protected.
773
774         * java/awt/MenuShortcut.java: Implements Serializable.
775
776         * java/awt/MenuBar.java: Rewrote from scratch.
777
778         * java/awt/MenuComponent.java (removeNotify): Wrote.
779         Implements Serializable.
780
781         * java/awt/GridBagConstraints.java (GridBagConstraints): New
782         constructor.
783
784         * java/awt/CheckboxMenuItem.java: Wrote.
785
786 2000-12-25  Tom Tromey  <tromey@redhat.com>
787
788         * java/awt/MenuContainer.java: Fixed typo.
789
790         * Makefile.in: Rebuilt.
791         * Makefile.am (awt_java_source_files): Added SystemColor.java.
792         * java/awt/SystemColor.java: New file.
793
794         * java/awt/Color.java (rgba): Now package-private.
795
796         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
797
798         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
799         getComponent.
800
801         * java/awt/MenuItem.java (addNotify): New method.
802         (MenuItem(String,MenuShortcut)): New constructor.
803         (setLabel): Notify peer of change.
804         (setEnabled): Likewise.
805
806         * java/awt/GridLayout.java (toString): New method.
807
808         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
809         (FlowLayout): Check for LEADING and TRAILING.
810         (setAlignment): Likewise.
811         (layoutContainer): Handle component orientation.
812
813         * java/awt/Component.java (orientatin): New field.
814         (setComponentOrientation): Wrote.
815         (getComponentOrientation): Wrote.
816
817         * java/awt/Event.java (Event): Implements Serializable.
818         (consumed): New field for serialization.
819         * java/awt/Dimension.java (Dimension): Implements Serializable.
820         * java/awt/Cursor.java (Cursor): Implements Serializable.
821         * java/awt/Container.java (Container): No longer abstract.
822
823         * java/awt/Choice.java: Wrote.
824         * java/awt/Checkbox.java: Wrote.
825         * java/awt/ItemSelectable.java: Documented.
826         * java/awt/CheckboxGroup.java: Wrote.
827
828         * java/awt/CardLayout.java (layoutContainer): Directly use fields
829         in other classes.
830         (getSize): Likewise.
831
832 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
833
834         * java/io/FileDescriptor.java: Initialize fd to -1.
835         Remove default constructor.
836
837 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
838
839         * java/lang/mprec.h: Change C9X reference to refer to C99.
840
841 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
842
843         * java/lang/Throwable.java (trace_enabled): New static field.
844         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
845         trace_enabled not set.
846         * prims.cc (main_init): Turn off trace_enabled while creating
847         default exception objects.
848
849 2000-12-21  Tom Tromey  <tromey@redhat.com>
850
851         * java/beans/PropertyChangeListener.java: Extends EventListener.
852         * java/beans/VetoableChangeListener.java: Extends EventListener.
853
854         * java/util/zip/Deflater.java (update, init): Now private.
855
856 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
857
858         * java/util/BasicMapEntry.java: Re-added.
859         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
860         (putAll): Test for BasicMapEntry.
861         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
862         (putAll): Test for BasicMapEntry.
863         Change references from `HashMap.Entry' to `Entry' in various places.
864         * Makefile.am: Add BasicMapEntry.java.
865         * Makefile.in: Rebuilt.
866
867 2000-12-18  Warren Levy  <warrenl@redhat.com>
868
869         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
870         need to set timezone to a valid non-null value.  Partial fix for
871         PR 331.
872
873 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
874
875         * java/awt/Window.java (addNotify): Remove peer casting hack now that 
876         gcj/312 is fixed.
877         * java/awt/Button.java (addNotify): Likewise.
878         * java/awt/Label.java (addNotify): Likewise.
879         * java/awt/Panel.java (addNotify): Likewise.
880         * java/awt/Scrollbar.java (addNotify): Likewise.
881         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
882         Remove redundant null checks.
883
884 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
885
886         * COPYING: Update to current
887         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
888         to 19yy as example year in copyright notice).
889
890 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
891
892         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as 
893         end-of-stream if avail_in is 0.
894
895 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
896
897         * java/util/ArrayList.java (data): Declare transient.
898         (serialPersistantFields): Removed.
899         (readObject): Use defaultReadObject(), not readFields().
900         (writeObject): Use defaultWriteObject(), not writeFields().
901
902 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
903
904         * java/util/Hashtable.java (put): Remove `last' variable.
905         Link new entry to head of list.
906         * java/util/HashMap.java (put): Ditto.
907
908 2000-12-15  Tom Tromey  <tromey@redhat.com>
909
910         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
911         loader to Class.forName.
912
913 2000-12-14  Tom Tromey  <tromey@redhat.com>
914
915         * java/util/ResourceBundle.java
916         (getBundle(String,Locale,ClassLoader)): New method.
917         (trySomeGetBundle): Added `loader' argument.
918         (partialGetBundle): Likewise.
919
920         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
921         maximumFractionDigits, maximumIntegerDigits,
922         minimumFractionDigits, minimumIntegerDigits): Now
923         package-private.
924
925         * java/lang/Thread.java (checkAccess): Now final.
926
927         * java/lang/RuntimePermission.java: Class now final.
928
929         * java/io/StringWriter.java (StringWriter(int)): Now public.
930
931         * java/io/SerializablePermission.java (legal_names): Now private.
932
933         * java/lang/Character.java: Updated UnicodeBlock constants.
934         * scripts/blocks.pl: Special case private use and surrogate
935         areas.  Updated URL.
936
937 2000-12-12  Tom Tromey  <tromey@redhat.com>
938
939         * Makefile.in: Rebuilt.
940         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
941         option.
942         (GCJCOMPILE): Use it.
943         (JAVAC): Likewise.
944
945 2000-12-11  Tom Tromey  <tromey@redhat.com>
946
947         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
948         New static final fields.
949
950         * scripts/classes.pl (scan): Skip lines with leading `*'.
951         Fix for PR libgcj/378.
952
953 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
954
955         * configure.in: Remove check for -fuse-divide-subroutine.
956         * configure: Rebuilt.
957         
958         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
959
960         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
961         
962 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
963
964         * Makefile.am: Add HashSet.java and java/lang/ref classes.
965         Remove BasicMapEntry.java and Bucket.java.
966         * Makefile.in: Rebuilt.
967         * java/util/HashMap.java: Rewritten.
968         * java/util/HashSet.java: Imported from classpath.
969         * java/util/WeakHashMap.java: Imported from classpath.
970         * java/util/Hashtable.java: Rewritten based on new HashMap code.
971         * java/util/Bucket.java: Deleted.
972         * java/util/BasicMapEntry.java: Deleted.
973         * java/util/Collections.java (search): Use a for-loop, not iterator
974         hasNext().
975         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out 
976         of elements in source.
977         (max): Use a for-loop.
978         (min): Ditto.
979         (reverse): Keep track of positions instead of using Iterator's 
980         nextIndex() and previousIndex().
981         (shuffle(List)): Initialize defaultRandom if required using 
982         double-check thread safety idiom. Call two-argument shuffle method 
983         using defaultRandom.
984         (defaultRandom): New field.
985         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
986         using previousIndex() and nextIndex().
987         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
988         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
989         * java/util/AbstractMap.java (toString): Use StringBuffer.
990         * java/lang/ref/PhantomReference.java: Imported from classpath.
991         * java/lang/ref/SoftReference.java: Ditto.
992         * java/lang/ref/Reference.java: Ditto.
993         * java/lang/ref/WeakReference.java: Ditto.
994         * java/lang/ref/ReferenceQueue.java: Ditto.
995
996 2000-12-10  Richard Henderson <rth@redhat.com>
997         
998         * configure.host: Recognize alpha*-*, not alphaev6-*.
999
1000 2000-12-09  Anthony Green  <green@redhat.com>
1001
1002         * configure.host: Enable interpreter for Alpha.
1003
1004 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1005
1006         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1007         (ZIP): Points at fastjar instead of zip.
1008         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1009         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1010         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1011         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1012         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1013         ($(x_java_source_files:.java=.class):): Likewise.
1014         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1015         fastar's flags.
1016         (CLEANFILES): libgcj.jar replaces libgcj.zip.
1017         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1018         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1019         java/lang/String.h:, java/lang/reflect/Constructor.h:,
1020         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1021         gnu/gcj/runtime/VMClassLoader.h:,
1022         java/io/ObjectInputStream$$GetField.h:, 
1023         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1024         (Makefile.in): Rebuilt.
1025         
1026 2000-12-08  Tom Tromey  <tromey@redhat.com>
1027
1028         From Phil Edwards:
1029         * configure: Rebuilt.
1030         * configure.in: Use echo, not `:', to create .d files.
1031
1032 2000-12-08  Warren Levy  <warrenl@redhat.com>
1033
1034         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1035         NullPointerException so proper check of offset can be done.
1036
1037 2000-12-08  Warren Levy  <warrenl@redhat.com>
1038
1039         * java/io/FileInputStream.java (close): Check if the fd is valid.
1040         * java/io/RandomAccessFile.java (close): Ditto.
1041         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1042         * java/net/PlainSocketImpl.java (close): Ditto.
1043
1044 2000-12-06  Tom Tromey  <tromey@redhat.com>
1045
1046         * java/awt/GridBagConstraints.java: Filled in values for static
1047         final fields.
1048
1049         * java/util/BitSet.java: Updated copyright notice.
1050
1051         * Makefile.in: Rebuilt.
1052         * Makefile.am (awt_java_source_files): Added new file.
1053         * java/awt/GridBagConstraints.java: New file.
1054
1055 2000-12-05  Tom Tromey  <tromey@redhat.com>
1056
1057         * java/text/Collator.java (decomposeCharacter, decmp, strength):
1058         Now package-private, not protected.
1059         * java/text/DateFormatSymbols.java (equals): Now private.
1060         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1061         * java/util/BitSet.java: Class no longer final.
1062
1063 2000-12-04  Warren Levy  <warrenl@redhat.com>
1064
1065         * java/util/TimeZone.java (getAvailableIDs): Activated commented
1066         out code dependent on compiler and library changes.
1067
1068 2000-12-04  Warren Levy  <warrenl@redhat.com>
1069
1070         * java/io/FilePermission.java: Made class final per spec.
1071         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1072         method name to match spec (fixed typo).
1073         * java/util/LinkedList.java: Implements List.
1074
1075 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
1076
1077         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From 
1078         Edgar Villanueva <edgarvil@home.com>.
1079
1080 2000-12-03  Tom Tromey  <tromey@redhat.com>
1081
1082         * java/awt/geom/Point2D.java: Added protected constructor.
1083         (equals): New method.
1084         (Float.setLocation(float,float)): New method.
1085         * java/awt/geom/Dimension2D.java: Added protected constructor.
1086         * java/awt/geom/AffineTransform.java: Made all constants public.
1087         (concatenate): Fixed typo in name.
1088         * java/awt/event/WindowAdapter.java: Class now abstract.
1089         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1090         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1091         AWTEvent.
1092
1093         * java/awt/AWTError.java: Extend Error, not
1094         IllegalStateException.
1095
1096         * Makefile.in: Rebuilt.
1097         * Makefile.am (awt_java_source_files): Added new file.
1098         * java/awt/geom/RoundRectangle2D.java: New file.
1099
1100         * Makefile.in: Rebuilt.
1101         * Makefile.am (awt_java_source_files): Added new file.
1102         * java/awt/FlowLayout.java: New file.
1103
1104         * Makefile.in: Rebuilt.
1105         * Makefile.am (awt_java_source_files): Added new file.
1106         * java/awt/GridLayout.java: New file.
1107
1108 2000-12-02  Tom Tromey  <tromey@redhat.com>
1109
1110         * Makefile.in: Rebuilt.
1111         * Makefile.am (awt_java_source_files): Added new files.
1112         * java/awt/CardLayout.java: New file.
1113         * java/awt/AWTPermission.java: New file.
1114
1115 2000-12-01  Tom Tromey  <tromey@redhat.com>
1116
1117         * java/util/Vector.java (insertElementAt): Unconditionally
1118         increment elementCount.
1119         (removeRange): Clear unused slots in vector.
1120
1121 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
1122
1123         * java/lang/natMath.cc: Declare fabsf() function.
1124         * java/lang/mprec.h: Don't include math.h.
1125         * java/lang/dtoa.c: Include string.h.
1126         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1127         compiler warning.
1128         
1129         From Adam Welc <welc@cs.purdue.edu>:
1130         * java/util/LinkedList.java (removeFirst): Update `first' field.
1131         Handle the last == first case.
1132         (removeLast): Update `last' field. Handle the last == first case.
1133
1134 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1135
1136         * Makefile.am: Added entries for new java.sql modules.
1137         * Makefile.in: Rebuilt.
1138
1139 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1140
1141         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1142         that aren't quite 1.2 compatible yet.
1143
1144 2000-11-30  Warren Levy  <warrenl@cygnus.com>
1145
1146         * java/sql/Array.java: New file from classpath.
1147         * java/sql/BatchUpdateException.java: Ditto.
1148         * java/sql/Blob.java: Ditto.
1149         * java/sql/Clob.java: Ditto.
1150         * java/sql/Ref.java: Ditto.
1151         * java/sql/SQLData.java: Ditto.
1152         * java/sql/SQLInput.java: Ditto.
1153         * java/sql/SQLOutput.java: Ditto.
1154         * java/sql/Struct.java: Ditto.
1155         * java/sql/CallableStatement.java: Merged file from claspath.
1156         * java/sql/Connection.java: Ditto.
1157         * java/sql/DataTruncation.java: Ditto.
1158         * java/sql/DatabaseMetaData.java: Ditto.
1159         * java/sql/DriverManager.java: Ditto.
1160         * java/sql/PreparedStatement.java: Ditto.
1161         * java/sql/ResultSet.java: Ditto.
1162         * java/sql/ResultSetMetaData.java: Ditto.
1163         * java/sql/SQLException.java: Ditto.
1164         * java/sql/SQLWarning.java: Ditto.
1165         * java/sql/Statement.java: Ditto.
1166         * java/sql/Types.java: Ditto.
1167
1168 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
1169
1170         * java/lang/natSystem.cc (init_properties): Set user.language and
1171         user.region.
1172         * configure.in: Check for setlocale.
1173         * configure: Rebuilt.
1174         * include/config.h.in: Rebuilt.
1175         
1176         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1177         the infate() call didn't deliver any output. Throw a ZipException if
1178         the needsDictionary() call returns true.
1179         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1180         * java/io/InputStreamReader: Use the default buffer size for the
1181         contained BufferedInputStream.
1182
1183 2000-11-28  Warren Levy  <warrenl@cygnus.com>
1184
1185         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1186         more time zone entries.
1187         * java/text/SimpleDateFormat.java (format): Added case for
1188         TIMEZONE_FIELD.
1189
1190 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
1191
1192         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1193         directly rather than read() in all cases. Make primitive read 
1194         implementations more efficient, as defined in JDK online docs.
1195         (skipBytes): Behave like the JDK's implementation.
1196         * java/io/BufferedReader.java: Merge classpath docs. Check for a 
1197         closed stream with checkStatus() whenever an IOException can be 
1198         thrown.
1199         (checkStatus): New private method.
1200
1201 2000-11-27  Warren Levy  <warrenl@cygnus.com>
1202
1203         * Makefile.am: Added natTimeZone.cc.
1204         * Makefile.in: Rebuilt.
1205         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1206         * java/text/DateFormatSymbols.java (ampms): Made package private.
1207         (eras): Made package private.
1208         (months): Made package private.
1209         (shortMonths): Made package private.
1210         (shortWeekdays): Made package private.
1211         (weekdays): Made package private.
1212         (formatPrefixes): New private field.
1213         (localPatternCharsDefault): Made private.
1214         (dateFormats): New package private field.
1215         (timeFormats): New package private field.
1216         (formatsForKey): New private method.
1217         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1218         (DateFormatSymbols(DateFormatSymbols)): Ditto.
1219         * java/text/SimpleDateFormat.java: Merged with Classpath.
1220         * java/util/TimeZone.java: Merged with Classpath.
1221         * java/util/natTimeZone.cc: New file.
1222
1223 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
1224
1225         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1226         (addElement): Don't increment elementCount twice. Doh.
1227         * java/util/ArrayList.java (add): Only call ensureCapacity if the
1228         array needs to be expanded.
1229         (addAll): Ditto.
1230         * java/util/Collections.java (UnmodifiableCollection): Implement
1231         toString().
1232         (UnmodifiableList): Throw UnsupportedOperationException from 
1233         modification methods. Set `l' from the one-parameter constructor.
1234         (UnmodifiableMap): Implement toString().
1235         (SynchronizedCollection): Ditto.
1236         (SynchronizedList): Set `l' from the one-parameter constructor.
1237         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1238         (SynchronizedMap): Implement toString().
1239
1240 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
1241
1242         * javax/naming/NameParser.java,
1243         javax/naming/directory/AttributeInUseException.java,
1244         javax/naming/directory/AttributeModificationException.java,
1245         javax/naming/directory/InvalidAttributeIdentifierException.java,
1246         javax/naming/directory/InvalidAttributesException.java,
1247         javax/naming/directory/InvalidAttributeValueException.java,
1248         javax/naming/directory/InvalidSearchControlsException.java,
1249         javax/naming/directory/InvalidSearchFilterException.java,
1250         javax/naming/directory/NoSuchAttributeException.java,
1251         javax/naming/directory/SchemaViolationException.java: New files.
1252         
1253 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
1254
1255         * javax/naming/InitialContext.java (rebind): Implement.
1256         (unbind): Implement.
1257         (rename): Implement.
1258         (list): Implement.
1259         (listBindings): Implement.
1260         (destroySubcontext): Implement.
1261         (createSubcontext): Implement.
1262         (lookupLink): Implement.
1263         (getNameParser): Implement.
1264         (composeName): Implement.
1265         (addToEnvironment): Implement.
1266
1267 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
1268
1269         * javax/naming/AuthenticationException.java,
1270         javax/naming/AuthenticationNotSupportedException.java,
1271         javax/naming/CannotProceedException.java,
1272         javax/naming/CommunicationException.java,
1273         javax/naming/ConfigurationException.java,
1274         javax/naming/ContextNotEmptyException.java,
1275         javax/naming/InsufficientResourcesException.java,
1276         javax/naming/InterruptedNamingException.java,
1277         javax/naming/InvalidNameException.java,
1278         javax/naming/LimitExceededException.java,
1279         javax/naming/LinkException.java,
1280         javax/naming/LinkLoopException.java,
1281         javax/naming/MalformedLinkException.java,
1282         javax/naming/NameAlreadyBoundException.java,
1283         javax/naming/NameNotFoundException.java,
1284         javax/naming/NamingSecurityException.java,
1285         javax/naming/NoPermissionException.java,
1286         javax/naming/NotContextException.java,
1287         javax/naming/PartialResultException.java,
1288         javax/naming/ReferralException.java,
1289         javax/naming/ServiceUnavailableException.java,
1290         javax/naming/SizeLimitExceededException.java,
1291         javax/naming/TimeLimitExceededException.java: New files.
1292
1293         * javax/naming/Name.java (clone): New method.
1294         (compareTo): New method.
1295         (isEmpty): New method.
1296         (getAll): New method.
1297         (getPrefix): New method.
1298         (getSuffix): New method.
1299         (startsWith): New method.
1300         (endsWith): New method.
1301         (addAll): New method.
1302         (addAll): New method.
1303         (add): New method.
1304         (add): New method.
1305         (remove): New method.
1306
1307         * javax/naming/Context.java (lookup): New method.
1308         (rebind): New method.
1309         (unbind): New method.
1310         (rename): New method.
1311         (list): New method.
1312         (listBindings): New method.
1313         (destroySubcontext): New method.
1314         (createSubcontext): New method.
1315         (lookupLink): New method.
1316         (getNameParser): New method.
1317         (composeName): New method.
1318         (addToEnvironment): New method.
1319         (removeFromEnvironment): New method.
1320         (getEnvironment): New method.
1321         (close): New method.
1322         (getNameInNamespace): New method.
1323
1324         * javax/naming/InitialContext.java (lookup): New method.
1325         (rebind): New method.
1326         (unbind): New method.
1327         (rename): New method.
1328         (list): New method.
1329         (listBindings): New method.
1330         (destroySubcontext): New method.
1331         (createSubcontext): New method.
1332         (lookupLink): New method.
1333         (getNameParser): New method.
1334         (composeName): New method.
1335         (addToEnvironment): New method.
1336         (removeFromEnvironment): New method.
1337         (getEnvironment): New method.
1338         (close): New method.
1339         (getNameInNamespace): New method.
1340
1341 2000-11-26  Tom Tromey  <tromey@cygnus.com>
1342
1343         * Makefile.in: Rebuilt.
1344         * Makefile.am (core_java_source_files): Added
1345         RuntimePermission.java.
1346         * java/lang/RuntimePermission.java: Imported from Classpath.
1347         * java/lang/Thread.java (getContextClassLoader): Now
1348         synchronized.  Added security code.
1349         (setContextClassLoader): Likewise.
1350
1351         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1352         length field of array.
1353         (_Jv_NewPrimArray): Likewise.
1354         * gcj/array.h (__JArray): `length' field now const.  Added
1355         constructor.
1356
1357 2000-11-26  Anthony Green  <green@redhat.com>
1358
1359         * javax/naming/spi/NamingManager.java,
1360         javax/naming/spi/ObjectFactory.java,
1361         javax/naming/spi/InitialContextFactory.java,
1362         javax/naming/spi/InitialContextFactoryBuilder.java,
1363         javax/naming/RefAddr.java, javax/naming/Reference.java,
1364         javax/naming/NamingException.java, javax/naming/Context.java,
1365         javax/naming/Referenceable.java,
1366         javax/naming/directory/InitialDirContext.java,
1367         javax/naming/directory/DirContext.java,
1368         javax/naming/directory/Attributes.java,
1369         javax/naming/directory/Attribute.java,
1370         javax/naming/StringRefAddr.java,
1371         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1372         javax/naming/InitialContext.java,
1373         javax/naming/NoInitialContextException.java: New files.
1374         
1375 2000-11-25  Anthony Green  <green@redhat.com>
1376
1377         * prims.cc (_Jv_NewObjectArray): Undo placement change.
1378         (_Jv_NewPrimArray): Likewise.
1379         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
1380         (class JArray): Removed constructor.
1381
1382         * java/lang/Thread.java (context_class_loader): New private data.
1383         (getContextClassLoader): New method.
1384         (setContextClassLoader): New method.
1385         (Thread): Initialize context_class_loader.
1386
1387         * java/net/URLClassLoader.java: Import java.util.Enumeration.
1388         (getResource): Rename to findResource.
1389         (findResource): New method.  Used to be getResource.
1390         (getResourceAsStream): Deleted.
1391         (jarFileize): Extracted logic from URLClassLoader constructor into
1392         this new private method.
1393         (addURL): New protected method.
1394         (URLClassLoader): Call jarFileize.  Use addElement instead of
1395         insertElementAt.
1396         (findResources): New method.
1397         
1398         * java/lang/ClassLoader.java: Import java.util.Enumeration.
1399         (getResource): Implement correct logic.
1400         (findResource): New method.
1401         (getResources): New method.
1402         (findClass): Create a ClassNotFoundException with the name of the
1403         class rather than nothing at all.
1404         (defineClass) Only throw ClassFormatError.
1405         
1406         * java/lang/Class.java (forName): New method.
1407         * java/lang/Class.h (forName): New method.
1408         * java/lang/natClass.cc (forName): New method.
1409
1410 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1411
1412         * java/lang/System.java (setProperties): Only call init_properties()
1413         if properties is null.  
1414         (getProperties): Ditto.
1415         (getProperty): Ditto.
1416         (setProperty): Call init_properties if properties are null.
1417         (prop_init): Remove field.
1418         * java/lang/natSystem.cc (init_properties): Synchronize the entire
1419         method. Check for null properties after synchronizing instead of 
1420         prop_init flag. Set the properties field last for thread safety.
1421
1422         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1423         test for gcj.dumpobjects property and enable object stream dumping
1424         if it is set.
1425         (dumpElement): No longer native.
1426         (dumpElementln): Ditto.
1427         (setDump): Do not define.
1428         * java/io/natObjectInputStream.cc (dumpElement): Removed.
1429         (dumpElementln): Removed.
1430         (setDump): Removed.
1431
1432 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1433
1434         * configure: Rebuilt.
1435         * Makefile.in: Rebuilt.
1436         * Makefile.am (built_java_source_files): Add Configuration.java.
1437         * configure.in: Add Configuration.java to CONFIG_FILES. Set 
1438         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. 
1439         Create `gnu' directory in the build tree.
1440         * gnu/classpath/Configuration.java.in: New file.
1441
1442 2000-11-24  Tom Tromey  <tromey@cygnus.com>
1443
1444         * prims.cc (_Jv_NewObjectArray): Use placement new to create
1445         array.
1446         (_Jv_NewPrimArray): Likewise.
1447         Include <new>.
1448         * gcj/array.h (__JArray): `length' field now const.  Added
1449         constructor.
1450         (class JArray): Added constructor.
1451
1452 2000-11-23  Mark Wielaard  <mark@klomp.org>
1453
1454         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1455         lookup.
1456
1457 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
1458
1459         * java/util/Vector.java: Improve exception messages.
1460         (Vector): Check initialCapacity for IllegalArgumentException.
1461         (tromToSize): Don't check for elementCount == elementData.length
1462         case.
1463         (toArray): Don't try to set null marker if target array is the same
1464         length as the vector.
1465
1466 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
1467
1468         * Makefile.in: Rebuilt.
1469         * Makefile.am (core_java_source_files): Added Collections.java.
1470         * java/util/List.java: Merged from classpath.
1471         * java/util/Vector.java: Ditto. 
1472         * java/util/Collections.java: From classpath.
1473         * java/util/ArrayList.java (addAll(Collection)): Call 
1474         addAll(int,Collection) instead of duplicating code.
1475         (indexOf): Clean up int initialization.
1476         (clear): Set cleared array entries to null, to allow garbage 
1477         collection.
1478         * java/util/List.java: Minor formatting fixes.  
1479         * java/util/SimpleTimeZone.java: ditto.
1480         
1481 2000-11-18  Tom Tromey  <tromey@cygnus.com>
1482
1483         * Makefile.in: Rebuilt.
1484         * Makefile.am (core_java_source_files): Added new files.
1485         * java/lang/reflect/ReflectPermission.java: New class.
1486         * java/io/FileFilter.java: From Classpath
1487         * java/io/FilePermission.java: From Classpath.
1488
1489 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1490
1491         * java/lang/reflect/AccessibleObject.java (isAccessible,
1492         setAccessible): Now public.
1493
1494         * java/lang/natString.cc: Include Locale.h.
1495         (toUpperCase): Added `locale' argument.  Handle locale
1496         sensitivity.
1497         (toLowerCase): Added `locale' argument.  Handle locale
1498         sensitivity.
1499         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1500         CAPITAL_I): New defines.
1501         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1502         final.
1503         Import Locale.
1504         (toUpperCase, toLowerCase): New methods.  Variants which accept
1505         locale now native.
1506
1507         * java/lang/ExceptionInInitializerError.java (printStackTrace):
1508         New methods.
1509
1510         * java/util/PropertyPermission.java: Re-merged from Classpath.
1511
1512         * java/text/RuleBasedCollator.java (getCollationElementIterator):
1513         New method.
1514         * java/text/StringCharacterIterator.java: Reindented.
1515         (setText): New method.
1516
1517 2000-11-17  Mark Wielaard  <mark@klomp.org>
1518
1519         Merge with Classpath (changes by Bryce McKinlay)
1520         * java/util/jar/*.java: Reformat all to unofficial standard coding
1521         style. No changes of substance.
1522
1523 2000-11-17  Mark Wielaard  <mark@klomp.org>
1524
1525         * java/util/zip/*.java: Javadoc updates.
1526
1527 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1528
1529         * java/text/CollationKey.java: Implement Comparable.
1530         (compareTo(Object)): New method.
1531         * java/text/Collator.java (compare(Object,Object)): New method.
1532         Implement Comparator.
1533
1534         * java/util/zip/InflaterInputStream.java (available): New method.
1535         (close): New method.
1536         (read, available, skip, fill): Throw exception if stream closed.
1537         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1538         getNextEntry): Throw exception if closed.
1539
1540 2000-11-16  Tom Tromey  <tromey@cygnus.com>
1541
1542         * java/io/PushbackReader.java: Merged with Classpath.
1543         * java/util/Arrays.java: Updated from Classpath.
1544
1545         * scripts/blocks.pl: New file.
1546         * java/lang/Character.java (Subset): New class.
1547         (UnicodeBlock): New class.
1548
1549         * java/lang/Math.java (toDegrees, toRadians): New methods.
1550
1551         * java/lang/Float.java: Implement Comparable.
1552         (compareTo): New methods.
1553         * java/lang/Double.java: Implement Comparable.
1554         (compareTo): New methods.
1555
1556 2000-11-16  Warren Levy  <warrenl@cygnus.com>
1557
1558         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1559         transient.
1560         (listeners): Made transient.
1561         (source): Renamed from 'bean'.
1562         (children): New field for serialization.
1563         (propertyChangeSupportSerializedDataVersion): Ditto.
1564         (serialVersionUID): Ditto.
1565         (writeObject): New serialization method.
1566         (readObject): New serialization method.
1567         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1568         transient.
1569         (listeners): Made transient.
1570         (source): Renamed from 'bean'.
1571         (children): New field for serialization.
1572         (vetoableChangeSupportSerializedDataVersion): Ditto.
1573         (serialVersionUID): Ditto.
1574         (writeObject): New serialization method.
1575         (readObject): New serialization method.
1576         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1577         to allow constructor to have a return type (i.e. the class that the
1578         constructor constructs).
1579
1580 2000-11-14  Tom Tromey  <tromey@cygnus.com>
1581
1582         * Makefile.in: Rebuilt.
1583         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1584         and -k not given.
1585
1586 2000-11-02  Warren Levy  <warrenl@cygnus.com>
1587
1588         * java/io/ObjectInputStream.java (readObject): Added code to
1589         conditionally dump out the serialized data.
1590         Handle ENDBLOCKDATA case a bit more gracefully since the current
1591         behavior doesn't seem to work as expected.
1592         (readStreamHeader): Added code for serialized data dumper.
1593         (readNextBlock): Ditto.
1594         (readFields): Ditto.
1595         (dump): New private static field for turning on/off dumper.
1596         (setDump): New native method.
1597         (dumpElement): New native method.
1598         (dumpElementln): New native method.
1599         * java/io/natObjectInputStream.cc (setDump): New method.
1600         (dumpElement): New method.
1601         (dumpElementln): New method.
1602
1603 2000-11-02  Warren Levy  <warrenl@cygnus.com>
1604
1605         * java/net/InetAddress.java (addr): Renamed from 'address'.
1606         (address): New field to match Serialized Form doc.
1607         (hostName): Renamed from 'hostname' to match Serialized Form doc.
1608         (family): New serialization field.
1609         (serialVersionUID): New field.
1610         (readObject): New method.
1611         (writeObject): New method.
1612         (getFamily): New native method.
1613         (InetAddress): Set family.
1614         * java/net/natInetAddress.cc (getFamily): New method.
1615         (addr): Renamed from 'address'.
1616         (hostName): Renamed from 'hostname' to match Serialized Form doc.
1617         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1618         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1619
1620 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
1621
1622         * java/util/AbstractList.java (SubList): Make it a top-level private
1623         class.
1624         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1625         (add): Ditto.
1626         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1627         * Makefile.in: Rebuilt.
1628
1629 2000-11-02  Tom Tromey  <tromey@cygnus.com>
1630
1631         * Makefile.in: Rebuilt.
1632         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1633         link.
1634
1635 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
1636
1637         * java/util/AbstractList.java (remove): Comment out modCount increment
1638         to work around compiler bug.
1639         (add): Ditto.
1640
1641 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
1642
1643         * java/util/AbstractList.java: Throw messages with 
1644         IndexOutOfBoundsExceptions.
1645          (listIterator()): Call listIterator(0).
1646         (size): New field. Initialize to size().
1647         (hasNext): Test position against size, not size().
1648         (remove): Increment knownMod by one instead of resetting it from 
1649         modCount.
1650         (add): Ditto.
1651         (SubList.upMod): Removed.
1652         (SubList.set): Don't call upMod() or update knownMod.
1653         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1654         (SubList.remove): Ditto.
1655         (SubList.addAll): Don't call backingList.size(). Increment size from 
1656         c.size().
1657         (SubList.iterator): New method. Call listIterator(0).
1658         (SubList.listIterator): New method. Restore code to return an anonymous
1659         listIterator implementation (with some changes).
1660         * java/util/AbstractSequentialList.java: Throw messages with 
1661         IndexOutOfBoundsExceptions.
1662         (addAll): Add a specnote.
1663         * java/util/ArrayList.java (removeRange): Get the math right.
1664         (addAll): Increment modCount _before_ creating iterator.
1665         * java/util/LinkedList.java: Rewritten, mostly.
1666
1667 2000-11-01  Tom Tromey  <tromey@cygnus.com>
1668
1669         * scripts/encodings.pl: Added `ASCII' alias.
1670         * Makefile.in: Rebuilt.
1671         * Makefile.am (convert_source_files): Added new files.
1672         * gnu/gcj/convert/Input_ASCII.java: New file.
1673         * gnu/gcj/convert/Output_ASCII.java: New file.
1674         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1675         out-of-range characters.
1676         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1677         (read): Swap bytes if required.  Treat `count' as character count,
1678         not byte count.
1679         (write): Likewise.  Also, handle case where iconv fails on a given
1680         character.
1681         (init): Put encoding into exception.
1682         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1683         (static): Call iconv_init.  Rebuilt alias list.
1684         (iconv_init): New private method.
1685
1686 2000-11-01  Tom Tromey  <tromey@cygnus.com>
1687
1688         * Makefile.in: Rebuilt.
1689         * Makefile.am (install-exec-hook): Only make a single symlink, and
1690         remove the destination before making the link.
1691         * configure: Rebuilt.
1692         * configure.in: Call AC_PROG_LN_S.
1693
1694 2000-10-31  Warren Levy  <warrenl@cygnus.com>
1695
1696         * jni.cc: Added include of java/lang/ThreadGroup.h.
1697         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1698         per change of 2000-10-05.
1699
1700 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
1701
1702         * java/util/BitSet.java: Updated @specnote.
1703
1704         * java/io/Reader.java: Merge docs from classpath.
1705         (skip): Synchronize on `lock'.
1706         * java/io/FileReader.java: Import correct implementation from 
1707         classpath.
1708         * java/io/StringReader.java: Merge docs from classpath.
1709         (ready): Throw IOException if stream is closed.
1710
1711 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
1712
1713         * java/util/AbstractCollection.java (addAll): Use size() instead of
1714         hasNext() in iterator loop.
1715         (clear): Ditto.
1716         (contains): Ditto. Simplify loop.
1717         (containsAll): Ditto.
1718         (remove): Ditto.
1719         (removeAll): Ditto.
1720         (retainAll): Ditto.
1721         (toArray): Ditto.
1722         (toString): Ditto. Use string concatenation operators, not
1723         StringBuffer.
1724         * java/util/AbstractList.java (addAll): Use size() instead of
1725         hasNext() in iterator loop.
1726         (equals): Ditto.
1727         (hashCode): Ditto.
1728         (indexOf): Ditto. Don't take null check outside of the loop.
1729         (iterator): Return an AbstractListItr instead of anonymous class.
1730         (lastIndexOf): Use a for loop bounded by size() instead of 
1731         hasPrevious() in iterator loop.
1732         (listIterator): Return an AbstractListItr.
1733         (removeRange): Remove bounds checking code and docs.
1734         (AbstractListItr): New inner class. Code moved here from 
1735         listIterator().
1736         (SubList.iterator): Removed. Use default implementation from 
1737         AbstractList instead.
1738         (SubList.listIterator): As above.
1739         * java/util/AbstractMap.java (clear): Use a for loop bounded by size() 
1740         instead of hasNext() in iterator loop.
1741         (containsValue): Ditto.
1742         (equals): Ditto.
1743         (get): Ditto.
1744         (put): Ditto.
1745         (putAll): Ditto.
1746         (remove): Ditto.
1747         (toString): Ditto. Use string concatenation operators, not
1748         StringBuffer.
1749         * java/util/AbstractSequentialList.java (addAll): Use a for loop 
1750         bounded by size() instead of hasNext() in iterator loop.
1751         * java/util/AbstractSet.java (hashCode): Don't catch exception as
1752         part of normal execution flow. Do an explicit null check instead.
1753         * java/util/ArrayList.java (_iSize): Rename to `size'.
1754         (_arData): Rename to `data'.
1755         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1756         message.
1757         (remove): Ditto.
1758         (removeRange): Make protected. Don't check bounds.
1759         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1760         message.
1761         (addAll (Collection)): Use a size-bounded for loop instead of hasNext() 
1762         check.
1763         (addAll (int, Collection)): Check lower bounds. Simplify exception
1764         string.
1765         (clone): Clone the data array too.
1766         (indexOf): Inline doesEqual().
1767         (lastIndexOf): Ditto.
1768         (clear): Don't set array data to null.
1769         (set): Check lower bounds. Simplify exception string.
1770         (toArray): Correct comment.
1771         (trimToSize): Don't update modCount, this is not a structural change.
1772         Add comment.
1773         
1774         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1775         implemented.
1776         (toString): Declare `bit' as long, not int.
1777         (data): Made package-private, not private.      
1778
1779 2000-10-27  Warren Levy  <warrenl@cygnus.com>
1780
1781         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1782         array elements to true.
1783
1784 2000-10-27  Warren Levy  <warrenl@cygnus.com>
1785
1786         * Makefile.am: Added locale files from Classpath.
1787         * Makefile.in: Rebuilt.
1788         * gnu/java/locale/Calendar.java: New file.
1789         * gnu/java/locale/Calendar_de.java: New file.
1790         * gnu/java/locale/Calendar_en.java: New file.
1791         * gnu/java/locale/Calendar_nl.java: New file.
1792         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1793         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1794         serialization compatibility.
1795         (scale): Made private.
1796         (serialVersionUID): New field.
1797         * java/math/BigInteger.java (ival): Made transient.
1798         (words): Made transient.
1799         (bitCount): New serialization field.
1800         (bitLength): Ditto.
1801         (firstNonzeroByteNum): Ditto.
1802         (lowestSetBit): Ditto.
1803         (magnitude): Ditto.
1804         (signum): Ditto.
1805         (serialVersionUID): New field.
1806         (readObject): New method.
1807         (writeObject): New method.
1808         * java/util/BitSet.java (serialVersionUID): New field.
1809         * java/util/Calendar.java: Replaced with Classpath file.
1810         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1811         of getDefault() for TimeZone or Locale instead of passing nulls.
1812         * java/util/Locale.java (serialVersionUID): New field.
1813         (writeObject): New method.
1814         (readObject): New method.
1815         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1816
1817 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
1818
1819         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1820         (core_java_source_files): Put java.lang, java.io, and java.util here.
1821         (ordinary_java_source_files): Order so that core_java_source_files are 
1822         built first.
1823         (java_source_files): Reorder so that special_java_source_files are 
1824         built first.
1825         * configure.in: Don't pass -I flag to gcj.
1826         * Makefile.in: Rebuilt.
1827         * configure: Rebuilt.
1828
1829 2000-10-25  Tom Tromey  <tromey@cygnus.com>
1830
1831         * Makefile.in: Rebuilt.
1832         * Makefile.am (install-exec-hook): New target.
1833
1834 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
1835
1836         * java/util/EventObject.java: Merged from classpath.
1837         
1838         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1839         with stack dump.
1840
1841 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1842
1843         * java/util/AbstractSet.java (equals): Re-installed original code.
1844
1845 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1846
1847         * Makefile.am: Added rules for libgcjx library.
1848         * Makefile.in: Rebuilt.
1849         * configure.in: Added check for X.
1850         * configure: Rebuilt.
1851         * gnu/awt/LightweightRedirector.java: New file.
1852         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1853         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1854         * gnu/awt/j2d/Graphics2DImpl.java: New file.
1855         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1856         * gnu/awt/j2d/MappedRaster.java: New file.
1857         * gnu/awt/xlib/XCanvasPeer.java: New file.
1858         * gnu/awt/xlib/XEventLoop.java: New file.
1859         * gnu/awt/xlib/XEventQueue.java: New file.
1860         * gnu/awt/xlib/XFontMetrics.java: New file.
1861         * gnu/awt/xlib/XFramePeer.java: New file.
1862         * gnu/awt/xlib/XGraphics.java: New file.
1863         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1864         * gnu/awt/xlib/XPanelPeer.java: New file.
1865         * gnu/awt/xlib/XToolkit.java: New file.
1866         * gnu/gcj/xlib/Clip.java: New file.
1867         * gnu/gcj/xlib/Colormap.java: New file.
1868         * gnu/gcj/xlib/Display.java: New file.
1869         * gnu/gcj/xlib/Drawable.java: New file.
1870         * gnu/gcj/xlib/Font.java: New file.
1871         * gnu/gcj/xlib/GC.java: New file.
1872         * gnu/gcj/xlib/Pixmap.java: New file.
1873         * gnu/gcj/xlib/Screen.java: New file.
1874         * gnu/gcj/xlib/Visual.java: New file.
1875         * gnu/gcj/xlib/WMSizeHints.java: New file.
1876         * gnu/gcj/xlib/Window.java: New file.
1877         * gnu/gcj/xlib/WindowAttributes.java: New file.
1878         * gnu/gcj/xlib/XAnyEvent.java: New file.
1879         * gnu/gcj/xlib/XButtonEvent.java: New file.
1880         * gnu/gcj/xlib/XColor.java: New file.
1881         * gnu/gcj/xlib/XConfigureEvent.java: New file.
1882         * gnu/gcj/xlib/XConnectException.java: New file.
1883         * gnu/gcj/xlib/XEvent.java: New file.
1884         * gnu/gcj/xlib/XException.java: New file.
1885         * gnu/gcj/xlib/XExposeEvent.java: New file.
1886         * gnu/gcj/xlib/XID.java: New file.
1887         * gnu/gcj/xlib/XImage.java: New file.
1888         * gnu/gcj/xlib/XUnmapEvent.java: New file.
1889         * gnu/gcj/xlib/natClip.cc: New file.
1890         * gnu/gcj/xlib/natColormap.cc: New file.
1891         * gnu/gcj/xlib/natDisplay.cc: New file.
1892         * gnu/gcj/xlib/natDrawable.cc: New file.
1893         * gnu/gcj/xlib/natFont.cc: New file.
1894         * gnu/gcj/xlib/natGC.cc: New file.
1895         * gnu/gcj/xlib/natPixmap.cc: New file.
1896         * gnu/gcj/xlib/natScreen.cc: New file.
1897         * gnu/gcj/xlib/natVisual.cc: New file.
1898         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1899         * gnu/gcj/xlib/natWindow.cc: New file.
1900         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1901         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1902         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1903         * gnu/gcj/xlib/natXColor.cc: New file.
1904         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1905         * gnu/gcj/xlib/natXException.cc: New file.
1906         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1907         * gnu/gcj/xlib/natXImage.cc: New file.
1908         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1909         * java/awt/EventDispatchThread.java: Start thead on creation.
1910
1911 2000-10-20  Tom Tromey  <tromey@cygnus.com>
1912
1913         From Arno J. Klaassen:
1914         * interpret.cc: Include <stdlib.h> for alloca.
1915         * defineclass.cc: Include <stdlib.h> for alloca.
1916
1917         * Makefile.in: Rebuilt.
1918         * Makefile.am: Include deps.mk.
1919         (GCJCOMPILE): Added -MD, -MT, and -MF.
1920         ($(javao_files)): Don't depend on libgcj.zip.
1921         (all-recursive): New target.
1922         (%.lo:%.cc): Do dependency tracking.
1923         ($(nat_headers)): Don't depend on libgcj.zip.
1924         * configure: Rebuilt.
1925         * configure.in: Make .d files and deps.mk.
1926
1927 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
1928
1929         * exception.cc: Don't #include "exception".
1930         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1931
1932         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1933         * Makefile.in: Updated.
1934
1935 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
1936
1937         * java/awt/peer/ChoicePeer.java (addItem): Removed.
1938         * java/awt/peer/ComponentPeer.java (disable): Removed.
1939         (enable): Removed.
1940         (hide): Removed.
1941         (minimumSize): Removed.
1942         (preferredSize): Removed.
1943         (reshape): Removed.
1944         (show): Removed.
1945         * java/awt/peer/ListPeer.java (addItem): Removed.
1946         (clear): Removed.
1947         (minimumSize): Removed.
1948         (preferredSize): Removed.
1949         (setMultipleSelections): Removed.
1950         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1951         (remove): Renamed from removeMenu.
1952         * java/awt/peer/MenuItemPeer.java (disable): Removed.
1953         (enable): Removed.
1954         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1955         (remove): Renamed from removeItem.
1956         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1957         (getMinimumSize): Removed.
1958         (getPreferredSize): Removed.
1959         (minimumSize): Removed.
1960         (preferredSize): Removed.
1961         (replaceText): Removed.
1962         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1963         (preferredSize): Removed.
1964         (getMinimumSize): Removed.
1965         (getPreferredSize): Removed.
1966         (setEchoCharacter): Removed.
1967
1968 2000-10-10  Warren Levy  <warrenl@cygnus.com>
1969
1970         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1971         * java/sql/Date.java (serialVersionUID): New field.
1972         * java/sql/Time.java (serialVersionUID): New field.
1973         * java/sql/Timestamp.java (serialVersionUID): New field.
1974         * java/text/ChoiceFormat.java (serialVersionUID): New field.
1975         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1976         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1977         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1978         (readObject): New serialization method.
1979         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1980         (serialVersionOnStream): New field.
1981         (readObject): New serialization method.
1982         (getMonetaryDecimalSeparator): New method.
1983         (setMonetaryDecimalSeparator): New method.
1984         * java/text/NumberFormat.java (maxFractionDigits): New field.
1985         (maxIntegerDigits): New field.
1986         (minFractionDigits): New field.
1987         (minIntegerDigits): New field.
1988         (serialVersionOnStream): New field.
1989         (serialVersionUID): New field.
1990         (readObject): New serialization method.
1991         (writeObject): New serialization method.
1992         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1993         (serialVersionOnStream): New field.
1994         (serialVersionUID): New field.
1995         (readObject): New serialization method.
1996
1997 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
1998
1999         * configure.in (GCJ): Avoid bogus error message when looking for
2000         (and not finding) gcj in the build tree.
2001         * configure: Rebuilt.
2002
2003 2000-10-09  Tom Tromey  <tromey@cygnus.com>
2004
2005         * configure: Rebuilt.
2006         * configure.in: Include sys/types.h when checking for socklen_t.
2007         From Arno J. Klaassen.
2008
2009 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
2010
2011         * include/jvm.h: Enable __builtin_expect().
2012
2013         * name-finder.cc (lookup): Don't trust dladdr() if the address is from 
2014         the main program. Fix for PR libgcj/341.
2015
2016 2000-10-07  Tom Tromey  <tromey@cygnus.com>
2017
2018         * java/util/Properties.java: Merged with Classpath version.
2019
2020 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2021
2022         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2023         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2024         * java/lang/Class.h (Object): Added `class$' field.
2025         * java/lang/Object.h (Object): Added `class$' field.
2026         * defineclass.cc (ClassClass): Use `class$' form.
2027         (ClassObject): Likewise.
2028         * resolve.cc (ClassObject): Use `class$' form.
2029         (ObjectClass): Likewise.
2030         * interpret.cc (ClassError): Removed.
2031         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2032         `class$' form.
2033         (IntegerClass): Likewise.
2034         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2035         form.
2036         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2037         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2038         SerializableClass): Likewise.
2039         Include Serializable.h, Cloneable.h.
2040         * java/lang/natSystem.cc (SystemClass): Removed.
2041         (init_properties): Use `class$' form.
2042         * java/lang/natObject.cc (CloneableClass): Removed.
2043         (clone): Use `class$' form.
2044         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2045         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2046         ConstructorClass): Likewise.
2047         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2048         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2049         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2050         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2051         form.
2052         (ClassClass): Likewise.
2053         * include/jvm.h (StringClass): Use `class$' form.
2054         * prims.cc (ObjectClass): Removed.
2055         (_Jv_RunMain): Use `class$' form.
2056         (_Jv_AllocObject): Likewise.
2057         * jni.cc (ClassClass): Use `class$' form.
2058         (ThrowableClass): Likewise.
2059         (ObjectClass): Likewise.
2060         (MethodClass): Likewise.
2061         (ThreadGroupClass): Likewise.
2062         (NativeThreadClass): Likewise.
2063         * boehm.cc (ObjectClass): Removed.
2064         (ClassClass): Removed.
2065         (_Jv_MarkObj): Use `class$' form.
2066         * gcj/field.h (JvFieldIsRef): Use `class$' form.
2067         Include RawData.h.
2068
2069 2000-10-05  Warren Levy  <warrenl@cygnus.com>
2070
2071         * Makefile.am: Removed java/io/Replaceable.java and
2072         java/io/Resolvable.java.
2073         * Makefile.in: Rebuilt.
2074         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2075         namespace.
2076         * java/io/ObjectInputStream.java (processResolution): Fixed typo
2077         in method name.
2078         (processResolution): Handle readResolve method via reflection with
2079         removal of Resolvable interface.
2080         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2081         method via reflection with removal of Replaceable interface.
2082         * java/io/Replaceable.java: Removed.
2083         * java/io/Resolvable.java: Removed.
2084         * java/security/Key.java (serialVersionUID): New field.
2085         * java/security/Provider.java (serialVersionUID): New field.
2086         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2087         New field.
2088         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2089         New field.
2090         * java/sql/DataTruncation.java (serialVersionUID): New field.
2091         * java/sql/SQLException.java (serialVersionUID): New field.
2092         * java/sql/SQLWarning.java (serialVersionUID): New field.
2093         * java/util/Date.java (serialVersionUID): New field.
2094         (millis): Made transient.
2095         (readObject): New method.
2096         (writeObject): New method.
2097
2098 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2099
2100         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2101
2102 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
2103
2104         * prims.cc (_Jv_argv, _Jv_argc): New fields.
2105         (JvRunMain): Set _Jv_argv and _Jv_argc.
2106         * java/awt/Component.java: Minor fixes.
2107         * java/awt/Image.java (UndefinedProperty): Initialize final field.
2108         * java/awt/Toolkit.java (systemEventQueue): Removed.
2109         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2110         * java/awt/Window.java (getToolkit): Don't call super.
2111         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2112         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2113         * gnu/awt/gtk/GtkComponentPeer.java: New file.
2114         * gnu/awt/gtk/GtkContainerPeer.java: New file.
2115         * gnu/awt/gtk/GtkFramePeer.java: New file.
2116         * gnu/awt/gtk/GtkMainThread.java: New file.
2117         * gnu/awt/gtk/GtkToolkit.java: New file.
2118         * gnu/awt/gtk/GtkWindowPeer.java: New file.
2119         * gnu/awt/gtk/gtkcommon.cc: New file.
2120         * gnu/awt/gtk/gtkcommon.h: New file.
2121         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2122         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2123         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2124         * gnu/awt/gtk/natGtkMainThread.cc: New file.
2125         * gnu/awt/gtk/natGtkToolkit.cc: New file.
2126         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2127
2128 2000-09-30  Tom Tromey  <tromey@cygnus.com>
2129
2130         * posix-threads.cc (_Jv_CondWait): Check to see if we are
2131         interrupted before modifying the cv's wait set.
2132         From Corey Minyard.
2133
2134 2000-09-30  Hans Boehm  <boehm@acm.org>
2135             Bryce McKinlay  <bryce@albatross.co.nz>
2136             
2137         Implement bitmap descriptor based marking for Boehm GC.
2138
2139         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2140         * configure: Rebuilt.
2141         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2142         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2143         method get_finalizer().
2144         (struct _Jv_ArrayVTable): Ditto. Declare method array with 
2145         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2146         (_Jv_AllocObj): Add new jclass parameter.
2147         (_Jv_AllocArray): Ditto.
2148         (_Jv_BuildGCDescr): New prototype.
2149         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2150         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2151         get_finalizer() instead of direct finalizer vtable offset.
2152         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2153         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2154         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2155         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2156         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2157         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2158         (_Jv_DetermineVTableIndex): Ditto.
2159         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable 
2160         calculations to account for new gc_descr field.
2161         * boehm.cc: #include gc_gcj.h.
2162         (obj_kind_x, obj_free_list): `#if 0'-ed away.
2163         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2164         New commentary from HB. Mark the classes vtable.
2165         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2166         (GC_DEFAULT_DESCR): New #define.
2167         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.        
2168         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2169         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2170         scan conservativly if size is less than min_heap_addr. Set vtable 
2171         pointer of new object before returning.
2172         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2173         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2174         allocation for obj_kind_x.
2175         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2176         (_Jv_AllocObj): Set vtable on returned object.
2177         (_Jv_AllocArray): Ditto.
2178         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2179         (_Jv_NewPrimArray): Ditto.
2180         (_Jv_AllocObj): Declare as a friend.
2181         (_Jv_AllocArray): Ditto.        
2182         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2183         from &ObjectClass into new array class. Remove offset-by-one 
2184         adjustments from `method' size calculations to account for gc_descr 
2185         field.
2186
2187 2000-09-26  Tom Tromey  <tromey@cygnus.com>
2188
2189         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2190         `remove', not `add'.
2191
2192 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2193
2194         * java/lang/natSystem.cc (file_encoding): Added return statement.
2195
2196 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2197
2198         * Makefile.am: Re-work shell commands that exceeded command-line
2199         length limits.
2200         * Makefile.in: Rebuilt.
2201
2202         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2203
2204         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2205         * java/lang/natDouble.cc: Likewise.
2206         * java/lang/reflect/natMethod.cc: Likewise.
2207         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
2208
2209 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
2210
2211         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2212         libgcjdata.a.
2213         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
2214         * acinclude.m4: Arrange for automake to not bring in a new
2215         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
2216         * Makefile.am: Leave it up to automake to subst GCJ.
2217         * aclocal.m4, configure, Makefile.in: Rebuilt.
2218
2219 2000-09-13  Tom Tromey  <tromey@cygnus.com>
2220
2221         * java/lang/reflect/natArray.cc (BooleanClass): New define.
2222         (get): Ensure Boolean class is initialized.
2223         * java/lang/reflect/natField.cc (BooleanClass): New define.
2224         (get): Ensure Boolean class is initialized.
2225
2226 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
2227
2228         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2229         Initialize with anonymous class.
2230         (compareToIgnoreCase): New method.
2231         
2232         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2233         (uncaughtException): Set had_uncaught_exception.
2234         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2235         exit with error status if set.
2236         (_Jv_RunMain): Ditto.
2237
2238 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
2239
2240         * configure: Rebuilt with new ../libtool.m4.
2241
2242 2000-09-11  Tom Tromey  <tromey@cygnus.com>
2243
2244         * java/lang/reflect/Field.java (toString): Don't rely on
2245         Class.toString.
2246
2247 2000-09-08  Tom Tromey  <tromey@cygnus.com>
2248
2249         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2250         default decoder use iconv.
2251         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2252         Let default encoder use iconv.
2253         * configure: Rebuilt.
2254         * configure.in: Check for nl_langinfo and <langinfo.h>.
2255         * java/lang/natSystem.cc (file_encoding): New function.
2256         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2257
2258 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
2259
2260         * acinclude.m4: Simplify the tests for CC and CXX.
2261         * aclocal.m4, configure: Rebuilt.
2262
2263         * acinclude.m4: Include libtool macros from the source tree.
2264         * aclocal.m4, configure: Rebuilt.
2265
2266 2000-09-08  Warren Levy  <warrenl@cygnus.com>
2267
2268         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2269         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2270         * java/io/File.java (writeObject): Added.
2271         (readObject): Added.
2272         (serialVersionUID): Added.
2273         * java/io/ObjectOutputStream.java (writeObject): Initialized
2274         fieldsAlreadyWritten before recursion rather than after.
2275         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2276         * java/io/OptionalDataException.java (serialVersionUID): Added.
2277         (OptionalDataException): Made package private.
2278         * java/io/SyncFailedException.java (SyncFailedException): Removed
2279         default constructor to match spec.
2280         * java/lang/Boolean.java (serialVersionUID): Added.
2281         * java/lang/Byte.java (serialVersionUID): Added.
2282         * java/lang/Character.java (serialVersionUID): Added.
2283         * java/lang/Double.java (serialVersionUID): Added.
2284         * java/lang/Float.java (serialVersionUID): Added.
2285         * java/lang/Integer.java (serialVersionUID): Added.
2286         * java/lang/Long.java (serialVersionUID): Added.
2287         * java/lang/Number.java (serialVersionUID): Added.
2288         * java/lang/Short.java (serialVersionUID): Added.
2289         * java/lang/String.java (serialVersionUID): Added.
2290         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2291         to match spec.
2292         * java/lang/reflect/InvocationTargetException.java
2293         (serialVersionUID): Added.
2294         * java/net/URL.java (handler): Made transient.
2295         (hashCode): Added field for serialization, per spec. and use
2296         cached value if available.
2297         (serialVersionUID): Added.
2298         (URL): Initialize hashCode.
2299         (set): Adjust hashCode.
2300         (readObject): New Method to initialize the protocol handler when
2301         deserializing.
2302         (writeObject): New method.
2303         * java/text/BreakIterator.java: Removed 'implements Serializable'.
2304         * java/text/Collator.java: Removed 'implements Serializable'.
2305         * java/util/GregorianCalendar.java (serialVersionUID): Added.
2306         * java/util/Properties.java (serialVersionUID): Added.
2307         * java/util/Random.java (serialVersionUID): Added.
2308         (seed): Made private.
2309         (nextNextGaussian): Made private.
2310         (haveNextNextGaussian): Made private.
2311         * java/util/Stack.java (serialVersionUID): Added.
2312         * java/util/TimeZone.java (serialVersionUID): Added.
2313         * java/util/Vector.java (serialVersionUID): Added.
2314
2315 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
2316
2317         * Makefile.am (Thread.h): Don't be friends with native threads 
2318         functions.
2319         * Makefile.in: Rebuilt.
2320         * java/lang/Thread.java (interrupt_flag): Make package-private.
2321
2322 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
2323
2324         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2325         to avoid long long division.
2326
2327 2000-09-06  Tom Tromey  <tromey@cygnus.com>
2328
2329         * java/lang/reflect/Constructor.java (toString): Use `getName' for
2330         parameter types.
2331         * java/lang/reflect/Method.java (toString): Use `getName' for
2332         return type.
2333
2334         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2335         `args' if method takes no parameters.
2336
2337         Fix for PR java.lang/339:
2338         * java/lang/natPosixProcess.cc (fail): New function.
2339         (cleanup): New function.
2340         (startProcess): Use them.  Create pipe so child can communicate
2341         exec failure back to parent.
2342
2343 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2344
2345         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2346         calls to `throw'.
2347         (send): Undo last patch. Remove the label only.
2348         (mcastGrp): Ditto.
2349         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to 
2350         `throw'.
2351         * java/net/natInetAdress.cc: Ditto.
2352
2353         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2354
2355 2000-09-05  Tom Tromey  <tromey@cygnus.com>
2356
2357         * doc/cni.sgml: Updated from master copy.
2358
2359 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2360
2361         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2362         (write): Ditto.
2363         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2364         stack. Synchronize.
2365         * java/lang/fdlibm.h: #undef __P if previously defined.
2366         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2367         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable 
2368         block.
2369         (mcastGrp): Ditto.
2370
2371 2000-09-04  Tom Tromey  <tromey@cygnus.com>
2372
2373         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2374         DELETE mode.
2375
2376 2000-09-04  Anthony Green  <green@redhat.com>
2377
2378         Fix for PR java.io/203:
2379         * java/io/File.java (createTempFile): Obey directory argument.
2380         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
2381         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2382         variable to set java.io.tmpdir on non-WIN32 systems.
2383
2384 2000-09-04  Anthony Green  <green@redhat.com>
2385
2386         * java/io/File.java (deleteOnExit): New method.
2387         * gnu/gcj/runtime/FileDeleter.java: New class.
2388         * java/lang/natRuntime.cc (exit): Call
2389         FileDeleter.deleteOnExitNow()
2390         * Makefile.am: Add FileDeleter.java.
2391         * Makefile.in: Rebuilt.
2392
2393 2000-09-02  Tom Tromey  <tromey@cygnus.com>
2394
2395         * Makefile.in: Rebuilt.
2396         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2397         environment variable.
2398
2399 2000-09-01  Andrew Haley  <aph@redhat.com>
2400
2401         * java/io/StreamTokenizer.java: Don't throw a
2402         NumberFormatException if a field is numeric as far as the
2403         StreamTokenizer is concerned but not as far as Double.valueOf() is
2404         concerned: return a zero instead.       
2405
2406 2000-08-30  Tom Tromey  <tromey@cygnus.com>
2407
2408         * Makefile.in: Rebuilt.
2409         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2410
2411 2000-08-28  Tom Tromey  <tromey@cygnus.com>
2412
2413         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2414         gnu/gcj/awt/ComponentDataBlitOp.java,
2415         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2416         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2417         java/awt/color/ICC_ColorSpace.java,
2418         java/awt/color/ICC_Profile.java,
2419         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2420         java/awt/image/ComponentColorModel.java,
2421         java/awt/image/ComponentSampleModel.java,
2422         java/awt/image/DataBuffer.java,
2423         java/awt/image/DataBufferByte.java,
2424         java/awt/image/DataBufferInt.java,
2425         java/awt/image/DataBufferUShort.java,
2426         java/awt/image/DirectColorModel.java,
2427         java/awt/image/IndexColorModel.java,
2428         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2429         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2430         java/awt/image/SinglePixelPackedSampleModel.java,
2431         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2432         Removed Latin-1 copyright symbols.
2433         * java/util/zip/ZipFile.java: Indentation fixes.
2434
2435 2000-08-27  Mark Wielaard  <mark@klomp.org>
2436
2437         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2438         constructor, close can delete the file, finalize calls close.
2439         * java/util/jar/JarFile.java: Constructor that takes mode now
2440         calls super.
2441
2442 2000-08-27  Anthony Green  <green@redhat.com>
2443
2444         * java/util/ArrayList.java, java/util/Timer.java,
2445         java/util/LinkedList.java, java/util/TimerTask.java,
2446         java/util/HashMap.java, java/util/AbstractMap.java,
2447         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2448         java/util/SortedSet.java: Imported from GNU Classpath.
2449         * Makefile.in: Rebuilt.
2450         * Makefile.am: Added new files.
2451         
2452 2000-08-26  Anthony Green  <green@redhat.com>
2453
2454         * Makefile.in: Rebuilt.
2455         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2456         friend.
2457
2458         * prims.cc: Include ClassLoader.h.
2459         (_Jv_RunMain): When executing jar files, classpath must be the jar
2460         file only.  Lose our reference to the system ClassLoader in order
2461         to get a new one with the correct classpath.
2462         * java/lang/natSystem.cc (init_properties): When executing a jar
2463         file, only use the jar file for java.class.path.
2464
2465         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2466         for bytecode archives.
2467
2468         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2469         exists, but not Main-Class.
2470
2471 2000-08-23  Mark Wielaard  <mark@klomp.org>
2472
2473         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2474         return -1 when fill() has no more data for the Inflater.
2475
2476 2000-08-23  Mark Wielaard  <mark@klomp.org>
2477
2478         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2479         write(String) already does.
2480
2481 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2482
2483         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2484         to `alive_flag', call `init'.
2485         (init): New native method.
2486         * gnu/gcj/jni/natNativeThread.cc (init): New native method
2487         implementation.
2488
2489 2000-08-21  Mark Wielaard  <mark@klomp.org>
2490
2491         * Makefile.in: Rebuilt.
2492         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2493         a `friend class'.
2494         (java/lang/reflect/Field.h): Likewise.
2495         (java/lang/reflect/Method.h): Likewise.
2496         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2497         `friend class'.
2498
2499 2000-08-21  Tom Tromey  <tromey@cygnus.com>
2500
2501         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2502         debugging prints.
2503
2504 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
2505
2506         * java/lang/natSystem.cc (init_properties): Change sourceware
2507         reference to sources.redhat.com.
2508
2509         * include/java-props.h: Add _Jv_Jar_Class_Path.
2510         * prims.cc: Ditto.  Set it from `gij -jar file' option.
2511
2512         * java/lang/natSystem.cc (init_properties): Set java.class.path
2513         from
2514         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2515
2516         * java/util/PropertyPermission.java: Import from GNU Classpath.
2517         * Makefile.in: Rebuilt.
2518         * Makefile.am: Add java/util/PropertyPermission.java.
2519         * java/lang/System.java: Add setProperty method.
2520
2521         * gij.cc (main): Add -jar option to execute jar files.
2522         (help): Describe -jar option.
2523         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2524         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2525         * gnu/gcj/runtime/FirstThread.java (main): New method.
2526
2527         * java/util/jar/Attributes.java: Correct comment spelling.
2528
2529 2000-08-20  Mark Wielaard  <mark@klomp.org>
2530
2531         * java/util/zip/Adler32.java: Make private variables really private
2532         * java/util/zip/CRC32.java: Make private variables really private
2533         * java/util/zip/CheckedInputStream.java: skip() could skip to much
2534         bytes
2535         * java/util/zip/InflaterInputStream.java: skip() could skip to
2536         much bytes
2537         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2538         * java/util/zip/ZipFile.java: size() new 1.2 method
2539         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2540         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
2541         closed
2542
2543 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
2544
2545         * java/util/jar/JarFile.java: Don't call
2546         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
2547         <mark@klomp.org>.
2548         
2549 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
2550
2551         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2552         Read the entire contents of the class file, not just what is
2553         available().
2554
2555         * java/net/JarURLConnection.java: getEntry doesn't take any
2556         arguments.  Return null if element is null.
2557
2558         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2559         size from the archive, not the inflated size.
2560
2561         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
2562         java.util.zip.ZipFile.getEntry.
2563
2564         * gij.cc (help): Change sourceware reference to
2565         sources.redhat.com.
2566
2567 2000-08-19  Tom Tromey  <tromey@cygnus.com>
2568
2569         * java/util/zip/ZipInputStream.java (createZipEntry):
2570         Implemented.
2571
2572 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
2573
2574         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2575         java/util/jar/JarException.java, java/util/jar/JarFile.java,
2576         java/util/jar/JarInputStream.java,
2577         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2578         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2579         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2580         java/security/cert/CRL.java, java/security/cert/CRLException.java,
2581         java/security/cert/Certificate.java,
2582         java/security/cert/CertificateEncodingException.java,
2583         java/security/cert/CertificateException.java,
2584         java/security/cert/CertificateExpiredException.java,
2585         java/security/cert/CertificateFactory.java,
2586         java/security/cert/CertificateFactorySpi.java,
2587         java/security/cert/CertificateNotYetValidException.java,
2588         java/security/cert/CertificateParsingException.java,
2589         java/security/cert/X509CRL.java,
2590         java/security/cert/X509CRLEntry.java,
2591         java/security/cert/X509Certificate.java,
2592         java/security/cert/X509Extension.java: Imported from Classpath.
2593         * java/util/Hashtable.java: Imported from Classpath.
2594
2595         * java/util/zip/ZipInputStream.java: Create stub for
2596         createZipEntry.
2597
2598         * gcj/javaprims.h: Updated class list.
2599
2600         * Makefile.in, gcj/Makefile.in: Rebuilt.
2601         * Makefile.am (ordinary_java_source_files): Add these new classes.
2602         
2603 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
2604
2605         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2606         * gnu/gcj/awt/GLightweightPeer.java: New file.
2607         * java/awt/BorderLayout.java: Implemented all methods.
2608         * java/awt/Button.java (actionListener, actionCommand): Renamed
2609         and modifier change.
2610         (addNotify): Call super.
2611         (dispatchEventImpl): New method.
2612         (getListeners): New method.
2613         (label): Made package-private, not private.
2614         * java/awt/Canvas.java: Implemented class body.
2615         * java/awt/Color.java (brighter): New method.
2616         (darker): New method.
2617         (hashCode): New method.
2618         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2619         (getGraphicsConfiguration): Delegate to
2620         getGraphicsConfigurationImpl().
2621         (getGraphicsConfigurationImpl): New method.
2622         (getToolkit): Only return value from peer if not null.
2623         (isDisplayable): Check with parent.
2624         (isShowing): No parent implies not showing.
2625         (getForeground): Check parent property if local is null.
2626         (getBackground): Likewise.
2627         (getFont): Likewise.
2628         (setForeground): Inform peer.
2629         (setBackground): Likewise
2630         (setLocale): Invalidate component.
2631         (getColorModel): Implemented.
2632         (setLocation): Invalidate, or ignore if no change.
2633         (setSize): Invalidate, or ignore if no change.
2634         (setBounds): Invalidate, or ignore if no change.
2635         (isOpaque): By default, heavyweight implies opaque.
2636         (isLightweight): Implemented.
2637         (getMaximumSize): Implemented.
2638         (doLayout): Implemented, NOP.
2639         (validate): Implemented, NOP.
2640         (invalidate): Only propagate to parent if parent was valid.
2641         (getGraphics): Implemented.
2642         (getFontMetrics): Implemented.
2643         (update): Implemented.
2644         (paintAll): Implemented.
2645         (repaint): Implemented all repaint methods.
2646         (print): Implemented.
2647         (printAll): Implemented.
2648         (createImage): Implemented.
2649         (dispatchEvent): Give the peer a chance to handle the event.
2650         (dispatchEventImpl): Dispatch paint events.
2651         (enableEvents): Lightweights enable events on parent component.
2652         (coalesceEvents): Coalesce paint events, and select event type
2653         using a switch.
2654         (coalescePaintEvents): New method.
2655         (processEvent): Fix unfortunate ordering of statements, and call
2656         correct method for MOUSE_CLICKED.
2657         (processPaintEvent): New method.
2658         (addNotify): Allow container to notify children before event
2659         mask is set in peer.
2660         (addNotifyContainerChildren): New method.
2661         (removeNotify): Visibility should not change on removeNotify.
2662         (paramString): Implemented.
2663         (list): Implemented two of the list methods.
2664         * Container (myInsets): Removed, insets are managed by peer.
2665         (getInsets): Query peer.
2666         (addImpl): Fix reparenting, enable events for lightweights,
2667         initialize component array.
2668         (validate): Call doLayout in validateTree() instead.
2669         (validateTree): Do nothing if already valid. Call beginValidate(),
2670         endValidate() on peer. Call validateTree() instead of validate()
2671         for children that are containers. Mark valid after validation of
2672         children.
2673         (setFont): Partial implementation.
2674         (paint): Implemented.
2675         (visitChildren): New method.
2676         (visitChild): New method.
2677         (update): Implemented.
2678         (print): Implemented.
2679         (paintComponents): Implemented.
2680         (printComponents): Consider translation and clipping.
2681         (getComponentAt): Ignore invisible children. Return this if no
2682         child match.
2683         (addNotify): Call super.
2684         (addNotifyContainerChildren): New method.
2685         (paramString): Implemented.
2686         (list): Implemented.
2687         * java/awt/EventQueue (invokeAndWait): Get system event queue the
2688         right way.
2689         (invokeLater): Likewise.
2690         (isDispatchThread): Likewise.
2691         * java/awt/FontMetrics (getLeading): Formula change.
2692         (getDescent): Consider leading also.
2693         (getMaxAscent): Default to getAscent().
2694         (getMaxDescent): Default to getDescent.
2695         (getMaxAdvance): Return value signifying unknown.
2696         (charWidth): Both methods implemented.
2697         (charsWidth): Implemented.
2698         (bytesWidth): Implemented.
2699         (getWidths): Implemented.
2700         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2701         state): New fields.
2702         (Frame): Rearragend constuctor chaining to disallow null being
2703         passed as a graphics configuration.
2704         (getTitle): Return empty string if null.
2705         (dispose): Removed.
2706         (getIconImage): New method.
2707         (setIconImage): New method.
2708         (finalize): New method.
2709         (setMenuBar): Notify peer.
2710         (isResizable): New method.
2711         (setResizable): New method.
2712         (getState): New method.
2713         (getFont): Removed.
2714         (remove): Implemented.
2715         (removeNotify): New method.
2716         (getFrames): New method.
2717         * java/awt/Graphics.java: Implemented body of class.
2718         * java/awt/Graphics2D.java: New file.
2719         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2720         * java/awt/Image.java: Implemented body of class.
2721         * java/awt/Panel.java (Panel): Call correct super constructor.
2722         (addNotify): Implemented.
2723         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2724         * java/awt/RenderingHints.java: New file.
2725         * java/awt/Toolkit.java (createComponent): Implemented.
2726         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2727         * java/awt/Window.java (Window): Two new constructors. Reordered
2728         constructor chaining.
2729         (getGraphicsConfigurationImpl): New method.
2730         (finalize): Call super.
2731         (addNotify): Call super.
2732         (pack): Do layout stuff.
2733         (show): Ensure that peer exists and that component is valid.
2734         (dispose): Dispose owned children.
2735         (getOwner): Simplify code, casting null pointers is valid.
2736         (getGraphicsConfiguration): Ask peer if local value is null.
2737         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2738         getcmd().
2739         * java/awt/image/BufferedImage.java: New file.
2740         * java/awt/image/RasterOp.java: New file.
2741         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2742         More powerfull replacement for getColorModel().
2743         (getColorModel) Removed.
2744         (setEventMask) New method.
2745         * Makefile.am: Added new files.
2746         * Makefile.in: Rebuilt.
2747
2748 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2749
2750         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2751         (finit_leg_name): New global.
2752         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2753         `$finit$'. This is a backward compatibility hack.
2754         (java::lang::Class::_getMethods): Likewise.
2755
2756 2000-08-15  Andrew Haley  <aph@cygnus.com>
2757
2758         * include/jvm.h (_Jv_HashCode): New hash code.
2759
2760 2000-08-15  Tom Tromey  <tromey@cygnus.com>
2761
2762         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2763
2764 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
2765
2766         * THANKS: More thanks.
2767
2768 2000-08-10  Tom Tromey  <tromey@cygnus.com>
2769
2770         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2771         when errno not set.
2772         (connect): Likewise.
2773         (accept): Likewise.
2774         (getOption): Likewise.
2775         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2776         case when errno not set.
2777         (peek): Likewise.
2778         (send): Likewise.
2779         (receive): Likewise.
2780         (mcastGrp): Likewise.
2781         (setOption): Likewise.
2782         (getOption): Likewise.
2783
2784 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
2785             John Stracke <francis@ecal.com>
2786
2787         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2788         (connect): Don't falsely claim HTTP/1.1 compliance. Call 
2789         getHttpHeaders().
2790         (disconnect): Don't unset connected flag.
2791         (getHeaderField (String)): Call connect() if not connected.
2792         (getHeaderField (int)): Ditto.
2793         (getHeaderFieldKey): Ditto.
2794         (getHttpHeaders): Don't call connect(). 
2795         * java/net/HttpURLConnection.java (instanceFollowRedirects,
2796         gotResponseVals): New fields.
2797         (getResponseCode): Call getResponseVals() conditionally.
2798         (getResponseMessage): Ditto.
2799         (getResponseVals): Call connect(). Don't throw FileNotFoundException.   
2800
2801 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
2802
2803         * Makefile.am: Move beans and applet classes to awt_java_source_files.
2804         * Makefile.in: Rebuilt.
2805         * java/awt/Color.java (getTransparency): New method.
2806         * java/awt/Component.java: Various updates.
2807         * java/awt/Container.java (removeNotify): Call super.removeNotify()
2808         after dealing with children.
2809         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2810         * java/awt/Window.java: Various new methods and updates.
2811         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2812         to int for switch.
2813         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2814         * java/awt/event/WindowEvent.java (paramString): Ditto.
2815         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2816         try/catch block.
2817         * java/awt/geom/Point2D.java (clone): Ditto.
2818         * java/awt/geom/RectangularShape.java (clone): Ditto.
2819         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2820         isAlphaPremultiplied): Make package-private, not private.       
2821         
2822 2000-08-08  Tom Tromey  <tromey@cygnus.com>
2823
2824         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2825         surrogate characters.
2826         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2827         true.
2828         (write): Correct handling of surrogate characters.
2829
2830 2000-08-07  Tom Tromey  <tromey@cygnus.com>
2831
2832         * java/lang/reflect/Method.java (hashCode): Use getName().
2833         (toString): Likewise.
2834         * java/lang/reflect/natMethod.cc (getType): Initialize
2835         exception_types.
2836
2837         * java/lang/reflect/Method.java (toString): Use Class.getName, not
2838         Class.toString.
2839         * java/lang/reflect/Field.java (toString): Correct formatting.
2840         From Corey Minyard.
2841
2842         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2843         rewrote.
2844         (receive): Streamlined.
2845
2846 2000-08-05  Tom Tromey  <tromey@cygnus.com>
2847
2848         * java/io/PrintWriter.java: Merged comments from Classpath.
2849         (printlnUnsynchronized): Removed.
2850         (println()): Print the separator.
2851         (println): Call println(), not printlnUnsynchronized.
2852         (out): Now protected, to match spec.
2853
2854 2000-08-04  Tom Tromey  <tromey@cygnus.com>
2855
2856         * java/io/StreamTokenizer.java (TT_NONE): Now private.
2857         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
2858         For PR java.io/301.
2859
2860 2000-08-03  Warren Levy  <warrenl@cygnus.com>
2861
2862         * java/io/ObjectInputStream.java (readFields): Turn off
2863         readDataFromBlock while reading via GetField.
2864         (GetField$1.get(String, Object)): Pass Class of default value to
2865         getField.
2866         (getField): Allow for null default values.
2867
2868         * java/io/ObjectOutputStream.java: Fixed typo in comment.
2869         (PutField$1.put): Fixed calls of checkType in most of the put
2870         methods to pass the correct parameter.
2871         (PutField$1.put(String, Object)): Allow for null value arg.
2872         (PutField$1.write): Turn off writeDataAsBlocks while writing via
2873         PutField.
2874
2875         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2876         typo in spec'ed field name.
2877         (getSerialPersistentFields): Changed spelling of method to match
2878         the correct spelling of the spec'ed field name.
2879
2880 2000-08-03  Tom Tromey  <tromey@cygnus.com>
2881
2882         * Makefile.in: Rebuilt.
2883         * Makefile.am (awt_java_source_files): Added new files.
2884
2885 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
2886
2887         * Makefile.am: Add new AWT stubs.
2888         * java/awt/Canvas.java: New placeholder class.
2889         * java/awt/Checkbox.java: Ditto.
2890         * java/awt/CheckboxMenuItem.java: Ditto.
2891         * java/awt/Choice.java: Ditto.
2892         * java/awt/Dialog.java: Ditto.
2893         * java/awt/FileDialog.java: Ditto.
2894         * java/awt/List.java: Ditto.
2895         * java/awt/ScrollPane.java: Ditto.
2896         * java/awt/TextField.java: Ditto.
2897         * java/awt/datatransfer/Clipboard.java: Ditto.
2898         * java/awt/Component.java (treeLock): Now a static String. Add comment.
2899         * java/awt/MenuItem.java (MenuItem): Add default constructor.
2900         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. 
2901         Some commented out. Partially implemented.
2902         * java/awt/natToolkit.cc: Removed file.
2903
2904 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
2905
2906         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2907         Fixes "make -j" builds.
2908         * Makefile.in: Rebuild.
2909
2910 2000-08-02  Tom Tromey  <tromey@cygnus.com>
2911
2912         * Makefile.in: Rebuilt.
2913         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2914         * java/net/natPlainSocketImpl.cc: Include posix.h.
2915         (accept): Use _Jv_select.
2916         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2917         (receive): Use _Jv_select.
2918         * java/io/natFileDescriptorPosix.cc: Include posix.h.
2919         (available): Use _Jv_select.
2920         * java/lang/natSystem.cc: Include posix.h.
2921         (currentTimeMillis): Use _Jv_gettimeofday.
2922         * include/posix.h: New file.
2923         * posix.cc: New file.
2924
2925         * scripts/encodings.pl: New file.
2926         * Makefile.in: Rebuilt.
2927         * Makefile.am (convert_source_files): Added IOConverter.java.
2928         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2929         IOConverter.
2930         (getDefaultDecodingClass): Canonicalize default encoding name.
2931         (getEncoder): Likewise.
2932         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2933         IOConverter.
2934         (getDefaultDecodingClass): Canonicalize default encoding name.
2935         (getDecoder): Likewise.
2936         * gnu/gcj/convert/IOConverter.java: New file.
2937
2938 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
2939
2940         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2941         to match C declaration in ffi.h.
2942         * Makefile.am: Add java/awt/Button.java.
2943         * Makefile.in: Rebuilt.
2944
2945 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2946
2947         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2948         cast of the second argument to `ffi_raw_call' changed to match
2949         prototype.
2950
2951 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2952
2953         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2954         argument to `ffi_raw_call' changed to match prototype.
2955
2956 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
2957
2958         * java/awt/Component.java (toString): Implemented.
2959         * java/awt/Container.java (addImpl): Remove FIXME. Only call 
2960         dispatchEvent() to dispatch the event.
2961         (removeImpl): Ditto.
2962
2963 2000-07-30  Anthony Green  <green@redhat.com>
2964
2965         * java/awt/Component.java: Add treeLock object.
2966         (getTreeLock): Implement.
2967         (isShowing): Implement.
2968
2969 2000-07-30  Tom Tromey  <tromey@cygnus.com>
2970
2971         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2972
2973         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2974
2975         * java/awt/Window.java (addNotify): Wrote.
2976         (addWindowListener): Wrote.
2977         (getLocale): Wrote.
2978         (getWarningString): Wrote.
2979         (processEvent): Wrote.
2980         (processWindowEvent): Wrote.
2981         (removeWindowListener): Wrote.
2982         (show): Call validate(), setVisible().
2983         (toBack): Wrote.
2984         (toFront): Wrote.
2985
2986         * java/awt/Toolkit.java (createWindow): Declare.
2987
2988         * java/awt/Frame.java (addNotify): Use getToolkit to find
2989         toolkit.
2990
2991         * java/awt/Component.java (invalidate): Wrote.
2992         (isValid): Wrote.
2993         (getToolkit): Wrote.
2994
2995         * java/awt/Container.java (addContainerListener): Removed
2996         unnecessary cast.
2997         (removeContainerListener): Likewise.
2998         (addImpl): Wrote.
2999         (add(Component)): Use it.
3000         (add(String,Component)): Likewise.
3001         (add(Component,int)): Likewise.
3002         (add(Component,Object)): Likewise.
3003         (add(Component,Object,int)): Likewise.
3004         (doLayout): Wrote.
3005         (getAlignmentX): Wrote.
3006         (getAlignmentY): Wrote.
3007         (getComponentAt): Wrote.
3008         (getMaximumSize): Wrote.
3009         (invalidate): Wrote.
3010         (list(PrintStream,int)): Wrote.
3011         (list(PrintWriter,int)): Wrote.
3012         (getMinimumSize): Wrote.
3013         (getPreferredSize): Wrote.
3014         (printComponents): Wrote.
3015         (processContainerEvent): Look at containerListener, not
3016         componentListener.
3017         (remove): Added event processing and peer destruction.
3018         (removeAll): Use remove.
3019         (removeNotify): Wrote.
3020         (validate): Wrote.
3021         (validateTree): Wrote.
3022
3023         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3024         * java/awt/Label.java (addNotify): Do nothing if peer exists.
3025         * java/awt/Container.java (addNotify): Don't create Container
3026         peer.
3027         * java/awt/Button.java (addNotify): Do nothing if peer exists.
3028
3029 2000-07-30  Tom Tromey  <tromey@cygnus.com>
3030
3031         * java/awt/Container.java (remove(int)): Wrote.
3032         (remove(Component)): Wrote.
3033         (add(Component)): Wrote.
3034         (add(Component,int)): Wrote.
3035         (removeAll): Wrote.
3036         (addNotify): Set our own peer.
3037         * java/awt/Scrollbar.java (listeners): Changed type.
3038         (Scrollbar): Don't initialize listeners.
3039         (addNotify): Wrote.
3040         (setValue): Call setValues.
3041         (setMinimum): Likewise.
3042         (setMaxPriority): Likewise.
3043         (setVisibleAmount): Likewise.
3044         (setValues): Wrote.
3045         (setUnitIncrement): Forward to peer.
3046         (setLineIncrement): Call setUnitIncrement.
3047         (setPageIncrement): Call setBlockIncrement.
3048         (setBlockIncrement): Forward to peer.
3049         (addAdjustmentListener): Rewrote.
3050         (removeAdjustmentListener): Rewrote.
3051         (processAdjustmentEvent): Rewrote.
3052         (paramString): Wrote.
3053         * Makefile.in: Rebuilt.
3054         * Makefile.am (awt_java_source_files): Added Button.java.
3055         * java/awt/Button.java: New file.
3056         * java/awt/Toolkit.java (createLabel): Declare.
3057         (createButton): Likewise.
3058         (createScrollbar): Likewise.
3059         (createContainer): Likewise.
3060         * java/awt/Label.java (addNotify): Wrote.
3061         (setAlignment): Call setAlignment in the peer.
3062         (setText): Call setText in the peer.
3063
3064 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3065
3066         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3067         NotSerializableException with just the class name.
3068
3069 2000-07-26  Andrew Haley  <aph@cygnus.com>
3070
3071         * interpret.cc (continue1): Insert missing break into switch.
3072
3073 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3074
3075         * java/io/ObjectStreamException.java: Made constructors protected.
3076
3077 2000-07-27  Tom Tromey  <tromey@cygnus.com>
3078
3079         * java/io/OutputStreamWriter.java (close): Only flush if not
3080         closed.
3081
3082 2000-07-27  Warren Levy  <warrenl@cygnus.com>
3083
3084         * mauve-libgcj: Activated serialization tests.
3085         * gcj/field.h (getModifiers): Mask off unknown flags.
3086         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3087         spurious bits don't cause discrepancies.
3088         * java/io/ObjectOutputStream.java: Fixed typo in comment.
3089         * java/io/ObjectStreamClass.java: Fixed typos in comments.
3090         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3091         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3092         * java/lang/Throwable.java (serialVersionUID): New field.
3093         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3094         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3095         unknown flags.
3096         * java/lang/reflect/natMethod.cc: Ditto.
3097         * java/security/Key.java (serialVersionUID): Removed field for now.
3098         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3099         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3100
3101 2000-07-22  Tom Tromey  <tromey@cygnus.com>
3102
3103         * java/awt/geom/RectangularShape.java (getPathIterator):
3104         Wrote.
3105
3106 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3107
3108         * libjava/java/awt/image/ColorModel.java: New file, replaces the
3109         stub libjava/java/awt/ColorModel.java which was located in the
3110         wrong package.
3111         * libjava/java/awt/image/ComponentColorModel.java: New file.
3112         * libjava/java/awt/image/ComponentSampleModel.java: New file.
3113         * libjava/java/awt/image/DataBuffer.java: New file.
3114         * libjava/java/awt/image/DataBufferByte.java: New file.
3115         * libjava/java/awt/image/DataBufferInt.java: New file.
3116         * libjava/java/awt/image/DataBufferUShort.java: New file.
3117         * libjava/java/awt/image/DirectColorModel.java: New file.
3118         * libjava/java/awt/image/PackedColorModel.java: New file.
3119         * libjava/java/awt/image/Raster.java: New file.
3120         * libjava/java/awt/image/SampleModel.java: New file.
3121         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3122         file.
3123         * libjava/java/awt/image/IndexColorModel.java: New file.
3124         * libjava/java/awt/image/ImageConsumer.java: Removed import of
3125         java.awt.ColorModel stub.
3126
3127         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3128         * gnu/gcj/util/Buffers.java: New file, utility class.
3129
3130         * libjava/Makefile.am: Updated to include new files.
3131         * libjava/Makefile.in: Rebuilt.
3132
3133 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
3134
3135         * java/io/StreamTokenizer.java: Merged with classpath.
3136
3137 2000-07-20  Tom Tromey  <tromey@cygnus.com>
3138
3139         * Makefile.in: Rebuilt.
3140         * Makefile.am (awt_java_source_files): Updated for new files.
3141         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3142         * java/awt/Label.java: New file.
3143         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3144         (createIntersection, createUnion, getBounds2D): New methods.
3145         * java/awt/Scrollbar.java: New file.
3146         * java/awt/Shape.java: Updated to 1.2.
3147         * java/awt/geom/AffineTransform.java: New file.
3148         * java/awt/geom/Ellipse2D.java: New file.
3149         * java/awt/geom/NoninvertibleTransformException.java: New file.
3150         * java/awt/geom/PathIterator.java: New file.
3151         * java/awt/geom/Rectangle2D.java: New file.
3152         * java/awt/geom/RectangularShape.java: New file.
3153         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3154         * java/awt/geom/IllegalPathStateException.java: New file.
3155         
3156         * scripts/showval.java: New file.
3157
3158         * scripts/classes.pl (scan): Print inner classes properly.
3159         * gcj/javaprims.h: Updated class list.
3160
3161         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3162         initialize String fields for interpreted classes.  Fixes bug
3163         reported by Hans Boehm.
3164
3165         * java/io/File.java (getParentFile): New method, from Classpath
3166         via Oskar Liljeblad.
3167
3168         * java/util/Vector.java (remove(Object)): Implemented.
3169
3170 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
3171
3172         * java/lang/natThrowable.cc (fillInStackTrace): Check for
3173         zero return from backtrace().
3174
3175 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
3176
3177         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3178         synchronized block.
3179         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3180         before calling notifyAll().
3181
3182 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
3183
3184         Add missing files from last check-in:
3185         * java/awt/image/ImageConsumer.java: New file.
3186         * java/awt/image/ImageProducer.java: New file.
3187         * java/awt/image/ImageObserver.java: New file.
3188
3189 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3190
3191         Merged implementation of java.applet from classpath:
3192         * java/applet/Applet.java: New file.
3193         * java/applet/AppletContext.java: New file.
3194         * java/applet/AppletStub.java: New file.
3195         * java/applet/AudioClip.java: New file.
3196
3197         * Makefile.am: Added new java.applet classes.
3198         * Makefile.in: Rebuilt.
3199
3200 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3201
3202         AWT Stuff:
3203         * java/util/ResourceBundle.java (getLocale): stub.
3204         * Makefile.am: Added new AWT classes.
3205         * Makefile.in: Rebuilt.
3206         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, 
3207         constructors. Fix toString() and paramString().
3208         * java/awt/AWTEventMulticaster.java: New class. Implemented.
3209         * java/awt/CheckboxGroup.java: New class.
3210         * java/awt/ColorModel.java: New class.
3211         * java/awt/Component.java: Added stubs for most methods. Implemented 
3212         event dispatch.
3213         * java/awt/Container.java: ditto.
3214         * java/awt/ComponentOrientation.java: New class. Partly implemented.
3215         * java/awt/Cursor.java: ditto.
3216         * java/awt/Event.java: Fix paramString().
3217         * java/awt/EventQueue.java: New class. Implemented.
3218         * java/awt/Font.java: Added additional stub methods. Implemented 
3219         toString().
3220         * java/awt/FontMetrics.java: New class. Stubbed.
3221         * java/awt/GraphicsConfiguration.java: New class. Complete, except for 
3222         Java2D parts.
3223         * java/awt/Insets.java: New class. Implemented.
3224         * java/awt/Menu.java: Add new methods. Partially implemented.
3225         * java/awt/MenuItem.java: Add new methods and fields. Partially 
3226         implemented.
3227         * java/awt/MenuShortcut.java: New class. Implemented.
3228         * java/awt/Panel.java: New class. Placeholder.
3229         * java/awt/PopupMenu.java: New class. Stubbed.
3230         * java/awt/Rectangle.java: New class. Implemented.
3231         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3232         * java/awt/event/ActionEvent.java: Implement paramString().
3233         * java/awt/event/AdjustmentEvent.java: Implement paramString().
3234         * java/awt/event/ComponentEvent.java: Implement paramString().
3235         * java/awt/event/ContainerEvent.java: Implement paramString().
3236         * java/awt/event/FocusEvent.java: Implement paramString().
3237         * java/awt/event/HierarchyBoundsAdapter.java: New class.
3238         * java/awt/event/HierarchyBoundsListener.java: New class.
3239         * java/awt/event/HierarchyEvent.java: New class.
3240         * java/awt/event/HierarchyListener.java: New class.
3241         * java/awt/event/InputMethodEvent.java: Implement paramString().
3242         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw 
3243         exception if !catchExceptions.
3244         * java/awt/event/ItemEvent.java: Implement paramString().
3245         * java/awt/event/KeyEvent.java: Implement paramString().
3246         * java/awt/event/MouseEvent.java: Implement paramString().
3247         * java/awt/event/PaintEvent.java: Implement paramString().
3248         * java/awt/event/TextEvent.java: Implement paramString().
3249         * java/awt/event/WindowEvent.java: Implement paramString().
3250         
3251         AWT Peer interfaces:
3252         * java/awt/peer/ButtonPeer.java: New file.
3253         * java/awt/peer/ListPeer.java: New file.
3254         * java/awt/peer/CanvasPeer.java: New file.
3255         * java/awt/peer/MenuBarPeer.java: New file.
3256         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3257         * java/awt/peer/MenuComponentPeer.java: New file.
3258         * java/awt/peer/CheckboxPeer.java: New file.
3259         * java/awt/peer/MenuItemPeer.java: New file.
3260         * java/awt/peer/ChoicePeer.java: New file.
3261         * java/awt/peer/MenuPeer.java: New file.
3262         * java/awt/peer/ComponentPeer.java: Implemented.
3263         * java/awt/peer/PanelPeer.java: New file.
3264         * java/awt/peer/ContainerPeer.java: Implemented.
3265         * java/awt/peer/PopupMenuPeer.java: New file.
3266         * java/awt/peer/DialogPeer.java: New file.
3267         * java/awt/peer/ScrollPanePeer.java: New file.
3268         * java/awt/peer/FileDialogPeer.java: New file.
3269         * java/awt/peer/ScrollbarPeer.java: New file.
3270         * java/awt/peer/FontPeer.java: New file.
3271         * java/awt/peer/TextAreaPeer.java: New file.
3272         * java/awt/peer/FramePeer.java: Implemented.
3273         * java/awt/peer/TextComponentPeer.java: New file.
3274         * java/awt/peer/LabelPeer.java: New file.
3275         * java/awt/peer/TextFieldPeer.java: New file.
3276         * java/awt/peer/LightweightPeer.java: New file.
3277         * java/awt/peer/WindowPeer.java: Implemented.
3278
3279 2000-07-06  Tom Tromey  <tromey@cygnus.com>
3280
3281         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3282         Initialize static final String fields.
3283
3284 2000-07-03  Tom Tromey  <tromey@cygnus.com>
3285
3286         * java/io/PrintWriter.java (print): Call write(String), not
3287         print(String).  See PR libgcj/277.
3288         (print(String)): Use write, not out.write.
3289
3290 2000-06-30  Tom Tromey  <tromey@cygnus.com>
3291
3292         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
3293
3294 2000-06-27  Andrew Haley  <aph@cygnus.com>
3295
3296        * java/io/File.java (createTempFile): Close the FileDescriptor
3297        used to create a temp file.  Fixes some of PR 203.
3298        * java/io/natFileDescriptorPosix.cc (open): Call garbage
3299        collection if we run out of file handles.
3300
3301 2000-06-28  Warren Levy  <warrenl@cygnus.com>
3302
3303         * gnu/java/security/provider/Gnu.java: New file.
3304         * gnu/java/security/provider/SHA.java: New file.
3305         * gnu/java/security/provider/SHA1PRNG.java: New file.
3306         * Makefile.am: Added the above files.
3307         * Makefile.in: Rebuilt.
3308
3309         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3310
3311 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
3312
3313         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3314         (destroyed_flag): Removed.
3315         (isDestroyed, removeGroup, removeThread): Test for parent == null.      
3316         (activeCount): Added spec note.
3317
3318 2000-06-27  Warren Levy  <warrenl@cygnus.com>
3319
3320         * java/security/Principal.java: New file.
3321         * Makefile.am: Added Principal.java.
3322         * Makefile.in: Rebuilt.
3323
3324 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3325
3326         * java/awt/event/MouseEvent.java: Fixed coordinate space
3327         confusion.
3328
3329 2000-06-27  Tom Tromey  <tromey@cygnus.com>
3330
3331         * java/io/PushbackInputStream.java (read): If there are characters
3332         in the buffer, don't also call super.read().
3333         * java/io/PushbackReader.java (read): If there are characters in
3334         the buffer, don't also call super.read().
3335
3336         * java/lang/Double.java (valueOf): Call parseDouble().
3337
3338 2000-06-26  Warren Levy  <warrenl@cygnus.com>
3339
3340         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3341         (newVal): Renamed to newValue.
3342         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3343         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3344         (revokeNow): Renamed to invalidateRefs.
3345         * java/io/OptionalDataException.java: Updated FIXME.
3346         (eof): New placeholder field.
3347         (length); Ditto.
3348         * java/io/WriteAbortedException.java (message): Made transient.
3349         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3350         * java/lang/Throwable.java (stackTrace): Made transient.
3351         * java/net/InetAddress.java: Made Serializable.
3352         * java/security/KeyPair.java: Made Serializable.
3353         * java/security/Provider.java: Replaced with Classpath version that
3354         implements serialization and proper methods.
3355         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3356         (limits): Renamed to choiceLimits.
3357
3358 2000-06-24  Tom Tromey  <tromey@cygnus.com>
3359
3360         * java/lang/natDouble.cc (parseDouble): Renamed from
3361         doubleValueOf.
3362         * java/lang/Double.java (parseDouble): Renamed from
3363         doubleValueOf.  Now public.
3364
3365 2000-06-23  Andrew Haley  <aph@cygnus.com>
3366
3367         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3368         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3369
3370 2000-06-23  Tom Tromey  <tromey@cygnus.com>
3371
3372         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3373         * java/lang/natDouble.cc: Always include <alloca.h>.
3374         Fix for PR libgcj/267.
3375
3376 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
3377
3378         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3379         comply with classpath VM spec.
3380         (add(Group)): Rename to addGroup().
3381         * java/lang/Thread.java (Thread): Use addThread().
3382         * java/lang/natThread.cc (finish_): Use removeThread().
3383
3384 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
3385
3386         * java/lang/ThreadGroup.java: Merged with classpath.
3387         * prims.cc (_Jv_RunMain): Don't use `main_group'.
3388         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3389         argument.
3390         * java/lang/Thread.java (Thread): Bootstrap initial thread from 
3391         ThreadGroup.root if Thread.currentThread is null. Honour the 
3392         ThreadGroup's max priority setting.
3393
3394 2000-06-18  Tom Tromey  <tromey@cygnus.com>
3395
3396         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
3397         returned class.  For PR gcj/260.
3398
3399 2000-06-16  Tom Tromey  <tromey@cygnus.com>
3400
3401         Fix for PR libgcj/261:
3402         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3403         argument.
3404         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3405         argument.  (This is a patch from long ago that somehow went
3406         missing.)
3407
3408 2000-06-15  Tom Tromey  <tromey@cygnus.com>
3409
3410         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3411         (read): Use it.
3412         (write): Likewise.
3413
3414 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
3415
3416         Fix for PR java.lang/258:
3417         * prims.cc (_Jv_PrimClass): Set state of primitive class to 
3418         JV_STATE_DONE, to prevent accidental initialization.
3419         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call 
3420         _Jv_InterfaceAssignableFrom if target is an interface and source is an
3421         interface or an abstract class. Remove redundant initializeClass calls. 
3422         Remove duplicate if_idt test.
3423         (_Jv_InterfaceAssignableFrom): New function.
3424         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3425
3426 2000-05-31  Tom Tromey  <tromey@cygnus.com>
3427
3428         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3429         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3430         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3431         (NUM_OBJECT_METHODS): New define.
3432         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3433         `array_vtable' parameter.  Added assertion.
3434         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3435         parameter.
3436
3437 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
3438
3439         * gcj/cni.h: Include <string.h>.
3440         * defineclass.cc: Include <alloca.h>.
3441         * interpret.cc: Ditto.
3442         * gij.cc: Include <stdlib.h>.
3443
3444 2000-05-30  Tom Tromey  <tromey@cygnus.com>
3445
3446         * include/name-finder.h: Include <sys/wait.h>.
3447         (_Jv_name_finder::pid): Now of type `pid_t'.
3448         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3449         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3450         `proc.waitFor()'.
3451
3452 2000-05-24  Warren Levy  <warrenl@cygnus.com>
3453
3454         * java/io/ObjectOutputStream.java (writeObject): Use component type
3455         when writing arrays.
3456         Fixed typo.
3457
3458 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3459
3460         Fix for PR libgcj/226:
3461         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3462         since this is an installed header.
3463         
3464         Fix for PR libgcj/228:
3465         * java/util/zip/ZipFile (getInputStream): Create inflater with 
3466         nowrapper option.
3467         
3468         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3469         with DataFormatException.       
3470
3471 2000-05-20  Tom Tromey  <tromey@cygnus.com>
3472
3473         * Makefile.in: Rebuilt.
3474         * Makefile.am (hack1): Removed.
3475         (awto_files): Likewise.
3476         (libgcjawt_la_SOURCES): Likewise.
3477         (EXTRA_libgcjawt_la_SOURCES): Likewise.
3478         (libgcjawt_la_DEPENDENCIES): Likewise.
3479         (libgcjawt_la_LIBADD): Likewise.
3480         (libgcjawt_la_LDFLAGS): Likewise.
3481         (libgcjawt_la_LINK): Likewise.
3482         ($(awt_java_source_files:.java=.class)): Likewise.
3483         (libgcj.zip): Don't depend on AWT files.
3484         (MOSTLYCLEANFILES): Don't include AWT files.
3485         ($(awto_files)): Removed.
3486         (nat_headers): Removed AWT files.
3487         (cond_awt_java_source_files): Removed.
3488         (ordinary_java_source_files): Added awt_java_source_files.
3489         * libgcj.spec.in (*lib): Removed -lgcjawt.
3490         * configure: Rebuilt.
3491         * configure.in: Removed --enable-java-awt option.
3492
3493 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3494
3495         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3496         (ZipEntry): Copy the `name' field.
3497         (clone): Implement JDK1.2 method.
3498         (setCompressedSize): ditto.
3499         (hashCode): ditto.
3500
3501 2000-05-19  Tom Tromey  <tromey@cygnus.com>
3502
3503         * java/io/BufferedWriter.java: Merged with Classpath.
3504         * java/io/BufferedOutputStream.java: Merged with Classpath.
3505
3506 2000-05-16  Andrew Haley  <aph@cygnus.com>
3507
3508         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3509         build_ia64_frame_state.
3510         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3511         defintion in gcc.
3512
3513 2000-05-15  Warren Levy  <warrenl@cygnus.com>
3514
3515         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3516         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3517         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3518         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3519         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3520         * gnu/gcj/beans/editors/FontEditor.java: Removed.
3521         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3522         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3523         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3524         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3525         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3526         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3527         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3528         * gnu/gcj/beans/editors/StringEditor.java: Removed.
3529         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3530         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3531         * gnu/gcj/io/NullOutputStream.java: Removed.
3532         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3533         * gnu/gcj/lang/ArrayHelper.java: Removed.
3534         * gnu/gcj/lang/ClassHelper.java: Removed.
3535         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3536
3537         * gnu/java/beans/BeanInfoEmbryo.java: New file.
3538         * gnu/java/beans/EmptyBeanInfo.java: New file.
3539         * gnu/java/beans/ExplicitBeanInfo.java: New file.
3540         * gnu/java/beans/IntrospectionIncubator.java: New file.
3541         * gnu/java/beans/editors/ColorEditor.java: New file.
3542         * gnu/java/beans/editors/FontEditor.java: New file.
3543         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3544         * gnu/java/beans/editors/NativeByteEditor.java: New file.
3545         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3546         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3547         * gnu/java/beans/editors/NativeIntEditor.java: New file.
3548         * gnu/java/beans/editors/NativeLongEditor.java: New file.
3549         * gnu/java/beans/editors/NativeShortEditor.java: New file.
3550         * gnu/java/beans/editors/StringEditor.java: New file.
3551         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3552         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3553         * gnu/java/io/NullOutputStream.java: New file.
3554         * gnu/java/io/ObjectIdentityWrapper.java: New file.
3555         * gnu/java/lang/ArrayHelper.java: New file.
3556         * gnu/java/lang/ClassHelper.java: New file.
3557         * gnu/java/lang/reflect/TypeSignature.java: New file.
3558
3559         * Makefile.am: Updated for moving Classpath files from gnu/gcj
3560         namespace back to the original Classpath gnu/java namespace.
3561         * Makefile.in: Rebuilt.
3562
3563         * java/beans/Beans.java: Namespace change.
3564         * java/beans/EventSetDescriptor.java: Namespace change.
3565         * java/beans/Introspector.java: Namespace change.
3566         * java/beans/PropertyEditorManager.java: Namespace change.
3567         * java/io/ObjectInputStream.java: Namespace change.
3568         * java/io/ObjectOutputStream.java: Namespace change.
3569         * java/io/ObjectStreamClass.java: Namespace change.
3570         * java/io/ObjectStreamField.java: Namespace change.
3571
3572 2000-04-21  Warren Levy  <warrenl@cygnus.com>
3573
3574         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3575         now that compiler patch is available.
3576         Removed unneeded System.loadLibrary.
3577         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3578         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3579
3580 2000-04-19  Andrew Haley  <aph@cygnus.com>
3581
3582         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3583         and target classes have been initialized.
3584
3585 2000-04-19  Andrew Haley  <aph@cygnus.com>
3586
3587         * java/lang/String.java: implement Serializable, Comparable.
3588         (compareTo (Object)): New method.
3589
3590 2000-04-19  Warren Levy  <warrenl@cygnus.com>
3591
3592         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3593         instead of getField to retrieve non-public field.
3594         (getSerialPersistantFields): Ditto.
3595
3596 2000-04-18  Warren Levy  <warrenl@cygnus.com>
3597
3598         * mauve-libgcj: Turned off object serialization tests temporarily
3599         due to compiler error.
3600
3601 2000-04-17  Warren Levy  <warrenl@cygnus.com>
3602
3603         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3604         to avoid build problem.
3605         (DEBUGln): Ditto.
3606         * mauve-libgcj: Turned on object serialization tests.
3607
3608 2000-04-17  Tom Tromey  <tromey@cygnus.com>
3609
3610         * libgcj.spec.in (*lib): Added -lgcjawt.
3611
3612 2000-04-17  Andrew Haley  <aph@cygnus.com>
3613
3614         * Makefile.am: Add new files: 
3615         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3616         gnu/gcj/io/shs.cc.
3617         * Makefile.in: Rebuilt.
3618
3619         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3620         interface that has no implementations.
3621         Check for an attempt to assign an abstract class to an interface.
3622
3623         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3624         if we fail to find MessageDigest.getInstance ("SHA").
3625
3626         * gnu/gcj/io/SimpleSHSStream.java: New file.
3627         * gnu/gcj/io/natSimpleSHSStream.java: New file.
3628         * gnu/gcj/io/shs.cc: New file.
3629         * gnu/gcj/io/shs.h: new file.
3630
3631         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3632         serializable.
3633
3634         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3635         punctuation from the classname of an array element.
3636
3637         * gcj/javaprims.h: Add SimpleDigestStream.
3638         
3639 2000-04-17  Andrew Haley  <aph@cygnus.com>
3640
3641         * java/lang/natClass.cc (getPrivateField): Make recursive calls
3642         to getPrivateField for superclasses.
3643  
3644 2000-04-14  Andrew Haley  <aph@cygnus.com>
3645
3646         * Makefile.am: Add new files:
3647         java/io/ObjectOutputStream$PutField.h,
3648         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3649         java/io/natObjectOutputStream.cc
3650         * Makefile.in: Rebuilt.
3651         * gcj/Makefile.in: Rebuilt.
3652         * include/Makefile.in: Rebuilt.
3653         * java/lang/Class.h (getPrivateField): New method.
3654         (getPrivateMethod): Ditto.
3655         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3656         and java::io::ObjectStreamClass our friends.
3657         * java/lang/natClass.cc (getPrivateField): New method.
3658         (getPrivateMethod): Ditto.
3659         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3660         * gcj/javaprims.h: Add serialization classes.   
3661         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3662         (setByteField): Ditto.
3663         (setCharField): Ditto.
3664         (setDoubleField): Ditto.
3665         (setFloatField): Ditto.
3666         (setIntField): Ditto.
3667         (setLongField): Ditto.
3668         (setShortField): Ditto.
3669         (setObjectField): Ditto.
3670         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3671         Java.
3672         (getByteField): Ditto.
3673         (getCharField): Ditto.
3674         (getDoubleField): Ditto.
3675         (getFloatField): Ditto.
3676         (getIntField): Ditto.
3677         (getLongField): Ditto.
3678         (getShortField): Ditto.
3679         (getObjectField): Ditto.
3680         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3681         Java.
3682         (getSerialPersistantFields): Ditto.
3683         (getDefinedSUID): Ditto.
3684         * java/io/natObjectOutputStream.cc: New file.
3685         * java/io/natObjectInputStream.cc: New file.
3686         
3687 2000-04-13  Warren Levy  <warrenl@cygnus.com>
3688
3689         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3690         problems.  Revert to previous version to reproduce and when fixed.
3691
3692 2000-04-13  Warren Levy  <warrenl@cygnus.com>
3693
3694         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3695         * gnu/gcj/io/NullOutputStream.java: New file.
3696         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3697         * java/io/BlockDataException.java: New file.
3698         * java/io/Externalizable.java: New file.
3699         * java/io/InvalidClassException.java: New file.
3700         * java/io/InvalidObjectException.java: New file.
3701         * java/io/NotActiveException.java: New file.
3702         * java/io/NotSerializableException.java: New file.
3703         * java/io/ObjectInput.java: New file.
3704         * java/io/ObjectInputStream.java: New file.
3705         * java/io/ObjectInputValidation.java: New file.
3706         * java/io/ObjectOutput.java: New file.
3707         * java/io/ObjectOutputStream.java: New file.
3708         * java/io/ObjectStreamClass.java: New file.
3709         * java/io/ObjectStreamConstants.java: New file.
3710         * java/io/ObjectStreamField.java: New file.
3711         * java/io/Replaceable.java: New file.
3712         * java/io/Resolvable.java: New file.
3713         * java/io/SerializablePermission.java: New file.
3714         * java/io/WriteAbortedException.java: New file.
3715         * java/security/BasicPermission.java: New file.
3716         * java/security/DigestOutputStream.java: New file.
3717         * java/security/Guard.java: New file.
3718         * java/security/Permission.java: New file.
3719         * java/security/PermissionCollection.java: New file.
3720         * Makefile.am: Added above files.
3721         * Makefile.in: Rebuilt.
3722
3723         * java/beans/Beans.java (instantiate): Activated serialization code.
3724         * java/lang/SecurityManager.java (checkPermission): New method.
3725
3726 2000-04-12  Warren Levy  <warrenl@cygnus.com>
3727
3728         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3729         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3730         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3731         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3732         * gnu/gcj/beans/editors/ColorEditor.java: New file.
3733         * gnu/gcj/beans/editors/FontEditor.java: New file.
3734         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3735         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3736         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3737         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3738         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3739         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3740         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3741         * gnu/gcj/beans/editors/StringEditor.java: New file.
3742         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3743         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3744         * gnu/gcj/lang/ArrayHelper.java: New file.
3745         * gnu/gcj/lang/ClassHelper.java: New file.
3746         * java/beans/BeanDescriptor.java: New file.
3747         * java/beans/BeanInfo.java: New file.
3748         * java/beans/Beans.java: New file.
3749         * java/beans/Customizer.java: New file.
3750         * java/beans/DesignMode.java: New file.
3751         * java/beans/EventSetDescriptor.java: New file.
3752         * java/beans/FeatureDescriptor.java: New file.
3753         * java/beans/IndexedPropertyDescriptor.java: New file.
3754         * java/beans/IntrospectionException.java: New file.
3755         * java/beans/Introspector.java: New file.
3756         * java/beans/MethodDescriptor.java: New file.
3757         * java/beans/ParameterDescriptor.java: New file.
3758         * java/beans/PropertyChangeEvent.java: New file.
3759         * java/beans/PropertyChangeListener.java: New file.
3760         * java/beans/PropertyChangeSupport.java: New file.
3761         * java/beans/PropertyDescriptor.java: New file.
3762         * java/beans/PropertyEditor.java: New file.
3763         * java/beans/PropertyEditorManager.java: New file.
3764         * java/beans/PropertyEditorSupport.java: New file.
3765         * java/beans/PropertyVetoException.java: New file.
3766         * java/beans/SimpleBeanInfo.java: New file.
3767         * java/beans/VetoableChangeListener.java: New file.
3768         * java/beans/VetoableChangeSupport.java: New file.
3769         * java/beans/Visibility.java: New file.
3770         * java/beans/beancontext/BeanContext.java: New file.
3771         * java/beans/beancontext/BeanContextChild.java: New file.
3772         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3773         * java/beans/beancontext/BeanContextChildSupport.java: New file.
3774         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3775         * java/beans/beancontext/BeanContextEvent.java: New file.
3776         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3777         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3778         * java/beans/beancontext/BeanContextProxy.java: New file.
3779         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3780         New file.
3781         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3782         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3783         New file.
3784         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3785         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3786         New file.
3787         * java/beans/beancontext/BeanContextServices.java: New file.
3788         * java/beans/beancontext/BeanContextServicesListener.java: New file.
3789         * java/util/AbstractCollection.java: New file.
3790         * java/util/AbstractList.java: New file.
3791         * java/util/Arrays.java: New file.
3792         * Makefile.am: Added above files.
3793         * Makefile.in: Rebuilt.
3794
3795 2000-04-11  Warren Levy  <warrenl@cygnus.com>
3796
3797         * java/awt/AWTError.java: New file.
3798         * java/awt/AWTEvent.java: New file.
3799         * java/awt/AWTException.java: New file.
3800         * java/awt/ActiveEvent.java: New file.
3801         * java/awt/Adjustable.java: New file.
3802         * java/awt/BorderLayout.java: New file.
3803         * java/awt/Color.java: New file.
3804         * java/awt/Component.java: New file.
3805         * java/awt/Container.java: New file.
3806         * java/awt/Dimension.java: New file.
3807         * java/awt/Event.java: New file.
3808         * java/awt/Font.java: New file.
3809         * java/awt/Frame.java: New file.
3810         * java/awt/Graphics.java: New file.
3811         * java/awt/IllegalComponentStateException.java: New file.
3812         * java/awt/Image.java: New file.
3813         * java/awt/ItemSelectable.java: New file.
3814         * java/awt/LayoutManager.java: New file.
3815         * java/awt/LayoutManager2.java: New file.
3816         * java/awt/Menu.java: New file.
3817         * java/awt/MenuBar.java: New file.
3818         * java/awt/MenuComponent.java: New file.
3819         * java/awt/MenuContainer.java: New file.
3820         * java/awt/MenuItem.java: New file.
3821         * java/awt/Paint.java: New file.
3822         * java/awt/PaintContext.java: New file.
3823         * java/awt/Point.java: New file.
3824         * java/awt/Rectangle.java: New file.
3825         * java/awt/Shape.java: New file.
3826         * java/awt/TextArea.java: New file.
3827         * java/awt/TextComponent.java: New file.
3828         * java/awt/Toolkit.java: New file.
3829         * java/awt/Transparency.java: New file.
3830         * java/awt/Window.java: New file.
3831         * java/awt/natToolkit.cc: New file.
3832         * java/awt/event/AWTEventListener.java: New file.
3833         * java/awt/event/ActionEvent.java: New file.
3834         * java/awt/event/ActionListener.java: New file.
3835         * java/awt/event/AdjustmentEvent.java: New file.
3836         * java/awt/event/AdjustmentListener.java: New file.
3837         * java/awt/event/ComponentAdapter.java: New file.
3838         * java/awt/event/ComponentEvent.java: New file.
3839         * java/awt/event/ComponentListener.java: New file.
3840         * java/awt/event/ContainerAdapter.java: New file.
3841         * java/awt/event/ContainerEvent.java: New file.
3842         * java/awt/event/ContainerListener.java: New file.
3843         * java/awt/event/FocusAdapter.java: New file.
3844         * java/awt/event/FocusEvent.java: New file.
3845         * java/awt/event/FocusListener.java: New file.
3846         * java/awt/event/InputEvent.java: New file.
3847         * java/awt/event/InputMethodEvent.java: New file.
3848         * java/awt/event/InputMethodListener.java: New file.
3849         * java/awt/event/InvocationEvent.java: New file.
3850         * java/awt/event/ItemEvent.java: New file.
3851         * java/awt/event/ItemListener.java: New file.
3852         * java/awt/event/KeyAdapter.java: New file.
3853         * java/awt/event/KeyEvent.java: New file.
3854         * java/awt/event/KeyListener.java: New file.
3855         * java/awt/event/MouseAdapter.java: New file.
3856         * java/awt/event/MouseEvent.java: New file.
3857         * java/awt/event/MouseListener.java: New file.
3858         * java/awt/event/MouseMotionAdapter.java: New file.
3859         * java/awt/event/MouseMotionListener.java: New file.
3860         * java/awt/event/PaintEvent.java: New file.
3861         * java/awt/event/TextEvent.java: New file.
3862         * java/awt/event/TextListener.java: New file.
3863         * java/awt/event/WindowAdapter.java: New file.
3864         * java/awt/event/WindowEvent.java: New file.
3865         * java/awt/event/WindowListener.java: New file.
3866         * java/awt/geom/Dimension2D.java: New file.
3867         * java/awt/geom/Point2D.java: New file.
3868         * java/awt/peer/ComponentPeer.java: New file.
3869         * java/awt/peer/ContainerPeer.java: New file.
3870         * java/awt/peer/FramePeer.java: New file.
3871         * java/awt/peer/WindowPeer.java: New file.
3872         * java/util/Collection.java: New file.
3873         * java/util/Comparator.java: New file.
3874         * java/util/Iterator.java: New file.
3875         * java/util/List.java: New file.
3876         * java/util/ListIterator.java: New file.
3877         * Makefile.am: Added above files.
3878         * Makefile.in: Rebuilt.
3879
3880 2000-04-10  Warren Levy  <warrenl@cygnus.com>
3881
3882         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3883         * java/lang/FirstThread.java: Ditto.
3884         * java/lang/StringBuffer.java: Ditto.
3885         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3886
3887         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3888         Special case handled in java.math.BigInteger.
3889         * java/math/BigInteger.java (divide): Handle the special case when
3890         dividing by 1 and the high bit of the dividend is set.
3891         (setShiftRight): Handle case when count == 0.
3892
3893 2000-04-05  Andrew Haley  <aph@cygnus.com>
3894
3895         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3896         special case.
3897
3898 2000-04-05  Andrew Haley  <aph@cygnus.com>
3899
3900         * sysdep/ia64.c (rse_address_add): Delete.
3901         (IS_NaT_COLLECTION_ADDR): Delete.
3902         (ia64_backtrace_helper): check for null unwind_info.
3903         
3904         * sysdep/ia64-frame.h: add calc_caller_bsp.
3905
3906         * java/lang/natThrowable.cc (printRawStackTrace): Flush
3907         PrintWriter.
3908
3909         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3910         (_Jv_remI): Likewise.
3911         (_Jv_divJ): Likewise.
3912         (_Jv_remJ): Likewise.
3913         
3914         * interpret.cc (continue1): Use divide subroutines to guarantee
3915         correct Java standard behaviour.
3916         Floating-point division should not abort; make it so.
3917
3918 2000-03-29  Tom Tromey  <tromey@cygnus.com>
3919
3920         * configure: Rebuilt.
3921         * configure.in: Test against `libgcj_sjlj', not
3922         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
3923         to be set even when using sjlj.
3924
3925 2000-03-24  Andrew Haley  <aph@cygnus.com>
3926
3927         * Makefile.am: Add file addr2name.awk.
3928         * Makefile.in: Rebuilt.
3929         * addr2name.awk: New file.
3930         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3931         lookups on ia64.
3932         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3933         blank line.
3934         
3935 2000-03-22  Andrew Haley  <aph@cygnus.com>
3936
3937         * configure.host: Add -funwind-tables for IA64.
3938         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3939         * Makefile.in: Rebuilt.
3940         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3941         * sysdep/ia64.c: New file.
3942         * sysdep/ia64-frame.h: New file.
3943         * configure.in: Add sysdep/ia64.c for ia64.
3944         * configure: Rebuilt.
3945         
3946 2000-03-17  Andrew Haley  <aph@cygnus.com>
3947
3948         * java/lang/natString.cc: Remove `register' keyword.
3949         interpret.cc: ditto.
3950
3951 2000-03-16  Andrew Haley  <aph@cygnus.com>
3952
3953         * configure.host (ia64): Enable interpreter.
3954
3955 2000-03-14  Hans Boehm  <boehm@acm.org>
3956
3957         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3958
3959 2000-03-14  Andrew Haley  <aph@cygnus.com>
3960
3961         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3962         `_exception'.
3963
3964 2000-03-10  Andrew Haley  <aph@cygnus.com>
3965
3966         * java/lang/ieeefp.h: Import latest version from fdlibm.
3967
3968 2000-03-14  Andrew Haley  <aph@cygnus.com>
3969
3970         * prims.cc (_Jv_ThrowSignal): New function.
3971         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3972         (catch_fpe): Ditto.
3973         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3974         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3975         * include/ppc-signal.h: New file.
3976
3977 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
3978
3979         * java/lang/Thread.java: Declare `data' as Object, not RawData.
3980         * java/lang/natThread.java (initialize_native): Cast `data' to
3981         jobject.
3982         * gnu/gcj/RawData.java: Clarify documentation.
3983
3984         From Gregory R. Warnes <warnes@biostat.washington.edu>:
3985         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3986         `jarFile', not `jarFileURL'.
3987
3988 2000-05-15  Andrew Haley  <aph@cygnus.com>
3989
3990         * include/ppc-signal.h: New file.
3991
3992 2000-05-11  Tom Tromey  <tromey@cygnus.com>
3993
3994         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3995         file headers, don't include `size' in the skip call.
3996
3997 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
3998
3999         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4000         Avoid arrayCopy() call where possible. Update `count' _after_ calling
4001         arrayCopy().
4002         (replace): Reimplemented. Fix javadoc.
4003         (reverse): Call ensureCapacity_unsynchronized().
4004         (StringBuffer (String)): Use DEFAULT_CAPACITY.
4005
4006         (replace): Calculate length for arraycopy() correctly.
4007         
4008 2000-05-09  Tom Tromey  <tromey@cygnus.com>
4009
4010         * java/lang/StringBuffer.java (toString): Don't mark buffer as
4011         shared.
4012         (insert(int,char[],int,int): New method.
4013         (delete): New method from Classpath.
4014         (deleteCharAt): Likewise.
4015         (substring): Likewise.
4016         (shared): No longer private.
4017         Added JavaDoc comments from Classpath.
4018         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4019         shared.
4020
4021 2000-05-07  Tom Tromey  <tromey@cygnus.com>
4022
4023         * Makefile.in: Rebuilt.
4024         * Makefile.am (LIBLINK): New macro.
4025         (libgcj_la_LINK): Use it.
4026         (libgcjawt_la_LINK): Likewise.
4027
4028 2000-05-06  Tom Tromey  <tromey@cygnus.com>
4029
4030         * Makefile.in: Rebuilt.
4031         * Makefile.am (libgcj.zip): Don't pass -L to javac.
4032
4033 2000-05-05  Tom Tromey  <tromey@cygnus.com>
4034
4035         Fix for PR libgcj/220:
4036         * Makefile.in: Rebuilt.
4037         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4038         (jv_convert_LDFLAGS): Likewise.
4039         (libgcj_la_LDFLAGS): Likewise.
4040         (GCJLINK): New macro.
4041         (jv_convert_LINK): Use it.
4042         (gij_LINK): Likewise.
4043         (libgcj_la_LINK): New macro.
4044         (libgcjawt_la_LINK): Likewise.
4045
4046 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4047
4048         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4049         field.
4050         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
4051         `0x0008'.
4052         Include Modifier.h.
4053
4054 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
4055
4056         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4057         (_Jv_IsAssignableFrom): Ditto.
4058         (_Jv_IsInstanceOf): Ditto.
4059         (_Jv_CheckCast): Ditto.
4060         (_Jv_CheckArrayStore): Ditto.
4061         * java/lang/Class.h (_Jv_InitClass): Ditto.     
4062         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4063         not `0'.
4064         (notify): Ditto.
4065         (notifyAll): Ditto.
4066         (wait): Ditto.
4067         (_Jv_MonitorExit): Ditto.
4068         * boehm.cc (_Jv_MarkObj): Ditto.
4069         (_Jv_MarkObj): Ditto.
4070         (_Jv_MarkArray): Ditto.
4071         * prims.cc (_Jv_AllocObject): Ditto.
4072         (_Jv_NewObjectArray): Ditto.
4073         (_Jv_NewPrimArray): Ditto.
4074         (_Jv_Malloc): Ditto.
4075         (_Jv_Realloc): Ditto.
4076         (_Jv_MallocUnchecked): Ditto.
4077         (_Jv_divI): Ditto.
4078         (_Jv_remI): Ditto.
4079         (_Jv_divJ): Ditto.
4080         (_Jv_remJ): Ditto.
4081
4082 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4083
4084         * java/util/Locale.java (Locale): Don't explicitly check for
4085         null.
4086         * java/util/Hashtable.java (containsKey): Don't explicitly check
4087         for null.
4088         (get): Likewise.
4089         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4090         null.
4091         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4092         for null.
4093         * java/text/StringCharacterIterator.java
4094         (StringCharacterIterator): Don't check for null.
4095         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4096         for null pointer.
4097         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4098         check for null pointer.
4099         (leaveGroup): Likewise.
4100         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4101         comment.
4102         (setData): Likewise.
4103         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4104         for `p==null'.
4105
4106 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
4107
4108         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4109         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4110         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4111         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4112         -rpath for in-gcc builds.
4113         * Makefile.in: Rebuilt.
4114
4115 2000-04-28  Tom Tromey  <tromey@cygnus.com>
4116
4117         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4118         Fix for PR gcj/218.
4119
4120 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
4121
4122         * libjava/java/lang/String.java (toString): Remove `final' hack.
4123
4124 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4125
4126         Runtime support for PR gcj/2:
4127         * prims.cc (_Jv_ThrowNullPointerException): New function.
4128         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4129
4130 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
4131
4132         * prims.cc (_Jv_NewObjectArray): Fix typo.
4133
4134 2000-04-26  Tom Tromey  <tromey@cygnus.com>
4135
4136         * Makefile.in: Rebuilt.
4137         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4138
4139 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
4140
4141         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4142         calling main.
4143
4144 2000-04-22  Anthony Green  <green@cygnus.com>
4145
4146         * include/jvm.h (__builtin_expect): Define as unused for now.
4147         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4148         (notify): Ditto.
4149         (notifyAll): Ditto.
4150         (wait): Ditto.
4151         (_Jv_MonitorExit): Ditto.
4152         * boehm.cc (_Jv_MarkObj): Ditto.
4153         (_Jv_MarkObj): Ditto.
4154         (_Jv_MarkArray): Ditto.
4155         (_Jv_AllocBytes): Ditto.
4156         * prims.cc (_Jv_AllocObject): Ditto.
4157         (_Jv_NewObjectArray): Ditto.
4158         (_Jv_NewPrimArray): Ditto.
4159         (_Jv_Malloc): Ditto.
4160         (_Jv_Realloc): Ditto.
4161         (_Jv_MallocUnchecked): Ditto.
4162         (_Jv_divI): Ditto.
4163         (_Jv_remI): Ditto.
4164         (_Jv_divJ): Ditto.
4165         (_Jv_remJ): Ditto.
4166
4167         * include/Makefile.in: Rebuilt.
4168         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4169
4170 2000-04-21  Tom Tromey  <tromey@cygnus.com>
4171
4172         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4173         Yet another new version from Classpath.
4174
4175         Fix for PR libgcj/15:
4176         * java/util/natGregorianCalendar.cc (_REENTRANT,
4177         _POSIX_PTHREAD_SEMANTICS): Don't define.
4178         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4179         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4180         Don't define.
4181         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4182         define.
4183         * configure: Rebuilt.
4184         * configure.in: If using POSIX threads, define _REENTRANT if
4185         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
4186         GETHOSTBYNAME_R_NEEDS_REENTRANT.
4187
4188         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4189         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4190         version from Classpath.
4191
4192         Fix for PR libgcj/213:
4193         * Makefile.in: Rebuilt.
4194         * Makefile.am (gij_SOURCES): Added gij.cc.
4195         (EXTRA_gij_SOURCES): Removed.
4196         (gij_LDADD): Removed gij.lo.
4197         (gij_DEPENDENCIES): Likewise.
4198         ($(gij_OBJECTS)): Depend on nat_headers.
4199
4200         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4201         `setURL', not `url.set'.
4202
4203 2000-04-20  Tom Tromey  <tromey@cygnus.com>
4204
4205         Fix for PR java.io/204:
4206         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4207         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4208         from Classpath.
4209
4210         Fix for PR libgcj/212:
4211         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4212         * include/jvm.h (_Jv_word, _Jv_word2): Define.
4213         * java/lang/Class.h (_Jv_word): Declare.
4214
4215         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4216
4217 2000-04-19  Tom Tromey  <tromey@cygnus.com>
4218
4219         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4220         doesn't have a loader.
4221
4222 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
4223
4224         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4225         MAYBE_MARK to ptr_t, for compatibility with new GC version.
4226
4227 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
4228
4229         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4230         libgcj/202.
4231         (available): Initialize `where' to prevent bogus compiler warning.
4232
4233 2000-04-12  Tom Tromey  <tromey@cygnus.com>
4234
4235         * java/lang/natString.cc (intern): Temporarily disable finalizer
4236         registration.
4237
4238         * java/lang/natString.cc (unintern): Added `obj' argument.
4239         (intern): Register finalizer for string.
4240         * java/lang/String.java (unintern): Now static; added obj
4241         argument.
4242
4243 2000-04-11  Tom Tromey  <tromey@cygnus.com>
4244
4245         * java/util/Vector.java (VectorEnumeration): Now `final'.
4246         * java/util/Hashtable.java (HashtableEntry): Now `final'.
4247         (HashtableEnumeration): Likewise.
4248         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4249         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4250
4251 2000-04-10  Warren Levy  <warrenl@cygnus.com>
4252
4253         * java/io/ObjectStreamException.java: New file.
4254         * java/io/OptionalDataException.java: New file.
4255         * java/io/StreamCorruptedException.java: New file.
4256         * java/math/BigDecimal.java: New file.
4257         * java/sql/CallableStatement.java: New file.
4258         * java/sql/Connection.java: New file.
4259         * java/sql/DataTruncation.java: New file.
4260         * java/sql/DatabaseMetaData.java: New file.
4261         * java/sql/Date.java: New file.
4262         * java/sql/Driver.java: New file.
4263         * java/sql/DriverManager.java: New file.
4264         * java/sql/DriverPropertyInfo.java: New file.
4265         * java/sql/PreparedStatement.java: New file.
4266         * java/sql/ResultSet.java: New file.
4267         * java/sql/ResultSetMetaData.java: New file.
4268         * java/sql/SQLException.java: New file.
4269         * java/sql/SQLWarning.java: New file.
4270         * java/sql/Statement.java: New file.
4271         * java/sql/Time.java: New file.
4272         * java/sql/Timestamp.java: New file.
4273         * java/sql/Types.java: New file.
4274         * Makefile.am: Added above new files.
4275         * Makefile.in: Rebuilt.
4276
4277         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4278         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4279         DatagramSocket constructor instead of null.
4280
4281 2000-04-08  Anthony Green  <green@cygnus.com>
4282
4283         * include/posix-threads.h (_Jv_MutexUnlock): Replace
4284         _JV_NOT_OWNER.
4285         
4286 2000-04-08  Anthony Green  <green@cygnus.com>
4287
4288         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4289         (_Jv_MutexUnlock): Ditto.
4290         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4291         (_Jv_MutexUnlock): Ditto.
4292
4293 2000-04-08  Anthony Green  <green@cygnus.com>
4294
4295         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4296         (ensureCapacity_unsynchronized): New private method.
4297         (append): Use ensureCapacity_unsynchronized.
4298
4299 2000-04-08  Tom Tromey  <tromey@cygnus.com>
4300
4301         * Makefile.in: Rebuilt.
4302         * Makefile.am (awt_java_source_files): Added new files.
4303         * java/awt/IllegalComponentStateException.java: New file.
4304         * java/awt/ItemSelectable.java: New file.
4305         * java/awt/event/WindowEvent.java: Finished.
4306         * java/awt/event/TextEvent.java: Finished.
4307         * java/awt/event/ContainerEvent.java: New file.
4308         * java/awt/Component.java (getX, getY): New methods.
4309         * java/awt/event/PaintEvent.java: New file.
4310         * java/awt/event/MouseEvent.java: New file.
4311         * java/awt/ActiveEvent.java: New file.
4312         * java/awt/event/KeyEvent.java: Finished.
4313         * java/awt/event/ItemEvent.java: New file.
4314         * java/awt/Adjustable.java: New file.
4315         * java/awt/event/InputMethodEvent.java: New file.
4316         * java/awt/event/InputEvent.java: Finished.
4317         * java/awt/event/FocusEvent.java: New file.
4318         * java/awt/event/MouseMotionAdapter.java: New file.
4319         * java/awt/event/MouseAdapter.java: New file.
4320         * java/awt/event/KeyAdapter.java: New file.
4321         * java/awt/event/FocusAdapter.java: New file.
4322         * java/awt/event/ContainerAdapter.java: New file.
4323         * java/awt/event/ComponentEvent.java: Finished.
4324         * java/awt/event/AdjustmentEvent.java: New file.
4325         * java/awt/event/ComponentAdapter.java: New file.
4326         * java/awt/event/ActionEvent.java: Finished.
4327         * java/awt/event/MouseMotionListener.java: New file.
4328         * java/awt/event/MouseListener.java: New file.
4329         * java/awt/event/ItemListener.java: New file.
4330         * java/awt/event/InputMethodListener.java: New file.
4331         * java/awt/event/ContainerListener.java: New file.
4332         * java/awt/event/FocusListener.java: New file.
4333         * java/awt/event/ComponentListener.java: New file.
4334         * java/awt/event/AWTEventListener.java: New file.
4335         * java/awt/event/AdjustmentListener.java: New file.
4336
4337 2000-04-08  Anthony Green  <green@cygnus.com>
4338
4339         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4340         check when we have to.
4341
4342         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4343         x) as `inline'.
4344
4345         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
4346         one method call.
4347
4348         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4349         inline hasMoreElements.
4350
4351 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4352
4353         * configure: Rebuilt.
4354         * configure.in: Recognize --enable-java-awt.
4355         (AWT): New conditional.
4356         * Makefile.in: Rebuilt.
4357         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4358         requested.
4359         (libgcjawt_la_SOURCES): New macro.
4360         (EXTRA_libgcjawt_la_SOURCES): Likewise.
4361         (libgcjawt_la_DEPENDENCIES): Likewise.
4362         (libgcjawt_la_LIBADD): Likewise.
4363         (libgcjawt_la_LDFLAGS): Likewise.
4364         (libgcj.zip): Depend on cond_java_awt_source_files
4365         (cond_awt_java_source_files): New macro.
4366         (MOSTLYCLEANFILES): Added awto_files.
4367         (awto_files): New macro.  Use where javao_files used.
4368         (nat_headers): Use cond_awt_java_source_files.
4369
4370 2000-04-04  Tom Tromey  <tromey@cygnus.com>
4371
4372         * Makefile.in: Rebuilt.
4373         * Makefile.am (awt_java_source_files): Added AWTException.java.
4374         * java/awt/AWTException.java: New file.
4375
4376 2000-04-03  Tom Tromey  <tromey@cygnus.com>
4377
4378         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4379         commentary from Alex.
4380
4381         * Makefile.in: Rebuilt.
4382         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4383         From H.J. Lu.
4384
4385 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
4386
4387         * configure: Rebuilt.
4388         * configure.in: Add --disable-jvmpi.
4389         * include/config.h.in: Rebuilt.
4390         * acconfig.h: Add ENABLE_JVMPI.
4391          
4392         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4393         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4394         (_Jv_JVMPI_Notify_THREAD_END): New define.
4395         (_Jv_JVMPI_Notify_THREAD_END): New define.
4396         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4397         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4398         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4399
4400         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4401         events.
4402
4403         * java/lang/natThread.cc: Include JVMPI headers if necessary.
4404         (finish_): Generate JVMPI thread end events.
4405         (run_): Generate JVMPI thread start events.
4406         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4407         preloaded JNI library.
4408         Include JVMPI headers if necessary.
4409         (run): Generate JVMPI thread start events.
4410
4411         * boehm.cc: Define GC_disable and GC_enable.
4412         (_Jv_DisableGC): New function.
4413         (_Jv_EnableGC): New function.
4414         (disable_gc_mutex): Declare.
4415         * nogc.cc (_Jv_DisableGC): New function.
4416         (_Jv_EnableGC): New function.
4417           
4418         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4419         (_Jv_JVMPI_Interface): Define.
4420         (jvmpiEnableEvent): New function.
4421         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4422           
4423         * include/jvmpi.h: New file.
4424
4425 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
4426
4427         * Makefile.in: New #defines and friends for Thread.h.
4428         * Makefile.am: Ditto.
4429         * posix-threads.cc: (struct starter): Remove `object'.
4430         (_Jv_CondWait): Use interruptable condition variables and new
4431         recursive mutexes. New return codes on interrupt or non-ownership
4432         of mutex.
4433         (_Jv_CondNotify): Ditto.
4434         (_Jv_CondNotifyAll): Ditto.
4435         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4436         the target thread by signaling its wait condition.
4437         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4438         not the starter struct. Initialize wait_mutex and wait_cond.
4439         (_Jv_MutexLock): New recursive mutex implementation. Moved from 
4440         posix-threads.h.
4441         (_Jv_MutexUnlock): Ditto.
4442         (really_start): Set info->data->thread from pthread_self() to work 
4443         around a race condition. Destroy wait_mutex and wait_cond when run()
4444         returns.
4445         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4446         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4447         set.
4448         startable_flag: New private field.
4449         (Thread): Initialize `startable_flag'.
4450         (toString): Check for null thread group.
4451         * java/lang/natThread.cc: (struct natThread): New fields 
4452         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4453         (class locker): Removed.
4454         (initialize_native): Initialize `join_cond' and `join_mutex'.
4455         (interrupt): Now just calls _Jv_ThreadInterrupt().
4456         (join): Simplified. Just wait on the target thread's join condition.
4457         (finish_): Remove join list code. Unset thread group. Signal
4458         potential joiners by notifying the dying threads join_cond.
4459         (start): Check for illegal restarts.
4460         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4461         act appropriatly.
4462         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4463         #defines and #ifdefs.
4464         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4465         `wait_mutex', `next'.
4466         (struct _Jv_ConditionVariable_t): Define as a struct instead of 
4467         directly mapping to pthread_cond_t.
4468         (struct _Jv_Mutex_t): New recursive implementation.
4469         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4470         _Jv_HaveCondDestroy: Never define this for posix-threads.
4471         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4472         (_Jv_CondNotifyAll): Ditto.
4473         (_Jv_MutexLock): Ditto.
4474         (_Jv_MutexUnlock): Ditto.
4475         (_Jv_MutexInit): Changed to reflect new mutex implementation.
4476         (_Jv_MutexDestroy): Ditto.
4477         (_Jv_CondDestroy): Removed.
4478         (_Jv_PthreadGetMutex): Removed.
4479         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an 
4480         error. Add a FIXME about this.
4481         (_Jv_CondNotifyAll): Ditto.
4482         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess 
4483         _JV_NOT_OWNER on other errors. Add FIXME.
4484
4485 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4486
4487         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4488         set, throw it.
4489         (call): Don't throw exception here.
4490
4491 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4492
4493         * java/lang/mprec.h: Use SIZEOF_VOID_P.
4494         * interpret.cc: Use SIZEOF_VOID_P.
4495         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4496         (_Jv_loadLong): Likewise.
4497         (_Jv_storeDouble): Likewise.
4498         * configure: Rebuilt.
4499         * configure.in: Check size of void*.
4500
4501         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4502
4503 2000-03-26  Hans Boehm  <boehm@acm.org>
4504
4505         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4506         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4507         machine.
4508         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4509         __IEEE_LITTLE_ENDIAN appropriately on IA64.
4510         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4511         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4512         case.
4513         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4514         (FFI_RAW_SIZE): Likewise.
4515         (_Jv_InterpMethod::ncode): Use them.
4516         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4517         STORED): Define differently on a 64 bit machine.
4518         (continue1): Use ffi_java_raw_call when appropriate.
4519  
4520 2000-03-24  Warren Levy  <warrenl@cygnus.com>
4521
4522         * java/math/BigInteger.java(divide): Handle the special case when
4523         dividing by 1 and the high bit of the dividend is set.
4524         (setShiftRight): Handle case when count == 0.
4525
4526 2000-03-24  Warren Levy  <warrenl@cygnus.com>
4527
4528         * java/awt/Font.java(isBold): Fix syntax error.
4529         (isItalic): ditto.
4530         * java/awt/Frame.java(postEvent): ditto.
4531         * java/awt/Menu.java(postEvent): ditto.
4532         * java/awt/MenuBar.java(postEvent): ditto.
4533         * java/awt/Toolkit.java(init): Included a stub.
4534
4535 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
4536
4537         * java/awt/Event.java: Add all the event type constants.
4538         (Event): Implemented constructors.
4539         (controlDown): Implemented.
4540         (metaDown): Implemented.
4541         (paramString): Stubbed.
4542         (shiftDown): Implemented.
4543         (toString): Implemented.
4544         (translate): Implemented.
4545
4546 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
4547
4548         * java/lang/natClass.cc (isInstance): Initialize `this'.
4549         (isAssignableFrom): Initialize `this' and `klass'.
4550         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
4551         implemented by any loaded class, so return false.
4552         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
4553         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4554
4555 2000-03-19  Warren Levy  <warrenl@cygnus.com>
4556
4557         * java/awt/Color.java: Specified java.io for Serializable.
4558         * java/awt/Toolkit.java: Imported java.net.URL.
4559
4560 2000-03-19  Warren Levy  <warrenl@cygnus.com>
4561
4562         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4563
4564 2000-03-16  Warren Levy  <warrenl@cygnus.com>
4565
4566         * java/awt/Color.java: New file.
4567         * java/awt/Graphics.java: New file.
4568         * java/awt/Image.java: New file.
4569         * java/awt/Paint.java: New file.
4570         * java/awt/PaintContext.java: New file.
4571         * java/awt/Transparency.java: New file.
4572         * java/util/Collection.java: New file.
4573         * java/util/Comparator.java: New file.
4574         * java/util/Iterator.java: New file.
4575         * java/util/List.java: New file.
4576         * java/util/ListIterator.java: New file.
4577         * Makefile.am: Added above new files.
4578         * Makefile.in: Rebuilt.
4579
4580         * java/awt/Font.java (PLAIN): New field.
4581         (BOLD): New field.
4582         (ITALIC): New field.
4583         (ROMAN_BASELINE): New field.
4584         (CENTER_BASELINE): New field.
4585         (HANGING_BASELINE): New field.
4586         (name): New field.
4587         (style): New field.
4588         (size): New field.
4589         (pointSize): New field.
4590         (Font): Implemented constructor.
4591         (isPlain): Implemented method.
4592         (isBold): Implemented method.
4593         (isItalic): Implemented method.
4594         (getName): Implemented method.
4595         (getStyle): Implemented method.
4596         (getSize): Implemented method.
4597         (getSize2D): Implemented method.
4598         (decode): Stubbed.
4599         * java/awt/Frame.java (getFont): Stubbed.
4600         (postEvent): Stubbed.
4601         (remove): Stubbed.
4602         * java/awt/Menu.java (postEvent): Stubbed.
4603         * java/awt/MenuBar.java (getFont): Stubbed.
4604         (postEvent): Stubbed.
4605         * java/awt/Toolkit.java (getImage): Added abstract method.
4606
4607 2000-03-15  Tom Tromey  <tromey@cygnus.com>
4608
4609         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4610
4611         * prims.cc (win32_exception_handler): Reformatted.
4612
4613         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4614         (_Jv_HaveMutexDestroy): Likewise.
4615
4616 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4617
4618         * java/io/natFileDescriptorWin32.cc: New file.
4619         * java/io/natFileWin32.cc: New file.
4620         * java/net/natInetAddress.cc: Added conditional inclusion of
4621         Windows / Winsock headers.
4622         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4623         inclusion of Windows / Winsock headers.
4624         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4625         Windows / Winsock headers.
4626         * include/win32-signal.h: New file.
4627         * include/win32-threads.h: New file.
4628         * win32-threads.cc: New file.
4629         * exception.cc (win32_get_restart_frame): New function.
4630         * prims.cc (win32_exception_handler): New function.
4631         (main_init) Performs Winsock initialisation.
4632         (main_init) Installs exeception handler.
4633
4634 2000-03-14  Tom Tromey  <tromey@cygnus.com>
4635
4636         * jni.cc (mangled_name): Fixed assertion.
4637         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4638         turned assert into actual failure.
4639
4640 2000-03-09  Warren Levy  <warrenl@cygnus.com>
4641
4642         * java/security/Key.java(serialVersionUID): Set to 0 for now.
4643         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4644         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4645
4646 2000-03-09  Warren Levy  <warrenl@cygnus.com>
4647
4648         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4649         * java/security/DigestException.java: New file.
4650         * java/security/GeneralSecurityException.java: New file.
4651         * java/security/InvalidAlgorithmParameterException.java: New file.
4652         * java/security/InvalidKeyException.java: New file.
4653         * java/security/InvalidParameterException.java: New file.
4654         * java/security/Key.java: New file.
4655         * java/security/KeyException.java: New file.
4656         * java/security/KeyPair.java: New file.
4657         * java/security/KeyPairGenerator.java: New file.
4658         * java/security/KeyPairGeneratorSpi.java: New file.
4659         * java/security/NoSuchProviderException.java: New file.
4660         * java/security/PrivateKey.java: New file.
4661         * java/security/Provider.java: New file.
4662         * java/security/PublicKey.java: New file.
4663         * java/security/SecureRandom.java: New file.
4664         * java/security/Security.java: New file.
4665         * java/security/Signature.java: New file.
4666         * java/security/SignatureException.java: New file.
4667         * java/security/interfaces/DSAKey.java: New file.
4668         * java/security/interfaces/DSAParams.java: New file.
4669         * java/security/interfaces/DSAPrivateKey.java: New file.
4670         * java/security/interfaces/DSAPublicKey.java: New file.
4671         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4672         * java/security/interfaces/RSAPrivateKey.java: New file.
4673         * java/security/interfaces/RSAPublicKey.java: New file.
4674         * java/security/spec/AlgorithmParameterSpec.java: New file.
4675         * java/security/spec/InvalidKeySpecException.java: New file.
4676         * java/security/spec/InvalidParameterSpecException.java: New file.
4677         * java/security/spec/KeySpec.java: New file.
4678         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4679         * java/security/spec/RSAPrivateKeySpec.java: New file.
4680         * java/security/spec/RSAPublicKeySpec.java: New file.
4681         * Makefile.am: Added above java.security files.
4682         * Makefile.in: Rebuilt.
4683
4684         * java/security/MessageDigest.java: Rewritten.
4685         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4686
4687 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
4688
4689         * README: Updated.
4690
4691 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
4692
4693         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4694         _Jv_PrepareConstantTimeTables.
4695         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4696         classes should have an IDT, so don't return if klass is an array
4697         class.
4698
4699 2000-03-08  Tom Tromey  <tromey@cygnus.com>
4700
4701         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4702         of `void' to be created.
4703
4704 2000-03-08  Warren Levy  <warrenl@cygnus.com>
4705
4706         * java/math/BigInteger.java(signum): Handle zero properly.
4707
4708 2000-03-07  Tom Tromey  <tromey@cygnus.com>
4709
4710         * All files: Updated copyright information.
4711         * COPYING: New file.
4712         * COPYING.LIB: Removed.
4713         * LIBGCJ_LICENSE: We now use GPL + special exception.
4714
4715 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
4716
4717         * resolve.cc (_Jv_SearchMethodInClass): New function.
4718         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4719         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4720
4721 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
4722
4723         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4724         (struct _Jv_ifaces): New declaration.
4725         JV_CLASS: New macro definition.
4726         (getComponentType): Relocate below isArray() for inlining.
4727         (getModifiers): Declare `inline'.
4728         (getSuperclass): Ditto.
4729         (isArray): Ditto.
4730         (isPrimitive): Ditto.
4731         (_Jv_IsAssignableFrom): New prototype.
4732         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4733         linkage.
4734         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4735         Check for JV_STATE_DONE before invoking initializeClass().
4736         (_Jv_PrepareConstantTimeTables): New prototype.
4737         (_Jv_GetInterfaces): Ditto.
4738         (_Jv_GenerateITable): Ditto.
4739         (_Jv_GetMethodString): Ditto.
4740         (_Jv_AppendPartialITable): Ditto.
4741         (_Jv_FindIIndex): Ditto.
4742         depth, ancestors, idt: New class fields.
4743
4744         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4745         inline function `_Jv_IsAssignableFrom'. Use that function.
4746         (isInstance): Declare `inline'.
4747         (initializeClass): Get lock on class before checking `state'. Unlock 
4748         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
4749         the lock held.
4750         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4751         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
4752         class->depth and ancestor table.
4753         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4754         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4755         _Jv_IsAssignableFrom.
4756         (_Jv_CheckArrayStore): Ditto.
4757         (_Jv_LookupInterfaceMethodIdx): New function. 
4758         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4759         (_Jv_PrepareConstantTimeTables): New function.
4760         (_Jv_IndexOf): Ditto.
4761         (_Jv_GetInterfaces): Ditto.
4762         (_Jv_GenerateITable): Ditto.
4763         (_Jv_GetMethodString): Ditto.
4764         (_Jv_AppendPartialITable): Ditto.
4765         iindex_mutex, iindex_mutex_initialized: New static fields.
4766         (_Jv_FindIIndex): New function.
4767
4768         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4769
4770         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4771         (_Jv_CheckArrayStore): Ditto.
4772         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4773         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4774         Moved to gcj/array.h.
4775         (_Jv_Realloc): New function.
4776
4777         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4778
4779         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4780         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4781         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4782         JvNewDoubleArray): Implementations moved from prims.cc and
4783         declared `inline'.
4784
4785         * gcj/javaprims.h (_Jv_Realloc): Prototype.
4786
4787         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4788
4789 2000-03-06  Tom Tromey  <tromey@cygnus.com>
4790
4791         * jni.cc (MARK_NONE): New define.
4792         (MARK_USER): Likewise.
4793         (MARK_SYSTEM): Likewise.
4794         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4795         smaller.
4796         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4797         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4798         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4799         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4800         argument.
4801         (call): Use MARK_SYSTEM.
4802         (_Jv_GetJNIEnvNewFrame): New function.
4803         (_Jv_LookupJNIMethod): New function.
4804         (_Jv_JNI_PopSystemFrame): New function.
4805         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4806
4807 2000-03-05  Tom Tromey  <tromey@cygnus.com>
4808
4809         Fix for PR libgcj/43:
4810         * include/Makefile.in: Rebuilt.
4811         * include/Makefile.am (include_HEADERS): New define.
4812
4813 2000-03-05  Anthony Green  <green@redhat.com>
4814
4815         * gcj/javaprims.h ("Java"): Remove FirstThread.
4816
4817         * configure.host: Fix __NO_MATH_INLNES botch.
4818
4819         * Makefile.in: Rebuilt.
4820         * Makefile.am (nat_source_files): Move natFirstThread.cc.
4821         (gnu/gcj/runtime/FirstThread.h): Moved.
4822         (ordinary_java_source_files): Move FirstThread.java.
4823         * prims.cc: Deal with FirstThread movement.
4824         (JvRunMain): Ditto.
4825         (_Jv_RunMain): Ditto.
4826
4827         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4828         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4829
4830 2000-03-05  Warren Levy  <warrenl@cygnus.com>
4831
4832         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4833           Handle null addresses.
4834
4835 2000-03-04  Anthony Green  <green@redhat.com>
4836
4837         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4838         See PR gcj/151.
4839
4840 2000-03-04  Anthony Green  <green@redhat.com>
4841
4842         * configure: Rebuilt.
4843         * configure.in (ZLIBTESTSPEC): New macro.
4844         (GCTESTSPEC): New macro.
4845         (LIBGCJTESTSPEC): New macro.
4846         * libgcj-test.spec.in: New file.
4847
4848 2000-03-02  Tom Tromey  <tromey@cygnus.com>
4849
4850         * include/java-interp.h: Don't include MethodInvocation.h.
4851         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4852         * Makefile.in: Rebuilt.
4853         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4854         (ordinary_java_source_files): Don't mention
4855         MethodInvocation.java.
4856         * gnu/gcj/runtime/MethodInvocation.java: Removed.
4857         * interpret.cc (MethodInvocation::continue1): Removed.
4858         (run): Handle exceptions here.
4859         * java/lang/ClassLoader.java (defineClass1, defineClass2):
4860         Removed.
4861         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4862         here.
4863         (defineClass2): Removed.
4864
4865         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4866         Removed.
4867         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4868         exceptions here.
4869         (hack_call): Removed.
4870
4871         * java/lang/Class.h (Class): Removed hackRunInitializers,
4872         hackTrampoline.
4873         * java/lang/natClass.cc (hackRunInitializers): Removed.
4874         (initializeClass): Catch exceptions here.
4875         Include ExceptionInInitializerError.h.
4876         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4877         Removed.
4878
4879         * java/lang/Object.h (Object): Don't mention hack12_6.
4880         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4881         here.
4882         * java/lang/Object.java (hack12_6): Removed.
4883
4884         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
4885         (start): Use run_, not run__.
4886         * java/lang/Thread.java (run_): Renamed from run__; old run_
4887         removed.
4888
4889         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4890         (_Jv_JNI_EnsureLocalCapacity): Likewise.
4891         (_Jv_JNI_DefineClass): Likewise.
4892         (_Jv_JNI_ThrowNew): Likewise.
4893         (_Jv_JNI_AllocObject): Likewise.
4894         (_Jv_JNI_GetAnyMethodID): Likewise.
4895         (_Jv_JNI_CallAnyMethodV): Likewise.
4896         (_Jv_JNI_CallAnyMethodA): Likewise.
4897         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4898         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4899         (_Jv_JNI_GetAnyFieldID): Likewise.
4900         (_Jv_JNI_NewString): Likewise.
4901         (_Jv_JNI_NewStringUTF): Likewise.
4902         (_Jv_JNI_GetStringUTFChars): Likewise.
4903         (_Jv_JNI_NewObjectArray): Likewise.
4904         (_Jv_JNI_NewPrimitiveArray): Likewise.
4905         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4906         (_Jv_JNI_GetStringRegion): Likewise.
4907         (_Jv_JNI_GetStringUTFRegion): Likewise.
4908         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4909         (_Jv_JNI_MonitorEnter): Likewise.
4910         (_Jv_JNI_MonitorExit): Likewise.
4911         (_Jv_JNI_ToReflectedField): Likewise.
4912         (_Jv_JNI_ToReflectedMethod): Likewise.
4913         (_Jv_JNI_RegisterNatives): Likewise.
4914         (_Jv_JNI_AttachCurrentThread): Likewise.
4915         (_Jv_JNI_DestroyJavaVM): Likewise.
4916
4917 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
4918
4919         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4920         error caused by the incorrect casting of a long to an int.
4921
4922 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
4923
4924         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4925         SIGSEV caused by use of the wrong instance variable.
4926
4927 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
4928
4929         * java/io/File.java (File(String, String)): For dirPath, treat an
4930         empty String the same as `null'.
4931
4932 2000-02-26  Anthony Green  <green@cygnus.com>
4933
4934         * gnu/gcj/io/MimeTypes.java: Test for null.
4935
4936         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4937         (JNI_GetCreatedJavaVMs): Remove compiler warning.
4938
4939         * java/net/URLConnection.java: Update copyright notice.
4940
4941 2000-02-25  Tom Tromey  <tromey@cygnus.com>
4942
4943         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4944         `INTERPRETER'.
4945
4946 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
4947
4948         * java/net/URLConnection.java (initializeDateFormats): New
4949         private method.
4950         (getHeaderFieldDate): Call initializeDateFormats if required.
4951         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4952         these.
4953         Fix for PR libgcj/38.
4954
4955 2000-02-24  Warren Levy  <warrenl@cygnus.com>
4956
4957         * java/math/BigInteger.java(ival): Made private.
4958         (words): Ditto.
4959         (neg): Ditto.
4960
4961 2000-02-20  Anthony Green  <green@cygnus.com>
4962
4963         * Makefile.in: Rebuilt.
4964         * Makefile.am (ordinary_java_source_files): Add
4965         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4966
4967         * scripts/MakeDefaultMimeTypes.java: New file.
4968         * scripts/mime.types: New file.
4969         * scripts/classes.pl: Moved from top level.
4970         * classes.pl: Moved to scripts directory.
4971
4972         * java/net/URLConnection.java: Implement guessContentTypeFromName.
4973
4974         * gnu/gcj/io/MimeTypes.java: New file.
4975         * gnu/gcj/io/DefaultMimeTypes.java: New file.
4976
4977 2000-02-20  Tom Tromey  <tromey@cygnus.com>
4978
4979         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4980
4981 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
4982
4983         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4984         (setSize): ditto.
4985
4986 2000-02-18  Tom Tromey  <tromey@cygnus.com>
4987
4988         * include/jvm.h (_Jv_GetJavaVM): Declare.
4989         * include/java-interp.h (_Jv_GetFirstMethod): New function.
4990         (_Jv_MethodBase::get_method): New method.
4991         (_Jv_JNIMethod::set_function): New method.
4992         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4993         (_Jv_JNI_RegisterNatives): New function.
4994         (_Jv_JNIFunctions): Updated for new functions.
4995         (_Jv_GetJavaVM): New function.
4996         (_Jv_JNI_GetJavaVM): Use it.  Now static.
4997         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4998         is already a Java thread but does not have a JNIEnv yet.
4999
5000         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5001         function.
5002
5003 2000-02-17  Tom Tromey  <tromey@cygnus.com>
5004
5005         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5006         Fixes PR gcj/152.
5007
5008 2000-02-16  Tom Tromey  <tromey@cygnus.com>
5009
5010         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5011
5012         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5013         (_Jv_JNI_NewObject): Likewise.
5014         (_Jv_JNI_NewObjectA): Likewise.
5015         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5016         as "return" type to _Jv_CallAnyMethodA.
5017         (_Jv_JNI_CallAnyMethodA): Likewise.
5018         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5019
5020         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5021         findClass.
5022
5023 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5024
5025         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
5026         jni_arg_types.
5027         (init_cif): Added `rtype_p' argument.
5028         * include/java-interp.h (class _Jv_MethodBase): Added
5029         args_raw_size.
5030         (class _Jv_InterpMethod): Removed args_raw_size.
5031         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5032         * jni.cc (call): Pass JNIEnv and (for static methods only) the
5033         class pointer as well as the ordinary arguments.
5034
5035         * jni.cc (mangled_name): Skip leading `(' in signature.
5036
5037         * jni.cc (add_char): Added missing `else'.
5038
5039         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5040         fails.
5041
5042 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
5043
5044         * NEWS: Updated.
5045
5046         * java/lang/natRuntime.cc (_load): Include library path with
5047         exception message.
5048
5049         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
5050         property.
5051
5052         * java/lang/natThread.cc (dumpStack): Removed.
5053         * java/lang/Thread.java (dumpStack): Implemented.
5054
5055 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5056
5057         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5058         with `lib' for loadLibrary.  Fixes PR gcj/150.
5059
5060 2000-02-14  Warren Levy  <warrenl@cygnus.com>
5061
5062         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5063
5064         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5065           New constructor.
5066         (min): Implemented.
5067         (max): Implemented.
5068         (modPow): Rewritten to not use the naive, slow, brute force approach.
5069         (isProbablePrime): Implemented.
5070         (testBit): Implemented.
5071         (flipBit): Implemented.
5072         (getLowestSetBit): Implemented.
5073
5074 2000-02-16  Anthony Green  <green@redhat.com>
5075
5076         * configure.host: Use the same options for i386 and i486 as we do
5077         for i586 and i686.
5078
5079 2000-02-12  Tom Tromey  <tromey@cygnus.com>
5080
5081         * java/io/File.java (createTempFile): Use low bits from counter,
5082         not high bits.
5083
5084 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
5085
5086         * THANKS: More thanks.
5087
5088 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5089
5090         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5091         astore instruction.  From Hans Boehm.
5092
5093 2000-02-11  Warren Levy  <warrenl@cygnus.com>
5094
5095         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5096         (BigInteger(String)): New constructor.
5097         (not): Rewritten using version from Kawa's BitOps class.
5098         (valueOf): New private methods from Kawa's BitOps class.
5099         (swappedOp): ditto.
5100         (bitOp): ditto.
5101         (setBitOp): ditto.
5102         (and): Implemented.
5103         (or): Implemented.
5104         (xor): Implemented.
5105         (andNot): Implemented.
5106         (clearBit): Implemented.
5107         (setBit): Implemented.
5108         (bitCount): Implemented.
5109         (toByteArray): Implemented.
5110
5111 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5112
5113         * java/io/File.java (nextValue): Now synchronized.
5114
5115 2000-02-10  Tom Tromey  <tromey@cygnus.com>
5116
5117         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5118         * java/io/FileDescriptor.java (EXCL): New static field.
5119         * java/io/File.java (tmpdir): New static field.
5120         (createTempFile): New method.
5121         (nextValue): New method.
5122         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5123         property.
5124
5125         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5126         (jboolean): Declare as an attributed int, not a bool.
5127         (_Jv_func): Declare differently for C.
5128
5129         * gnu/gcj/jni/natNativeThread.cc: New file.
5130         * gnu/gcj/jni/NativeThread.java: New file.
5131         * java/lang/Thread.java (data): Now a RawData.
5132         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5133         Declare.
5134         * Makefile.in: Rebuilt.
5135         * Makefile.am (java/lang/Thread.h): New target.
5136         (ordinary_java_source_files): Added NativeThread.java.
5137         (nat_source_files): Added natNativeThread.cc.
5138         * java/lang/natThread.cc: Include <jni.h>
5139         (struct natThread): Added `jni_env' field.
5140         (_Jv_GetCurrentJNIEnv): New function.
5141         (_Jv_SetCurrentJNIEnv): Likewise.
5142         (initialize_native): Initialize jni_env.
5143         Include RawData.h.
5144         * jni.cc (ThreadGroupClass): New define.
5145         (_Jv_JNI_InvokeFunctions): New structure.
5146         (JNI_GetCreatedJavaVMs): New function.
5147         (the_vm): New global.
5148         (JNI_GetDefaultJavaVMInitArgs): New function.
5149         Include NativeThread.h.
5150         (NativeThreadClass): New define.
5151         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5152         (_Jv_JNI_DestroyJavaVM): New function.
5153         (_Jv_JNI_AttachCurrentThread): New function.
5154         (_Jv_JNI_DetachCurrentThread): New function.
5155         (_Jv_JNI_GetEnv): New function.
5156         (JNI_CreateJavaVM): New function.
5157         (_Jv_JNI_GetJavaVM): New function.
5158         (_Jv_JNIFunctions): Added entry for GetJavaVM.
5159         * include/jni.h (JavaVMAttachArgs): New structure.
5160         (JNI_EDETACHED): New define.
5161         (JNI_EVERSION): Likewise.
5162         (JavaVM): Define properly.
5163         (struct JNIInvokeInterface): New structure.
5164         (class _Jv_JavaVM): New class.
5165         (JNI_OnLoad, JNI_OnUnload): Declare.
5166         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5167         JNI_GetCreatedJavaVMs): Declare.
5168         (JavaVMInitArgs): New typedef.
5169         (JavaVMOption): Likewise.
5170         (JNI_ERR): New define.
5171         (JNI_OK): Likewise.
5172
5173 2000-02-10  Andrew Haley  <aph@cygnus.com>
5174
5175         * interpret.cc: Don't include fdlibm.h.
5176         Replace #if with #ifdef throughout.
5177         Declare extern __ieee754_fmod.
5178         (continue1): Remove op_getfield, op_getstatic, op_putfield,
5179         op_putstatic insns.
5180         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5181         Search class hierarchy for superclass vtable.
5182
5183         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5184         off the end of a pointer list.
5185
5186         * java/lang/natThread.cc (stop): Don't abort, throw an exception
5187         instead.
5188         (suspend): Ditto.
5189         
5190 2000-02-09  Tom Tromey  <tromey@cygnus.com>
5191
5192         * java/lang/natRuntime.cc (_load): Call add_library.
5193         (loadLibraryInternal): Likewise.
5194
5195         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5196         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
5197         (Output_iconv::finalize): Likewise.
5198
5199 2000-02-08  Tom Tromey  <tromey@cygnus.com>
5200
5201         * java/util/Properties.java (setProperty): New method.
5202         (store): New method.
5203
5204 2000-02-07  Tom Tromey  <tromey@cygnus.com>
5205
5206         * java/lang/Runtime.java (_load): Declare.
5207         (load, loadLibrary): Wrote in terms of _load.
5208         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5209         library.
5210         (loadLibrary): Likewise.
5211         Include <jni.h>.
5212         (_load): New method.
5213         (loadLibrary, load): Removed.
5214
5215         * jni.cc (ThrowableClass): New define.
5216         (_Jv_JNI_Throw): Check argument.
5217         (_Jv_JNI_ThrowNew): Likewise.
5218         (wrap_value): Don't wrap object if it is NULL.
5219         (_Jv_JNI_DefineClass): Use wrap_value.
5220         (_Jv_JNI_FindClass): Likewise.
5221         (_Jv_JNI_GetSuperclass): Likewise.
5222         (_Jv_JNI_ExceptionOccurred): Likewise.
5223         (_Jv_JNI_AllocObject): Likewise.
5224         (_Jv_JNI_GetObjectClass): Likewise.
5225         (_Jv_JNI_NewString): Likewise.
5226         (_Jv_JNI_NewStringUTF): Likewise.
5227         (_Jv_JNI_NewObjectArray): Likewise.
5228         (_Jv_JNI_GetObjectArrayElement): Likewise.
5229         (_Jv_JNI_NewPrimitiveArray): Likewise.
5230         (_Jv_JNI_ToReflectedField): Likewise.
5231         (_Jv_JNI_ToReflectedMethod): Likewise.
5232         (_Jv_JNI_AllocObject): Check argument.
5233         (_Jv_JNI_NewObjectV): Likewise.
5234         (_Jv_JNI_NewObject): Likewise.
5235         (_Jv_JNI_NewObjectA): Likewise.
5236         (_Jv_JNI_GetObjectClass): Likewise.
5237         (_Jv_JNI_GetField): Likewise.
5238         (_Jv_JNI_SetField): Likewise.
5239
5240         * interpret.cc (PUSHL): Don't use expression statement.
5241         (PUSHD): Likewise.
5242         (LOADL): Likewise.
5243         (STOREL): Likewise.
5244
5245         * jni.cc (add_char): Conditional on INTERPRETER.
5246         (mangled_name): Likewise.
5247         (call): Likewise.
5248         * include/java-interp.h (class _Jv_MethodBase): Conditional on
5249         INTERPRETER.
5250         (class _Jv_JNIMethod): Likewise.
5251
5252 2000-02-04  Warren Levy  <warrenl@cygnus.com>
5253
5254         * Makefile.am: Added MPN.java and BigInteger.java.
5255         * Makefile.in: Rebuilt.
5256         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
5257         <per@bothner.com>.
5258         * java/math/BigInteger.java: New file.  Based primarily on
5259         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5260
5261 2000-02-04  Tom Tromey  <tromey@cygnus.com>
5262
5263         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5264         pointers.
5265         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
5266         if the method is native.
5267         * resolve.cc (ncode): Don't handle native methods.
5268         (_Jv_JNIMethod::ncode): New method.
5269         (_Jv_PrepareClass): Handle native methods.
5270         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5271         Include AbstractMethodError.h.
5272         (add_char): New function.
5273         (mangled_name): Likewise.
5274         * include/java-interp.h (class _Jv_JNIMethod): New class.
5275         (class _Jv_MethodBase): New class.
5276         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5277         (_Jv_InterpClass): Changed `interpreted_methods' field to type
5278         `_Jv_MethodBase'.
5279
5280         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5281         * java/lang/natRuntime.cc (libraries_size, libraries_count,
5282         libraries): New globals.
5283         (add_library): New function.
5284         (_Jv_FindSymbolInExecutable): New function.
5285
5286         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5287         Now static.
5288
5289 2000-02-04  Andrew Haley  <aph@cygnus.com>
5290
5291         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5292         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5293         * java/lang/natThrowable.cc (printRawStackTrace): Rename
5294         printStackTrace to printRawStackTrace.
5295
5296 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5297
5298         * java/util/Calendar.java (toString): New method.
5299         * java/util/SimpleTimeZone.java (clone): New method.
5300         (toString): New method.
5301         * java/util/TimeZone.java (clone): New method.
5302         * java/text/SimpleDateFormat.java (clone): New method.
5303         * java/text/NumberFormat.java (clone): New method.
5304         (equals): New method.
5305         * java/text/Format.java (clone): New method.
5306         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5307         constructor.
5308         (clone): New method.
5309         * java/text/DateFormat.java (clone): New method.
5310         * java/text/Collator.java (clone): New method.
5311
5312 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5313
5314         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5315         method.
5316
5317 2000-02-01  Tom Tromey  <tromey@cygnus.com>
5318
5319         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5320         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5321         constructing the closure if the function is native.
5322         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
5323         a template function, #if'd out, or static.
5324         Include <java-interp.h>.
5325
5326         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5327
5328         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5329
5330         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5331         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5332         `locals == NULL'.
5333         (wrap_value): New function.
5334         (_Jv_JNI_CallAnyMethodV): Use it.
5335         (_Jv_JNI_CallAnyMethodA): Likewise.
5336         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5337         (_Jv_JNI_GetStaticField): Likewise.
5338
5339         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5340         (_Jv_JNI_GetStaticField): Likewise.
5341
5342 2000-01-31  Tom Tromey  <tromey@cygnus.com>
5343
5344         * prims.cc (_Jv_MallocUnchecked): New function.
5345         (main_init): Call _Jv_JNI_Init.
5346         * include/jvm.h (_Jv_MallocUnchecked): Declare.
5347         (_Jv_JNI_Init): Declare.
5348         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5349         <string.h>.
5350         (_Jv_JNI_NewGlobalRef): New function.
5351         (_Jv_JNI_DeleteGlobalRef): New function.
5352         (_Jv_JNI_DeleteLocalRef): New function.
5353         (_Jv_JNI_conversion_call): Initialize and clear local reference
5354         frame.
5355         (_Jv_JNI_NewLocalRef): New function.
5356         (struct _Jv_JNI_LocalFrame): New structure.
5357         (_Jv_JNI_PushLocalFrame): New function.
5358         (_Jv_JNI_EnsureLocalCapacity): New function.
5359         (FRAME_SIZE): New define.
5360         (_Jv_JNI_GetStringChars): Mark string, not characters.
5361         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5362         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5363         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5364         elements.
5365         (_Jv_JNI_DefineClass): Make return value a local ref.
5366         (_Jv_JNI_FindClass): Likewise.
5367         (_Jv_JNI_GetSuperclass): Likewise.
5368         (_Jv_JNI_ExceptionOccurred): Likewise.
5369         (_Jv_JNI_AllocObject): Likewise.
5370         (_Jv_JNI_GetObjectClass): Likewise.
5371         (_Jv_JNI_CallAnyMethodV): Likewise.
5372         (_Jv_JNI_NewString): Likewise.
5373         (_Jv_JNI_NewStringUTF): Likewise.
5374         (_Jv_JNI_NewObjectArray): Likewise.
5375         (_Jv_JNI_GetObjectArrayElement): Likewise.
5376         (_Jv_JNI_ToReflectedField): Likewise.
5377         (_Jv_JNI_ToReflectedMethod): Likewise.
5378         (_Jv_JNIFunctions): Updated table for new functions.
5379         (_Jv_JNI_Init): New function.
5380         (mark_for_gc): Wrote.
5381         (unmark_for_gc): Wrote.
5382         * include/jni.h (struct JNINativeInterface): Removed name from
5383         PopLocalFrame parameter.
5384         (class _Jv_JNIEnv): Added `locals' field.
5385
5386 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
5387
5388         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5389         (write): Ditto.
5390
5391 2000-01-30  Tom Tromey  <tromey@cygnus.com>
5392
5393         * include/config.h.in: Rebuilt.
5394         * acconfig.h (HAVE_ICONV): Define.
5395         * configure: Rebuilt.
5396         * configure.in: Check for `iconv' function.
5397         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5398         no specific encoder exists.
5399         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5400         no specific encoder exists.
5401         * Makefile.in: Rebuilt.
5402         * Makefile.am (convert_source_files): Mention Input_iconv.java and
5403         Output_iconv.java.
5404         (nat_source_files): Added natIconv.cc.
5405         * gnu/gcj/convert/natIconv.cc: New file.
5406         * gnu/gcj/convert/Input_iconv.java: New file.
5407         * gnu/gcj/convert/Output_iconv.java: New file.
5408
5409 2000-01-28  Tom Tromey  <tromey@cygnus.com>
5410
5411         * Makefile.in: Rebuilt.
5412         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5413
5414 2000-01-26  Tom Tromey  <tromey@cygnus.com>
5415
5416         * gcj/method.h (JvNumMethods): Moved from Class.h.
5417         (JvGetFirstMethod): Likewise.
5418         * java/lang/Class.h (Object): Updated decl of
5419         _Jv_JNI_ToReflectedField.
5420         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5421         * Makefile.in: Rebuilt.
5422         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5423         argument of _Jv_JNI_ToReflectedField.
5424         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5425         as a friend.
5426         (java/lang/reflect/Method.h): Likewise.
5427         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
5428         __GCJ_JNI_IMPL__.
5429         (jweak): New typedef.
5430         (struct JNINativeInterface): Correctly declare remaining entries.
5431         * jni.cc: Include Class.h, ClassLoader.h.
5432         (_Jv_JNI_FindClass): New function.
5433         (_Jv_JNI_DefineClass): New function.
5434         (_Jv_JNI_conversion_call): New function.
5435         (_Jv_JNI_FindClass): Use current class loader to find class.
5436         (_Jv_JNI_ExceptionCheck): New function.
5437         (_Jv_JNI_FromReflectedField): Now static.
5438         (MethodClass): New define.
5439         (_Jv_JNI_FromReflectedMethod): New function.
5440         (_Jv_JNI_ToReflectedMethod): Likewise.
5441         Include Method.h.
5442         (_Jv_JNI_IsAssignableFrom): Renamed.
5443         (_Jv_JNI_GetStringRegion): New function.
5444         Include StringIndexOutOfBoundsException.h.
5445         (_Jv_JNI_GetStringUTFRegion): New function.
5446         (_Jv_JNIFunctions): Updated for new functions.
5447         (_Jv_JNI_GetPrimitiveArrayCritical): New function
5448         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5449         (_Jv_JNI_GetStringCritical): New function.
5450         (_Jv_JNI_ReleaseStringCritical): Likewise.
5451         (get_throwable): Removed.
5452         (GCJ_JV_JNIENV_FRIEND): Removed.
5453         (__GCJ_JNI_IMPL__): Define.
5454         Include method.h.
5455
5456         * resolve.cc (get_ffi_type_from_signature): Handle case where
5457         boolean is an int.
5458
5459 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
5460
5461         * interpret.cc (run): Don't call println.
5462         Don't include PrintStream.h.
5463
5464         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5465         nameIndex.  Use "jint" as type for boffset.
5466         * java/lang/Class.h (struct _Jv_Method): Made accflags a
5467         _Jv_ushort.
5468         (Class): Likewise.  Also changed type of method_count,
5469         vtable_method_count, size_in_bytes, field_count,
5470         static_field_count, interface_count.
5471         * gcj/array.h (__JArray): Made `length' a const jsize, not an
5472         int.
5473
5474 2000-01-21  Tom Tromey  <tromey@cygnus.com>
5475
5476         * java/lang/reflect/natConstructor.cc (newInstance): Use
5477         _Jv_CallAnyMethodA.
5478         * include/jvm.h: Declare _Jv_CallAnyMethodA.
5479         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5480         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
5481         Include <jni.h>.
5482         (COPY): Removed.
5483         (invoke): Use _Jv_CallAnyMethodA.
5484         (VAL): Redefined.
5485         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5486         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5487         functions.
5488         (struct _Jv_Method): Added getNextMethod method.
5489         (JvNumMethods): New function.
5490         (JvGetFirstMethod): Likewise.
5491         * gcj/field.h (JvGetFirstStaticField): New function.
5492         (JvNumStaticFields): Likewise.
5493         (getNextField): Renamed from getNextInstanceField.
5494         (struct _Jv_Field): New method getClass.
5495         * jni.cc: Wrote many new functions.
5496         * include/jni.h (JNI_TRUE): Define.
5497         (JNI_FALSE): Likewise.
5498         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5499         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5500         jcharArray, jfloatArray, jdoubleArray): New typedefs.
5501         (jfieldID, jmethodID): Likewise.
5502         (JNI_COMMIT, JNI_ABORT): New defines.
5503         (JNINativeMethod): New struct.
5504         (struct JNINativeInterface): Correctly declared more entries.
5505         (class _Jv_JNIEnv): Added `ex' member.
5506         (JNI_VERSION_1_1): New define.
5507         (JNI_VERSION_1_2): Likewise.
5508
5509         * boehm.cc (_Jv_MarkObj): Use getNextField, not
5510         getNextInstanceField.
5511
5512 2000-01-20  Tom Tromey  <tromey@cygnus.com>
5513
5514         * resolve.cc (StringClass): Removed.
5515         * defineclass.cc (StringClass): Removed.
5516
5517 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
5518
5519         * NEWS: updated.
5520
5521 2000-01-19  Tom Tromey  <tromey@cygnus.com>
5522
5523         * interpret.cc (PC_REGISTER_ASM): Removed.
5524
5525         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5526         From Bryce McKinlay.
5527
5528         * All files: Updated copyright to reflect Cygnus purchase.
5529
5530 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
5531
5532         * configure: Rebuilt.
5533         * configure.in: Recognize --disable-interpreter.
5534
5535 2000-01-18  Andrew Haley  <aph@cygnus.com>
5536
5537         * name-finder.cc (lookup): Check for dladdr function.
5538         acconfig.h (HAVE_DLADDR): Add.
5539         configure.in: Check for HAVE_DLADDR
5540         configure: Rebuilt.
5541         include/config.h.in:  Rebuilt.
5542
5543 2000-01-17  Andrew Haley  <aph@cygnus.com>
5544
5545         * prims.cc (_Jv_RunMain): Set the name of this executable.
5546
5547 2000-01-17  Tom Tromey  <tromey@cygnus.com>
5548
5549         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5550         when backtrace can't be computed.
5551
5552         * configure: Rebuilt.
5553         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5554
5555         * java/lang/Runtime.java (loadLibraryInternal): Declare.
5556         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5557         (_Jv_FindClassInCache): Likewise.
5558         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5559         (findSystemClass): Try to load class from compiled module.
5560         Include Runtime.h.
5561         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5562         (loadLibrary): Likewise.
5563         (lt_preloaded_symbols): Define.
5564         (loadLibraryInternal): New method.
5565         * include/config.h.in: Rebuilt.
5566         * acconfig.h (USE_LTDL): Added.
5567         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5568         (INCLUDES): Added $(INCLTDL).
5569         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5570         (libgcj_la_LIBADD): Likewise.
5571         * aclocal.m4, configure: Rebuilt.
5572         * configure.in: Added libltdl support.
5573
5574 2000-01-15  Tom Tromey  <tromey@cygnus.com>
5575
5576         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5577
5578 2000-01-14  Andrew Haley  <aph@cygnus.com>
5579
5580         * java/lang/natThrowable.cc: New file.
5581
5582         * java/lang/Throwable.java (fillInStackTrace): Make native.
5583         (printStackTrace): Call native method to do this.
5584         (Throwable): Call fillInStackTrace.
5585         (stackTrace): New variable.
5586         
5587         * include/jvm.h: Add _Jv_ThisExecutable functions.
5588         
5589         * prims.cc: (_Jv_execName): New variable.
5590         (catch_segv): Call fillInStackTrace.
5591         (catch_fpe): Ditto.
5592         (_Jv_ThisExecutable): New functions.
5593         (JvRunMain): Set the name of this executable.
5594
5595         * Makefile.am: Add java/lang/natThrowable.cc.
5596         Add name-finder.cc.
5597         * Makefile.in: Rebuilt.
5598
5599         * acconfig.h: Add HAVE_PROC_SELF_EXE.
5600
5601         * configure.in: Force link with __frame_state_for in
5602         FORCELIBGCCSPEC.  Add new checks for backtrace.
5603         * include/config.h.in: Rebuilt.
5604
5605         * name-finder.cc: New file.
5606         * include/name-finder.h: New file.
5607
5608 2000-01-16  Anthony Green  <green@cygnus.com>
5609
5610         * java/lang/StringBuffer.java (StringBuffer): Don't special case
5611         null argument.
5612
5613 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
5614
5615         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5616
5617 2000-01-13  Tom Tromey  <tromey@cygnus.com>
5618
5619         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5620         not system loader, as initiating loader.
5621
5622 2000-01-11  Tom Tromey  <tromey@cygnus.com>
5623
5624         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5625         HP/UX.  From David Scott Urban.
5626
5627 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
5628
5629         * java/lang/natMath.cc (pow): Cast args to `double', not
5630         `jdouble'.
5631         (atan2): Likewise.
5632         (IEEEremainder): Likewise.
5633         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5634         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5635
5636 2000-01-09  Anthony Green  <green@cygnus.com>
5637
5638         * java/lang/natString.cc (init): Test for overflow condition
5639         during out of bounds check.
5640         (getChars): Throw StringIndexOutOfBoundsException, not
5641         ArrayIndexOutOfBoundsException.
5642         (getBytes): Ditto.
5643         (regionMatches): Obey case option during string comparison.
5644
5645         * configure.host (ligcj_interpreter): New variable.  Enable
5646         interpreter by default on IA-32.
5647         * configure.in:  Examine libgcj_interpreter.
5648         * configure: Rebuilt.
5649
5650 2000-01-07  Tom Tromey  <tromey@cygnus.com>
5651
5652         * mauve-libgcj: Don't disable ClassTest.
5653
5654         * java/lang/natClass.cc (getClasses): Wrote.
5655
5656 2000-01-06  Tom Tromey  <tromey@cygnus.com>
5657
5658         * java/lang/natClass.cc (_getConstructors): Correctly check
5659         whether method name is the init name.
5660         (getMethod): Look at accflags on method in `klass', not `this'.
5661
5662 2000-01-05  Tom Tromey  <tromey@cygnus.com>
5663
5664         * java/lang/natClass.cc (getMethod): Compute offset relative to
5665         `klass's methods table, not `this's table.
5666
5667         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5668         In unwrapping/widening case, check whether `k' is null, not
5669         whether it is primitive.  Initialize `num' from `argelts', not
5670         `paramelts'.  Correct create and pass arguments to ffi_call.
5671         Don't let presence of `this' argument affect index used to look in
5672         argument arrays.
5673         (COPY): Set appropriate element in `values' vector.
5674
5675         * java/lang/natClass.cc: Include <gcj/method.h>.
5676
5677         * java/lang/Class.h (_getMethods): Correctly declare as private,
5678         not public.
5679
5680         * java/lang/Class.h (_getMethods): Declare.
5681         * java/lang/Class.java (_getMethods): Declare.
5682         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5683         (getDeclaredClasses): Always return empty array.
5684         (_getMethods): New method.
5685         (getMethods): Wrote.
5686         (getDeclaredMethod): Return `rmethod'.
5687         (finit_name): New global.
5688         (getDeclaredMethods): Check for finit_name.
5689         (_getMethods): Likewise.
5690         (getMethod): Only return public methods.
5691
5692         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5693         jboolean and select correct ffi type on that basis.
5694         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5695         Constructor call always has `void' return type.
5696
5697 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5698
5699         * java/lang/Class.h (getSignature): Updated.
5700         * java/lang/Class.java (getSignature): Updated.
5701         * java/lang/natClass.cc (getSignature): Added `is_constructor'
5702         argument.
5703         (getConstructor): Ensure constructor is public.
5704         (_getConstructors): Check for public-ness of constructor when
5705         `declared' is false, not when it is true.
5706
5707 2000-01-04  Warren Levy  <warrenl@cygnus.com>
5708
5709         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5710         comment.
5711         (receive): Set the sender's address in the DatagramPacket.
5712
5713 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5714
5715         * java/lang/reflect/natConstructor.cc (newInstance): Pass
5716         declaring class as return_type argument to
5717         _Jv_CallNonvirtualMethodA.
5718         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5719         constructor case, create object and use it as `this' argument.
5720         * java/lang/Class.h (_getConstructors): Declare.
5721         (_getFields): Declare.
5722         * java/lang/Class.java (getConstructors): Wrote.
5723         (_getConstructors): New native method.
5724         (getDeclaredConstructors): Wrote.
5725         (_getFields): Declare new native method.
5726         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5727         incorrect comment.
5728         (getMethod): Work correctly when class is primitive.
5729         (getDeclaredMethods): Likewise.  Compute offset using `method',
5730         not `mptr'.
5731         (getDeclaredMethod): Likewise.
5732         (getConstructor): Wrote.
5733         (ConstructorClass): New define.
5734         (getDeclaredConstructor): Wrote.
5735         (_getConstructors): New method.
5736         (_getFields): New method.
5737         (getFields): Wrote.
5738
5739         * Makefile.in: Rebuilt.
5740         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5741
5742         * prims.cc: Remove `#pragma implementation'.
5743         * gcj/array.h: Remove `#pragma interface'.
5744
5745         * prims.cc (_Jv_equaln): New function.
5746         * java/lang/Class.java (getSignature): Declare.
5747         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5748         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5749         resolve.cc.
5750         (getSignature): New method.
5751         (getDeclaredMethod): Wrote.
5752         (getMethod): Wrote.
5753         Include StringBuffer.h.
5754         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5755         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
5756         a friend.
5757         (getSignature): Declare.
5758         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5759         (_Jv_equaln): Declare.
5760         (_Jv_CallNonvirtualMethodA): Declare.
5761         * Makefile.in: Rebuilt.
5762         * Makefile.am (nat_source_files): Added natConstructor.cc.
5763         (java/lang/reflect/Constructor.h): New target.
5764         * java/lang/reflect/natConstructor.cc: New file.
5765         * java/lang/reflect/Constructor.java (newInstance): Now native.
5766         (declaringClass): Renamed from decl_class.
5767         (offset): Renamed from index.
5768         (getType): New native method.
5769         (getModifiers): Now native.
5770         (getParameterTypes): Call getType if required.
5771         (hashCode): Include hash code from declaring class.
5772         (modifiers): Removed.
5773         (toString): Call getType if required.
5774         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5775         * java/lang/reflect/natMethod.cc (hack_call): New method.
5776         Removed `#if 0' around FFI code.
5777         Include <gnu/gcj/RawData.h>.
5778         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
5779         IllegalArgumentException when argument object and class disagree.
5780         (_Jv_GetTypesFromSignature): New function.
5781         (getType): Use it.
5782         (ObjectClass): New define.
5783         (_Jv_CallNonvirtualMethodA): New function.
5784         * java/lang/reflect/Method.java (hack_trampoline): New method.
5785         (hack_call): New native method.