1 2001-03-28 Richard Henderson <rth@redhat.com>
3 IA-64 ABI Exception Handling:
4 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
5 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
7 * configure.host (libgcj_sjlj): Remove.
8 * configure.in (EXCEPTIONSPEC): Remove.
9 (enable-sjlj-exceptions): Detect if not specified.
10 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
11 what header we're looking for.
12 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
13 * Makefile.in, configure: Regenerate.
14 * exception.cc: Don't declare libgcc2 stuff.
15 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
16 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
17 (win32_get_restart_frame): Remove.
18 (struct java_exception_header): New.
19 (__gcj_exception_class): New.
20 (get_exception_header_from_ue): New.
21 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
22 (size_of_encoded_value, read_encoded_value): New.
23 (read_uleb128, read_sleb128, parse_lsda_header): New.
24 (get_ttype_entry, __gcj_personality_sj0): New.
25 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
27 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
29 * javax/naming/InitialContext.java (init): Fix typo.
30 (composeName): Remove unnecessary semicolon.
31 (addToEnvironment): Remove unnecessary semicolon.
32 (addToEnvironment): Use put() instead of add().
34 * javax/naming/InitialContext.java (InitialContext):
36 (destroySubcontext): Method doesn't return a result.
37 * javax/naming/Context.java: Import java.util.Hashtable.
38 * javax/naming/Name.java: Import java.util.Enumeration.
40 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
42 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
43 objects in subdirectories.
44 * Makefile.in: Rebuilt.
46 2001-03-25 Richard Henderson <rth@redhat.com>
48 * exception.cc (java_eh_info): Make value type jthrowable.
49 (_Jv_type_matcher): Remove now unneeded cast.
50 (_Jv_Throw): Make argument type jthrowable. Munge name
51 for SJLJ_EXCEPTIONS here ...
52 * gcj/cni.h: ... not here.
54 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
56 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
57 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
58 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
59 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
60 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
61 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
62 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
63 java/lang/natClass.cc, java/lang/natClassLoader.cc,
64 java/lang/natDouble.cc, java/lang/natObject.cc,
65 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
66 java/lang/natString.cc, java/lang/natSystem.cc,
67 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
68 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
69 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
70 java/util/zip/natInflater.cc:
71 Use throw, not JvThrow or _Jv_Throw.
73 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
75 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
76 paramater, bump it to 1.
77 * java/util/Hashtable.java (Hashtable): Likewise.
79 2001-03-23 Per Bothner <per@bothner.com>
81 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
82 check for errors, since we don't want to throw exception on
83 overflow/underflow. Instead, trim whitespace, and then check that
84 _strtod_r uses up all the rest of the string.
86 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
87 ancestors array is invalid for interfaces, so do that *after*
88 check that the target type is not an interface.
90 2000-03-23 Jeff Sturm <jsturm@one-point.com>
92 * prims.cc (_Jv_FindClassFromSignature): Check return of
93 recursive call. Do not abort on invalid signature; return NULL
96 2001-03-22 Tom Tromey <tromey@redhat.com>
98 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
99 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
101 * include/jvm.h (_Jv_ResolveField): Declare.
102 * include/java-interp.h (_Jv_ResolveField): Don't declare.
103 * resolve.cc (_Jv_ResolveField): No longer conditional on
106 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
108 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
110 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
111 to a temporary file, then invoke libtool with the -objectlist
113 (libgcjx.la): Likewise.
114 * Makefile.in: Rebuilt.
116 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
118 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
120 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
122 * jni.cc (add_char): Handle `.' like `/'.
124 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
126 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
127 initialize if exception_types is null.
128 * java/lang/reflect/Constructor.java: Likewise.
129 * java/lang/reflect/natConstructor.cc (getType): Initialize
130 exception_types to an empty Object array.
132 2001-03-21 Tom Tromey <tromey@redhat.com>
134 * configure: Rebuilt.
135 * configure.in (GCJFLAGS): Subst.
136 * Makefile.in: Rebuilt.
137 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
138 (gij_LDFLAGS): Likewise.
139 (JC1FLAGS): Added GCJFLAGS and removed -g.
141 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
142 read/write case. Fixes PR libgcj/2338.
144 2001-03-20 Warren Levy <warrenl@redhat.com>
146 * java/util/TimeZone.java: Sync up with Classpath. Includes new
147 and corrected SimpleTimeZone's for the timezones hash table.
149 2001-03-19 Per Bothner <per@bothner.com>
151 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
152 "canonicalize" "../../xxx" to "/xxx".
154 2001-03-19 Mark Wielaard <mark@klomp.org>
156 * java/util/ArrayList.java: Remove RCS keywords from comments
157 * java/util/BasicMapEntry.java: idem
158 * java/util/Dictionary.java: idem
159 * java/util/HashSet.java: idem
161 * java/util/EventObject.java: reindent
162 * java/util/Properties.java: idem
163 * java/util/SortedMap.java: idem
165 * java/util/Enumeration.java: Merge with Classpath
166 * java/util/EventListener.java: idem
167 * java/util/Observable.java: idem
168 * java/util/Observer.java: idem
169 * java/util/Stack.java: idem
171 2001-03-17 Tom Tromey <tromey@redhat.com>
173 * java/lang/natString.cc (rehash): Don't bother with memset;
174 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
176 (UNMASK_PTR): New macro.
177 (intern): Unmask pointer before returning it. Register finalizer
179 (unintern): Handle case where
180 (MASK_PTR): New macro.
181 (PTR_MAKSED): Likewise.
182 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
184 2001-03-01 Andrew Haley <aph@redhat.com>
186 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
187 stackTrace buffer to a correctly aligned pointer array.
189 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
191 * java/lang/Runtime.java (_exit): Declare new package-private native.
192 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
193 without a security manager check.
194 (exit): Call _exit after security check.
195 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
197 * java/lang/System.java (setSecurityManager): If a security manager
198 is already in place, call checkPermission.
199 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
200 throws an exception, try to deal with it gracefully.
201 * java/lang/ExceptionInInitializerError.java (printStackTrace):
202 Only try to print the subordinate stack trace if "exception" is set.
203 Print our class name first.
205 2001-03-08 Tom Tromey <tromey@redhat.com>
207 * java/io/ObjectStreamClass.java (setUID): Don't write interface
208 info for array classes.
209 Fixes PR libgcj/1971.
211 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
213 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
216 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
218 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
219 instead of the new JDK1.2 API. This is simpler and makes
220 back-porting the classes to JDK1.1 trivial.
221 (readObject): likewise.
223 2001-03-01 Per Bothner <per@bothner.com>
225 Changes merged from Kawa's gnu.math.
226 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
227 (rshift(int[],int[],int,int): Removed - not needed.
228 (gcd): Use rshift0 rather than rshift.
229 * java/math/BigInteger.java (setShiftRight): Likewise.
230 (divide): Simplify by using rshift0.
231 (divide): Zero-extend results if high-order bit set.
233 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
235 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
238 2001-02-23 Per Bothner <per@bothner.com>
240 Change to sometimes include class name in ClassFormatError message.
241 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
242 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
243 boolean instead of throwing ClassFormatError on failure.
244 (throw_class_format_error): Change static function to method.
245 (_Jv_ClassReader): New inline methods verify_identifier,
246 two overloads of verify_classname, verify_field_signature, and
247 verify_method_signature
248 * include/java-interp.h: Update declarations to return bool.
249 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
250 ClassFormatError since _Jv_VerifyClassName now returns bool.
252 2001-02-23 Per Bothner <per@bothner.com>
254 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
255 c++filt to select java-style output.
257 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
259 Fix for PR java/2040:
260 * java/util/HashMap.java (HashMap): Don't throw exception for
261 loadFactor > 1. Add exception messages.
262 * java/util/Hashtable.java (Hashtable): Likewise.
264 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
266 Disable libgcjx by default.
267 * configure.in: Add support for --enable-java-awt configure option.
268 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
269 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
270 * Makefile.in: Rebuilt.
271 * configure: Rebuilt.
273 2001-02-20 Tom Tromey <tromey@redhat.com>
275 * java/io/PipedWriter.java (flush): Throw exception if stream
277 * java/io/OutputStreamWriter.java (write): Throw exception if
279 (writeChars): Don't throw exception if stream closed.
280 * java/io/CharArrayWriter.java (closed): New field.
282 (flush): Throw exception if stream closed.
283 (reset): Synchronize on correct lock. Allow stream to be
285 (toCharArray, toString, writeTo): Synchronize.
286 (write): Throwe exception if stream closed.
287 * java/io/BufferedWriter.java (close): Clear `buffer'.
288 (flush): Throw IOException if stream is closed.
291 2001-02-16 Tom Tromey <tromey@cygnus.com>
293 * java/lang/ThreadGroup.java (activeCount): Only include threads
295 (enumerate): Likewise.
297 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
299 * java/lang/Integer.java (getInteger): Return default argument if
300 property is not set. Don't call decode with null argument.
301 * java/lang/Long.java (getLong): Likewise.
303 * java/io/CharArrayReader.java (CharArrayReader): Throw
304 IllegalArgumentException if constructor arguments are illegal.
305 (ready): Return false if no more characters can be read.
306 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
308 2001-02-17 Mark Wielaard <mark@klomp.org>
310 * java/util/TimerTask.java: New version from Classpath.
312 2001-02-17 Mark Wielaard <mark@klomp.org>
314 Remerge with Classpath
315 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
316 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
317 (readByte): Use convertToByte().
318 (readChar): Use convertToChar().
319 (readInt): Use convertToInt().
320 (readLong): Use convertToLong().
321 (readShort): Use convertToShort().
322 (readUnsignedByte): Use convertToUnsignedByte().
323 (readUnsignedShort): Use convertToUnsignedShort().
324 (readUTF): Use convertToUTF().
326 (convertToBoolean): Resurrected.
327 (convertToByte): Ditto.
328 (convertToChar): Ditto.
329 (convertToInt): Ditto.
330 (convertToLong): Ditto.
331 (convertToShort): Ditto.
332 (convertToUnsignedByte): Ditto.
333 (convertToUnsignedShort): Ditto.
334 (convertToUTF): Ditto.
336 2001-02-17 Mark Wielaard <mark@klomp.org>
340 2001-02-17 Mark Wielaard <mark@klomp.org>
342 * java/io/DataInputStream.java: update copyright notice
343 * java/io/PrintWriter.java: idem
344 * java/io/Reader.java: idem
345 * java/io/StreamTokenizer.java: idem
346 * java/io/StringReader.java: idem
347 * java/lang/reflect/ReflectPermission.java: idem
349 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
351 * java/util/TreeSet.java (clone): Made subclass safe, use
352 super.clone(), not new.
353 * java/util/TreeMap.java (clone): Likewise.
355 * java/util/TreeMap.java (nil): Made non-final.
356 (clone): Create new nil node for copy.
358 * java/util/HashSet.java (clone): Made subclass safe, use
359 super.clone(), not new.
361 2001-02-14 Andrew Haley <aph@redhat.com>
363 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
366 2001-02-15 Anthony Green <green@redhat.com>
368 * defineclass.cc: Don't include alloca.h.
369 (prepare_pool_entry): Convert alloca to __builtin_alloca.
370 * interpret.cc (run_normal): Ditto.
372 * java/lang/natDouble.cc (parseDouble): Ditto.
374 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
376 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
378 * java/util/Collections.java (ReverseComparator): New static class.
379 (reverseOrder): Return static instance of ReverseComparator.
381 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
382 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
383 Rectangle.clone(), not Object.clone().
385 * java/util/HashSet.java (clone): Remove try/catch.
387 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
388 * java/util/Collection.java: Likewise.
389 * java/util/Comparator.java: Likewise.
390 * java/util/Dictionary.java: Likewise.
391 * java/util/Iterator.java: Likewise.
392 * java/util/ListIterator.java: Likewise.
393 * java/util/Map.java: Likewise.
394 * java/util/Set.java: Likewise.
396 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
398 * java/util/TreeMap.java: New file.
399 * java/util/TreeSet.java: New file.
400 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
401 * Makefile.in: Rebuilt.
402 * java/util/HashSet.java (clone): Use constructor instead of calling
404 * java/util/SortedSet.java: Sync with classpath.
405 * java/util/HashMap.java (hash): Use if statement instead of ternary,
408 * java/lang/natClass.cc (getSignature): Don't try to dereference
409 param_types if it is null. Instead, take this to mean "no parameters".
410 * java/lang/TreeMap.java (TreeIterator.next): Throw
411 NoSuchElementException in preference to ConcurrentModificationException.
412 (TreeIterator.remove): Throw IllegalStateException in preference to
413 ConcurrentModificationException.
414 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
415 throw a NoSuchElementException.
416 (SubMap.lastKey): Likewise.
418 2001-02-13 Tom Tromey <tromey@redhat.com>
420 * java/io/PipedReader.java (ready): Throw IOException if pipe
422 * java/io/FilterReader.java (close): Don't clear `in'.
423 * java/io/CharArrayReader.java (mark): Throw IOException if stream
425 (read, ready, reset, skip): Added exception message.
426 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
427 Perform checkStatus check inside synchronized block.
429 2001-02-13 Tom Tromey <tromey@redhat.com>
431 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
433 2001-02-13 Tom Tromey <tromey@redhat.com>
435 Fix for PR libgcj/1351:
436 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
438 Include Thread.h and InterruptedIOException.h.
440 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
442 * java/io/BlockDataException.java: Removed.
443 * java/io/ObjectInputStream.java (readObject): Throw
444 StreamCorruptedException, not BlockDataException.
445 * Makefile.am: Remove BlockDataException.
446 * Makefile.in: Rebuild.
448 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
449 Tom Tromey <tromey@redhat.com>
451 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
454 2001-02-09 Tom Tromey <tromey@redhat.com>
456 * java/util/Timer.java: New version from Classpath.
458 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
460 * java/lang/Double.java (doubleToRawLongBits): Now native.
461 * java/lang/Float.java (floatToRawIntBits): Likewise.
462 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
463 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
465 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
467 * java/io/File.java (java.net): Imported.
468 (getAbsoluteFile): Added.
469 (getCanonicalPath): Likewise.
472 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
474 * java/lang/Byte.java: Remove redundant instanceof and null checks.
475 * java/lang/Integer.java: Likewise.
476 * java/lang/Long.java: Likewise.
477 * java/lang/Short.java: Likewise.
478 * java/lang/Double.java: Likewise.
479 (doubleToRawLongBits): New method.
480 * java/lang/Float.java: As above.
481 (floatToRawIntBits): New method.
483 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
484 IOException if stream closed.
486 2001-02-08 Tom Tromey <tromey@redhat.com>
488 * java/lang/Float.java (parseFloat): New method.
490 2001-02-08 Tom Tromey <tromey@redhat.com>
492 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
493 * java/io/InputStreamReader.java (ready, read): Throw IOException
494 if stream has been closed.
496 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
498 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
499 Change sources.redhat.com and sourceware.cygnus.com references to
502 2001-02-07 Tom Tromey <tromey@redhat.com>
504 Fix for PR libgcj/1906:
505 * java/text/MessageFormat.java (setLocale): Use named class
508 (format(Object,StringBuffer,FieldPosition)): Special case if
509 argument is an Object[].
511 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
513 * java/util/Arrays.java: Removed "cmp" methods.
514 (qsort): Don't use "cmp".
517 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
519 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
520 sort. Fix for PR java/1895.
522 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
524 * configure.host: Use sjlj-exceptions for Alpha.
526 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
528 * libgcj.spec.in: Don't force static libgcc into the executable.
529 * configure.in (FORCELIBGCCSPEC): Removed.
530 * configure: Rebuilt.
532 2001-01-31 Tom Tromey <tromey@redhat.com>
534 * Makefile.in: Rebuilt.
535 * Makefile.am (LTCXXCOMPILE): New macro.
537 2001-01-26 Andrew Haley <aph@redhat.com>
539 (INIT_FPE): Use a direct system call to set the handler.
541 2001-01-27 Richard Henderson <rth@redhat.com>
543 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
545 2001-01-27 Tom Tromey <tromey@redhat.com>
547 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
548 native interface structure.
550 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
552 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
554 (read (byte[], int, int)): Only call readNextBlock() if the block
555 buffer would actually be overrun. Increment blockDataPosition.
556 (callReadMethod): Propagate exceptions from invocation target.
557 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
558 exceptions from invocation target.
560 2001-01-26 Tom Tromey <tromey@redhat.com>
562 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
563 to internal representation.
564 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
565 _Jv_FindClassFromSignature.
567 2001-01-26 Warren Levy <warrenl@redhat.com>
569 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
570 and timezone if they are available on the system.
572 2001-01-24 Tom Tromey <tromey@redhat.com>
574 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
576 2001-01-24 Tom Tromey <tromey@redhat.com>
578 * Makefile.in: Rebuilt.
579 * Makefile.am (c_source_files): Added sf_fabs.c.
580 * java/lang/sf_fabs.c: New file.
582 2001-01-19 Warren Levy <warrenl@redhat.com>
584 * java/text/SimpleDateFormat.java (format): Compute hour for cases
585 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
586 correctly. Adjust properly from 0-23 clock hour.
588 2001-01-17 Mark Wielaard <mark@klomp.org>
590 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
592 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
594 * java/lang/Class.h (isInterface): Move implementation from
595 natClass.cc. Declare inline.
596 (Class): Add default constructor.
597 * java/lang/Object.h: Update comments.
598 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
599 initialize superclass, saving a call if super is already initialized.
601 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
603 * prims.cc (init_prim_class): Deleted.
604 (DECLARE_PRIM_TYPE): Rewritten.
605 * java/lang/Class.h (stdio.h): Include removed.
606 (stddef.h): Included.
607 (java/lang/reflect/Modifier.h): Likewise.
608 (Class): Contructor now takes arguments, initializes fields.
609 (initializePrim): Prototype deleted.
610 * java/lang/natClass.cc (initializePrim): Deleted.
612 2001-01-16 Warren Levy <warrenl@redhat.com>
614 * java/math/BigInteger.java: Update Copyright year.
616 2001-01-16 Hans Boehm <hans_boehm@hp.com>
618 * java/math/BigInteger.java (setShiftRight): Only do negative shift
621 2001-01-14 Mark Wielaard <mark@klomp.org>
622 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
623 (decode): Merge comments with Classpath, don't throw Exception
625 2001-01-12 Tom Tromey <tromey@redhat.com>
627 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
631 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
632 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
633 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
634 * gnu/awt/gtk/GtkLabelPeer.java: New file.
635 * gnu/awt/gtk/GtkButtonPeer.java: New file.
637 * java/lang/natSystem.cc: Include locale.h if it exists.
638 * configure: Rebuilt.
639 * configure.in: Check for locale.h.
641 2001-01-11 Tom Tromey <tromey@redhat.com>
643 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
644 (Cursor(int), getPredefinedCursor): Throw exception if argument
647 2001-01-03 Tom Tromey <tromey@redhat.com>
649 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
650 (getLocationOnScreen): Wrote.
652 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
654 * Makefile.am: Re-enable dependencies.
655 * Makefile.in: Rebuilt.
657 2001-01-10 Warren Levy <warrenl@redhat.com>
659 * java/math/BigDecimal.java (divide): Fixed comment.
661 2001-01-10 Warren Levy <warrenl@redhat.com>
663 Fix for PR libgcj/1596:
664 * java/math/BigDecimal.java (divide): Check newScale for validity.
665 Ensure that BigInteger.pow() is called with a non-negative value.
666 (setScale (int)): New public method.
667 (setScale (int,int)): New public method.
669 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
671 Fix for PR libgcj/1338:
672 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
673 commentChar. Fixed typos in comments.
675 2001-01-08 Warren Levy <warrenl@redhat.com>
677 Fix for PR libgcj/1411:
678 * Makefile.am: Removed java/util/natTimeZone.cc.
679 * Makefile.in: Rebuilt.
680 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
681 missing localized timezone names.
682 * java/lang/System.java (getDefaultTimeZoneId): New private method.
683 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
684 (init_properties): Set user.timezone property.
685 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
686 default timezone names; removed non-standard ones. Use standard
688 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
690 * java/util/TimeZone.java: Add standard ID names per JCL; removed
692 (getDefaultTimeZoneId): Removed.
694 * java/util/natTimeZone.cc: Removed.
696 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
698 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
699 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
700 (_Jv_GetArrayClass): New inline function.
701 (arrayclass): New field.
702 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
703 _Jv_GetArrayElementFromElementType.
704 (_Jv_NewPrimArray): Ditto.
705 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
706 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
707 Set Modifier::ABSTRACT.
708 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
709 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
710 Now synchronized. Array classes are now referenced from
711 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
712 Set array classes' accessibility flags correctly. Optimize so that
713 all array classes share the same IDT.
714 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
715 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
716 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
717 in superclasses from overwriting classes own fields.
718 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
719 Modifier::isAbstract().
720 (null_idt): New static field.
721 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
723 (_Jv_IndexOf): Made inline.
724 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
726 2001-01-08 Tom Tromey <tromey@redhat.com>
728 Fix for PR java/1586:
729 * Makefile.in: Rebuilt.
730 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
732 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
734 * Makefile.am: Use the new "-M -MF" option for generating dependencies
735 from the c++ compiler.
736 * Makefile.in: Rebuilt.
738 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
740 All files with updated copyright.
741 * prims.cc (class _Jv_PrimClass): Removed.
742 (init_prim_class): New function.
743 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
744 `_Jv_PrimClass' in primitive type declarations. Assign to the
745 value returned by `init_prim_class.'
746 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
747 primitive type declarations.
748 (JvPrimClass): Cast to `jclass' removed.
749 * java/lang/Class.h (Class): New constructor.
750 (Class): New copy constructor.
751 (initializePrim): New prototype.
752 (_Jv_PrimClass): Field removed.
753 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
754 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
755 (class java::lang::Object): `finalize' moved up front.
756 * java/lang/natClass.cc
757 (isAssignableFrom): Turned outline.
758 (isInstance): Likewise.
759 (isInterface): Likewise, fixed indentation.
760 (initializePrim): New function.
762 2001-01-07 Anthony Green <green@redhat.com>
764 * Makefile.am (texinfo): Add texinfo target for generating texinfo
766 * Makefile.in: Rebuilt.
768 * scripts/TexinfoDoclet.java: New file.
770 * doc/java-applet.texi, doc/java-lang-reflect.texi,
771 doc/java-awt-color.texi, doc/java-lang.texi,
772 doc/java-awt-datatransfer.texi, doc/java-math.texi,
773 doc/java-awt-event.texi, doc/java-net.texi,
774 doc/java-awt-geom.texi, doc/java-security-spec.texi,
775 doc/java-awt-image.texi, doc/java-security.texi,
776 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
777 doc/java-text.texi, doc/java-beans-beancontext.texi,
778 doc/java-util-jar.texi, doc/java-beans.texi,
779 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
780 doc/java-lang-ref.texi: New files.
782 2001-01-07 Anthony Green <green@redhat.com>
784 * java/net/URLConnection.java (setDoOutput): URLConnection's may
785 be used for both input and output, so don't clear doInput.
787 * java/lang/StringBuffer.java: Fix comments.
789 2001-01-06 Anthony Green <green@redhat.com>
791 * java/beans/PropertyDescriptor.java: Fix comment.
792 * java/io/PushbackReader.java: Fix comment.
793 * java/io/ObjectStreamClass.java: Fix comment.
794 * java/io/DataInputStream.java: Fix comment.
795 * java/io/PipedInputStream.java: Fix comments.
796 * java/io/PipedReader.java: Fix comments.
797 * java/sql/DatabaseMetaData.java: Fix comments.
799 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
801 * java/io/PipedReader: Synchronize on "lock" instead of this.
803 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
805 * java/lang/Thread.java: Update comment.
807 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
808 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
809 * java/io/PipedReader: New implementation based on new
811 * java/io/PipedWriter: Updated to match new PipedReader.
813 2001-01-03 Tom Tromey <tromey@redhat.com>
815 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
816 (getViewportSize): Insets include scrollbar size.
817 (doLayout): Finished.
818 (getScrollPosition): Wrote.
819 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
821 2001-01-02 Tom Tromey <tromey@redhat.com>
823 * java/awt/ScrollPane.java: Wrote.
824 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
827 * java/awt/Panel.java (Panel()): Fixed.
829 * java/awt/Component.java (isShowing): Return false if no peer
830 exists, and true if component is visible and no parent exists.
831 (getLocationOnScreen): Wrote.
832 (getPreferredSize): Removed FIXME comment.
833 (getMinimumSize): Likewise.
834 (getAlignmentX, getAlignmentY): Wrote.
836 (requestFocus): Wrote.
837 (transferFocus): Wrote.
838 (findNextFocusComponent): New method.
841 (enableEvents): Call setEventMask on the peer.
843 * java/awt/Container.java (list): Use super.list() to print self.
844 (findNextFocusComponent): New method.
845 (setLayout): Call invalidate.
846 (findComponentAt): Wrote.
848 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
850 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
851 the correct versions of various linuxthreads functions get linked.
852 * Makefile.in: Rebuilt.
853 * java/lang/natThread.cc (finalize_native): New static function. Call
854 _Jv_ThreadDestroyData.
855 (initialize_native): Register finalizer for "data".
856 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
857 (_Jv_ThreadDestroyData): New prototype.
858 * include/win32-threads.h: Ditto.
859 * include/no-threads.h: Ditto.
860 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
861 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
862 move mutex and condition variable destroy code from:
863 (really_start): ...here.
864 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
865 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
866 (_Jv_ThreadDestroyData): Implemented.
867 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
868 (_Jv_AllocArray): Ditto.
870 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
872 * java/sql/DriverManager.java (getConnection): Don't set user/password
875 2000-12-27 Warren Levy <warrenl@redhat.com>
877 Fix for PR libgcj/1358:
878 * java/lang/System.java: Update Copyright date properly.
879 * java/util/Calendar.java: Fix typo in comment.
880 (set): Set 24-hour clock hour instead of 12-hour clock hour.
881 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
882 initialize times. Spec says to set H:M:S values to zero only if
884 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
885 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
886 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
887 timezones and GMT offsets, being careful to account for units of
888 milliseconds vs. seconds.
890 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
892 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
893 not be assigned to Object.
895 Fix for PR libgcj/1516:
896 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
898 (can_widen): Declared inline. Remove redundant checks for void
899 arguments and char->short conversion. Add special case for boolean
901 (ffi_type): Declared inline.
902 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
904 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
906 * java/sql/SQLWarning.java: Fixed typo in comment.
908 2000-12-26 Tom Tromey <tromey@redhat.com>
910 * java/awt/MenuItem.java (paramString): Now protected.
912 * java/awt/MenuShortcut.java: Implements Serializable.
914 * java/awt/MenuBar.java: Rewrote from scratch.
916 * java/awt/MenuComponent.java (removeNotify): Wrote.
917 Implements Serializable.
919 * java/awt/GridBagConstraints.java (GridBagConstraints): New
922 * java/awt/CheckboxMenuItem.java: Wrote.
924 2000-12-25 Tom Tromey <tromey@redhat.com>
926 * java/awt/MenuContainer.java: Fixed typo.
928 * Makefile.in: Rebuilt.
929 * Makefile.am (awt_java_source_files): Added SystemColor.java.
930 * java/awt/SystemColor.java: New file.
932 * java/awt/Color.java (rgba): Now package-private.
934 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
936 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
939 * java/awt/MenuItem.java (addNotify): New method.
940 (MenuItem(String,MenuShortcut)): New constructor.
941 (setLabel): Notify peer of change.
942 (setEnabled): Likewise.
944 * java/awt/GridLayout.java (toString): New method.
946 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
947 (FlowLayout): Check for LEADING and TRAILING.
948 (setAlignment): Likewise.
949 (layoutContainer): Handle component orientation.
951 * java/awt/Component.java (orientatin): New field.
952 (setComponentOrientation): Wrote.
953 (getComponentOrientation): Wrote.
955 * java/awt/Event.java (Event): Implements Serializable.
956 (consumed): New field for serialization.
957 * java/awt/Dimension.java (Dimension): Implements Serializable.
958 * java/awt/Cursor.java (Cursor): Implements Serializable.
959 * java/awt/Container.java (Container): No longer abstract.
961 * java/awt/Choice.java: Wrote.
962 * java/awt/Checkbox.java: Wrote.
963 * java/awt/ItemSelectable.java: Documented.
964 * java/awt/CheckboxGroup.java: Wrote.
966 * java/awt/CardLayout.java (layoutContainer): Directly use fields
970 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
972 * java/io/FileDescriptor.java: Initialize fd to -1.
973 Remove default constructor.
975 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
977 * java/lang/mprec.h: Change C9X reference to refer to C99.
979 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
981 * java/lang/Throwable.java (trace_enabled): New static field.
982 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
983 trace_enabled not set.
984 * prims.cc (main_init): Turn off trace_enabled while creating
985 default exception objects.
987 2000-12-21 Tom Tromey <tromey@redhat.com>
989 * java/beans/PropertyChangeListener.java: Extends EventListener.
990 * java/beans/VetoableChangeListener.java: Extends EventListener.
992 * java/util/zip/Deflater.java (update, init): Now private.
994 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
996 * java/util/BasicMapEntry.java: Re-added.
997 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
998 (putAll): Test for BasicMapEntry.
999 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1000 (putAll): Test for BasicMapEntry.
1001 Change references from `HashMap.Entry' to `Entry' in various places.
1002 * Makefile.am: Add BasicMapEntry.java.
1003 * Makefile.in: Rebuilt.
1005 2000-12-18 Warren Levy <warrenl@redhat.com>
1007 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1008 need to set timezone to a valid non-null value. Partial fix for
1011 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1013 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1015 * java/awt/Button.java (addNotify): Likewise.
1016 * java/awt/Label.java (addNotify): Likewise.
1017 * java/awt/Panel.java (addNotify): Likewise.
1018 * java/awt/Scrollbar.java (addNotify): Likewise.
1019 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1020 Remove redundant null checks.
1022 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1024 * COPYING: Update to current
1025 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1026 to 19yy as example year in copyright notice).
1028 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1030 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1031 end-of-stream if avail_in is 0.
1033 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1035 * java/util/ArrayList.java (data): Declare transient.
1036 (serialPersistantFields): Removed.
1037 (readObject): Use defaultReadObject(), not readFields().
1038 (writeObject): Use defaultWriteObject(), not writeFields().
1040 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1042 * java/util/Hashtable.java (put): Remove `last' variable.
1043 Link new entry to head of list.
1044 * java/util/HashMap.java (put): Ditto.
1046 2000-12-15 Tom Tromey <tromey@redhat.com>
1048 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1049 loader to Class.forName.
1051 2000-12-14 Tom Tromey <tromey@redhat.com>
1053 * java/util/ResourceBundle.java
1054 (getBundle(String,Locale,ClassLoader)): New method.
1055 (trySomeGetBundle): Added `loader' argument.
1056 (partialGetBundle): Likewise.
1058 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1059 maximumFractionDigits, maximumIntegerDigits,
1060 minimumFractionDigits, minimumIntegerDigits): Now
1063 * java/lang/Thread.java (checkAccess): Now final.
1065 * java/lang/RuntimePermission.java: Class now final.
1067 * java/io/StringWriter.java (StringWriter(int)): Now public.
1069 * java/io/SerializablePermission.java (legal_names): Now private.
1071 * java/lang/Character.java: Updated UnicodeBlock constants.
1072 * scripts/blocks.pl: Special case private use and surrogate
1075 2000-12-12 Tom Tromey <tromey@redhat.com>
1077 * Makefile.in: Rebuilt.
1078 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1080 (GCJCOMPILE): Use it.
1083 2000-12-11 Tom Tromey <tromey@redhat.com>
1085 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1086 New static final fields.
1088 * scripts/classes.pl (scan): Skip lines with leading `*'.
1089 Fix for PR libgcj/378.
1091 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1093 * configure.in: Remove check for -fuse-divide-subroutine.
1094 * configure: Rebuilt.
1096 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1098 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1100 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1102 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1103 Remove BasicMapEntry.java and Bucket.java.
1104 * Makefile.in: Rebuilt.
1105 * java/util/HashMap.java: Rewritten.
1106 * java/util/HashSet.java: Imported from classpath.
1107 * java/util/WeakHashMap.java: Imported from classpath.
1108 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1109 * java/util/Bucket.java: Deleted.
1110 * java/util/BasicMapEntry.java: Deleted.
1111 * java/util/Collections.java (search): Use a for-loop, not iterator
1113 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1114 of elements in source.
1115 (max): Use a for-loop.
1117 (reverse): Keep track of positions instead of using Iterator's
1118 nextIndex() and previousIndex().
1119 (shuffle(List)): Initialize defaultRandom if required using
1120 double-check thread safety idiom. Call two-argument shuffle method
1121 using defaultRandom.
1122 (defaultRandom): New field.
1123 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1124 using previousIndex() and nextIndex().
1125 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1126 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1127 * java/util/AbstractMap.java (toString): Use StringBuffer.
1128 * java/lang/ref/PhantomReference.java: Imported from classpath.
1129 * java/lang/ref/SoftReference.java: Ditto.
1130 * java/lang/ref/Reference.java: Ditto.
1131 * java/lang/ref/WeakReference.java: Ditto.
1132 * java/lang/ref/ReferenceQueue.java: Ditto.
1134 2000-12-10 Richard Henderson <rth@redhat.com>
1136 * configure.host: Recognize alpha*-*, not alphaev6-*.
1138 2000-12-09 Anthony Green <green@redhat.com>
1140 * configure.host: Enable interpreter for Alpha.
1142 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1144 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1145 (ZIP): Points at fastjar instead of zip.
1146 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1147 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1148 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1149 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1150 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1151 ($(x_java_source_files:.java=.class):): Likewise.
1152 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1154 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1155 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1156 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1157 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1158 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1159 gnu/gcj/runtime/VMClassLoader.h:,
1160 java/io/ObjectInputStream$$GetField.h:,
1161 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1162 (Makefile.in): Rebuilt.
1164 2000-12-08 Tom Tromey <tromey@redhat.com>
1167 * configure: Rebuilt.
1168 * configure.in: Use echo, not `:', to create .d files.
1170 2000-12-08 Warren Levy <warrenl@redhat.com>
1172 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1173 NullPointerException so proper check of offset can be done.
1175 2000-12-08 Warren Levy <warrenl@redhat.com>
1177 * java/io/FileInputStream.java (close): Check if the fd is valid.
1178 * java/io/RandomAccessFile.java (close): Ditto.
1179 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1180 * java/net/PlainSocketImpl.java (close): Ditto.
1182 2000-12-06 Tom Tromey <tromey@redhat.com>
1184 * java/awt/GridBagConstraints.java: Filled in values for static
1187 * java/util/BitSet.java: Updated copyright notice.
1189 * Makefile.in: Rebuilt.
1190 * Makefile.am (awt_java_source_files): Added new file.
1191 * java/awt/GridBagConstraints.java: New file.
1193 2000-12-05 Tom Tromey <tromey@redhat.com>
1195 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1196 Now package-private, not protected.
1197 * java/text/DateFormatSymbols.java (equals): Now private.
1198 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1199 * java/util/BitSet.java: Class no longer final.
1201 2000-12-04 Warren Levy <warrenl@redhat.com>
1203 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1204 out code dependent on compiler and library changes.
1206 2000-12-04 Warren Levy <warrenl@redhat.com>
1208 * java/io/FilePermission.java: Made class final per spec.
1209 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1210 method name to match spec (fixed typo).
1211 * java/util/LinkedList.java: Implements List.
1213 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1215 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1216 Edgar Villanueva <edgarvil@home.com>.
1218 2000-12-03 Tom Tromey <tromey@redhat.com>
1220 * java/awt/geom/Point2D.java: Added protected constructor.
1221 (equals): New method.
1222 (Float.setLocation(float,float)): New method.
1223 * java/awt/geom/Dimension2D.java: Added protected constructor.
1224 * java/awt/geom/AffineTransform.java: Made all constants public.
1225 (concatenate): Fixed typo in name.
1226 * java/awt/event/WindowAdapter.java: Class now abstract.
1227 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1228 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1231 * java/awt/AWTError.java: Extend Error, not
1232 IllegalStateException.
1234 * Makefile.in: Rebuilt.
1235 * Makefile.am (awt_java_source_files): Added new file.
1236 * java/awt/geom/RoundRectangle2D.java: New file.
1238 * Makefile.in: Rebuilt.
1239 * Makefile.am (awt_java_source_files): Added new file.
1240 * java/awt/FlowLayout.java: New file.
1242 * Makefile.in: Rebuilt.
1243 * Makefile.am (awt_java_source_files): Added new file.
1244 * java/awt/GridLayout.java: New file.
1246 2000-12-02 Tom Tromey <tromey@redhat.com>
1248 * Makefile.in: Rebuilt.
1249 * Makefile.am (awt_java_source_files): Added new files.
1250 * java/awt/CardLayout.java: New file.
1251 * java/awt/AWTPermission.java: New file.
1253 2000-12-01 Tom Tromey <tromey@redhat.com>
1255 * java/util/Vector.java (insertElementAt): Unconditionally
1256 increment elementCount.
1257 (removeRange): Clear unused slots in vector.
1259 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1261 * java/lang/natMath.cc: Declare fabsf() function.
1262 * java/lang/mprec.h: Don't include math.h.
1263 * java/lang/dtoa.c: Include string.h.
1264 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1267 From Adam Welc <welc@cs.purdue.edu>:
1268 * java/util/LinkedList.java (removeFirst): Update `first' field.
1269 Handle the last == first case.
1270 (removeLast): Update `last' field. Handle the last == first case.
1272 2000-12-01 Warren Levy <warrenl@cygnus.com>
1274 * Makefile.am: Added entries for new java.sql modules.
1275 * Makefile.in: Rebuilt.
1277 2000-12-01 Warren Levy <warrenl@cygnus.com>
1279 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1280 that aren't quite 1.2 compatible yet.
1282 2000-11-30 Warren Levy <warrenl@cygnus.com>
1284 * java/sql/Array.java: New file from classpath.
1285 * java/sql/BatchUpdateException.java: Ditto.
1286 * java/sql/Blob.java: Ditto.
1287 * java/sql/Clob.java: Ditto.
1288 * java/sql/Ref.java: Ditto.
1289 * java/sql/SQLData.java: Ditto.
1290 * java/sql/SQLInput.java: Ditto.
1291 * java/sql/SQLOutput.java: Ditto.
1292 * java/sql/Struct.java: Ditto.
1293 * java/sql/CallableStatement.java: Merged file from claspath.
1294 * java/sql/Connection.java: Ditto.
1295 * java/sql/DataTruncation.java: Ditto.
1296 * java/sql/DatabaseMetaData.java: Ditto.
1297 * java/sql/DriverManager.java: Ditto.
1298 * java/sql/PreparedStatement.java: Ditto.
1299 * java/sql/ResultSet.java: Ditto.
1300 * java/sql/ResultSetMetaData.java: Ditto.
1301 * java/sql/SQLException.java: Ditto.
1302 * java/sql/SQLWarning.java: Ditto.
1303 * java/sql/Statement.java: Ditto.
1304 * java/sql/Types.java: Ditto.
1306 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1308 * java/lang/natSystem.cc (init_properties): Set user.language and
1310 * configure.in: Check for setlocale.
1311 * configure: Rebuilt.
1312 * include/config.h.in: Rebuilt.
1314 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1315 the infate() call didn't deliver any output. Throw a ZipException if
1316 the needsDictionary() call returns true.
1317 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1318 * java/io/InputStreamReader: Use the default buffer size for the
1319 contained BufferedInputStream.
1321 2000-11-28 Warren Levy <warrenl@cygnus.com>
1323 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1324 more time zone entries.
1325 * java/text/SimpleDateFormat.java (format): Added case for
1328 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1330 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1331 directly rather than read() in all cases. Make primitive read
1332 implementations more efficient, as defined in JDK online docs.
1333 (skipBytes): Behave like the JDK's implementation.
1334 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1335 closed stream with checkStatus() whenever an IOException can be
1337 (checkStatus): New private method.
1339 2000-11-27 Warren Levy <warrenl@cygnus.com>
1341 * Makefile.am: Added natTimeZone.cc.
1342 * Makefile.in: Rebuilt.
1343 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1344 * java/text/DateFormatSymbols.java (ampms): Made package private.
1345 (eras): Made package private.
1346 (months): Made package private.
1347 (shortMonths): Made package private.
1348 (shortWeekdays): Made package private.
1349 (weekdays): Made package private.
1350 (formatPrefixes): New private field.
1351 (localPatternCharsDefault): Made private.
1352 (dateFormats): New package private field.
1353 (timeFormats): New package private field.
1354 (formatsForKey): New private method.
1355 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1356 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1357 * java/text/SimpleDateFormat.java: Merged with Classpath.
1358 * java/util/TimeZone.java: Merged with Classpath.
1359 * java/util/natTimeZone.cc: New file.
1361 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1363 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1364 (addElement): Don't increment elementCount twice. Doh.
1365 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1366 array needs to be expanded.
1368 * java/util/Collections.java (UnmodifiableCollection): Implement
1370 (UnmodifiableList): Throw UnsupportedOperationException from
1371 modification methods. Set `l' from the one-parameter constructor.
1372 (UnmodifiableMap): Implement toString().
1373 (SynchronizedCollection): Ditto.
1374 (SynchronizedList): Set `l' from the one-parameter constructor.
1375 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1376 (SynchronizedMap): Implement toString().
1378 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1380 * javax/naming/NameParser.java,
1381 javax/naming/directory/AttributeInUseException.java,
1382 javax/naming/directory/AttributeModificationException.java,
1383 javax/naming/directory/InvalidAttributeIdentifierException.java,
1384 javax/naming/directory/InvalidAttributesException.java,
1385 javax/naming/directory/InvalidAttributeValueException.java,
1386 javax/naming/directory/InvalidSearchControlsException.java,
1387 javax/naming/directory/InvalidSearchFilterException.java,
1388 javax/naming/directory/NoSuchAttributeException.java,
1389 javax/naming/directory/SchemaViolationException.java: New files.
1391 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1393 * javax/naming/InitialContext.java (rebind): Implement.
1394 (unbind): Implement.
1395 (rename): Implement.
1397 (listBindings): Implement.
1398 (destroySubcontext): Implement.
1399 (createSubcontext): Implement.
1400 (lookupLink): Implement.
1401 (getNameParser): Implement.
1402 (composeName): Implement.
1403 (addToEnvironment): Implement.
1405 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1407 * javax/naming/AuthenticationException.java,
1408 javax/naming/AuthenticationNotSupportedException.java,
1409 javax/naming/CannotProceedException.java,
1410 javax/naming/CommunicationException.java,
1411 javax/naming/ConfigurationException.java,
1412 javax/naming/ContextNotEmptyException.java,
1413 javax/naming/InsufficientResourcesException.java,
1414 javax/naming/InterruptedNamingException.java,
1415 javax/naming/InvalidNameException.java,
1416 javax/naming/LimitExceededException.java,
1417 javax/naming/LinkException.java,
1418 javax/naming/LinkLoopException.java,
1419 javax/naming/MalformedLinkException.java,
1420 javax/naming/NameAlreadyBoundException.java,
1421 javax/naming/NameNotFoundException.java,
1422 javax/naming/NamingSecurityException.java,
1423 javax/naming/NoPermissionException.java,
1424 javax/naming/NotContextException.java,
1425 javax/naming/PartialResultException.java,
1426 javax/naming/ReferralException.java,
1427 javax/naming/ServiceUnavailableException.java,
1428 javax/naming/SizeLimitExceededException.java,
1429 javax/naming/TimeLimitExceededException.java: New files.
1431 * javax/naming/Name.java (clone): New method.
1432 (compareTo): New method.
1433 (isEmpty): New method.
1434 (getAll): New method.
1435 (getPrefix): New method.
1436 (getSuffix): New method.
1437 (startsWith): New method.
1438 (endsWith): New method.
1439 (addAll): New method.
1440 (addAll): New method.
1443 (remove): New method.
1445 * javax/naming/Context.java (lookup): New method.
1446 (rebind): New method.
1447 (unbind): New method.
1448 (rename): New method.
1450 (listBindings): New method.
1451 (destroySubcontext): New method.
1452 (createSubcontext): New method.
1453 (lookupLink): New method.
1454 (getNameParser): New method.
1455 (composeName): New method.
1456 (addToEnvironment): New method.
1457 (removeFromEnvironment): New method.
1458 (getEnvironment): New method.
1459 (close): New method.
1460 (getNameInNamespace): New method.
1462 * javax/naming/InitialContext.java (lookup): New method.
1463 (rebind): New method.
1464 (unbind): New method.
1465 (rename): New method.
1467 (listBindings): New method.
1468 (destroySubcontext): New method.
1469 (createSubcontext): New method.
1470 (lookupLink): New method.
1471 (getNameParser): New method.
1472 (composeName): New method.
1473 (addToEnvironment): New method.
1474 (removeFromEnvironment): New method.
1475 (getEnvironment): New method.
1476 (close): New method.
1477 (getNameInNamespace): New method.
1479 2000-11-26 Tom Tromey <tromey@cygnus.com>
1481 * Makefile.in: Rebuilt.
1482 * Makefile.am (core_java_source_files): Added
1483 RuntimePermission.java.
1484 * java/lang/RuntimePermission.java: Imported from Classpath.
1485 * java/lang/Thread.java (getContextClassLoader): Now
1486 synchronized. Added security code.
1487 (setContextClassLoader): Likewise.
1489 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1490 length field of array.
1491 (_Jv_NewPrimArray): Likewise.
1492 * gcj/array.h (__JArray): `length' field now const. Added
1495 2000-11-26 Anthony Green <green@redhat.com>
1497 * javax/naming/spi/NamingManager.java,
1498 javax/naming/spi/ObjectFactory.java,
1499 javax/naming/spi/InitialContextFactory.java,
1500 javax/naming/spi/InitialContextFactoryBuilder.java,
1501 javax/naming/RefAddr.java, javax/naming/Reference.java,
1502 javax/naming/NamingException.java, javax/naming/Context.java,
1503 javax/naming/Referenceable.java,
1504 javax/naming/directory/InitialDirContext.java,
1505 javax/naming/directory/DirContext.java,
1506 javax/naming/directory/Attributes.java,
1507 javax/naming/directory/Attribute.java,
1508 javax/naming/StringRefAddr.java,
1509 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1510 javax/naming/InitialContext.java,
1511 javax/naming/NoInitialContextException.java: New files.
1513 2000-11-25 Anthony Green <green@redhat.com>
1515 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1516 (_Jv_NewPrimArray): Likewise.
1517 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1518 (class JArray): Removed constructor.
1520 * java/lang/Thread.java (context_class_loader): New private data.
1521 (getContextClassLoader): New method.
1522 (setContextClassLoader): New method.
1523 (Thread): Initialize context_class_loader.
1525 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1526 (getResource): Rename to findResource.
1527 (findResource): New method. Used to be getResource.
1528 (getResourceAsStream): Deleted.
1529 (jarFileize): Extracted logic from URLClassLoader constructor into
1530 this new private method.
1531 (addURL): New protected method.
1532 (URLClassLoader): Call jarFileize. Use addElement instead of
1534 (findResources): New method.
1536 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1537 (getResource): Implement correct logic.
1538 (findResource): New method.
1539 (getResources): New method.
1540 (findClass): Create a ClassNotFoundException with the name of the
1541 class rather than nothing at all.
1542 (defineClass) Only throw ClassFormatError.
1544 * java/lang/Class.java (forName): New method.
1545 * java/lang/Class.h (forName): New method.
1546 * java/lang/natClass.cc (forName): New method.
1548 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1550 * java/lang/System.java (setProperties): Only call init_properties()
1551 if properties is null.
1552 (getProperties): Ditto.
1553 (getProperty): Ditto.
1554 (setProperty): Call init_properties if properties are null.
1555 (prop_init): Remove field.
1556 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1557 method. Check for null properties after synchronizing instead of
1558 prop_init flag. Set the properties field last for thread safety.
1560 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1561 test for gcj.dumpobjects property and enable object stream dumping
1563 (dumpElement): No longer native.
1564 (dumpElementln): Ditto.
1565 (setDump): Do not define.
1566 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1567 (dumpElementln): Removed.
1570 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1572 * configure: Rebuilt.
1573 * Makefile.in: Rebuilt.
1574 * Makefile.am (built_java_source_files): Add Configuration.java.
1575 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1576 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1577 Create `gnu' directory in the build tree.
1578 * gnu/classpath/Configuration.java.in: New file.
1580 2000-11-24 Tom Tromey <tromey@cygnus.com>
1582 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1584 (_Jv_NewPrimArray): Likewise.
1586 * gcj/array.h (__JArray): `length' field now const. Added
1588 (class JArray): Added constructor.
1590 2000-11-23 Mark Wielaard <mark@klomp.org>
1592 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1595 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1597 * java/util/Vector.java: Improve exception messages.
1598 (Vector): Check initialCapacity for IllegalArgumentException.
1599 (tromToSize): Don't check for elementCount == elementData.length
1601 (toArray): Don't try to set null marker if target array is the same
1602 length as the vector.
1604 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1606 * Makefile.in: Rebuilt.
1607 * Makefile.am (core_java_source_files): Added Collections.java.
1608 * java/util/List.java: Merged from classpath.
1609 * java/util/Vector.java: Ditto.
1610 * java/util/Collections.java: From classpath.
1611 * java/util/ArrayList.java (addAll(Collection)): Call
1612 addAll(int,Collection) instead of duplicating code.
1613 (indexOf): Clean up int initialization.
1614 (clear): Set cleared array entries to null, to allow garbage
1616 * java/util/List.java: Minor formatting fixes.
1617 * java/util/SimpleTimeZone.java: ditto.
1619 2000-11-18 Tom Tromey <tromey@cygnus.com>
1621 * Makefile.in: Rebuilt.
1622 * Makefile.am (core_java_source_files): Added new files.
1623 * java/lang/reflect/ReflectPermission.java: New class.
1624 * java/io/FileFilter.java: From Classpath
1625 * java/io/FilePermission.java: From Classpath.
1627 2000-11-17 Tom Tromey <tromey@cygnus.com>
1629 * java/lang/reflect/AccessibleObject.java (isAccessible,
1630 setAccessible): Now public.
1632 * java/lang/natString.cc: Include Locale.h.
1633 (toUpperCase): Added `locale' argument. Handle locale
1635 (toLowerCase): Added `locale' argument. Handle locale
1637 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1638 CAPITAL_I): New defines.
1639 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1642 (toUpperCase, toLowerCase): New methods. Variants which accept
1645 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1648 * java/util/PropertyPermission.java: Re-merged from Classpath.
1650 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1652 * java/text/StringCharacterIterator.java: Reindented.
1653 (setText): New method.
1655 2000-11-17 Mark Wielaard <mark@klomp.org>
1657 Merge with Classpath (changes by Bryce McKinlay)
1658 * java/util/jar/*.java: Reformat all to unofficial standard coding
1659 style. No changes of substance.
1661 2000-11-17 Mark Wielaard <mark@klomp.org>
1663 * java/util/zip/*.java: Javadoc updates.
1665 2000-11-17 Tom Tromey <tromey@cygnus.com>
1667 * java/text/CollationKey.java: Implement Comparable.
1668 (compareTo(Object)): New method.
1669 * java/text/Collator.java (compare(Object,Object)): New method.
1670 Implement Comparator.
1672 * java/util/zip/InflaterInputStream.java (available): New method.
1673 (close): New method.
1674 (read, available, skip, fill): Throw exception if stream closed.
1675 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1676 getNextEntry): Throw exception if closed.
1678 2000-11-16 Tom Tromey <tromey@cygnus.com>
1680 * java/io/PushbackReader.java: Merged with Classpath.
1681 * java/util/Arrays.java: Updated from Classpath.
1683 * scripts/blocks.pl: New file.
1684 * java/lang/Character.java (Subset): New class.
1685 (UnicodeBlock): New class.
1687 * java/lang/Math.java (toDegrees, toRadians): New methods.
1689 * java/lang/Float.java: Implement Comparable.
1690 (compareTo): New methods.
1691 * java/lang/Double.java: Implement Comparable.
1692 (compareTo): New methods.
1694 2000-11-16 Warren Levy <warrenl@cygnus.com>
1696 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1698 (listeners): Made transient.
1699 (source): Renamed from 'bean'.
1700 (children): New field for serialization.
1701 (propertyChangeSupportSerializedDataVersion): Ditto.
1702 (serialVersionUID): Ditto.
1703 (writeObject): New serialization method.
1704 (readObject): New serialization method.
1705 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1707 (listeners): Made transient.
1708 (source): Renamed from 'bean'.
1709 (children): New field for serialization.
1710 (vetoableChangeSupportSerializedDataVersion): Ditto.
1711 (serialVersionUID): Ditto.
1712 (writeObject): New serialization method.
1713 (readObject): New serialization method.
1714 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1715 to allow constructor to have a return type (i.e. the class that the
1716 constructor constructs).
1718 2000-11-14 Tom Tromey <tromey@cygnus.com>
1720 * Makefile.in: Rebuilt.
1721 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1724 2000-11-02 Warren Levy <warrenl@cygnus.com>
1726 * java/io/ObjectInputStream.java (readObject): Added code to
1727 conditionally dump out the serialized data.
1728 Handle ENDBLOCKDATA case a bit more gracefully since the current
1729 behavior doesn't seem to work as expected.
1730 (readStreamHeader): Added code for serialized data dumper.
1731 (readNextBlock): Ditto.
1732 (readFields): Ditto.
1733 (dump): New private static field for turning on/off dumper.
1734 (setDump): New native method.
1735 (dumpElement): New native method.
1736 (dumpElementln): New native method.
1737 * java/io/natObjectInputStream.cc (setDump): New method.
1738 (dumpElement): New method.
1739 (dumpElementln): New method.
1741 2000-11-02 Warren Levy <warrenl@cygnus.com>
1743 * java/net/InetAddress.java (addr): Renamed from 'address'.
1744 (address): New field to match Serialized Form doc.
1745 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1746 (family): New serialization field.
1747 (serialVersionUID): New field.
1748 (readObject): New method.
1749 (writeObject): New method.
1750 (getFamily): New native method.
1751 (InetAddress): Set family.
1752 * java/net/natInetAddress.cc (getFamily): New method.
1753 (addr): Renamed from 'address'.
1754 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1755 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1756 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1758 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1760 * java/util/AbstractList.java (SubList): Make it a top-level private
1762 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1764 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1765 * Makefile.in: Rebuilt.
1767 2000-11-02 Tom Tromey <tromey@cygnus.com>
1769 * Makefile.in: Rebuilt.
1770 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1773 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1775 * java/util/AbstractList.java (remove): Comment out modCount increment
1776 to work around compiler bug.
1779 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1781 * java/util/AbstractList.java: Throw messages with
1782 IndexOutOfBoundsExceptions.
1783 (listIterator()): Call listIterator(0).
1784 (size): New field. Initialize to size().
1785 (hasNext): Test position against size, not size().
1786 (remove): Increment knownMod by one instead of resetting it from
1789 (SubList.upMod): Removed.
1790 (SubList.set): Don't call upMod() or update knownMod.
1791 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1792 (SubList.remove): Ditto.
1793 (SubList.addAll): Don't call backingList.size(). Increment size from
1795 (SubList.iterator): New method. Call listIterator(0).
1796 (SubList.listIterator): New method. Restore code to return an anonymous
1797 listIterator implementation (with some changes).
1798 * java/util/AbstractSequentialList.java: Throw messages with
1799 IndexOutOfBoundsExceptions.
1800 (addAll): Add a specnote.
1801 * java/util/ArrayList.java (removeRange): Get the math right.
1802 (addAll): Increment modCount _before_ creating iterator.
1803 * java/util/LinkedList.java: Rewritten, mostly.
1805 2000-11-01 Tom Tromey <tromey@cygnus.com>
1807 * scripts/encodings.pl: Added `ASCII' alias.
1808 * Makefile.in: Rebuilt.
1809 * Makefile.am (convert_source_files): Added new files.
1810 * gnu/gcj/convert/Input_ASCII.java: New file.
1811 * gnu/gcj/convert/Output_ASCII.java: New file.
1812 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1813 out-of-range characters.
1814 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1815 (read): Swap bytes if required. Treat `count' as character count,
1817 (write): Likewise. Also, handle case where iconv fails on a given
1819 (init): Put encoding into exception.
1820 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1821 (static): Call iconv_init. Rebuilt alias list.
1822 (iconv_init): New private method.
1824 2000-11-01 Tom Tromey <tromey@cygnus.com>
1826 * Makefile.in: Rebuilt.
1827 * Makefile.am (install-exec-hook): Only make a single symlink, and
1828 remove the destination before making the link.
1829 * configure: Rebuilt.
1830 * configure.in: Call AC_PROG_LN_S.
1832 2000-10-31 Warren Levy <warrenl@cygnus.com>
1834 * jni.cc: Added include of java/lang/ThreadGroup.h.
1835 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1836 per change of 2000-10-05.
1838 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1840 * java/util/BitSet.java: Updated @specnote.
1842 * java/io/Reader.java: Merge docs from classpath.
1843 (skip): Synchronize on `lock'.
1844 * java/io/FileReader.java: Import correct implementation from
1846 * java/io/StringReader.java: Merge docs from classpath.
1847 (ready): Throw IOException if stream is closed.
1849 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1851 * java/util/AbstractCollection.java (addAll): Use size() instead of
1852 hasNext() in iterator loop.
1854 (contains): Ditto. Simplify loop.
1855 (containsAll): Ditto.
1860 (toString): Ditto. Use string concatenation operators, not
1862 * java/util/AbstractList.java (addAll): Use size() instead of
1863 hasNext() in iterator loop.
1866 (indexOf): Ditto. Don't take null check outside of the loop.
1867 (iterator): Return an AbstractListItr instead of anonymous class.
1868 (lastIndexOf): Use a for loop bounded by size() instead of
1869 hasPrevious() in iterator loop.
1870 (listIterator): Return an AbstractListItr.
1871 (removeRange): Remove bounds checking code and docs.
1872 (AbstractListItr): New inner class. Code moved here from
1874 (SubList.iterator): Removed. Use default implementation from
1875 AbstractList instead.
1876 (SubList.listIterator): As above.
1877 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1878 instead of hasNext() in iterator loop.
1879 (containsValue): Ditto.
1885 (toString): Ditto. Use string concatenation operators, not
1887 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1888 bounded by size() instead of hasNext() in iterator loop.
1889 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1890 part of normal execution flow. Do an explicit null check instead.
1891 * java/util/ArrayList.java (_iSize): Rename to `size'.
1892 (_arData): Rename to `data'.
1893 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1896 (removeRange): Make protected. Don't check bounds.
1897 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1899 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1901 (addAll (int, Collection)): Check lower bounds. Simplify exception
1903 (clone): Clone the data array too.
1904 (indexOf): Inline doesEqual().
1905 (lastIndexOf): Ditto.
1906 (clear): Don't set array data to null.
1907 (set): Check lower bounds. Simplify exception string.
1908 (toArray): Correct comment.
1909 (trimToSize): Don't update modCount, this is not a structural change.
1912 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1914 (toString): Declare `bit' as long, not int.
1915 (data): Made package-private, not private.
1917 2000-10-27 Warren Levy <warrenl@cygnus.com>
1919 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1920 array elements to true.
1922 2000-10-27 Warren Levy <warrenl@cygnus.com>
1924 * Makefile.am: Added locale files from Classpath.
1925 * Makefile.in: Rebuilt.
1926 * gnu/java/locale/Calendar.java: New file.
1927 * gnu/java/locale/Calendar_de.java: New file.
1928 * gnu/java/locale/Calendar_en.java: New file.
1929 * gnu/java/locale/Calendar_nl.java: New file.
1930 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1931 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1932 serialization compatibility.
1933 (scale): Made private.
1934 (serialVersionUID): New field.
1935 * java/math/BigInteger.java (ival): Made transient.
1936 (words): Made transient.
1937 (bitCount): New serialization field.
1939 (firstNonzeroByteNum): Ditto.
1940 (lowestSetBit): Ditto.
1943 (serialVersionUID): New field.
1944 (readObject): New method.
1945 (writeObject): New method.
1946 * java/util/BitSet.java (serialVersionUID): New field.
1947 * java/util/Calendar.java: Replaced with Classpath file.
1948 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1949 of getDefault() for TimeZone or Locale instead of passing nulls.
1950 * java/util/Locale.java (serialVersionUID): New field.
1951 (writeObject): New method.
1952 (readObject): New method.
1953 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1955 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1957 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1958 (core_java_source_files): Put java.lang, java.io, and java.util here.
1959 (ordinary_java_source_files): Order so that core_java_source_files are
1961 (java_source_files): Reorder so that special_java_source_files are
1963 * configure.in: Don't pass -I flag to gcj.
1964 * Makefile.in: Rebuilt.
1965 * configure: Rebuilt.
1967 2000-10-25 Tom Tromey <tromey@cygnus.com>
1969 * Makefile.in: Rebuilt.
1970 * Makefile.am (install-exec-hook): New target.
1972 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1974 * java/util/EventObject.java: Merged from classpath.
1976 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1979 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1981 * java/util/AbstractSet.java (equals): Re-installed original code.
1983 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1985 * Makefile.am: Added rules for libgcjx library.
1986 * Makefile.in: Rebuilt.
1987 * configure.in: Added check for X.
1988 * configure: Rebuilt.
1989 * gnu/awt/LightweightRedirector.java: New file.
1990 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1991 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1992 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1993 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1994 * gnu/awt/j2d/MappedRaster.java: New file.
1995 * gnu/awt/xlib/XCanvasPeer.java: New file.
1996 * gnu/awt/xlib/XEventLoop.java: New file.
1997 * gnu/awt/xlib/XEventQueue.java: New file.
1998 * gnu/awt/xlib/XFontMetrics.java: New file.
1999 * gnu/awt/xlib/XFramePeer.java: New file.
2000 * gnu/awt/xlib/XGraphics.java: New file.
2001 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2002 * gnu/awt/xlib/XPanelPeer.java: New file.
2003 * gnu/awt/xlib/XToolkit.java: New file.
2004 * gnu/gcj/xlib/Clip.java: New file.
2005 * gnu/gcj/xlib/Colormap.java: New file.
2006 * gnu/gcj/xlib/Display.java: New file.
2007 * gnu/gcj/xlib/Drawable.java: New file.
2008 * gnu/gcj/xlib/Font.java: New file.
2009 * gnu/gcj/xlib/GC.java: New file.
2010 * gnu/gcj/xlib/Pixmap.java: New file.
2011 * gnu/gcj/xlib/Screen.java: New file.
2012 * gnu/gcj/xlib/Visual.java: New file.
2013 * gnu/gcj/xlib/WMSizeHints.java: New file.
2014 * gnu/gcj/xlib/Window.java: New file.
2015 * gnu/gcj/xlib/WindowAttributes.java: New file.
2016 * gnu/gcj/xlib/XAnyEvent.java: New file.
2017 * gnu/gcj/xlib/XButtonEvent.java: New file.
2018 * gnu/gcj/xlib/XColor.java: New file.
2019 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2020 * gnu/gcj/xlib/XConnectException.java: New file.
2021 * gnu/gcj/xlib/XEvent.java: New file.
2022 * gnu/gcj/xlib/XException.java: New file.
2023 * gnu/gcj/xlib/XExposeEvent.java: New file.
2024 * gnu/gcj/xlib/XID.java: New file.
2025 * gnu/gcj/xlib/XImage.java: New file.
2026 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2027 * gnu/gcj/xlib/natClip.cc: New file.
2028 * gnu/gcj/xlib/natColormap.cc: New file.
2029 * gnu/gcj/xlib/natDisplay.cc: New file.
2030 * gnu/gcj/xlib/natDrawable.cc: New file.
2031 * gnu/gcj/xlib/natFont.cc: New file.
2032 * gnu/gcj/xlib/natGC.cc: New file.
2033 * gnu/gcj/xlib/natPixmap.cc: New file.
2034 * gnu/gcj/xlib/natScreen.cc: New file.
2035 * gnu/gcj/xlib/natVisual.cc: New file.
2036 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2037 * gnu/gcj/xlib/natWindow.cc: New file.
2038 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2039 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2040 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2041 * gnu/gcj/xlib/natXColor.cc: New file.
2042 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2043 * gnu/gcj/xlib/natXException.cc: New file.
2044 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2045 * gnu/gcj/xlib/natXImage.cc: New file.
2046 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2047 * java/awt/EventDispatchThread.java: Start thead on creation.
2049 2000-10-20 Tom Tromey <tromey@cygnus.com>
2051 From Arno J. Klaassen:
2052 * interpret.cc: Include <stdlib.h> for alloca.
2053 * defineclass.cc: Include <stdlib.h> for alloca.
2055 * Makefile.in: Rebuilt.
2056 * Makefile.am: Include deps.mk.
2057 (GCJCOMPILE): Added -MD, -MT, and -MF.
2058 ($(javao_files)): Don't depend on libgcj.zip.
2059 (all-recursive): New target.
2060 (%.lo:%.cc): Do dependency tracking.
2061 ($(nat_headers)): Don't depend on libgcj.zip.
2062 * configure: Rebuilt.
2063 * configure.in: Make .d files and deps.mk.
2065 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2067 * exception.cc: Don't #include "exception".
2068 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2070 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2071 * Makefile.in: Updated.
2073 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2075 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2076 * java/awt/peer/ComponentPeer.java (disable): Removed.
2079 (minimumSize): Removed.
2080 (preferredSize): Removed.
2083 * java/awt/peer/ListPeer.java (addItem): Removed.
2085 (minimumSize): Removed.
2086 (preferredSize): Removed.
2087 (setMultipleSelections): Removed.
2088 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2089 (remove): Renamed from removeMenu.
2090 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2092 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2093 (remove): Renamed from removeItem.
2094 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2095 (getMinimumSize): Removed.
2096 (getPreferredSize): Removed.
2097 (minimumSize): Removed.
2098 (preferredSize): Removed.
2099 (replaceText): Removed.
2100 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2101 (preferredSize): Removed.
2102 (getMinimumSize): Removed.
2103 (getPreferredSize): Removed.
2104 (setEchoCharacter): Removed.
2106 2000-10-10 Warren Levy <warrenl@cygnus.com>
2108 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2109 * java/sql/Date.java (serialVersionUID): New field.
2110 * java/sql/Time.java (serialVersionUID): New field.
2111 * java/sql/Timestamp.java (serialVersionUID): New field.
2112 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2113 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2114 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2115 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2116 (readObject): New serialization method.
2117 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2118 (serialVersionOnStream): New field.
2119 (readObject): New serialization method.
2120 (getMonetaryDecimalSeparator): New method.
2121 (setMonetaryDecimalSeparator): New method.
2122 * java/text/NumberFormat.java (maxFractionDigits): New field.
2123 (maxIntegerDigits): New field.
2124 (minFractionDigits): New field.
2125 (minIntegerDigits): New field.
2126 (serialVersionOnStream): New field.
2127 (serialVersionUID): New field.
2128 (readObject): New serialization method.
2129 (writeObject): New serialization method.
2130 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2131 (serialVersionOnStream): New field.
2132 (serialVersionUID): New field.
2133 (readObject): New serialization method.
2135 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2137 * configure.in (GCJ): Avoid bogus error message when looking for
2138 (and not finding) gcj in the build tree.
2139 * configure: Rebuilt.
2141 2000-10-09 Tom Tromey <tromey@cygnus.com>
2143 * configure: Rebuilt.
2144 * configure.in: Include sys/types.h when checking for socklen_t.
2145 From Arno J. Klaassen.
2147 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2149 * include/jvm.h: Enable __builtin_expect().
2151 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2152 the main program. Fix for PR libgcj/341.
2154 2000-10-07 Tom Tromey <tromey@cygnus.com>
2156 * java/util/Properties.java: Merged with Classpath version.
2158 2000-10-05 Tom Tromey <tromey@cygnus.com>
2160 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2161 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2162 * java/lang/Class.h (Object): Added `class$' field.
2163 * java/lang/Object.h (Object): Added `class$' field.
2164 * defineclass.cc (ClassClass): Use `class$' form.
2165 (ClassObject): Likewise.
2166 * resolve.cc (ClassObject): Use `class$' form.
2167 (ObjectClass): Likewise.
2168 * interpret.cc (ClassError): Removed.
2169 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2171 (IntegerClass): Likewise.
2172 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2174 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2175 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2176 SerializableClass): Likewise.
2177 Include Serializable.h, Cloneable.h.
2178 * java/lang/natSystem.cc (SystemClass): Removed.
2179 (init_properties): Use `class$' form.
2180 * java/lang/natObject.cc (CloneableClass): Removed.
2181 (clone): Use `class$' form.
2182 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2183 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2184 ConstructorClass): Likewise.
2185 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2186 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2187 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2188 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2190 (ClassClass): Likewise.
2191 * include/jvm.h (StringClass): Use `class$' form.
2192 * prims.cc (ObjectClass): Removed.
2193 (_Jv_RunMain): Use `class$' form.
2194 (_Jv_AllocObject): Likewise.
2195 * jni.cc (ClassClass): Use `class$' form.
2196 (ThrowableClass): Likewise.
2197 (ObjectClass): Likewise.
2198 (MethodClass): Likewise.
2199 (ThreadGroupClass): Likewise.
2200 (NativeThreadClass): Likewise.
2201 * boehm.cc (ObjectClass): Removed.
2202 (ClassClass): Removed.
2203 (_Jv_MarkObj): Use `class$' form.
2204 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2207 2000-10-05 Warren Levy <warrenl@cygnus.com>
2209 * Makefile.am: Removed java/io/Replaceable.java and
2210 java/io/Resolvable.java.
2211 * Makefile.in: Rebuilt.
2212 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2214 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2216 (processResolution): Handle readResolve method via reflection with
2217 removal of Resolvable interface.
2218 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2219 method via reflection with removal of Replaceable interface.
2220 * java/io/Replaceable.java: Removed.
2221 * java/io/Resolvable.java: Removed.
2222 * java/security/Key.java (serialVersionUID): New field.
2223 * java/security/Provider.java (serialVersionUID): New field.
2224 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2226 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2228 * java/sql/DataTruncation.java (serialVersionUID): New field.
2229 * java/sql/SQLException.java (serialVersionUID): New field.
2230 * java/sql/SQLWarning.java (serialVersionUID): New field.
2231 * java/util/Date.java (serialVersionUID): New field.
2232 (millis): Made transient.
2233 (readObject): New method.
2234 (writeObject): New method.
2236 2000-10-05 Tom Tromey <tromey@cygnus.com>
2238 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2240 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2242 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2243 (JvRunMain): Set _Jv_argv and _Jv_argc.
2244 * java/awt/Component.java: Minor fixes.
2245 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2246 * java/awt/Toolkit.java (systemEventQueue): Removed.
2247 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2248 * java/awt/Window.java (getToolkit): Don't call super.
2249 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2250 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2251 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2252 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2253 * gnu/awt/gtk/GtkFramePeer.java: New file.
2254 * gnu/awt/gtk/GtkMainThread.java: New file.
2255 * gnu/awt/gtk/GtkToolkit.java: New file.
2256 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2257 * gnu/awt/gtk/gtkcommon.cc: New file.
2258 * gnu/awt/gtk/gtkcommon.h: New file.
2259 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2260 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2261 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2262 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2263 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2264 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2266 2000-09-30 Tom Tromey <tromey@cygnus.com>
2268 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2269 interrupted before modifying the cv's wait set.
2272 2000-09-30 Hans Boehm <boehm@acm.org>
2273 Bryce McKinlay <bryce@albatross.co.nz>
2275 Implement bitmap descriptor based marking for Boehm GC.
2277 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2278 * configure: Rebuilt.
2279 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2280 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2281 method get_finalizer().
2282 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2283 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2284 (_Jv_AllocObj): Add new jclass parameter.
2285 (_Jv_AllocArray): Ditto.
2286 (_Jv_BuildGCDescr): New prototype.
2287 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2288 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2289 get_finalizer() instead of direct finalizer vtable offset.
2290 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2291 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2292 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2293 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2294 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2295 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2296 (_Jv_DetermineVTableIndex): Ditto.
2297 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2298 calculations to account for new gc_descr field.
2299 * boehm.cc: #include gc_gcj.h.
2300 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2301 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2302 New commentary from HB. Mark the classes vtable.
2303 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2304 (GC_DEFAULT_DESCR): New #define.
2305 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2306 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2307 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2308 scan conservativly if size is less than min_heap_addr. Set vtable
2309 pointer of new object before returning.
2310 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2311 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2312 allocation for obj_kind_x.
2313 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2314 (_Jv_AllocObj): Set vtable on returned object.
2315 (_Jv_AllocArray): Ditto.
2316 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2317 (_Jv_NewPrimArray): Ditto.
2318 (_Jv_AllocObj): Declare as a friend.
2319 (_Jv_AllocArray): Ditto.
2320 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2321 from &ObjectClass into new array class. Remove offset-by-one
2322 adjustments from `method' size calculations to account for gc_descr
2325 2000-09-26 Tom Tromey <tromey@cygnus.com>
2327 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2328 `remove', not `add'.
2330 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2332 * java/lang/natSystem.cc (file_encoding): Added return statement.
2334 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2336 * Makefile.am: Re-work shell commands that exceeded command-line
2338 * Makefile.in: Rebuilt.
2340 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2342 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2343 * java/lang/natDouble.cc: Likewise.
2344 * java/lang/reflect/natMethod.cc: Likewise.
2345 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2347 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2349 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2351 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2352 * acinclude.m4: Arrange for automake to not bring in a new
2353 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2354 * Makefile.am: Leave it up to automake to subst GCJ.
2355 * aclocal.m4, configure, Makefile.in: Rebuilt.
2357 2000-09-13 Tom Tromey <tromey@cygnus.com>
2359 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2360 (get): Ensure Boolean class is initialized.
2361 * java/lang/reflect/natField.cc (BooleanClass): New define.
2362 (get): Ensure Boolean class is initialized.
2364 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2366 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2367 Initialize with anonymous class.
2368 (compareToIgnoreCase): New method.
2370 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2371 (uncaughtException): Set had_uncaught_exception.
2372 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2373 exit with error status if set.
2374 (_Jv_RunMain): Ditto.
2376 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2378 * configure: Rebuilt with new ../libtool.m4.
2380 2000-09-11 Tom Tromey <tromey@cygnus.com>
2382 * java/lang/reflect/Field.java (toString): Don't rely on
2385 2000-09-08 Tom Tromey <tromey@cygnus.com>
2387 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2388 default decoder use iconv.
2389 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2390 Let default encoder use iconv.
2391 * configure: Rebuilt.
2392 * configure.in: Check for nl_langinfo and <langinfo.h>.
2393 * java/lang/natSystem.cc (file_encoding): New function.
2394 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2396 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2398 * acinclude.m4: Simplify the tests for CC and CXX.
2399 * aclocal.m4, configure: Rebuilt.
2401 * acinclude.m4: Include libtool macros from the source tree.
2402 * aclocal.m4, configure: Rebuilt.
2404 2000-09-08 Warren Levy <warrenl@cygnus.com>
2406 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2407 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2408 * java/io/File.java (writeObject): Added.
2409 (readObject): Added.
2410 (serialVersionUID): Added.
2411 * java/io/ObjectOutputStream.java (writeObject): Initialized
2412 fieldsAlreadyWritten before recursion rather than after.
2413 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2414 * java/io/OptionalDataException.java (serialVersionUID): Added.
2415 (OptionalDataException): Made package private.
2416 * java/io/SyncFailedException.java (SyncFailedException): Removed
2417 default constructor to match spec.
2418 * java/lang/Boolean.java (serialVersionUID): Added.
2419 * java/lang/Byte.java (serialVersionUID): Added.
2420 * java/lang/Character.java (serialVersionUID): Added.
2421 * java/lang/Double.java (serialVersionUID): Added.
2422 * java/lang/Float.java (serialVersionUID): Added.
2423 * java/lang/Integer.java (serialVersionUID): Added.
2424 * java/lang/Long.java (serialVersionUID): Added.
2425 * java/lang/Number.java (serialVersionUID): Added.
2426 * java/lang/Short.java (serialVersionUID): Added.
2427 * java/lang/String.java (serialVersionUID): Added.
2428 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2430 * java/lang/reflect/InvocationTargetException.java
2431 (serialVersionUID): Added.
2432 * java/net/URL.java (handler): Made transient.
2433 (hashCode): Added field for serialization, per spec. and use
2434 cached value if available.
2435 (serialVersionUID): Added.
2436 (URL): Initialize hashCode.
2437 (set): Adjust hashCode.
2438 (readObject): New Method to initialize the protocol handler when
2440 (writeObject): New method.
2441 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2442 * java/text/Collator.java: Removed 'implements Serializable'.
2443 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2444 * java/util/Properties.java (serialVersionUID): Added.
2445 * java/util/Random.java (serialVersionUID): Added.
2446 (seed): Made private.
2447 (nextNextGaussian): Made private.
2448 (haveNextNextGaussian): Made private.
2449 * java/util/Stack.java (serialVersionUID): Added.
2450 * java/util/TimeZone.java (serialVersionUID): Added.
2451 * java/util/Vector.java (serialVersionUID): Added.
2453 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2455 * Makefile.am (Thread.h): Don't be friends with native threads
2457 * Makefile.in: Rebuilt.
2458 * java/lang/Thread.java (interrupt_flag): Make package-private.
2460 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2462 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2463 to avoid long long division.
2465 2000-09-06 Tom Tromey <tromey@cygnus.com>
2467 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2469 * java/lang/reflect/Method.java (toString): Use `getName' for
2472 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2473 `args' if method takes no parameters.
2475 Fix for PR java.lang/339:
2476 * java/lang/natPosixProcess.cc (fail): New function.
2477 (cleanup): New function.
2478 (startProcess): Use them. Create pipe so child can communicate
2479 exec failure back to parent.
2481 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2483 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2485 (send): Undo last patch. Remove the label only.
2487 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2489 * java/net/natInetAdress.cc: Ditto.
2491 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2493 2000-09-05 Tom Tromey <tromey@cygnus.com>
2495 * doc/cni.sgml: Updated from master copy.
2497 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2499 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2501 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2503 * java/lang/fdlibm.h: #undef __P if previously defined.
2504 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2505 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2509 2000-09-04 Tom Tromey <tromey@cygnus.com>
2511 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2514 2000-09-04 Anthony Green <green@redhat.com>
2516 Fix for PR java.io/203:
2517 * java/io/File.java (createTempFile): Obey directory argument.
2518 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2519 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2520 variable to set java.io.tmpdir on non-WIN32 systems.
2522 2000-09-04 Anthony Green <green@redhat.com>
2524 * java/io/File.java (deleteOnExit): New method.
2525 * gnu/gcj/runtime/FileDeleter.java: New class.
2526 * java/lang/natRuntime.cc (exit): Call
2527 FileDeleter.deleteOnExitNow()
2528 * Makefile.am: Add FileDeleter.java.
2529 * Makefile.in: Rebuilt.
2531 2000-09-02 Tom Tromey <tromey@cygnus.com>
2533 * Makefile.in: Rebuilt.
2534 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2535 environment variable.
2537 2000-09-01 Andrew Haley <aph@redhat.com>
2539 * java/io/StreamTokenizer.java: Don't throw a
2540 NumberFormatException if a field is numeric as far as the
2541 StreamTokenizer is concerned but not as far as Double.valueOf() is
2542 concerned: return a zero instead.
2544 2000-08-30 Tom Tromey <tromey@cygnus.com>
2546 * Makefile.in: Rebuilt.
2547 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2549 2000-08-28 Tom Tromey <tromey@cygnus.com>
2551 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2552 gnu/gcj/awt/ComponentDataBlitOp.java,
2553 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2554 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2555 java/awt/color/ICC_ColorSpace.java,
2556 java/awt/color/ICC_Profile.java,
2557 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2558 java/awt/image/ComponentColorModel.java,
2559 java/awt/image/ComponentSampleModel.java,
2560 java/awt/image/DataBuffer.java,
2561 java/awt/image/DataBufferByte.java,
2562 java/awt/image/DataBufferInt.java,
2563 java/awt/image/DataBufferUShort.java,
2564 java/awt/image/DirectColorModel.java,
2565 java/awt/image/IndexColorModel.java,
2566 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2567 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2568 java/awt/image/SinglePixelPackedSampleModel.java,
2569 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2570 Removed Latin-1 copyright symbols.
2571 * java/util/zip/ZipFile.java: Indentation fixes.
2573 2000-08-27 Mark Wielaard <mark@klomp.org>
2575 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2576 constructor, close can delete the file, finalize calls close.
2577 * java/util/jar/JarFile.java: Constructor that takes mode now
2580 2000-08-27 Anthony Green <green@redhat.com>
2582 * java/util/ArrayList.java, java/util/Timer.java,
2583 java/util/LinkedList.java, java/util/TimerTask.java,
2584 java/util/HashMap.java, java/util/AbstractMap.java,
2585 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2586 java/util/SortedSet.java: Imported from GNU Classpath.
2587 * Makefile.in: Rebuilt.
2588 * Makefile.am: Added new files.
2590 2000-08-26 Anthony Green <green@redhat.com>
2592 * Makefile.in: Rebuilt.
2593 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2596 * prims.cc: Include ClassLoader.h.
2597 (_Jv_RunMain): When executing jar files, classpath must be the jar
2598 file only. Lose our reference to the system ClassLoader in order
2599 to get a new one with the correct classpath.
2600 * java/lang/natSystem.cc (init_properties): When executing a jar
2601 file, only use the jar file for java.class.path.
2603 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2604 for bytecode archives.
2606 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2607 exists, but not Main-Class.
2609 2000-08-23 Mark Wielaard <mark@klomp.org>
2611 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2612 return -1 when fill() has no more data for the Inflater.
2614 2000-08-23 Mark Wielaard <mark@klomp.org>
2616 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2617 write(String) already does.
2619 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2621 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2622 to `alive_flag', call `init'.
2623 (init): New native method.
2624 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2627 2000-08-21 Mark Wielaard <mark@klomp.org>
2629 * Makefile.in: Rebuilt.
2630 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2632 (java/lang/reflect/Field.h): Likewise.
2633 (java/lang/reflect/Method.h): Likewise.
2634 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2637 2000-08-21 Tom Tromey <tromey@cygnus.com>
2639 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2642 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2644 * java/lang/natSystem.cc (init_properties): Change sourceware
2645 reference to sources.redhat.com.
2647 * include/java-props.h: Add _Jv_Jar_Class_Path.
2648 * prims.cc: Ditto. Set it from `gij -jar file' option.
2650 * java/lang/natSystem.cc (init_properties): Set java.class.path
2652 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2654 * java/util/PropertyPermission.java: Import from GNU Classpath.
2655 * Makefile.in: Rebuilt.
2656 * Makefile.am: Add java/util/PropertyPermission.java.
2657 * java/lang/System.java: Add setProperty method.
2659 * gij.cc (main): Add -jar option to execute jar files.
2660 (help): Describe -jar option.
2661 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2662 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2663 * gnu/gcj/runtime/FirstThread.java (main): New method.
2665 * java/util/jar/Attributes.java: Correct comment spelling.
2667 2000-08-20 Mark Wielaard <mark@klomp.org>
2669 * java/util/zip/Adler32.java: Make private variables really private
2670 * java/util/zip/CRC32.java: Make private variables really private
2671 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2673 * java/util/zip/InflaterInputStream.java: skip() could skip to
2675 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2676 * java/util/zip/ZipFile.java: size() new 1.2 method
2677 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2678 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2681 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2683 * java/util/jar/JarFile.java: Don't call
2684 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2687 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2689 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2690 Read the entire contents of the class file, not just what is
2693 * java/net/JarURLConnection.java: getEntry doesn't take any
2694 arguments. Return null if element is null.
2696 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2697 size from the archive, not the inflated size.
2699 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2700 java.util.zip.ZipFile.getEntry.
2702 * gij.cc (help): Change sourceware reference to
2705 2000-08-19 Tom Tromey <tromey@cygnus.com>
2707 * java/util/zip/ZipInputStream.java (createZipEntry):
2710 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2712 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2713 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2714 java/util/jar/JarInputStream.java,
2715 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2716 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2717 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2718 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2719 java/security/cert/Certificate.java,
2720 java/security/cert/CertificateEncodingException.java,
2721 java/security/cert/CertificateException.java,
2722 java/security/cert/CertificateExpiredException.java,
2723 java/security/cert/CertificateFactory.java,
2724 java/security/cert/CertificateFactorySpi.java,
2725 java/security/cert/CertificateNotYetValidException.java,
2726 java/security/cert/CertificateParsingException.java,
2727 java/security/cert/X509CRL.java,
2728 java/security/cert/X509CRLEntry.java,
2729 java/security/cert/X509Certificate.java,
2730 java/security/cert/X509Extension.java: Imported from Classpath.
2731 * java/util/Hashtable.java: Imported from Classpath.
2733 * java/util/zip/ZipInputStream.java: Create stub for
2736 * gcj/javaprims.h: Updated class list.
2738 * Makefile.in, gcj/Makefile.in: Rebuilt.
2739 * Makefile.am (ordinary_java_source_files): Add these new classes.
2741 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2743 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2744 * gnu/gcj/awt/GLightweightPeer.java: New file.
2745 * java/awt/BorderLayout.java: Implemented all methods.
2746 * java/awt/Button.java (actionListener, actionCommand): Renamed
2747 and modifier change.
2748 (addNotify): Call super.
2749 (dispatchEventImpl): New method.
2750 (getListeners): New method.
2751 (label): Made package-private, not private.
2752 * java/awt/Canvas.java: Implemented class body.
2753 * java/awt/Color.java (brighter): New method.
2754 (darker): New method.
2755 (hashCode): New method.
2756 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2757 (getGraphicsConfiguration): Delegate to
2758 getGraphicsConfigurationImpl().
2759 (getGraphicsConfigurationImpl): New method.
2760 (getToolkit): Only return value from peer if not null.
2761 (isDisplayable): Check with parent.
2762 (isShowing): No parent implies not showing.
2763 (getForeground): Check parent property if local is null.
2764 (getBackground): Likewise.
2765 (getFont): Likewise.
2766 (setForeground): Inform peer.
2767 (setBackground): Likewise
2768 (setLocale): Invalidate component.
2769 (getColorModel): Implemented.
2770 (setLocation): Invalidate, or ignore if no change.
2771 (setSize): Invalidate, or ignore if no change.
2772 (setBounds): Invalidate, or ignore if no change.
2773 (isOpaque): By default, heavyweight implies opaque.
2774 (isLightweight): Implemented.
2775 (getMaximumSize): Implemented.
2776 (doLayout): Implemented, NOP.
2777 (validate): Implemented, NOP.
2778 (invalidate): Only propagate to parent if parent was valid.
2779 (getGraphics): Implemented.
2780 (getFontMetrics): Implemented.
2781 (update): Implemented.
2782 (paintAll): Implemented.
2783 (repaint): Implemented all repaint methods.
2784 (print): Implemented.
2785 (printAll): Implemented.
2786 (createImage): Implemented.
2787 (dispatchEvent): Give the peer a chance to handle the event.
2788 (dispatchEventImpl): Dispatch paint events.
2789 (enableEvents): Lightweights enable events on parent component.
2790 (coalesceEvents): Coalesce paint events, and select event type
2792 (coalescePaintEvents): New method.
2793 (processEvent): Fix unfortunate ordering of statements, and call
2794 correct method for MOUSE_CLICKED.
2795 (processPaintEvent): New method.
2796 (addNotify): Allow container to notify children before event
2797 mask is set in peer.
2798 (addNotifyContainerChildren): New method.
2799 (removeNotify): Visibility should not change on removeNotify.
2800 (paramString): Implemented.
2801 (list): Implemented two of the list methods.
2802 * Container (myInsets): Removed, insets are managed by peer.
2803 (getInsets): Query peer.
2804 (addImpl): Fix reparenting, enable events for lightweights,
2805 initialize component array.
2806 (validate): Call doLayout in validateTree() instead.
2807 (validateTree): Do nothing if already valid. Call beginValidate(),
2808 endValidate() on peer. Call validateTree() instead of validate()
2809 for children that are containers. Mark valid after validation of
2811 (setFont): Partial implementation.
2812 (paint): Implemented.
2813 (visitChildren): New method.
2814 (visitChild): New method.
2815 (update): Implemented.
2816 (print): Implemented.
2817 (paintComponents): Implemented.
2818 (printComponents): Consider translation and clipping.
2819 (getComponentAt): Ignore invisible children. Return this if no
2821 (addNotify): Call super.
2822 (addNotifyContainerChildren): New method.
2823 (paramString): Implemented.
2824 (list): Implemented.
2825 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2827 (invokeLater): Likewise.
2828 (isDispatchThread): Likewise.
2829 * java/awt/FontMetrics (getLeading): Formula change.
2830 (getDescent): Consider leading also.
2831 (getMaxAscent): Default to getAscent().
2832 (getMaxDescent): Default to getDescent.
2833 (getMaxAdvance): Return value signifying unknown.
2834 (charWidth): Both methods implemented.
2835 (charsWidth): Implemented.
2836 (bytesWidth): Implemented.
2837 (getWidths): Implemented.
2838 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2840 (Frame): Rearragend constuctor chaining to disallow null being
2841 passed as a graphics configuration.
2842 (getTitle): Return empty string if null.
2844 (getIconImage): New method.
2845 (setIconImage): New method.
2846 (finalize): New method.
2847 (setMenuBar): Notify peer.
2848 (isResizable): New method.
2849 (setResizable): New method.
2850 (getState): New method.
2852 (remove): Implemented.
2853 (removeNotify): New method.
2854 (getFrames): New method.
2855 * java/awt/Graphics.java: Implemented body of class.
2856 * java/awt/Graphics2D.java: New file.
2857 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2858 * java/awt/Image.java: Implemented body of class.
2859 * java/awt/Panel.java (Panel): Call correct super constructor.
2860 (addNotify): Implemented.
2861 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2862 * java/awt/RenderingHints.java: New file.
2863 * java/awt/Toolkit.java (createComponent): Implemented.
2864 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2865 * java/awt/Window.java (Window): Two new constructors. Reordered
2866 constructor chaining.
2867 (getGraphicsConfigurationImpl): New method.
2868 (finalize): Call super.
2869 (addNotify): Call super.
2870 (pack): Do layout stuff.
2871 (show): Ensure that peer exists and that component is valid.
2872 (dispose): Dispose owned children.
2873 (getOwner): Simplify code, casting null pointers is valid.
2874 (getGraphicsConfiguration): Ask peer if local value is null.
2875 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2877 * java/awt/image/BufferedImage.java: New file.
2878 * java/awt/image/RasterOp.java: New file.
2879 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2880 More powerfull replacement for getColorModel().
2881 (getColorModel) Removed.
2882 (setEventMask) New method.
2883 * Makefile.am: Added new files.
2884 * Makefile.in: Rebuilt.
2886 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2888 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2889 (finit_leg_name): New global.
2890 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2891 `$finit$'. This is a backward compatibility hack.
2892 (java::lang::Class::_getMethods): Likewise.
2894 2000-08-15 Andrew Haley <aph@cygnus.com>
2896 * include/jvm.h (_Jv_HashCode): New hash code.
2898 2000-08-15 Tom Tromey <tromey@cygnus.com>
2900 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2902 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2904 * THANKS: More thanks.
2906 2000-08-10 Tom Tromey <tromey@cygnus.com>
2908 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2910 (connect): Likewise.
2912 (getOption): Likewise.
2913 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2914 case when errno not set.
2917 (receive): Likewise.
2918 (mcastGrp): Likewise.
2919 (setOption): Likewise.
2920 (getOption): Likewise.
2922 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2923 John Stracke <francis@ecal.com>
2925 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2926 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2928 (disconnect): Don't unset connected flag.
2929 (getHeaderField (String)): Call connect() if not connected.
2930 (getHeaderField (int)): Ditto.
2931 (getHeaderFieldKey): Ditto.
2932 (getHttpHeaders): Don't call connect().
2933 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2934 gotResponseVals): New fields.
2935 (getResponseCode): Call getResponseVals() conditionally.
2936 (getResponseMessage): Ditto.
2937 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2939 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2941 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2942 * Makefile.in: Rebuilt.
2943 * java/awt/Color.java (getTransparency): New method.
2944 * java/awt/Component.java: Various updates.
2945 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2946 after dealing with children.
2947 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2948 * java/awt/Window.java: Various new methods and updates.
2949 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2951 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2952 * java/awt/event/WindowEvent.java (paramString): Ditto.
2953 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2955 * java/awt/geom/Point2D.java (clone): Ditto.
2956 * java/awt/geom/RectangularShape.java (clone): Ditto.
2957 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2958 isAlphaPremultiplied): Make package-private, not private.
2960 2000-08-08 Tom Tromey <tromey@cygnus.com>
2962 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2963 surrogate characters.
2964 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2966 (write): Correct handling of surrogate characters.
2968 2000-08-07 Tom Tromey <tromey@cygnus.com>
2970 * java/lang/reflect/Method.java (hashCode): Use getName().
2971 (toString): Likewise.
2972 * java/lang/reflect/natMethod.cc (getType): Initialize
2975 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2977 * java/lang/reflect/Field.java (toString): Correct formatting.
2980 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2982 (receive): Streamlined.
2984 2000-08-05 Tom Tromey <tromey@cygnus.com>
2986 * java/io/PrintWriter.java: Merged comments from Classpath.
2987 (printlnUnsynchronized): Removed.
2988 (println()): Print the separator.
2989 (println): Call println(), not printlnUnsynchronized.
2990 (out): Now protected, to match spec.
2992 2000-08-04 Tom Tromey <tromey@cygnus.com>
2994 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2995 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2998 2000-08-03 Warren Levy <warrenl@cygnus.com>
3000 * java/io/ObjectInputStream.java (readFields): Turn off
3001 readDataFromBlock while reading via GetField.
3002 (GetField$1.get(String, Object)): Pass Class of default value to
3004 (getField): Allow for null default values.
3006 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3007 (PutField$1.put): Fixed calls of checkType in most of the put
3008 methods to pass the correct parameter.
3009 (PutField$1.put(String, Object)): Allow for null value arg.
3010 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3013 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3014 typo in spec'ed field name.
3015 (getSerialPersistentFields): Changed spelling of method to match
3016 the correct spelling of the spec'ed field name.
3018 2000-08-03 Tom Tromey <tromey@cygnus.com>
3020 * Makefile.in: Rebuilt.
3021 * Makefile.am (awt_java_source_files): Added new files.
3023 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3025 * Makefile.am: Add new AWT stubs.
3026 * java/awt/Canvas.java: New placeholder class.
3027 * java/awt/Checkbox.java: Ditto.
3028 * java/awt/CheckboxMenuItem.java: Ditto.
3029 * java/awt/Choice.java: Ditto.
3030 * java/awt/Dialog.java: Ditto.
3031 * java/awt/FileDialog.java: Ditto.
3032 * java/awt/List.java: Ditto.
3033 * java/awt/ScrollPane.java: Ditto.
3034 * java/awt/TextField.java: Ditto.
3035 * java/awt/datatransfer/Clipboard.java: Ditto.
3036 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3037 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3038 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3039 Some commented out. Partially implemented.
3040 * java/awt/natToolkit.cc: Removed file.
3042 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3044 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3045 Fixes "make -j" builds.
3046 * Makefile.in: Rebuild.
3048 2000-08-02 Tom Tromey <tromey@cygnus.com>
3050 * Makefile.in: Rebuilt.
3051 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3052 * java/net/natPlainSocketImpl.cc: Include posix.h.
3053 (accept): Use _Jv_select.
3054 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3055 (receive): Use _Jv_select.
3056 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3057 (available): Use _Jv_select.
3058 * java/lang/natSystem.cc: Include posix.h.
3059 (currentTimeMillis): Use _Jv_gettimeofday.
3060 * include/posix.h: New file.
3061 * posix.cc: New file.
3063 * scripts/encodings.pl: New file.
3064 * Makefile.in: Rebuilt.
3065 * Makefile.am (convert_source_files): Added IOConverter.java.
3066 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3068 (getDefaultDecodingClass): Canonicalize default encoding name.
3069 (getEncoder): Likewise.
3070 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3072 (getDefaultDecodingClass): Canonicalize default encoding name.
3073 (getDecoder): Likewise.
3074 * gnu/gcj/convert/IOConverter.java: New file.
3076 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3078 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3079 to match C declaration in ffi.h.
3080 * Makefile.am: Add java/awt/Button.java.
3081 * Makefile.in: Rebuilt.
3083 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3085 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3086 cast of the second argument to `ffi_raw_call' changed to match
3089 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3091 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3092 argument to `ffi_raw_call' changed to match prototype.
3094 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3096 * java/awt/Component.java (toString): Implemented.
3097 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3098 dispatchEvent() to dispatch the event.
3099 (removeImpl): Ditto.
3101 2000-07-30 Anthony Green <green@redhat.com>
3103 * java/awt/Component.java: Add treeLock object.
3104 (getTreeLock): Implement.
3105 (isShowing): Implement.
3107 2000-07-30 Tom Tromey <tromey@cygnus.com>
3109 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3111 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3113 * java/awt/Window.java (addNotify): Wrote.
3114 (addWindowListener): Wrote.
3116 (getWarningString): Wrote.
3117 (processEvent): Wrote.
3118 (processWindowEvent): Wrote.
3119 (removeWindowListener): Wrote.
3120 (show): Call validate(), setVisible().
3124 * java/awt/Toolkit.java (createWindow): Declare.
3126 * java/awt/Frame.java (addNotify): Use getToolkit to find
3129 * java/awt/Component.java (invalidate): Wrote.
3131 (getToolkit): Wrote.
3133 * java/awt/Container.java (addContainerListener): Removed
3135 (removeContainerListener): Likewise.
3137 (add(Component)): Use it.
3138 (add(String,Component)): Likewise.
3139 (add(Component,int)): Likewise.
3140 (add(Component,Object)): Likewise.
3141 (add(Component,Object,int)): Likewise.
3143 (getAlignmentX): Wrote.
3144 (getAlignmentY): Wrote.
3145 (getComponentAt): Wrote.
3146 (getMaximumSize): Wrote.
3147 (invalidate): Wrote.
3148 (list(PrintStream,int)): Wrote.
3149 (list(PrintWriter,int)): Wrote.
3150 (getMinimumSize): Wrote.
3151 (getPreferredSize): Wrote.
3152 (printComponents): Wrote.
3153 (processContainerEvent): Look at containerListener, not
3155 (remove): Added event processing and peer destruction.
3156 (removeAll): Use remove.
3157 (removeNotify): Wrote.
3159 (validateTree): Wrote.
3161 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3162 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3163 * java/awt/Container.java (addNotify): Don't create Container
3165 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3167 2000-07-30 Tom Tromey <tromey@cygnus.com>
3169 * java/awt/Container.java (remove(int)): Wrote.
3170 (remove(Component)): Wrote.
3171 (add(Component)): Wrote.
3172 (add(Component,int)): Wrote.
3174 (addNotify): Set our own peer.
3175 * java/awt/Scrollbar.java (listeners): Changed type.
3176 (Scrollbar): Don't initialize listeners.
3178 (setValue): Call setValues.
3179 (setMinimum): Likewise.
3180 (setMaxPriority): Likewise.
3181 (setVisibleAmount): Likewise.
3183 (setUnitIncrement): Forward to peer.
3184 (setLineIncrement): Call setUnitIncrement.
3185 (setPageIncrement): Call setBlockIncrement.
3186 (setBlockIncrement): Forward to peer.
3187 (addAdjustmentListener): Rewrote.
3188 (removeAdjustmentListener): Rewrote.
3189 (processAdjustmentEvent): Rewrote.
3190 (paramString): Wrote.
3191 * Makefile.in: Rebuilt.
3192 * Makefile.am (awt_java_source_files): Added Button.java.
3193 * java/awt/Button.java: New file.
3194 * java/awt/Toolkit.java (createLabel): Declare.
3195 (createButton): Likewise.
3196 (createScrollbar): Likewise.
3197 (createContainer): Likewise.
3198 * java/awt/Label.java (addNotify): Wrote.
3199 (setAlignment): Call setAlignment in the peer.
3200 (setText): Call setText in the peer.
3202 2000-07-28 Warren Levy <warrenl@cygnus.com>
3204 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3205 NotSerializableException with just the class name.
3207 2000-07-26 Andrew Haley <aph@cygnus.com>
3209 * interpret.cc (continue1): Insert missing break into switch.
3211 2000-07-28 Warren Levy <warrenl@cygnus.com>
3213 * java/io/ObjectStreamException.java: Made constructors protected.
3215 2000-07-27 Tom Tromey <tromey@cygnus.com>
3217 * java/io/OutputStreamWriter.java (close): Only flush if not
3220 2000-07-27 Warren Levy <warrenl@cygnus.com>
3222 * mauve-libgcj: Activated serialization tests.
3223 * gcj/field.h (getModifiers): Mask off unknown flags.
3224 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3225 spurious bits don't cause discrepancies.
3226 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3227 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3228 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3229 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3230 * java/lang/Throwable.java (serialVersionUID): New field.
3231 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3232 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3234 * java/lang/reflect/natMethod.cc: Ditto.
3235 * java/security/Key.java (serialVersionUID): Removed field for now.
3236 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3237 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3239 2000-07-22 Tom Tromey <tromey@cygnus.com>
3241 * java/awt/geom/RectangularShape.java (getPathIterator):
3244 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3246 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3247 stub libjava/java/awt/ColorModel.java which was located in the
3249 * libjava/java/awt/image/ComponentColorModel.java: New file.
3250 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3251 * libjava/java/awt/image/DataBuffer.java: New file.
3252 * libjava/java/awt/image/DataBufferByte.java: New file.
3253 * libjava/java/awt/image/DataBufferInt.java: New file.
3254 * libjava/java/awt/image/DataBufferUShort.java: New file.
3255 * libjava/java/awt/image/DirectColorModel.java: New file.
3256 * libjava/java/awt/image/PackedColorModel.java: New file.
3257 * libjava/java/awt/image/Raster.java: New file.
3258 * libjava/java/awt/image/SampleModel.java: New file.
3259 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3261 * libjava/java/awt/image/IndexColorModel.java: New file.
3262 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3263 java.awt.ColorModel stub.
3265 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3266 * gnu/gcj/util/Buffers.java: New file, utility class.
3268 * libjava/Makefile.am: Updated to include new files.
3269 * libjava/Makefile.in: Rebuilt.
3271 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3273 * java/io/StreamTokenizer.java: Merged with classpath.
3275 2000-07-20 Tom Tromey <tromey@cygnus.com>
3277 * Makefile.in: Rebuilt.
3278 * Makefile.am (awt_java_source_files): Updated for new files.
3279 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3280 * java/awt/Label.java: New file.
3281 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3282 (createIntersection, createUnion, getBounds2D): New methods.
3283 * java/awt/Scrollbar.java: New file.
3284 * java/awt/Shape.java: Updated to 1.2.
3285 * java/awt/geom/AffineTransform.java: New file.
3286 * java/awt/geom/Ellipse2D.java: New file.
3287 * java/awt/geom/NoninvertibleTransformException.java: New file.
3288 * java/awt/geom/PathIterator.java: New file.
3289 * java/awt/geom/Rectangle2D.java: New file.
3290 * java/awt/geom/RectangularShape.java: New file.
3291 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3292 * java/awt/geom/IllegalPathStateException.java: New file.
3294 * scripts/showval.java: New file.
3296 * scripts/classes.pl (scan): Print inner classes properly.
3297 * gcj/javaprims.h: Updated class list.
3299 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3300 initialize String fields for interpreted classes. Fixes bug
3301 reported by Hans Boehm.
3303 * java/io/File.java (getParentFile): New method, from Classpath
3304 via Oskar Liljeblad.
3306 * java/util/Vector.java (remove(Object)): Implemented.
3308 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3310 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3311 zero return from backtrace().
3313 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3315 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3317 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3318 before calling notifyAll().
3320 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3322 Add missing files from last check-in:
3323 * java/awt/image/ImageConsumer.java: New file.
3324 * java/awt/image/ImageProducer.java: New file.
3325 * java/awt/image/ImageObserver.java: New file.
3327 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3329 Merged implementation of java.applet from classpath:
3330 * java/applet/Applet.java: New file.
3331 * java/applet/AppletContext.java: New file.
3332 * java/applet/AppletStub.java: New file.
3333 * java/applet/AudioClip.java: New file.
3335 * Makefile.am: Added new java.applet classes.
3336 * Makefile.in: Rebuilt.
3338 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3341 * java/util/ResourceBundle.java (getLocale): stub.
3342 * Makefile.am: Added new AWT classes.
3343 * Makefile.in: Rebuilt.
3344 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3345 constructors. Fix toString() and paramString().
3346 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3347 * java/awt/CheckboxGroup.java: New class.
3348 * java/awt/ColorModel.java: New class.
3349 * java/awt/Component.java: Added stubs for most methods. Implemented
3351 * java/awt/Container.java: ditto.
3352 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3353 * java/awt/Cursor.java: ditto.
3354 * java/awt/Event.java: Fix paramString().
3355 * java/awt/EventQueue.java: New class. Implemented.
3356 * java/awt/Font.java: Added additional stub methods. Implemented
3358 * java/awt/FontMetrics.java: New class. Stubbed.
3359 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3361 * java/awt/Insets.java: New class. Implemented.
3362 * java/awt/Menu.java: Add new methods. Partially implemented.
3363 * java/awt/MenuItem.java: Add new methods and fields. Partially
3365 * java/awt/MenuShortcut.java: New class. Implemented.
3366 * java/awt/Panel.java: New class. Placeholder.
3367 * java/awt/PopupMenu.java: New class. Stubbed.
3368 * java/awt/Rectangle.java: New class. Implemented.
3369 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3370 * java/awt/event/ActionEvent.java: Implement paramString().
3371 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3372 * java/awt/event/ComponentEvent.java: Implement paramString().
3373 * java/awt/event/ContainerEvent.java: Implement paramString().
3374 * java/awt/event/FocusEvent.java: Implement paramString().
3375 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3376 * java/awt/event/HierarchyBoundsListener.java: New class.
3377 * java/awt/event/HierarchyEvent.java: New class.
3378 * java/awt/event/HierarchyListener.java: New class.
3379 * java/awt/event/InputMethodEvent.java: Implement paramString().
3380 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3381 exception if !catchExceptions.
3382 * java/awt/event/ItemEvent.java: Implement paramString().
3383 * java/awt/event/KeyEvent.java: Implement paramString().
3384 * java/awt/event/MouseEvent.java: Implement paramString().
3385 * java/awt/event/PaintEvent.java: Implement paramString().
3386 * java/awt/event/TextEvent.java: Implement paramString().
3387 * java/awt/event/WindowEvent.java: Implement paramString().
3389 AWT Peer interfaces:
3390 * java/awt/peer/ButtonPeer.java: New file.
3391 * java/awt/peer/ListPeer.java: New file.
3392 * java/awt/peer/CanvasPeer.java: New file.
3393 * java/awt/peer/MenuBarPeer.java: New file.
3394 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3395 * java/awt/peer/MenuComponentPeer.java: New file.
3396 * java/awt/peer/CheckboxPeer.java: New file.
3397 * java/awt/peer/MenuItemPeer.java: New file.
3398 * java/awt/peer/ChoicePeer.java: New file.
3399 * java/awt/peer/MenuPeer.java: New file.
3400 * java/awt/peer/ComponentPeer.java: Implemented.
3401 * java/awt/peer/PanelPeer.java: New file.
3402 * java/awt/peer/ContainerPeer.java: Implemented.
3403 * java/awt/peer/PopupMenuPeer.java: New file.
3404 * java/awt/peer/DialogPeer.java: New file.
3405 * java/awt/peer/ScrollPanePeer.java: New file.
3406 * java/awt/peer/FileDialogPeer.java: New file.
3407 * java/awt/peer/ScrollbarPeer.java: New file.
3408 * java/awt/peer/FontPeer.java: New file.
3409 * java/awt/peer/TextAreaPeer.java: New file.
3410 * java/awt/peer/FramePeer.java: Implemented.
3411 * java/awt/peer/TextComponentPeer.java: New file.
3412 * java/awt/peer/LabelPeer.java: New file.
3413 * java/awt/peer/TextFieldPeer.java: New file.
3414 * java/awt/peer/LightweightPeer.java: New file.
3415 * java/awt/peer/WindowPeer.java: Implemented.
3417 2000-07-06 Tom Tromey <tromey@cygnus.com>
3419 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3420 Initialize static final String fields.
3422 2000-07-03 Tom Tromey <tromey@cygnus.com>
3424 * java/io/PrintWriter.java (print): Call write(String), not
3425 print(String). See PR libgcj/277.
3426 (print(String)): Use write, not out.write.
3428 2000-06-30 Tom Tromey <tromey@cygnus.com>
3430 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3432 2000-06-27 Andrew Haley <aph@cygnus.com>
3434 * java/io/File.java (createTempFile): Close the FileDescriptor
3435 used to create a temp file. Fixes some of PR 203.
3436 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3437 collection if we run out of file handles.
3439 2000-06-28 Warren Levy <warrenl@cygnus.com>
3441 * gnu/java/security/provider/Gnu.java: New file.
3442 * gnu/java/security/provider/SHA.java: New file.
3443 * gnu/java/security/provider/SHA1PRNG.java: New file.
3444 * Makefile.am: Added the above files.
3445 * Makefile.in: Rebuilt.
3447 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3449 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3451 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3452 (destroyed_flag): Removed.
3453 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3454 (activeCount): Added spec note.
3456 2000-06-27 Warren Levy <warrenl@cygnus.com>
3458 * java/security/Principal.java: New file.
3459 * Makefile.am: Added Principal.java.
3460 * Makefile.in: Rebuilt.
3462 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3464 * java/awt/event/MouseEvent.java: Fixed coordinate space
3467 2000-06-27 Tom Tromey <tromey@cygnus.com>
3469 * java/io/PushbackInputStream.java (read): If there are characters
3470 in the buffer, don't also call super.read().
3471 * java/io/PushbackReader.java (read): If there are characters in
3472 the buffer, don't also call super.read().
3474 * java/lang/Double.java (valueOf): Call parseDouble().
3476 2000-06-26 Warren Levy <warrenl@cygnus.com>
3478 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3479 (newVal): Renamed to newValue.
3480 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3481 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3482 (revokeNow): Renamed to invalidateRefs.
3483 * java/io/OptionalDataException.java: Updated FIXME.
3484 (eof): New placeholder field.
3486 * java/io/WriteAbortedException.java (message): Made transient.
3487 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3488 * java/lang/Throwable.java (stackTrace): Made transient.
3489 * java/net/InetAddress.java: Made Serializable.
3490 * java/security/KeyPair.java: Made Serializable.
3491 * java/security/Provider.java: Replaced with Classpath version that
3492 implements serialization and proper methods.
3493 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3494 (limits): Renamed to choiceLimits.
3496 2000-06-24 Tom Tromey <tromey@cygnus.com>
3498 * java/lang/natDouble.cc (parseDouble): Renamed from
3500 * java/lang/Double.java (parseDouble): Renamed from
3501 doubleValueOf. Now public.
3503 2000-06-23 Andrew Haley <aph@cygnus.com>
3505 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3506 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3508 2000-06-23 Tom Tromey <tromey@cygnus.com>
3510 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3511 * java/lang/natDouble.cc: Always include <alloca.h>.
3512 Fix for PR libgcj/267.
3514 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3516 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3517 comply with classpath VM spec.
3518 (add(Group)): Rename to addGroup().
3519 * java/lang/Thread.java (Thread): Use addThread().
3520 * java/lang/natThread.cc (finish_): Use removeThread().
3522 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3524 * java/lang/ThreadGroup.java: Merged with classpath.
3525 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3526 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3528 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3529 ThreadGroup.root if Thread.currentThread is null. Honour the
3530 ThreadGroup's max priority setting.
3532 2000-06-18 Tom Tromey <tromey@cygnus.com>
3534 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3535 returned class. For PR gcj/260.
3537 2000-06-16 Tom Tromey <tromey@cygnus.com>
3539 Fix for PR libgcj/261:
3540 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3542 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3543 argument. (This is a patch from long ago that somehow went
3546 2000-06-15 Tom Tromey <tromey@cygnus.com>
3548 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3552 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3554 Fix for PR java.lang/258:
3555 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3556 JV_STATE_DONE, to prevent accidental initialization.
3557 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3558 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3559 interface or an abstract class. Remove redundant initializeClass calls.
3560 Remove duplicate if_idt test.
3561 (_Jv_InterfaceAssignableFrom): New function.
3562 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3564 2000-05-31 Tom Tromey <tromey@cygnus.com>
3566 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3567 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3568 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3569 (NUM_OBJECT_METHODS): New define.
3570 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3571 `array_vtable' parameter. Added assertion.
3572 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3575 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3577 * gcj/cni.h: Include <string.h>.
3578 * defineclass.cc: Include <alloca.h>.
3579 * interpret.cc: Ditto.
3580 * gij.cc: Include <stdlib.h>.
3582 2000-05-30 Tom Tromey <tromey@cygnus.com>
3584 * include/name-finder.h: Include <sys/wait.h>.
3585 (_Jv_name_finder::pid): Now of type `pid_t'.
3586 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3587 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3590 2000-05-24 Warren Levy <warrenl@cygnus.com>
3592 * java/io/ObjectOutputStream.java (writeObject): Use component type
3593 when writing arrays.
3596 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3598 Fix for PR libgcj/226:
3599 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3600 since this is an installed header.
3602 Fix for PR libgcj/228:
3603 * java/util/zip/ZipFile (getInputStream): Create inflater with
3606 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3607 with DataFormatException.
3609 2000-05-20 Tom Tromey <tromey@cygnus.com>
3611 * Makefile.in: Rebuilt.
3612 * Makefile.am (hack1): Removed.
3613 (awto_files): Likewise.
3614 (libgcjawt_la_SOURCES): Likewise.
3615 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3616 (libgcjawt_la_DEPENDENCIES): Likewise.
3617 (libgcjawt_la_LIBADD): Likewise.
3618 (libgcjawt_la_LDFLAGS): Likewise.
3619 (libgcjawt_la_LINK): Likewise.
3620 ($(awt_java_source_files:.java=.class)): Likewise.
3621 (libgcj.zip): Don't depend on AWT files.
3622 (MOSTLYCLEANFILES): Don't include AWT files.
3623 ($(awto_files)): Removed.
3624 (nat_headers): Removed AWT files.
3625 (cond_awt_java_source_files): Removed.
3626 (ordinary_java_source_files): Added awt_java_source_files.
3627 * libgcj.spec.in (*lib): Removed -lgcjawt.
3628 * configure: Rebuilt.
3629 * configure.in: Removed --enable-java-awt option.
3631 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3633 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3634 (ZipEntry): Copy the `name' field.
3635 (clone): Implement JDK1.2 method.
3636 (setCompressedSize): ditto.
3639 2000-05-19 Tom Tromey <tromey@cygnus.com>
3641 * java/io/BufferedWriter.java: Merged with Classpath.
3642 * java/io/BufferedOutputStream.java: Merged with Classpath.
3644 2000-05-16 Andrew Haley <aph@cygnus.com>
3646 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3647 build_ia64_frame_state.
3648 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3651 2000-05-15 Warren Levy <warrenl@cygnus.com>
3653 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3654 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3655 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3656 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3657 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3658 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3659 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3660 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3661 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3662 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3663 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3664 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3665 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3666 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3667 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3668 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3669 * gnu/gcj/io/NullOutputStream.java: Removed.
3670 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3671 * gnu/gcj/lang/ArrayHelper.java: Removed.
3672 * gnu/gcj/lang/ClassHelper.java: Removed.
3673 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3675 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3676 * gnu/java/beans/EmptyBeanInfo.java: New file.
3677 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3678 * gnu/java/beans/IntrospectionIncubator.java: New file.
3679 * gnu/java/beans/editors/ColorEditor.java: New file.
3680 * gnu/java/beans/editors/FontEditor.java: New file.
3681 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3682 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3683 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3684 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3685 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3686 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3687 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3688 * gnu/java/beans/editors/StringEditor.java: New file.
3689 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3690 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3691 * gnu/java/io/NullOutputStream.java: New file.
3692 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3693 * gnu/java/lang/ArrayHelper.java: New file.
3694 * gnu/java/lang/ClassHelper.java: New file.
3695 * gnu/java/lang/reflect/TypeSignature.java: New file.
3697 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3698 namespace back to the original Classpath gnu/java namespace.
3699 * Makefile.in: Rebuilt.
3701 * java/beans/Beans.java: Namespace change.
3702 * java/beans/EventSetDescriptor.java: Namespace change.
3703 * java/beans/Introspector.java: Namespace change.
3704 * java/beans/PropertyEditorManager.java: Namespace change.
3705 * java/io/ObjectInputStream.java: Namespace change.
3706 * java/io/ObjectOutputStream.java: Namespace change.
3707 * java/io/ObjectStreamClass.java: Namespace change.
3708 * java/io/ObjectStreamField.java: Namespace change.
3710 2000-04-21 Warren Levy <warrenl@cygnus.com>
3712 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3713 now that compiler patch is available.
3714 Removed unneeded System.loadLibrary.
3715 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3716 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3718 2000-04-19 Andrew Haley <aph@cygnus.com>
3720 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3721 and target classes have been initialized.
3723 2000-04-19 Andrew Haley <aph@cygnus.com>
3725 * java/lang/String.java: implement Serializable, Comparable.
3726 (compareTo (Object)): New method.
3728 2000-04-19 Warren Levy <warrenl@cygnus.com>
3730 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3731 instead of getField to retrieve non-public field.
3732 (getSerialPersistantFields): Ditto.
3734 2000-04-18 Warren Levy <warrenl@cygnus.com>
3736 * mauve-libgcj: Turned off object serialization tests temporarily
3737 due to compiler error.
3739 2000-04-17 Warren Levy <warrenl@cygnus.com>
3741 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3742 to avoid build problem.
3744 * mauve-libgcj: Turned on object serialization tests.
3746 2000-04-17 Tom Tromey <tromey@cygnus.com>
3748 * libgcj.spec.in (*lib): Added -lgcjawt.
3750 2000-04-17 Andrew Haley <aph@cygnus.com>
3752 * Makefile.am: Add new files:
3753 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3755 * Makefile.in: Rebuilt.
3757 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3758 interface that has no implementations.
3759 Check for an attempt to assign an abstract class to an interface.
3761 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3762 if we fail to find MessageDigest.getInstance ("SHA").
3764 * gnu/gcj/io/SimpleSHSStream.java: New file.
3765 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3766 * gnu/gcj/io/shs.cc: New file.
3767 * gnu/gcj/io/shs.h: new file.
3769 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3772 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3773 punctuation from the classname of an array element.
3775 * gcj/javaprims.h: Add SimpleDigestStream.
3777 2000-04-17 Andrew Haley <aph@cygnus.com>
3779 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3780 to getPrivateField for superclasses.
3782 2000-04-14 Andrew Haley <aph@cygnus.com>
3784 * Makefile.am: Add new files:
3785 java/io/ObjectOutputStream$PutField.h,
3786 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3787 java/io/natObjectOutputStream.cc
3788 * Makefile.in: Rebuilt.
3789 * gcj/Makefile.in: Rebuilt.
3790 * include/Makefile.in: Rebuilt.
3791 * java/lang/Class.h (getPrivateField): New method.
3792 (getPrivateMethod): Ditto.
3793 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3794 and java::io::ObjectStreamClass our friends.
3795 * java/lang/natClass.cc (getPrivateField): New method.
3796 (getPrivateMethod): Ditto.
3797 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3798 * gcj/javaprims.h: Add serialization classes.
3799 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3800 (setByteField): Ditto.
3801 (setCharField): Ditto.
3802 (setDoubleField): Ditto.
3803 (setFloatField): Ditto.
3804 (setIntField): Ditto.
3805 (setLongField): Ditto.
3806 (setShortField): Ditto.
3807 (setObjectField): Ditto.
3808 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3810 (getByteField): Ditto.
3811 (getCharField): Ditto.
3812 (getDoubleField): Ditto.
3813 (getFloatField): Ditto.
3814 (getIntField): Ditto.
3815 (getLongField): Ditto.
3816 (getShortField): Ditto.
3817 (getObjectField): Ditto.
3818 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3820 (getSerialPersistantFields): Ditto.
3821 (getDefinedSUID): Ditto.
3822 * java/io/natObjectOutputStream.cc: New file.
3823 * java/io/natObjectInputStream.cc: New file.
3825 2000-04-13 Warren Levy <warrenl@cygnus.com>
3827 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3828 problems. Revert to previous version to reproduce and when fixed.
3830 2000-04-13 Warren Levy <warrenl@cygnus.com>
3832 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3833 * gnu/gcj/io/NullOutputStream.java: New file.
3834 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3835 * java/io/BlockDataException.java: New file.
3836 * java/io/Externalizable.java: New file.
3837 * java/io/InvalidClassException.java: New file.
3838 * java/io/InvalidObjectException.java: New file.
3839 * java/io/NotActiveException.java: New file.
3840 * java/io/NotSerializableException.java: New file.
3841 * java/io/ObjectInput.java: New file.
3842 * java/io/ObjectInputStream.java: New file.
3843 * java/io/ObjectInputValidation.java: New file.
3844 * java/io/ObjectOutput.java: New file.
3845 * java/io/ObjectOutputStream.java: New file.
3846 * java/io/ObjectStreamClass.java: New file.
3847 * java/io/ObjectStreamConstants.java: New file.
3848 * java/io/ObjectStreamField.java: New file.
3849 * java/io/Replaceable.java: New file.
3850 * java/io/Resolvable.java: New file.
3851 * java/io/SerializablePermission.java: New file.
3852 * java/io/WriteAbortedException.java: New file.
3853 * java/security/BasicPermission.java: New file.
3854 * java/security/DigestOutputStream.java: New file.
3855 * java/security/Guard.java: New file.
3856 * java/security/Permission.java: New file.
3857 * java/security/PermissionCollection.java: New file.
3858 * Makefile.am: Added above files.
3859 * Makefile.in: Rebuilt.
3861 * java/beans/Beans.java (instantiate): Activated serialization code.
3862 * java/lang/SecurityManager.java (checkPermission): New method.
3864 2000-04-12 Warren Levy <warrenl@cygnus.com>
3866 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3867 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3868 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3869 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3870 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3871 * gnu/gcj/beans/editors/FontEditor.java: New file.
3872 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3873 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3874 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3875 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3876 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3877 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3878 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3879 * gnu/gcj/beans/editors/StringEditor.java: New file.
3880 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3881 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3882 * gnu/gcj/lang/ArrayHelper.java: New file.
3883 * gnu/gcj/lang/ClassHelper.java: New file.
3884 * java/beans/BeanDescriptor.java: New file.
3885 * java/beans/BeanInfo.java: New file.
3886 * java/beans/Beans.java: New file.
3887 * java/beans/Customizer.java: New file.
3888 * java/beans/DesignMode.java: New file.
3889 * java/beans/EventSetDescriptor.java: New file.
3890 * java/beans/FeatureDescriptor.java: New file.
3891 * java/beans/IndexedPropertyDescriptor.java: New file.
3892 * java/beans/IntrospectionException.java: New file.
3893 * java/beans/Introspector.java: New file.
3894 * java/beans/MethodDescriptor.java: New file.
3895 * java/beans/ParameterDescriptor.java: New file.
3896 * java/beans/PropertyChangeEvent.java: New file.
3897 * java/beans/PropertyChangeListener.java: New file.
3898 * java/beans/PropertyChangeSupport.java: New file.
3899 * java/beans/PropertyDescriptor.java: New file.
3900 * java/beans/PropertyEditor.java: New file.
3901 * java/beans/PropertyEditorManager.java: New file.
3902 * java/beans/PropertyEditorSupport.java: New file.
3903 * java/beans/PropertyVetoException.java: New file.
3904 * java/beans/SimpleBeanInfo.java: New file.
3905 * java/beans/VetoableChangeListener.java: New file.
3906 * java/beans/VetoableChangeSupport.java: New file.
3907 * java/beans/Visibility.java: New file.
3908 * java/beans/beancontext/BeanContext.java: New file.
3909 * java/beans/beancontext/BeanContextChild.java: New file.
3910 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3911 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3912 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3913 * java/beans/beancontext/BeanContextEvent.java: New file.
3914 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3915 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3916 * java/beans/beancontext/BeanContextProxy.java: New file.
3917 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3919 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3920 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3922 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3923 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3925 * java/beans/beancontext/BeanContextServices.java: New file.
3926 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3927 * java/util/AbstractCollection.java: New file.
3928 * java/util/AbstractList.java: New file.
3929 * java/util/Arrays.java: New file.
3930 * Makefile.am: Added above files.
3931 * Makefile.in: Rebuilt.
3933 2000-04-11 Warren Levy <warrenl@cygnus.com>
3935 * java/awt/AWTError.java: New file.
3936 * java/awt/AWTEvent.java: New file.
3937 * java/awt/AWTException.java: New file.
3938 * java/awt/ActiveEvent.java: New file.
3939 * java/awt/Adjustable.java: New file.
3940 * java/awt/BorderLayout.java: New file.
3941 * java/awt/Color.java: New file.
3942 * java/awt/Component.java: New file.
3943 * java/awt/Container.java: New file.
3944 * java/awt/Dimension.java: New file.
3945 * java/awt/Event.java: New file.
3946 * java/awt/Font.java: New file.
3947 * java/awt/Frame.java: New file.
3948 * java/awt/Graphics.java: New file.
3949 * java/awt/IllegalComponentStateException.java: New file.
3950 * java/awt/Image.java: New file.
3951 * java/awt/ItemSelectable.java: New file.
3952 * java/awt/LayoutManager.java: New file.
3953 * java/awt/LayoutManager2.java: New file.
3954 * java/awt/Menu.java: New file.
3955 * java/awt/MenuBar.java: New file.
3956 * java/awt/MenuComponent.java: New file.
3957 * java/awt/MenuContainer.java: New file.
3958 * java/awt/MenuItem.java: New file.
3959 * java/awt/Paint.java: New file.
3960 * java/awt/PaintContext.java: New file.
3961 * java/awt/Point.java: New file.
3962 * java/awt/Rectangle.java: New file.
3963 * java/awt/Shape.java: New file.
3964 * java/awt/TextArea.java: New file.
3965 * java/awt/TextComponent.java: New file.
3966 * java/awt/Toolkit.java: New file.
3967 * java/awt/Transparency.java: New file.
3968 * java/awt/Window.java: New file.
3969 * java/awt/natToolkit.cc: New file.
3970 * java/awt/event/AWTEventListener.java: New file.
3971 * java/awt/event/ActionEvent.java: New file.
3972 * java/awt/event/ActionListener.java: New file.
3973 * java/awt/event/AdjustmentEvent.java: New file.
3974 * java/awt/event/AdjustmentListener.java: New file.
3975 * java/awt/event/ComponentAdapter.java: New file.
3976 * java/awt/event/ComponentEvent.java: New file.
3977 * java/awt/event/ComponentListener.java: New file.
3978 * java/awt/event/ContainerAdapter.java: New file.
3979 * java/awt/event/ContainerEvent.java: New file.
3980 * java/awt/event/ContainerListener.java: New file.
3981 * java/awt/event/FocusAdapter.java: New file.
3982 * java/awt/event/FocusEvent.java: New file.
3983 * java/awt/event/FocusListener.java: New file.
3984 * java/awt/event/InputEvent.java: New file.
3985 * java/awt/event/InputMethodEvent.java: New file.
3986 * java/awt/event/InputMethodListener.java: New file.
3987 * java/awt/event/InvocationEvent.java: New file.
3988 * java/awt/event/ItemEvent.java: New file.
3989 * java/awt/event/ItemListener.java: New file.
3990 * java/awt/event/KeyAdapter.java: New file.
3991 * java/awt/event/KeyEvent.java: New file.
3992 * java/awt/event/KeyListener.java: New file.
3993 * java/awt/event/MouseAdapter.java: New file.
3994 * java/awt/event/MouseEvent.java: New file.
3995 * java/awt/event/MouseListener.java: New file.
3996 * java/awt/event/MouseMotionAdapter.java: New file.
3997 * java/awt/event/MouseMotionListener.java: New file.
3998 * java/awt/event/PaintEvent.java: New file.
3999 * java/awt/event/TextEvent.java: New file.
4000 * java/awt/event/TextListener.java: New file.
4001 * java/awt/event/WindowAdapter.java: New file.
4002 * java/awt/event/WindowEvent.java: New file.
4003 * java/awt/event/WindowListener.java: New file.
4004 * java/awt/geom/Dimension2D.java: New file.
4005 * java/awt/geom/Point2D.java: New file.
4006 * java/awt/peer/ComponentPeer.java: New file.
4007 * java/awt/peer/ContainerPeer.java: New file.
4008 * java/awt/peer/FramePeer.java: New file.
4009 * java/awt/peer/WindowPeer.java: New file.
4010 * java/util/Collection.java: New file.
4011 * java/util/Comparator.java: New file.
4012 * java/util/Iterator.java: New file.
4013 * java/util/List.java: New file.
4014 * java/util/ListIterator.java: New file.
4015 * Makefile.am: Added above files.
4016 * Makefile.in: Rebuilt.
4018 2000-04-10 Warren Levy <warrenl@cygnus.com>
4020 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4021 * java/lang/FirstThread.java: Ditto.
4022 * java/lang/StringBuffer.java: Ditto.
4023 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4025 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4026 Special case handled in java.math.BigInteger.
4027 * java/math/BigInteger.java (divide): Handle the special case when
4028 dividing by 1 and the high bit of the dividend is set.
4029 (setShiftRight): Handle case when count == 0.
4031 2000-04-05 Andrew Haley <aph@cygnus.com>
4033 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4036 2000-04-05 Andrew Haley <aph@cygnus.com>
4038 * sysdep/ia64.c (rse_address_add): Delete.
4039 (IS_NaT_COLLECTION_ADDR): Delete.
4040 (ia64_backtrace_helper): check for null unwind_info.
4042 * sysdep/ia64-frame.h: add calc_caller_bsp.
4044 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4047 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4048 (_Jv_remI): Likewise.
4049 (_Jv_divJ): Likewise.
4050 (_Jv_remJ): Likewise.
4052 * interpret.cc (continue1): Use divide subroutines to guarantee
4053 correct Java standard behaviour.
4054 Floating-point division should not abort; make it so.
4056 2000-03-29 Tom Tromey <tromey@cygnus.com>
4058 * configure: Rebuilt.
4059 * configure.in: Test against `libgcj_sjlj', not
4060 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4061 to be set even when using sjlj.
4063 2000-03-24 Andrew Haley <aph@cygnus.com>
4065 * Makefile.am: Add file addr2name.awk.
4066 * Makefile.in: Rebuilt.
4067 * addr2name.awk: New file.
4068 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4070 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4073 2000-03-22 Andrew Haley <aph@cygnus.com>
4075 * configure.host: Add -funwind-tables for IA64.
4076 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4077 * Makefile.in: Rebuilt.
4078 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4079 * sysdep/ia64.c: New file.
4080 * sysdep/ia64-frame.h: New file.
4081 * configure.in: Add sysdep/ia64.c for ia64.
4082 * configure: Rebuilt.
4084 2000-03-17 Andrew Haley <aph@cygnus.com>
4086 * java/lang/natString.cc: Remove `register' keyword.
4087 interpret.cc: ditto.
4089 2000-03-16 Andrew Haley <aph@cygnus.com>
4091 * configure.host (ia64): Enable interpreter.
4093 2000-03-14 Hans Boehm <boehm@acm.org>
4095 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4097 2000-03-14 Andrew Haley <aph@cygnus.com>
4099 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4102 2000-03-10 Andrew Haley <aph@cygnus.com>
4104 * java/lang/ieeefp.h: Import latest version from fdlibm.
4106 2000-03-14 Andrew Haley <aph@cygnus.com>
4108 * prims.cc (_Jv_ThrowSignal): New function.
4109 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4111 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4112 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4113 * include/ppc-signal.h: New file.
4115 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4117 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4118 * java/lang/natThread.java (initialize_native): Cast `data' to
4120 * gnu/gcj/RawData.java: Clarify documentation.
4122 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4123 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4124 `jarFile', not `jarFileURL'.
4126 2000-05-15 Andrew Haley <aph@cygnus.com>
4128 * include/ppc-signal.h: New file.
4130 2000-05-11 Tom Tromey <tromey@cygnus.com>
4132 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4133 file headers, don't include `size' in the skip call.
4135 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4137 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4138 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4140 (replace): Reimplemented. Fix javadoc.
4141 (reverse): Call ensureCapacity_unsynchronized().
4142 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4144 (replace): Calculate length for arraycopy() correctly.
4146 2000-05-09 Tom Tromey <tromey@cygnus.com>
4148 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4150 (insert(int,char[],int,int): New method.
4151 (delete): New method from Classpath.
4152 (deleteCharAt): Likewise.
4153 (substring): Likewise.
4154 (shared): No longer private.
4155 Added JavaDoc comments from Classpath.
4156 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4159 2000-05-07 Tom Tromey <tromey@cygnus.com>
4161 * Makefile.in: Rebuilt.
4162 * Makefile.am (LIBLINK): New macro.
4163 (libgcj_la_LINK): Use it.
4164 (libgcjawt_la_LINK): Likewise.
4166 2000-05-06 Tom Tromey <tromey@cygnus.com>
4168 * Makefile.in: Rebuilt.
4169 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4171 2000-05-05 Tom Tromey <tromey@cygnus.com>
4173 Fix for PR libgcj/220:
4174 * Makefile.in: Rebuilt.
4175 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4176 (jv_convert_LDFLAGS): Likewise.
4177 (libgcj_la_LDFLAGS): Likewise.
4178 (GCJLINK): New macro.
4179 (jv_convert_LINK): Use it.
4180 (gij_LINK): Likewise.
4181 (libgcj_la_LINK): New macro.
4182 (libgcjawt_la_LINK): Likewise.
4184 2000-05-04 Tom Tromey <tromey@cygnus.com>
4186 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4188 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4192 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4194 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4195 (_Jv_IsAssignableFrom): Ditto.
4196 (_Jv_IsInstanceOf): Ditto.
4197 (_Jv_CheckCast): Ditto.
4198 (_Jv_CheckArrayStore): Ditto.
4199 * java/lang/Class.h (_Jv_InitClass): Ditto.
4200 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4205 (_Jv_MonitorExit): Ditto.
4206 * boehm.cc (_Jv_MarkObj): Ditto.
4207 (_Jv_MarkObj): Ditto.
4208 (_Jv_MarkArray): Ditto.
4209 * prims.cc (_Jv_AllocObject): Ditto.
4210 (_Jv_NewObjectArray): Ditto.
4211 (_Jv_NewPrimArray): Ditto.
4212 (_Jv_Malloc): Ditto.
4213 (_Jv_Realloc): Ditto.
4214 (_Jv_MallocUnchecked): Ditto.
4220 2000-05-04 Tom Tromey <tromey@cygnus.com>
4222 * java/util/Locale.java (Locale): Don't explicitly check for
4224 * java/util/Hashtable.java (containsKey): Don't explicitly check
4227 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4229 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4231 * java/text/StringCharacterIterator.java
4232 (StringCharacterIterator): Don't check for null.
4233 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4235 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4236 check for null pointer.
4237 (leaveGroup): Likewise.
4238 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4240 (setData): Likewise.
4241 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4244 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4246 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4247 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4248 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4249 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4250 -rpath for in-gcc builds.
4251 * Makefile.in: Rebuilt.
4253 2000-04-28 Tom Tromey <tromey@cygnus.com>
4255 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4258 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4260 * libjava/java/lang/String.java (toString): Remove `final' hack.
4262 2000-04-05 Tom Tromey <tromey@cygnus.com>
4264 Runtime support for PR gcj/2:
4265 * prims.cc (_Jv_ThrowNullPointerException): New function.
4266 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4268 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4270 * prims.cc (_Jv_NewObjectArray): Fix typo.
4272 2000-04-26 Tom Tromey <tromey@cygnus.com>
4274 * Makefile.in: Rebuilt.
4275 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4277 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4279 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4282 2000-04-22 Anthony Green <green@cygnus.com>
4284 * include/jvm.h (__builtin_expect): Define as unused for now.
4285 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4289 (_Jv_MonitorExit): Ditto.
4290 * boehm.cc (_Jv_MarkObj): Ditto.
4291 (_Jv_MarkObj): Ditto.
4292 (_Jv_MarkArray): Ditto.
4293 (_Jv_AllocBytes): Ditto.
4294 * prims.cc (_Jv_AllocObject): Ditto.
4295 (_Jv_NewObjectArray): Ditto.
4296 (_Jv_NewPrimArray): Ditto.
4297 (_Jv_Malloc): Ditto.
4298 (_Jv_Realloc): Ditto.
4299 (_Jv_MallocUnchecked): Ditto.
4305 * include/Makefile.in: Rebuilt.
4306 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4308 2000-04-21 Tom Tromey <tromey@cygnus.com>
4310 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4311 Yet another new version from Classpath.
4313 Fix for PR libgcj/15:
4314 * java/util/natGregorianCalendar.cc (_REENTRANT,
4315 _POSIX_PTHREAD_SEMANTICS): Don't define.
4316 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4317 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4319 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4321 * configure: Rebuilt.
4322 * configure.in: If using POSIX threads, define _REENTRANT if
4323 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4324 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4326 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4327 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4328 version from Classpath.
4330 Fix for PR libgcj/213:
4331 * Makefile.in: Rebuilt.
4332 * Makefile.am (gij_SOURCES): Added gij.cc.
4333 (EXTRA_gij_SOURCES): Removed.
4334 (gij_LDADD): Removed gij.lo.
4335 (gij_DEPENDENCIES): Likewise.
4336 ($(gij_OBJECTS)): Depend on nat_headers.
4338 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4339 `setURL', not `url.set'.
4341 2000-04-20 Tom Tromey <tromey@cygnus.com>
4343 Fix for PR java.io/204:
4344 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4345 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4348 Fix for PR libgcj/212:
4349 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4350 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4351 * java/lang/Class.h (_Jv_word): Declare.
4353 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4355 2000-04-19 Tom Tromey <tromey@cygnus.com>
4357 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4358 doesn't have a loader.
4360 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4362 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4363 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4365 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4367 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4369 (available): Initialize `where' to prevent bogus compiler warning.
4371 2000-04-12 Tom Tromey <tromey@cygnus.com>
4373 * java/lang/natString.cc (intern): Temporarily disable finalizer
4376 * java/lang/natString.cc (unintern): Added `obj' argument.
4377 (intern): Register finalizer for string.
4378 * java/lang/String.java (unintern): Now static; added obj
4381 2000-04-11 Tom Tromey <tromey@cygnus.com>
4383 * java/util/Vector.java (VectorEnumeration): Now `final'.
4384 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4385 (HashtableEnumeration): Likewise.
4386 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4387 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4389 2000-04-10 Warren Levy <warrenl@cygnus.com>
4391 * java/io/ObjectStreamException.java: New file.
4392 * java/io/OptionalDataException.java: New file.
4393 * java/io/StreamCorruptedException.java: New file.
4394 * java/math/BigDecimal.java: New file.
4395 * java/sql/CallableStatement.java: New file.
4396 * java/sql/Connection.java: New file.
4397 * java/sql/DataTruncation.java: New file.
4398 * java/sql/DatabaseMetaData.java: New file.
4399 * java/sql/Date.java: New file.
4400 * java/sql/Driver.java: New file.
4401 * java/sql/DriverManager.java: New file.
4402 * java/sql/DriverPropertyInfo.java: New file.
4403 * java/sql/PreparedStatement.java: New file.
4404 * java/sql/ResultSet.java: New file.
4405 * java/sql/ResultSetMetaData.java: New file.
4406 * java/sql/SQLException.java: New file.
4407 * java/sql/SQLWarning.java: New file.
4408 * java/sql/Statement.java: New file.
4409 * java/sql/Time.java: New file.
4410 * java/sql/Timestamp.java: New file.
4411 * java/sql/Types.java: New file.
4412 * Makefile.am: Added above new files.
4413 * Makefile.in: Rebuilt.
4415 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4416 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4417 DatagramSocket constructor instead of null.
4419 2000-04-08 Anthony Green <green@cygnus.com>
4421 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4424 2000-04-08 Anthony Green <green@cygnus.com>
4426 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4427 (_Jv_MutexUnlock): Ditto.
4428 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4429 (_Jv_MutexUnlock): Ditto.
4431 2000-04-08 Anthony Green <green@cygnus.com>
4433 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4434 (ensureCapacity_unsynchronized): New private method.
4435 (append): Use ensureCapacity_unsynchronized.
4437 2000-04-08 Tom Tromey <tromey@cygnus.com>
4439 * Makefile.in: Rebuilt.
4440 * Makefile.am (awt_java_source_files): Added new files.
4441 * java/awt/IllegalComponentStateException.java: New file.
4442 * java/awt/ItemSelectable.java: New file.
4443 * java/awt/event/WindowEvent.java: Finished.
4444 * java/awt/event/TextEvent.java: Finished.
4445 * java/awt/event/ContainerEvent.java: New file.
4446 * java/awt/Component.java (getX, getY): New methods.
4447 * java/awt/event/PaintEvent.java: New file.
4448 * java/awt/event/MouseEvent.java: New file.
4449 * java/awt/ActiveEvent.java: New file.
4450 * java/awt/event/KeyEvent.java: Finished.
4451 * java/awt/event/ItemEvent.java: New file.
4452 * java/awt/Adjustable.java: New file.
4453 * java/awt/event/InputMethodEvent.java: New file.
4454 * java/awt/event/InputEvent.java: Finished.
4455 * java/awt/event/FocusEvent.java: New file.
4456 * java/awt/event/MouseMotionAdapter.java: New file.
4457 * java/awt/event/MouseAdapter.java: New file.
4458 * java/awt/event/KeyAdapter.java: New file.
4459 * java/awt/event/FocusAdapter.java: New file.
4460 * java/awt/event/ContainerAdapter.java: New file.
4461 * java/awt/event/ComponentEvent.java: Finished.
4462 * java/awt/event/AdjustmentEvent.java: New file.
4463 * java/awt/event/ComponentAdapter.java: New file.
4464 * java/awt/event/ActionEvent.java: Finished.
4465 * java/awt/event/MouseMotionListener.java: New file.
4466 * java/awt/event/MouseListener.java: New file.
4467 * java/awt/event/ItemListener.java: New file.
4468 * java/awt/event/InputMethodListener.java: New file.
4469 * java/awt/event/ContainerListener.java: New file.
4470 * java/awt/event/FocusListener.java: New file.
4471 * java/awt/event/ComponentListener.java: New file.
4472 * java/awt/event/AWTEventListener.java: New file.
4473 * java/awt/event/AdjustmentListener.java: New file.
4475 2000-04-08 Anthony Green <green@cygnus.com>
4477 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4478 check when we have to.
4480 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4483 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4486 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4487 inline hasMoreElements.
4489 2000-04-05 Tom Tromey <tromey@cygnus.com>
4491 * configure: Rebuilt.
4492 * configure.in: Recognize --enable-java-awt.
4493 (AWT): New conditional.
4494 * Makefile.in: Rebuilt.
4495 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4497 (libgcjawt_la_SOURCES): New macro.
4498 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4499 (libgcjawt_la_DEPENDENCIES): Likewise.
4500 (libgcjawt_la_LIBADD): Likewise.
4501 (libgcjawt_la_LDFLAGS): Likewise.
4502 (libgcj.zip): Depend on cond_java_awt_source_files
4503 (cond_awt_java_source_files): New macro.
4504 (MOSTLYCLEANFILES): Added awto_files.
4505 (awto_files): New macro. Use where javao_files used.
4506 (nat_headers): Use cond_awt_java_source_files.
4508 2000-04-04 Tom Tromey <tromey@cygnus.com>
4510 * Makefile.in: Rebuilt.
4511 * Makefile.am (awt_java_source_files): Added AWTException.java.
4512 * java/awt/AWTException.java: New file.
4514 2000-04-03 Tom Tromey <tromey@cygnus.com>
4516 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4517 commentary from Alex.
4519 * Makefile.in: Rebuilt.
4520 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4523 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4525 * configure: Rebuilt.
4526 * configure.in: Add --disable-jvmpi.
4527 * include/config.h.in: Rebuilt.
4528 * acconfig.h: Add ENABLE_JVMPI.
4530 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4531 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4532 (_Jv_JVMPI_Notify_THREAD_END): New define.
4533 (_Jv_JVMPI_Notify_THREAD_END): New define.
4534 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4535 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4536 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4538 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4541 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4542 (finish_): Generate JVMPI thread end events.
4543 (run_): Generate JVMPI thread start events.
4544 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4545 preloaded JNI library.
4546 Include JVMPI headers if necessary.
4547 (run): Generate JVMPI thread start events.
4549 * boehm.cc: Define GC_disable and GC_enable.
4550 (_Jv_DisableGC): New function.
4551 (_Jv_EnableGC): New function.
4552 (disable_gc_mutex): Declare.
4553 * nogc.cc (_Jv_DisableGC): New function.
4554 (_Jv_EnableGC): New function.
4556 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4557 (_Jv_JVMPI_Interface): Define.
4558 (jvmpiEnableEvent): New function.
4559 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4561 * include/jvmpi.h: New file.
4563 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4565 * Makefile.in: New #defines and friends for Thread.h.
4566 * Makefile.am: Ditto.
4567 * posix-threads.cc: (struct starter): Remove `object'.
4568 (_Jv_CondWait): Use interruptable condition variables and new
4569 recursive mutexes. New return codes on interrupt or non-ownership
4571 (_Jv_CondNotify): Ditto.
4572 (_Jv_CondNotifyAll): Ditto.
4573 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4574 the target thread by signaling its wait condition.
4575 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4576 not the starter struct. Initialize wait_mutex and wait_cond.
4577 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4579 (_Jv_MutexUnlock): Ditto.
4580 (really_start): Set info->data->thread from pthread_self() to work
4581 around a race condition. Destroy wait_mutex and wait_cond when run()
4583 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4584 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4586 startable_flag: New private field.
4587 (Thread): Initialize `startable_flag'.
4588 (toString): Check for null thread group.
4589 * java/lang/natThread.cc: (struct natThread): New fields
4590 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4591 (class locker): Removed.
4592 (initialize_native): Initialize `join_cond' and `join_mutex'.
4593 (interrupt): Now just calls _Jv_ThreadInterrupt().
4594 (join): Simplified. Just wait on the target thread's join condition.
4595 (finish_): Remove join list code. Unset thread group. Signal
4596 potential joiners by notifying the dying threads join_cond.
4597 (start): Check for illegal restarts.
4598 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4600 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4601 #defines and #ifdefs.
4602 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4603 `wait_mutex', `next'.
4604 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4605 directly mapping to pthread_cond_t.
4606 (struct _Jv_Mutex_t): New recursive implementation.
4607 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4608 _Jv_HaveCondDestroy: Never define this for posix-threads.
4609 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4610 (_Jv_CondNotifyAll): Ditto.
4611 (_Jv_MutexLock): Ditto.
4612 (_Jv_MutexUnlock): Ditto.
4613 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4614 (_Jv_MutexDestroy): Ditto.
4615 (_Jv_CondDestroy): Removed.
4616 (_Jv_PthreadGetMutex): Removed.
4617 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4618 error. Add a FIXME about this.
4619 (_Jv_CondNotifyAll): Ditto.
4620 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4621 _JV_NOT_OWNER on other errors. Add FIXME.
4623 2000-03-26 Tom Tromey <tromey@cygnus.com>
4625 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4627 (call): Don't throw exception here.
4629 2000-03-26 Tom Tromey <tromey@cygnus.com>
4631 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4632 * interpret.cc: Use SIZEOF_VOID_P.
4633 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4634 (_Jv_loadLong): Likewise.
4635 (_Jv_storeDouble): Likewise.
4636 * configure: Rebuilt.
4637 * configure.in: Check size of void*.
4639 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4641 2000-03-26 Hans Boehm <boehm@acm.org>
4643 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4644 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4646 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4647 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4648 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4649 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4651 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4652 (FFI_RAW_SIZE): Likewise.
4653 (_Jv_InterpMethod::ncode): Use them.
4654 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4655 STORED): Define differently on a 64 bit machine.
4656 (continue1): Use ffi_java_raw_call when appropriate.
4658 2000-03-24 Warren Levy <warrenl@cygnus.com>
4660 * java/math/BigInteger.java(divide): Handle the special case when
4661 dividing by 1 and the high bit of the dividend is set.
4662 (setShiftRight): Handle case when count == 0.
4664 2000-03-24 Warren Levy <warrenl@cygnus.com>
4666 * java/awt/Font.java(isBold): Fix syntax error.
4668 * java/awt/Frame.java(postEvent): ditto.
4669 * java/awt/Menu.java(postEvent): ditto.
4670 * java/awt/MenuBar.java(postEvent): ditto.
4671 * java/awt/Toolkit.java(init): Included a stub.
4673 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4675 * java/awt/Event.java: Add all the event type constants.
4676 (Event): Implemented constructors.
4677 (controlDown): Implemented.
4678 (metaDown): Implemented.
4679 (paramString): Stubbed.
4680 (shiftDown): Implemented.
4681 (toString): Implemented.
4682 (translate): Implemented.
4684 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4686 * java/lang/natClass.cc (isInstance): Initialize `this'.
4687 (isAssignableFrom): Initialize `this' and `klass'.
4688 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4689 implemented by any loaded class, so return false.
4690 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4691 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4693 2000-03-19 Warren Levy <warrenl@cygnus.com>
4695 * java/awt/Color.java: Specified java.io for Serializable.
4696 * java/awt/Toolkit.java: Imported java.net.URL.
4698 2000-03-19 Warren Levy <warrenl@cygnus.com>
4700 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4702 2000-03-16 Warren Levy <warrenl@cygnus.com>
4704 * java/awt/Color.java: New file.
4705 * java/awt/Graphics.java: New file.
4706 * java/awt/Image.java: New file.
4707 * java/awt/Paint.java: New file.
4708 * java/awt/PaintContext.java: New file.
4709 * java/awt/Transparency.java: New file.
4710 * java/util/Collection.java: New file.
4711 * java/util/Comparator.java: New file.
4712 * java/util/Iterator.java: New file.
4713 * java/util/List.java: New file.
4714 * java/util/ListIterator.java: New file.
4715 * Makefile.am: Added above new files.
4716 * Makefile.in: Rebuilt.
4718 * java/awt/Font.java (PLAIN): New field.
4720 (ITALIC): New field.
4721 (ROMAN_BASELINE): New field.
4722 (CENTER_BASELINE): New field.
4723 (HANGING_BASELINE): New field.
4727 (pointSize): New field.
4728 (Font): Implemented constructor.
4729 (isPlain): Implemented method.
4730 (isBold): Implemented method.
4731 (isItalic): Implemented method.
4732 (getName): Implemented method.
4733 (getStyle): Implemented method.
4734 (getSize): Implemented method.
4735 (getSize2D): Implemented method.
4737 * java/awt/Frame.java (getFont): Stubbed.
4738 (postEvent): Stubbed.
4740 * java/awt/Menu.java (postEvent): Stubbed.
4741 * java/awt/MenuBar.java (getFont): Stubbed.
4742 (postEvent): Stubbed.
4743 * java/awt/Toolkit.java (getImage): Added abstract method.
4745 2000-03-15 Tom Tromey <tromey@cygnus.com>
4747 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4749 * prims.cc (win32_exception_handler): Reformatted.
4751 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4752 (_Jv_HaveMutexDestroy): Likewise.
4754 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4756 * java/io/natFileDescriptorWin32.cc: New file.
4757 * java/io/natFileWin32.cc: New file.
4758 * java/net/natInetAddress.cc: Added conditional inclusion of
4759 Windows / Winsock headers.
4760 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4761 inclusion of Windows / Winsock headers.
4762 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4763 Windows / Winsock headers.
4764 * include/win32-signal.h: New file.
4765 * include/win32-threads.h: New file.
4766 * win32-threads.cc: New file.
4767 * exception.cc (win32_get_restart_frame): New function.
4768 * prims.cc (win32_exception_handler): New function.
4769 (main_init) Performs Winsock initialisation.
4770 (main_init) Installs exeception handler.
4772 2000-03-14 Tom Tromey <tromey@cygnus.com>
4774 * jni.cc (mangled_name): Fixed assertion.
4775 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4776 turned assert into actual failure.
4778 2000-03-09 Warren Levy <warrenl@cygnus.com>
4780 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4781 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4782 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4784 2000-03-09 Warren Levy <warrenl@cygnus.com>
4786 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4787 * java/security/DigestException.java: New file.
4788 * java/security/GeneralSecurityException.java: New file.
4789 * java/security/InvalidAlgorithmParameterException.java: New file.
4790 * java/security/InvalidKeyException.java: New file.
4791 * java/security/InvalidParameterException.java: New file.
4792 * java/security/Key.java: New file.
4793 * java/security/KeyException.java: New file.
4794 * java/security/KeyPair.java: New file.
4795 * java/security/KeyPairGenerator.java: New file.
4796 * java/security/KeyPairGeneratorSpi.java: New file.
4797 * java/security/NoSuchProviderException.java: New file.
4798 * java/security/PrivateKey.java: New file.
4799 * java/security/Provider.java: New file.
4800 * java/security/PublicKey.java: New file.
4801 * java/security/SecureRandom.java: New file.
4802 * java/security/Security.java: New file.
4803 * java/security/Signature.java: New file.
4804 * java/security/SignatureException.java: New file.
4805 * java/security/interfaces/DSAKey.java: New file.
4806 * java/security/interfaces/DSAParams.java: New file.
4807 * java/security/interfaces/DSAPrivateKey.java: New file.
4808 * java/security/interfaces/DSAPublicKey.java: New file.
4809 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4810 * java/security/interfaces/RSAPrivateKey.java: New file.
4811 * java/security/interfaces/RSAPublicKey.java: New file.
4812 * java/security/spec/AlgorithmParameterSpec.java: New file.
4813 * java/security/spec/InvalidKeySpecException.java: New file.
4814 * java/security/spec/InvalidParameterSpecException.java: New file.
4815 * java/security/spec/KeySpec.java: New file.
4816 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4817 * java/security/spec/RSAPrivateKeySpec.java: New file.
4818 * java/security/spec/RSAPublicKeySpec.java: New file.
4819 * Makefile.am: Added above java.security files.
4820 * Makefile.in: Rebuilt.
4822 * java/security/MessageDigest.java: Rewritten.
4823 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4825 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4829 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4831 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4832 _Jv_PrepareConstantTimeTables.
4833 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4834 classes should have an IDT, so don't return if klass is an array
4837 2000-03-08 Tom Tromey <tromey@cygnus.com>
4839 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4840 of `void' to be created.
4842 2000-03-08 Warren Levy <warrenl@cygnus.com>
4844 * java/math/BigInteger.java(signum): Handle zero properly.
4846 2000-03-07 Tom Tromey <tromey@cygnus.com>
4848 * All files: Updated copyright information.
4849 * COPYING: New file.
4850 * COPYING.LIB: Removed.
4851 * LIBGCJ_LICENSE: We now use GPL + special exception.
4853 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4855 * resolve.cc (_Jv_SearchMethodInClass): New function.
4856 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4857 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4859 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4861 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4862 (struct _Jv_ifaces): New declaration.
4863 JV_CLASS: New macro definition.
4864 (getComponentType): Relocate below isArray() for inlining.
4865 (getModifiers): Declare `inline'.
4866 (getSuperclass): Ditto.
4868 (isPrimitive): Ditto.
4869 (_Jv_IsAssignableFrom): New prototype.
4870 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4872 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4873 Check for JV_STATE_DONE before invoking initializeClass().
4874 (_Jv_PrepareConstantTimeTables): New prototype.
4875 (_Jv_GetInterfaces): Ditto.
4876 (_Jv_GenerateITable): Ditto.
4877 (_Jv_GetMethodString): Ditto.
4878 (_Jv_AppendPartialITable): Ditto.
4879 (_Jv_FindIIndex): Ditto.
4880 depth, ancestors, idt: New class fields.
4882 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4883 inline function `_Jv_IsAssignableFrom'. Use that function.
4884 (isInstance): Declare `inline'.
4885 (initializeClass): Get lock on class before checking `state'. Unlock
4886 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4888 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4889 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4890 class->depth and ancestor table.
4891 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4892 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4893 _Jv_IsAssignableFrom.
4894 (_Jv_CheckArrayStore): Ditto.
4895 (_Jv_LookupInterfaceMethodIdx): New function.
4896 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4897 (_Jv_PrepareConstantTimeTables): New function.
4898 (_Jv_IndexOf): Ditto.
4899 (_Jv_GetInterfaces): Ditto.
4900 (_Jv_GenerateITable): Ditto.
4901 (_Jv_GetMethodString): Ditto.
4902 (_Jv_AppendPartialITable): Ditto.
4903 iindex_mutex, iindex_mutex_initialized: New static fields.
4904 (_Jv_FindIIndex): New function.
4906 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4908 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4909 (_Jv_CheckArrayStore): Ditto.
4910 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4911 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4912 Moved to gcj/array.h.
4913 (_Jv_Realloc): New function.
4915 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4917 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4918 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4919 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4920 JvNewDoubleArray): Implementations moved from prims.cc and
4923 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4925 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4927 2000-03-06 Tom Tromey <tromey@cygnus.com>
4929 * jni.cc (MARK_NONE): New define.
4930 (MARK_USER): Likewise.
4931 (MARK_SYSTEM): Likewise.
4932 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4934 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4935 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4936 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4937 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4939 (call): Use MARK_SYSTEM.
4940 (_Jv_GetJNIEnvNewFrame): New function.
4941 (_Jv_LookupJNIMethod): New function.
4942 (_Jv_JNI_PopSystemFrame): New function.
4943 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4945 2000-03-05 Tom Tromey <tromey@cygnus.com>
4947 Fix for PR libgcj/43:
4948 * include/Makefile.in: Rebuilt.
4949 * include/Makefile.am (include_HEADERS): New define.
4951 2000-03-05 Anthony Green <green@redhat.com>
4953 * gcj/javaprims.h ("Java"): Remove FirstThread.
4955 * configure.host: Fix __NO_MATH_INLNES botch.
4957 * Makefile.in: Rebuilt.
4958 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4959 (gnu/gcj/runtime/FirstThread.h): Moved.
4960 (ordinary_java_source_files): Move FirstThread.java.
4961 * prims.cc: Deal with FirstThread movement.
4963 (_Jv_RunMain): Ditto.
4965 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4966 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4968 2000-03-05 Warren Levy <warrenl@cygnus.com>
4970 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4971 Handle null addresses.
4973 2000-03-04 Anthony Green <green@redhat.com>
4975 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4978 2000-03-04 Anthony Green <green@redhat.com>
4980 * configure: Rebuilt.
4981 * configure.in (ZLIBTESTSPEC): New macro.
4982 (GCTESTSPEC): New macro.
4983 (LIBGCJTESTSPEC): New macro.
4984 * libgcj-test.spec.in: New file.
4986 2000-03-02 Tom Tromey <tromey@cygnus.com>
4988 * include/java-interp.h: Don't include MethodInvocation.h.
4989 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4990 * Makefile.in: Rebuilt.
4991 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4992 (ordinary_java_source_files): Don't mention
4993 MethodInvocation.java.
4994 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4995 * interpret.cc (MethodInvocation::continue1): Removed.
4996 (run): Handle exceptions here.
4997 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4999 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5001 (defineClass2): Removed.
5003 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5005 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5007 (hack_call): Removed.
5009 * java/lang/Class.h (Class): Removed hackRunInitializers,
5011 * java/lang/natClass.cc (hackRunInitializers): Removed.
5012 (initializeClass): Catch exceptions here.
5013 Include ExceptionInInitializerError.h.
5014 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5017 * java/lang/Object.h (Object): Don't mention hack12_6.
5018 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5020 * java/lang/Object.java (hack12_6): Removed.
5022 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5023 (start): Use run_, not run__.
5024 * java/lang/Thread.java (run_): Renamed from run__; old run_
5027 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5028 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5029 (_Jv_JNI_DefineClass): Likewise.
5030 (_Jv_JNI_ThrowNew): Likewise.
5031 (_Jv_JNI_AllocObject): Likewise.
5032 (_Jv_JNI_GetAnyMethodID): Likewise.
5033 (_Jv_JNI_CallAnyMethodV): Likewise.
5034 (_Jv_JNI_CallAnyMethodA): Likewise.
5035 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5036 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5037 (_Jv_JNI_GetAnyFieldID): Likewise.
5038 (_Jv_JNI_NewString): Likewise.
5039 (_Jv_JNI_NewStringUTF): Likewise.
5040 (_Jv_JNI_GetStringUTFChars): Likewise.
5041 (_Jv_JNI_NewObjectArray): Likewise.
5042 (_Jv_JNI_NewPrimitiveArray): Likewise.
5043 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5044 (_Jv_JNI_GetStringRegion): Likewise.
5045 (_Jv_JNI_GetStringUTFRegion): Likewise.
5046 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5047 (_Jv_JNI_MonitorEnter): Likewise.
5048 (_Jv_JNI_MonitorExit): Likewise.
5049 (_Jv_JNI_ToReflectedField): Likewise.
5050 (_Jv_JNI_ToReflectedMethod): Likewise.
5051 (_Jv_JNI_RegisterNatives): Likewise.
5052 (_Jv_JNI_AttachCurrentThread): Likewise.
5053 (_Jv_JNI_DestroyJavaVM): Likewise.
5055 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5057 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5058 error caused by the incorrect casting of a long to an int.
5060 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5062 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5063 SIGSEV caused by use of the wrong instance variable.
5065 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5067 * java/io/File.java (File(String, String)): For dirPath, treat an
5068 empty String the same as `null'.
5070 2000-02-26 Anthony Green <green@cygnus.com>
5072 * gnu/gcj/io/MimeTypes.java: Test for null.
5074 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5075 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5077 * java/net/URLConnection.java: Update copyright notice.
5079 2000-02-25 Tom Tromey <tromey@cygnus.com>
5081 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5084 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5086 * java/net/URLConnection.java (initializeDateFormats): New
5088 (getHeaderFieldDate): Call initializeDateFormats if required.
5089 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5091 Fix for PR libgcj/38.
5093 2000-02-24 Warren Levy <warrenl@cygnus.com>
5095 * java/math/BigInteger.java(ival): Made private.
5099 2000-02-20 Anthony Green <green@cygnus.com>
5101 * Makefile.in: Rebuilt.
5102 * Makefile.am (ordinary_java_source_files): Add
5103 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5105 * scripts/MakeDefaultMimeTypes.java: New file.
5106 * scripts/mime.types: New file.
5107 * scripts/classes.pl: Moved from top level.
5108 * classes.pl: Moved to scripts directory.
5110 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5112 * gnu/gcj/io/MimeTypes.java: New file.
5113 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5115 2000-02-20 Tom Tromey <tromey@cygnus.com>
5117 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5119 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5121 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5124 2000-02-18 Tom Tromey <tromey@cygnus.com>
5126 * include/jvm.h (_Jv_GetJavaVM): Declare.
5127 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5128 (_Jv_MethodBase::get_method): New method.
5129 (_Jv_JNIMethod::set_function): New method.
5130 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5131 (_Jv_JNI_RegisterNatives): New function.
5132 (_Jv_JNIFunctions): Updated for new functions.
5133 (_Jv_GetJavaVM): New function.
5134 (_Jv_JNI_GetJavaVM): Use it. Now static.
5135 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5136 is already a Java thread but does not have a JNIEnv yet.
5138 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5141 2000-02-17 Tom Tromey <tromey@cygnus.com>
5143 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5146 2000-02-16 Tom Tromey <tromey@cygnus.com>
5148 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5150 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5151 (_Jv_JNI_NewObject): Likewise.
5152 (_Jv_JNI_NewObjectA): Likewise.
5153 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5154 as "return" type to _Jv_CallAnyMethodA.
5155 (_Jv_JNI_CallAnyMethodA): Likewise.
5156 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5158 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5161 2000-02-15 Tom Tromey <tromey@cygnus.com>
5163 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5165 (init_cif): Added `rtype_p' argument.
5166 * include/java-interp.h (class _Jv_MethodBase): Added
5168 (class _Jv_InterpMethod): Removed args_raw_size.
5169 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5170 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5171 class pointer as well as the ordinary arguments.
5173 * jni.cc (mangled_name): Skip leading `(' in signature.
5175 * jni.cc (add_char): Added missing `else'.
5177 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5180 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5184 * java/lang/natRuntime.cc (_load): Include library path with
5187 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5190 * java/lang/natThread.cc (dumpStack): Removed.
5191 * java/lang/Thread.java (dumpStack): Implemented.
5193 2000-02-15 Tom Tromey <tromey@cygnus.com>
5195 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5196 with `lib' for loadLibrary. Fixes PR gcj/150.
5198 2000-02-14 Warren Levy <warrenl@cygnus.com>
5200 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5202 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5206 (modPow): Rewritten to not use the naive, slow, brute force approach.
5207 (isProbablePrime): Implemented.
5208 (testBit): Implemented.
5209 (flipBit): Implemented.
5210 (getLowestSetBit): Implemented.
5212 2000-02-16 Anthony Green <green@redhat.com>
5214 * configure.host: Use the same options for i386 and i486 as we do
5217 2000-02-12 Tom Tromey <tromey@cygnus.com>
5219 * java/io/File.java (createTempFile): Use low bits from counter,
5222 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5224 * THANKS: More thanks.
5226 2000-02-11 Tom Tromey <tromey@cygnus.com>
5228 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5229 astore instruction. From Hans Boehm.
5231 2000-02-11 Warren Levy <warrenl@cygnus.com>
5233 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5234 (BigInteger(String)): New constructor.
5235 (not): Rewritten using version from Kawa's BitOps class.
5236 (valueOf): New private methods from Kawa's BitOps class.
5243 (andNot): Implemented.
5244 (clearBit): Implemented.
5245 (setBit): Implemented.
5246 (bitCount): Implemented.
5247 (toByteArray): Implemented.
5249 2000-02-11 Tom Tromey <tromey@cygnus.com>
5251 * java/io/File.java (nextValue): Now synchronized.
5253 2000-02-10 Tom Tromey <tromey@cygnus.com>
5255 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5256 * java/io/FileDescriptor.java (EXCL): New static field.
5257 * java/io/File.java (tmpdir): New static field.
5258 (createTempFile): New method.
5259 (nextValue): New method.
5260 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5263 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5264 (jboolean): Declare as an attributed int, not a bool.
5265 (_Jv_func): Declare differently for C.
5267 * gnu/gcj/jni/natNativeThread.cc: New file.
5268 * gnu/gcj/jni/NativeThread.java: New file.
5269 * java/lang/Thread.java (data): Now a RawData.
5270 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5272 * Makefile.in: Rebuilt.
5273 * Makefile.am (java/lang/Thread.h): New target.
5274 (ordinary_java_source_files): Added NativeThread.java.
5275 (nat_source_files): Added natNativeThread.cc.
5276 * java/lang/natThread.cc: Include <jni.h>
5277 (struct natThread): Added `jni_env' field.
5278 (_Jv_GetCurrentJNIEnv): New function.
5279 (_Jv_SetCurrentJNIEnv): Likewise.
5280 (initialize_native): Initialize jni_env.
5282 * jni.cc (ThreadGroupClass): New define.
5283 (_Jv_JNI_InvokeFunctions): New structure.
5284 (JNI_GetCreatedJavaVMs): New function.
5285 (the_vm): New global.
5286 (JNI_GetDefaultJavaVMInitArgs): New function.
5287 Include NativeThread.h.
5288 (NativeThreadClass): New define.
5289 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5290 (_Jv_JNI_DestroyJavaVM): New function.
5291 (_Jv_JNI_AttachCurrentThread): New function.
5292 (_Jv_JNI_DetachCurrentThread): New function.
5293 (_Jv_JNI_GetEnv): New function.
5294 (JNI_CreateJavaVM): New function.
5295 (_Jv_JNI_GetJavaVM): New function.
5296 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5297 * include/jni.h (JavaVMAttachArgs): New structure.
5298 (JNI_EDETACHED): New define.
5299 (JNI_EVERSION): Likewise.
5300 (JavaVM): Define properly.
5301 (struct JNIInvokeInterface): New structure.
5302 (class _Jv_JavaVM): New class.
5303 (JNI_OnLoad, JNI_OnUnload): Declare.
5304 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5305 JNI_GetCreatedJavaVMs): Declare.
5306 (JavaVMInitArgs): New typedef.
5307 (JavaVMOption): Likewise.
5308 (JNI_ERR): New define.
5311 2000-02-10 Andrew Haley <aph@cygnus.com>
5313 * interpret.cc: Don't include fdlibm.h.
5314 Replace #if with #ifdef throughout.
5315 Declare extern __ieee754_fmod.
5316 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5318 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5319 Search class hierarchy for superclass vtable.
5321 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5322 off the end of a pointer list.
5324 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5328 2000-02-09 Tom Tromey <tromey@cygnus.com>
5330 * java/lang/natRuntime.cc (_load): Call add_library.
5331 (loadLibraryInternal): Likewise.
5333 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5334 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5335 (Output_iconv::finalize): Likewise.
5337 2000-02-08 Tom Tromey <tromey@cygnus.com>
5339 * java/util/Properties.java (setProperty): New method.
5340 (store): New method.
5342 2000-02-07 Tom Tromey <tromey@cygnus.com>
5344 * java/lang/Runtime.java (_load): Declare.
5345 (load, loadLibrary): Wrote in terms of _load.
5346 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5348 (loadLibrary): Likewise.
5350 (_load): New method.
5351 (loadLibrary, load): Removed.
5353 * jni.cc (ThrowableClass): New define.
5354 (_Jv_JNI_Throw): Check argument.
5355 (_Jv_JNI_ThrowNew): Likewise.
5356 (wrap_value): Don't wrap object if it is NULL.
5357 (_Jv_JNI_DefineClass): Use wrap_value.
5358 (_Jv_JNI_FindClass): Likewise.
5359 (_Jv_JNI_GetSuperclass): Likewise.
5360 (_Jv_JNI_ExceptionOccurred): Likewise.
5361 (_Jv_JNI_AllocObject): Likewise.
5362 (_Jv_JNI_GetObjectClass): Likewise.
5363 (_Jv_JNI_NewString): Likewise.
5364 (_Jv_JNI_NewStringUTF): Likewise.
5365 (_Jv_JNI_NewObjectArray): Likewise.
5366 (_Jv_JNI_GetObjectArrayElement): Likewise.
5367 (_Jv_JNI_NewPrimitiveArray): Likewise.
5368 (_Jv_JNI_ToReflectedField): Likewise.
5369 (_Jv_JNI_ToReflectedMethod): Likewise.
5370 (_Jv_JNI_AllocObject): Check argument.
5371 (_Jv_JNI_NewObjectV): Likewise.
5372 (_Jv_JNI_NewObject): Likewise.
5373 (_Jv_JNI_NewObjectA): Likewise.
5374 (_Jv_JNI_GetObjectClass): Likewise.
5375 (_Jv_JNI_GetField): Likewise.
5376 (_Jv_JNI_SetField): Likewise.
5378 * interpret.cc (PUSHL): Don't use expression statement.
5383 * jni.cc (add_char): Conditional on INTERPRETER.
5384 (mangled_name): Likewise.
5386 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5388 (class _Jv_JNIMethod): Likewise.
5390 2000-02-04 Warren Levy <warrenl@cygnus.com>
5392 * Makefile.am: Added MPN.java and BigInteger.java.
5393 * Makefile.in: Rebuilt.
5394 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5396 * java/math/BigInteger.java: New file. Based primarily on
5397 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5399 2000-02-04 Tom Tromey <tromey@cygnus.com>
5401 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5403 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5404 if the method is native.
5405 * resolve.cc (ncode): Don't handle native methods.
5406 (_Jv_JNIMethod::ncode): New method.
5407 (_Jv_PrepareClass): Handle native methods.
5408 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5409 Include AbstractMethodError.h.
5410 (add_char): New function.
5411 (mangled_name): Likewise.
5412 * include/java-interp.h (class _Jv_JNIMethod): New class.
5413 (class _Jv_MethodBase): New class.
5414 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5415 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5418 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5419 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5420 libraries): New globals.
5421 (add_library): New function.
5422 (_Jv_FindSymbolInExecutable): New function.
5424 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5427 2000-02-04 Andrew Haley <aph@cygnus.com>
5429 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5430 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5431 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5432 printStackTrace to printRawStackTrace.
5434 2000-02-03 Tom Tromey <tromey@cygnus.com>
5436 * java/util/Calendar.java (toString): New method.
5437 * java/util/SimpleTimeZone.java (clone): New method.
5438 (toString): New method.
5439 * java/util/TimeZone.java (clone): New method.
5440 * java/text/SimpleDateFormat.java (clone): New method.
5441 * java/text/NumberFormat.java (clone): New method.
5442 (equals): New method.
5443 * java/text/Format.java (clone): New method.
5444 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5446 (clone): New method.
5447 * java/text/DateFormat.java (clone): New method.
5448 * java/text/Collator.java (clone): New method.
5450 2000-02-03 Tom Tromey <tromey@cygnus.com>
5452 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5455 2000-02-01 Tom Tromey <tromey@cygnus.com>
5457 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5458 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5459 constructing the closure if the function is native.
5460 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5461 a template function, #if'd out, or static.
5462 Include <java-interp.h>.
5464 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5466 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5468 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5469 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5471 (wrap_value): New function.
5472 (_Jv_JNI_CallAnyMethodV): Use it.
5473 (_Jv_JNI_CallAnyMethodA): Likewise.
5474 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5475 (_Jv_JNI_GetStaticField): Likewise.
5477 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5478 (_Jv_JNI_GetStaticField): Likewise.
5480 2000-01-31 Tom Tromey <tromey@cygnus.com>
5482 * prims.cc (_Jv_MallocUnchecked): New function.
5483 (main_init): Call _Jv_JNI_Init.
5484 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5485 (_Jv_JNI_Init): Declare.
5486 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5488 (_Jv_JNI_NewGlobalRef): New function.
5489 (_Jv_JNI_DeleteGlobalRef): New function.
5490 (_Jv_JNI_DeleteLocalRef): New function.
5491 (_Jv_JNI_conversion_call): Initialize and clear local reference
5493 (_Jv_JNI_NewLocalRef): New function.
5494 (struct _Jv_JNI_LocalFrame): New structure.
5495 (_Jv_JNI_PushLocalFrame): New function.
5496 (_Jv_JNI_EnsureLocalCapacity): New function.
5497 (FRAME_SIZE): New define.
5498 (_Jv_JNI_GetStringChars): Mark string, not characters.
5499 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5500 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5501 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5503 (_Jv_JNI_DefineClass): Make return value a local ref.
5504 (_Jv_JNI_FindClass): Likewise.
5505 (_Jv_JNI_GetSuperclass): Likewise.
5506 (_Jv_JNI_ExceptionOccurred): Likewise.
5507 (_Jv_JNI_AllocObject): Likewise.
5508 (_Jv_JNI_GetObjectClass): Likewise.
5509 (_Jv_JNI_CallAnyMethodV): Likewise.
5510 (_Jv_JNI_NewString): Likewise.
5511 (_Jv_JNI_NewStringUTF): Likewise.
5512 (_Jv_JNI_NewObjectArray): Likewise.
5513 (_Jv_JNI_GetObjectArrayElement): Likewise.
5514 (_Jv_JNI_ToReflectedField): Likewise.
5515 (_Jv_JNI_ToReflectedMethod): Likewise.
5516 (_Jv_JNIFunctions): Updated table for new functions.
5517 (_Jv_JNI_Init): New function.
5518 (mark_for_gc): Wrote.
5519 (unmark_for_gc): Wrote.
5520 * include/jni.h (struct JNINativeInterface): Removed name from
5521 PopLocalFrame parameter.
5522 (class _Jv_JNIEnv): Added `locals' field.
5524 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5526 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5529 2000-01-30 Tom Tromey <tromey@cygnus.com>
5531 * include/config.h.in: Rebuilt.
5532 * acconfig.h (HAVE_ICONV): Define.
5533 * configure: Rebuilt.
5534 * configure.in: Check for `iconv' function.
5535 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5536 no specific encoder exists.
5537 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5538 no specific encoder exists.
5539 * Makefile.in: Rebuilt.
5540 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5542 (nat_source_files): Added natIconv.cc.
5543 * gnu/gcj/convert/natIconv.cc: New file.
5544 * gnu/gcj/convert/Input_iconv.java: New file.
5545 * gnu/gcj/convert/Output_iconv.java: New file.
5547 2000-01-28 Tom Tromey <tromey@cygnus.com>
5549 * Makefile.in: Rebuilt.
5550 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5552 2000-01-26 Tom Tromey <tromey@cygnus.com>
5554 * gcj/method.h (JvNumMethods): Moved from Class.h.
5555 (JvGetFirstMethod): Likewise.
5556 * java/lang/Class.h (Object): Updated decl of
5557 _Jv_JNI_ToReflectedField.
5558 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5559 * Makefile.in: Rebuilt.
5560 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5561 argument of _Jv_JNI_ToReflectedField.
5562 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5564 (java/lang/reflect/Method.h): Likewise.
5565 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5567 (jweak): New typedef.
5568 (struct JNINativeInterface): Correctly declare remaining entries.
5569 * jni.cc: Include Class.h, ClassLoader.h.
5570 (_Jv_JNI_FindClass): New function.
5571 (_Jv_JNI_DefineClass): New function.
5572 (_Jv_JNI_conversion_call): New function.
5573 (_Jv_JNI_FindClass): Use current class loader to find class.
5574 (_Jv_JNI_ExceptionCheck): New function.
5575 (_Jv_JNI_FromReflectedField): Now static.
5576 (MethodClass): New define.
5577 (_Jv_JNI_FromReflectedMethod): New function.
5578 (_Jv_JNI_ToReflectedMethod): Likewise.
5580 (_Jv_JNI_IsAssignableFrom): Renamed.
5581 (_Jv_JNI_GetStringRegion): New function.
5582 Include StringIndexOutOfBoundsException.h.
5583 (_Jv_JNI_GetStringUTFRegion): New function.
5584 (_Jv_JNIFunctions): Updated for new functions.
5585 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5586 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5587 (_Jv_JNI_GetStringCritical): New function.
5588 (_Jv_JNI_ReleaseStringCritical): Likewise.
5589 (get_throwable): Removed.
5590 (GCJ_JV_JNIENV_FRIEND): Removed.
5591 (__GCJ_JNI_IMPL__): Define.
5594 * resolve.cc (get_ffi_type_from_signature): Handle case where
5597 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5599 * interpret.cc (run): Don't call println.
5600 Don't include PrintStream.h.
5602 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5603 nameIndex. Use "jint" as type for boffset.
5604 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5606 (Class): Likewise. Also changed type of method_count,
5607 vtable_method_count, size_in_bytes, field_count,
5608 static_field_count, interface_count.
5609 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5612 2000-01-21 Tom Tromey <tromey@cygnus.com>
5614 * java/lang/reflect/natConstructor.cc (newInstance): Use
5616 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5617 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5618 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5621 (invoke): Use _Jv_CallAnyMethodA.
5623 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5624 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5626 (struct _Jv_Method): Added getNextMethod method.
5627 (JvNumMethods): New function.
5628 (JvGetFirstMethod): Likewise.
5629 * gcj/field.h (JvGetFirstStaticField): New function.
5630 (JvNumStaticFields): Likewise.
5631 (getNextField): Renamed from getNextInstanceField.
5632 (struct _Jv_Field): New method getClass.
5633 * jni.cc: Wrote many new functions.
5634 * include/jni.h (JNI_TRUE): Define.
5635 (JNI_FALSE): Likewise.
5636 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5637 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5638 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5639 (jfieldID, jmethodID): Likewise.
5640 (JNI_COMMIT, JNI_ABORT): New defines.
5641 (JNINativeMethod): New struct.
5642 (struct JNINativeInterface): Correctly declared more entries.
5643 (class _Jv_JNIEnv): Added `ex' member.
5644 (JNI_VERSION_1_1): New define.
5645 (JNI_VERSION_1_2): Likewise.
5647 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5648 getNextInstanceField.
5650 2000-01-20 Tom Tromey <tromey@cygnus.com>
5652 * resolve.cc (StringClass): Removed.
5653 * defineclass.cc (StringClass): Removed.
5655 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5659 2000-01-19 Tom Tromey <tromey@cygnus.com>
5661 * interpret.cc (PC_REGISTER_ASM): Removed.
5663 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5664 From Bryce McKinlay.
5666 * All files: Updated copyright to reflect Cygnus purchase.
5668 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5670 * configure: Rebuilt.
5671 * configure.in: Recognize --disable-interpreter.
5673 2000-01-18 Andrew Haley <aph@cygnus.com>
5675 * name-finder.cc (lookup): Check for dladdr function.
5676 acconfig.h (HAVE_DLADDR): Add.
5677 configure.in: Check for HAVE_DLADDR
5679 include/config.h.in: Rebuilt.
5681 2000-01-17 Andrew Haley <aph@cygnus.com>
5683 * prims.cc (_Jv_RunMain): Set the name of this executable.
5685 2000-01-17 Tom Tromey <tromey@cygnus.com>
5687 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5688 when backtrace can't be computed.
5690 * configure: Rebuilt.
5691 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5693 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5694 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5695 (_Jv_FindClassInCache): Likewise.
5696 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5697 (findSystemClass): Try to load class from compiled module.
5699 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5700 (loadLibrary): Likewise.
5701 (lt_preloaded_symbols): Define.
5702 (loadLibraryInternal): New method.
5703 * include/config.h.in: Rebuilt.
5704 * acconfig.h (USE_LTDL): Added.
5705 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5706 (INCLUDES): Added $(INCLTDL).
5707 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5708 (libgcj_la_LIBADD): Likewise.
5709 * aclocal.m4, configure: Rebuilt.
5710 * configure.in: Added libltdl support.
5712 2000-01-15 Tom Tromey <tromey@cygnus.com>
5714 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5716 2000-01-14 Andrew Haley <aph@cygnus.com>
5718 * java/lang/natThrowable.cc: New file.
5720 * java/lang/Throwable.java (fillInStackTrace): Make native.
5721 (printStackTrace): Call native method to do this.
5722 (Throwable): Call fillInStackTrace.
5723 (stackTrace): New variable.
5725 * include/jvm.h: Add _Jv_ThisExecutable functions.
5727 * prims.cc: (_Jv_execName): New variable.
5728 (catch_segv): Call fillInStackTrace.
5730 (_Jv_ThisExecutable): New functions.
5731 (JvRunMain): Set the name of this executable.
5733 * Makefile.am: Add java/lang/natThrowable.cc.
5735 * Makefile.in: Rebuilt.
5737 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5739 * configure.in: Force link with __frame_state_for in
5740 FORCELIBGCCSPEC. Add new checks for backtrace.
5741 * include/config.h.in: Rebuilt.
5743 * name-finder.cc: New file.
5744 * include/name-finder.h: New file.
5746 2000-01-16 Anthony Green <green@cygnus.com>
5748 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5751 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5753 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5755 2000-01-13 Tom Tromey <tromey@cygnus.com>
5757 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5758 not system loader, as initiating loader.
5760 2000-01-11 Tom Tromey <tromey@cygnus.com>
5762 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5763 HP/UX. From David Scott Urban.
5765 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5767 * java/lang/natMath.cc (pow): Cast args to `double', not
5770 (IEEEremainder): Likewise.
5771 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5772 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5774 2000-01-09 Anthony Green <green@cygnus.com>
5776 * java/lang/natString.cc (init): Test for overflow condition
5777 during out of bounds check.
5778 (getChars): Throw StringIndexOutOfBoundsException, not
5779 ArrayIndexOutOfBoundsException.
5781 (regionMatches): Obey case option during string comparison.
5783 * configure.host (ligcj_interpreter): New variable. Enable
5784 interpreter by default on IA-32.
5785 * configure.in: Examine libgcj_interpreter.
5786 * configure: Rebuilt.
5788 2000-01-07 Tom Tromey <tromey@cygnus.com>
5790 * mauve-libgcj: Don't disable ClassTest.
5792 * java/lang/natClass.cc (getClasses): Wrote.
5794 2000-01-06 Tom Tromey <tromey@cygnus.com>
5796 * java/lang/natClass.cc (_getConstructors): Correctly check
5797 whether method name is the init name.
5798 (getMethod): Look at accflags on method in `klass', not `this'.
5800 2000-01-05 Tom Tromey <tromey@cygnus.com>
5802 * java/lang/natClass.cc (getMethod): Compute offset relative to
5803 `klass's methods table, not `this's table.
5805 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5806 In unwrapping/widening case, check whether `k' is null, not
5807 whether it is primitive. Initialize `num' from `argelts', not
5808 `paramelts'. Correct create and pass arguments to ffi_call.
5809 Don't let presence of `this' argument affect index used to look in
5811 (COPY): Set appropriate element in `values' vector.
5813 * java/lang/natClass.cc: Include <gcj/method.h>.
5815 * java/lang/Class.h (_getMethods): Correctly declare as private,
5818 * java/lang/Class.h (_getMethods): Declare.
5819 * java/lang/Class.java (_getMethods): Declare.
5820 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5821 (getDeclaredClasses): Always return empty array.
5822 (_getMethods): New method.
5823 (getMethods): Wrote.
5824 (getDeclaredMethod): Return `rmethod'.
5825 (finit_name): New global.
5826 (getDeclaredMethods): Check for finit_name.
5827 (_getMethods): Likewise.
5828 (getMethod): Only return public methods.
5830 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5831 jboolean and select correct ffi type on that basis.
5832 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5833 Constructor call always has `void' return type.
5835 2000-01-04 Tom Tromey <tromey@cygnus.com>
5837 * java/lang/Class.h (getSignature): Updated.
5838 * java/lang/Class.java (getSignature): Updated.
5839 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5841 (getConstructor): Ensure constructor is public.
5842 (_getConstructors): Check for public-ness of constructor when
5843 `declared' is false, not when it is true.
5845 2000-01-04 Warren Levy <warrenl@cygnus.com>
5847 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5849 (receive): Set the sender's address in the DatagramPacket.
5851 2000-01-04 Tom Tromey <tromey@cygnus.com>
5853 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5854 declaring class as return_type argument to
5855 _Jv_CallNonvirtualMethodA.
5856 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5857 constructor case, create object and use it as `this' argument.
5858 * java/lang/Class.h (_getConstructors): Declare.
5859 (_getFields): Declare.
5860 * java/lang/Class.java (getConstructors): Wrote.
5861 (_getConstructors): New native method.
5862 (getDeclaredConstructors): Wrote.
5863 (_getFields): Declare new native method.
5864 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5866 (getMethod): Work correctly when class is primitive.
5867 (getDeclaredMethods): Likewise. Compute offset using `method',
5869 (getDeclaredMethod): Likewise.
5870 (getConstructor): Wrote.
5871 (ConstructorClass): New define.
5872 (getDeclaredConstructor): Wrote.
5873 (_getConstructors): New method.
5874 (_getFields): New method.
5877 * Makefile.in: Rebuilt.
5878 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5880 * prims.cc: Remove `#pragma implementation'.
5881 * gcj/array.h: Remove `#pragma interface'.
5883 * prims.cc (_Jv_equaln): New function.
5884 * java/lang/Class.java (getSignature): Declare.
5885 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5886 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5888 (getSignature): New method.
5889 (getDeclaredMethod): Wrote.
5891 Include StringBuffer.h.
5892 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5893 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5895 (getSignature): Declare.
5896 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5897 (_Jv_equaln): Declare.
5898 (_Jv_CallNonvirtualMethodA): Declare.
5899 * Makefile.in: Rebuilt.
5900 * Makefile.am (nat_source_files): Added natConstructor.cc.
5901 (java/lang/reflect/Constructor.h): New target.
5902 * java/lang/reflect/natConstructor.cc: New file.
5903 * java/lang/reflect/Constructor.java (newInstance): Now native.
5904 (declaringClass): Renamed from decl_class.
5905 (offset): Renamed from index.
5906 (getType): New native method.
5907 (getModifiers): Now native.
5908 (getParameterTypes): Call getType if required.
5909 (hashCode): Include hash code from declaring class.
5910 (modifiers): Removed.
5911 (toString): Call getType if required.
5912 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5913 * java/lang/reflect/natMethod.cc (hack_call): New method.
5914 Removed `#if 0' around FFI code.
5915 Include <gnu/gcj/RawData.h>.
5916 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5917 IllegalArgumentException when argument object and class disagree.
5918 (_Jv_GetTypesFromSignature): New function.
5920 (ObjectClass): New define.
5921 (_Jv_CallNonvirtualMethodA): New function.
5922 * java/lang/reflect/Method.java (hack_trampoline): New method.
5923 (hack_call): New native method.