OSDN Git Service

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