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