OSDN Git Service

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