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