OSDN Git Service

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