OSDN Git Service

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