1 2001-04-01 Per Bothner <per@bothner.com>
3 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
4 (finish): def.deflate needs to be called in a loop.
5 (inbuf, inbufLength): New private fields.
6 (write(int)): Use inbuf.
7 (write(byte[],int,int): Check if pending output in inbuf.
8 * ZipOutputStream.java: Don't use Deflater if stored.
9 Use a Checksum object directly, not via a CheckedOutputStream.
10 (uncompressed_size): New field,
11 (closeEntry): Only write data_directory if needed.
12 (write): If STORED, write directly.
13 Always update crc, and uncompressed_size.
14 (write_entry): Fix lots of protocol erors.
16 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
18 1.3-Compliant Implementation of java.io.File.
19 * java/lang/natSystem.cc (init_properties): Get "file.separator",
20 "path.separator", and "java.io.tmpdir" from the File class, instead
21 of setting them explicitly.
22 * java/io/File.java: Do not canonicalize paths for security manager
23 checks. Call init_native() from static initializer. Do not pass path
24 argument to native methods. New native method declarations. Some
25 security manager checks moved to checkWrite().
26 (equals): Check file system case sensitivity and act appropriatly.
28 (isHidden): New method implemented.
29 (performList): Changed prototype. Now takes a class argument specifying
30 the class of the returned array: Strings or File objects. Also added
32 (listFiles): New variants with "File" return type implemented.
33 (createTempFile): Use createNewFile(). Use maxPathLen.
34 (setReadOnly): New method implemented.
35 (listRoots): Likewise.
36 (compareTo): Likewise.
37 (setLastModified): Likewise.
38 (checkWrite): New method.
40 * java/io/natFile.cc: Various functions no longer take canonical path
42 (stat): Handle ISHIDDEN query.
43 (isAbsolute): Remove WIN32 cruft.
44 (performList): New arguments. Handle returning either File[] or String[]
45 arrays. Check with FileFilter or FilenameFilter arguments as
46 appropriate. Use an ArrayList, not a Vector, for the temporary list.
47 (performSetReadOnly): New method implemented.
48 (performListRoots): Likewise.
49 (performSetLastModified): Likewise.
50 (performCreate): Likewise.
51 (init_native): New initialization function.
52 * java/io/natFileWin32.cc: Various functions no longer take canonical
54 (stat): Add FIXME about ISHIDDEN query.
55 (performList): New arguments. Handle returning either File[] or String[]
56 arrays. Check with FileFilter or FilenameFilter arguments as
57 appropriate. Use an ArrayList, not a Vector, for the temporary list.
58 (performSetReadOnly): New. Stubbed.
59 (performListRoots): Likewise.
60 (performSetLastModified): Likewise.
61 (performCreate): Likewise.
62 (init_native) New initialization function.
63 * configure.in: Check for utime() and chmod().
65 * include/config.h.in: Rebuilt.
67 Resolves PR libgcj/1759.
69 2001-03-28 Richard Henderson <rth@redhat.com>
71 IA-64 ABI Exception Handling:
72 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
73 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
75 * configure.host (libgcj_sjlj): Remove.
76 * configure.in (EXCEPTIONSPEC): Remove.
77 (enable-sjlj-exceptions): Detect if not specified.
78 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
79 what header we're looking for.
80 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
81 * Makefile.in, configure: Regenerate.
82 * exception.cc: Don't declare libgcc2 stuff.
83 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
84 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
85 (win32_get_restart_frame): Remove.
86 (struct java_exception_header): New.
87 (__gcj_exception_class): New.
88 (get_exception_header_from_ue): New.
89 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
90 (size_of_encoded_value, read_encoded_value): New.
91 (read_uleb128, read_sleb128, parse_lsda_header): New.
92 (get_ttype_entry, __gcj_personality_sj0): New.
93 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
95 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
97 * javax/naming/InitialContext.java (init): Fix typo.
98 (composeName): Remove unnecessary semicolon.
99 (addToEnvironment): Remove unnecessary semicolon.
100 (addToEnvironment): Use put() instead of add().
102 * javax/naming/InitialContext.java (InitialContext):
104 (destroySubcontext): Method doesn't return a result.
105 * javax/naming/Context.java: Import java.util.Hashtable.
106 * javax/naming/Name.java: Import java.util.Enumeration.
108 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
110 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
111 objects in subdirectories.
112 * Makefile.in: Rebuilt.
114 2001-03-25 Richard Henderson <rth@redhat.com>
116 * exception.cc (java_eh_info): Make value type jthrowable.
117 (_Jv_type_matcher): Remove now unneeded cast.
118 (_Jv_Throw): Make argument type jthrowable. Munge name
119 for SJLJ_EXCEPTIONS here ...
120 * gcj/cni.h: ... not here.
122 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
124 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
125 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
126 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
127 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
128 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
129 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
130 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
131 java/lang/natClass.cc, java/lang/natClassLoader.cc,
132 java/lang/natDouble.cc, java/lang/natObject.cc,
133 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
134 java/lang/natString.cc, java/lang/natSystem.cc,
135 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
136 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
137 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
138 java/util/zip/natInflater.cc:
139 Use throw, not JvThrow or _Jv_Throw.
141 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
143 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
144 paramater, bump it to 1.
145 * java/util/Hashtable.java (Hashtable): Likewise.
147 2001-03-23 Per Bothner <per@bothner.com>
149 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
150 check for errors, since we don't want to throw exception on
151 overflow/underflow. Instead, trim whitespace, and then check that
152 _strtod_r uses up all the rest of the string.
154 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
155 ancestors array is invalid for interfaces, so do that *after*
156 check that the target type is not an interface.
158 2000-03-23 Jeff Sturm <jsturm@one-point.com>
160 * prims.cc (_Jv_FindClassFromSignature): Check return of
161 recursive call. Do not abort on invalid signature; return NULL
164 2001-03-22 Tom Tromey <tromey@redhat.com>
166 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
167 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
169 * include/jvm.h (_Jv_ResolveField): Declare.
170 * include/java-interp.h (_Jv_ResolveField): Don't declare.
171 * resolve.cc (_Jv_ResolveField): No longer conditional on
174 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
176 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
178 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
179 to a temporary file, then invoke libtool with the -objectlist
181 (libgcjx.la): Likewise.
182 * Makefile.in: Rebuilt.
184 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
186 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
188 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
190 * jni.cc (add_char): Handle `.' like `/'.
192 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
194 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
195 initialize if exception_types is null.
196 * java/lang/reflect/Constructor.java: Likewise.
197 * java/lang/reflect/natConstructor.cc (getType): Initialize
198 exception_types to an empty Object array.
200 2001-03-21 Tom Tromey <tromey@redhat.com>
202 * configure: Rebuilt.
203 * configure.in (GCJFLAGS): Subst.
204 * Makefile.in: Rebuilt.
205 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
206 (gij_LDFLAGS): Likewise.
207 (JC1FLAGS): Added GCJFLAGS and removed -g.
209 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
210 read/write case. Fixes PR libgcj/2338.
212 2001-03-20 Warren Levy <warrenl@redhat.com>
214 * java/util/TimeZone.java: Sync up with Classpath. Includes new
215 and corrected SimpleTimeZone's for the timezones hash table.
217 2001-03-19 Per Bothner <per@bothner.com>
219 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
220 "canonicalize" "../../xxx" to "/xxx".
222 2001-03-19 Mark Wielaard <mark@klomp.org>
224 * java/util/ArrayList.java: Remove RCS keywords from comments
225 * java/util/BasicMapEntry.java: idem
226 * java/util/Dictionary.java: idem
227 * java/util/HashSet.java: idem
229 * java/util/EventObject.java: reindent
230 * java/util/Properties.java: idem
231 * java/util/SortedMap.java: idem
233 * java/util/Enumeration.java: Merge with Classpath
234 * java/util/EventListener.java: idem
235 * java/util/Observable.java: idem
236 * java/util/Observer.java: idem
237 * java/util/Stack.java: idem
239 2001-03-17 Tom Tromey <tromey@redhat.com>
241 * java/lang/natString.cc (rehash): Don't bother with memset;
242 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
244 (UNMASK_PTR): New macro.
245 (intern): Unmask pointer before returning it. Register finalizer
247 (unintern): Handle case where
248 (MASK_PTR): New macro.
249 (PTR_MAKSED): Likewise.
250 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
252 2001-03-01 Andrew Haley <aph@redhat.com>
254 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
255 stackTrace buffer to a correctly aligned pointer array.
257 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
259 * java/lang/Runtime.java (_exit): Declare new package-private native.
260 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
261 without a security manager check.
262 (exit): Call _exit after security check.
263 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
265 * java/lang/System.java (setSecurityManager): If a security manager
266 is already in place, call checkPermission.
267 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
268 throws an exception, try to deal with it gracefully.
269 * java/lang/ExceptionInInitializerError.java (printStackTrace):
270 Only try to print the subordinate stack trace if "exception" is set.
271 Print our class name first.
273 2001-03-08 Tom Tromey <tromey@redhat.com>
275 * java/io/ObjectStreamClass.java (setUID): Don't write interface
276 info for array classes.
277 Fixes PR libgcj/1971.
279 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
281 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
284 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
286 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
287 instead of the new JDK1.2 API. This is simpler and makes
288 back-porting the classes to JDK1.1 trivial.
289 (readObject): likewise.
291 2001-03-01 Per Bothner <per@bothner.com>
293 Changes merged from Kawa's gnu.math.
294 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
295 (rshift(int[],int[],int,int): Removed - not needed.
296 (gcd): Use rshift0 rather than rshift.
297 * java/math/BigInteger.java (setShiftRight): Likewise.
298 (divide): Simplify by using rshift0.
299 (divide): Zero-extend results if high-order bit set.
301 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
303 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
306 2001-02-23 Per Bothner <per@bothner.com>
308 Change to sometimes include class name in ClassFormatError message.
309 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
310 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
311 boolean instead of throwing ClassFormatError on failure.
312 (throw_class_format_error): Change static function to method.
313 (_Jv_ClassReader): New inline methods verify_identifier,
314 two overloads of verify_classname, verify_field_signature, and
315 verify_method_signature
316 * include/java-interp.h: Update declarations to return bool.
317 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
318 ClassFormatError since _Jv_VerifyClassName now returns bool.
320 2001-02-23 Per Bothner <per@bothner.com>
322 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
323 c++filt to select java-style output.
325 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
327 Fix for PR java/2040:
328 * java/util/HashMap.java (HashMap): Don't throw exception for
329 loadFactor > 1. Add exception messages.
330 * java/util/Hashtable.java (Hashtable): Likewise.
332 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
334 Disable libgcjx by default.
335 * configure.in: Add support for --enable-java-awt configure option.
336 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
337 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
338 * Makefile.in: Rebuilt.
339 * configure: Rebuilt.
341 2001-02-20 Tom Tromey <tromey@redhat.com>
343 * java/io/PipedWriter.java (flush): Throw exception if stream
345 * java/io/OutputStreamWriter.java (write): Throw exception if
347 (writeChars): Don't throw exception if stream closed.
348 * java/io/CharArrayWriter.java (closed): New field.
350 (flush): Throw exception if stream closed.
351 (reset): Synchronize on correct lock. Allow stream to be
353 (toCharArray, toString, writeTo): Synchronize.
354 (write): Throwe exception if stream closed.
355 * java/io/BufferedWriter.java (close): Clear `buffer'.
356 (flush): Throw IOException if stream is closed.
359 2001-02-16 Tom Tromey <tromey@cygnus.com>
361 * java/lang/ThreadGroup.java (activeCount): Only include threads
363 (enumerate): Likewise.
365 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
367 * java/lang/Integer.java (getInteger): Return default argument if
368 property is not set. Don't call decode with null argument.
369 * java/lang/Long.java (getLong): Likewise.
371 * java/io/CharArrayReader.java (CharArrayReader): Throw
372 IllegalArgumentException if constructor arguments are illegal.
373 (ready): Return false if no more characters can be read.
374 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
376 2001-02-17 Mark Wielaard <mark@klomp.org>
378 * java/util/TimerTask.java: New version from Classpath.
380 2001-02-17 Mark Wielaard <mark@klomp.org>
382 Remerge with Classpath
383 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
384 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
385 (readByte): Use convertToByte().
386 (readChar): Use convertToChar().
387 (readInt): Use convertToInt().
388 (readLong): Use convertToLong().
389 (readShort): Use convertToShort().
390 (readUnsignedByte): Use convertToUnsignedByte().
391 (readUnsignedShort): Use convertToUnsignedShort().
392 (readUTF): Use convertToUTF().
394 (convertToBoolean): Resurrected.
395 (convertToByte): Ditto.
396 (convertToChar): Ditto.
397 (convertToInt): Ditto.
398 (convertToLong): Ditto.
399 (convertToShort): Ditto.
400 (convertToUnsignedByte): Ditto.
401 (convertToUnsignedShort): Ditto.
402 (convertToUTF): Ditto.
404 2001-02-17 Mark Wielaard <mark@klomp.org>
408 2001-02-17 Mark Wielaard <mark@klomp.org>
410 * java/io/DataInputStream.java: update copyright notice
411 * java/io/PrintWriter.java: idem
412 * java/io/Reader.java: idem
413 * java/io/StreamTokenizer.java: idem
414 * java/io/StringReader.java: idem
415 * java/lang/reflect/ReflectPermission.java: idem
417 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
419 * java/util/TreeSet.java (clone): Made subclass safe, use
420 super.clone(), not new.
421 * java/util/TreeMap.java (clone): Likewise.
423 * java/util/TreeMap.java (nil): Made non-final.
424 (clone): Create new nil node for copy.
426 * java/util/HashSet.java (clone): Made subclass safe, use
427 super.clone(), not new.
429 2001-02-14 Andrew Haley <aph@redhat.com>
431 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
434 2001-02-15 Anthony Green <green@redhat.com>
436 * defineclass.cc: Don't include alloca.h.
437 (prepare_pool_entry): Convert alloca to __builtin_alloca.
438 * interpret.cc (run_normal): Ditto.
440 * java/lang/natDouble.cc (parseDouble): Ditto.
442 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
444 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
446 * java/util/Collections.java (ReverseComparator): New static class.
447 (reverseOrder): Return static instance of ReverseComparator.
449 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
450 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
451 Rectangle.clone(), not Object.clone().
453 * java/util/HashSet.java (clone): Remove try/catch.
455 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
456 * java/util/Collection.java: Likewise.
457 * java/util/Comparator.java: Likewise.
458 * java/util/Dictionary.java: Likewise.
459 * java/util/Iterator.java: Likewise.
460 * java/util/ListIterator.java: Likewise.
461 * java/util/Map.java: Likewise.
462 * java/util/Set.java: Likewise.
464 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
466 * java/util/TreeMap.java: New file.
467 * java/util/TreeSet.java: New file.
468 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
469 * Makefile.in: Rebuilt.
470 * java/util/HashSet.java (clone): Use constructor instead of calling
472 * java/util/SortedSet.java: Sync with classpath.
473 * java/util/HashMap.java (hash): Use if statement instead of ternary,
476 * java/lang/natClass.cc (getSignature): Don't try to dereference
477 param_types if it is null. Instead, take this to mean "no parameters".
478 * java/lang/TreeMap.java (TreeIterator.next): Throw
479 NoSuchElementException in preference to ConcurrentModificationException.
480 (TreeIterator.remove): Throw IllegalStateException in preference to
481 ConcurrentModificationException.
482 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
483 throw a NoSuchElementException.
484 (SubMap.lastKey): Likewise.
486 2001-02-13 Tom Tromey <tromey@redhat.com>
488 * java/io/PipedReader.java (ready): Throw IOException if pipe
490 * java/io/FilterReader.java (close): Don't clear `in'.
491 * java/io/CharArrayReader.java (mark): Throw IOException if stream
493 (read, ready, reset, skip): Added exception message.
494 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
495 Perform checkStatus check inside synchronized block.
497 2001-02-13 Tom Tromey <tromey@redhat.com>
499 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
501 2001-02-13 Tom Tromey <tromey@redhat.com>
503 Fix for PR libgcj/1351:
504 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
506 Include Thread.h and InterruptedIOException.h.
508 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
510 * java/io/BlockDataException.java: Removed.
511 * java/io/ObjectInputStream.java (readObject): Throw
512 StreamCorruptedException, not BlockDataException.
513 * Makefile.am: Remove BlockDataException.
514 * Makefile.in: Rebuild.
516 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
517 Tom Tromey <tromey@redhat.com>
519 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
522 2001-02-09 Tom Tromey <tromey@redhat.com>
524 * java/util/Timer.java: New version from Classpath.
526 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
528 * java/lang/Double.java (doubleToRawLongBits): Now native.
529 * java/lang/Float.java (floatToRawIntBits): Likewise.
530 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
531 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
533 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
535 * java/io/File.java (java.net): Imported.
536 (getAbsoluteFile): Added.
537 (getCanonicalPath): Likewise.
540 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
542 * java/lang/Byte.java: Remove redundant instanceof and null checks.
543 * java/lang/Integer.java: Likewise.
544 * java/lang/Long.java: Likewise.
545 * java/lang/Short.java: Likewise.
546 * java/lang/Double.java: Likewise.
547 (doubleToRawLongBits): New method.
548 * java/lang/Float.java: As above.
549 (floatToRawIntBits): New method.
551 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
552 IOException if stream closed.
554 2001-02-08 Tom Tromey <tromey@redhat.com>
556 * java/lang/Float.java (parseFloat): New method.
558 2001-02-08 Tom Tromey <tromey@redhat.com>
560 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
561 * java/io/InputStreamReader.java (ready, read): Throw IOException
562 if stream has been closed.
564 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
566 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
567 Change sources.redhat.com and sourceware.cygnus.com references to
570 2001-02-07 Tom Tromey <tromey@redhat.com>
572 Fix for PR libgcj/1906:
573 * java/text/MessageFormat.java (setLocale): Use named class
576 (format(Object,StringBuffer,FieldPosition)): Special case if
577 argument is an Object[].
579 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
581 * java/util/Arrays.java: Removed "cmp" methods.
582 (qsort): Don't use "cmp".
585 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
587 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
588 sort. Fix for PR java/1895.
590 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
592 * configure.host: Use sjlj-exceptions for Alpha.
594 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
596 * libgcj.spec.in: Don't force static libgcc into the executable.
597 * configure.in (FORCELIBGCCSPEC): Removed.
598 * configure: Rebuilt.
600 2001-01-31 Tom Tromey <tromey@redhat.com>
602 * Makefile.in: Rebuilt.
603 * Makefile.am (LTCXXCOMPILE): New macro.
605 2001-01-26 Andrew Haley <aph@redhat.com>
607 (INIT_FPE): Use a direct system call to set the handler.
609 2001-01-27 Richard Henderson <rth@redhat.com>
611 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
613 2001-01-27 Tom Tromey <tromey@redhat.com>
615 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
616 native interface structure.
618 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
620 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
622 (read (byte[], int, int)): Only call readNextBlock() if the block
623 buffer would actually be overrun. Increment blockDataPosition.
624 (callReadMethod): Propagate exceptions from invocation target.
625 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
626 exceptions from invocation target.
628 2001-01-26 Tom Tromey <tromey@redhat.com>
630 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
631 to internal representation.
632 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
633 _Jv_FindClassFromSignature.
635 2001-01-26 Warren Levy <warrenl@redhat.com>
637 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
638 and timezone if they are available on the system.
640 2001-01-24 Tom Tromey <tromey@redhat.com>
642 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
644 2001-01-24 Tom Tromey <tromey@redhat.com>
646 * Makefile.in: Rebuilt.
647 * Makefile.am (c_source_files): Added sf_fabs.c.
648 * java/lang/sf_fabs.c: New file.
650 2001-01-19 Warren Levy <warrenl@redhat.com>
652 * java/text/SimpleDateFormat.java (format): Compute hour for cases
653 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
654 correctly. Adjust properly from 0-23 clock hour.
656 2001-01-17 Mark Wielaard <mark@klomp.org>
658 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
660 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
662 * java/lang/Class.h (isInterface): Move implementation from
663 natClass.cc. Declare inline.
664 (Class): Add default constructor.
665 * java/lang/Object.h: Update comments.
666 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
667 initialize superclass, saving a call if super is already initialized.
669 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
671 * prims.cc (init_prim_class): Deleted.
672 (DECLARE_PRIM_TYPE): Rewritten.
673 * java/lang/Class.h (stdio.h): Include removed.
674 (stddef.h): Included.
675 (java/lang/reflect/Modifier.h): Likewise.
676 (Class): Contructor now takes arguments, initializes fields.
677 (initializePrim): Prototype deleted.
678 * java/lang/natClass.cc (initializePrim): Deleted.
680 2001-01-16 Warren Levy <warrenl@redhat.com>
682 * java/math/BigInteger.java: Update Copyright year.
684 2001-01-16 Hans Boehm <hans_boehm@hp.com>
686 * java/math/BigInteger.java (setShiftRight): Only do negative shift
689 2001-01-14 Mark Wielaard <mark@klomp.org>
690 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
691 (decode): Merge comments with Classpath, don't throw Exception
693 2001-01-12 Tom Tromey <tromey@redhat.com>
695 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
699 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
700 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
701 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
702 * gnu/awt/gtk/GtkLabelPeer.java: New file.
703 * gnu/awt/gtk/GtkButtonPeer.java: New file.
705 * java/lang/natSystem.cc: Include locale.h if it exists.
706 * configure: Rebuilt.
707 * configure.in: Check for locale.h.
709 2001-01-11 Tom Tromey <tromey@redhat.com>
711 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
712 (Cursor(int), getPredefinedCursor): Throw exception if argument
715 2001-01-03 Tom Tromey <tromey@redhat.com>
717 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
718 (getLocationOnScreen): Wrote.
720 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
722 * Makefile.am: Re-enable dependencies.
723 * Makefile.in: Rebuilt.
725 2001-01-10 Warren Levy <warrenl@redhat.com>
727 * java/math/BigDecimal.java (divide): Fixed comment.
729 2001-01-10 Warren Levy <warrenl@redhat.com>
731 Fix for PR libgcj/1596:
732 * java/math/BigDecimal.java (divide): Check newScale for validity.
733 Ensure that BigInteger.pow() is called with a non-negative value.
734 (setScale (int)): New public method.
735 (setScale (int,int)): New public method.
737 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
739 Fix for PR libgcj/1338:
740 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
741 commentChar. Fixed typos in comments.
743 2001-01-08 Warren Levy <warrenl@redhat.com>
745 Fix for PR libgcj/1411:
746 * Makefile.am: Removed java/util/natTimeZone.cc.
747 * Makefile.in: Rebuilt.
748 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
749 missing localized timezone names.
750 * java/lang/System.java (getDefaultTimeZoneId): New private method.
751 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
752 (init_properties): Set user.timezone property.
753 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
754 default timezone names; removed non-standard ones. Use standard
756 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
758 * java/util/TimeZone.java: Add standard ID names per JCL; removed
760 (getDefaultTimeZoneId): Removed.
762 * java/util/natTimeZone.cc: Removed.
764 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
766 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
767 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
768 (_Jv_GetArrayClass): New inline function.
769 (arrayclass): New field.
770 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
771 _Jv_GetArrayElementFromElementType.
772 (_Jv_NewPrimArray): Ditto.
773 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
774 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
775 Set Modifier::ABSTRACT.
776 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
777 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
778 Now synchronized. Array classes are now referenced from
779 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
780 Set array classes' accessibility flags correctly. Optimize so that
781 all array classes share the same IDT.
782 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
783 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
784 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
785 in superclasses from overwriting classes own fields.
786 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
787 Modifier::isAbstract().
788 (null_idt): New static field.
789 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
791 (_Jv_IndexOf): Made inline.
792 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
794 2001-01-08 Tom Tromey <tromey@redhat.com>
796 Fix for PR java/1586:
797 * Makefile.in: Rebuilt.
798 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
800 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
802 * Makefile.am: Use the new "-M -MF" option for generating dependencies
803 from the c++ compiler.
804 * Makefile.in: Rebuilt.
806 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
808 All files with updated copyright.
809 * prims.cc (class _Jv_PrimClass): Removed.
810 (init_prim_class): New function.
811 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
812 `_Jv_PrimClass' in primitive type declarations. Assign to the
813 value returned by `init_prim_class.'
814 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
815 primitive type declarations.
816 (JvPrimClass): Cast to `jclass' removed.
817 * java/lang/Class.h (Class): New constructor.
818 (Class): New copy constructor.
819 (initializePrim): New prototype.
820 (_Jv_PrimClass): Field removed.
821 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
822 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
823 (class java::lang::Object): `finalize' moved up front.
824 * java/lang/natClass.cc
825 (isAssignableFrom): Turned outline.
826 (isInstance): Likewise.
827 (isInterface): Likewise, fixed indentation.
828 (initializePrim): New function.
830 2001-01-07 Anthony Green <green@redhat.com>
832 * Makefile.am (texinfo): Add texinfo target for generating texinfo
834 * Makefile.in: Rebuilt.
836 * scripts/TexinfoDoclet.java: New file.
838 * doc/java-applet.texi, doc/java-lang-reflect.texi,
839 doc/java-awt-color.texi, doc/java-lang.texi,
840 doc/java-awt-datatransfer.texi, doc/java-math.texi,
841 doc/java-awt-event.texi, doc/java-net.texi,
842 doc/java-awt-geom.texi, doc/java-security-spec.texi,
843 doc/java-awt-image.texi, doc/java-security.texi,
844 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
845 doc/java-text.texi, doc/java-beans-beancontext.texi,
846 doc/java-util-jar.texi, doc/java-beans.texi,
847 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
848 doc/java-lang-ref.texi: New files.
850 2001-01-07 Anthony Green <green@redhat.com>
852 * java/net/URLConnection.java (setDoOutput): URLConnection's may
853 be used for both input and output, so don't clear doInput.
855 * java/lang/StringBuffer.java: Fix comments.
857 2001-01-06 Anthony Green <green@redhat.com>
859 * java/beans/PropertyDescriptor.java: Fix comment.
860 * java/io/PushbackReader.java: Fix comment.
861 * java/io/ObjectStreamClass.java: Fix comment.
862 * java/io/DataInputStream.java: Fix comment.
863 * java/io/PipedInputStream.java: Fix comments.
864 * java/io/PipedReader.java: Fix comments.
865 * java/sql/DatabaseMetaData.java: Fix comments.
867 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
869 * java/io/PipedReader: Synchronize on "lock" instead of this.
871 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
873 * java/lang/Thread.java: Update comment.
875 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
876 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
877 * java/io/PipedReader: New implementation based on new
879 * java/io/PipedWriter: Updated to match new PipedReader.
881 2001-01-03 Tom Tromey <tromey@redhat.com>
883 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
884 (getViewportSize): Insets include scrollbar size.
885 (doLayout): Finished.
886 (getScrollPosition): Wrote.
887 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
889 2001-01-02 Tom Tromey <tromey@redhat.com>
891 * java/awt/ScrollPane.java: Wrote.
892 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
895 * java/awt/Panel.java (Panel()): Fixed.
897 * java/awt/Component.java (isShowing): Return false if no peer
898 exists, and true if component is visible and no parent exists.
899 (getLocationOnScreen): Wrote.
900 (getPreferredSize): Removed FIXME comment.
901 (getMinimumSize): Likewise.
902 (getAlignmentX, getAlignmentY): Wrote.
904 (requestFocus): Wrote.
905 (transferFocus): Wrote.
906 (findNextFocusComponent): New method.
909 (enableEvents): Call setEventMask on the peer.
911 * java/awt/Container.java (list): Use super.list() to print self.
912 (findNextFocusComponent): New method.
913 (setLayout): Call invalidate.
914 (findComponentAt): Wrote.
916 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
918 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
919 the correct versions of various linuxthreads functions get linked.
920 * Makefile.in: Rebuilt.
921 * java/lang/natThread.cc (finalize_native): New static function. Call
922 _Jv_ThreadDestroyData.
923 (initialize_native): Register finalizer for "data".
924 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
925 (_Jv_ThreadDestroyData): New prototype.
926 * include/win32-threads.h: Ditto.
927 * include/no-threads.h: Ditto.
928 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
929 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
930 move mutex and condition variable destroy code from:
931 (really_start): ...here.
932 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
933 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
934 (_Jv_ThreadDestroyData): Implemented.
935 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
936 (_Jv_AllocArray): Ditto.
938 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
940 * java/sql/DriverManager.java (getConnection): Don't set user/password
943 2000-12-27 Warren Levy <warrenl@redhat.com>
945 Fix for PR libgcj/1358:
946 * java/lang/System.java: Update Copyright date properly.
947 * java/util/Calendar.java: Fix typo in comment.
948 (set): Set 24-hour clock hour instead of 12-hour clock hour.
949 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
950 initialize times. Spec says to set H:M:S values to zero only if
952 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
953 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
954 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
955 timezones and GMT offsets, being careful to account for units of
956 milliseconds vs. seconds.
958 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
960 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
961 not be assigned to Object.
963 Fix for PR libgcj/1516:
964 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
966 (can_widen): Declared inline. Remove redundant checks for void
967 arguments and char->short conversion. Add special case for boolean
969 (ffi_type): Declared inline.
970 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
972 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
974 * java/sql/SQLWarning.java: Fixed typo in comment.
976 2000-12-26 Tom Tromey <tromey@redhat.com>
978 * java/awt/MenuItem.java (paramString): Now protected.
980 * java/awt/MenuShortcut.java: Implements Serializable.
982 * java/awt/MenuBar.java: Rewrote from scratch.
984 * java/awt/MenuComponent.java (removeNotify): Wrote.
985 Implements Serializable.
987 * java/awt/GridBagConstraints.java (GridBagConstraints): New
990 * java/awt/CheckboxMenuItem.java: Wrote.
992 2000-12-25 Tom Tromey <tromey@redhat.com>
994 * java/awt/MenuContainer.java: Fixed typo.
996 * Makefile.in: Rebuilt.
997 * Makefile.am (awt_java_source_files): Added SystemColor.java.
998 * java/awt/SystemColor.java: New file.
1000 * java/awt/Color.java (rgba): Now package-private.
1002 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1004 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1007 * java/awt/MenuItem.java (addNotify): New method.
1008 (MenuItem(String,MenuShortcut)): New constructor.
1009 (setLabel): Notify peer of change.
1010 (setEnabled): Likewise.
1012 * java/awt/GridLayout.java (toString): New method.
1014 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1015 (FlowLayout): Check for LEADING and TRAILING.
1016 (setAlignment): Likewise.
1017 (layoutContainer): Handle component orientation.
1019 * java/awt/Component.java (orientatin): New field.
1020 (setComponentOrientation): Wrote.
1021 (getComponentOrientation): Wrote.
1023 * java/awt/Event.java (Event): Implements Serializable.
1024 (consumed): New field for serialization.
1025 * java/awt/Dimension.java (Dimension): Implements Serializable.
1026 * java/awt/Cursor.java (Cursor): Implements Serializable.
1027 * java/awt/Container.java (Container): No longer abstract.
1029 * java/awt/Choice.java: Wrote.
1030 * java/awt/Checkbox.java: Wrote.
1031 * java/awt/ItemSelectable.java: Documented.
1032 * java/awt/CheckboxGroup.java: Wrote.
1034 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1036 (getSize): Likewise.
1038 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1040 * java/io/FileDescriptor.java: Initialize fd to -1.
1041 Remove default constructor.
1043 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1045 * java/lang/mprec.h: Change C9X reference to refer to C99.
1047 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1049 * java/lang/Throwable.java (trace_enabled): New static field.
1050 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1051 trace_enabled not set.
1052 * prims.cc (main_init): Turn off trace_enabled while creating
1053 default exception objects.
1055 2000-12-21 Tom Tromey <tromey@redhat.com>
1057 * java/beans/PropertyChangeListener.java: Extends EventListener.
1058 * java/beans/VetoableChangeListener.java: Extends EventListener.
1060 * java/util/zip/Deflater.java (update, init): Now private.
1062 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1064 * java/util/BasicMapEntry.java: Re-added.
1065 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1066 (putAll): Test for BasicMapEntry.
1067 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1068 (putAll): Test for BasicMapEntry.
1069 Change references from `HashMap.Entry' to `Entry' in various places.
1070 * Makefile.am: Add BasicMapEntry.java.
1071 * Makefile.in: Rebuilt.
1073 2000-12-18 Warren Levy <warrenl@redhat.com>
1075 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1076 need to set timezone to a valid non-null value. Partial fix for
1079 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1081 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1083 * java/awt/Button.java (addNotify): Likewise.
1084 * java/awt/Label.java (addNotify): Likewise.
1085 * java/awt/Panel.java (addNotify): Likewise.
1086 * java/awt/Scrollbar.java (addNotify): Likewise.
1087 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1088 Remove redundant null checks.
1090 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1092 * COPYING: Update to current
1093 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1094 to 19yy as example year in copyright notice).
1096 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1098 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1099 end-of-stream if avail_in is 0.
1101 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1103 * java/util/ArrayList.java (data): Declare transient.
1104 (serialPersistantFields): Removed.
1105 (readObject): Use defaultReadObject(), not readFields().
1106 (writeObject): Use defaultWriteObject(), not writeFields().
1108 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1110 * java/util/Hashtable.java (put): Remove `last' variable.
1111 Link new entry to head of list.
1112 * java/util/HashMap.java (put): Ditto.
1114 2000-12-15 Tom Tromey <tromey@redhat.com>
1116 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1117 loader to Class.forName.
1119 2000-12-14 Tom Tromey <tromey@redhat.com>
1121 * java/util/ResourceBundle.java
1122 (getBundle(String,Locale,ClassLoader)): New method.
1123 (trySomeGetBundle): Added `loader' argument.
1124 (partialGetBundle): Likewise.
1126 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1127 maximumFractionDigits, maximumIntegerDigits,
1128 minimumFractionDigits, minimumIntegerDigits): Now
1131 * java/lang/Thread.java (checkAccess): Now final.
1133 * java/lang/RuntimePermission.java: Class now final.
1135 * java/io/StringWriter.java (StringWriter(int)): Now public.
1137 * java/io/SerializablePermission.java (legal_names): Now private.
1139 * java/lang/Character.java: Updated UnicodeBlock constants.
1140 * scripts/blocks.pl: Special case private use and surrogate
1143 2000-12-12 Tom Tromey <tromey@redhat.com>
1145 * Makefile.in: Rebuilt.
1146 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1148 (GCJCOMPILE): Use it.
1151 2000-12-11 Tom Tromey <tromey@redhat.com>
1153 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1154 New static final fields.
1156 * scripts/classes.pl (scan): Skip lines with leading `*'.
1157 Fix for PR libgcj/378.
1159 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1161 * configure.in: Remove check for -fuse-divide-subroutine.
1162 * configure: Rebuilt.
1164 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1166 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1168 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1170 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1171 Remove BasicMapEntry.java and Bucket.java.
1172 * Makefile.in: Rebuilt.
1173 * java/util/HashMap.java: Rewritten.
1174 * java/util/HashSet.java: Imported from classpath.
1175 * java/util/WeakHashMap.java: Imported from classpath.
1176 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1177 * java/util/Bucket.java: Deleted.
1178 * java/util/BasicMapEntry.java: Deleted.
1179 * java/util/Collections.java (search): Use a for-loop, not iterator
1181 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1182 of elements in source.
1183 (max): Use a for-loop.
1185 (reverse): Keep track of positions instead of using Iterator's
1186 nextIndex() and previousIndex().
1187 (shuffle(List)): Initialize defaultRandom if required using
1188 double-check thread safety idiom. Call two-argument shuffle method
1189 using defaultRandom.
1190 (defaultRandom): New field.
1191 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1192 using previousIndex() and nextIndex().
1193 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1194 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1195 * java/util/AbstractMap.java (toString): Use StringBuffer.
1196 * java/lang/ref/PhantomReference.java: Imported from classpath.
1197 * java/lang/ref/SoftReference.java: Ditto.
1198 * java/lang/ref/Reference.java: Ditto.
1199 * java/lang/ref/WeakReference.java: Ditto.
1200 * java/lang/ref/ReferenceQueue.java: Ditto.
1202 2000-12-10 Richard Henderson <rth@redhat.com>
1204 * configure.host: Recognize alpha*-*, not alphaev6-*.
1206 2000-12-09 Anthony Green <green@redhat.com>
1208 * configure.host: Enable interpreter for Alpha.
1210 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1212 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1213 (ZIP): Points at fastjar instead of zip.
1214 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1215 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1216 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1217 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1218 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1219 ($(x_java_source_files:.java=.class):): Likewise.
1220 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1222 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1223 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1224 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1225 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1226 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1227 gnu/gcj/runtime/VMClassLoader.h:,
1228 java/io/ObjectInputStream$$GetField.h:,
1229 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1230 (Makefile.in): Rebuilt.
1232 2000-12-08 Tom Tromey <tromey@redhat.com>
1235 * configure: Rebuilt.
1236 * configure.in: Use echo, not `:', to create .d files.
1238 2000-12-08 Warren Levy <warrenl@redhat.com>
1240 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1241 NullPointerException so proper check of offset can be done.
1243 2000-12-08 Warren Levy <warrenl@redhat.com>
1245 * java/io/FileInputStream.java (close): Check if the fd is valid.
1246 * java/io/RandomAccessFile.java (close): Ditto.
1247 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1248 * java/net/PlainSocketImpl.java (close): Ditto.
1250 2000-12-06 Tom Tromey <tromey@redhat.com>
1252 * java/awt/GridBagConstraints.java: Filled in values for static
1255 * java/util/BitSet.java: Updated copyright notice.
1257 * Makefile.in: Rebuilt.
1258 * Makefile.am (awt_java_source_files): Added new file.
1259 * java/awt/GridBagConstraints.java: New file.
1261 2000-12-05 Tom Tromey <tromey@redhat.com>
1263 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1264 Now package-private, not protected.
1265 * java/text/DateFormatSymbols.java (equals): Now private.
1266 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1267 * java/util/BitSet.java: Class no longer final.
1269 2000-12-04 Warren Levy <warrenl@redhat.com>
1271 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1272 out code dependent on compiler and library changes.
1274 2000-12-04 Warren Levy <warrenl@redhat.com>
1276 * java/io/FilePermission.java: Made class final per spec.
1277 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1278 method name to match spec (fixed typo).
1279 * java/util/LinkedList.java: Implements List.
1281 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1283 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1284 Edgar Villanueva <edgarvil@home.com>.
1286 2000-12-03 Tom Tromey <tromey@redhat.com>
1288 * java/awt/geom/Point2D.java: Added protected constructor.
1289 (equals): New method.
1290 (Float.setLocation(float,float)): New method.
1291 * java/awt/geom/Dimension2D.java: Added protected constructor.
1292 * java/awt/geom/AffineTransform.java: Made all constants public.
1293 (concatenate): Fixed typo in name.
1294 * java/awt/event/WindowAdapter.java: Class now abstract.
1295 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1296 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1299 * java/awt/AWTError.java: Extend Error, not
1300 IllegalStateException.
1302 * Makefile.in: Rebuilt.
1303 * Makefile.am (awt_java_source_files): Added new file.
1304 * java/awt/geom/RoundRectangle2D.java: New file.
1306 * Makefile.in: Rebuilt.
1307 * Makefile.am (awt_java_source_files): Added new file.
1308 * java/awt/FlowLayout.java: New file.
1310 * Makefile.in: Rebuilt.
1311 * Makefile.am (awt_java_source_files): Added new file.
1312 * java/awt/GridLayout.java: New file.
1314 2000-12-02 Tom Tromey <tromey@redhat.com>
1316 * Makefile.in: Rebuilt.
1317 * Makefile.am (awt_java_source_files): Added new files.
1318 * java/awt/CardLayout.java: New file.
1319 * java/awt/AWTPermission.java: New file.
1321 2000-12-01 Tom Tromey <tromey@redhat.com>
1323 * java/util/Vector.java (insertElementAt): Unconditionally
1324 increment elementCount.
1325 (removeRange): Clear unused slots in vector.
1327 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1329 * java/lang/natMath.cc: Declare fabsf() function.
1330 * java/lang/mprec.h: Don't include math.h.
1331 * java/lang/dtoa.c: Include string.h.
1332 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1335 From Adam Welc <welc@cs.purdue.edu>:
1336 * java/util/LinkedList.java (removeFirst): Update `first' field.
1337 Handle the last == first case.
1338 (removeLast): Update `last' field. Handle the last == first case.
1340 2000-12-01 Warren Levy <warrenl@cygnus.com>
1342 * Makefile.am: Added entries for new java.sql modules.
1343 * Makefile.in: Rebuilt.
1345 2000-12-01 Warren Levy <warrenl@cygnus.com>
1347 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1348 that aren't quite 1.2 compatible yet.
1350 2000-11-30 Warren Levy <warrenl@cygnus.com>
1352 * java/sql/Array.java: New file from classpath.
1353 * java/sql/BatchUpdateException.java: Ditto.
1354 * java/sql/Blob.java: Ditto.
1355 * java/sql/Clob.java: Ditto.
1356 * java/sql/Ref.java: Ditto.
1357 * java/sql/SQLData.java: Ditto.
1358 * java/sql/SQLInput.java: Ditto.
1359 * java/sql/SQLOutput.java: Ditto.
1360 * java/sql/Struct.java: Ditto.
1361 * java/sql/CallableStatement.java: Merged file from claspath.
1362 * java/sql/Connection.java: Ditto.
1363 * java/sql/DataTruncation.java: Ditto.
1364 * java/sql/DatabaseMetaData.java: Ditto.
1365 * java/sql/DriverManager.java: Ditto.
1366 * java/sql/PreparedStatement.java: Ditto.
1367 * java/sql/ResultSet.java: Ditto.
1368 * java/sql/ResultSetMetaData.java: Ditto.
1369 * java/sql/SQLException.java: Ditto.
1370 * java/sql/SQLWarning.java: Ditto.
1371 * java/sql/Statement.java: Ditto.
1372 * java/sql/Types.java: Ditto.
1374 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1376 * java/lang/natSystem.cc (init_properties): Set user.language and
1378 * configure.in: Check for setlocale.
1379 * configure: Rebuilt.
1380 * include/config.h.in: Rebuilt.
1382 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1383 the infate() call didn't deliver any output. Throw a ZipException if
1384 the needsDictionary() call returns true.
1385 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1386 * java/io/InputStreamReader: Use the default buffer size for the
1387 contained BufferedInputStream.
1389 2000-11-28 Warren Levy <warrenl@cygnus.com>
1391 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1392 more time zone entries.
1393 * java/text/SimpleDateFormat.java (format): Added case for
1396 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1398 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1399 directly rather than read() in all cases. Make primitive read
1400 implementations more efficient, as defined in JDK online docs.
1401 (skipBytes): Behave like the JDK's implementation.
1402 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1403 closed stream with checkStatus() whenever an IOException can be
1405 (checkStatus): New private method.
1407 2000-11-27 Warren Levy <warrenl@cygnus.com>
1409 * Makefile.am: Added natTimeZone.cc.
1410 * Makefile.in: Rebuilt.
1411 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1412 * java/text/DateFormatSymbols.java (ampms): Made package private.
1413 (eras): Made package private.
1414 (months): Made package private.
1415 (shortMonths): Made package private.
1416 (shortWeekdays): Made package private.
1417 (weekdays): Made package private.
1418 (formatPrefixes): New private field.
1419 (localPatternCharsDefault): Made private.
1420 (dateFormats): New package private field.
1421 (timeFormats): New package private field.
1422 (formatsForKey): New private method.
1423 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1424 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1425 * java/text/SimpleDateFormat.java: Merged with Classpath.
1426 * java/util/TimeZone.java: Merged with Classpath.
1427 * java/util/natTimeZone.cc: New file.
1429 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1431 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1432 (addElement): Don't increment elementCount twice. Doh.
1433 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1434 array needs to be expanded.
1436 * java/util/Collections.java (UnmodifiableCollection): Implement
1438 (UnmodifiableList): Throw UnsupportedOperationException from
1439 modification methods. Set `l' from the one-parameter constructor.
1440 (UnmodifiableMap): Implement toString().
1441 (SynchronizedCollection): Ditto.
1442 (SynchronizedList): Set `l' from the one-parameter constructor.
1443 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1444 (SynchronizedMap): Implement toString().
1446 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1448 * javax/naming/NameParser.java,
1449 javax/naming/directory/AttributeInUseException.java,
1450 javax/naming/directory/AttributeModificationException.java,
1451 javax/naming/directory/InvalidAttributeIdentifierException.java,
1452 javax/naming/directory/InvalidAttributesException.java,
1453 javax/naming/directory/InvalidAttributeValueException.java,
1454 javax/naming/directory/InvalidSearchControlsException.java,
1455 javax/naming/directory/InvalidSearchFilterException.java,
1456 javax/naming/directory/NoSuchAttributeException.java,
1457 javax/naming/directory/SchemaViolationException.java: New files.
1459 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1461 * javax/naming/InitialContext.java (rebind): Implement.
1462 (unbind): Implement.
1463 (rename): Implement.
1465 (listBindings): Implement.
1466 (destroySubcontext): Implement.
1467 (createSubcontext): Implement.
1468 (lookupLink): Implement.
1469 (getNameParser): Implement.
1470 (composeName): Implement.
1471 (addToEnvironment): Implement.
1473 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1475 * javax/naming/AuthenticationException.java,
1476 javax/naming/AuthenticationNotSupportedException.java,
1477 javax/naming/CannotProceedException.java,
1478 javax/naming/CommunicationException.java,
1479 javax/naming/ConfigurationException.java,
1480 javax/naming/ContextNotEmptyException.java,
1481 javax/naming/InsufficientResourcesException.java,
1482 javax/naming/InterruptedNamingException.java,
1483 javax/naming/InvalidNameException.java,
1484 javax/naming/LimitExceededException.java,
1485 javax/naming/LinkException.java,
1486 javax/naming/LinkLoopException.java,
1487 javax/naming/MalformedLinkException.java,
1488 javax/naming/NameAlreadyBoundException.java,
1489 javax/naming/NameNotFoundException.java,
1490 javax/naming/NamingSecurityException.java,
1491 javax/naming/NoPermissionException.java,
1492 javax/naming/NotContextException.java,
1493 javax/naming/PartialResultException.java,
1494 javax/naming/ReferralException.java,
1495 javax/naming/ServiceUnavailableException.java,
1496 javax/naming/SizeLimitExceededException.java,
1497 javax/naming/TimeLimitExceededException.java: New files.
1499 * javax/naming/Name.java (clone): New method.
1500 (compareTo): New method.
1501 (isEmpty): New method.
1502 (getAll): New method.
1503 (getPrefix): New method.
1504 (getSuffix): New method.
1505 (startsWith): New method.
1506 (endsWith): New method.
1507 (addAll): New method.
1508 (addAll): New method.
1511 (remove): New method.
1513 * javax/naming/Context.java (lookup): New method.
1514 (rebind): New method.
1515 (unbind): New method.
1516 (rename): New method.
1518 (listBindings): New method.
1519 (destroySubcontext): New method.
1520 (createSubcontext): New method.
1521 (lookupLink): New method.
1522 (getNameParser): New method.
1523 (composeName): New method.
1524 (addToEnvironment): New method.
1525 (removeFromEnvironment): New method.
1526 (getEnvironment): New method.
1527 (close): New method.
1528 (getNameInNamespace): New method.
1530 * javax/naming/InitialContext.java (lookup): New method.
1531 (rebind): New method.
1532 (unbind): New method.
1533 (rename): New method.
1535 (listBindings): New method.
1536 (destroySubcontext): New method.
1537 (createSubcontext): New method.
1538 (lookupLink): New method.
1539 (getNameParser): New method.
1540 (composeName): New method.
1541 (addToEnvironment): New method.
1542 (removeFromEnvironment): New method.
1543 (getEnvironment): New method.
1544 (close): New method.
1545 (getNameInNamespace): New method.
1547 2000-11-26 Tom Tromey <tromey@cygnus.com>
1549 * Makefile.in: Rebuilt.
1550 * Makefile.am (core_java_source_files): Added
1551 RuntimePermission.java.
1552 * java/lang/RuntimePermission.java: Imported from Classpath.
1553 * java/lang/Thread.java (getContextClassLoader): Now
1554 synchronized. Added security code.
1555 (setContextClassLoader): Likewise.
1557 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1558 length field of array.
1559 (_Jv_NewPrimArray): Likewise.
1560 * gcj/array.h (__JArray): `length' field now const. Added
1563 2000-11-26 Anthony Green <green@redhat.com>
1565 * javax/naming/spi/NamingManager.java,
1566 javax/naming/spi/ObjectFactory.java,
1567 javax/naming/spi/InitialContextFactory.java,
1568 javax/naming/spi/InitialContextFactoryBuilder.java,
1569 javax/naming/RefAddr.java, javax/naming/Reference.java,
1570 javax/naming/NamingException.java, javax/naming/Context.java,
1571 javax/naming/Referenceable.java,
1572 javax/naming/directory/InitialDirContext.java,
1573 javax/naming/directory/DirContext.java,
1574 javax/naming/directory/Attributes.java,
1575 javax/naming/directory/Attribute.java,
1576 javax/naming/StringRefAddr.java,
1577 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1578 javax/naming/InitialContext.java,
1579 javax/naming/NoInitialContextException.java: New files.
1581 2000-11-25 Anthony Green <green@redhat.com>
1583 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1584 (_Jv_NewPrimArray): Likewise.
1585 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1586 (class JArray): Removed constructor.
1588 * java/lang/Thread.java (context_class_loader): New private data.
1589 (getContextClassLoader): New method.
1590 (setContextClassLoader): New method.
1591 (Thread): Initialize context_class_loader.
1593 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1594 (getResource): Rename to findResource.
1595 (findResource): New method. Used to be getResource.
1596 (getResourceAsStream): Deleted.
1597 (jarFileize): Extracted logic from URLClassLoader constructor into
1598 this new private method.
1599 (addURL): New protected method.
1600 (URLClassLoader): Call jarFileize. Use addElement instead of
1602 (findResources): New method.
1604 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1605 (getResource): Implement correct logic.
1606 (findResource): New method.
1607 (getResources): New method.
1608 (findClass): Create a ClassNotFoundException with the name of the
1609 class rather than nothing at all.
1610 (defineClass) Only throw ClassFormatError.
1612 * java/lang/Class.java (forName): New method.
1613 * java/lang/Class.h (forName): New method.
1614 * java/lang/natClass.cc (forName): New method.
1616 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1618 * java/lang/System.java (setProperties): Only call init_properties()
1619 if properties is null.
1620 (getProperties): Ditto.
1621 (getProperty): Ditto.
1622 (setProperty): Call init_properties if properties are null.
1623 (prop_init): Remove field.
1624 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1625 method. Check for null properties after synchronizing instead of
1626 prop_init flag. Set the properties field last for thread safety.
1628 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1629 test for gcj.dumpobjects property and enable object stream dumping
1631 (dumpElement): No longer native.
1632 (dumpElementln): Ditto.
1633 (setDump): Do not define.
1634 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1635 (dumpElementln): Removed.
1638 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1640 * configure: Rebuilt.
1641 * Makefile.in: Rebuilt.
1642 * Makefile.am (built_java_source_files): Add Configuration.java.
1643 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1644 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1645 Create `gnu' directory in the build tree.
1646 * gnu/classpath/Configuration.java.in: New file.
1648 2000-11-24 Tom Tromey <tromey@cygnus.com>
1650 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1652 (_Jv_NewPrimArray): Likewise.
1654 * gcj/array.h (__JArray): `length' field now const. Added
1656 (class JArray): Added constructor.
1658 2000-11-23 Mark Wielaard <mark@klomp.org>
1660 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1663 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1665 * java/util/Vector.java: Improve exception messages.
1666 (Vector): Check initialCapacity for IllegalArgumentException.
1667 (tromToSize): Don't check for elementCount == elementData.length
1669 (toArray): Don't try to set null marker if target array is the same
1670 length as the vector.
1672 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1674 * Makefile.in: Rebuilt.
1675 * Makefile.am (core_java_source_files): Added Collections.java.
1676 * java/util/List.java: Merged from classpath.
1677 * java/util/Vector.java: Ditto.
1678 * java/util/Collections.java: From classpath.
1679 * java/util/ArrayList.java (addAll(Collection)): Call
1680 addAll(int,Collection) instead of duplicating code.
1681 (indexOf): Clean up int initialization.
1682 (clear): Set cleared array entries to null, to allow garbage
1684 * java/util/List.java: Minor formatting fixes.
1685 * java/util/SimpleTimeZone.java: ditto.
1687 2000-11-18 Tom Tromey <tromey@cygnus.com>
1689 * Makefile.in: Rebuilt.
1690 * Makefile.am (core_java_source_files): Added new files.
1691 * java/lang/reflect/ReflectPermission.java: New class.
1692 * java/io/FileFilter.java: From Classpath
1693 * java/io/FilePermission.java: From Classpath.
1695 2000-11-17 Tom Tromey <tromey@cygnus.com>
1697 * java/lang/reflect/AccessibleObject.java (isAccessible,
1698 setAccessible): Now public.
1700 * java/lang/natString.cc: Include Locale.h.
1701 (toUpperCase): Added `locale' argument. Handle locale
1703 (toLowerCase): Added `locale' argument. Handle locale
1705 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1706 CAPITAL_I): New defines.
1707 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1710 (toUpperCase, toLowerCase): New methods. Variants which accept
1713 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1716 * java/util/PropertyPermission.java: Re-merged from Classpath.
1718 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1720 * java/text/StringCharacterIterator.java: Reindented.
1721 (setText): New method.
1723 2000-11-17 Mark Wielaard <mark@klomp.org>
1725 Merge with Classpath (changes by Bryce McKinlay)
1726 * java/util/jar/*.java: Reformat all to unofficial standard coding
1727 style. No changes of substance.
1729 2000-11-17 Mark Wielaard <mark@klomp.org>
1731 * java/util/zip/*.java: Javadoc updates.
1733 2000-11-17 Tom Tromey <tromey@cygnus.com>
1735 * java/text/CollationKey.java: Implement Comparable.
1736 (compareTo(Object)): New method.
1737 * java/text/Collator.java (compare(Object,Object)): New method.
1738 Implement Comparator.
1740 * java/util/zip/InflaterInputStream.java (available): New method.
1741 (close): New method.
1742 (read, available, skip, fill): Throw exception if stream closed.
1743 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1744 getNextEntry): Throw exception if closed.
1746 2000-11-16 Tom Tromey <tromey@cygnus.com>
1748 * java/io/PushbackReader.java: Merged with Classpath.
1749 * java/util/Arrays.java: Updated from Classpath.
1751 * scripts/blocks.pl: New file.
1752 * java/lang/Character.java (Subset): New class.
1753 (UnicodeBlock): New class.
1755 * java/lang/Math.java (toDegrees, toRadians): New methods.
1757 * java/lang/Float.java: Implement Comparable.
1758 (compareTo): New methods.
1759 * java/lang/Double.java: Implement Comparable.
1760 (compareTo): New methods.
1762 2000-11-16 Warren Levy <warrenl@cygnus.com>
1764 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1766 (listeners): Made transient.
1767 (source): Renamed from 'bean'.
1768 (children): New field for serialization.
1769 (propertyChangeSupportSerializedDataVersion): Ditto.
1770 (serialVersionUID): Ditto.
1771 (writeObject): New serialization method.
1772 (readObject): New serialization method.
1773 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1775 (listeners): Made transient.
1776 (source): Renamed from 'bean'.
1777 (children): New field for serialization.
1778 (vetoableChangeSupportSerializedDataVersion): Ditto.
1779 (serialVersionUID): Ditto.
1780 (writeObject): New serialization method.
1781 (readObject): New serialization method.
1782 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1783 to allow constructor to have a return type (i.e. the class that the
1784 constructor constructs).
1786 2000-11-14 Tom Tromey <tromey@cygnus.com>
1788 * Makefile.in: Rebuilt.
1789 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1792 2000-11-02 Warren Levy <warrenl@cygnus.com>
1794 * java/io/ObjectInputStream.java (readObject): Added code to
1795 conditionally dump out the serialized data.
1796 Handle ENDBLOCKDATA case a bit more gracefully since the current
1797 behavior doesn't seem to work as expected.
1798 (readStreamHeader): Added code for serialized data dumper.
1799 (readNextBlock): Ditto.
1800 (readFields): Ditto.
1801 (dump): New private static field for turning on/off dumper.
1802 (setDump): New native method.
1803 (dumpElement): New native method.
1804 (dumpElementln): New native method.
1805 * java/io/natObjectInputStream.cc (setDump): New method.
1806 (dumpElement): New method.
1807 (dumpElementln): New method.
1809 2000-11-02 Warren Levy <warrenl@cygnus.com>
1811 * java/net/InetAddress.java (addr): Renamed from 'address'.
1812 (address): New field to match Serialized Form doc.
1813 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1814 (family): New serialization field.
1815 (serialVersionUID): New field.
1816 (readObject): New method.
1817 (writeObject): New method.
1818 (getFamily): New native method.
1819 (InetAddress): Set family.
1820 * java/net/natInetAddress.cc (getFamily): New method.
1821 (addr): Renamed from 'address'.
1822 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1823 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1824 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1826 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1828 * java/util/AbstractList.java (SubList): Make it a top-level private
1830 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1832 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1833 * Makefile.in: Rebuilt.
1835 2000-11-02 Tom Tromey <tromey@cygnus.com>
1837 * Makefile.in: Rebuilt.
1838 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1841 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1843 * java/util/AbstractList.java (remove): Comment out modCount increment
1844 to work around compiler bug.
1847 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1849 * java/util/AbstractList.java: Throw messages with
1850 IndexOutOfBoundsExceptions.
1851 (listIterator()): Call listIterator(0).
1852 (size): New field. Initialize to size().
1853 (hasNext): Test position against size, not size().
1854 (remove): Increment knownMod by one instead of resetting it from
1857 (SubList.upMod): Removed.
1858 (SubList.set): Don't call upMod() or update knownMod.
1859 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1860 (SubList.remove): Ditto.
1861 (SubList.addAll): Don't call backingList.size(). Increment size from
1863 (SubList.iterator): New method. Call listIterator(0).
1864 (SubList.listIterator): New method. Restore code to return an anonymous
1865 listIterator implementation (with some changes).
1866 * java/util/AbstractSequentialList.java: Throw messages with
1867 IndexOutOfBoundsExceptions.
1868 (addAll): Add a specnote.
1869 * java/util/ArrayList.java (removeRange): Get the math right.
1870 (addAll): Increment modCount _before_ creating iterator.
1871 * java/util/LinkedList.java: Rewritten, mostly.
1873 2000-11-01 Tom Tromey <tromey@cygnus.com>
1875 * scripts/encodings.pl: Added `ASCII' alias.
1876 * Makefile.in: Rebuilt.
1877 * Makefile.am (convert_source_files): Added new files.
1878 * gnu/gcj/convert/Input_ASCII.java: New file.
1879 * gnu/gcj/convert/Output_ASCII.java: New file.
1880 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1881 out-of-range characters.
1882 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1883 (read): Swap bytes if required. Treat `count' as character count,
1885 (write): Likewise. Also, handle case where iconv fails on a given
1887 (init): Put encoding into exception.
1888 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1889 (static): Call iconv_init. Rebuilt alias list.
1890 (iconv_init): New private method.
1892 2000-11-01 Tom Tromey <tromey@cygnus.com>
1894 * Makefile.in: Rebuilt.
1895 * Makefile.am (install-exec-hook): Only make a single symlink, and
1896 remove the destination before making the link.
1897 * configure: Rebuilt.
1898 * configure.in: Call AC_PROG_LN_S.
1900 2000-10-31 Warren Levy <warrenl@cygnus.com>
1902 * jni.cc: Added include of java/lang/ThreadGroup.h.
1903 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1904 per change of 2000-10-05.
1906 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1908 * java/util/BitSet.java: Updated @specnote.
1910 * java/io/Reader.java: Merge docs from classpath.
1911 (skip): Synchronize on `lock'.
1912 * java/io/FileReader.java: Import correct implementation from
1914 * java/io/StringReader.java: Merge docs from classpath.
1915 (ready): Throw IOException if stream is closed.
1917 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1919 * java/util/AbstractCollection.java (addAll): Use size() instead of
1920 hasNext() in iterator loop.
1922 (contains): Ditto. Simplify loop.
1923 (containsAll): Ditto.
1928 (toString): Ditto. Use string concatenation operators, not
1930 * java/util/AbstractList.java (addAll): Use size() instead of
1931 hasNext() in iterator loop.
1934 (indexOf): Ditto. Don't take null check outside of the loop.
1935 (iterator): Return an AbstractListItr instead of anonymous class.
1936 (lastIndexOf): Use a for loop bounded by size() instead of
1937 hasPrevious() in iterator loop.
1938 (listIterator): Return an AbstractListItr.
1939 (removeRange): Remove bounds checking code and docs.
1940 (AbstractListItr): New inner class. Code moved here from
1942 (SubList.iterator): Removed. Use default implementation from
1943 AbstractList instead.
1944 (SubList.listIterator): As above.
1945 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1946 instead of hasNext() in iterator loop.
1947 (containsValue): Ditto.
1953 (toString): Ditto. Use string concatenation operators, not
1955 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1956 bounded by size() instead of hasNext() in iterator loop.
1957 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1958 part of normal execution flow. Do an explicit null check instead.
1959 * java/util/ArrayList.java (_iSize): Rename to `size'.
1960 (_arData): Rename to `data'.
1961 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1964 (removeRange): Make protected. Don't check bounds.
1965 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1967 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1969 (addAll (int, Collection)): Check lower bounds. Simplify exception
1971 (clone): Clone the data array too.
1972 (indexOf): Inline doesEqual().
1973 (lastIndexOf): Ditto.
1974 (clear): Don't set array data to null.
1975 (set): Check lower bounds. Simplify exception string.
1976 (toArray): Correct comment.
1977 (trimToSize): Don't update modCount, this is not a structural change.
1980 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1982 (toString): Declare `bit' as long, not int.
1983 (data): Made package-private, not private.
1985 2000-10-27 Warren Levy <warrenl@cygnus.com>
1987 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1988 array elements to true.
1990 2000-10-27 Warren Levy <warrenl@cygnus.com>
1992 * Makefile.am: Added locale files from Classpath.
1993 * Makefile.in: Rebuilt.
1994 * gnu/java/locale/Calendar.java: New file.
1995 * gnu/java/locale/Calendar_de.java: New file.
1996 * gnu/java/locale/Calendar_en.java: New file.
1997 * gnu/java/locale/Calendar_nl.java: New file.
1998 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1999 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2000 serialization compatibility.
2001 (scale): Made private.
2002 (serialVersionUID): New field.
2003 * java/math/BigInteger.java (ival): Made transient.
2004 (words): Made transient.
2005 (bitCount): New serialization field.
2007 (firstNonzeroByteNum): Ditto.
2008 (lowestSetBit): Ditto.
2011 (serialVersionUID): New field.
2012 (readObject): New method.
2013 (writeObject): New method.
2014 * java/util/BitSet.java (serialVersionUID): New field.
2015 * java/util/Calendar.java: Replaced with Classpath file.
2016 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2017 of getDefault() for TimeZone or Locale instead of passing nulls.
2018 * java/util/Locale.java (serialVersionUID): New field.
2019 (writeObject): New method.
2020 (readObject): New method.
2021 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2023 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2025 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2026 (core_java_source_files): Put java.lang, java.io, and java.util here.
2027 (ordinary_java_source_files): Order so that core_java_source_files are
2029 (java_source_files): Reorder so that special_java_source_files are
2031 * configure.in: Don't pass -I flag to gcj.
2032 * Makefile.in: Rebuilt.
2033 * configure: Rebuilt.
2035 2000-10-25 Tom Tromey <tromey@cygnus.com>
2037 * Makefile.in: Rebuilt.
2038 * Makefile.am (install-exec-hook): New target.
2040 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2042 * java/util/EventObject.java: Merged from classpath.
2044 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2047 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2049 * java/util/AbstractSet.java (equals): Re-installed original code.
2051 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2053 * Makefile.am: Added rules for libgcjx library.
2054 * Makefile.in: Rebuilt.
2055 * configure.in: Added check for X.
2056 * configure: Rebuilt.
2057 * gnu/awt/LightweightRedirector.java: New file.
2058 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2059 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2060 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2061 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2062 * gnu/awt/j2d/MappedRaster.java: New file.
2063 * gnu/awt/xlib/XCanvasPeer.java: New file.
2064 * gnu/awt/xlib/XEventLoop.java: New file.
2065 * gnu/awt/xlib/XEventQueue.java: New file.
2066 * gnu/awt/xlib/XFontMetrics.java: New file.
2067 * gnu/awt/xlib/XFramePeer.java: New file.
2068 * gnu/awt/xlib/XGraphics.java: New file.
2069 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2070 * gnu/awt/xlib/XPanelPeer.java: New file.
2071 * gnu/awt/xlib/XToolkit.java: New file.
2072 * gnu/gcj/xlib/Clip.java: New file.
2073 * gnu/gcj/xlib/Colormap.java: New file.
2074 * gnu/gcj/xlib/Display.java: New file.
2075 * gnu/gcj/xlib/Drawable.java: New file.
2076 * gnu/gcj/xlib/Font.java: New file.
2077 * gnu/gcj/xlib/GC.java: New file.
2078 * gnu/gcj/xlib/Pixmap.java: New file.
2079 * gnu/gcj/xlib/Screen.java: New file.
2080 * gnu/gcj/xlib/Visual.java: New file.
2081 * gnu/gcj/xlib/WMSizeHints.java: New file.
2082 * gnu/gcj/xlib/Window.java: New file.
2083 * gnu/gcj/xlib/WindowAttributes.java: New file.
2084 * gnu/gcj/xlib/XAnyEvent.java: New file.
2085 * gnu/gcj/xlib/XButtonEvent.java: New file.
2086 * gnu/gcj/xlib/XColor.java: New file.
2087 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2088 * gnu/gcj/xlib/XConnectException.java: New file.
2089 * gnu/gcj/xlib/XEvent.java: New file.
2090 * gnu/gcj/xlib/XException.java: New file.
2091 * gnu/gcj/xlib/XExposeEvent.java: New file.
2092 * gnu/gcj/xlib/XID.java: New file.
2093 * gnu/gcj/xlib/XImage.java: New file.
2094 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2095 * gnu/gcj/xlib/natClip.cc: New file.
2096 * gnu/gcj/xlib/natColormap.cc: New file.
2097 * gnu/gcj/xlib/natDisplay.cc: New file.
2098 * gnu/gcj/xlib/natDrawable.cc: New file.
2099 * gnu/gcj/xlib/natFont.cc: New file.
2100 * gnu/gcj/xlib/natGC.cc: New file.
2101 * gnu/gcj/xlib/natPixmap.cc: New file.
2102 * gnu/gcj/xlib/natScreen.cc: New file.
2103 * gnu/gcj/xlib/natVisual.cc: New file.
2104 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2105 * gnu/gcj/xlib/natWindow.cc: New file.
2106 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2107 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2108 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2109 * gnu/gcj/xlib/natXColor.cc: New file.
2110 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2111 * gnu/gcj/xlib/natXException.cc: New file.
2112 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2113 * gnu/gcj/xlib/natXImage.cc: New file.
2114 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2115 * java/awt/EventDispatchThread.java: Start thead on creation.
2117 2000-10-20 Tom Tromey <tromey@cygnus.com>
2119 From Arno J. Klaassen:
2120 * interpret.cc: Include <stdlib.h> for alloca.
2121 * defineclass.cc: Include <stdlib.h> for alloca.
2123 * Makefile.in: Rebuilt.
2124 * Makefile.am: Include deps.mk.
2125 (GCJCOMPILE): Added -MD, -MT, and -MF.
2126 ($(javao_files)): Don't depend on libgcj.zip.
2127 (all-recursive): New target.
2128 (%.lo:%.cc): Do dependency tracking.
2129 ($(nat_headers)): Don't depend on libgcj.zip.
2130 * configure: Rebuilt.
2131 * configure.in: Make .d files and deps.mk.
2133 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2135 * exception.cc: Don't #include "exception".
2136 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2138 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2139 * Makefile.in: Updated.
2141 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2143 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2144 * java/awt/peer/ComponentPeer.java (disable): Removed.
2147 (minimumSize): Removed.
2148 (preferredSize): Removed.
2151 * java/awt/peer/ListPeer.java (addItem): Removed.
2153 (minimumSize): Removed.
2154 (preferredSize): Removed.
2155 (setMultipleSelections): Removed.
2156 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2157 (remove): Renamed from removeMenu.
2158 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2160 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2161 (remove): Renamed from removeItem.
2162 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2163 (getMinimumSize): Removed.
2164 (getPreferredSize): Removed.
2165 (minimumSize): Removed.
2166 (preferredSize): Removed.
2167 (replaceText): Removed.
2168 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2169 (preferredSize): Removed.
2170 (getMinimumSize): Removed.
2171 (getPreferredSize): Removed.
2172 (setEchoCharacter): Removed.
2174 2000-10-10 Warren Levy <warrenl@cygnus.com>
2176 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2177 * java/sql/Date.java (serialVersionUID): New field.
2178 * java/sql/Time.java (serialVersionUID): New field.
2179 * java/sql/Timestamp.java (serialVersionUID): New field.
2180 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2181 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2182 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2183 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2184 (readObject): New serialization method.
2185 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2186 (serialVersionOnStream): New field.
2187 (readObject): New serialization method.
2188 (getMonetaryDecimalSeparator): New method.
2189 (setMonetaryDecimalSeparator): New method.
2190 * java/text/NumberFormat.java (maxFractionDigits): New field.
2191 (maxIntegerDigits): New field.
2192 (minFractionDigits): New field.
2193 (minIntegerDigits): New field.
2194 (serialVersionOnStream): New field.
2195 (serialVersionUID): New field.
2196 (readObject): New serialization method.
2197 (writeObject): New serialization method.
2198 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2199 (serialVersionOnStream): New field.
2200 (serialVersionUID): New field.
2201 (readObject): New serialization method.
2203 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2205 * configure.in (GCJ): Avoid bogus error message when looking for
2206 (and not finding) gcj in the build tree.
2207 * configure: Rebuilt.
2209 2000-10-09 Tom Tromey <tromey@cygnus.com>
2211 * configure: Rebuilt.
2212 * configure.in: Include sys/types.h when checking for socklen_t.
2213 From Arno J. Klaassen.
2215 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2217 * include/jvm.h: Enable __builtin_expect().
2219 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2220 the main program. Fix for PR libgcj/341.
2222 2000-10-07 Tom Tromey <tromey@cygnus.com>
2224 * java/util/Properties.java: Merged with Classpath version.
2226 2000-10-05 Tom Tromey <tromey@cygnus.com>
2228 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2229 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2230 * java/lang/Class.h (Object): Added `class$' field.
2231 * java/lang/Object.h (Object): Added `class$' field.
2232 * defineclass.cc (ClassClass): Use `class$' form.
2233 (ClassObject): Likewise.
2234 * resolve.cc (ClassObject): Use `class$' form.
2235 (ObjectClass): Likewise.
2236 * interpret.cc (ClassError): Removed.
2237 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2239 (IntegerClass): Likewise.
2240 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2242 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2243 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2244 SerializableClass): Likewise.
2245 Include Serializable.h, Cloneable.h.
2246 * java/lang/natSystem.cc (SystemClass): Removed.
2247 (init_properties): Use `class$' form.
2248 * java/lang/natObject.cc (CloneableClass): Removed.
2249 (clone): Use `class$' form.
2250 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2251 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2252 ConstructorClass): Likewise.
2253 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2254 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2255 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2256 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2258 (ClassClass): Likewise.
2259 * include/jvm.h (StringClass): Use `class$' form.
2260 * prims.cc (ObjectClass): Removed.
2261 (_Jv_RunMain): Use `class$' form.
2262 (_Jv_AllocObject): Likewise.
2263 * jni.cc (ClassClass): Use `class$' form.
2264 (ThrowableClass): Likewise.
2265 (ObjectClass): Likewise.
2266 (MethodClass): Likewise.
2267 (ThreadGroupClass): Likewise.
2268 (NativeThreadClass): Likewise.
2269 * boehm.cc (ObjectClass): Removed.
2270 (ClassClass): Removed.
2271 (_Jv_MarkObj): Use `class$' form.
2272 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2275 2000-10-05 Warren Levy <warrenl@cygnus.com>
2277 * Makefile.am: Removed java/io/Replaceable.java and
2278 java/io/Resolvable.java.
2279 * Makefile.in: Rebuilt.
2280 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2282 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2284 (processResolution): Handle readResolve method via reflection with
2285 removal of Resolvable interface.
2286 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2287 method via reflection with removal of Replaceable interface.
2288 * java/io/Replaceable.java: Removed.
2289 * java/io/Resolvable.java: Removed.
2290 * java/security/Key.java (serialVersionUID): New field.
2291 * java/security/Provider.java (serialVersionUID): New field.
2292 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2294 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2296 * java/sql/DataTruncation.java (serialVersionUID): New field.
2297 * java/sql/SQLException.java (serialVersionUID): New field.
2298 * java/sql/SQLWarning.java (serialVersionUID): New field.
2299 * java/util/Date.java (serialVersionUID): New field.
2300 (millis): Made transient.
2301 (readObject): New method.
2302 (writeObject): New method.
2304 2000-10-05 Tom Tromey <tromey@cygnus.com>
2306 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2308 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2310 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2311 (JvRunMain): Set _Jv_argv and _Jv_argc.
2312 * java/awt/Component.java: Minor fixes.
2313 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2314 * java/awt/Toolkit.java (systemEventQueue): Removed.
2315 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2316 * java/awt/Window.java (getToolkit): Don't call super.
2317 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2318 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2319 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2320 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2321 * gnu/awt/gtk/GtkFramePeer.java: New file.
2322 * gnu/awt/gtk/GtkMainThread.java: New file.
2323 * gnu/awt/gtk/GtkToolkit.java: New file.
2324 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2325 * gnu/awt/gtk/gtkcommon.cc: New file.
2326 * gnu/awt/gtk/gtkcommon.h: New file.
2327 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2328 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2329 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2330 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2331 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2332 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2334 2000-09-30 Tom Tromey <tromey@cygnus.com>
2336 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2337 interrupted before modifying the cv's wait set.
2340 2000-09-30 Hans Boehm <boehm@acm.org>
2341 Bryce McKinlay <bryce@albatross.co.nz>
2343 Implement bitmap descriptor based marking for Boehm GC.
2345 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2346 * configure: Rebuilt.
2347 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2348 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2349 method get_finalizer().
2350 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2351 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2352 (_Jv_AllocObj): Add new jclass parameter.
2353 (_Jv_AllocArray): Ditto.
2354 (_Jv_BuildGCDescr): New prototype.
2355 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2356 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2357 get_finalizer() instead of direct finalizer vtable offset.
2358 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2359 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2360 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2361 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2362 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2363 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2364 (_Jv_DetermineVTableIndex): Ditto.
2365 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2366 calculations to account for new gc_descr field.
2367 * boehm.cc: #include gc_gcj.h.
2368 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2369 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2370 New commentary from HB. Mark the classes vtable.
2371 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2372 (GC_DEFAULT_DESCR): New #define.
2373 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2374 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2375 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2376 scan conservativly if size is less than min_heap_addr. Set vtable
2377 pointer of new object before returning.
2378 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2379 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2380 allocation for obj_kind_x.
2381 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2382 (_Jv_AllocObj): Set vtable on returned object.
2383 (_Jv_AllocArray): Ditto.
2384 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2385 (_Jv_NewPrimArray): Ditto.
2386 (_Jv_AllocObj): Declare as a friend.
2387 (_Jv_AllocArray): Ditto.
2388 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2389 from &ObjectClass into new array class. Remove offset-by-one
2390 adjustments from `method' size calculations to account for gc_descr
2393 2000-09-26 Tom Tromey <tromey@cygnus.com>
2395 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2396 `remove', not `add'.
2398 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2400 * java/lang/natSystem.cc (file_encoding): Added return statement.
2402 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2404 * Makefile.am: Re-work shell commands that exceeded command-line
2406 * Makefile.in: Rebuilt.
2408 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2410 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2411 * java/lang/natDouble.cc: Likewise.
2412 * java/lang/reflect/natMethod.cc: Likewise.
2413 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2415 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2417 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2419 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2420 * acinclude.m4: Arrange for automake to not bring in a new
2421 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2422 * Makefile.am: Leave it up to automake to subst GCJ.
2423 * aclocal.m4, configure, Makefile.in: Rebuilt.
2425 2000-09-13 Tom Tromey <tromey@cygnus.com>
2427 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2428 (get): Ensure Boolean class is initialized.
2429 * java/lang/reflect/natField.cc (BooleanClass): New define.
2430 (get): Ensure Boolean class is initialized.
2432 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2434 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2435 Initialize with anonymous class.
2436 (compareToIgnoreCase): New method.
2438 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2439 (uncaughtException): Set had_uncaught_exception.
2440 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2441 exit with error status if set.
2442 (_Jv_RunMain): Ditto.
2444 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2446 * configure: Rebuilt with new ../libtool.m4.
2448 2000-09-11 Tom Tromey <tromey@cygnus.com>
2450 * java/lang/reflect/Field.java (toString): Don't rely on
2453 2000-09-08 Tom Tromey <tromey@cygnus.com>
2455 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2456 default decoder use iconv.
2457 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2458 Let default encoder use iconv.
2459 * configure: Rebuilt.
2460 * configure.in: Check for nl_langinfo and <langinfo.h>.
2461 * java/lang/natSystem.cc (file_encoding): New function.
2462 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2464 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2466 * acinclude.m4: Simplify the tests for CC and CXX.
2467 * aclocal.m4, configure: Rebuilt.
2469 * acinclude.m4: Include libtool macros from the source tree.
2470 * aclocal.m4, configure: Rebuilt.
2472 2000-09-08 Warren Levy <warrenl@cygnus.com>
2474 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2475 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2476 * java/io/File.java (writeObject): Added.
2477 (readObject): Added.
2478 (serialVersionUID): Added.
2479 * java/io/ObjectOutputStream.java (writeObject): Initialized
2480 fieldsAlreadyWritten before recursion rather than after.
2481 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2482 * java/io/OptionalDataException.java (serialVersionUID): Added.
2483 (OptionalDataException): Made package private.
2484 * java/io/SyncFailedException.java (SyncFailedException): Removed
2485 default constructor to match spec.
2486 * java/lang/Boolean.java (serialVersionUID): Added.
2487 * java/lang/Byte.java (serialVersionUID): Added.
2488 * java/lang/Character.java (serialVersionUID): Added.
2489 * java/lang/Double.java (serialVersionUID): Added.
2490 * java/lang/Float.java (serialVersionUID): Added.
2491 * java/lang/Integer.java (serialVersionUID): Added.
2492 * java/lang/Long.java (serialVersionUID): Added.
2493 * java/lang/Number.java (serialVersionUID): Added.
2494 * java/lang/Short.java (serialVersionUID): Added.
2495 * java/lang/String.java (serialVersionUID): Added.
2496 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2498 * java/lang/reflect/InvocationTargetException.java
2499 (serialVersionUID): Added.
2500 * java/net/URL.java (handler): Made transient.
2501 (hashCode): Added field for serialization, per spec. and use
2502 cached value if available.
2503 (serialVersionUID): Added.
2504 (URL): Initialize hashCode.
2505 (set): Adjust hashCode.
2506 (readObject): New Method to initialize the protocol handler when
2508 (writeObject): New method.
2509 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2510 * java/text/Collator.java: Removed 'implements Serializable'.
2511 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2512 * java/util/Properties.java (serialVersionUID): Added.
2513 * java/util/Random.java (serialVersionUID): Added.
2514 (seed): Made private.
2515 (nextNextGaussian): Made private.
2516 (haveNextNextGaussian): Made private.
2517 * java/util/Stack.java (serialVersionUID): Added.
2518 * java/util/TimeZone.java (serialVersionUID): Added.
2519 * java/util/Vector.java (serialVersionUID): Added.
2521 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2523 * Makefile.am (Thread.h): Don't be friends with native threads
2525 * Makefile.in: Rebuilt.
2526 * java/lang/Thread.java (interrupt_flag): Make package-private.
2528 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2530 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2531 to avoid long long division.
2533 2000-09-06 Tom Tromey <tromey@cygnus.com>
2535 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2537 * java/lang/reflect/Method.java (toString): Use `getName' for
2540 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2541 `args' if method takes no parameters.
2543 Fix for PR java.lang/339:
2544 * java/lang/natPosixProcess.cc (fail): New function.
2545 (cleanup): New function.
2546 (startProcess): Use them. Create pipe so child can communicate
2547 exec failure back to parent.
2549 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2551 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2553 (send): Undo last patch. Remove the label only.
2555 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2557 * java/net/natInetAdress.cc: Ditto.
2559 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2561 2000-09-05 Tom Tromey <tromey@cygnus.com>
2563 * doc/cni.sgml: Updated from master copy.
2565 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2567 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2569 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2571 * java/lang/fdlibm.h: #undef __P if previously defined.
2572 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2573 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2577 2000-09-04 Tom Tromey <tromey@cygnus.com>
2579 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2582 2000-09-04 Anthony Green <green@redhat.com>
2584 Fix for PR java.io/203:
2585 * java/io/File.java (createTempFile): Obey directory argument.
2586 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2587 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2588 variable to set java.io.tmpdir on non-WIN32 systems.
2590 2000-09-04 Anthony Green <green@redhat.com>
2592 * java/io/File.java (deleteOnExit): New method.
2593 * gnu/gcj/runtime/FileDeleter.java: New class.
2594 * java/lang/natRuntime.cc (exit): Call
2595 FileDeleter.deleteOnExitNow()
2596 * Makefile.am: Add FileDeleter.java.
2597 * Makefile.in: Rebuilt.
2599 2000-09-02 Tom Tromey <tromey@cygnus.com>
2601 * Makefile.in: Rebuilt.
2602 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2603 environment variable.
2605 2000-09-01 Andrew Haley <aph@redhat.com>
2607 * java/io/StreamTokenizer.java: Don't throw a
2608 NumberFormatException if a field is numeric as far as the
2609 StreamTokenizer is concerned but not as far as Double.valueOf() is
2610 concerned: return a zero instead.
2612 2000-08-30 Tom Tromey <tromey@cygnus.com>
2614 * Makefile.in: Rebuilt.
2615 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2617 2000-08-28 Tom Tromey <tromey@cygnus.com>
2619 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2620 gnu/gcj/awt/ComponentDataBlitOp.java,
2621 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2622 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2623 java/awt/color/ICC_ColorSpace.java,
2624 java/awt/color/ICC_Profile.java,
2625 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2626 java/awt/image/ComponentColorModel.java,
2627 java/awt/image/ComponentSampleModel.java,
2628 java/awt/image/DataBuffer.java,
2629 java/awt/image/DataBufferByte.java,
2630 java/awt/image/DataBufferInt.java,
2631 java/awt/image/DataBufferUShort.java,
2632 java/awt/image/DirectColorModel.java,
2633 java/awt/image/IndexColorModel.java,
2634 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2635 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2636 java/awt/image/SinglePixelPackedSampleModel.java,
2637 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2638 Removed Latin-1 copyright symbols.
2639 * java/util/zip/ZipFile.java: Indentation fixes.
2641 2000-08-27 Mark Wielaard <mark@klomp.org>
2643 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2644 constructor, close can delete the file, finalize calls close.
2645 * java/util/jar/JarFile.java: Constructor that takes mode now
2648 2000-08-27 Anthony Green <green@redhat.com>
2650 * java/util/ArrayList.java, java/util/Timer.java,
2651 java/util/LinkedList.java, java/util/TimerTask.java,
2652 java/util/HashMap.java, java/util/AbstractMap.java,
2653 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2654 java/util/SortedSet.java: Imported from GNU Classpath.
2655 * Makefile.in: Rebuilt.
2656 * Makefile.am: Added new files.
2658 2000-08-26 Anthony Green <green@redhat.com>
2660 * Makefile.in: Rebuilt.
2661 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2664 * prims.cc: Include ClassLoader.h.
2665 (_Jv_RunMain): When executing jar files, classpath must be the jar
2666 file only. Lose our reference to the system ClassLoader in order
2667 to get a new one with the correct classpath.
2668 * java/lang/natSystem.cc (init_properties): When executing a jar
2669 file, only use the jar file for java.class.path.
2671 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2672 for bytecode archives.
2674 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2675 exists, but not Main-Class.
2677 2000-08-23 Mark Wielaard <mark@klomp.org>
2679 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2680 return -1 when fill() has no more data for the Inflater.
2682 2000-08-23 Mark Wielaard <mark@klomp.org>
2684 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2685 write(String) already does.
2687 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2689 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2690 to `alive_flag', call `init'.
2691 (init): New native method.
2692 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2695 2000-08-21 Mark Wielaard <mark@klomp.org>
2697 * Makefile.in: Rebuilt.
2698 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2700 (java/lang/reflect/Field.h): Likewise.
2701 (java/lang/reflect/Method.h): Likewise.
2702 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2705 2000-08-21 Tom Tromey <tromey@cygnus.com>
2707 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2710 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2712 * java/lang/natSystem.cc (init_properties): Change sourceware
2713 reference to sources.redhat.com.
2715 * include/java-props.h: Add _Jv_Jar_Class_Path.
2716 * prims.cc: Ditto. Set it from `gij -jar file' option.
2718 * java/lang/natSystem.cc (init_properties): Set java.class.path
2720 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2722 * java/util/PropertyPermission.java: Import from GNU Classpath.
2723 * Makefile.in: Rebuilt.
2724 * Makefile.am: Add java/util/PropertyPermission.java.
2725 * java/lang/System.java: Add setProperty method.
2727 * gij.cc (main): Add -jar option to execute jar files.
2728 (help): Describe -jar option.
2729 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2730 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2731 * gnu/gcj/runtime/FirstThread.java (main): New method.
2733 * java/util/jar/Attributes.java: Correct comment spelling.
2735 2000-08-20 Mark Wielaard <mark@klomp.org>
2737 * java/util/zip/Adler32.java: Make private variables really private
2738 * java/util/zip/CRC32.java: Make private variables really private
2739 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2741 * java/util/zip/InflaterInputStream.java: skip() could skip to
2743 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2744 * java/util/zip/ZipFile.java: size() new 1.2 method
2745 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2746 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2749 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2751 * java/util/jar/JarFile.java: Don't call
2752 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2755 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2757 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2758 Read the entire contents of the class file, not just what is
2761 * java/net/JarURLConnection.java: getEntry doesn't take any
2762 arguments. Return null if element is null.
2764 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2765 size from the archive, not the inflated size.
2767 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2768 java.util.zip.ZipFile.getEntry.
2770 * gij.cc (help): Change sourceware reference to
2773 2000-08-19 Tom Tromey <tromey@cygnus.com>
2775 * java/util/zip/ZipInputStream.java (createZipEntry):
2778 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2780 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2781 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2782 java/util/jar/JarInputStream.java,
2783 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2784 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2785 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2786 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2787 java/security/cert/Certificate.java,
2788 java/security/cert/CertificateEncodingException.java,
2789 java/security/cert/CertificateException.java,
2790 java/security/cert/CertificateExpiredException.java,
2791 java/security/cert/CertificateFactory.java,
2792 java/security/cert/CertificateFactorySpi.java,
2793 java/security/cert/CertificateNotYetValidException.java,
2794 java/security/cert/CertificateParsingException.java,
2795 java/security/cert/X509CRL.java,
2796 java/security/cert/X509CRLEntry.java,
2797 java/security/cert/X509Certificate.java,
2798 java/security/cert/X509Extension.java: Imported from Classpath.
2799 * java/util/Hashtable.java: Imported from Classpath.
2801 * java/util/zip/ZipInputStream.java: Create stub for
2804 * gcj/javaprims.h: Updated class list.
2806 * Makefile.in, gcj/Makefile.in: Rebuilt.
2807 * Makefile.am (ordinary_java_source_files): Add these new classes.
2809 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2811 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2812 * gnu/gcj/awt/GLightweightPeer.java: New file.
2813 * java/awt/BorderLayout.java: Implemented all methods.
2814 * java/awt/Button.java (actionListener, actionCommand): Renamed
2815 and modifier change.
2816 (addNotify): Call super.
2817 (dispatchEventImpl): New method.
2818 (getListeners): New method.
2819 (label): Made package-private, not private.
2820 * java/awt/Canvas.java: Implemented class body.
2821 * java/awt/Color.java (brighter): New method.
2822 (darker): New method.
2823 (hashCode): New method.
2824 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2825 (getGraphicsConfiguration): Delegate to
2826 getGraphicsConfigurationImpl().
2827 (getGraphicsConfigurationImpl): New method.
2828 (getToolkit): Only return value from peer if not null.
2829 (isDisplayable): Check with parent.
2830 (isShowing): No parent implies not showing.
2831 (getForeground): Check parent property if local is null.
2832 (getBackground): Likewise.
2833 (getFont): Likewise.
2834 (setForeground): Inform peer.
2835 (setBackground): Likewise
2836 (setLocale): Invalidate component.
2837 (getColorModel): Implemented.
2838 (setLocation): Invalidate, or ignore if no change.
2839 (setSize): Invalidate, or ignore if no change.
2840 (setBounds): Invalidate, or ignore if no change.
2841 (isOpaque): By default, heavyweight implies opaque.
2842 (isLightweight): Implemented.
2843 (getMaximumSize): Implemented.
2844 (doLayout): Implemented, NOP.
2845 (validate): Implemented, NOP.
2846 (invalidate): Only propagate to parent if parent was valid.
2847 (getGraphics): Implemented.
2848 (getFontMetrics): Implemented.
2849 (update): Implemented.
2850 (paintAll): Implemented.
2851 (repaint): Implemented all repaint methods.
2852 (print): Implemented.
2853 (printAll): Implemented.
2854 (createImage): Implemented.
2855 (dispatchEvent): Give the peer a chance to handle the event.
2856 (dispatchEventImpl): Dispatch paint events.
2857 (enableEvents): Lightweights enable events on parent component.
2858 (coalesceEvents): Coalesce paint events, and select event type
2860 (coalescePaintEvents): New method.
2861 (processEvent): Fix unfortunate ordering of statements, and call
2862 correct method for MOUSE_CLICKED.
2863 (processPaintEvent): New method.
2864 (addNotify): Allow container to notify children before event
2865 mask is set in peer.
2866 (addNotifyContainerChildren): New method.
2867 (removeNotify): Visibility should not change on removeNotify.
2868 (paramString): Implemented.
2869 (list): Implemented two of the list methods.
2870 * Container (myInsets): Removed, insets are managed by peer.
2871 (getInsets): Query peer.
2872 (addImpl): Fix reparenting, enable events for lightweights,
2873 initialize component array.
2874 (validate): Call doLayout in validateTree() instead.
2875 (validateTree): Do nothing if already valid. Call beginValidate(),
2876 endValidate() on peer. Call validateTree() instead of validate()
2877 for children that are containers. Mark valid after validation of
2879 (setFont): Partial implementation.
2880 (paint): Implemented.
2881 (visitChildren): New method.
2882 (visitChild): New method.
2883 (update): Implemented.
2884 (print): Implemented.
2885 (paintComponents): Implemented.
2886 (printComponents): Consider translation and clipping.
2887 (getComponentAt): Ignore invisible children. Return this if no
2889 (addNotify): Call super.
2890 (addNotifyContainerChildren): New method.
2891 (paramString): Implemented.
2892 (list): Implemented.
2893 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2895 (invokeLater): Likewise.
2896 (isDispatchThread): Likewise.
2897 * java/awt/FontMetrics (getLeading): Formula change.
2898 (getDescent): Consider leading also.
2899 (getMaxAscent): Default to getAscent().
2900 (getMaxDescent): Default to getDescent.
2901 (getMaxAdvance): Return value signifying unknown.
2902 (charWidth): Both methods implemented.
2903 (charsWidth): Implemented.
2904 (bytesWidth): Implemented.
2905 (getWidths): Implemented.
2906 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2908 (Frame): Rearragend constuctor chaining to disallow null being
2909 passed as a graphics configuration.
2910 (getTitle): Return empty string if null.
2912 (getIconImage): New method.
2913 (setIconImage): New method.
2914 (finalize): New method.
2915 (setMenuBar): Notify peer.
2916 (isResizable): New method.
2917 (setResizable): New method.
2918 (getState): New method.
2920 (remove): Implemented.
2921 (removeNotify): New method.
2922 (getFrames): New method.
2923 * java/awt/Graphics.java: Implemented body of class.
2924 * java/awt/Graphics2D.java: New file.
2925 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2926 * java/awt/Image.java: Implemented body of class.
2927 * java/awt/Panel.java (Panel): Call correct super constructor.
2928 (addNotify): Implemented.
2929 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2930 * java/awt/RenderingHints.java: New file.
2931 * java/awt/Toolkit.java (createComponent): Implemented.
2932 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2933 * java/awt/Window.java (Window): Two new constructors. Reordered
2934 constructor chaining.
2935 (getGraphicsConfigurationImpl): New method.
2936 (finalize): Call super.
2937 (addNotify): Call super.
2938 (pack): Do layout stuff.
2939 (show): Ensure that peer exists and that component is valid.
2940 (dispose): Dispose owned children.
2941 (getOwner): Simplify code, casting null pointers is valid.
2942 (getGraphicsConfiguration): Ask peer if local value is null.
2943 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2945 * java/awt/image/BufferedImage.java: New file.
2946 * java/awt/image/RasterOp.java: New file.
2947 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2948 More powerfull replacement for getColorModel().
2949 (getColorModel) Removed.
2950 (setEventMask) New method.
2951 * Makefile.am: Added new files.
2952 * Makefile.in: Rebuilt.
2954 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2956 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2957 (finit_leg_name): New global.
2958 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2959 `$finit$'. This is a backward compatibility hack.
2960 (java::lang::Class::_getMethods): Likewise.
2962 2000-08-15 Andrew Haley <aph@cygnus.com>
2964 * include/jvm.h (_Jv_HashCode): New hash code.
2966 2000-08-15 Tom Tromey <tromey@cygnus.com>
2968 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2970 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2972 * THANKS: More thanks.
2974 2000-08-10 Tom Tromey <tromey@cygnus.com>
2976 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2978 (connect): Likewise.
2980 (getOption): Likewise.
2981 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2982 case when errno not set.
2985 (receive): Likewise.
2986 (mcastGrp): Likewise.
2987 (setOption): Likewise.
2988 (getOption): Likewise.
2990 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2991 John Stracke <francis@ecal.com>
2993 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2994 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2996 (disconnect): Don't unset connected flag.
2997 (getHeaderField (String)): Call connect() if not connected.
2998 (getHeaderField (int)): Ditto.
2999 (getHeaderFieldKey): Ditto.
3000 (getHttpHeaders): Don't call connect().
3001 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3002 gotResponseVals): New fields.
3003 (getResponseCode): Call getResponseVals() conditionally.
3004 (getResponseMessage): Ditto.
3005 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3007 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3009 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3010 * Makefile.in: Rebuilt.
3011 * java/awt/Color.java (getTransparency): New method.
3012 * java/awt/Component.java: Various updates.
3013 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3014 after dealing with children.
3015 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3016 * java/awt/Window.java: Various new methods and updates.
3017 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3019 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3020 * java/awt/event/WindowEvent.java (paramString): Ditto.
3021 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3023 * java/awt/geom/Point2D.java (clone): Ditto.
3024 * java/awt/geom/RectangularShape.java (clone): Ditto.
3025 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3026 isAlphaPremultiplied): Make package-private, not private.
3028 2000-08-08 Tom Tromey <tromey@cygnus.com>
3030 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3031 surrogate characters.
3032 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3034 (write): Correct handling of surrogate characters.
3036 2000-08-07 Tom Tromey <tromey@cygnus.com>
3038 * java/lang/reflect/Method.java (hashCode): Use getName().
3039 (toString): Likewise.
3040 * java/lang/reflect/natMethod.cc (getType): Initialize
3043 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3045 * java/lang/reflect/Field.java (toString): Correct formatting.
3048 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3050 (receive): Streamlined.
3052 2000-08-05 Tom Tromey <tromey@cygnus.com>
3054 * java/io/PrintWriter.java: Merged comments from Classpath.
3055 (printlnUnsynchronized): Removed.
3056 (println()): Print the separator.
3057 (println): Call println(), not printlnUnsynchronized.
3058 (out): Now protected, to match spec.
3060 2000-08-04 Tom Tromey <tromey@cygnus.com>
3062 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3063 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3066 2000-08-03 Warren Levy <warrenl@cygnus.com>
3068 * java/io/ObjectInputStream.java (readFields): Turn off
3069 readDataFromBlock while reading via GetField.
3070 (GetField$1.get(String, Object)): Pass Class of default value to
3072 (getField): Allow for null default values.
3074 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3075 (PutField$1.put): Fixed calls of checkType in most of the put
3076 methods to pass the correct parameter.
3077 (PutField$1.put(String, Object)): Allow for null value arg.
3078 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3081 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3082 typo in spec'ed field name.
3083 (getSerialPersistentFields): Changed spelling of method to match
3084 the correct spelling of the spec'ed field name.
3086 2000-08-03 Tom Tromey <tromey@cygnus.com>
3088 * Makefile.in: Rebuilt.
3089 * Makefile.am (awt_java_source_files): Added new files.
3091 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3093 * Makefile.am: Add new AWT stubs.
3094 * java/awt/Canvas.java: New placeholder class.
3095 * java/awt/Checkbox.java: Ditto.
3096 * java/awt/CheckboxMenuItem.java: Ditto.
3097 * java/awt/Choice.java: Ditto.
3098 * java/awt/Dialog.java: Ditto.
3099 * java/awt/FileDialog.java: Ditto.
3100 * java/awt/List.java: Ditto.
3101 * java/awt/ScrollPane.java: Ditto.
3102 * java/awt/TextField.java: Ditto.
3103 * java/awt/datatransfer/Clipboard.java: Ditto.
3104 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3105 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3106 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3107 Some commented out. Partially implemented.
3108 * java/awt/natToolkit.cc: Removed file.
3110 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3112 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3113 Fixes "make -j" builds.
3114 * Makefile.in: Rebuild.
3116 2000-08-02 Tom Tromey <tromey@cygnus.com>
3118 * Makefile.in: Rebuilt.
3119 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3120 * java/net/natPlainSocketImpl.cc: Include posix.h.
3121 (accept): Use _Jv_select.
3122 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3123 (receive): Use _Jv_select.
3124 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3125 (available): Use _Jv_select.
3126 * java/lang/natSystem.cc: Include posix.h.
3127 (currentTimeMillis): Use _Jv_gettimeofday.
3128 * include/posix.h: New file.
3129 * posix.cc: New file.
3131 * scripts/encodings.pl: New file.
3132 * Makefile.in: Rebuilt.
3133 * Makefile.am (convert_source_files): Added IOConverter.java.
3134 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3136 (getDefaultDecodingClass): Canonicalize default encoding name.
3137 (getEncoder): Likewise.
3138 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3140 (getDefaultDecodingClass): Canonicalize default encoding name.
3141 (getDecoder): Likewise.
3142 * gnu/gcj/convert/IOConverter.java: New file.
3144 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3146 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3147 to match C declaration in ffi.h.
3148 * Makefile.am: Add java/awt/Button.java.
3149 * Makefile.in: Rebuilt.
3151 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3153 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3154 cast of the second argument to `ffi_raw_call' changed to match
3157 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3159 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3160 argument to `ffi_raw_call' changed to match prototype.
3162 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3164 * java/awt/Component.java (toString): Implemented.
3165 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3166 dispatchEvent() to dispatch the event.
3167 (removeImpl): Ditto.
3169 2000-07-30 Anthony Green <green@redhat.com>
3171 * java/awt/Component.java: Add treeLock object.
3172 (getTreeLock): Implement.
3173 (isShowing): Implement.
3175 2000-07-30 Tom Tromey <tromey@cygnus.com>
3177 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3179 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3181 * java/awt/Window.java (addNotify): Wrote.
3182 (addWindowListener): Wrote.
3184 (getWarningString): Wrote.
3185 (processEvent): Wrote.
3186 (processWindowEvent): Wrote.
3187 (removeWindowListener): Wrote.
3188 (show): Call validate(), setVisible().
3192 * java/awt/Toolkit.java (createWindow): Declare.
3194 * java/awt/Frame.java (addNotify): Use getToolkit to find
3197 * java/awt/Component.java (invalidate): Wrote.
3199 (getToolkit): Wrote.
3201 * java/awt/Container.java (addContainerListener): Removed
3203 (removeContainerListener): Likewise.
3205 (add(Component)): Use it.
3206 (add(String,Component)): Likewise.
3207 (add(Component,int)): Likewise.
3208 (add(Component,Object)): Likewise.
3209 (add(Component,Object,int)): Likewise.
3211 (getAlignmentX): Wrote.
3212 (getAlignmentY): Wrote.
3213 (getComponentAt): Wrote.
3214 (getMaximumSize): Wrote.
3215 (invalidate): Wrote.
3216 (list(PrintStream,int)): Wrote.
3217 (list(PrintWriter,int)): Wrote.
3218 (getMinimumSize): Wrote.
3219 (getPreferredSize): Wrote.
3220 (printComponents): Wrote.
3221 (processContainerEvent): Look at containerListener, not
3223 (remove): Added event processing and peer destruction.
3224 (removeAll): Use remove.
3225 (removeNotify): Wrote.
3227 (validateTree): Wrote.
3229 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3230 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3231 * java/awt/Container.java (addNotify): Don't create Container
3233 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3235 2000-07-30 Tom Tromey <tromey@cygnus.com>
3237 * java/awt/Container.java (remove(int)): Wrote.
3238 (remove(Component)): Wrote.
3239 (add(Component)): Wrote.
3240 (add(Component,int)): Wrote.
3242 (addNotify): Set our own peer.
3243 * java/awt/Scrollbar.java (listeners): Changed type.
3244 (Scrollbar): Don't initialize listeners.
3246 (setValue): Call setValues.
3247 (setMinimum): Likewise.
3248 (setMaxPriority): Likewise.
3249 (setVisibleAmount): Likewise.
3251 (setUnitIncrement): Forward to peer.
3252 (setLineIncrement): Call setUnitIncrement.
3253 (setPageIncrement): Call setBlockIncrement.
3254 (setBlockIncrement): Forward to peer.
3255 (addAdjustmentListener): Rewrote.
3256 (removeAdjustmentListener): Rewrote.
3257 (processAdjustmentEvent): Rewrote.
3258 (paramString): Wrote.
3259 * Makefile.in: Rebuilt.
3260 * Makefile.am (awt_java_source_files): Added Button.java.
3261 * java/awt/Button.java: New file.
3262 * java/awt/Toolkit.java (createLabel): Declare.
3263 (createButton): Likewise.
3264 (createScrollbar): Likewise.
3265 (createContainer): Likewise.
3266 * java/awt/Label.java (addNotify): Wrote.
3267 (setAlignment): Call setAlignment in the peer.
3268 (setText): Call setText in the peer.
3270 2000-07-28 Warren Levy <warrenl@cygnus.com>
3272 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3273 NotSerializableException with just the class name.
3275 2000-07-26 Andrew Haley <aph@cygnus.com>
3277 * interpret.cc (continue1): Insert missing break into switch.
3279 2000-07-28 Warren Levy <warrenl@cygnus.com>
3281 * java/io/ObjectStreamException.java: Made constructors protected.
3283 2000-07-27 Tom Tromey <tromey@cygnus.com>
3285 * java/io/OutputStreamWriter.java (close): Only flush if not
3288 2000-07-27 Warren Levy <warrenl@cygnus.com>
3290 * mauve-libgcj: Activated serialization tests.
3291 * gcj/field.h (getModifiers): Mask off unknown flags.
3292 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3293 spurious bits don't cause discrepancies.
3294 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3295 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3296 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3297 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3298 * java/lang/Throwable.java (serialVersionUID): New field.
3299 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3300 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3302 * java/lang/reflect/natMethod.cc: Ditto.
3303 * java/security/Key.java (serialVersionUID): Removed field for now.
3304 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3305 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3307 2000-07-22 Tom Tromey <tromey@cygnus.com>
3309 * java/awt/geom/RectangularShape.java (getPathIterator):
3312 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3314 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3315 stub libjava/java/awt/ColorModel.java which was located in the
3317 * libjava/java/awt/image/ComponentColorModel.java: New file.
3318 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3319 * libjava/java/awt/image/DataBuffer.java: New file.
3320 * libjava/java/awt/image/DataBufferByte.java: New file.
3321 * libjava/java/awt/image/DataBufferInt.java: New file.
3322 * libjava/java/awt/image/DataBufferUShort.java: New file.
3323 * libjava/java/awt/image/DirectColorModel.java: New file.
3324 * libjava/java/awt/image/PackedColorModel.java: New file.
3325 * libjava/java/awt/image/Raster.java: New file.
3326 * libjava/java/awt/image/SampleModel.java: New file.
3327 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3329 * libjava/java/awt/image/IndexColorModel.java: New file.
3330 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3331 java.awt.ColorModel stub.
3333 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3334 * gnu/gcj/util/Buffers.java: New file, utility class.
3336 * libjava/Makefile.am: Updated to include new files.
3337 * libjava/Makefile.in: Rebuilt.
3339 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3341 * java/io/StreamTokenizer.java: Merged with classpath.
3343 2000-07-20 Tom Tromey <tromey@cygnus.com>
3345 * Makefile.in: Rebuilt.
3346 * Makefile.am (awt_java_source_files): Updated for new files.
3347 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3348 * java/awt/Label.java: New file.
3349 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3350 (createIntersection, createUnion, getBounds2D): New methods.
3351 * java/awt/Scrollbar.java: New file.
3352 * java/awt/Shape.java: Updated to 1.2.
3353 * java/awt/geom/AffineTransform.java: New file.
3354 * java/awt/geom/Ellipse2D.java: New file.
3355 * java/awt/geom/NoninvertibleTransformException.java: New file.
3356 * java/awt/geom/PathIterator.java: New file.
3357 * java/awt/geom/Rectangle2D.java: New file.
3358 * java/awt/geom/RectangularShape.java: New file.
3359 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3360 * java/awt/geom/IllegalPathStateException.java: New file.
3362 * scripts/showval.java: New file.
3364 * scripts/classes.pl (scan): Print inner classes properly.
3365 * gcj/javaprims.h: Updated class list.
3367 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3368 initialize String fields for interpreted classes. Fixes bug
3369 reported by Hans Boehm.
3371 * java/io/File.java (getParentFile): New method, from Classpath
3372 via Oskar Liljeblad.
3374 * java/util/Vector.java (remove(Object)): Implemented.
3376 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3378 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3379 zero return from backtrace().
3381 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3383 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3385 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3386 before calling notifyAll().
3388 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3390 Add missing files from last check-in:
3391 * java/awt/image/ImageConsumer.java: New file.
3392 * java/awt/image/ImageProducer.java: New file.
3393 * java/awt/image/ImageObserver.java: New file.
3395 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3397 Merged implementation of java.applet from classpath:
3398 * java/applet/Applet.java: New file.
3399 * java/applet/AppletContext.java: New file.
3400 * java/applet/AppletStub.java: New file.
3401 * java/applet/AudioClip.java: New file.
3403 * Makefile.am: Added new java.applet classes.
3404 * Makefile.in: Rebuilt.
3406 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3409 * java/util/ResourceBundle.java (getLocale): stub.
3410 * Makefile.am: Added new AWT classes.
3411 * Makefile.in: Rebuilt.
3412 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3413 constructors. Fix toString() and paramString().
3414 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3415 * java/awt/CheckboxGroup.java: New class.
3416 * java/awt/ColorModel.java: New class.
3417 * java/awt/Component.java: Added stubs for most methods. Implemented
3419 * java/awt/Container.java: ditto.
3420 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3421 * java/awt/Cursor.java: ditto.
3422 * java/awt/Event.java: Fix paramString().
3423 * java/awt/EventQueue.java: New class. Implemented.
3424 * java/awt/Font.java: Added additional stub methods. Implemented
3426 * java/awt/FontMetrics.java: New class. Stubbed.
3427 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3429 * java/awt/Insets.java: New class. Implemented.
3430 * java/awt/Menu.java: Add new methods. Partially implemented.
3431 * java/awt/MenuItem.java: Add new methods and fields. Partially
3433 * java/awt/MenuShortcut.java: New class. Implemented.
3434 * java/awt/Panel.java: New class. Placeholder.
3435 * java/awt/PopupMenu.java: New class. Stubbed.
3436 * java/awt/Rectangle.java: New class. Implemented.
3437 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3438 * java/awt/event/ActionEvent.java: Implement paramString().
3439 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3440 * java/awt/event/ComponentEvent.java: Implement paramString().
3441 * java/awt/event/ContainerEvent.java: Implement paramString().
3442 * java/awt/event/FocusEvent.java: Implement paramString().
3443 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3444 * java/awt/event/HierarchyBoundsListener.java: New class.
3445 * java/awt/event/HierarchyEvent.java: New class.
3446 * java/awt/event/HierarchyListener.java: New class.
3447 * java/awt/event/InputMethodEvent.java: Implement paramString().
3448 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3449 exception if !catchExceptions.
3450 * java/awt/event/ItemEvent.java: Implement paramString().
3451 * java/awt/event/KeyEvent.java: Implement paramString().
3452 * java/awt/event/MouseEvent.java: Implement paramString().
3453 * java/awt/event/PaintEvent.java: Implement paramString().
3454 * java/awt/event/TextEvent.java: Implement paramString().
3455 * java/awt/event/WindowEvent.java: Implement paramString().
3457 AWT Peer interfaces:
3458 * java/awt/peer/ButtonPeer.java: New file.
3459 * java/awt/peer/ListPeer.java: New file.
3460 * java/awt/peer/CanvasPeer.java: New file.
3461 * java/awt/peer/MenuBarPeer.java: New file.
3462 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3463 * java/awt/peer/MenuComponentPeer.java: New file.
3464 * java/awt/peer/CheckboxPeer.java: New file.
3465 * java/awt/peer/MenuItemPeer.java: New file.
3466 * java/awt/peer/ChoicePeer.java: New file.
3467 * java/awt/peer/MenuPeer.java: New file.
3468 * java/awt/peer/ComponentPeer.java: Implemented.
3469 * java/awt/peer/PanelPeer.java: New file.
3470 * java/awt/peer/ContainerPeer.java: Implemented.
3471 * java/awt/peer/PopupMenuPeer.java: New file.
3472 * java/awt/peer/DialogPeer.java: New file.
3473 * java/awt/peer/ScrollPanePeer.java: New file.
3474 * java/awt/peer/FileDialogPeer.java: New file.
3475 * java/awt/peer/ScrollbarPeer.java: New file.
3476 * java/awt/peer/FontPeer.java: New file.
3477 * java/awt/peer/TextAreaPeer.java: New file.
3478 * java/awt/peer/FramePeer.java: Implemented.
3479 * java/awt/peer/TextComponentPeer.java: New file.
3480 * java/awt/peer/LabelPeer.java: New file.
3481 * java/awt/peer/TextFieldPeer.java: New file.
3482 * java/awt/peer/LightweightPeer.java: New file.
3483 * java/awt/peer/WindowPeer.java: Implemented.
3485 2000-07-06 Tom Tromey <tromey@cygnus.com>
3487 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3488 Initialize static final String fields.
3490 2000-07-03 Tom Tromey <tromey@cygnus.com>
3492 * java/io/PrintWriter.java (print): Call write(String), not
3493 print(String). See PR libgcj/277.
3494 (print(String)): Use write, not out.write.
3496 2000-06-30 Tom Tromey <tromey@cygnus.com>
3498 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3500 2000-06-27 Andrew Haley <aph@cygnus.com>
3502 * java/io/File.java (createTempFile): Close the FileDescriptor
3503 used to create a temp file. Fixes some of PR 203.
3504 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3505 collection if we run out of file handles.
3507 2000-06-28 Warren Levy <warrenl@cygnus.com>
3509 * gnu/java/security/provider/Gnu.java: New file.
3510 * gnu/java/security/provider/SHA.java: New file.
3511 * gnu/java/security/provider/SHA1PRNG.java: New file.
3512 * Makefile.am: Added the above files.
3513 * Makefile.in: Rebuilt.
3515 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3517 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3519 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3520 (destroyed_flag): Removed.
3521 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3522 (activeCount): Added spec note.
3524 2000-06-27 Warren Levy <warrenl@cygnus.com>
3526 * java/security/Principal.java: New file.
3527 * Makefile.am: Added Principal.java.
3528 * Makefile.in: Rebuilt.
3530 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3532 * java/awt/event/MouseEvent.java: Fixed coordinate space
3535 2000-06-27 Tom Tromey <tromey@cygnus.com>
3537 * java/io/PushbackInputStream.java (read): If there are characters
3538 in the buffer, don't also call super.read().
3539 * java/io/PushbackReader.java (read): If there are characters in
3540 the buffer, don't also call super.read().
3542 * java/lang/Double.java (valueOf): Call parseDouble().
3544 2000-06-26 Warren Levy <warrenl@cygnus.com>
3546 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3547 (newVal): Renamed to newValue.
3548 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3549 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3550 (revokeNow): Renamed to invalidateRefs.
3551 * java/io/OptionalDataException.java: Updated FIXME.
3552 (eof): New placeholder field.
3554 * java/io/WriteAbortedException.java (message): Made transient.
3555 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3556 * java/lang/Throwable.java (stackTrace): Made transient.
3557 * java/net/InetAddress.java: Made Serializable.
3558 * java/security/KeyPair.java: Made Serializable.
3559 * java/security/Provider.java: Replaced with Classpath version that
3560 implements serialization and proper methods.
3561 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3562 (limits): Renamed to choiceLimits.
3564 2000-06-24 Tom Tromey <tromey@cygnus.com>
3566 * java/lang/natDouble.cc (parseDouble): Renamed from
3568 * java/lang/Double.java (parseDouble): Renamed from
3569 doubleValueOf. Now public.
3571 2000-06-23 Andrew Haley <aph@cygnus.com>
3573 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3574 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3576 2000-06-23 Tom Tromey <tromey@cygnus.com>
3578 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3579 * java/lang/natDouble.cc: Always include <alloca.h>.
3580 Fix for PR libgcj/267.
3582 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3584 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3585 comply with classpath VM spec.
3586 (add(Group)): Rename to addGroup().
3587 * java/lang/Thread.java (Thread): Use addThread().
3588 * java/lang/natThread.cc (finish_): Use removeThread().
3590 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3592 * java/lang/ThreadGroup.java: Merged with classpath.
3593 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3594 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3596 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3597 ThreadGroup.root if Thread.currentThread is null. Honour the
3598 ThreadGroup's max priority setting.
3600 2000-06-18 Tom Tromey <tromey@cygnus.com>
3602 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3603 returned class. For PR gcj/260.
3605 2000-06-16 Tom Tromey <tromey@cygnus.com>
3607 Fix for PR libgcj/261:
3608 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3610 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3611 argument. (This is a patch from long ago that somehow went
3614 2000-06-15 Tom Tromey <tromey@cygnus.com>
3616 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3620 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3622 Fix for PR java.lang/258:
3623 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3624 JV_STATE_DONE, to prevent accidental initialization.
3625 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3626 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3627 interface or an abstract class. Remove redundant initializeClass calls.
3628 Remove duplicate if_idt test.
3629 (_Jv_InterfaceAssignableFrom): New function.
3630 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3632 2000-05-31 Tom Tromey <tromey@cygnus.com>
3634 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3635 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3636 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3637 (NUM_OBJECT_METHODS): New define.
3638 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3639 `array_vtable' parameter. Added assertion.
3640 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3643 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3645 * gcj/cni.h: Include <string.h>.
3646 * defineclass.cc: Include <alloca.h>.
3647 * interpret.cc: Ditto.
3648 * gij.cc: Include <stdlib.h>.
3650 2000-05-30 Tom Tromey <tromey@cygnus.com>
3652 * include/name-finder.h: Include <sys/wait.h>.
3653 (_Jv_name_finder::pid): Now of type `pid_t'.
3654 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3655 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3658 2000-05-24 Warren Levy <warrenl@cygnus.com>
3660 * java/io/ObjectOutputStream.java (writeObject): Use component type
3661 when writing arrays.
3664 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3666 Fix for PR libgcj/226:
3667 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3668 since this is an installed header.
3670 Fix for PR libgcj/228:
3671 * java/util/zip/ZipFile (getInputStream): Create inflater with
3674 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3675 with DataFormatException.
3677 2000-05-20 Tom Tromey <tromey@cygnus.com>
3679 * Makefile.in: Rebuilt.
3680 * Makefile.am (hack1): Removed.
3681 (awto_files): Likewise.
3682 (libgcjawt_la_SOURCES): Likewise.
3683 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3684 (libgcjawt_la_DEPENDENCIES): Likewise.
3685 (libgcjawt_la_LIBADD): Likewise.
3686 (libgcjawt_la_LDFLAGS): Likewise.
3687 (libgcjawt_la_LINK): Likewise.
3688 ($(awt_java_source_files:.java=.class)): Likewise.
3689 (libgcj.zip): Don't depend on AWT files.
3690 (MOSTLYCLEANFILES): Don't include AWT files.
3691 ($(awto_files)): Removed.
3692 (nat_headers): Removed AWT files.
3693 (cond_awt_java_source_files): Removed.
3694 (ordinary_java_source_files): Added awt_java_source_files.
3695 * libgcj.spec.in (*lib): Removed -lgcjawt.
3696 * configure: Rebuilt.
3697 * configure.in: Removed --enable-java-awt option.
3699 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3701 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3702 (ZipEntry): Copy the `name' field.
3703 (clone): Implement JDK1.2 method.
3704 (setCompressedSize): ditto.
3707 2000-05-19 Tom Tromey <tromey@cygnus.com>
3709 * java/io/BufferedWriter.java: Merged with Classpath.
3710 * java/io/BufferedOutputStream.java: Merged with Classpath.
3712 2000-05-16 Andrew Haley <aph@cygnus.com>
3714 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3715 build_ia64_frame_state.
3716 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3719 2000-05-15 Warren Levy <warrenl@cygnus.com>
3721 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3722 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3723 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3724 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3725 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3726 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3727 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3728 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3729 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3730 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3731 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3732 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3733 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3734 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3735 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3736 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3737 * gnu/gcj/io/NullOutputStream.java: Removed.
3738 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3739 * gnu/gcj/lang/ArrayHelper.java: Removed.
3740 * gnu/gcj/lang/ClassHelper.java: Removed.
3741 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3743 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3744 * gnu/java/beans/EmptyBeanInfo.java: New file.
3745 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3746 * gnu/java/beans/IntrospectionIncubator.java: New file.
3747 * gnu/java/beans/editors/ColorEditor.java: New file.
3748 * gnu/java/beans/editors/FontEditor.java: New file.
3749 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3750 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3751 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3752 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3753 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3754 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3755 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3756 * gnu/java/beans/editors/StringEditor.java: New file.
3757 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3758 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3759 * gnu/java/io/NullOutputStream.java: New file.
3760 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3761 * gnu/java/lang/ArrayHelper.java: New file.
3762 * gnu/java/lang/ClassHelper.java: New file.
3763 * gnu/java/lang/reflect/TypeSignature.java: New file.
3765 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3766 namespace back to the original Classpath gnu/java namespace.
3767 * Makefile.in: Rebuilt.
3769 * java/beans/Beans.java: Namespace change.
3770 * java/beans/EventSetDescriptor.java: Namespace change.
3771 * java/beans/Introspector.java: Namespace change.
3772 * java/beans/PropertyEditorManager.java: Namespace change.
3773 * java/io/ObjectInputStream.java: Namespace change.
3774 * java/io/ObjectOutputStream.java: Namespace change.
3775 * java/io/ObjectStreamClass.java: Namespace change.
3776 * java/io/ObjectStreamField.java: Namespace change.
3778 2000-04-21 Warren Levy <warrenl@cygnus.com>
3780 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3781 now that compiler patch is available.
3782 Removed unneeded System.loadLibrary.
3783 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3784 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3786 2000-04-19 Andrew Haley <aph@cygnus.com>
3788 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3789 and target classes have been initialized.
3791 2000-04-19 Andrew Haley <aph@cygnus.com>
3793 * java/lang/String.java: implement Serializable, Comparable.
3794 (compareTo (Object)): New method.
3796 2000-04-19 Warren Levy <warrenl@cygnus.com>
3798 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3799 instead of getField to retrieve non-public field.
3800 (getSerialPersistantFields): Ditto.
3802 2000-04-18 Warren Levy <warrenl@cygnus.com>
3804 * mauve-libgcj: Turned off object serialization tests temporarily
3805 due to compiler error.
3807 2000-04-17 Warren Levy <warrenl@cygnus.com>
3809 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3810 to avoid build problem.
3812 * mauve-libgcj: Turned on object serialization tests.
3814 2000-04-17 Tom Tromey <tromey@cygnus.com>
3816 * libgcj.spec.in (*lib): Added -lgcjawt.
3818 2000-04-17 Andrew Haley <aph@cygnus.com>
3820 * Makefile.am: Add new files:
3821 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3823 * Makefile.in: Rebuilt.
3825 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3826 interface that has no implementations.
3827 Check for an attempt to assign an abstract class to an interface.
3829 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3830 if we fail to find MessageDigest.getInstance ("SHA").
3832 * gnu/gcj/io/SimpleSHSStream.java: New file.
3833 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3834 * gnu/gcj/io/shs.cc: New file.
3835 * gnu/gcj/io/shs.h: new file.
3837 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3840 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3841 punctuation from the classname of an array element.
3843 * gcj/javaprims.h: Add SimpleDigestStream.
3845 2000-04-17 Andrew Haley <aph@cygnus.com>
3847 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3848 to getPrivateField for superclasses.
3850 2000-04-14 Andrew Haley <aph@cygnus.com>
3852 * Makefile.am: Add new files:
3853 java/io/ObjectOutputStream$PutField.h,
3854 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3855 java/io/natObjectOutputStream.cc
3856 * Makefile.in: Rebuilt.
3857 * gcj/Makefile.in: Rebuilt.
3858 * include/Makefile.in: Rebuilt.
3859 * java/lang/Class.h (getPrivateField): New method.
3860 (getPrivateMethod): Ditto.
3861 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3862 and java::io::ObjectStreamClass our friends.
3863 * java/lang/natClass.cc (getPrivateField): New method.
3864 (getPrivateMethod): Ditto.
3865 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3866 * gcj/javaprims.h: Add serialization classes.
3867 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3868 (setByteField): Ditto.
3869 (setCharField): Ditto.
3870 (setDoubleField): Ditto.
3871 (setFloatField): Ditto.
3872 (setIntField): Ditto.
3873 (setLongField): Ditto.
3874 (setShortField): Ditto.
3875 (setObjectField): Ditto.
3876 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3878 (getByteField): Ditto.
3879 (getCharField): Ditto.
3880 (getDoubleField): Ditto.
3881 (getFloatField): Ditto.
3882 (getIntField): Ditto.
3883 (getLongField): Ditto.
3884 (getShortField): Ditto.
3885 (getObjectField): Ditto.
3886 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3888 (getSerialPersistantFields): Ditto.
3889 (getDefinedSUID): Ditto.
3890 * java/io/natObjectOutputStream.cc: New file.
3891 * java/io/natObjectInputStream.cc: New file.
3893 2000-04-13 Warren Levy <warrenl@cygnus.com>
3895 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3896 problems. Revert to previous version to reproduce and when fixed.
3898 2000-04-13 Warren Levy <warrenl@cygnus.com>
3900 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3901 * gnu/gcj/io/NullOutputStream.java: New file.
3902 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3903 * java/io/BlockDataException.java: New file.
3904 * java/io/Externalizable.java: New file.
3905 * java/io/InvalidClassException.java: New file.
3906 * java/io/InvalidObjectException.java: New file.
3907 * java/io/NotActiveException.java: New file.
3908 * java/io/NotSerializableException.java: New file.
3909 * java/io/ObjectInput.java: New file.
3910 * java/io/ObjectInputStream.java: New file.
3911 * java/io/ObjectInputValidation.java: New file.
3912 * java/io/ObjectOutput.java: New file.
3913 * java/io/ObjectOutputStream.java: New file.
3914 * java/io/ObjectStreamClass.java: New file.
3915 * java/io/ObjectStreamConstants.java: New file.
3916 * java/io/ObjectStreamField.java: New file.
3917 * java/io/Replaceable.java: New file.
3918 * java/io/Resolvable.java: New file.
3919 * java/io/SerializablePermission.java: New file.
3920 * java/io/WriteAbortedException.java: New file.
3921 * java/security/BasicPermission.java: New file.
3922 * java/security/DigestOutputStream.java: New file.
3923 * java/security/Guard.java: New file.
3924 * java/security/Permission.java: New file.
3925 * java/security/PermissionCollection.java: New file.
3926 * Makefile.am: Added above files.
3927 * Makefile.in: Rebuilt.
3929 * java/beans/Beans.java (instantiate): Activated serialization code.
3930 * java/lang/SecurityManager.java (checkPermission): New method.
3932 2000-04-12 Warren Levy <warrenl@cygnus.com>
3934 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3935 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3936 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3937 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3938 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3939 * gnu/gcj/beans/editors/FontEditor.java: New file.
3940 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3941 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3942 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3943 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3944 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3945 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3946 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3947 * gnu/gcj/beans/editors/StringEditor.java: New file.
3948 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3949 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3950 * gnu/gcj/lang/ArrayHelper.java: New file.
3951 * gnu/gcj/lang/ClassHelper.java: New file.
3952 * java/beans/BeanDescriptor.java: New file.
3953 * java/beans/BeanInfo.java: New file.
3954 * java/beans/Beans.java: New file.
3955 * java/beans/Customizer.java: New file.
3956 * java/beans/DesignMode.java: New file.
3957 * java/beans/EventSetDescriptor.java: New file.
3958 * java/beans/FeatureDescriptor.java: New file.
3959 * java/beans/IndexedPropertyDescriptor.java: New file.
3960 * java/beans/IntrospectionException.java: New file.
3961 * java/beans/Introspector.java: New file.
3962 * java/beans/MethodDescriptor.java: New file.
3963 * java/beans/ParameterDescriptor.java: New file.
3964 * java/beans/PropertyChangeEvent.java: New file.
3965 * java/beans/PropertyChangeListener.java: New file.
3966 * java/beans/PropertyChangeSupport.java: New file.
3967 * java/beans/PropertyDescriptor.java: New file.
3968 * java/beans/PropertyEditor.java: New file.
3969 * java/beans/PropertyEditorManager.java: New file.
3970 * java/beans/PropertyEditorSupport.java: New file.
3971 * java/beans/PropertyVetoException.java: New file.
3972 * java/beans/SimpleBeanInfo.java: New file.
3973 * java/beans/VetoableChangeListener.java: New file.
3974 * java/beans/VetoableChangeSupport.java: New file.
3975 * java/beans/Visibility.java: New file.
3976 * java/beans/beancontext/BeanContext.java: New file.
3977 * java/beans/beancontext/BeanContextChild.java: New file.
3978 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3979 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3980 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3981 * java/beans/beancontext/BeanContextEvent.java: New file.
3982 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3983 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3984 * java/beans/beancontext/BeanContextProxy.java: New file.
3985 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3987 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3988 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3990 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3991 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3993 * java/beans/beancontext/BeanContextServices.java: New file.
3994 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3995 * java/util/AbstractCollection.java: New file.
3996 * java/util/AbstractList.java: New file.
3997 * java/util/Arrays.java: New file.
3998 * Makefile.am: Added above files.
3999 * Makefile.in: Rebuilt.
4001 2000-04-11 Warren Levy <warrenl@cygnus.com>
4003 * java/awt/AWTError.java: New file.
4004 * java/awt/AWTEvent.java: New file.
4005 * java/awt/AWTException.java: New file.
4006 * java/awt/ActiveEvent.java: New file.
4007 * java/awt/Adjustable.java: New file.
4008 * java/awt/BorderLayout.java: New file.
4009 * java/awt/Color.java: New file.
4010 * java/awt/Component.java: New file.
4011 * java/awt/Container.java: New file.
4012 * java/awt/Dimension.java: New file.
4013 * java/awt/Event.java: New file.
4014 * java/awt/Font.java: New file.
4015 * java/awt/Frame.java: New file.
4016 * java/awt/Graphics.java: New file.
4017 * java/awt/IllegalComponentStateException.java: New file.
4018 * java/awt/Image.java: New file.
4019 * java/awt/ItemSelectable.java: New file.
4020 * java/awt/LayoutManager.java: New file.
4021 * java/awt/LayoutManager2.java: New file.
4022 * java/awt/Menu.java: New file.
4023 * java/awt/MenuBar.java: New file.
4024 * java/awt/MenuComponent.java: New file.
4025 * java/awt/MenuContainer.java: New file.
4026 * java/awt/MenuItem.java: New file.
4027 * java/awt/Paint.java: New file.
4028 * java/awt/PaintContext.java: New file.
4029 * java/awt/Point.java: New file.
4030 * java/awt/Rectangle.java: New file.
4031 * java/awt/Shape.java: New file.
4032 * java/awt/TextArea.java: New file.
4033 * java/awt/TextComponent.java: New file.
4034 * java/awt/Toolkit.java: New file.
4035 * java/awt/Transparency.java: New file.
4036 * java/awt/Window.java: New file.
4037 * java/awt/natToolkit.cc: New file.
4038 * java/awt/event/AWTEventListener.java: New file.
4039 * java/awt/event/ActionEvent.java: New file.
4040 * java/awt/event/ActionListener.java: New file.
4041 * java/awt/event/AdjustmentEvent.java: New file.
4042 * java/awt/event/AdjustmentListener.java: New file.
4043 * java/awt/event/ComponentAdapter.java: New file.
4044 * java/awt/event/ComponentEvent.java: New file.
4045 * java/awt/event/ComponentListener.java: New file.
4046 * java/awt/event/ContainerAdapter.java: New file.
4047 * java/awt/event/ContainerEvent.java: New file.
4048 * java/awt/event/ContainerListener.java: New file.
4049 * java/awt/event/FocusAdapter.java: New file.
4050 * java/awt/event/FocusEvent.java: New file.
4051 * java/awt/event/FocusListener.java: New file.
4052 * java/awt/event/InputEvent.java: New file.
4053 * java/awt/event/InputMethodEvent.java: New file.
4054 * java/awt/event/InputMethodListener.java: New file.
4055 * java/awt/event/InvocationEvent.java: New file.
4056 * java/awt/event/ItemEvent.java: New file.
4057 * java/awt/event/ItemListener.java: New file.
4058 * java/awt/event/KeyAdapter.java: New file.
4059 * java/awt/event/KeyEvent.java: New file.
4060 * java/awt/event/KeyListener.java: New file.
4061 * java/awt/event/MouseAdapter.java: New file.
4062 * java/awt/event/MouseEvent.java: New file.
4063 * java/awt/event/MouseListener.java: New file.
4064 * java/awt/event/MouseMotionAdapter.java: New file.
4065 * java/awt/event/MouseMotionListener.java: New file.
4066 * java/awt/event/PaintEvent.java: New file.
4067 * java/awt/event/TextEvent.java: New file.
4068 * java/awt/event/TextListener.java: New file.
4069 * java/awt/event/WindowAdapter.java: New file.
4070 * java/awt/event/WindowEvent.java: New file.
4071 * java/awt/event/WindowListener.java: New file.
4072 * java/awt/geom/Dimension2D.java: New file.
4073 * java/awt/geom/Point2D.java: New file.
4074 * java/awt/peer/ComponentPeer.java: New file.
4075 * java/awt/peer/ContainerPeer.java: New file.
4076 * java/awt/peer/FramePeer.java: New file.
4077 * java/awt/peer/WindowPeer.java: New file.
4078 * java/util/Collection.java: New file.
4079 * java/util/Comparator.java: New file.
4080 * java/util/Iterator.java: New file.
4081 * java/util/List.java: New file.
4082 * java/util/ListIterator.java: New file.
4083 * Makefile.am: Added above files.
4084 * Makefile.in: Rebuilt.
4086 2000-04-10 Warren Levy <warrenl@cygnus.com>
4088 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4089 * java/lang/FirstThread.java: Ditto.
4090 * java/lang/StringBuffer.java: Ditto.
4091 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4093 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4094 Special case handled in java.math.BigInteger.
4095 * java/math/BigInteger.java (divide): Handle the special case when
4096 dividing by 1 and the high bit of the dividend is set.
4097 (setShiftRight): Handle case when count == 0.
4099 2000-04-05 Andrew Haley <aph@cygnus.com>
4101 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4104 2000-04-05 Andrew Haley <aph@cygnus.com>
4106 * sysdep/ia64.c (rse_address_add): Delete.
4107 (IS_NaT_COLLECTION_ADDR): Delete.
4108 (ia64_backtrace_helper): check for null unwind_info.
4110 * sysdep/ia64-frame.h: add calc_caller_bsp.
4112 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4115 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4116 (_Jv_remI): Likewise.
4117 (_Jv_divJ): Likewise.
4118 (_Jv_remJ): Likewise.
4120 * interpret.cc (continue1): Use divide subroutines to guarantee
4121 correct Java standard behaviour.
4122 Floating-point division should not abort; make it so.
4124 2000-03-29 Tom Tromey <tromey@cygnus.com>
4126 * configure: Rebuilt.
4127 * configure.in: Test against `libgcj_sjlj', not
4128 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4129 to be set even when using sjlj.
4131 2000-03-24 Andrew Haley <aph@cygnus.com>
4133 * Makefile.am: Add file addr2name.awk.
4134 * Makefile.in: Rebuilt.
4135 * addr2name.awk: New file.
4136 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4138 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4141 2000-03-22 Andrew Haley <aph@cygnus.com>
4143 * configure.host: Add -funwind-tables for IA64.
4144 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4145 * Makefile.in: Rebuilt.
4146 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4147 * sysdep/ia64.c: New file.
4148 * sysdep/ia64-frame.h: New file.
4149 * configure.in: Add sysdep/ia64.c for ia64.
4150 * configure: Rebuilt.
4152 2000-03-17 Andrew Haley <aph@cygnus.com>
4154 * java/lang/natString.cc: Remove `register' keyword.
4155 interpret.cc: ditto.
4157 2000-03-16 Andrew Haley <aph@cygnus.com>
4159 * configure.host (ia64): Enable interpreter.
4161 2000-03-14 Hans Boehm <boehm@acm.org>
4163 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4165 2000-03-14 Andrew Haley <aph@cygnus.com>
4167 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4170 2000-03-10 Andrew Haley <aph@cygnus.com>
4172 * java/lang/ieeefp.h: Import latest version from fdlibm.
4174 2000-03-14 Andrew Haley <aph@cygnus.com>
4176 * prims.cc (_Jv_ThrowSignal): New function.
4177 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4179 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4180 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4181 * include/ppc-signal.h: New file.
4183 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4185 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4186 * java/lang/natThread.java (initialize_native): Cast `data' to
4188 * gnu/gcj/RawData.java: Clarify documentation.
4190 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4191 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4192 `jarFile', not `jarFileURL'.
4194 2000-05-15 Andrew Haley <aph@cygnus.com>
4196 * include/ppc-signal.h: New file.
4198 2000-05-11 Tom Tromey <tromey@cygnus.com>
4200 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4201 file headers, don't include `size' in the skip call.
4203 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4205 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4206 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4208 (replace): Reimplemented. Fix javadoc.
4209 (reverse): Call ensureCapacity_unsynchronized().
4210 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4212 (replace): Calculate length for arraycopy() correctly.
4214 2000-05-09 Tom Tromey <tromey@cygnus.com>
4216 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4218 (insert(int,char[],int,int): New method.
4219 (delete): New method from Classpath.
4220 (deleteCharAt): Likewise.
4221 (substring): Likewise.
4222 (shared): No longer private.
4223 Added JavaDoc comments from Classpath.
4224 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4227 2000-05-07 Tom Tromey <tromey@cygnus.com>
4229 * Makefile.in: Rebuilt.
4230 * Makefile.am (LIBLINK): New macro.
4231 (libgcj_la_LINK): Use it.
4232 (libgcjawt_la_LINK): Likewise.
4234 2000-05-06 Tom Tromey <tromey@cygnus.com>
4236 * Makefile.in: Rebuilt.
4237 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4239 2000-05-05 Tom Tromey <tromey@cygnus.com>
4241 Fix for PR libgcj/220:
4242 * Makefile.in: Rebuilt.
4243 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4244 (jv_convert_LDFLAGS): Likewise.
4245 (libgcj_la_LDFLAGS): Likewise.
4246 (GCJLINK): New macro.
4247 (jv_convert_LINK): Use it.
4248 (gij_LINK): Likewise.
4249 (libgcj_la_LINK): New macro.
4250 (libgcjawt_la_LINK): Likewise.
4252 2000-05-04 Tom Tromey <tromey@cygnus.com>
4254 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4256 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4260 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4262 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4263 (_Jv_IsAssignableFrom): Ditto.
4264 (_Jv_IsInstanceOf): Ditto.
4265 (_Jv_CheckCast): Ditto.
4266 (_Jv_CheckArrayStore): Ditto.
4267 * java/lang/Class.h (_Jv_InitClass): Ditto.
4268 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4273 (_Jv_MonitorExit): Ditto.
4274 * boehm.cc (_Jv_MarkObj): Ditto.
4275 (_Jv_MarkObj): Ditto.
4276 (_Jv_MarkArray): Ditto.
4277 * prims.cc (_Jv_AllocObject): Ditto.
4278 (_Jv_NewObjectArray): Ditto.
4279 (_Jv_NewPrimArray): Ditto.
4280 (_Jv_Malloc): Ditto.
4281 (_Jv_Realloc): Ditto.
4282 (_Jv_MallocUnchecked): Ditto.
4288 2000-05-04 Tom Tromey <tromey@cygnus.com>
4290 * java/util/Locale.java (Locale): Don't explicitly check for
4292 * java/util/Hashtable.java (containsKey): Don't explicitly check
4295 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4297 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4299 * java/text/StringCharacterIterator.java
4300 (StringCharacterIterator): Don't check for null.
4301 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4303 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4304 check for null pointer.
4305 (leaveGroup): Likewise.
4306 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4308 (setData): Likewise.
4309 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4312 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4314 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4315 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4316 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4317 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4318 -rpath for in-gcc builds.
4319 * Makefile.in: Rebuilt.
4321 2000-04-28 Tom Tromey <tromey@cygnus.com>
4323 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4326 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4328 * libjava/java/lang/String.java (toString): Remove `final' hack.
4330 2000-04-05 Tom Tromey <tromey@cygnus.com>
4332 Runtime support for PR gcj/2:
4333 * prims.cc (_Jv_ThrowNullPointerException): New function.
4334 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4336 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4338 * prims.cc (_Jv_NewObjectArray): Fix typo.
4340 2000-04-26 Tom Tromey <tromey@cygnus.com>
4342 * Makefile.in: Rebuilt.
4343 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4345 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4347 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4350 2000-04-22 Anthony Green <green@cygnus.com>
4352 * include/jvm.h (__builtin_expect): Define as unused for now.
4353 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4357 (_Jv_MonitorExit): Ditto.
4358 * boehm.cc (_Jv_MarkObj): Ditto.
4359 (_Jv_MarkObj): Ditto.
4360 (_Jv_MarkArray): Ditto.
4361 (_Jv_AllocBytes): Ditto.
4362 * prims.cc (_Jv_AllocObject): Ditto.
4363 (_Jv_NewObjectArray): Ditto.
4364 (_Jv_NewPrimArray): Ditto.
4365 (_Jv_Malloc): Ditto.
4366 (_Jv_Realloc): Ditto.
4367 (_Jv_MallocUnchecked): Ditto.
4373 * include/Makefile.in: Rebuilt.
4374 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4376 2000-04-21 Tom Tromey <tromey@cygnus.com>
4378 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4379 Yet another new version from Classpath.
4381 Fix for PR libgcj/15:
4382 * java/util/natGregorianCalendar.cc (_REENTRANT,
4383 _POSIX_PTHREAD_SEMANTICS): Don't define.
4384 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4385 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4387 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4389 * configure: Rebuilt.
4390 * configure.in: If using POSIX threads, define _REENTRANT if
4391 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4392 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4394 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4395 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4396 version from Classpath.
4398 Fix for PR libgcj/213:
4399 * Makefile.in: Rebuilt.
4400 * Makefile.am (gij_SOURCES): Added gij.cc.
4401 (EXTRA_gij_SOURCES): Removed.
4402 (gij_LDADD): Removed gij.lo.
4403 (gij_DEPENDENCIES): Likewise.
4404 ($(gij_OBJECTS)): Depend on nat_headers.
4406 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4407 `setURL', not `url.set'.
4409 2000-04-20 Tom Tromey <tromey@cygnus.com>
4411 Fix for PR java.io/204:
4412 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4413 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4416 Fix for PR libgcj/212:
4417 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4418 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4419 * java/lang/Class.h (_Jv_word): Declare.
4421 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4423 2000-04-19 Tom Tromey <tromey@cygnus.com>
4425 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4426 doesn't have a loader.
4428 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4430 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4431 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4433 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4435 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4437 (available): Initialize `where' to prevent bogus compiler warning.
4439 2000-04-12 Tom Tromey <tromey@cygnus.com>
4441 * java/lang/natString.cc (intern): Temporarily disable finalizer
4444 * java/lang/natString.cc (unintern): Added `obj' argument.
4445 (intern): Register finalizer for string.
4446 * java/lang/String.java (unintern): Now static; added obj
4449 2000-04-11 Tom Tromey <tromey@cygnus.com>
4451 * java/util/Vector.java (VectorEnumeration): Now `final'.
4452 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4453 (HashtableEnumeration): Likewise.
4454 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4455 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4457 2000-04-10 Warren Levy <warrenl@cygnus.com>
4459 * java/io/ObjectStreamException.java: New file.
4460 * java/io/OptionalDataException.java: New file.
4461 * java/io/StreamCorruptedException.java: New file.
4462 * java/math/BigDecimal.java: New file.
4463 * java/sql/CallableStatement.java: New file.
4464 * java/sql/Connection.java: New file.
4465 * java/sql/DataTruncation.java: New file.
4466 * java/sql/DatabaseMetaData.java: New file.
4467 * java/sql/Date.java: New file.
4468 * java/sql/Driver.java: New file.
4469 * java/sql/DriverManager.java: New file.
4470 * java/sql/DriverPropertyInfo.java: New file.
4471 * java/sql/PreparedStatement.java: New file.
4472 * java/sql/ResultSet.java: New file.
4473 * java/sql/ResultSetMetaData.java: New file.
4474 * java/sql/SQLException.java: New file.
4475 * java/sql/SQLWarning.java: New file.
4476 * java/sql/Statement.java: New file.
4477 * java/sql/Time.java: New file.
4478 * java/sql/Timestamp.java: New file.
4479 * java/sql/Types.java: New file.
4480 * Makefile.am: Added above new files.
4481 * Makefile.in: Rebuilt.
4483 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4484 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4485 DatagramSocket constructor instead of null.
4487 2000-04-08 Anthony Green <green@cygnus.com>
4489 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4492 2000-04-08 Anthony Green <green@cygnus.com>
4494 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4495 (_Jv_MutexUnlock): Ditto.
4496 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4497 (_Jv_MutexUnlock): Ditto.
4499 2000-04-08 Anthony Green <green@cygnus.com>
4501 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4502 (ensureCapacity_unsynchronized): New private method.
4503 (append): Use ensureCapacity_unsynchronized.
4505 2000-04-08 Tom Tromey <tromey@cygnus.com>
4507 * Makefile.in: Rebuilt.
4508 * Makefile.am (awt_java_source_files): Added new files.
4509 * java/awt/IllegalComponentStateException.java: New file.
4510 * java/awt/ItemSelectable.java: New file.
4511 * java/awt/event/WindowEvent.java: Finished.
4512 * java/awt/event/TextEvent.java: Finished.
4513 * java/awt/event/ContainerEvent.java: New file.
4514 * java/awt/Component.java (getX, getY): New methods.
4515 * java/awt/event/PaintEvent.java: New file.
4516 * java/awt/event/MouseEvent.java: New file.
4517 * java/awt/ActiveEvent.java: New file.
4518 * java/awt/event/KeyEvent.java: Finished.
4519 * java/awt/event/ItemEvent.java: New file.
4520 * java/awt/Adjustable.java: New file.
4521 * java/awt/event/InputMethodEvent.java: New file.
4522 * java/awt/event/InputEvent.java: Finished.
4523 * java/awt/event/FocusEvent.java: New file.
4524 * java/awt/event/MouseMotionAdapter.java: New file.
4525 * java/awt/event/MouseAdapter.java: New file.
4526 * java/awt/event/KeyAdapter.java: New file.
4527 * java/awt/event/FocusAdapter.java: New file.
4528 * java/awt/event/ContainerAdapter.java: New file.
4529 * java/awt/event/ComponentEvent.java: Finished.
4530 * java/awt/event/AdjustmentEvent.java: New file.
4531 * java/awt/event/ComponentAdapter.java: New file.
4532 * java/awt/event/ActionEvent.java: Finished.
4533 * java/awt/event/MouseMotionListener.java: New file.
4534 * java/awt/event/MouseListener.java: New file.
4535 * java/awt/event/ItemListener.java: New file.
4536 * java/awt/event/InputMethodListener.java: New file.
4537 * java/awt/event/ContainerListener.java: New file.
4538 * java/awt/event/FocusListener.java: New file.
4539 * java/awt/event/ComponentListener.java: New file.
4540 * java/awt/event/AWTEventListener.java: New file.
4541 * java/awt/event/AdjustmentListener.java: New file.
4543 2000-04-08 Anthony Green <green@cygnus.com>
4545 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4546 check when we have to.
4548 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4551 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4554 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4555 inline hasMoreElements.
4557 2000-04-05 Tom Tromey <tromey@cygnus.com>
4559 * configure: Rebuilt.
4560 * configure.in: Recognize --enable-java-awt.
4561 (AWT): New conditional.
4562 * Makefile.in: Rebuilt.
4563 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4565 (libgcjawt_la_SOURCES): New macro.
4566 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4567 (libgcjawt_la_DEPENDENCIES): Likewise.
4568 (libgcjawt_la_LIBADD): Likewise.
4569 (libgcjawt_la_LDFLAGS): Likewise.
4570 (libgcj.zip): Depend on cond_java_awt_source_files
4571 (cond_awt_java_source_files): New macro.
4572 (MOSTLYCLEANFILES): Added awto_files.
4573 (awto_files): New macro. Use where javao_files used.
4574 (nat_headers): Use cond_awt_java_source_files.
4576 2000-04-04 Tom Tromey <tromey@cygnus.com>
4578 * Makefile.in: Rebuilt.
4579 * Makefile.am (awt_java_source_files): Added AWTException.java.
4580 * java/awt/AWTException.java: New file.
4582 2000-04-03 Tom Tromey <tromey@cygnus.com>
4584 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4585 commentary from Alex.
4587 * Makefile.in: Rebuilt.
4588 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4591 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4593 * configure: Rebuilt.
4594 * configure.in: Add --disable-jvmpi.
4595 * include/config.h.in: Rebuilt.
4596 * acconfig.h: Add ENABLE_JVMPI.
4598 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4599 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4600 (_Jv_JVMPI_Notify_THREAD_END): New define.
4601 (_Jv_JVMPI_Notify_THREAD_END): New define.
4602 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4603 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4604 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4606 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4609 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4610 (finish_): Generate JVMPI thread end events.
4611 (run_): Generate JVMPI thread start events.
4612 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4613 preloaded JNI library.
4614 Include JVMPI headers if necessary.
4615 (run): Generate JVMPI thread start events.
4617 * boehm.cc: Define GC_disable and GC_enable.
4618 (_Jv_DisableGC): New function.
4619 (_Jv_EnableGC): New function.
4620 (disable_gc_mutex): Declare.
4621 * nogc.cc (_Jv_DisableGC): New function.
4622 (_Jv_EnableGC): New function.
4624 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4625 (_Jv_JVMPI_Interface): Define.
4626 (jvmpiEnableEvent): New function.
4627 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4629 * include/jvmpi.h: New file.
4631 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4633 * Makefile.in: New #defines and friends for Thread.h.
4634 * Makefile.am: Ditto.
4635 * posix-threads.cc: (struct starter): Remove `object'.
4636 (_Jv_CondWait): Use interruptable condition variables and new
4637 recursive mutexes. New return codes on interrupt or non-ownership
4639 (_Jv_CondNotify): Ditto.
4640 (_Jv_CondNotifyAll): Ditto.
4641 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4642 the target thread by signaling its wait condition.
4643 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4644 not the starter struct. Initialize wait_mutex and wait_cond.
4645 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4647 (_Jv_MutexUnlock): Ditto.
4648 (really_start): Set info->data->thread from pthread_self() to work
4649 around a race condition. Destroy wait_mutex and wait_cond when run()
4651 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4652 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4654 startable_flag: New private field.
4655 (Thread): Initialize `startable_flag'.
4656 (toString): Check for null thread group.
4657 * java/lang/natThread.cc: (struct natThread): New fields
4658 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4659 (class locker): Removed.
4660 (initialize_native): Initialize `join_cond' and `join_mutex'.
4661 (interrupt): Now just calls _Jv_ThreadInterrupt().
4662 (join): Simplified. Just wait on the target thread's join condition.
4663 (finish_): Remove join list code. Unset thread group. Signal
4664 potential joiners by notifying the dying threads join_cond.
4665 (start): Check for illegal restarts.
4666 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4668 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4669 #defines and #ifdefs.
4670 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4671 `wait_mutex', `next'.
4672 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4673 directly mapping to pthread_cond_t.
4674 (struct _Jv_Mutex_t): New recursive implementation.
4675 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4676 _Jv_HaveCondDestroy: Never define this for posix-threads.
4677 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4678 (_Jv_CondNotifyAll): Ditto.
4679 (_Jv_MutexLock): Ditto.
4680 (_Jv_MutexUnlock): Ditto.
4681 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4682 (_Jv_MutexDestroy): Ditto.
4683 (_Jv_CondDestroy): Removed.
4684 (_Jv_PthreadGetMutex): Removed.
4685 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4686 error. Add a FIXME about this.
4687 (_Jv_CondNotifyAll): Ditto.
4688 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4689 _JV_NOT_OWNER on other errors. Add FIXME.
4691 2000-03-26 Tom Tromey <tromey@cygnus.com>
4693 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4695 (call): Don't throw exception here.
4697 2000-03-26 Tom Tromey <tromey@cygnus.com>
4699 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4700 * interpret.cc: Use SIZEOF_VOID_P.
4701 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4702 (_Jv_loadLong): Likewise.
4703 (_Jv_storeDouble): Likewise.
4704 * configure: Rebuilt.
4705 * configure.in: Check size of void*.
4707 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4709 2000-03-26 Hans Boehm <boehm@acm.org>
4711 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4712 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4714 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4715 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4716 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4717 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4719 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4720 (FFI_RAW_SIZE): Likewise.
4721 (_Jv_InterpMethod::ncode): Use them.
4722 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4723 STORED): Define differently on a 64 bit machine.
4724 (continue1): Use ffi_java_raw_call when appropriate.
4726 2000-03-24 Warren Levy <warrenl@cygnus.com>
4728 * java/math/BigInteger.java(divide): Handle the special case when
4729 dividing by 1 and the high bit of the dividend is set.
4730 (setShiftRight): Handle case when count == 0.
4732 2000-03-24 Warren Levy <warrenl@cygnus.com>
4734 * java/awt/Font.java(isBold): Fix syntax error.
4736 * java/awt/Frame.java(postEvent): ditto.
4737 * java/awt/Menu.java(postEvent): ditto.
4738 * java/awt/MenuBar.java(postEvent): ditto.
4739 * java/awt/Toolkit.java(init): Included a stub.
4741 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4743 * java/awt/Event.java: Add all the event type constants.
4744 (Event): Implemented constructors.
4745 (controlDown): Implemented.
4746 (metaDown): Implemented.
4747 (paramString): Stubbed.
4748 (shiftDown): Implemented.
4749 (toString): Implemented.
4750 (translate): Implemented.
4752 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4754 * java/lang/natClass.cc (isInstance): Initialize `this'.
4755 (isAssignableFrom): Initialize `this' and `klass'.
4756 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4757 implemented by any loaded class, so return false.
4758 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4759 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4761 2000-03-19 Warren Levy <warrenl@cygnus.com>
4763 * java/awt/Color.java: Specified java.io for Serializable.
4764 * java/awt/Toolkit.java: Imported java.net.URL.
4766 2000-03-19 Warren Levy <warrenl@cygnus.com>
4768 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4770 2000-03-16 Warren Levy <warrenl@cygnus.com>
4772 * java/awt/Color.java: New file.
4773 * java/awt/Graphics.java: New file.
4774 * java/awt/Image.java: New file.
4775 * java/awt/Paint.java: New file.
4776 * java/awt/PaintContext.java: New file.
4777 * java/awt/Transparency.java: New file.
4778 * java/util/Collection.java: New file.
4779 * java/util/Comparator.java: New file.
4780 * java/util/Iterator.java: New file.
4781 * java/util/List.java: New file.
4782 * java/util/ListIterator.java: New file.
4783 * Makefile.am: Added above new files.
4784 * Makefile.in: Rebuilt.
4786 * java/awt/Font.java (PLAIN): New field.
4788 (ITALIC): New field.
4789 (ROMAN_BASELINE): New field.
4790 (CENTER_BASELINE): New field.
4791 (HANGING_BASELINE): New field.
4795 (pointSize): New field.
4796 (Font): Implemented constructor.
4797 (isPlain): Implemented method.
4798 (isBold): Implemented method.
4799 (isItalic): Implemented method.
4800 (getName): Implemented method.
4801 (getStyle): Implemented method.
4802 (getSize): Implemented method.
4803 (getSize2D): Implemented method.
4805 * java/awt/Frame.java (getFont): Stubbed.
4806 (postEvent): Stubbed.
4808 * java/awt/Menu.java (postEvent): Stubbed.
4809 * java/awt/MenuBar.java (getFont): Stubbed.
4810 (postEvent): Stubbed.
4811 * java/awt/Toolkit.java (getImage): Added abstract method.
4813 2000-03-15 Tom Tromey <tromey@cygnus.com>
4815 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4817 * prims.cc (win32_exception_handler): Reformatted.
4819 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4820 (_Jv_HaveMutexDestroy): Likewise.
4822 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4824 * java/io/natFileDescriptorWin32.cc: New file.
4825 * java/io/natFileWin32.cc: New file.
4826 * java/net/natInetAddress.cc: Added conditional inclusion of
4827 Windows / Winsock headers.
4828 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4829 inclusion of Windows / Winsock headers.
4830 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4831 Windows / Winsock headers.
4832 * include/win32-signal.h: New file.
4833 * include/win32-threads.h: New file.
4834 * win32-threads.cc: New file.
4835 * exception.cc (win32_get_restart_frame): New function.
4836 * prims.cc (win32_exception_handler): New function.
4837 (main_init) Performs Winsock initialisation.
4838 (main_init) Installs exeception handler.
4840 2000-03-14 Tom Tromey <tromey@cygnus.com>
4842 * jni.cc (mangled_name): Fixed assertion.
4843 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4844 turned assert into actual failure.
4846 2000-03-09 Warren Levy <warrenl@cygnus.com>
4848 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4849 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4850 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4852 2000-03-09 Warren Levy <warrenl@cygnus.com>
4854 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4855 * java/security/DigestException.java: New file.
4856 * java/security/GeneralSecurityException.java: New file.
4857 * java/security/InvalidAlgorithmParameterException.java: New file.
4858 * java/security/InvalidKeyException.java: New file.
4859 * java/security/InvalidParameterException.java: New file.
4860 * java/security/Key.java: New file.
4861 * java/security/KeyException.java: New file.
4862 * java/security/KeyPair.java: New file.
4863 * java/security/KeyPairGenerator.java: New file.
4864 * java/security/KeyPairGeneratorSpi.java: New file.
4865 * java/security/NoSuchProviderException.java: New file.
4866 * java/security/PrivateKey.java: New file.
4867 * java/security/Provider.java: New file.
4868 * java/security/PublicKey.java: New file.
4869 * java/security/SecureRandom.java: New file.
4870 * java/security/Security.java: New file.
4871 * java/security/Signature.java: New file.
4872 * java/security/SignatureException.java: New file.
4873 * java/security/interfaces/DSAKey.java: New file.
4874 * java/security/interfaces/DSAParams.java: New file.
4875 * java/security/interfaces/DSAPrivateKey.java: New file.
4876 * java/security/interfaces/DSAPublicKey.java: New file.
4877 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4878 * java/security/interfaces/RSAPrivateKey.java: New file.
4879 * java/security/interfaces/RSAPublicKey.java: New file.
4880 * java/security/spec/AlgorithmParameterSpec.java: New file.
4881 * java/security/spec/InvalidKeySpecException.java: New file.
4882 * java/security/spec/InvalidParameterSpecException.java: New file.
4883 * java/security/spec/KeySpec.java: New file.
4884 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4885 * java/security/spec/RSAPrivateKeySpec.java: New file.
4886 * java/security/spec/RSAPublicKeySpec.java: New file.
4887 * Makefile.am: Added above java.security files.
4888 * Makefile.in: Rebuilt.
4890 * java/security/MessageDigest.java: Rewritten.
4891 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4893 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4897 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4899 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4900 _Jv_PrepareConstantTimeTables.
4901 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4902 classes should have an IDT, so don't return if klass is an array
4905 2000-03-08 Tom Tromey <tromey@cygnus.com>
4907 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4908 of `void' to be created.
4910 2000-03-08 Warren Levy <warrenl@cygnus.com>
4912 * java/math/BigInteger.java(signum): Handle zero properly.
4914 2000-03-07 Tom Tromey <tromey@cygnus.com>
4916 * All files: Updated copyright information.
4917 * COPYING: New file.
4918 * COPYING.LIB: Removed.
4919 * LIBGCJ_LICENSE: We now use GPL + special exception.
4921 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4923 * resolve.cc (_Jv_SearchMethodInClass): New function.
4924 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4925 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4927 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4929 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4930 (struct _Jv_ifaces): New declaration.
4931 JV_CLASS: New macro definition.
4932 (getComponentType): Relocate below isArray() for inlining.
4933 (getModifiers): Declare `inline'.
4934 (getSuperclass): Ditto.
4936 (isPrimitive): Ditto.
4937 (_Jv_IsAssignableFrom): New prototype.
4938 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4940 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4941 Check for JV_STATE_DONE before invoking initializeClass().
4942 (_Jv_PrepareConstantTimeTables): New prototype.
4943 (_Jv_GetInterfaces): Ditto.
4944 (_Jv_GenerateITable): Ditto.
4945 (_Jv_GetMethodString): Ditto.
4946 (_Jv_AppendPartialITable): Ditto.
4947 (_Jv_FindIIndex): Ditto.
4948 depth, ancestors, idt: New class fields.
4950 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4951 inline function `_Jv_IsAssignableFrom'. Use that function.
4952 (isInstance): Declare `inline'.
4953 (initializeClass): Get lock on class before checking `state'. Unlock
4954 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4956 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4957 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4958 class->depth and ancestor table.
4959 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4960 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4961 _Jv_IsAssignableFrom.
4962 (_Jv_CheckArrayStore): Ditto.
4963 (_Jv_LookupInterfaceMethodIdx): New function.
4964 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4965 (_Jv_PrepareConstantTimeTables): New function.
4966 (_Jv_IndexOf): Ditto.
4967 (_Jv_GetInterfaces): Ditto.
4968 (_Jv_GenerateITable): Ditto.
4969 (_Jv_GetMethodString): Ditto.
4970 (_Jv_AppendPartialITable): Ditto.
4971 iindex_mutex, iindex_mutex_initialized: New static fields.
4972 (_Jv_FindIIndex): New function.
4974 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4976 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4977 (_Jv_CheckArrayStore): Ditto.
4978 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4979 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4980 Moved to gcj/array.h.
4981 (_Jv_Realloc): New function.
4983 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4985 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4986 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4987 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4988 JvNewDoubleArray): Implementations moved from prims.cc and
4991 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4993 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4995 2000-03-06 Tom Tromey <tromey@cygnus.com>
4997 * jni.cc (MARK_NONE): New define.
4998 (MARK_USER): Likewise.
4999 (MARK_SYSTEM): Likewise.
5000 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5002 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5003 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5004 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5005 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5007 (call): Use MARK_SYSTEM.
5008 (_Jv_GetJNIEnvNewFrame): New function.
5009 (_Jv_LookupJNIMethod): New function.
5010 (_Jv_JNI_PopSystemFrame): New function.
5011 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5013 2000-03-05 Tom Tromey <tromey@cygnus.com>
5015 Fix for PR libgcj/43:
5016 * include/Makefile.in: Rebuilt.
5017 * include/Makefile.am (include_HEADERS): New define.
5019 2000-03-05 Anthony Green <green@redhat.com>
5021 * gcj/javaprims.h ("Java"): Remove FirstThread.
5023 * configure.host: Fix __NO_MATH_INLNES botch.
5025 * Makefile.in: Rebuilt.
5026 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5027 (gnu/gcj/runtime/FirstThread.h): Moved.
5028 (ordinary_java_source_files): Move FirstThread.java.
5029 * prims.cc: Deal with FirstThread movement.
5031 (_Jv_RunMain): Ditto.
5033 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5034 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5036 2000-03-05 Warren Levy <warrenl@cygnus.com>
5038 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5039 Handle null addresses.
5041 2000-03-04 Anthony Green <green@redhat.com>
5043 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5046 2000-03-04 Anthony Green <green@redhat.com>
5048 * configure: Rebuilt.
5049 * configure.in (ZLIBTESTSPEC): New macro.
5050 (GCTESTSPEC): New macro.
5051 (LIBGCJTESTSPEC): New macro.
5052 * libgcj-test.spec.in: New file.
5054 2000-03-02 Tom Tromey <tromey@cygnus.com>
5056 * include/java-interp.h: Don't include MethodInvocation.h.
5057 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5058 * Makefile.in: Rebuilt.
5059 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5060 (ordinary_java_source_files): Don't mention
5061 MethodInvocation.java.
5062 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5063 * interpret.cc (MethodInvocation::continue1): Removed.
5064 (run): Handle exceptions here.
5065 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5067 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5069 (defineClass2): Removed.
5071 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5073 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5075 (hack_call): Removed.
5077 * java/lang/Class.h (Class): Removed hackRunInitializers,
5079 * java/lang/natClass.cc (hackRunInitializers): Removed.
5080 (initializeClass): Catch exceptions here.
5081 Include ExceptionInInitializerError.h.
5082 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5085 * java/lang/Object.h (Object): Don't mention hack12_6.
5086 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5088 * java/lang/Object.java (hack12_6): Removed.
5090 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5091 (start): Use run_, not run__.
5092 * java/lang/Thread.java (run_): Renamed from run__; old run_
5095 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5096 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5097 (_Jv_JNI_DefineClass): Likewise.
5098 (_Jv_JNI_ThrowNew): Likewise.
5099 (_Jv_JNI_AllocObject): Likewise.
5100 (_Jv_JNI_GetAnyMethodID): Likewise.
5101 (_Jv_JNI_CallAnyMethodV): Likewise.
5102 (_Jv_JNI_CallAnyMethodA): Likewise.
5103 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5104 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5105 (_Jv_JNI_GetAnyFieldID): Likewise.
5106 (_Jv_JNI_NewString): Likewise.
5107 (_Jv_JNI_NewStringUTF): Likewise.
5108 (_Jv_JNI_GetStringUTFChars): Likewise.
5109 (_Jv_JNI_NewObjectArray): Likewise.
5110 (_Jv_JNI_NewPrimitiveArray): Likewise.
5111 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5112 (_Jv_JNI_GetStringRegion): Likewise.
5113 (_Jv_JNI_GetStringUTFRegion): Likewise.
5114 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5115 (_Jv_JNI_MonitorEnter): Likewise.
5116 (_Jv_JNI_MonitorExit): Likewise.
5117 (_Jv_JNI_ToReflectedField): Likewise.
5118 (_Jv_JNI_ToReflectedMethod): Likewise.
5119 (_Jv_JNI_RegisterNatives): Likewise.
5120 (_Jv_JNI_AttachCurrentThread): Likewise.
5121 (_Jv_JNI_DestroyJavaVM): Likewise.
5123 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5125 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5126 error caused by the incorrect casting of a long to an int.
5128 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5130 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5131 SIGSEV caused by use of the wrong instance variable.
5133 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5135 * java/io/File.java (File(String, String)): For dirPath, treat an
5136 empty String the same as `null'.
5138 2000-02-26 Anthony Green <green@cygnus.com>
5140 * gnu/gcj/io/MimeTypes.java: Test for null.
5142 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5143 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5145 * java/net/URLConnection.java: Update copyright notice.
5147 2000-02-25 Tom Tromey <tromey@cygnus.com>
5149 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5152 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5154 * java/net/URLConnection.java (initializeDateFormats): New
5156 (getHeaderFieldDate): Call initializeDateFormats if required.
5157 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5159 Fix for PR libgcj/38.
5161 2000-02-24 Warren Levy <warrenl@cygnus.com>
5163 * java/math/BigInteger.java(ival): Made private.
5167 2000-02-20 Anthony Green <green@cygnus.com>
5169 * Makefile.in: Rebuilt.
5170 * Makefile.am (ordinary_java_source_files): Add
5171 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5173 * scripts/MakeDefaultMimeTypes.java: New file.
5174 * scripts/mime.types: New file.
5175 * scripts/classes.pl: Moved from top level.
5176 * classes.pl: Moved to scripts directory.
5178 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5180 * gnu/gcj/io/MimeTypes.java: New file.
5181 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5183 2000-02-20 Tom Tromey <tromey@cygnus.com>
5185 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5187 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5189 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5192 2000-02-18 Tom Tromey <tromey@cygnus.com>
5194 * include/jvm.h (_Jv_GetJavaVM): Declare.
5195 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5196 (_Jv_MethodBase::get_method): New method.
5197 (_Jv_JNIMethod::set_function): New method.
5198 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5199 (_Jv_JNI_RegisterNatives): New function.
5200 (_Jv_JNIFunctions): Updated for new functions.
5201 (_Jv_GetJavaVM): New function.
5202 (_Jv_JNI_GetJavaVM): Use it. Now static.
5203 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5204 is already a Java thread but does not have a JNIEnv yet.
5206 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5209 2000-02-17 Tom Tromey <tromey@cygnus.com>
5211 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5214 2000-02-16 Tom Tromey <tromey@cygnus.com>
5216 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5218 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5219 (_Jv_JNI_NewObject): Likewise.
5220 (_Jv_JNI_NewObjectA): Likewise.
5221 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5222 as "return" type to _Jv_CallAnyMethodA.
5223 (_Jv_JNI_CallAnyMethodA): Likewise.
5224 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5226 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5229 2000-02-15 Tom Tromey <tromey@cygnus.com>
5231 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5233 (init_cif): Added `rtype_p' argument.
5234 * include/java-interp.h (class _Jv_MethodBase): Added
5236 (class _Jv_InterpMethod): Removed args_raw_size.
5237 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5238 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5239 class pointer as well as the ordinary arguments.
5241 * jni.cc (mangled_name): Skip leading `(' in signature.
5243 * jni.cc (add_char): Added missing `else'.
5245 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5248 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5252 * java/lang/natRuntime.cc (_load): Include library path with
5255 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5258 * java/lang/natThread.cc (dumpStack): Removed.
5259 * java/lang/Thread.java (dumpStack): Implemented.
5261 2000-02-15 Tom Tromey <tromey@cygnus.com>
5263 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5264 with `lib' for loadLibrary. Fixes PR gcj/150.
5266 2000-02-14 Warren Levy <warrenl@cygnus.com>
5268 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5270 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5274 (modPow): Rewritten to not use the naive, slow, brute force approach.
5275 (isProbablePrime): Implemented.
5276 (testBit): Implemented.
5277 (flipBit): Implemented.
5278 (getLowestSetBit): Implemented.
5280 2000-02-16 Anthony Green <green@redhat.com>
5282 * configure.host: Use the same options for i386 and i486 as we do
5285 2000-02-12 Tom Tromey <tromey@cygnus.com>
5287 * java/io/File.java (createTempFile): Use low bits from counter,
5290 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5292 * THANKS: More thanks.
5294 2000-02-11 Tom Tromey <tromey@cygnus.com>
5296 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5297 astore instruction. From Hans Boehm.
5299 2000-02-11 Warren Levy <warrenl@cygnus.com>
5301 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5302 (BigInteger(String)): New constructor.
5303 (not): Rewritten using version from Kawa's BitOps class.
5304 (valueOf): New private methods from Kawa's BitOps class.
5311 (andNot): Implemented.
5312 (clearBit): Implemented.
5313 (setBit): Implemented.
5314 (bitCount): Implemented.
5315 (toByteArray): Implemented.
5317 2000-02-11 Tom Tromey <tromey@cygnus.com>
5319 * java/io/File.java (nextValue): Now synchronized.
5321 2000-02-10 Tom Tromey <tromey@cygnus.com>
5323 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5324 * java/io/FileDescriptor.java (EXCL): New static field.
5325 * java/io/File.java (tmpdir): New static field.
5326 (createTempFile): New method.
5327 (nextValue): New method.
5328 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5331 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5332 (jboolean): Declare as an attributed int, not a bool.
5333 (_Jv_func): Declare differently for C.
5335 * gnu/gcj/jni/natNativeThread.cc: New file.
5336 * gnu/gcj/jni/NativeThread.java: New file.
5337 * java/lang/Thread.java (data): Now a RawData.
5338 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5340 * Makefile.in: Rebuilt.
5341 * Makefile.am (java/lang/Thread.h): New target.
5342 (ordinary_java_source_files): Added NativeThread.java.
5343 (nat_source_files): Added natNativeThread.cc.
5344 * java/lang/natThread.cc: Include <jni.h>
5345 (struct natThread): Added `jni_env' field.
5346 (_Jv_GetCurrentJNIEnv): New function.
5347 (_Jv_SetCurrentJNIEnv): Likewise.
5348 (initialize_native): Initialize jni_env.
5350 * jni.cc (ThreadGroupClass): New define.
5351 (_Jv_JNI_InvokeFunctions): New structure.
5352 (JNI_GetCreatedJavaVMs): New function.
5353 (the_vm): New global.
5354 (JNI_GetDefaultJavaVMInitArgs): New function.
5355 Include NativeThread.h.
5356 (NativeThreadClass): New define.
5357 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5358 (_Jv_JNI_DestroyJavaVM): New function.
5359 (_Jv_JNI_AttachCurrentThread): New function.
5360 (_Jv_JNI_DetachCurrentThread): New function.
5361 (_Jv_JNI_GetEnv): New function.
5362 (JNI_CreateJavaVM): New function.
5363 (_Jv_JNI_GetJavaVM): New function.
5364 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5365 * include/jni.h (JavaVMAttachArgs): New structure.
5366 (JNI_EDETACHED): New define.
5367 (JNI_EVERSION): Likewise.
5368 (JavaVM): Define properly.
5369 (struct JNIInvokeInterface): New structure.
5370 (class _Jv_JavaVM): New class.
5371 (JNI_OnLoad, JNI_OnUnload): Declare.
5372 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5373 JNI_GetCreatedJavaVMs): Declare.
5374 (JavaVMInitArgs): New typedef.
5375 (JavaVMOption): Likewise.
5376 (JNI_ERR): New define.
5379 2000-02-10 Andrew Haley <aph@cygnus.com>
5381 * interpret.cc: Don't include fdlibm.h.
5382 Replace #if with #ifdef throughout.
5383 Declare extern __ieee754_fmod.
5384 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5386 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5387 Search class hierarchy for superclass vtable.
5389 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5390 off the end of a pointer list.
5392 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5396 2000-02-09 Tom Tromey <tromey@cygnus.com>
5398 * java/lang/natRuntime.cc (_load): Call add_library.
5399 (loadLibraryInternal): Likewise.
5401 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5402 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5403 (Output_iconv::finalize): Likewise.
5405 2000-02-08 Tom Tromey <tromey@cygnus.com>
5407 * java/util/Properties.java (setProperty): New method.
5408 (store): New method.
5410 2000-02-07 Tom Tromey <tromey@cygnus.com>
5412 * java/lang/Runtime.java (_load): Declare.
5413 (load, loadLibrary): Wrote in terms of _load.
5414 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5416 (loadLibrary): Likewise.
5418 (_load): New method.
5419 (loadLibrary, load): Removed.
5421 * jni.cc (ThrowableClass): New define.
5422 (_Jv_JNI_Throw): Check argument.
5423 (_Jv_JNI_ThrowNew): Likewise.
5424 (wrap_value): Don't wrap object if it is NULL.
5425 (_Jv_JNI_DefineClass): Use wrap_value.
5426 (_Jv_JNI_FindClass): Likewise.
5427 (_Jv_JNI_GetSuperclass): Likewise.
5428 (_Jv_JNI_ExceptionOccurred): Likewise.
5429 (_Jv_JNI_AllocObject): Likewise.
5430 (_Jv_JNI_GetObjectClass): Likewise.
5431 (_Jv_JNI_NewString): Likewise.
5432 (_Jv_JNI_NewStringUTF): Likewise.
5433 (_Jv_JNI_NewObjectArray): Likewise.
5434 (_Jv_JNI_GetObjectArrayElement): Likewise.
5435 (_Jv_JNI_NewPrimitiveArray): Likewise.
5436 (_Jv_JNI_ToReflectedField): Likewise.
5437 (_Jv_JNI_ToReflectedMethod): Likewise.
5438 (_Jv_JNI_AllocObject): Check argument.
5439 (_Jv_JNI_NewObjectV): Likewise.
5440 (_Jv_JNI_NewObject): Likewise.
5441 (_Jv_JNI_NewObjectA): Likewise.
5442 (_Jv_JNI_GetObjectClass): Likewise.
5443 (_Jv_JNI_GetField): Likewise.
5444 (_Jv_JNI_SetField): Likewise.
5446 * interpret.cc (PUSHL): Don't use expression statement.
5451 * jni.cc (add_char): Conditional on INTERPRETER.
5452 (mangled_name): Likewise.
5454 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5456 (class _Jv_JNIMethod): Likewise.
5458 2000-02-04 Warren Levy <warrenl@cygnus.com>
5460 * Makefile.am: Added MPN.java and BigInteger.java.
5461 * Makefile.in: Rebuilt.
5462 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5464 * java/math/BigInteger.java: New file. Based primarily on
5465 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5467 2000-02-04 Tom Tromey <tromey@cygnus.com>
5469 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5471 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5472 if the method is native.
5473 * resolve.cc (ncode): Don't handle native methods.
5474 (_Jv_JNIMethod::ncode): New method.
5475 (_Jv_PrepareClass): Handle native methods.
5476 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5477 Include AbstractMethodError.h.
5478 (add_char): New function.
5479 (mangled_name): Likewise.
5480 * include/java-interp.h (class _Jv_JNIMethod): New class.
5481 (class _Jv_MethodBase): New class.
5482 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5483 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5486 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5487 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5488 libraries): New globals.
5489 (add_library): New function.
5490 (_Jv_FindSymbolInExecutable): New function.
5492 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5495 2000-02-04 Andrew Haley <aph@cygnus.com>
5497 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5498 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5499 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5500 printStackTrace to printRawStackTrace.
5502 2000-02-03 Tom Tromey <tromey@cygnus.com>
5504 * java/util/Calendar.java (toString): New method.
5505 * java/util/SimpleTimeZone.java (clone): New method.
5506 (toString): New method.
5507 * java/util/TimeZone.java (clone): New method.
5508 * java/text/SimpleDateFormat.java (clone): New method.
5509 * java/text/NumberFormat.java (clone): New method.
5510 (equals): New method.
5511 * java/text/Format.java (clone): New method.
5512 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5514 (clone): New method.
5515 * java/text/DateFormat.java (clone): New method.
5516 * java/text/Collator.java (clone): New method.
5518 2000-02-03 Tom Tromey <tromey@cygnus.com>
5520 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5523 2000-02-01 Tom Tromey <tromey@cygnus.com>
5525 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5526 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5527 constructing the closure if the function is native.
5528 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5529 a template function, #if'd out, or static.
5530 Include <java-interp.h>.
5532 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5534 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5536 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5537 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5539 (wrap_value): New function.
5540 (_Jv_JNI_CallAnyMethodV): Use it.
5541 (_Jv_JNI_CallAnyMethodA): Likewise.
5542 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5543 (_Jv_JNI_GetStaticField): Likewise.
5545 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5546 (_Jv_JNI_GetStaticField): Likewise.
5548 2000-01-31 Tom Tromey <tromey@cygnus.com>
5550 * prims.cc (_Jv_MallocUnchecked): New function.
5551 (main_init): Call _Jv_JNI_Init.
5552 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5553 (_Jv_JNI_Init): Declare.
5554 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5556 (_Jv_JNI_NewGlobalRef): New function.
5557 (_Jv_JNI_DeleteGlobalRef): New function.
5558 (_Jv_JNI_DeleteLocalRef): New function.
5559 (_Jv_JNI_conversion_call): Initialize and clear local reference
5561 (_Jv_JNI_NewLocalRef): New function.
5562 (struct _Jv_JNI_LocalFrame): New structure.
5563 (_Jv_JNI_PushLocalFrame): New function.
5564 (_Jv_JNI_EnsureLocalCapacity): New function.
5565 (FRAME_SIZE): New define.
5566 (_Jv_JNI_GetStringChars): Mark string, not characters.
5567 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5568 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5569 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5571 (_Jv_JNI_DefineClass): Make return value a local ref.
5572 (_Jv_JNI_FindClass): Likewise.
5573 (_Jv_JNI_GetSuperclass): Likewise.
5574 (_Jv_JNI_ExceptionOccurred): Likewise.
5575 (_Jv_JNI_AllocObject): Likewise.
5576 (_Jv_JNI_GetObjectClass): Likewise.
5577 (_Jv_JNI_CallAnyMethodV): Likewise.
5578 (_Jv_JNI_NewString): Likewise.
5579 (_Jv_JNI_NewStringUTF): Likewise.
5580 (_Jv_JNI_NewObjectArray): Likewise.
5581 (_Jv_JNI_GetObjectArrayElement): Likewise.
5582 (_Jv_JNI_ToReflectedField): Likewise.
5583 (_Jv_JNI_ToReflectedMethod): Likewise.
5584 (_Jv_JNIFunctions): Updated table for new functions.
5585 (_Jv_JNI_Init): New function.
5586 (mark_for_gc): Wrote.
5587 (unmark_for_gc): Wrote.
5588 * include/jni.h (struct JNINativeInterface): Removed name from
5589 PopLocalFrame parameter.
5590 (class _Jv_JNIEnv): Added `locals' field.
5592 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5594 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5597 2000-01-30 Tom Tromey <tromey@cygnus.com>
5599 * include/config.h.in: Rebuilt.
5600 * acconfig.h (HAVE_ICONV): Define.
5601 * configure: Rebuilt.
5602 * configure.in: Check for `iconv' function.
5603 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5604 no specific encoder exists.
5605 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5606 no specific encoder exists.
5607 * Makefile.in: Rebuilt.
5608 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5610 (nat_source_files): Added natIconv.cc.
5611 * gnu/gcj/convert/natIconv.cc: New file.
5612 * gnu/gcj/convert/Input_iconv.java: New file.
5613 * gnu/gcj/convert/Output_iconv.java: New file.
5615 2000-01-28 Tom Tromey <tromey@cygnus.com>
5617 * Makefile.in: Rebuilt.
5618 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5620 2000-01-26 Tom Tromey <tromey@cygnus.com>
5622 * gcj/method.h (JvNumMethods): Moved from Class.h.
5623 (JvGetFirstMethod): Likewise.
5624 * java/lang/Class.h (Object): Updated decl of
5625 _Jv_JNI_ToReflectedField.
5626 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5627 * Makefile.in: Rebuilt.
5628 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5629 argument of _Jv_JNI_ToReflectedField.
5630 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5632 (java/lang/reflect/Method.h): Likewise.
5633 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5635 (jweak): New typedef.
5636 (struct JNINativeInterface): Correctly declare remaining entries.
5637 * jni.cc: Include Class.h, ClassLoader.h.
5638 (_Jv_JNI_FindClass): New function.
5639 (_Jv_JNI_DefineClass): New function.
5640 (_Jv_JNI_conversion_call): New function.
5641 (_Jv_JNI_FindClass): Use current class loader to find class.
5642 (_Jv_JNI_ExceptionCheck): New function.
5643 (_Jv_JNI_FromReflectedField): Now static.
5644 (MethodClass): New define.
5645 (_Jv_JNI_FromReflectedMethod): New function.
5646 (_Jv_JNI_ToReflectedMethod): Likewise.
5648 (_Jv_JNI_IsAssignableFrom): Renamed.
5649 (_Jv_JNI_GetStringRegion): New function.
5650 Include StringIndexOutOfBoundsException.h.
5651 (_Jv_JNI_GetStringUTFRegion): New function.
5652 (_Jv_JNIFunctions): Updated for new functions.
5653 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5654 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5655 (_Jv_JNI_GetStringCritical): New function.
5656 (_Jv_JNI_ReleaseStringCritical): Likewise.
5657 (get_throwable): Removed.
5658 (GCJ_JV_JNIENV_FRIEND): Removed.
5659 (__GCJ_JNI_IMPL__): Define.
5662 * resolve.cc (get_ffi_type_from_signature): Handle case where
5665 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5667 * interpret.cc (run): Don't call println.
5668 Don't include PrintStream.h.
5670 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5671 nameIndex. Use "jint" as type for boffset.
5672 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5674 (Class): Likewise. Also changed type of method_count,
5675 vtable_method_count, size_in_bytes, field_count,
5676 static_field_count, interface_count.
5677 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5680 2000-01-21 Tom Tromey <tromey@cygnus.com>
5682 * java/lang/reflect/natConstructor.cc (newInstance): Use
5684 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5685 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5686 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5689 (invoke): Use _Jv_CallAnyMethodA.
5691 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5692 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5694 (struct _Jv_Method): Added getNextMethod method.
5695 (JvNumMethods): New function.
5696 (JvGetFirstMethod): Likewise.
5697 * gcj/field.h (JvGetFirstStaticField): New function.
5698 (JvNumStaticFields): Likewise.
5699 (getNextField): Renamed from getNextInstanceField.
5700 (struct _Jv_Field): New method getClass.
5701 * jni.cc: Wrote many new functions.
5702 * include/jni.h (JNI_TRUE): Define.
5703 (JNI_FALSE): Likewise.
5704 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5705 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5706 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5707 (jfieldID, jmethodID): Likewise.
5708 (JNI_COMMIT, JNI_ABORT): New defines.
5709 (JNINativeMethod): New struct.
5710 (struct JNINativeInterface): Correctly declared more entries.
5711 (class _Jv_JNIEnv): Added `ex' member.
5712 (JNI_VERSION_1_1): New define.
5713 (JNI_VERSION_1_2): Likewise.
5715 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5716 getNextInstanceField.
5718 2000-01-20 Tom Tromey <tromey@cygnus.com>
5720 * resolve.cc (StringClass): Removed.
5721 * defineclass.cc (StringClass): Removed.
5723 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5727 2000-01-19 Tom Tromey <tromey@cygnus.com>
5729 * interpret.cc (PC_REGISTER_ASM): Removed.
5731 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5732 From Bryce McKinlay.
5734 * All files: Updated copyright to reflect Cygnus purchase.
5736 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5738 * configure: Rebuilt.
5739 * configure.in: Recognize --disable-interpreter.
5741 2000-01-18 Andrew Haley <aph@cygnus.com>
5743 * name-finder.cc (lookup): Check for dladdr function.
5744 acconfig.h (HAVE_DLADDR): Add.
5745 configure.in: Check for HAVE_DLADDR
5747 include/config.h.in: Rebuilt.
5749 2000-01-17 Andrew Haley <aph@cygnus.com>
5751 * prims.cc (_Jv_RunMain): Set the name of this executable.
5753 2000-01-17 Tom Tromey <tromey@cygnus.com>
5755 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5756 when backtrace can't be computed.
5758 * configure: Rebuilt.
5759 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5761 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5762 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5763 (_Jv_FindClassInCache): Likewise.
5764 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5765 (findSystemClass): Try to load class from compiled module.
5767 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5768 (loadLibrary): Likewise.
5769 (lt_preloaded_symbols): Define.
5770 (loadLibraryInternal): New method.
5771 * include/config.h.in: Rebuilt.
5772 * acconfig.h (USE_LTDL): Added.
5773 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5774 (INCLUDES): Added $(INCLTDL).
5775 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5776 (libgcj_la_LIBADD): Likewise.
5777 * aclocal.m4, configure: Rebuilt.
5778 * configure.in: Added libltdl support.
5780 2000-01-15 Tom Tromey <tromey@cygnus.com>
5782 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5784 2000-01-14 Andrew Haley <aph@cygnus.com>
5786 * java/lang/natThrowable.cc: New file.
5788 * java/lang/Throwable.java (fillInStackTrace): Make native.
5789 (printStackTrace): Call native method to do this.
5790 (Throwable): Call fillInStackTrace.
5791 (stackTrace): New variable.
5793 * include/jvm.h: Add _Jv_ThisExecutable functions.
5795 * prims.cc: (_Jv_execName): New variable.
5796 (catch_segv): Call fillInStackTrace.
5798 (_Jv_ThisExecutable): New functions.
5799 (JvRunMain): Set the name of this executable.
5801 * Makefile.am: Add java/lang/natThrowable.cc.
5803 * Makefile.in: Rebuilt.
5805 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5807 * configure.in: Force link with __frame_state_for in
5808 FORCELIBGCCSPEC. Add new checks for backtrace.
5809 * include/config.h.in: Rebuilt.
5811 * name-finder.cc: New file.
5812 * include/name-finder.h: New file.
5814 2000-01-16 Anthony Green <green@cygnus.com>
5816 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5819 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5821 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5823 2000-01-13 Tom Tromey <tromey@cygnus.com>
5825 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5826 not system loader, as initiating loader.
5828 2000-01-11 Tom Tromey <tromey@cygnus.com>
5830 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5831 HP/UX. From David Scott Urban.
5833 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5835 * java/lang/natMath.cc (pow): Cast args to `double', not
5838 (IEEEremainder): Likewise.
5839 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5840 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5842 2000-01-09 Anthony Green <green@cygnus.com>
5844 * java/lang/natString.cc (init): Test for overflow condition
5845 during out of bounds check.
5846 (getChars): Throw StringIndexOutOfBoundsException, not
5847 ArrayIndexOutOfBoundsException.
5849 (regionMatches): Obey case option during string comparison.
5851 * configure.host (ligcj_interpreter): New variable. Enable
5852 interpreter by default on IA-32.
5853 * configure.in: Examine libgcj_interpreter.
5854 * configure: Rebuilt.
5856 2000-01-07 Tom Tromey <tromey@cygnus.com>
5858 * mauve-libgcj: Don't disable ClassTest.
5860 * java/lang/natClass.cc (getClasses): Wrote.
5862 2000-01-06 Tom Tromey <tromey@cygnus.com>
5864 * java/lang/natClass.cc (_getConstructors): Correctly check
5865 whether method name is the init name.
5866 (getMethod): Look at accflags on method in `klass', not `this'.
5868 2000-01-05 Tom Tromey <tromey@cygnus.com>
5870 * java/lang/natClass.cc (getMethod): Compute offset relative to
5871 `klass's methods table, not `this's table.
5873 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5874 In unwrapping/widening case, check whether `k' is null, not
5875 whether it is primitive. Initialize `num' from `argelts', not
5876 `paramelts'. Correct create and pass arguments to ffi_call.
5877 Don't let presence of `this' argument affect index used to look in
5879 (COPY): Set appropriate element in `values' vector.
5881 * java/lang/natClass.cc: Include <gcj/method.h>.
5883 * java/lang/Class.h (_getMethods): Correctly declare as private,
5886 * java/lang/Class.h (_getMethods): Declare.
5887 * java/lang/Class.java (_getMethods): Declare.
5888 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5889 (getDeclaredClasses): Always return empty array.
5890 (_getMethods): New method.
5891 (getMethods): Wrote.
5892 (getDeclaredMethod): Return `rmethod'.
5893 (finit_name): New global.
5894 (getDeclaredMethods): Check for finit_name.
5895 (_getMethods): Likewise.
5896 (getMethod): Only return public methods.
5898 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5899 jboolean and select correct ffi type on that basis.
5900 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5901 Constructor call always has `void' return type.
5903 2000-01-04 Tom Tromey <tromey@cygnus.com>
5905 * java/lang/Class.h (getSignature): Updated.
5906 * java/lang/Class.java (getSignature): Updated.
5907 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5909 (getConstructor): Ensure constructor is public.
5910 (_getConstructors): Check for public-ness of constructor when
5911 `declared' is false, not when it is true.
5913 2000-01-04 Warren Levy <warrenl@cygnus.com>
5915 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5917 (receive): Set the sender's address in the DatagramPacket.
5919 2000-01-04 Tom Tromey <tromey@cygnus.com>
5921 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5922 declaring class as return_type argument to
5923 _Jv_CallNonvirtualMethodA.
5924 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5925 constructor case, create object and use it as `this' argument.
5926 * java/lang/Class.h (_getConstructors): Declare.
5927 (_getFields): Declare.
5928 * java/lang/Class.java (getConstructors): Wrote.
5929 (_getConstructors): New native method.
5930 (getDeclaredConstructors): Wrote.
5931 (_getFields): Declare new native method.
5932 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5934 (getMethod): Work correctly when class is primitive.
5935 (getDeclaredMethods): Likewise. Compute offset using `method',
5937 (getDeclaredMethod): Likewise.
5938 (getConstructor): Wrote.
5939 (ConstructorClass): New define.
5940 (getDeclaredConstructor): Wrote.
5941 (_getConstructors): New method.
5942 (_getFields): New method.
5945 * Makefile.in: Rebuilt.
5946 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5948 * prims.cc: Remove `#pragma implementation'.
5949 * gcj/array.h: Remove `#pragma interface'.
5951 * prims.cc (_Jv_equaln): New function.
5952 * java/lang/Class.java (getSignature): Declare.
5953 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5954 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5956 (getSignature): New method.
5957 (getDeclaredMethod): Wrote.
5959 Include StringBuffer.h.
5960 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5961 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5963 (getSignature): Declare.
5964 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5965 (_Jv_equaln): Declare.
5966 (_Jv_CallNonvirtualMethodA): Declare.
5967 * Makefile.in: Rebuilt.
5968 * Makefile.am (nat_source_files): Added natConstructor.cc.
5969 (java/lang/reflect/Constructor.h): New target.
5970 * java/lang/reflect/natConstructor.cc: New file.
5971 * java/lang/reflect/Constructor.java (newInstance): Now native.
5972 (declaringClass): Renamed from decl_class.
5973 (offset): Renamed from index.
5974 (getType): New native method.
5975 (getModifiers): Now native.
5976 (getParameterTypes): Call getType if required.
5977 (hashCode): Include hash code from declaring class.
5978 (modifiers): Removed.
5979 (toString): Call getType if required.
5980 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5981 * java/lang/reflect/natMethod.cc (hack_call): New method.
5982 Removed `#if 0' around FFI code.
5983 Include <gnu/gcj/RawData.h>.
5984 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5985 IllegalArgumentException when argument object and class disagree.
5986 (_Jv_GetTypesFromSignature): New function.
5988 (ObjectClass): New define.
5989 (_Jv_CallNonvirtualMethodA): New function.
5990 * java/lang/reflect/Method.java (hack_trampoline): New method.
5991 (hack_call): New native method.