1 2001-04-04 Andreas Jaeger <aj@suse.de>
3 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
4 * gcj/Makefile.in: Rebuilt.
5 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
6 * Makefile.in: Rebuilt.
7 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
8 * testsuite/Makefile.in: Rebuild.
9 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
10 * include/Makefile.in: Rebuild.
12 2001-04-02 Zack Weinberg <zackw@stanford.edu>
14 * testsuite/lib/libjava.exp: Correct typo: 'output from source
15 compiled test', not 'execution from source compiled test'.
16 Use UNTESTED, not XFAIL, for tests which are not run because
17 they depend on a previous test which failed.
19 2001-04-02 Richard Henderson <rth@redhat.com>
21 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
25 * exception.cc (_Jv_Throw): Clarify commentary.
27 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
29 * jni.cc (wrap_value<jclass>): New specialization.
31 2001-04-02 Tom Tromey <tromey@redhat.com>
33 * java/io/PrintStream.java (out): Removed field. Fixes PR
35 (write): Call flush, not out.flush, per spec.
36 (close): Flush output stream, per spec. Handle
37 InterruptedIOException.
38 (checkError): Likewise.
39 (flush, print, write): Handle InterruptedIOException per spec.
40 (PrintStream): Don't create BufferedOutputStream.
41 (work_bytes): New field.
42 (writeChars): Use work_bytes. Don't assume `out' is a
45 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
47 * java/text/MessageFormat.java (setLocale): Added missing `else'.
50 2001-03-30 Tom Tromey <tromey@redhat.com>
52 * jni.cc (add_char): Correctly encode non-ascii characters.
53 (add_char): Define even when INTERPRETER not defined.
54 (mangled_name): Likewise.
55 (_Jv_GetJNIEnvNewFrame): Likewise.
56 (_Jv_LookupJNIMethod): Likewise.
58 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
60 * configure.host: Enable interpreter for PPC.
62 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
64 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
65 to "file.separator", "path.separator", and "java.io.tmpdir" property
67 * java/io/File.java: Likewise.
68 * java/io/natFile.cc (init_native): Likewise.
69 * java/io/natFileWin32.cc (init_native): Likewise.
71 2001-04-01 Per Bothner <per@bothner.com>
73 * java/lang/natString.cc (intern): If string's data does not point to
74 this String, make a fresh String that does.
76 * java/lang/natString.cc (unintern): Replace by static function.
77 * java/lang/String.java (unintern): Remove method.
79 2001-04-01 Per Bothner <per@bothner.com>
81 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
82 (finish): def.deflate needs to be called in a loop.
83 (inbuf, inbufLength): New private fields.
84 (write(int)): Use inbuf.
85 (write(byte[],int,int): Check if pending output in inbuf.
86 * ZipOutputStream.java: Don't use Deflater if stored.
87 Use a Checksum object directly, not via a CheckedOutputStream.
88 (uncompressed_size): New field,
89 (closeEntry): Only write data_directory if needed.
90 (write): If STORED, write directly.
91 Always update crc, and uncompressed_size.
92 (write_entry): Fix lots of protocol erors.
94 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
96 1.3-Compliant Implementation of java.io.File.
97 * java/lang/natSystem.cc (init_properties): Get "file.separator",
98 "path.separator", and "java.io.tmpdir" from the File class, instead
99 of setting them explicitly.
100 * java/io/File.java: Do not canonicalize paths for security manager
101 checks. Call init_native() from static initializer. Do not pass path
102 argument to native methods. New native method declarations. Some
103 security manager checks moved to checkWrite().
104 (equals): Check file system case sensitivity and act appropriatly.
105 (hashCode): Likewise.
106 (isHidden): New method implemented.
107 (performList): Changed prototype. Now takes a class argument specifying
108 the class of the returned array: Strings or File objects. Also added
110 (listFiles): New variants with "File" return type implemented.
111 (createTempFile): Use createNewFile(). Use maxPathLen.
112 (setReadOnly): New method implemented.
113 (listRoots): Likewise.
114 (compareTo): Likewise.
115 (setLastModified): Likewise.
116 (checkWrite): New method.
118 * java/io/natFile.cc: Various functions no longer take canonical path
120 (stat): Handle ISHIDDEN query.
121 (isAbsolute): Remove WIN32 cruft.
122 (performList): New arguments. Handle returning either File[] or String[]
123 arrays. Check with FileFilter or FilenameFilter arguments as
124 appropriate. Use an ArrayList, not a Vector, for the temporary list.
125 (performSetReadOnly): New method implemented.
126 (performListRoots): Likewise.
127 (performSetLastModified): Likewise.
128 (performCreate): Likewise.
129 (init_native): New initialization function.
130 * java/io/natFileWin32.cc: Various functions no longer take canonical
132 (stat): Add FIXME about ISHIDDEN query.
133 (performList): New arguments. Handle returning either File[] or String[]
134 arrays. Check with FileFilter or FilenameFilter arguments as
135 appropriate. Use an ArrayList, not a Vector, for the temporary list.
136 (performSetReadOnly): New. Stubbed.
137 (performListRoots): Likewise.
138 (performSetLastModified): Likewise.
139 (performCreate): Likewise.
140 (init_native) New initialization function.
141 * configure.in: Check for utime() and chmod().
142 * configure: Rebuilt.
143 * include/config.h.in: Rebuilt.
145 Resolves PR libgcj/1759.
147 2001-03-28 Richard Henderson <rth@redhat.com>
149 IA-64 ABI Exception Handling:
150 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
151 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
152 Remove EXCEPTIONSPEC.
153 * configure.host (libgcj_sjlj): Remove.
154 * configure.in (EXCEPTIONSPEC): Remove.
155 (enable-sjlj-exceptions): Detect if not specified.
156 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
157 what header we're looking for.
158 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
159 * Makefile.in, configure: Regenerate.
160 * exception.cc: Don't declare libgcc2 stuff.
161 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
162 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
163 (win32_get_restart_frame): Remove.
164 (struct java_exception_header): New.
165 (__gcj_exception_class): New.
166 (get_exception_header_from_ue): New.
167 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
168 (size_of_encoded_value, read_encoded_value): New.
169 (read_uleb128, read_sleb128, parse_lsda_header): New.
170 (get_ttype_entry, __gcj_personality_sj0): New.
171 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
173 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
175 * javax/naming/InitialContext.java (init): Fix typo.
176 (composeName): Remove unnecessary semicolon.
177 (addToEnvironment): Remove unnecessary semicolon.
178 (addToEnvironment): Use put() instead of add().
180 * javax/naming/InitialContext.java (InitialContext):
182 (destroySubcontext): Method doesn't return a result.
183 * javax/naming/Context.java: Import java.util.Hashtable.
184 * javax/naming/Name.java: Import java.util.Enumeration.
186 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
188 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
189 objects in subdirectories.
190 * Makefile.in: Rebuilt.
192 2001-03-25 Richard Henderson <rth@redhat.com>
194 * exception.cc (java_eh_info): Make value type jthrowable.
195 (_Jv_type_matcher): Remove now unneeded cast.
196 (_Jv_Throw): Make argument type jthrowable. Munge name
197 for SJLJ_EXCEPTIONS here ...
198 * gcj/cni.h: ... not here.
200 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
202 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
203 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
204 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
205 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
206 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
207 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
208 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
209 java/lang/natClass.cc, java/lang/natClassLoader.cc,
210 java/lang/natDouble.cc, java/lang/natObject.cc,
211 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
212 java/lang/natString.cc, java/lang/natSystem.cc,
213 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
214 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
215 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
216 java/util/zip/natInflater.cc:
217 Use throw, not JvThrow or _Jv_Throw.
219 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
221 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
222 paramater, bump it to 1.
223 * java/util/Hashtable.java (Hashtable): Likewise.
225 2001-03-23 Per Bothner <per@bothner.com>
227 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
228 check for errors, since we don't want to throw exception on
229 overflow/underflow. Instead, trim whitespace, and then check that
230 _strtod_r uses up all the rest of the string.
232 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
233 ancestors array is invalid for interfaces, so do that *after*
234 check that the target type is not an interface.
236 2000-03-23 Jeff Sturm <jsturm@one-point.com>
238 * prims.cc (_Jv_FindClassFromSignature): Check return of
239 recursive call. Do not abort on invalid signature; return NULL
242 2001-03-22 Tom Tromey <tromey@redhat.com>
244 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
245 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
247 * include/jvm.h (_Jv_ResolveField): Declare.
248 * include/java-interp.h (_Jv_ResolveField): Don't declare.
249 * resolve.cc (_Jv_ResolveField): No longer conditional on
252 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
254 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
256 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
257 to a temporary file, then invoke libtool with the -objectlist
259 (libgcjx.la): Likewise.
260 * Makefile.in: Rebuilt.
262 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
264 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
266 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
268 * jni.cc (add_char): Handle `.' like `/'.
270 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
272 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
273 initialize if exception_types is null.
274 * java/lang/reflect/Constructor.java: Likewise.
275 * java/lang/reflect/natConstructor.cc (getType): Initialize
276 exception_types to an empty Object array.
278 2001-03-21 Tom Tromey <tromey@redhat.com>
280 * configure: Rebuilt.
281 * configure.in (GCJFLAGS): Subst.
282 * Makefile.in: Rebuilt.
283 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
284 (gij_LDFLAGS): Likewise.
285 (JC1FLAGS): Added GCJFLAGS and removed -g.
287 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
288 read/write case. Fixes PR libgcj/2338.
290 2001-03-20 Warren Levy <warrenl@redhat.com>
292 * java/util/TimeZone.java: Sync up with Classpath. Includes new
293 and corrected SimpleTimeZone's for the timezones hash table.
295 2001-03-19 Per Bothner <per@bothner.com>
297 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
298 "canonicalize" "../../xxx" to "/xxx".
300 2001-03-19 Mark Wielaard <mark@klomp.org>
302 * java/util/ArrayList.java: Remove RCS keywords from comments
303 * java/util/BasicMapEntry.java: idem
304 * java/util/Dictionary.java: idem
305 * java/util/HashSet.java: idem
307 * java/util/EventObject.java: reindent
308 * java/util/Properties.java: idem
309 * java/util/SortedMap.java: idem
311 * java/util/Enumeration.java: Merge with Classpath
312 * java/util/EventListener.java: idem
313 * java/util/Observable.java: idem
314 * java/util/Observer.java: idem
315 * java/util/Stack.java: idem
317 2001-03-17 Tom Tromey <tromey@redhat.com>
319 * java/lang/natString.cc (rehash): Don't bother with memset;
320 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
322 (UNMASK_PTR): New macro.
323 (intern): Unmask pointer before returning it. Register finalizer
325 (unintern): Handle case where
326 (MASK_PTR): New macro.
327 (PTR_MAKSED): Likewise.
328 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
330 2001-03-01 Andrew Haley <aph@redhat.com>
332 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
333 stackTrace buffer to a correctly aligned pointer array.
335 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
337 * java/lang/Runtime.java (_exit): Declare new package-private native.
338 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
339 without a security manager check.
340 (exit): Call _exit after security check.
341 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
343 * java/lang/System.java (setSecurityManager): If a security manager
344 is already in place, call checkPermission.
345 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
346 throws an exception, try to deal with it gracefully.
347 * java/lang/ExceptionInInitializerError.java (printStackTrace):
348 Only try to print the subordinate stack trace if "exception" is set.
349 Print our class name first.
351 2001-03-08 Tom Tromey <tromey@redhat.com>
353 * java/io/ObjectStreamClass.java (setUID): Don't write interface
354 info for array classes.
355 Fixes PR libgcj/1971.
357 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
359 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
362 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
364 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
365 instead of the new JDK1.2 API. This is simpler and makes
366 back-porting the classes to JDK1.1 trivial.
367 (readObject): likewise.
369 2001-03-01 Per Bothner <per@bothner.com>
371 Changes merged from Kawa's gnu.math.
372 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
373 (rshift(int[],int[],int,int): Removed - not needed.
374 (gcd): Use rshift0 rather than rshift.
375 * java/math/BigInteger.java (setShiftRight): Likewise.
376 (divide): Simplify by using rshift0.
377 (divide): Zero-extend results if high-order bit set.
379 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
381 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
384 2001-02-23 Per Bothner <per@bothner.com>
386 Change to sometimes include class name in ClassFormatError message.
387 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
388 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
389 boolean instead of throwing ClassFormatError on failure.
390 (throw_class_format_error): Change static function to method.
391 (_Jv_ClassReader): New inline methods verify_identifier,
392 two overloads of verify_classname, verify_field_signature, and
393 verify_method_signature
394 * include/java-interp.h: Update declarations to return bool.
395 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
396 ClassFormatError since _Jv_VerifyClassName now returns bool.
398 2001-02-23 Per Bothner <per@bothner.com>
400 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
401 c++filt to select java-style output.
403 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
405 Fix for PR java/2040:
406 * java/util/HashMap.java (HashMap): Don't throw exception for
407 loadFactor > 1. Add exception messages.
408 * java/util/Hashtable.java (Hashtable): Likewise.
410 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
412 Disable libgcjx by default.
413 * configure.in: Add support for --enable-java-awt configure option.
414 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
415 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
416 * Makefile.in: Rebuilt.
417 * configure: Rebuilt.
419 2001-02-20 Tom Tromey <tromey@redhat.com>
421 * java/io/PipedWriter.java (flush): Throw exception if stream
423 * java/io/OutputStreamWriter.java (write): Throw exception if
425 (writeChars): Don't throw exception if stream closed.
426 * java/io/CharArrayWriter.java (closed): New field.
428 (flush): Throw exception if stream closed.
429 (reset): Synchronize on correct lock. Allow stream to be
431 (toCharArray, toString, writeTo): Synchronize.
432 (write): Throwe exception if stream closed.
433 * java/io/BufferedWriter.java (close): Clear `buffer'.
434 (flush): Throw IOException if stream is closed.
437 2001-02-16 Tom Tromey <tromey@cygnus.com>
439 * java/lang/ThreadGroup.java (activeCount): Only include threads
441 (enumerate): Likewise.
443 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
445 * java/lang/Integer.java (getInteger): Return default argument if
446 property is not set. Don't call decode with null argument.
447 * java/lang/Long.java (getLong): Likewise.
449 * java/io/CharArrayReader.java (CharArrayReader): Throw
450 IllegalArgumentException if constructor arguments are illegal.
451 (ready): Return false if no more characters can be read.
452 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
454 2001-02-17 Mark Wielaard <mark@klomp.org>
456 * java/util/TimerTask.java: New version from Classpath.
458 2001-02-17 Mark Wielaard <mark@klomp.org>
460 Remerge with Classpath
461 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
462 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
463 (readByte): Use convertToByte().
464 (readChar): Use convertToChar().
465 (readInt): Use convertToInt().
466 (readLong): Use convertToLong().
467 (readShort): Use convertToShort().
468 (readUnsignedByte): Use convertToUnsignedByte().
469 (readUnsignedShort): Use convertToUnsignedShort().
470 (readUTF): Use convertToUTF().
472 (convertToBoolean): Resurrected.
473 (convertToByte): Ditto.
474 (convertToChar): Ditto.
475 (convertToInt): Ditto.
476 (convertToLong): Ditto.
477 (convertToShort): Ditto.
478 (convertToUnsignedByte): Ditto.
479 (convertToUnsignedShort): Ditto.
480 (convertToUTF): Ditto.
482 2001-02-17 Mark Wielaard <mark@klomp.org>
486 2001-02-17 Mark Wielaard <mark@klomp.org>
488 * java/io/DataInputStream.java: update copyright notice
489 * java/io/PrintWriter.java: idem
490 * java/io/Reader.java: idem
491 * java/io/StreamTokenizer.java: idem
492 * java/io/StringReader.java: idem
493 * java/lang/reflect/ReflectPermission.java: idem
495 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
497 * java/util/TreeSet.java (clone): Made subclass safe, use
498 super.clone(), not new.
499 * java/util/TreeMap.java (clone): Likewise.
501 * java/util/TreeMap.java (nil): Made non-final.
502 (clone): Create new nil node for copy.
504 * java/util/HashSet.java (clone): Made subclass safe, use
505 super.clone(), not new.
507 2001-02-14 Andrew Haley <aph@redhat.com>
509 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
512 2001-02-15 Anthony Green <green@redhat.com>
514 * defineclass.cc: Don't include alloca.h.
515 (prepare_pool_entry): Convert alloca to __builtin_alloca.
516 * interpret.cc (run_normal): Ditto.
518 * java/lang/natDouble.cc (parseDouble): Ditto.
520 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
522 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
524 * java/util/Collections.java (ReverseComparator): New static class.
525 (reverseOrder): Return static instance of ReverseComparator.
527 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
528 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
529 Rectangle.clone(), not Object.clone().
531 * java/util/HashSet.java (clone): Remove try/catch.
533 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
534 * java/util/Collection.java: Likewise.
535 * java/util/Comparator.java: Likewise.
536 * java/util/Dictionary.java: Likewise.
537 * java/util/Iterator.java: Likewise.
538 * java/util/ListIterator.java: Likewise.
539 * java/util/Map.java: Likewise.
540 * java/util/Set.java: Likewise.
542 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
544 * java/util/TreeMap.java: New file.
545 * java/util/TreeSet.java: New file.
546 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
547 * Makefile.in: Rebuilt.
548 * java/util/HashSet.java (clone): Use constructor instead of calling
550 * java/util/SortedSet.java: Sync with classpath.
551 * java/util/HashMap.java (hash): Use if statement instead of ternary,
554 * java/lang/natClass.cc (getSignature): Don't try to dereference
555 param_types if it is null. Instead, take this to mean "no parameters".
556 * java/lang/TreeMap.java (TreeIterator.next): Throw
557 NoSuchElementException in preference to ConcurrentModificationException.
558 (TreeIterator.remove): Throw IllegalStateException in preference to
559 ConcurrentModificationException.
560 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
561 throw a NoSuchElementException.
562 (SubMap.lastKey): Likewise.
564 2001-02-13 Tom Tromey <tromey@redhat.com>
566 * java/io/PipedReader.java (ready): Throw IOException if pipe
568 * java/io/FilterReader.java (close): Don't clear `in'.
569 * java/io/CharArrayReader.java (mark): Throw IOException if stream
571 (read, ready, reset, skip): Added exception message.
572 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
573 Perform checkStatus check inside synchronized block.
575 2001-02-13 Tom Tromey <tromey@redhat.com>
577 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
579 2001-02-13 Tom Tromey <tromey@redhat.com>
581 Fix for PR libgcj/1351:
582 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
584 Include Thread.h and InterruptedIOException.h.
586 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
588 * java/io/BlockDataException.java: Removed.
589 * java/io/ObjectInputStream.java (readObject): Throw
590 StreamCorruptedException, not BlockDataException.
591 * Makefile.am: Remove BlockDataException.
592 * Makefile.in: Rebuild.
594 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
595 Tom Tromey <tromey@redhat.com>
597 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
600 2001-02-09 Tom Tromey <tromey@redhat.com>
602 * java/util/Timer.java: New version from Classpath.
604 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
606 * java/lang/Double.java (doubleToRawLongBits): Now native.
607 * java/lang/Float.java (floatToRawIntBits): Likewise.
608 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
609 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
611 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
613 * java/io/File.java (java.net): Imported.
614 (getAbsoluteFile): Added.
615 (getCanonicalPath): Likewise.
618 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
620 * java/lang/Byte.java: Remove redundant instanceof and null checks.
621 * java/lang/Integer.java: Likewise.
622 * java/lang/Long.java: Likewise.
623 * java/lang/Short.java: Likewise.
624 * java/lang/Double.java: Likewise.
625 (doubleToRawLongBits): New method.
626 * java/lang/Float.java: As above.
627 (floatToRawIntBits): New method.
629 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
630 IOException if stream closed.
632 2001-02-08 Tom Tromey <tromey@redhat.com>
634 * java/lang/Float.java (parseFloat): New method.
636 2001-02-08 Tom Tromey <tromey@redhat.com>
638 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
639 * java/io/InputStreamReader.java (ready, read): Throw IOException
640 if stream has been closed.
642 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
644 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
645 Change sources.redhat.com and sourceware.cygnus.com references to
648 2001-02-07 Tom Tromey <tromey@redhat.com>
650 Fix for PR libgcj/1906:
651 * java/text/MessageFormat.java (setLocale): Use named class
654 (format(Object,StringBuffer,FieldPosition)): Special case if
655 argument is an Object[].
657 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
659 * java/util/Arrays.java: Removed "cmp" methods.
660 (qsort): Don't use "cmp".
663 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
665 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
666 sort. Fix for PR java/1895.
668 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
670 * configure.host: Use sjlj-exceptions for Alpha.
672 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
674 * libgcj.spec.in: Don't force static libgcc into the executable.
675 * configure.in (FORCELIBGCCSPEC): Removed.
676 * configure: Rebuilt.
678 2001-01-31 Tom Tromey <tromey@redhat.com>
680 * Makefile.in: Rebuilt.
681 * Makefile.am (LTCXXCOMPILE): New macro.
683 2001-01-26 Andrew Haley <aph@redhat.com>
685 (INIT_FPE): Use a direct system call to set the handler.
687 2001-01-27 Richard Henderson <rth@redhat.com>
689 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
691 2001-01-27 Tom Tromey <tromey@redhat.com>
693 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
694 native interface structure.
696 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
698 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
700 (read (byte[], int, int)): Only call readNextBlock() if the block
701 buffer would actually be overrun. Increment blockDataPosition.
702 (callReadMethod): Propagate exceptions from invocation target.
703 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
704 exceptions from invocation target.
706 2001-01-26 Tom Tromey <tromey@redhat.com>
708 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
709 to internal representation.
710 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
711 _Jv_FindClassFromSignature.
713 2001-01-26 Warren Levy <warrenl@redhat.com>
715 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
716 and timezone if they are available on the system.
718 2001-01-24 Tom Tromey <tromey@redhat.com>
720 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
722 2001-01-24 Tom Tromey <tromey@redhat.com>
724 * Makefile.in: Rebuilt.
725 * Makefile.am (c_source_files): Added sf_fabs.c.
726 * java/lang/sf_fabs.c: New file.
728 2001-01-19 Warren Levy <warrenl@redhat.com>
730 * java/text/SimpleDateFormat.java (format): Compute hour for cases
731 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
732 correctly. Adjust properly from 0-23 clock hour.
734 2001-01-17 Mark Wielaard <mark@klomp.org>
736 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
738 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
740 * java/lang/Class.h (isInterface): Move implementation from
741 natClass.cc. Declare inline.
742 (Class): Add default constructor.
743 * java/lang/Object.h: Update comments.
744 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
745 initialize superclass, saving a call if super is already initialized.
747 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
749 * prims.cc (init_prim_class): Deleted.
750 (DECLARE_PRIM_TYPE): Rewritten.
751 * java/lang/Class.h (stdio.h): Include removed.
752 (stddef.h): Included.
753 (java/lang/reflect/Modifier.h): Likewise.
754 (Class): Contructor now takes arguments, initializes fields.
755 (initializePrim): Prototype deleted.
756 * java/lang/natClass.cc (initializePrim): Deleted.
758 2001-01-16 Warren Levy <warrenl@redhat.com>
760 * java/math/BigInteger.java: Update Copyright year.
762 2001-01-16 Hans Boehm <hans_boehm@hp.com>
764 * java/math/BigInteger.java (setShiftRight): Only do negative shift
767 2001-01-14 Mark Wielaard <mark@klomp.org>
768 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
769 (decode): Merge comments with Classpath, don't throw Exception
771 2001-01-12 Tom Tromey <tromey@redhat.com>
773 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
777 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
778 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
779 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
780 * gnu/awt/gtk/GtkLabelPeer.java: New file.
781 * gnu/awt/gtk/GtkButtonPeer.java: New file.
783 * java/lang/natSystem.cc: Include locale.h if it exists.
784 * configure: Rebuilt.
785 * configure.in: Check for locale.h.
787 2001-01-11 Tom Tromey <tromey@redhat.com>
789 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
790 (Cursor(int), getPredefinedCursor): Throw exception if argument
793 2001-01-03 Tom Tromey <tromey@redhat.com>
795 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
796 (getLocationOnScreen): Wrote.
798 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
800 * Makefile.am: Re-enable dependencies.
801 * Makefile.in: Rebuilt.
803 2001-01-10 Warren Levy <warrenl@redhat.com>
805 * java/math/BigDecimal.java (divide): Fixed comment.
807 2001-01-10 Warren Levy <warrenl@redhat.com>
809 Fix for PR libgcj/1596:
810 * java/math/BigDecimal.java (divide): Check newScale for validity.
811 Ensure that BigInteger.pow() is called with a non-negative value.
812 (setScale (int)): New public method.
813 (setScale (int,int)): New public method.
815 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
817 Fix for PR libgcj/1338:
818 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
819 commentChar. Fixed typos in comments.
821 2001-01-08 Warren Levy <warrenl@redhat.com>
823 Fix for PR libgcj/1411:
824 * Makefile.am: Removed java/util/natTimeZone.cc.
825 * Makefile.in: Rebuilt.
826 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
827 missing localized timezone names.
828 * java/lang/System.java (getDefaultTimeZoneId): New private method.
829 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
830 (init_properties): Set user.timezone property.
831 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
832 default timezone names; removed non-standard ones. Use standard
834 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
836 * java/util/TimeZone.java: Add standard ID names per JCL; removed
838 (getDefaultTimeZoneId): Removed.
840 * java/util/natTimeZone.cc: Removed.
842 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
844 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
845 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
846 (_Jv_GetArrayClass): New inline function.
847 (arrayclass): New field.
848 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
849 _Jv_GetArrayElementFromElementType.
850 (_Jv_NewPrimArray): Ditto.
851 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
852 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
853 Set Modifier::ABSTRACT.
854 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
855 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
856 Now synchronized. Array classes are now referenced from
857 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
858 Set array classes' accessibility flags correctly. Optimize so that
859 all array classes share the same IDT.
860 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
861 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
862 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
863 in superclasses from overwriting classes own fields.
864 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
865 Modifier::isAbstract().
866 (null_idt): New static field.
867 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
869 (_Jv_IndexOf): Made inline.
870 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
872 2001-01-08 Tom Tromey <tromey@redhat.com>
874 Fix for PR java/1586:
875 * Makefile.in: Rebuilt.
876 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
878 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
880 * Makefile.am: Use the new "-M -MF" option for generating dependencies
881 from the c++ compiler.
882 * Makefile.in: Rebuilt.
884 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
886 All files with updated copyright.
887 * prims.cc (class _Jv_PrimClass): Removed.
888 (init_prim_class): New function.
889 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
890 `_Jv_PrimClass' in primitive type declarations. Assign to the
891 value returned by `init_prim_class.'
892 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
893 primitive type declarations.
894 (JvPrimClass): Cast to `jclass' removed.
895 * java/lang/Class.h (Class): New constructor.
896 (Class): New copy constructor.
897 (initializePrim): New prototype.
898 (_Jv_PrimClass): Field removed.
899 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
900 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
901 (class java::lang::Object): `finalize' moved up front.
902 * java/lang/natClass.cc
903 (isAssignableFrom): Turned outline.
904 (isInstance): Likewise.
905 (isInterface): Likewise, fixed indentation.
906 (initializePrim): New function.
908 2001-01-07 Anthony Green <green@redhat.com>
910 * Makefile.am (texinfo): Add texinfo target for generating texinfo
912 * Makefile.in: Rebuilt.
914 * scripts/TexinfoDoclet.java: New file.
916 * doc/java-applet.texi, doc/java-lang-reflect.texi,
917 doc/java-awt-color.texi, doc/java-lang.texi,
918 doc/java-awt-datatransfer.texi, doc/java-math.texi,
919 doc/java-awt-event.texi, doc/java-net.texi,
920 doc/java-awt-geom.texi, doc/java-security-spec.texi,
921 doc/java-awt-image.texi, doc/java-security.texi,
922 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
923 doc/java-text.texi, doc/java-beans-beancontext.texi,
924 doc/java-util-jar.texi, doc/java-beans.texi,
925 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
926 doc/java-lang-ref.texi: New files.
928 2001-01-07 Anthony Green <green@redhat.com>
930 * java/net/URLConnection.java (setDoOutput): URLConnection's may
931 be used for both input and output, so don't clear doInput.
933 * java/lang/StringBuffer.java: Fix comments.
935 2001-01-06 Anthony Green <green@redhat.com>
937 * java/beans/PropertyDescriptor.java: Fix comment.
938 * java/io/PushbackReader.java: Fix comment.
939 * java/io/ObjectStreamClass.java: Fix comment.
940 * java/io/DataInputStream.java: Fix comment.
941 * java/io/PipedInputStream.java: Fix comments.
942 * java/io/PipedReader.java: Fix comments.
943 * java/sql/DatabaseMetaData.java: Fix comments.
945 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
947 * java/io/PipedReader: Synchronize on "lock" instead of this.
949 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
951 * java/lang/Thread.java: Update comment.
953 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
954 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
955 * java/io/PipedReader: New implementation based on new
957 * java/io/PipedWriter: Updated to match new PipedReader.
959 2001-01-03 Tom Tromey <tromey@redhat.com>
961 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
962 (getViewportSize): Insets include scrollbar size.
963 (doLayout): Finished.
964 (getScrollPosition): Wrote.
965 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
967 2001-01-02 Tom Tromey <tromey@redhat.com>
969 * java/awt/ScrollPane.java: Wrote.
970 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
973 * java/awt/Panel.java (Panel()): Fixed.
975 * java/awt/Component.java (isShowing): Return false if no peer
976 exists, and true if component is visible and no parent exists.
977 (getLocationOnScreen): Wrote.
978 (getPreferredSize): Removed FIXME comment.
979 (getMinimumSize): Likewise.
980 (getAlignmentX, getAlignmentY): Wrote.
982 (requestFocus): Wrote.
983 (transferFocus): Wrote.
984 (findNextFocusComponent): New method.
987 (enableEvents): Call setEventMask on the peer.
989 * java/awt/Container.java (list): Use super.list() to print self.
990 (findNextFocusComponent): New method.
991 (setLayout): Call invalidate.
992 (findComponentAt): Wrote.
994 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
996 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
997 the correct versions of various linuxthreads functions get linked.
998 * Makefile.in: Rebuilt.
999 * java/lang/natThread.cc (finalize_native): New static function. Call
1000 _Jv_ThreadDestroyData.
1001 (initialize_native): Register finalizer for "data".
1002 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1003 (_Jv_ThreadDestroyData): New prototype.
1004 * include/win32-threads.h: Ditto.
1005 * include/no-threads.h: Ditto.
1006 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1007 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1008 move mutex and condition variable destroy code from:
1009 (really_start): ...here.
1010 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1011 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1012 (_Jv_ThreadDestroyData): Implemented.
1013 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1014 (_Jv_AllocArray): Ditto.
1016 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1018 * java/sql/DriverManager.java (getConnection): Don't set user/password
1021 2000-12-27 Warren Levy <warrenl@redhat.com>
1023 Fix for PR libgcj/1358:
1024 * java/lang/System.java: Update Copyright date properly.
1025 * java/util/Calendar.java: Fix typo in comment.
1026 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1027 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1028 initialize times. Spec says to set H:M:S values to zero only if
1030 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1031 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1032 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1033 timezones and GMT offsets, being careful to account for units of
1034 milliseconds vs. seconds.
1036 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1038 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1039 not be assigned to Object.
1041 Fix for PR libgcj/1516:
1042 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1044 (can_widen): Declared inline. Remove redundant checks for void
1045 arguments and char->short conversion. Add special case for boolean
1047 (ffi_type): Declared inline.
1048 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1050 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1052 * java/sql/SQLWarning.java: Fixed typo in comment.
1054 2000-12-26 Tom Tromey <tromey@redhat.com>
1056 * java/awt/MenuItem.java (paramString): Now protected.
1058 * java/awt/MenuShortcut.java: Implements Serializable.
1060 * java/awt/MenuBar.java: Rewrote from scratch.
1062 * java/awt/MenuComponent.java (removeNotify): Wrote.
1063 Implements Serializable.
1065 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1068 * java/awt/CheckboxMenuItem.java: Wrote.
1070 2000-12-25 Tom Tromey <tromey@redhat.com>
1072 * java/awt/MenuContainer.java: Fixed typo.
1074 * Makefile.in: Rebuilt.
1075 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1076 * java/awt/SystemColor.java: New file.
1078 * java/awt/Color.java (rgba): Now package-private.
1080 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1082 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1085 * java/awt/MenuItem.java (addNotify): New method.
1086 (MenuItem(String,MenuShortcut)): New constructor.
1087 (setLabel): Notify peer of change.
1088 (setEnabled): Likewise.
1090 * java/awt/GridLayout.java (toString): New method.
1092 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1093 (FlowLayout): Check for LEADING and TRAILING.
1094 (setAlignment): Likewise.
1095 (layoutContainer): Handle component orientation.
1097 * java/awt/Component.java (orientatin): New field.
1098 (setComponentOrientation): Wrote.
1099 (getComponentOrientation): Wrote.
1101 * java/awt/Event.java (Event): Implements Serializable.
1102 (consumed): New field for serialization.
1103 * java/awt/Dimension.java (Dimension): Implements Serializable.
1104 * java/awt/Cursor.java (Cursor): Implements Serializable.
1105 * java/awt/Container.java (Container): No longer abstract.
1107 * java/awt/Choice.java: Wrote.
1108 * java/awt/Checkbox.java: Wrote.
1109 * java/awt/ItemSelectable.java: Documented.
1110 * java/awt/CheckboxGroup.java: Wrote.
1112 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1114 (getSize): Likewise.
1116 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1118 * java/io/FileDescriptor.java: Initialize fd to -1.
1119 Remove default constructor.
1121 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1123 * java/lang/mprec.h: Change C9X reference to refer to C99.
1125 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1127 * java/lang/Throwable.java (trace_enabled): New static field.
1128 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1129 trace_enabled not set.
1130 * prims.cc (main_init): Turn off trace_enabled while creating
1131 default exception objects.
1133 2000-12-21 Tom Tromey <tromey@redhat.com>
1135 * java/beans/PropertyChangeListener.java: Extends EventListener.
1136 * java/beans/VetoableChangeListener.java: Extends EventListener.
1138 * java/util/zip/Deflater.java (update, init): Now private.
1140 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1142 * java/util/BasicMapEntry.java: Re-added.
1143 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1144 (putAll): Test for BasicMapEntry.
1145 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1146 (putAll): Test for BasicMapEntry.
1147 Change references from `HashMap.Entry' to `Entry' in various places.
1148 * Makefile.am: Add BasicMapEntry.java.
1149 * Makefile.in: Rebuilt.
1151 2000-12-18 Warren Levy <warrenl@redhat.com>
1153 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1154 need to set timezone to a valid non-null value. Partial fix for
1157 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1159 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1161 * java/awt/Button.java (addNotify): Likewise.
1162 * java/awt/Label.java (addNotify): Likewise.
1163 * java/awt/Panel.java (addNotify): Likewise.
1164 * java/awt/Scrollbar.java (addNotify): Likewise.
1165 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1166 Remove redundant null checks.
1168 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1170 * COPYING: Update to current
1171 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1172 to 19yy as example year in copyright notice).
1174 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1176 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1177 end-of-stream if avail_in is 0.
1179 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1181 * java/util/ArrayList.java (data): Declare transient.
1182 (serialPersistantFields): Removed.
1183 (readObject): Use defaultReadObject(), not readFields().
1184 (writeObject): Use defaultWriteObject(), not writeFields().
1186 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1188 * java/util/Hashtable.java (put): Remove `last' variable.
1189 Link new entry to head of list.
1190 * java/util/HashMap.java (put): Ditto.
1192 2000-12-15 Tom Tromey <tromey@redhat.com>
1194 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1195 loader to Class.forName.
1197 2000-12-14 Tom Tromey <tromey@redhat.com>
1199 * java/util/ResourceBundle.java
1200 (getBundle(String,Locale,ClassLoader)): New method.
1201 (trySomeGetBundle): Added `loader' argument.
1202 (partialGetBundle): Likewise.
1204 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1205 maximumFractionDigits, maximumIntegerDigits,
1206 minimumFractionDigits, minimumIntegerDigits): Now
1209 * java/lang/Thread.java (checkAccess): Now final.
1211 * java/lang/RuntimePermission.java: Class now final.
1213 * java/io/StringWriter.java (StringWriter(int)): Now public.
1215 * java/io/SerializablePermission.java (legal_names): Now private.
1217 * java/lang/Character.java: Updated UnicodeBlock constants.
1218 * scripts/blocks.pl: Special case private use and surrogate
1221 2000-12-12 Tom Tromey <tromey@redhat.com>
1223 * Makefile.in: Rebuilt.
1224 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1226 (GCJCOMPILE): Use it.
1229 2000-12-11 Tom Tromey <tromey@redhat.com>
1231 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1232 New static final fields.
1234 * scripts/classes.pl (scan): Skip lines with leading `*'.
1235 Fix for PR libgcj/378.
1237 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1239 * configure.in: Remove check for -fuse-divide-subroutine.
1240 * configure: Rebuilt.
1242 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1244 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1246 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1248 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1249 Remove BasicMapEntry.java and Bucket.java.
1250 * Makefile.in: Rebuilt.
1251 * java/util/HashMap.java: Rewritten.
1252 * java/util/HashSet.java: Imported from classpath.
1253 * java/util/WeakHashMap.java: Imported from classpath.
1254 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1255 * java/util/Bucket.java: Deleted.
1256 * java/util/BasicMapEntry.java: Deleted.
1257 * java/util/Collections.java (search): Use a for-loop, not iterator
1259 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1260 of elements in source.
1261 (max): Use a for-loop.
1263 (reverse): Keep track of positions instead of using Iterator's
1264 nextIndex() and previousIndex().
1265 (shuffle(List)): Initialize defaultRandom if required using
1266 double-check thread safety idiom. Call two-argument shuffle method
1267 using defaultRandom.
1268 (defaultRandom): New field.
1269 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1270 using previousIndex() and nextIndex().
1271 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1272 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1273 * java/util/AbstractMap.java (toString): Use StringBuffer.
1274 * java/lang/ref/PhantomReference.java: Imported from classpath.
1275 * java/lang/ref/SoftReference.java: Ditto.
1276 * java/lang/ref/Reference.java: Ditto.
1277 * java/lang/ref/WeakReference.java: Ditto.
1278 * java/lang/ref/ReferenceQueue.java: Ditto.
1280 2000-12-10 Richard Henderson <rth@redhat.com>
1282 * configure.host: Recognize alpha*-*, not alphaev6-*.
1284 2000-12-09 Anthony Green <green@redhat.com>
1286 * configure.host: Enable interpreter for Alpha.
1288 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1290 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1291 (ZIP): Points at fastjar instead of zip.
1292 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1293 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1294 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1295 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1296 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1297 ($(x_java_source_files:.java=.class):): Likewise.
1298 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1300 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1301 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1302 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1303 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1304 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1305 gnu/gcj/runtime/VMClassLoader.h:,
1306 java/io/ObjectInputStream$$GetField.h:,
1307 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1308 (Makefile.in): Rebuilt.
1310 2000-12-08 Tom Tromey <tromey@redhat.com>
1313 * configure: Rebuilt.
1314 * configure.in: Use echo, not `:', to create .d files.
1316 2000-12-08 Warren Levy <warrenl@redhat.com>
1318 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1319 NullPointerException so proper check of offset can be done.
1321 2000-12-08 Warren Levy <warrenl@redhat.com>
1323 * java/io/FileInputStream.java (close): Check if the fd is valid.
1324 * java/io/RandomAccessFile.java (close): Ditto.
1325 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1326 * java/net/PlainSocketImpl.java (close): Ditto.
1328 2000-12-06 Tom Tromey <tromey@redhat.com>
1330 * java/awt/GridBagConstraints.java: Filled in values for static
1333 * java/util/BitSet.java: Updated copyright notice.
1335 * Makefile.in: Rebuilt.
1336 * Makefile.am (awt_java_source_files): Added new file.
1337 * java/awt/GridBagConstraints.java: New file.
1339 2000-12-05 Tom Tromey <tromey@redhat.com>
1341 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1342 Now package-private, not protected.
1343 * java/text/DateFormatSymbols.java (equals): Now private.
1344 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1345 * java/util/BitSet.java: Class no longer final.
1347 2000-12-04 Warren Levy <warrenl@redhat.com>
1349 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1350 out code dependent on compiler and library changes.
1352 2000-12-04 Warren Levy <warrenl@redhat.com>
1354 * java/io/FilePermission.java: Made class final per spec.
1355 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1356 method name to match spec (fixed typo).
1357 * java/util/LinkedList.java: Implements List.
1359 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1361 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1362 Edgar Villanueva <edgarvil@home.com>.
1364 2000-12-03 Tom Tromey <tromey@redhat.com>
1366 * java/awt/geom/Point2D.java: Added protected constructor.
1367 (equals): New method.
1368 (Float.setLocation(float,float)): New method.
1369 * java/awt/geom/Dimension2D.java: Added protected constructor.
1370 * java/awt/geom/AffineTransform.java: Made all constants public.
1371 (concatenate): Fixed typo in name.
1372 * java/awt/event/WindowAdapter.java: Class now abstract.
1373 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1374 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1377 * java/awt/AWTError.java: Extend Error, not
1378 IllegalStateException.
1380 * Makefile.in: Rebuilt.
1381 * Makefile.am (awt_java_source_files): Added new file.
1382 * java/awt/geom/RoundRectangle2D.java: New file.
1384 * Makefile.in: Rebuilt.
1385 * Makefile.am (awt_java_source_files): Added new file.
1386 * java/awt/FlowLayout.java: New file.
1388 * Makefile.in: Rebuilt.
1389 * Makefile.am (awt_java_source_files): Added new file.
1390 * java/awt/GridLayout.java: New file.
1392 2000-12-02 Tom Tromey <tromey@redhat.com>
1394 * Makefile.in: Rebuilt.
1395 * Makefile.am (awt_java_source_files): Added new files.
1396 * java/awt/CardLayout.java: New file.
1397 * java/awt/AWTPermission.java: New file.
1399 2000-12-01 Tom Tromey <tromey@redhat.com>
1401 * java/util/Vector.java (insertElementAt): Unconditionally
1402 increment elementCount.
1403 (removeRange): Clear unused slots in vector.
1405 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1407 * java/lang/natMath.cc: Declare fabsf() function.
1408 * java/lang/mprec.h: Don't include math.h.
1409 * java/lang/dtoa.c: Include string.h.
1410 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1413 From Adam Welc <welc@cs.purdue.edu>:
1414 * java/util/LinkedList.java (removeFirst): Update `first' field.
1415 Handle the last == first case.
1416 (removeLast): Update `last' field. Handle the last == first case.
1418 2000-12-01 Warren Levy <warrenl@cygnus.com>
1420 * Makefile.am: Added entries for new java.sql modules.
1421 * Makefile.in: Rebuilt.
1423 2000-12-01 Warren Levy <warrenl@cygnus.com>
1425 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1426 that aren't quite 1.2 compatible yet.
1428 2000-11-30 Warren Levy <warrenl@cygnus.com>
1430 * java/sql/Array.java: New file from classpath.
1431 * java/sql/BatchUpdateException.java: Ditto.
1432 * java/sql/Blob.java: Ditto.
1433 * java/sql/Clob.java: Ditto.
1434 * java/sql/Ref.java: Ditto.
1435 * java/sql/SQLData.java: Ditto.
1436 * java/sql/SQLInput.java: Ditto.
1437 * java/sql/SQLOutput.java: Ditto.
1438 * java/sql/Struct.java: Ditto.
1439 * java/sql/CallableStatement.java: Merged file from claspath.
1440 * java/sql/Connection.java: Ditto.
1441 * java/sql/DataTruncation.java: Ditto.
1442 * java/sql/DatabaseMetaData.java: Ditto.
1443 * java/sql/DriverManager.java: Ditto.
1444 * java/sql/PreparedStatement.java: Ditto.
1445 * java/sql/ResultSet.java: Ditto.
1446 * java/sql/ResultSetMetaData.java: Ditto.
1447 * java/sql/SQLException.java: Ditto.
1448 * java/sql/SQLWarning.java: Ditto.
1449 * java/sql/Statement.java: Ditto.
1450 * java/sql/Types.java: Ditto.
1452 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1454 * java/lang/natSystem.cc (init_properties): Set user.language and
1456 * configure.in: Check for setlocale.
1457 * configure: Rebuilt.
1458 * include/config.h.in: Rebuilt.
1460 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1461 the infate() call didn't deliver any output. Throw a ZipException if
1462 the needsDictionary() call returns true.
1463 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1464 * java/io/InputStreamReader: Use the default buffer size for the
1465 contained BufferedInputStream.
1467 2000-11-28 Warren Levy <warrenl@cygnus.com>
1469 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1470 more time zone entries.
1471 * java/text/SimpleDateFormat.java (format): Added case for
1474 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1476 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1477 directly rather than read() in all cases. Make primitive read
1478 implementations more efficient, as defined in JDK online docs.
1479 (skipBytes): Behave like the JDK's implementation.
1480 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1481 closed stream with checkStatus() whenever an IOException can be
1483 (checkStatus): New private method.
1485 2000-11-27 Warren Levy <warrenl@cygnus.com>
1487 * Makefile.am: Added natTimeZone.cc.
1488 * Makefile.in: Rebuilt.
1489 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1490 * java/text/DateFormatSymbols.java (ampms): Made package private.
1491 (eras): Made package private.
1492 (months): Made package private.
1493 (shortMonths): Made package private.
1494 (shortWeekdays): Made package private.
1495 (weekdays): Made package private.
1496 (formatPrefixes): New private field.
1497 (localPatternCharsDefault): Made private.
1498 (dateFormats): New package private field.
1499 (timeFormats): New package private field.
1500 (formatsForKey): New private method.
1501 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1502 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1503 * java/text/SimpleDateFormat.java: Merged with Classpath.
1504 * java/util/TimeZone.java: Merged with Classpath.
1505 * java/util/natTimeZone.cc: New file.
1507 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1509 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1510 (addElement): Don't increment elementCount twice. Doh.
1511 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1512 array needs to be expanded.
1514 * java/util/Collections.java (UnmodifiableCollection): Implement
1516 (UnmodifiableList): Throw UnsupportedOperationException from
1517 modification methods. Set `l' from the one-parameter constructor.
1518 (UnmodifiableMap): Implement toString().
1519 (SynchronizedCollection): Ditto.
1520 (SynchronizedList): Set `l' from the one-parameter constructor.
1521 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1522 (SynchronizedMap): Implement toString().
1524 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1526 * javax/naming/NameParser.java,
1527 javax/naming/directory/AttributeInUseException.java,
1528 javax/naming/directory/AttributeModificationException.java,
1529 javax/naming/directory/InvalidAttributeIdentifierException.java,
1530 javax/naming/directory/InvalidAttributesException.java,
1531 javax/naming/directory/InvalidAttributeValueException.java,
1532 javax/naming/directory/InvalidSearchControlsException.java,
1533 javax/naming/directory/InvalidSearchFilterException.java,
1534 javax/naming/directory/NoSuchAttributeException.java,
1535 javax/naming/directory/SchemaViolationException.java: New files.
1537 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1539 * javax/naming/InitialContext.java (rebind): Implement.
1540 (unbind): Implement.
1541 (rename): Implement.
1543 (listBindings): Implement.
1544 (destroySubcontext): Implement.
1545 (createSubcontext): Implement.
1546 (lookupLink): Implement.
1547 (getNameParser): Implement.
1548 (composeName): Implement.
1549 (addToEnvironment): Implement.
1551 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1553 * javax/naming/AuthenticationException.java,
1554 javax/naming/AuthenticationNotSupportedException.java,
1555 javax/naming/CannotProceedException.java,
1556 javax/naming/CommunicationException.java,
1557 javax/naming/ConfigurationException.java,
1558 javax/naming/ContextNotEmptyException.java,
1559 javax/naming/InsufficientResourcesException.java,
1560 javax/naming/InterruptedNamingException.java,
1561 javax/naming/InvalidNameException.java,
1562 javax/naming/LimitExceededException.java,
1563 javax/naming/LinkException.java,
1564 javax/naming/LinkLoopException.java,
1565 javax/naming/MalformedLinkException.java,
1566 javax/naming/NameAlreadyBoundException.java,
1567 javax/naming/NameNotFoundException.java,
1568 javax/naming/NamingSecurityException.java,
1569 javax/naming/NoPermissionException.java,
1570 javax/naming/NotContextException.java,
1571 javax/naming/PartialResultException.java,
1572 javax/naming/ReferralException.java,
1573 javax/naming/ServiceUnavailableException.java,
1574 javax/naming/SizeLimitExceededException.java,
1575 javax/naming/TimeLimitExceededException.java: New files.
1577 * javax/naming/Name.java (clone): New method.
1578 (compareTo): New method.
1579 (isEmpty): New method.
1580 (getAll): New method.
1581 (getPrefix): New method.
1582 (getSuffix): New method.
1583 (startsWith): New method.
1584 (endsWith): New method.
1585 (addAll): New method.
1586 (addAll): New method.
1589 (remove): New method.
1591 * javax/naming/Context.java (lookup): New method.
1592 (rebind): New method.
1593 (unbind): New method.
1594 (rename): New method.
1596 (listBindings): New method.
1597 (destroySubcontext): New method.
1598 (createSubcontext): New method.
1599 (lookupLink): New method.
1600 (getNameParser): New method.
1601 (composeName): New method.
1602 (addToEnvironment): New method.
1603 (removeFromEnvironment): New method.
1604 (getEnvironment): New method.
1605 (close): New method.
1606 (getNameInNamespace): New method.
1608 * javax/naming/InitialContext.java (lookup): New method.
1609 (rebind): New method.
1610 (unbind): New method.
1611 (rename): New method.
1613 (listBindings): New method.
1614 (destroySubcontext): New method.
1615 (createSubcontext): New method.
1616 (lookupLink): New method.
1617 (getNameParser): New method.
1618 (composeName): New method.
1619 (addToEnvironment): New method.
1620 (removeFromEnvironment): New method.
1621 (getEnvironment): New method.
1622 (close): New method.
1623 (getNameInNamespace): New method.
1625 2000-11-26 Tom Tromey <tromey@cygnus.com>
1627 * Makefile.in: Rebuilt.
1628 * Makefile.am (core_java_source_files): Added
1629 RuntimePermission.java.
1630 * java/lang/RuntimePermission.java: Imported from Classpath.
1631 * java/lang/Thread.java (getContextClassLoader): Now
1632 synchronized. Added security code.
1633 (setContextClassLoader): Likewise.
1635 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1636 length field of array.
1637 (_Jv_NewPrimArray): Likewise.
1638 * gcj/array.h (__JArray): `length' field now const. Added
1641 2000-11-26 Anthony Green <green@redhat.com>
1643 * javax/naming/spi/NamingManager.java,
1644 javax/naming/spi/ObjectFactory.java,
1645 javax/naming/spi/InitialContextFactory.java,
1646 javax/naming/spi/InitialContextFactoryBuilder.java,
1647 javax/naming/RefAddr.java, javax/naming/Reference.java,
1648 javax/naming/NamingException.java, javax/naming/Context.java,
1649 javax/naming/Referenceable.java,
1650 javax/naming/directory/InitialDirContext.java,
1651 javax/naming/directory/DirContext.java,
1652 javax/naming/directory/Attributes.java,
1653 javax/naming/directory/Attribute.java,
1654 javax/naming/StringRefAddr.java,
1655 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1656 javax/naming/InitialContext.java,
1657 javax/naming/NoInitialContextException.java: New files.
1659 2000-11-25 Anthony Green <green@redhat.com>
1661 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1662 (_Jv_NewPrimArray): Likewise.
1663 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1664 (class JArray): Removed constructor.
1666 * java/lang/Thread.java (context_class_loader): New private data.
1667 (getContextClassLoader): New method.
1668 (setContextClassLoader): New method.
1669 (Thread): Initialize context_class_loader.
1671 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1672 (getResource): Rename to findResource.
1673 (findResource): New method. Used to be getResource.
1674 (getResourceAsStream): Deleted.
1675 (jarFileize): Extracted logic from URLClassLoader constructor into
1676 this new private method.
1677 (addURL): New protected method.
1678 (URLClassLoader): Call jarFileize. Use addElement instead of
1680 (findResources): New method.
1682 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1683 (getResource): Implement correct logic.
1684 (findResource): New method.
1685 (getResources): New method.
1686 (findClass): Create a ClassNotFoundException with the name of the
1687 class rather than nothing at all.
1688 (defineClass) Only throw ClassFormatError.
1690 * java/lang/Class.java (forName): New method.
1691 * java/lang/Class.h (forName): New method.
1692 * java/lang/natClass.cc (forName): New method.
1694 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1696 * java/lang/System.java (setProperties): Only call init_properties()
1697 if properties is null.
1698 (getProperties): Ditto.
1699 (getProperty): Ditto.
1700 (setProperty): Call init_properties if properties are null.
1701 (prop_init): Remove field.
1702 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1703 method. Check for null properties after synchronizing instead of
1704 prop_init flag. Set the properties field last for thread safety.
1706 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1707 test for gcj.dumpobjects property and enable object stream dumping
1709 (dumpElement): No longer native.
1710 (dumpElementln): Ditto.
1711 (setDump): Do not define.
1712 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1713 (dumpElementln): Removed.
1716 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1718 * configure: Rebuilt.
1719 * Makefile.in: Rebuilt.
1720 * Makefile.am (built_java_source_files): Add Configuration.java.
1721 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1722 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1723 Create `gnu' directory in the build tree.
1724 * gnu/classpath/Configuration.java.in: New file.
1726 2000-11-24 Tom Tromey <tromey@cygnus.com>
1728 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1730 (_Jv_NewPrimArray): Likewise.
1732 * gcj/array.h (__JArray): `length' field now const. Added
1734 (class JArray): Added constructor.
1736 2000-11-23 Mark Wielaard <mark@klomp.org>
1738 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1741 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1743 * java/util/Vector.java: Improve exception messages.
1744 (Vector): Check initialCapacity for IllegalArgumentException.
1745 (tromToSize): Don't check for elementCount == elementData.length
1747 (toArray): Don't try to set null marker if target array is the same
1748 length as the vector.
1750 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1752 * Makefile.in: Rebuilt.
1753 * Makefile.am (core_java_source_files): Added Collections.java.
1754 * java/util/List.java: Merged from classpath.
1755 * java/util/Vector.java: Ditto.
1756 * java/util/Collections.java: From classpath.
1757 * java/util/ArrayList.java (addAll(Collection)): Call
1758 addAll(int,Collection) instead of duplicating code.
1759 (indexOf): Clean up int initialization.
1760 (clear): Set cleared array entries to null, to allow garbage
1762 * java/util/List.java: Minor formatting fixes.
1763 * java/util/SimpleTimeZone.java: ditto.
1765 2000-11-18 Tom Tromey <tromey@cygnus.com>
1767 * Makefile.in: Rebuilt.
1768 * Makefile.am (core_java_source_files): Added new files.
1769 * java/lang/reflect/ReflectPermission.java: New class.
1770 * java/io/FileFilter.java: From Classpath
1771 * java/io/FilePermission.java: From Classpath.
1773 2000-11-17 Tom Tromey <tromey@cygnus.com>
1775 * java/lang/reflect/AccessibleObject.java (isAccessible,
1776 setAccessible): Now public.
1778 * java/lang/natString.cc: Include Locale.h.
1779 (toUpperCase): Added `locale' argument. Handle locale
1781 (toLowerCase): Added `locale' argument. Handle locale
1783 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1784 CAPITAL_I): New defines.
1785 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1788 (toUpperCase, toLowerCase): New methods. Variants which accept
1791 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1794 * java/util/PropertyPermission.java: Re-merged from Classpath.
1796 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1798 * java/text/StringCharacterIterator.java: Reindented.
1799 (setText): New method.
1801 2000-11-17 Mark Wielaard <mark@klomp.org>
1803 Merge with Classpath (changes by Bryce McKinlay)
1804 * java/util/jar/*.java: Reformat all to unofficial standard coding
1805 style. No changes of substance.
1807 2000-11-17 Mark Wielaard <mark@klomp.org>
1809 * java/util/zip/*.java: Javadoc updates.
1811 2000-11-17 Tom Tromey <tromey@cygnus.com>
1813 * java/text/CollationKey.java: Implement Comparable.
1814 (compareTo(Object)): New method.
1815 * java/text/Collator.java (compare(Object,Object)): New method.
1816 Implement Comparator.
1818 * java/util/zip/InflaterInputStream.java (available): New method.
1819 (close): New method.
1820 (read, available, skip, fill): Throw exception if stream closed.
1821 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1822 getNextEntry): Throw exception if closed.
1824 2000-11-16 Tom Tromey <tromey@cygnus.com>
1826 * java/io/PushbackReader.java: Merged with Classpath.
1827 * java/util/Arrays.java: Updated from Classpath.
1829 * scripts/blocks.pl: New file.
1830 * java/lang/Character.java (Subset): New class.
1831 (UnicodeBlock): New class.
1833 * java/lang/Math.java (toDegrees, toRadians): New methods.
1835 * java/lang/Float.java: Implement Comparable.
1836 (compareTo): New methods.
1837 * java/lang/Double.java: Implement Comparable.
1838 (compareTo): New methods.
1840 2000-11-16 Warren Levy <warrenl@cygnus.com>
1842 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1844 (listeners): Made transient.
1845 (source): Renamed from 'bean'.
1846 (children): New field for serialization.
1847 (propertyChangeSupportSerializedDataVersion): Ditto.
1848 (serialVersionUID): Ditto.
1849 (writeObject): New serialization method.
1850 (readObject): New serialization method.
1851 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1853 (listeners): Made transient.
1854 (source): Renamed from 'bean'.
1855 (children): New field for serialization.
1856 (vetoableChangeSupportSerializedDataVersion): Ditto.
1857 (serialVersionUID): Ditto.
1858 (writeObject): New serialization method.
1859 (readObject): New serialization method.
1860 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1861 to allow constructor to have a return type (i.e. the class that the
1862 constructor constructs).
1864 2000-11-14 Tom Tromey <tromey@cygnus.com>
1866 * Makefile.in: Rebuilt.
1867 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1870 2000-11-02 Warren Levy <warrenl@cygnus.com>
1872 * java/io/ObjectInputStream.java (readObject): Added code to
1873 conditionally dump out the serialized data.
1874 Handle ENDBLOCKDATA case a bit more gracefully since the current
1875 behavior doesn't seem to work as expected.
1876 (readStreamHeader): Added code for serialized data dumper.
1877 (readNextBlock): Ditto.
1878 (readFields): Ditto.
1879 (dump): New private static field for turning on/off dumper.
1880 (setDump): New native method.
1881 (dumpElement): New native method.
1882 (dumpElementln): New native method.
1883 * java/io/natObjectInputStream.cc (setDump): New method.
1884 (dumpElement): New method.
1885 (dumpElementln): New method.
1887 2000-11-02 Warren Levy <warrenl@cygnus.com>
1889 * java/net/InetAddress.java (addr): Renamed from 'address'.
1890 (address): New field to match Serialized Form doc.
1891 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1892 (family): New serialization field.
1893 (serialVersionUID): New field.
1894 (readObject): New method.
1895 (writeObject): New method.
1896 (getFamily): New native method.
1897 (InetAddress): Set family.
1898 * java/net/natInetAddress.cc (getFamily): New method.
1899 (addr): Renamed from 'address'.
1900 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1901 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1902 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1904 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1906 * java/util/AbstractList.java (SubList): Make it a top-level private
1908 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1910 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1911 * Makefile.in: Rebuilt.
1913 2000-11-02 Tom Tromey <tromey@cygnus.com>
1915 * Makefile.in: Rebuilt.
1916 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1919 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1921 * java/util/AbstractList.java (remove): Comment out modCount increment
1922 to work around compiler bug.
1925 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1927 * java/util/AbstractList.java: Throw messages with
1928 IndexOutOfBoundsExceptions.
1929 (listIterator()): Call listIterator(0).
1930 (size): New field. Initialize to size().
1931 (hasNext): Test position against size, not size().
1932 (remove): Increment knownMod by one instead of resetting it from
1935 (SubList.upMod): Removed.
1936 (SubList.set): Don't call upMod() or update knownMod.
1937 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1938 (SubList.remove): Ditto.
1939 (SubList.addAll): Don't call backingList.size(). Increment size from
1941 (SubList.iterator): New method. Call listIterator(0).
1942 (SubList.listIterator): New method. Restore code to return an anonymous
1943 listIterator implementation (with some changes).
1944 * java/util/AbstractSequentialList.java: Throw messages with
1945 IndexOutOfBoundsExceptions.
1946 (addAll): Add a specnote.
1947 * java/util/ArrayList.java (removeRange): Get the math right.
1948 (addAll): Increment modCount _before_ creating iterator.
1949 * java/util/LinkedList.java: Rewritten, mostly.
1951 2000-11-01 Tom Tromey <tromey@cygnus.com>
1953 * scripts/encodings.pl: Added `ASCII' alias.
1954 * Makefile.in: Rebuilt.
1955 * Makefile.am (convert_source_files): Added new files.
1956 * gnu/gcj/convert/Input_ASCII.java: New file.
1957 * gnu/gcj/convert/Output_ASCII.java: New file.
1958 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1959 out-of-range characters.
1960 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1961 (read): Swap bytes if required. Treat `count' as character count,
1963 (write): Likewise. Also, handle case where iconv fails on a given
1965 (init): Put encoding into exception.
1966 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1967 (static): Call iconv_init. Rebuilt alias list.
1968 (iconv_init): New private method.
1970 2000-11-01 Tom Tromey <tromey@cygnus.com>
1972 * Makefile.in: Rebuilt.
1973 * Makefile.am (install-exec-hook): Only make a single symlink, and
1974 remove the destination before making the link.
1975 * configure: Rebuilt.
1976 * configure.in: Call AC_PROG_LN_S.
1978 2000-10-31 Warren Levy <warrenl@cygnus.com>
1980 * jni.cc: Added include of java/lang/ThreadGroup.h.
1981 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1982 per change of 2000-10-05.
1984 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1986 * java/util/BitSet.java: Updated @specnote.
1988 * java/io/Reader.java: Merge docs from classpath.
1989 (skip): Synchronize on `lock'.
1990 * java/io/FileReader.java: Import correct implementation from
1992 * java/io/StringReader.java: Merge docs from classpath.
1993 (ready): Throw IOException if stream is closed.
1995 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1997 * java/util/AbstractCollection.java (addAll): Use size() instead of
1998 hasNext() in iterator loop.
2000 (contains): Ditto. Simplify loop.
2001 (containsAll): Ditto.
2006 (toString): Ditto. Use string concatenation operators, not
2008 * java/util/AbstractList.java (addAll): Use size() instead of
2009 hasNext() in iterator loop.
2012 (indexOf): Ditto. Don't take null check outside of the loop.
2013 (iterator): Return an AbstractListItr instead of anonymous class.
2014 (lastIndexOf): Use a for loop bounded by size() instead of
2015 hasPrevious() in iterator loop.
2016 (listIterator): Return an AbstractListItr.
2017 (removeRange): Remove bounds checking code and docs.
2018 (AbstractListItr): New inner class. Code moved here from
2020 (SubList.iterator): Removed. Use default implementation from
2021 AbstractList instead.
2022 (SubList.listIterator): As above.
2023 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2024 instead of hasNext() in iterator loop.
2025 (containsValue): Ditto.
2031 (toString): Ditto. Use string concatenation operators, not
2033 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2034 bounded by size() instead of hasNext() in iterator loop.
2035 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2036 part of normal execution flow. Do an explicit null check instead.
2037 * java/util/ArrayList.java (_iSize): Rename to `size'.
2038 (_arData): Rename to `data'.
2039 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2042 (removeRange): Make protected. Don't check bounds.
2043 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2045 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2047 (addAll (int, Collection)): Check lower bounds. Simplify exception
2049 (clone): Clone the data array too.
2050 (indexOf): Inline doesEqual().
2051 (lastIndexOf): Ditto.
2052 (clear): Don't set array data to null.
2053 (set): Check lower bounds. Simplify exception string.
2054 (toArray): Correct comment.
2055 (trimToSize): Don't update modCount, this is not a structural change.
2058 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2060 (toString): Declare `bit' as long, not int.
2061 (data): Made package-private, not private.
2063 2000-10-27 Warren Levy <warrenl@cygnus.com>
2065 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2066 array elements to true.
2068 2000-10-27 Warren Levy <warrenl@cygnus.com>
2070 * Makefile.am: Added locale files from Classpath.
2071 * Makefile.in: Rebuilt.
2072 * gnu/java/locale/Calendar.java: New file.
2073 * gnu/java/locale/Calendar_de.java: New file.
2074 * gnu/java/locale/Calendar_en.java: New file.
2075 * gnu/java/locale/Calendar_nl.java: New file.
2076 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2077 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2078 serialization compatibility.
2079 (scale): Made private.
2080 (serialVersionUID): New field.
2081 * java/math/BigInteger.java (ival): Made transient.
2082 (words): Made transient.
2083 (bitCount): New serialization field.
2085 (firstNonzeroByteNum): Ditto.
2086 (lowestSetBit): Ditto.
2089 (serialVersionUID): New field.
2090 (readObject): New method.
2091 (writeObject): New method.
2092 * java/util/BitSet.java (serialVersionUID): New field.
2093 * java/util/Calendar.java: Replaced with Classpath file.
2094 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2095 of getDefault() for TimeZone or Locale instead of passing nulls.
2096 * java/util/Locale.java (serialVersionUID): New field.
2097 (writeObject): New method.
2098 (readObject): New method.
2099 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2101 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2103 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2104 (core_java_source_files): Put java.lang, java.io, and java.util here.
2105 (ordinary_java_source_files): Order so that core_java_source_files are
2107 (java_source_files): Reorder so that special_java_source_files are
2109 * configure.in: Don't pass -I flag to gcj.
2110 * Makefile.in: Rebuilt.
2111 * configure: Rebuilt.
2113 2000-10-25 Tom Tromey <tromey@cygnus.com>
2115 * Makefile.in: Rebuilt.
2116 * Makefile.am (install-exec-hook): New target.
2118 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2120 * java/util/EventObject.java: Merged from classpath.
2122 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2125 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2127 * java/util/AbstractSet.java (equals): Re-installed original code.
2129 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2131 * Makefile.am: Added rules for libgcjx library.
2132 * Makefile.in: Rebuilt.
2133 * configure.in: Added check for X.
2134 * configure: Rebuilt.
2135 * gnu/awt/LightweightRedirector.java: New file.
2136 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2137 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2138 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2139 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2140 * gnu/awt/j2d/MappedRaster.java: New file.
2141 * gnu/awt/xlib/XCanvasPeer.java: New file.
2142 * gnu/awt/xlib/XEventLoop.java: New file.
2143 * gnu/awt/xlib/XEventQueue.java: New file.
2144 * gnu/awt/xlib/XFontMetrics.java: New file.
2145 * gnu/awt/xlib/XFramePeer.java: New file.
2146 * gnu/awt/xlib/XGraphics.java: New file.
2147 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2148 * gnu/awt/xlib/XPanelPeer.java: New file.
2149 * gnu/awt/xlib/XToolkit.java: New file.
2150 * gnu/gcj/xlib/Clip.java: New file.
2151 * gnu/gcj/xlib/Colormap.java: New file.
2152 * gnu/gcj/xlib/Display.java: New file.
2153 * gnu/gcj/xlib/Drawable.java: New file.
2154 * gnu/gcj/xlib/Font.java: New file.
2155 * gnu/gcj/xlib/GC.java: New file.
2156 * gnu/gcj/xlib/Pixmap.java: New file.
2157 * gnu/gcj/xlib/Screen.java: New file.
2158 * gnu/gcj/xlib/Visual.java: New file.
2159 * gnu/gcj/xlib/WMSizeHints.java: New file.
2160 * gnu/gcj/xlib/Window.java: New file.
2161 * gnu/gcj/xlib/WindowAttributes.java: New file.
2162 * gnu/gcj/xlib/XAnyEvent.java: New file.
2163 * gnu/gcj/xlib/XButtonEvent.java: New file.
2164 * gnu/gcj/xlib/XColor.java: New file.
2165 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2166 * gnu/gcj/xlib/XConnectException.java: New file.
2167 * gnu/gcj/xlib/XEvent.java: New file.
2168 * gnu/gcj/xlib/XException.java: New file.
2169 * gnu/gcj/xlib/XExposeEvent.java: New file.
2170 * gnu/gcj/xlib/XID.java: New file.
2171 * gnu/gcj/xlib/XImage.java: New file.
2172 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2173 * gnu/gcj/xlib/natClip.cc: New file.
2174 * gnu/gcj/xlib/natColormap.cc: New file.
2175 * gnu/gcj/xlib/natDisplay.cc: New file.
2176 * gnu/gcj/xlib/natDrawable.cc: New file.
2177 * gnu/gcj/xlib/natFont.cc: New file.
2178 * gnu/gcj/xlib/natGC.cc: New file.
2179 * gnu/gcj/xlib/natPixmap.cc: New file.
2180 * gnu/gcj/xlib/natScreen.cc: New file.
2181 * gnu/gcj/xlib/natVisual.cc: New file.
2182 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2183 * gnu/gcj/xlib/natWindow.cc: New file.
2184 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2185 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2186 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2187 * gnu/gcj/xlib/natXColor.cc: New file.
2188 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2189 * gnu/gcj/xlib/natXException.cc: New file.
2190 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2191 * gnu/gcj/xlib/natXImage.cc: New file.
2192 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2193 * java/awt/EventDispatchThread.java: Start thead on creation.
2195 2000-10-20 Tom Tromey <tromey@cygnus.com>
2197 From Arno J. Klaassen:
2198 * interpret.cc: Include <stdlib.h> for alloca.
2199 * defineclass.cc: Include <stdlib.h> for alloca.
2201 * Makefile.in: Rebuilt.
2202 * Makefile.am: Include deps.mk.
2203 (GCJCOMPILE): Added -MD, -MT, and -MF.
2204 ($(javao_files)): Don't depend on libgcj.zip.
2205 (all-recursive): New target.
2206 (%.lo:%.cc): Do dependency tracking.
2207 ($(nat_headers)): Don't depend on libgcj.zip.
2208 * configure: Rebuilt.
2209 * configure.in: Make .d files and deps.mk.
2211 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2213 * exception.cc: Don't #include "exception".
2214 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2216 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2217 * Makefile.in: Updated.
2219 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2221 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2222 * java/awt/peer/ComponentPeer.java (disable): Removed.
2225 (minimumSize): Removed.
2226 (preferredSize): Removed.
2229 * java/awt/peer/ListPeer.java (addItem): Removed.
2231 (minimumSize): Removed.
2232 (preferredSize): Removed.
2233 (setMultipleSelections): Removed.
2234 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2235 (remove): Renamed from removeMenu.
2236 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2238 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2239 (remove): Renamed from removeItem.
2240 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2241 (getMinimumSize): Removed.
2242 (getPreferredSize): Removed.
2243 (minimumSize): Removed.
2244 (preferredSize): Removed.
2245 (replaceText): Removed.
2246 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2247 (preferredSize): Removed.
2248 (getMinimumSize): Removed.
2249 (getPreferredSize): Removed.
2250 (setEchoCharacter): Removed.
2252 2000-10-10 Warren Levy <warrenl@cygnus.com>
2254 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2255 * java/sql/Date.java (serialVersionUID): New field.
2256 * java/sql/Time.java (serialVersionUID): New field.
2257 * java/sql/Timestamp.java (serialVersionUID): New field.
2258 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2259 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2260 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2261 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2262 (readObject): New serialization method.
2263 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2264 (serialVersionOnStream): New field.
2265 (readObject): New serialization method.
2266 (getMonetaryDecimalSeparator): New method.
2267 (setMonetaryDecimalSeparator): New method.
2268 * java/text/NumberFormat.java (maxFractionDigits): New field.
2269 (maxIntegerDigits): New field.
2270 (minFractionDigits): New field.
2271 (minIntegerDigits): New field.
2272 (serialVersionOnStream): New field.
2273 (serialVersionUID): New field.
2274 (readObject): New serialization method.
2275 (writeObject): New serialization method.
2276 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2277 (serialVersionOnStream): New field.
2278 (serialVersionUID): New field.
2279 (readObject): New serialization method.
2281 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2283 * configure.in (GCJ): Avoid bogus error message when looking for
2284 (and not finding) gcj in the build tree.
2285 * configure: Rebuilt.
2287 2000-10-09 Tom Tromey <tromey@cygnus.com>
2289 * configure: Rebuilt.
2290 * configure.in: Include sys/types.h when checking for socklen_t.
2291 From Arno J. Klaassen.
2293 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2295 * include/jvm.h: Enable __builtin_expect().
2297 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2298 the main program. Fix for PR libgcj/341.
2300 2000-10-07 Tom Tromey <tromey@cygnus.com>
2302 * java/util/Properties.java: Merged with Classpath version.
2304 2000-10-05 Tom Tromey <tromey@cygnus.com>
2306 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2307 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2308 * java/lang/Class.h (Object): Added `class$' field.
2309 * java/lang/Object.h (Object): Added `class$' field.
2310 * defineclass.cc (ClassClass): Use `class$' form.
2311 (ClassObject): Likewise.
2312 * resolve.cc (ClassObject): Use `class$' form.
2313 (ObjectClass): Likewise.
2314 * interpret.cc (ClassError): Removed.
2315 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2317 (IntegerClass): Likewise.
2318 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2320 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2321 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2322 SerializableClass): Likewise.
2323 Include Serializable.h, Cloneable.h.
2324 * java/lang/natSystem.cc (SystemClass): Removed.
2325 (init_properties): Use `class$' form.
2326 * java/lang/natObject.cc (CloneableClass): Removed.
2327 (clone): Use `class$' form.
2328 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2329 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2330 ConstructorClass): Likewise.
2331 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2332 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2333 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2334 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2336 (ClassClass): Likewise.
2337 * include/jvm.h (StringClass): Use `class$' form.
2338 * prims.cc (ObjectClass): Removed.
2339 (_Jv_RunMain): Use `class$' form.
2340 (_Jv_AllocObject): Likewise.
2341 * jni.cc (ClassClass): Use `class$' form.
2342 (ThrowableClass): Likewise.
2343 (ObjectClass): Likewise.
2344 (MethodClass): Likewise.
2345 (ThreadGroupClass): Likewise.
2346 (NativeThreadClass): Likewise.
2347 * boehm.cc (ObjectClass): Removed.
2348 (ClassClass): Removed.
2349 (_Jv_MarkObj): Use `class$' form.
2350 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2353 2000-10-05 Warren Levy <warrenl@cygnus.com>
2355 * Makefile.am: Removed java/io/Replaceable.java and
2356 java/io/Resolvable.java.
2357 * Makefile.in: Rebuilt.
2358 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2360 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2362 (processResolution): Handle readResolve method via reflection with
2363 removal of Resolvable interface.
2364 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2365 method via reflection with removal of Replaceable interface.
2366 * java/io/Replaceable.java: Removed.
2367 * java/io/Resolvable.java: Removed.
2368 * java/security/Key.java (serialVersionUID): New field.
2369 * java/security/Provider.java (serialVersionUID): New field.
2370 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2372 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2374 * java/sql/DataTruncation.java (serialVersionUID): New field.
2375 * java/sql/SQLException.java (serialVersionUID): New field.
2376 * java/sql/SQLWarning.java (serialVersionUID): New field.
2377 * java/util/Date.java (serialVersionUID): New field.
2378 (millis): Made transient.
2379 (readObject): New method.
2380 (writeObject): New method.
2382 2000-10-05 Tom Tromey <tromey@cygnus.com>
2384 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2386 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2388 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2389 (JvRunMain): Set _Jv_argv and _Jv_argc.
2390 * java/awt/Component.java: Minor fixes.
2391 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2392 * java/awt/Toolkit.java (systemEventQueue): Removed.
2393 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2394 * java/awt/Window.java (getToolkit): Don't call super.
2395 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2396 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2397 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2398 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2399 * gnu/awt/gtk/GtkFramePeer.java: New file.
2400 * gnu/awt/gtk/GtkMainThread.java: New file.
2401 * gnu/awt/gtk/GtkToolkit.java: New file.
2402 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2403 * gnu/awt/gtk/gtkcommon.cc: New file.
2404 * gnu/awt/gtk/gtkcommon.h: New file.
2405 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2406 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2407 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2408 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2409 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2410 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2412 2000-09-30 Tom Tromey <tromey@cygnus.com>
2414 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2415 interrupted before modifying the cv's wait set.
2418 2000-09-30 Hans Boehm <boehm@acm.org>
2419 Bryce McKinlay <bryce@albatross.co.nz>
2421 Implement bitmap descriptor based marking for Boehm GC.
2423 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2424 * configure: Rebuilt.
2425 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2426 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2427 method get_finalizer().
2428 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2429 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2430 (_Jv_AllocObj): Add new jclass parameter.
2431 (_Jv_AllocArray): Ditto.
2432 (_Jv_BuildGCDescr): New prototype.
2433 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2434 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2435 get_finalizer() instead of direct finalizer vtable offset.
2436 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2437 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2438 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2439 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2440 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2441 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2442 (_Jv_DetermineVTableIndex): Ditto.
2443 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2444 calculations to account for new gc_descr field.
2445 * boehm.cc: #include gc_gcj.h.
2446 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2447 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2448 New commentary from HB. Mark the classes vtable.
2449 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2450 (GC_DEFAULT_DESCR): New #define.
2451 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2452 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2453 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2454 scan conservativly if size is less than min_heap_addr. Set vtable
2455 pointer of new object before returning.
2456 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2457 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2458 allocation for obj_kind_x.
2459 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2460 (_Jv_AllocObj): Set vtable on returned object.
2461 (_Jv_AllocArray): Ditto.
2462 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2463 (_Jv_NewPrimArray): Ditto.
2464 (_Jv_AllocObj): Declare as a friend.
2465 (_Jv_AllocArray): Ditto.
2466 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2467 from &ObjectClass into new array class. Remove offset-by-one
2468 adjustments from `method' size calculations to account for gc_descr
2471 2000-09-26 Tom Tromey <tromey@cygnus.com>
2473 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2474 `remove', not `add'.
2476 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2478 * java/lang/natSystem.cc (file_encoding): Added return statement.
2480 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2482 * Makefile.am: Re-work shell commands that exceeded command-line
2484 * Makefile.in: Rebuilt.
2486 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2488 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2489 * java/lang/natDouble.cc: Likewise.
2490 * java/lang/reflect/natMethod.cc: Likewise.
2491 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2493 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2495 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2497 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2498 * acinclude.m4: Arrange for automake to not bring in a new
2499 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2500 * Makefile.am: Leave it up to automake to subst GCJ.
2501 * aclocal.m4, configure, Makefile.in: Rebuilt.
2503 2000-09-13 Tom Tromey <tromey@cygnus.com>
2505 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2506 (get): Ensure Boolean class is initialized.
2507 * java/lang/reflect/natField.cc (BooleanClass): New define.
2508 (get): Ensure Boolean class is initialized.
2510 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2512 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2513 Initialize with anonymous class.
2514 (compareToIgnoreCase): New method.
2516 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2517 (uncaughtException): Set had_uncaught_exception.
2518 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2519 exit with error status if set.
2520 (_Jv_RunMain): Ditto.
2522 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2524 * configure: Rebuilt with new ../libtool.m4.
2526 2000-09-11 Tom Tromey <tromey@cygnus.com>
2528 * java/lang/reflect/Field.java (toString): Don't rely on
2531 2000-09-08 Tom Tromey <tromey@cygnus.com>
2533 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2534 default decoder use iconv.
2535 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2536 Let default encoder use iconv.
2537 * configure: Rebuilt.
2538 * configure.in: Check for nl_langinfo and <langinfo.h>.
2539 * java/lang/natSystem.cc (file_encoding): New function.
2540 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2542 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2544 * acinclude.m4: Simplify the tests for CC and CXX.
2545 * aclocal.m4, configure: Rebuilt.
2547 * acinclude.m4: Include libtool macros from the source tree.
2548 * aclocal.m4, configure: Rebuilt.
2550 2000-09-08 Warren Levy <warrenl@cygnus.com>
2552 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2553 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2554 * java/io/File.java (writeObject): Added.
2555 (readObject): Added.
2556 (serialVersionUID): Added.
2557 * java/io/ObjectOutputStream.java (writeObject): Initialized
2558 fieldsAlreadyWritten before recursion rather than after.
2559 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2560 * java/io/OptionalDataException.java (serialVersionUID): Added.
2561 (OptionalDataException): Made package private.
2562 * java/io/SyncFailedException.java (SyncFailedException): Removed
2563 default constructor to match spec.
2564 * java/lang/Boolean.java (serialVersionUID): Added.
2565 * java/lang/Byte.java (serialVersionUID): Added.
2566 * java/lang/Character.java (serialVersionUID): Added.
2567 * java/lang/Double.java (serialVersionUID): Added.
2568 * java/lang/Float.java (serialVersionUID): Added.
2569 * java/lang/Integer.java (serialVersionUID): Added.
2570 * java/lang/Long.java (serialVersionUID): Added.
2571 * java/lang/Number.java (serialVersionUID): Added.
2572 * java/lang/Short.java (serialVersionUID): Added.
2573 * java/lang/String.java (serialVersionUID): Added.
2574 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2576 * java/lang/reflect/InvocationTargetException.java
2577 (serialVersionUID): Added.
2578 * java/net/URL.java (handler): Made transient.
2579 (hashCode): Added field for serialization, per spec. and use
2580 cached value if available.
2581 (serialVersionUID): Added.
2582 (URL): Initialize hashCode.
2583 (set): Adjust hashCode.
2584 (readObject): New Method to initialize the protocol handler when
2586 (writeObject): New method.
2587 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2588 * java/text/Collator.java: Removed 'implements Serializable'.
2589 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2590 * java/util/Properties.java (serialVersionUID): Added.
2591 * java/util/Random.java (serialVersionUID): Added.
2592 (seed): Made private.
2593 (nextNextGaussian): Made private.
2594 (haveNextNextGaussian): Made private.
2595 * java/util/Stack.java (serialVersionUID): Added.
2596 * java/util/TimeZone.java (serialVersionUID): Added.
2597 * java/util/Vector.java (serialVersionUID): Added.
2599 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2601 * Makefile.am (Thread.h): Don't be friends with native threads
2603 * Makefile.in: Rebuilt.
2604 * java/lang/Thread.java (interrupt_flag): Make package-private.
2606 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2608 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2609 to avoid long long division.
2611 2000-09-06 Tom Tromey <tromey@cygnus.com>
2613 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2615 * java/lang/reflect/Method.java (toString): Use `getName' for
2618 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2619 `args' if method takes no parameters.
2621 Fix for PR java.lang/339:
2622 * java/lang/natPosixProcess.cc (fail): New function.
2623 (cleanup): New function.
2624 (startProcess): Use them. Create pipe so child can communicate
2625 exec failure back to parent.
2627 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2629 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2631 (send): Undo last patch. Remove the label only.
2633 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2635 * java/net/natInetAdress.cc: Ditto.
2637 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2639 2000-09-05 Tom Tromey <tromey@cygnus.com>
2641 * doc/cni.sgml: Updated from master copy.
2643 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2645 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2647 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2649 * java/lang/fdlibm.h: #undef __P if previously defined.
2650 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2651 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2655 2000-09-04 Tom Tromey <tromey@cygnus.com>
2657 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2660 2000-09-04 Anthony Green <green@redhat.com>
2662 Fix for PR java.io/203:
2663 * java/io/File.java (createTempFile): Obey directory argument.
2664 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2665 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2666 variable to set java.io.tmpdir on non-WIN32 systems.
2668 2000-09-04 Anthony Green <green@redhat.com>
2670 * java/io/File.java (deleteOnExit): New method.
2671 * gnu/gcj/runtime/FileDeleter.java: New class.
2672 * java/lang/natRuntime.cc (exit): Call
2673 FileDeleter.deleteOnExitNow()
2674 * Makefile.am: Add FileDeleter.java.
2675 * Makefile.in: Rebuilt.
2677 2000-09-02 Tom Tromey <tromey@cygnus.com>
2679 * Makefile.in: Rebuilt.
2680 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2681 environment variable.
2683 2000-09-01 Andrew Haley <aph@redhat.com>
2685 * java/io/StreamTokenizer.java: Don't throw a
2686 NumberFormatException if a field is numeric as far as the
2687 StreamTokenizer is concerned but not as far as Double.valueOf() is
2688 concerned: return a zero instead.
2690 2000-08-30 Tom Tromey <tromey@cygnus.com>
2692 * Makefile.in: Rebuilt.
2693 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2695 2000-08-28 Tom Tromey <tromey@cygnus.com>
2697 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2698 gnu/gcj/awt/ComponentDataBlitOp.java,
2699 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2700 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2701 java/awt/color/ICC_ColorSpace.java,
2702 java/awt/color/ICC_Profile.java,
2703 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2704 java/awt/image/ComponentColorModel.java,
2705 java/awt/image/ComponentSampleModel.java,
2706 java/awt/image/DataBuffer.java,
2707 java/awt/image/DataBufferByte.java,
2708 java/awt/image/DataBufferInt.java,
2709 java/awt/image/DataBufferUShort.java,
2710 java/awt/image/DirectColorModel.java,
2711 java/awt/image/IndexColorModel.java,
2712 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2713 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2714 java/awt/image/SinglePixelPackedSampleModel.java,
2715 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2716 Removed Latin-1 copyright symbols.
2717 * java/util/zip/ZipFile.java: Indentation fixes.
2719 2000-08-27 Mark Wielaard <mark@klomp.org>
2721 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2722 constructor, close can delete the file, finalize calls close.
2723 * java/util/jar/JarFile.java: Constructor that takes mode now
2726 2000-08-27 Anthony Green <green@redhat.com>
2728 * java/util/ArrayList.java, java/util/Timer.java,
2729 java/util/LinkedList.java, java/util/TimerTask.java,
2730 java/util/HashMap.java, java/util/AbstractMap.java,
2731 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2732 java/util/SortedSet.java: Imported from GNU Classpath.
2733 * Makefile.in: Rebuilt.
2734 * Makefile.am: Added new files.
2736 2000-08-26 Anthony Green <green@redhat.com>
2738 * Makefile.in: Rebuilt.
2739 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2742 * prims.cc: Include ClassLoader.h.
2743 (_Jv_RunMain): When executing jar files, classpath must be the jar
2744 file only. Lose our reference to the system ClassLoader in order
2745 to get a new one with the correct classpath.
2746 * java/lang/natSystem.cc (init_properties): When executing a jar
2747 file, only use the jar file for java.class.path.
2749 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2750 for bytecode archives.
2752 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2753 exists, but not Main-Class.
2755 2000-08-23 Mark Wielaard <mark@klomp.org>
2757 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2758 return -1 when fill() has no more data for the Inflater.
2760 2000-08-23 Mark Wielaard <mark@klomp.org>
2762 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2763 write(String) already does.
2765 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2767 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2768 to `alive_flag', call `init'.
2769 (init): New native method.
2770 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2773 2000-08-21 Mark Wielaard <mark@klomp.org>
2775 * Makefile.in: Rebuilt.
2776 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2778 (java/lang/reflect/Field.h): Likewise.
2779 (java/lang/reflect/Method.h): Likewise.
2780 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2783 2000-08-21 Tom Tromey <tromey@cygnus.com>
2785 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2788 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2790 * java/lang/natSystem.cc (init_properties): Change sourceware
2791 reference to sources.redhat.com.
2793 * include/java-props.h: Add _Jv_Jar_Class_Path.
2794 * prims.cc: Ditto. Set it from `gij -jar file' option.
2796 * java/lang/natSystem.cc (init_properties): Set java.class.path
2798 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2800 * java/util/PropertyPermission.java: Import from GNU Classpath.
2801 * Makefile.in: Rebuilt.
2802 * Makefile.am: Add java/util/PropertyPermission.java.
2803 * java/lang/System.java: Add setProperty method.
2805 * gij.cc (main): Add -jar option to execute jar files.
2806 (help): Describe -jar option.
2807 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2808 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2809 * gnu/gcj/runtime/FirstThread.java (main): New method.
2811 * java/util/jar/Attributes.java: Correct comment spelling.
2813 2000-08-20 Mark Wielaard <mark@klomp.org>
2815 * java/util/zip/Adler32.java: Make private variables really private
2816 * java/util/zip/CRC32.java: Make private variables really private
2817 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2819 * java/util/zip/InflaterInputStream.java: skip() could skip to
2821 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2822 * java/util/zip/ZipFile.java: size() new 1.2 method
2823 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2824 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2827 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2829 * java/util/jar/JarFile.java: Don't call
2830 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2833 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2835 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2836 Read the entire contents of the class file, not just what is
2839 * java/net/JarURLConnection.java: getEntry doesn't take any
2840 arguments. Return null if element is null.
2842 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2843 size from the archive, not the inflated size.
2845 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2846 java.util.zip.ZipFile.getEntry.
2848 * gij.cc (help): Change sourceware reference to
2851 2000-08-19 Tom Tromey <tromey@cygnus.com>
2853 * java/util/zip/ZipInputStream.java (createZipEntry):
2856 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2858 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2859 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2860 java/util/jar/JarInputStream.java,
2861 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2862 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2863 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2864 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2865 java/security/cert/Certificate.java,
2866 java/security/cert/CertificateEncodingException.java,
2867 java/security/cert/CertificateException.java,
2868 java/security/cert/CertificateExpiredException.java,
2869 java/security/cert/CertificateFactory.java,
2870 java/security/cert/CertificateFactorySpi.java,
2871 java/security/cert/CertificateNotYetValidException.java,
2872 java/security/cert/CertificateParsingException.java,
2873 java/security/cert/X509CRL.java,
2874 java/security/cert/X509CRLEntry.java,
2875 java/security/cert/X509Certificate.java,
2876 java/security/cert/X509Extension.java: Imported from Classpath.
2877 * java/util/Hashtable.java: Imported from Classpath.
2879 * java/util/zip/ZipInputStream.java: Create stub for
2882 * gcj/javaprims.h: Updated class list.
2884 * Makefile.in, gcj/Makefile.in: Rebuilt.
2885 * Makefile.am (ordinary_java_source_files): Add these new classes.
2887 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2889 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2890 * gnu/gcj/awt/GLightweightPeer.java: New file.
2891 * java/awt/BorderLayout.java: Implemented all methods.
2892 * java/awt/Button.java (actionListener, actionCommand): Renamed
2893 and modifier change.
2894 (addNotify): Call super.
2895 (dispatchEventImpl): New method.
2896 (getListeners): New method.
2897 (label): Made package-private, not private.
2898 * java/awt/Canvas.java: Implemented class body.
2899 * java/awt/Color.java (brighter): New method.
2900 (darker): New method.
2901 (hashCode): New method.
2902 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2903 (getGraphicsConfiguration): Delegate to
2904 getGraphicsConfigurationImpl().
2905 (getGraphicsConfigurationImpl): New method.
2906 (getToolkit): Only return value from peer if not null.
2907 (isDisplayable): Check with parent.
2908 (isShowing): No parent implies not showing.
2909 (getForeground): Check parent property if local is null.
2910 (getBackground): Likewise.
2911 (getFont): Likewise.
2912 (setForeground): Inform peer.
2913 (setBackground): Likewise
2914 (setLocale): Invalidate component.
2915 (getColorModel): Implemented.
2916 (setLocation): Invalidate, or ignore if no change.
2917 (setSize): Invalidate, or ignore if no change.
2918 (setBounds): Invalidate, or ignore if no change.
2919 (isOpaque): By default, heavyweight implies opaque.
2920 (isLightweight): Implemented.
2921 (getMaximumSize): Implemented.
2922 (doLayout): Implemented, NOP.
2923 (validate): Implemented, NOP.
2924 (invalidate): Only propagate to parent if parent was valid.
2925 (getGraphics): Implemented.
2926 (getFontMetrics): Implemented.
2927 (update): Implemented.
2928 (paintAll): Implemented.
2929 (repaint): Implemented all repaint methods.
2930 (print): Implemented.
2931 (printAll): Implemented.
2932 (createImage): Implemented.
2933 (dispatchEvent): Give the peer a chance to handle the event.
2934 (dispatchEventImpl): Dispatch paint events.
2935 (enableEvents): Lightweights enable events on parent component.
2936 (coalesceEvents): Coalesce paint events, and select event type
2938 (coalescePaintEvents): New method.
2939 (processEvent): Fix unfortunate ordering of statements, and call
2940 correct method for MOUSE_CLICKED.
2941 (processPaintEvent): New method.
2942 (addNotify): Allow container to notify children before event
2943 mask is set in peer.
2944 (addNotifyContainerChildren): New method.
2945 (removeNotify): Visibility should not change on removeNotify.
2946 (paramString): Implemented.
2947 (list): Implemented two of the list methods.
2948 * Container (myInsets): Removed, insets are managed by peer.
2949 (getInsets): Query peer.
2950 (addImpl): Fix reparenting, enable events for lightweights,
2951 initialize component array.
2952 (validate): Call doLayout in validateTree() instead.
2953 (validateTree): Do nothing if already valid. Call beginValidate(),
2954 endValidate() on peer. Call validateTree() instead of validate()
2955 for children that are containers. Mark valid after validation of
2957 (setFont): Partial implementation.
2958 (paint): Implemented.
2959 (visitChildren): New method.
2960 (visitChild): New method.
2961 (update): Implemented.
2962 (print): Implemented.
2963 (paintComponents): Implemented.
2964 (printComponents): Consider translation and clipping.
2965 (getComponentAt): Ignore invisible children. Return this if no
2967 (addNotify): Call super.
2968 (addNotifyContainerChildren): New method.
2969 (paramString): Implemented.
2970 (list): Implemented.
2971 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2973 (invokeLater): Likewise.
2974 (isDispatchThread): Likewise.
2975 * java/awt/FontMetrics (getLeading): Formula change.
2976 (getDescent): Consider leading also.
2977 (getMaxAscent): Default to getAscent().
2978 (getMaxDescent): Default to getDescent.
2979 (getMaxAdvance): Return value signifying unknown.
2980 (charWidth): Both methods implemented.
2981 (charsWidth): Implemented.
2982 (bytesWidth): Implemented.
2983 (getWidths): Implemented.
2984 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2986 (Frame): Rearragend constuctor chaining to disallow null being
2987 passed as a graphics configuration.
2988 (getTitle): Return empty string if null.
2990 (getIconImage): New method.
2991 (setIconImage): New method.
2992 (finalize): New method.
2993 (setMenuBar): Notify peer.
2994 (isResizable): New method.
2995 (setResizable): New method.
2996 (getState): New method.
2998 (remove): Implemented.
2999 (removeNotify): New method.
3000 (getFrames): New method.
3001 * java/awt/Graphics.java: Implemented body of class.
3002 * java/awt/Graphics2D.java: New file.
3003 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3004 * java/awt/Image.java: Implemented body of class.
3005 * java/awt/Panel.java (Panel): Call correct super constructor.
3006 (addNotify): Implemented.
3007 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3008 * java/awt/RenderingHints.java: New file.
3009 * java/awt/Toolkit.java (createComponent): Implemented.
3010 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3011 * java/awt/Window.java (Window): Two new constructors. Reordered
3012 constructor chaining.
3013 (getGraphicsConfigurationImpl): New method.
3014 (finalize): Call super.
3015 (addNotify): Call super.
3016 (pack): Do layout stuff.
3017 (show): Ensure that peer exists and that component is valid.
3018 (dispose): Dispose owned children.
3019 (getOwner): Simplify code, casting null pointers is valid.
3020 (getGraphicsConfiguration): Ask peer if local value is null.
3021 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3023 * java/awt/image/BufferedImage.java: New file.
3024 * java/awt/image/RasterOp.java: New file.
3025 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3026 More powerfull replacement for getColorModel().
3027 (getColorModel) Removed.
3028 (setEventMask) New method.
3029 * Makefile.am: Added new files.
3030 * Makefile.in: Rebuilt.
3032 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3034 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3035 (finit_leg_name): New global.
3036 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3037 `$finit$'. This is a backward compatibility hack.
3038 (java::lang::Class::_getMethods): Likewise.
3040 2000-08-15 Andrew Haley <aph@cygnus.com>
3042 * include/jvm.h (_Jv_HashCode): New hash code.
3044 2000-08-15 Tom Tromey <tromey@cygnus.com>
3046 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3048 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3050 * THANKS: More thanks.
3052 2000-08-10 Tom Tromey <tromey@cygnus.com>
3054 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3056 (connect): Likewise.
3058 (getOption): Likewise.
3059 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3060 case when errno not set.
3063 (receive): Likewise.
3064 (mcastGrp): Likewise.
3065 (setOption): Likewise.
3066 (getOption): Likewise.
3068 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3069 John Stracke <francis@ecal.com>
3071 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3072 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3074 (disconnect): Don't unset connected flag.
3075 (getHeaderField (String)): Call connect() if not connected.
3076 (getHeaderField (int)): Ditto.
3077 (getHeaderFieldKey): Ditto.
3078 (getHttpHeaders): Don't call connect().
3079 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3080 gotResponseVals): New fields.
3081 (getResponseCode): Call getResponseVals() conditionally.
3082 (getResponseMessage): Ditto.
3083 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3085 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3087 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3088 * Makefile.in: Rebuilt.
3089 * java/awt/Color.java (getTransparency): New method.
3090 * java/awt/Component.java: Various updates.
3091 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3092 after dealing with children.
3093 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3094 * java/awt/Window.java: Various new methods and updates.
3095 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3097 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3098 * java/awt/event/WindowEvent.java (paramString): Ditto.
3099 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3101 * java/awt/geom/Point2D.java (clone): Ditto.
3102 * java/awt/geom/RectangularShape.java (clone): Ditto.
3103 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3104 isAlphaPremultiplied): Make package-private, not private.
3106 2000-08-08 Tom Tromey <tromey@cygnus.com>
3108 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3109 surrogate characters.
3110 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3112 (write): Correct handling of surrogate characters.
3114 2000-08-07 Tom Tromey <tromey@cygnus.com>
3116 * java/lang/reflect/Method.java (hashCode): Use getName().
3117 (toString): Likewise.
3118 * java/lang/reflect/natMethod.cc (getType): Initialize
3121 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3123 * java/lang/reflect/Field.java (toString): Correct formatting.
3126 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3128 (receive): Streamlined.
3130 2000-08-05 Tom Tromey <tromey@cygnus.com>
3132 * java/io/PrintWriter.java: Merged comments from Classpath.
3133 (printlnUnsynchronized): Removed.
3134 (println()): Print the separator.
3135 (println): Call println(), not printlnUnsynchronized.
3136 (out): Now protected, to match spec.
3138 2000-08-04 Tom Tromey <tromey@cygnus.com>
3140 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3141 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3144 2000-08-03 Warren Levy <warrenl@cygnus.com>
3146 * java/io/ObjectInputStream.java (readFields): Turn off
3147 readDataFromBlock while reading via GetField.
3148 (GetField$1.get(String, Object)): Pass Class of default value to
3150 (getField): Allow for null default values.
3152 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3153 (PutField$1.put): Fixed calls of checkType in most of the put
3154 methods to pass the correct parameter.
3155 (PutField$1.put(String, Object)): Allow for null value arg.
3156 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3159 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3160 typo in spec'ed field name.
3161 (getSerialPersistentFields): Changed spelling of method to match
3162 the correct spelling of the spec'ed field name.
3164 2000-08-03 Tom Tromey <tromey@cygnus.com>
3166 * Makefile.in: Rebuilt.
3167 * Makefile.am (awt_java_source_files): Added new files.
3169 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3171 * Makefile.am: Add new AWT stubs.
3172 * java/awt/Canvas.java: New placeholder class.
3173 * java/awt/Checkbox.java: Ditto.
3174 * java/awt/CheckboxMenuItem.java: Ditto.
3175 * java/awt/Choice.java: Ditto.
3176 * java/awt/Dialog.java: Ditto.
3177 * java/awt/FileDialog.java: Ditto.
3178 * java/awt/List.java: Ditto.
3179 * java/awt/ScrollPane.java: Ditto.
3180 * java/awt/TextField.java: Ditto.
3181 * java/awt/datatransfer/Clipboard.java: Ditto.
3182 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3183 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3184 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3185 Some commented out. Partially implemented.
3186 * java/awt/natToolkit.cc: Removed file.
3188 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3190 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3191 Fixes "make -j" builds.
3192 * Makefile.in: Rebuild.
3194 2000-08-02 Tom Tromey <tromey@cygnus.com>
3196 * Makefile.in: Rebuilt.
3197 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3198 * java/net/natPlainSocketImpl.cc: Include posix.h.
3199 (accept): Use _Jv_select.
3200 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3201 (receive): Use _Jv_select.
3202 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3203 (available): Use _Jv_select.
3204 * java/lang/natSystem.cc: Include posix.h.
3205 (currentTimeMillis): Use _Jv_gettimeofday.
3206 * include/posix.h: New file.
3207 * posix.cc: New file.
3209 * scripts/encodings.pl: New file.
3210 * Makefile.in: Rebuilt.
3211 * Makefile.am (convert_source_files): Added IOConverter.java.
3212 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3214 (getDefaultDecodingClass): Canonicalize default encoding name.
3215 (getEncoder): Likewise.
3216 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3218 (getDefaultDecodingClass): Canonicalize default encoding name.
3219 (getDecoder): Likewise.
3220 * gnu/gcj/convert/IOConverter.java: New file.
3222 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3224 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3225 to match C declaration in ffi.h.
3226 * Makefile.am: Add java/awt/Button.java.
3227 * Makefile.in: Rebuilt.
3229 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3231 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3232 cast of the second argument to `ffi_raw_call' changed to match
3235 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3237 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3238 argument to `ffi_raw_call' changed to match prototype.
3240 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3242 * java/awt/Component.java (toString): Implemented.
3243 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3244 dispatchEvent() to dispatch the event.
3245 (removeImpl): Ditto.
3247 2000-07-30 Anthony Green <green@redhat.com>
3249 * java/awt/Component.java: Add treeLock object.
3250 (getTreeLock): Implement.
3251 (isShowing): Implement.
3253 2000-07-30 Tom Tromey <tromey@cygnus.com>
3255 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3257 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3259 * java/awt/Window.java (addNotify): Wrote.
3260 (addWindowListener): Wrote.
3262 (getWarningString): Wrote.
3263 (processEvent): Wrote.
3264 (processWindowEvent): Wrote.
3265 (removeWindowListener): Wrote.
3266 (show): Call validate(), setVisible().
3270 * java/awt/Toolkit.java (createWindow): Declare.
3272 * java/awt/Frame.java (addNotify): Use getToolkit to find
3275 * java/awt/Component.java (invalidate): Wrote.
3277 (getToolkit): Wrote.
3279 * java/awt/Container.java (addContainerListener): Removed
3281 (removeContainerListener): Likewise.
3283 (add(Component)): Use it.
3284 (add(String,Component)): Likewise.
3285 (add(Component,int)): Likewise.
3286 (add(Component,Object)): Likewise.
3287 (add(Component,Object,int)): Likewise.
3289 (getAlignmentX): Wrote.
3290 (getAlignmentY): Wrote.
3291 (getComponentAt): Wrote.
3292 (getMaximumSize): Wrote.
3293 (invalidate): Wrote.
3294 (list(PrintStream,int)): Wrote.
3295 (list(PrintWriter,int)): Wrote.
3296 (getMinimumSize): Wrote.
3297 (getPreferredSize): Wrote.
3298 (printComponents): Wrote.
3299 (processContainerEvent): Look at containerListener, not
3301 (remove): Added event processing and peer destruction.
3302 (removeAll): Use remove.
3303 (removeNotify): Wrote.
3305 (validateTree): Wrote.
3307 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3308 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3309 * java/awt/Container.java (addNotify): Don't create Container
3311 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3313 2000-07-30 Tom Tromey <tromey@cygnus.com>
3315 * java/awt/Container.java (remove(int)): Wrote.
3316 (remove(Component)): Wrote.
3317 (add(Component)): Wrote.
3318 (add(Component,int)): Wrote.
3320 (addNotify): Set our own peer.
3321 * java/awt/Scrollbar.java (listeners): Changed type.
3322 (Scrollbar): Don't initialize listeners.
3324 (setValue): Call setValues.
3325 (setMinimum): Likewise.
3326 (setMaxPriority): Likewise.
3327 (setVisibleAmount): Likewise.
3329 (setUnitIncrement): Forward to peer.
3330 (setLineIncrement): Call setUnitIncrement.
3331 (setPageIncrement): Call setBlockIncrement.
3332 (setBlockIncrement): Forward to peer.
3333 (addAdjustmentListener): Rewrote.
3334 (removeAdjustmentListener): Rewrote.
3335 (processAdjustmentEvent): Rewrote.
3336 (paramString): Wrote.
3337 * Makefile.in: Rebuilt.
3338 * Makefile.am (awt_java_source_files): Added Button.java.
3339 * java/awt/Button.java: New file.
3340 * java/awt/Toolkit.java (createLabel): Declare.
3341 (createButton): Likewise.
3342 (createScrollbar): Likewise.
3343 (createContainer): Likewise.
3344 * java/awt/Label.java (addNotify): Wrote.
3345 (setAlignment): Call setAlignment in the peer.
3346 (setText): Call setText in the peer.
3348 2000-07-28 Warren Levy <warrenl@cygnus.com>
3350 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3351 NotSerializableException with just the class name.
3353 2000-07-26 Andrew Haley <aph@cygnus.com>
3355 * interpret.cc (continue1): Insert missing break into switch.
3357 2000-07-28 Warren Levy <warrenl@cygnus.com>
3359 * java/io/ObjectStreamException.java: Made constructors protected.
3361 2000-07-27 Tom Tromey <tromey@cygnus.com>
3363 * java/io/OutputStreamWriter.java (close): Only flush if not
3366 2000-07-27 Warren Levy <warrenl@cygnus.com>
3368 * mauve-libgcj: Activated serialization tests.
3369 * gcj/field.h (getModifiers): Mask off unknown flags.
3370 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3371 spurious bits don't cause discrepancies.
3372 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3373 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3374 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3375 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3376 * java/lang/Throwable.java (serialVersionUID): New field.
3377 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3378 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3380 * java/lang/reflect/natMethod.cc: Ditto.
3381 * java/security/Key.java (serialVersionUID): Removed field for now.
3382 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3383 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3385 2000-07-22 Tom Tromey <tromey@cygnus.com>
3387 * java/awt/geom/RectangularShape.java (getPathIterator):
3390 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3392 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3393 stub libjava/java/awt/ColorModel.java which was located in the
3395 * libjava/java/awt/image/ComponentColorModel.java: New file.
3396 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3397 * libjava/java/awt/image/DataBuffer.java: New file.
3398 * libjava/java/awt/image/DataBufferByte.java: New file.
3399 * libjava/java/awt/image/DataBufferInt.java: New file.
3400 * libjava/java/awt/image/DataBufferUShort.java: New file.
3401 * libjava/java/awt/image/DirectColorModel.java: New file.
3402 * libjava/java/awt/image/PackedColorModel.java: New file.
3403 * libjava/java/awt/image/Raster.java: New file.
3404 * libjava/java/awt/image/SampleModel.java: New file.
3405 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3407 * libjava/java/awt/image/IndexColorModel.java: New file.
3408 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3409 java.awt.ColorModel stub.
3411 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3412 * gnu/gcj/util/Buffers.java: New file, utility class.
3414 * libjava/Makefile.am: Updated to include new files.
3415 * libjava/Makefile.in: Rebuilt.
3417 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3419 * java/io/StreamTokenizer.java: Merged with classpath.
3421 2000-07-20 Tom Tromey <tromey@cygnus.com>
3423 * Makefile.in: Rebuilt.
3424 * Makefile.am (awt_java_source_files): Updated for new files.
3425 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3426 * java/awt/Label.java: New file.
3427 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3428 (createIntersection, createUnion, getBounds2D): New methods.
3429 * java/awt/Scrollbar.java: New file.
3430 * java/awt/Shape.java: Updated to 1.2.
3431 * java/awt/geom/AffineTransform.java: New file.
3432 * java/awt/geom/Ellipse2D.java: New file.
3433 * java/awt/geom/NoninvertibleTransformException.java: New file.
3434 * java/awt/geom/PathIterator.java: New file.
3435 * java/awt/geom/Rectangle2D.java: New file.
3436 * java/awt/geom/RectangularShape.java: New file.
3437 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3438 * java/awt/geom/IllegalPathStateException.java: New file.
3440 * scripts/showval.java: New file.
3442 * scripts/classes.pl (scan): Print inner classes properly.
3443 * gcj/javaprims.h: Updated class list.
3445 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3446 initialize String fields for interpreted classes. Fixes bug
3447 reported by Hans Boehm.
3449 * java/io/File.java (getParentFile): New method, from Classpath
3450 via Oskar Liljeblad.
3452 * java/util/Vector.java (remove(Object)): Implemented.
3454 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3456 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3457 zero return from backtrace().
3459 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3461 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3463 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3464 before calling notifyAll().
3466 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3468 Add missing files from last check-in:
3469 * java/awt/image/ImageConsumer.java: New file.
3470 * java/awt/image/ImageProducer.java: New file.
3471 * java/awt/image/ImageObserver.java: New file.
3473 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3475 Merged implementation of java.applet from classpath:
3476 * java/applet/Applet.java: New file.
3477 * java/applet/AppletContext.java: New file.
3478 * java/applet/AppletStub.java: New file.
3479 * java/applet/AudioClip.java: New file.
3481 * Makefile.am: Added new java.applet classes.
3482 * Makefile.in: Rebuilt.
3484 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3487 * java/util/ResourceBundle.java (getLocale): stub.
3488 * Makefile.am: Added new AWT classes.
3489 * Makefile.in: Rebuilt.
3490 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3491 constructors. Fix toString() and paramString().
3492 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3493 * java/awt/CheckboxGroup.java: New class.
3494 * java/awt/ColorModel.java: New class.
3495 * java/awt/Component.java: Added stubs for most methods. Implemented
3497 * java/awt/Container.java: ditto.
3498 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3499 * java/awt/Cursor.java: ditto.
3500 * java/awt/Event.java: Fix paramString().
3501 * java/awt/EventQueue.java: New class. Implemented.
3502 * java/awt/Font.java: Added additional stub methods. Implemented
3504 * java/awt/FontMetrics.java: New class. Stubbed.
3505 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3507 * java/awt/Insets.java: New class. Implemented.
3508 * java/awt/Menu.java: Add new methods. Partially implemented.
3509 * java/awt/MenuItem.java: Add new methods and fields. Partially
3511 * java/awt/MenuShortcut.java: New class. Implemented.
3512 * java/awt/Panel.java: New class. Placeholder.
3513 * java/awt/PopupMenu.java: New class. Stubbed.
3514 * java/awt/Rectangle.java: New class. Implemented.
3515 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3516 * java/awt/event/ActionEvent.java: Implement paramString().
3517 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3518 * java/awt/event/ComponentEvent.java: Implement paramString().
3519 * java/awt/event/ContainerEvent.java: Implement paramString().
3520 * java/awt/event/FocusEvent.java: Implement paramString().
3521 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3522 * java/awt/event/HierarchyBoundsListener.java: New class.
3523 * java/awt/event/HierarchyEvent.java: New class.
3524 * java/awt/event/HierarchyListener.java: New class.
3525 * java/awt/event/InputMethodEvent.java: Implement paramString().
3526 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3527 exception if !catchExceptions.
3528 * java/awt/event/ItemEvent.java: Implement paramString().
3529 * java/awt/event/KeyEvent.java: Implement paramString().
3530 * java/awt/event/MouseEvent.java: Implement paramString().
3531 * java/awt/event/PaintEvent.java: Implement paramString().
3532 * java/awt/event/TextEvent.java: Implement paramString().
3533 * java/awt/event/WindowEvent.java: Implement paramString().
3535 AWT Peer interfaces:
3536 * java/awt/peer/ButtonPeer.java: New file.
3537 * java/awt/peer/ListPeer.java: New file.
3538 * java/awt/peer/CanvasPeer.java: New file.
3539 * java/awt/peer/MenuBarPeer.java: New file.
3540 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3541 * java/awt/peer/MenuComponentPeer.java: New file.
3542 * java/awt/peer/CheckboxPeer.java: New file.
3543 * java/awt/peer/MenuItemPeer.java: New file.
3544 * java/awt/peer/ChoicePeer.java: New file.
3545 * java/awt/peer/MenuPeer.java: New file.
3546 * java/awt/peer/ComponentPeer.java: Implemented.
3547 * java/awt/peer/PanelPeer.java: New file.
3548 * java/awt/peer/ContainerPeer.java: Implemented.
3549 * java/awt/peer/PopupMenuPeer.java: New file.
3550 * java/awt/peer/DialogPeer.java: New file.
3551 * java/awt/peer/ScrollPanePeer.java: New file.
3552 * java/awt/peer/FileDialogPeer.java: New file.
3553 * java/awt/peer/ScrollbarPeer.java: New file.
3554 * java/awt/peer/FontPeer.java: New file.
3555 * java/awt/peer/TextAreaPeer.java: New file.
3556 * java/awt/peer/FramePeer.java: Implemented.
3557 * java/awt/peer/TextComponentPeer.java: New file.
3558 * java/awt/peer/LabelPeer.java: New file.
3559 * java/awt/peer/TextFieldPeer.java: New file.
3560 * java/awt/peer/LightweightPeer.java: New file.
3561 * java/awt/peer/WindowPeer.java: Implemented.
3563 2000-07-06 Tom Tromey <tromey@cygnus.com>
3565 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3566 Initialize static final String fields.
3568 2000-07-03 Tom Tromey <tromey@cygnus.com>
3570 * java/io/PrintWriter.java (print): Call write(String), not
3571 print(String). See PR libgcj/277.
3572 (print(String)): Use write, not out.write.
3574 2000-06-30 Tom Tromey <tromey@cygnus.com>
3576 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3578 2000-06-27 Andrew Haley <aph@cygnus.com>
3580 * java/io/File.java (createTempFile): Close the FileDescriptor
3581 used to create a temp file. Fixes some of PR 203.
3582 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3583 collection if we run out of file handles.
3585 2000-06-28 Warren Levy <warrenl@cygnus.com>
3587 * gnu/java/security/provider/Gnu.java: New file.
3588 * gnu/java/security/provider/SHA.java: New file.
3589 * gnu/java/security/provider/SHA1PRNG.java: New file.
3590 * Makefile.am: Added the above files.
3591 * Makefile.in: Rebuilt.
3593 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3595 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3597 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3598 (destroyed_flag): Removed.
3599 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3600 (activeCount): Added spec note.
3602 2000-06-27 Warren Levy <warrenl@cygnus.com>
3604 * java/security/Principal.java: New file.
3605 * Makefile.am: Added Principal.java.
3606 * Makefile.in: Rebuilt.
3608 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3610 * java/awt/event/MouseEvent.java: Fixed coordinate space
3613 2000-06-27 Tom Tromey <tromey@cygnus.com>
3615 * java/io/PushbackInputStream.java (read): If there are characters
3616 in the buffer, don't also call super.read().
3617 * java/io/PushbackReader.java (read): If there are characters in
3618 the buffer, don't also call super.read().
3620 * java/lang/Double.java (valueOf): Call parseDouble().
3622 2000-06-26 Warren Levy <warrenl@cygnus.com>
3624 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3625 (newVal): Renamed to newValue.
3626 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3627 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3628 (revokeNow): Renamed to invalidateRefs.
3629 * java/io/OptionalDataException.java: Updated FIXME.
3630 (eof): New placeholder field.
3632 * java/io/WriteAbortedException.java (message): Made transient.
3633 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3634 * java/lang/Throwable.java (stackTrace): Made transient.
3635 * java/net/InetAddress.java: Made Serializable.
3636 * java/security/KeyPair.java: Made Serializable.
3637 * java/security/Provider.java: Replaced with Classpath version that
3638 implements serialization and proper methods.
3639 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3640 (limits): Renamed to choiceLimits.
3642 2000-06-24 Tom Tromey <tromey@cygnus.com>
3644 * java/lang/natDouble.cc (parseDouble): Renamed from
3646 * java/lang/Double.java (parseDouble): Renamed from
3647 doubleValueOf. Now public.
3649 2000-06-23 Andrew Haley <aph@cygnus.com>
3651 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3652 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3654 2000-06-23 Tom Tromey <tromey@cygnus.com>
3656 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3657 * java/lang/natDouble.cc: Always include <alloca.h>.
3658 Fix for PR libgcj/267.
3660 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3662 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3663 comply with classpath VM spec.
3664 (add(Group)): Rename to addGroup().
3665 * java/lang/Thread.java (Thread): Use addThread().
3666 * java/lang/natThread.cc (finish_): Use removeThread().
3668 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3670 * java/lang/ThreadGroup.java: Merged with classpath.
3671 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3672 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3674 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3675 ThreadGroup.root if Thread.currentThread is null. Honour the
3676 ThreadGroup's max priority setting.
3678 2000-06-18 Tom Tromey <tromey@cygnus.com>
3680 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3681 returned class. For PR gcj/260.
3683 2000-06-16 Tom Tromey <tromey@cygnus.com>
3685 Fix for PR libgcj/261:
3686 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3688 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3689 argument. (This is a patch from long ago that somehow went
3692 2000-06-15 Tom Tromey <tromey@cygnus.com>
3694 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3698 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3700 Fix for PR java.lang/258:
3701 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3702 JV_STATE_DONE, to prevent accidental initialization.
3703 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3704 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3705 interface or an abstract class. Remove redundant initializeClass calls.
3706 Remove duplicate if_idt test.
3707 (_Jv_InterfaceAssignableFrom): New function.
3708 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3710 2000-05-31 Tom Tromey <tromey@cygnus.com>
3712 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3713 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3714 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3715 (NUM_OBJECT_METHODS): New define.
3716 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3717 `array_vtable' parameter. Added assertion.
3718 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3721 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3723 * gcj/cni.h: Include <string.h>.
3724 * defineclass.cc: Include <alloca.h>.
3725 * interpret.cc: Ditto.
3726 * gij.cc: Include <stdlib.h>.
3728 2000-05-30 Tom Tromey <tromey@cygnus.com>
3730 * include/name-finder.h: Include <sys/wait.h>.
3731 (_Jv_name_finder::pid): Now of type `pid_t'.
3732 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3733 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3736 2000-05-24 Warren Levy <warrenl@cygnus.com>
3738 * java/io/ObjectOutputStream.java (writeObject): Use component type
3739 when writing arrays.
3742 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3744 Fix for PR libgcj/226:
3745 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3746 since this is an installed header.
3748 Fix for PR libgcj/228:
3749 * java/util/zip/ZipFile (getInputStream): Create inflater with
3752 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3753 with DataFormatException.
3755 2000-05-20 Tom Tromey <tromey@cygnus.com>
3757 * Makefile.in: Rebuilt.
3758 * Makefile.am (hack1): Removed.
3759 (awto_files): Likewise.
3760 (libgcjawt_la_SOURCES): Likewise.
3761 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3762 (libgcjawt_la_DEPENDENCIES): Likewise.
3763 (libgcjawt_la_LIBADD): Likewise.
3764 (libgcjawt_la_LDFLAGS): Likewise.
3765 (libgcjawt_la_LINK): Likewise.
3766 ($(awt_java_source_files:.java=.class)): Likewise.
3767 (libgcj.zip): Don't depend on AWT files.
3768 (MOSTLYCLEANFILES): Don't include AWT files.
3769 ($(awto_files)): Removed.
3770 (nat_headers): Removed AWT files.
3771 (cond_awt_java_source_files): Removed.
3772 (ordinary_java_source_files): Added awt_java_source_files.
3773 * libgcj.spec.in (*lib): Removed -lgcjawt.
3774 * configure: Rebuilt.
3775 * configure.in: Removed --enable-java-awt option.
3777 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3779 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3780 (ZipEntry): Copy the `name' field.
3781 (clone): Implement JDK1.2 method.
3782 (setCompressedSize): ditto.
3785 2000-05-19 Tom Tromey <tromey@cygnus.com>
3787 * java/io/BufferedWriter.java: Merged with Classpath.
3788 * java/io/BufferedOutputStream.java: Merged with Classpath.
3790 2000-05-16 Andrew Haley <aph@cygnus.com>
3792 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3793 build_ia64_frame_state.
3794 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3797 2000-05-15 Warren Levy <warrenl@cygnus.com>
3799 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3800 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3801 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3802 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3803 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3804 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3805 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3806 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3807 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3808 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3809 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3810 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3811 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3812 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3813 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3814 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3815 * gnu/gcj/io/NullOutputStream.java: Removed.
3816 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3817 * gnu/gcj/lang/ArrayHelper.java: Removed.
3818 * gnu/gcj/lang/ClassHelper.java: Removed.
3819 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3821 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3822 * gnu/java/beans/EmptyBeanInfo.java: New file.
3823 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3824 * gnu/java/beans/IntrospectionIncubator.java: New file.
3825 * gnu/java/beans/editors/ColorEditor.java: New file.
3826 * gnu/java/beans/editors/FontEditor.java: New file.
3827 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3828 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3829 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3830 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3831 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3832 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3833 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3834 * gnu/java/beans/editors/StringEditor.java: New file.
3835 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3836 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3837 * gnu/java/io/NullOutputStream.java: New file.
3838 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3839 * gnu/java/lang/ArrayHelper.java: New file.
3840 * gnu/java/lang/ClassHelper.java: New file.
3841 * gnu/java/lang/reflect/TypeSignature.java: New file.
3843 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3844 namespace back to the original Classpath gnu/java namespace.
3845 * Makefile.in: Rebuilt.
3847 * java/beans/Beans.java: Namespace change.
3848 * java/beans/EventSetDescriptor.java: Namespace change.
3849 * java/beans/Introspector.java: Namespace change.
3850 * java/beans/PropertyEditorManager.java: Namespace change.
3851 * java/io/ObjectInputStream.java: Namespace change.
3852 * java/io/ObjectOutputStream.java: Namespace change.
3853 * java/io/ObjectStreamClass.java: Namespace change.
3854 * java/io/ObjectStreamField.java: Namespace change.
3856 2000-04-21 Warren Levy <warrenl@cygnus.com>
3858 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3859 now that compiler patch is available.
3860 Removed unneeded System.loadLibrary.
3861 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3862 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3864 2000-04-19 Andrew Haley <aph@cygnus.com>
3866 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3867 and target classes have been initialized.
3869 2000-04-19 Andrew Haley <aph@cygnus.com>
3871 * java/lang/String.java: implement Serializable, Comparable.
3872 (compareTo (Object)): New method.
3874 2000-04-19 Warren Levy <warrenl@cygnus.com>
3876 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3877 instead of getField to retrieve non-public field.
3878 (getSerialPersistantFields): Ditto.
3880 2000-04-18 Warren Levy <warrenl@cygnus.com>
3882 * mauve-libgcj: Turned off object serialization tests temporarily
3883 due to compiler error.
3885 2000-04-17 Warren Levy <warrenl@cygnus.com>
3887 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3888 to avoid build problem.
3890 * mauve-libgcj: Turned on object serialization tests.
3892 2000-04-17 Tom Tromey <tromey@cygnus.com>
3894 * libgcj.spec.in (*lib): Added -lgcjawt.
3896 2000-04-17 Andrew Haley <aph@cygnus.com>
3898 * Makefile.am: Add new files:
3899 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3901 * Makefile.in: Rebuilt.
3903 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3904 interface that has no implementations.
3905 Check for an attempt to assign an abstract class to an interface.
3907 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3908 if we fail to find MessageDigest.getInstance ("SHA").
3910 * gnu/gcj/io/SimpleSHSStream.java: New file.
3911 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3912 * gnu/gcj/io/shs.cc: New file.
3913 * gnu/gcj/io/shs.h: new file.
3915 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3918 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3919 punctuation from the classname of an array element.
3921 * gcj/javaprims.h: Add SimpleDigestStream.
3923 2000-04-17 Andrew Haley <aph@cygnus.com>
3925 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3926 to getPrivateField for superclasses.
3928 2000-04-14 Andrew Haley <aph@cygnus.com>
3930 * Makefile.am: Add new files:
3931 java/io/ObjectOutputStream$PutField.h,
3932 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3933 java/io/natObjectOutputStream.cc
3934 * Makefile.in: Rebuilt.
3935 * gcj/Makefile.in: Rebuilt.
3936 * include/Makefile.in: Rebuilt.
3937 * java/lang/Class.h (getPrivateField): New method.
3938 (getPrivateMethod): Ditto.
3939 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3940 and java::io::ObjectStreamClass our friends.
3941 * java/lang/natClass.cc (getPrivateField): New method.
3942 (getPrivateMethod): Ditto.
3943 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3944 * gcj/javaprims.h: Add serialization classes.
3945 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3946 (setByteField): Ditto.
3947 (setCharField): Ditto.
3948 (setDoubleField): Ditto.
3949 (setFloatField): Ditto.
3950 (setIntField): Ditto.
3951 (setLongField): Ditto.
3952 (setShortField): Ditto.
3953 (setObjectField): Ditto.
3954 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3956 (getByteField): Ditto.
3957 (getCharField): Ditto.
3958 (getDoubleField): Ditto.
3959 (getFloatField): Ditto.
3960 (getIntField): Ditto.
3961 (getLongField): Ditto.
3962 (getShortField): Ditto.
3963 (getObjectField): Ditto.
3964 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3966 (getSerialPersistantFields): Ditto.
3967 (getDefinedSUID): Ditto.
3968 * java/io/natObjectOutputStream.cc: New file.
3969 * java/io/natObjectInputStream.cc: New file.
3971 2000-04-13 Warren Levy <warrenl@cygnus.com>
3973 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3974 problems. Revert to previous version to reproduce and when fixed.
3976 2000-04-13 Warren Levy <warrenl@cygnus.com>
3978 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3979 * gnu/gcj/io/NullOutputStream.java: New file.
3980 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3981 * java/io/BlockDataException.java: New file.
3982 * java/io/Externalizable.java: New file.
3983 * java/io/InvalidClassException.java: New file.
3984 * java/io/InvalidObjectException.java: New file.
3985 * java/io/NotActiveException.java: New file.
3986 * java/io/NotSerializableException.java: New file.
3987 * java/io/ObjectInput.java: New file.
3988 * java/io/ObjectInputStream.java: New file.
3989 * java/io/ObjectInputValidation.java: New file.
3990 * java/io/ObjectOutput.java: New file.
3991 * java/io/ObjectOutputStream.java: New file.
3992 * java/io/ObjectStreamClass.java: New file.
3993 * java/io/ObjectStreamConstants.java: New file.
3994 * java/io/ObjectStreamField.java: New file.
3995 * java/io/Replaceable.java: New file.
3996 * java/io/Resolvable.java: New file.
3997 * java/io/SerializablePermission.java: New file.
3998 * java/io/WriteAbortedException.java: New file.
3999 * java/security/BasicPermission.java: New file.
4000 * java/security/DigestOutputStream.java: New file.
4001 * java/security/Guard.java: New file.
4002 * java/security/Permission.java: New file.
4003 * java/security/PermissionCollection.java: New file.
4004 * Makefile.am: Added above files.
4005 * Makefile.in: Rebuilt.
4007 * java/beans/Beans.java (instantiate): Activated serialization code.
4008 * java/lang/SecurityManager.java (checkPermission): New method.
4010 2000-04-12 Warren Levy <warrenl@cygnus.com>
4012 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4013 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4014 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4015 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4016 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4017 * gnu/gcj/beans/editors/FontEditor.java: New file.
4018 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4019 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4020 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4021 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4022 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4023 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4024 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4025 * gnu/gcj/beans/editors/StringEditor.java: New file.
4026 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4027 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4028 * gnu/gcj/lang/ArrayHelper.java: New file.
4029 * gnu/gcj/lang/ClassHelper.java: New file.
4030 * java/beans/BeanDescriptor.java: New file.
4031 * java/beans/BeanInfo.java: New file.
4032 * java/beans/Beans.java: New file.
4033 * java/beans/Customizer.java: New file.
4034 * java/beans/DesignMode.java: New file.
4035 * java/beans/EventSetDescriptor.java: New file.
4036 * java/beans/FeatureDescriptor.java: New file.
4037 * java/beans/IndexedPropertyDescriptor.java: New file.
4038 * java/beans/IntrospectionException.java: New file.
4039 * java/beans/Introspector.java: New file.
4040 * java/beans/MethodDescriptor.java: New file.
4041 * java/beans/ParameterDescriptor.java: New file.
4042 * java/beans/PropertyChangeEvent.java: New file.
4043 * java/beans/PropertyChangeListener.java: New file.
4044 * java/beans/PropertyChangeSupport.java: New file.
4045 * java/beans/PropertyDescriptor.java: New file.
4046 * java/beans/PropertyEditor.java: New file.
4047 * java/beans/PropertyEditorManager.java: New file.
4048 * java/beans/PropertyEditorSupport.java: New file.
4049 * java/beans/PropertyVetoException.java: New file.
4050 * java/beans/SimpleBeanInfo.java: New file.
4051 * java/beans/VetoableChangeListener.java: New file.
4052 * java/beans/VetoableChangeSupport.java: New file.
4053 * java/beans/Visibility.java: New file.
4054 * java/beans/beancontext/BeanContext.java: New file.
4055 * java/beans/beancontext/BeanContextChild.java: New file.
4056 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4057 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4058 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4059 * java/beans/beancontext/BeanContextEvent.java: New file.
4060 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4061 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4062 * java/beans/beancontext/BeanContextProxy.java: New file.
4063 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4065 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4066 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4068 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4069 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4071 * java/beans/beancontext/BeanContextServices.java: New file.
4072 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4073 * java/util/AbstractCollection.java: New file.
4074 * java/util/AbstractList.java: New file.
4075 * java/util/Arrays.java: New file.
4076 * Makefile.am: Added above files.
4077 * Makefile.in: Rebuilt.
4079 2000-04-11 Warren Levy <warrenl@cygnus.com>
4081 * java/awt/AWTError.java: New file.
4082 * java/awt/AWTEvent.java: New file.
4083 * java/awt/AWTException.java: New file.
4084 * java/awt/ActiveEvent.java: New file.
4085 * java/awt/Adjustable.java: New file.
4086 * java/awt/BorderLayout.java: New file.
4087 * java/awt/Color.java: New file.
4088 * java/awt/Component.java: New file.
4089 * java/awt/Container.java: New file.
4090 * java/awt/Dimension.java: New file.
4091 * java/awt/Event.java: New file.
4092 * java/awt/Font.java: New file.
4093 * java/awt/Frame.java: New file.
4094 * java/awt/Graphics.java: New file.
4095 * java/awt/IllegalComponentStateException.java: New file.
4096 * java/awt/Image.java: New file.
4097 * java/awt/ItemSelectable.java: New file.
4098 * java/awt/LayoutManager.java: New file.
4099 * java/awt/LayoutManager2.java: New file.
4100 * java/awt/Menu.java: New file.
4101 * java/awt/MenuBar.java: New file.
4102 * java/awt/MenuComponent.java: New file.
4103 * java/awt/MenuContainer.java: New file.
4104 * java/awt/MenuItem.java: New file.
4105 * java/awt/Paint.java: New file.
4106 * java/awt/PaintContext.java: New file.
4107 * java/awt/Point.java: New file.
4108 * java/awt/Rectangle.java: New file.
4109 * java/awt/Shape.java: New file.
4110 * java/awt/TextArea.java: New file.
4111 * java/awt/TextComponent.java: New file.
4112 * java/awt/Toolkit.java: New file.
4113 * java/awt/Transparency.java: New file.
4114 * java/awt/Window.java: New file.
4115 * java/awt/natToolkit.cc: New file.
4116 * java/awt/event/AWTEventListener.java: New file.
4117 * java/awt/event/ActionEvent.java: New file.
4118 * java/awt/event/ActionListener.java: New file.
4119 * java/awt/event/AdjustmentEvent.java: New file.
4120 * java/awt/event/AdjustmentListener.java: New file.
4121 * java/awt/event/ComponentAdapter.java: New file.
4122 * java/awt/event/ComponentEvent.java: New file.
4123 * java/awt/event/ComponentListener.java: New file.
4124 * java/awt/event/ContainerAdapter.java: New file.
4125 * java/awt/event/ContainerEvent.java: New file.
4126 * java/awt/event/ContainerListener.java: New file.
4127 * java/awt/event/FocusAdapter.java: New file.
4128 * java/awt/event/FocusEvent.java: New file.
4129 * java/awt/event/FocusListener.java: New file.
4130 * java/awt/event/InputEvent.java: New file.
4131 * java/awt/event/InputMethodEvent.java: New file.
4132 * java/awt/event/InputMethodListener.java: New file.
4133 * java/awt/event/InvocationEvent.java: New file.
4134 * java/awt/event/ItemEvent.java: New file.
4135 * java/awt/event/ItemListener.java: New file.
4136 * java/awt/event/KeyAdapter.java: New file.
4137 * java/awt/event/KeyEvent.java: New file.
4138 * java/awt/event/KeyListener.java: New file.
4139 * java/awt/event/MouseAdapter.java: New file.
4140 * java/awt/event/MouseEvent.java: New file.
4141 * java/awt/event/MouseListener.java: New file.
4142 * java/awt/event/MouseMotionAdapter.java: New file.
4143 * java/awt/event/MouseMotionListener.java: New file.
4144 * java/awt/event/PaintEvent.java: New file.
4145 * java/awt/event/TextEvent.java: New file.
4146 * java/awt/event/TextListener.java: New file.
4147 * java/awt/event/WindowAdapter.java: New file.
4148 * java/awt/event/WindowEvent.java: New file.
4149 * java/awt/event/WindowListener.java: New file.
4150 * java/awt/geom/Dimension2D.java: New file.
4151 * java/awt/geom/Point2D.java: New file.
4152 * java/awt/peer/ComponentPeer.java: New file.
4153 * java/awt/peer/ContainerPeer.java: New file.
4154 * java/awt/peer/FramePeer.java: New file.
4155 * java/awt/peer/WindowPeer.java: New file.
4156 * java/util/Collection.java: New file.
4157 * java/util/Comparator.java: New file.
4158 * java/util/Iterator.java: New file.
4159 * java/util/List.java: New file.
4160 * java/util/ListIterator.java: New file.
4161 * Makefile.am: Added above files.
4162 * Makefile.in: Rebuilt.
4164 2000-04-10 Warren Levy <warrenl@cygnus.com>
4166 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4167 * java/lang/FirstThread.java: Ditto.
4168 * java/lang/StringBuffer.java: Ditto.
4169 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4171 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4172 Special case handled in java.math.BigInteger.
4173 * java/math/BigInteger.java (divide): Handle the special case when
4174 dividing by 1 and the high bit of the dividend is set.
4175 (setShiftRight): Handle case when count == 0.
4177 2000-04-05 Andrew Haley <aph@cygnus.com>
4179 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4182 2000-04-05 Andrew Haley <aph@cygnus.com>
4184 * sysdep/ia64.c (rse_address_add): Delete.
4185 (IS_NaT_COLLECTION_ADDR): Delete.
4186 (ia64_backtrace_helper): check for null unwind_info.
4188 * sysdep/ia64-frame.h: add calc_caller_bsp.
4190 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4193 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4194 (_Jv_remI): Likewise.
4195 (_Jv_divJ): Likewise.
4196 (_Jv_remJ): Likewise.
4198 * interpret.cc (continue1): Use divide subroutines to guarantee
4199 correct Java standard behaviour.
4200 Floating-point division should not abort; make it so.
4202 2000-03-29 Tom Tromey <tromey@cygnus.com>
4204 * configure: Rebuilt.
4205 * configure.in: Test against `libgcj_sjlj', not
4206 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4207 to be set even when using sjlj.
4209 2000-03-24 Andrew Haley <aph@cygnus.com>
4211 * Makefile.am: Add file addr2name.awk.
4212 * Makefile.in: Rebuilt.
4213 * addr2name.awk: New file.
4214 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4216 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4219 2000-03-22 Andrew Haley <aph@cygnus.com>
4221 * configure.host: Add -funwind-tables for IA64.
4222 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4223 * Makefile.in: Rebuilt.
4224 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4225 * sysdep/ia64.c: New file.
4226 * sysdep/ia64-frame.h: New file.
4227 * configure.in: Add sysdep/ia64.c for ia64.
4228 * configure: Rebuilt.
4230 2000-03-17 Andrew Haley <aph@cygnus.com>
4232 * java/lang/natString.cc: Remove `register' keyword.
4233 interpret.cc: ditto.
4235 2000-03-16 Andrew Haley <aph@cygnus.com>
4237 * configure.host (ia64): Enable interpreter.
4239 2000-03-14 Hans Boehm <boehm@acm.org>
4241 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4243 2000-03-14 Andrew Haley <aph@cygnus.com>
4245 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4248 2000-03-10 Andrew Haley <aph@cygnus.com>
4250 * java/lang/ieeefp.h: Import latest version from fdlibm.
4252 2000-03-14 Andrew Haley <aph@cygnus.com>
4254 * prims.cc (_Jv_ThrowSignal): New function.
4255 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4257 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4258 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4259 * include/ppc-signal.h: New file.
4261 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4263 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4264 * java/lang/natThread.java (initialize_native): Cast `data' to
4266 * gnu/gcj/RawData.java: Clarify documentation.
4268 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4269 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4270 `jarFile', not `jarFileURL'.
4272 2000-05-15 Andrew Haley <aph@cygnus.com>
4274 * include/ppc-signal.h: New file.
4276 2000-05-11 Tom Tromey <tromey@cygnus.com>
4278 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4279 file headers, don't include `size' in the skip call.
4281 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4283 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4284 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4286 (replace): Reimplemented. Fix javadoc.
4287 (reverse): Call ensureCapacity_unsynchronized().
4288 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4290 (replace): Calculate length for arraycopy() correctly.
4292 2000-05-09 Tom Tromey <tromey@cygnus.com>
4294 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4296 (insert(int,char[],int,int): New method.
4297 (delete): New method from Classpath.
4298 (deleteCharAt): Likewise.
4299 (substring): Likewise.
4300 (shared): No longer private.
4301 Added JavaDoc comments from Classpath.
4302 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4305 2000-05-07 Tom Tromey <tromey@cygnus.com>
4307 * Makefile.in: Rebuilt.
4308 * Makefile.am (LIBLINK): New macro.
4309 (libgcj_la_LINK): Use it.
4310 (libgcjawt_la_LINK): Likewise.
4312 2000-05-06 Tom Tromey <tromey@cygnus.com>
4314 * Makefile.in: Rebuilt.
4315 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4317 2000-05-05 Tom Tromey <tromey@cygnus.com>
4319 Fix for PR libgcj/220:
4320 * Makefile.in: Rebuilt.
4321 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4322 (jv_convert_LDFLAGS): Likewise.
4323 (libgcj_la_LDFLAGS): Likewise.
4324 (GCJLINK): New macro.
4325 (jv_convert_LINK): Use it.
4326 (gij_LINK): Likewise.
4327 (libgcj_la_LINK): New macro.
4328 (libgcjawt_la_LINK): Likewise.
4330 2000-05-04 Tom Tromey <tromey@cygnus.com>
4332 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4334 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4338 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4340 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4341 (_Jv_IsAssignableFrom): Ditto.
4342 (_Jv_IsInstanceOf): Ditto.
4343 (_Jv_CheckCast): Ditto.
4344 (_Jv_CheckArrayStore): Ditto.
4345 * java/lang/Class.h (_Jv_InitClass): Ditto.
4346 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4351 (_Jv_MonitorExit): Ditto.
4352 * boehm.cc (_Jv_MarkObj): Ditto.
4353 (_Jv_MarkObj): Ditto.
4354 (_Jv_MarkArray): Ditto.
4355 * prims.cc (_Jv_AllocObject): Ditto.
4356 (_Jv_NewObjectArray): Ditto.
4357 (_Jv_NewPrimArray): Ditto.
4358 (_Jv_Malloc): Ditto.
4359 (_Jv_Realloc): Ditto.
4360 (_Jv_MallocUnchecked): Ditto.
4366 2000-05-04 Tom Tromey <tromey@cygnus.com>
4368 * java/util/Locale.java (Locale): Don't explicitly check for
4370 * java/util/Hashtable.java (containsKey): Don't explicitly check
4373 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4375 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4377 * java/text/StringCharacterIterator.java
4378 (StringCharacterIterator): Don't check for null.
4379 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4381 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4382 check for null pointer.
4383 (leaveGroup): Likewise.
4384 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4386 (setData): Likewise.
4387 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4390 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4392 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4393 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4394 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4395 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4396 -rpath for in-gcc builds.
4397 * Makefile.in: Rebuilt.
4399 2000-04-28 Tom Tromey <tromey@cygnus.com>
4401 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4404 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4406 * libjava/java/lang/String.java (toString): Remove `final' hack.
4408 2000-04-05 Tom Tromey <tromey@cygnus.com>
4410 Runtime support for PR gcj/2:
4411 * prims.cc (_Jv_ThrowNullPointerException): New function.
4412 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4414 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4416 * prims.cc (_Jv_NewObjectArray): Fix typo.
4418 2000-04-26 Tom Tromey <tromey@cygnus.com>
4420 * Makefile.in: Rebuilt.
4421 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4423 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4425 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4428 2000-04-22 Anthony Green <green@cygnus.com>
4430 * include/jvm.h (__builtin_expect): Define as unused for now.
4431 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4435 (_Jv_MonitorExit): Ditto.
4436 * boehm.cc (_Jv_MarkObj): Ditto.
4437 (_Jv_MarkObj): Ditto.
4438 (_Jv_MarkArray): Ditto.
4439 (_Jv_AllocBytes): Ditto.
4440 * prims.cc (_Jv_AllocObject): Ditto.
4441 (_Jv_NewObjectArray): Ditto.
4442 (_Jv_NewPrimArray): Ditto.
4443 (_Jv_Malloc): Ditto.
4444 (_Jv_Realloc): Ditto.
4445 (_Jv_MallocUnchecked): Ditto.
4451 * include/Makefile.in: Rebuilt.
4452 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4454 2000-04-21 Tom Tromey <tromey@cygnus.com>
4456 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4457 Yet another new version from Classpath.
4459 Fix for PR libgcj/15:
4460 * java/util/natGregorianCalendar.cc (_REENTRANT,
4461 _POSIX_PTHREAD_SEMANTICS): Don't define.
4462 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4463 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4465 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4467 * configure: Rebuilt.
4468 * configure.in: If using POSIX threads, define _REENTRANT if
4469 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4470 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4472 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4473 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4474 version from Classpath.
4476 Fix for PR libgcj/213:
4477 * Makefile.in: Rebuilt.
4478 * Makefile.am (gij_SOURCES): Added gij.cc.
4479 (EXTRA_gij_SOURCES): Removed.
4480 (gij_LDADD): Removed gij.lo.
4481 (gij_DEPENDENCIES): Likewise.
4482 ($(gij_OBJECTS)): Depend on nat_headers.
4484 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4485 `setURL', not `url.set'.
4487 2000-04-20 Tom Tromey <tromey@cygnus.com>
4489 Fix for PR java.io/204:
4490 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4491 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4494 Fix for PR libgcj/212:
4495 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4496 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4497 * java/lang/Class.h (_Jv_word): Declare.
4499 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4501 2000-04-19 Tom Tromey <tromey@cygnus.com>
4503 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4504 doesn't have a loader.
4506 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4508 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4509 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4511 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4513 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4515 (available): Initialize `where' to prevent bogus compiler warning.
4517 2000-04-12 Tom Tromey <tromey@cygnus.com>
4519 * java/lang/natString.cc (intern): Temporarily disable finalizer
4522 * java/lang/natString.cc (unintern): Added `obj' argument.
4523 (intern): Register finalizer for string.
4524 * java/lang/String.java (unintern): Now static; added obj
4527 2000-04-11 Tom Tromey <tromey@cygnus.com>
4529 * java/util/Vector.java (VectorEnumeration): Now `final'.
4530 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4531 (HashtableEnumeration): Likewise.
4532 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4533 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4535 2000-04-10 Warren Levy <warrenl@cygnus.com>
4537 * java/io/ObjectStreamException.java: New file.
4538 * java/io/OptionalDataException.java: New file.
4539 * java/io/StreamCorruptedException.java: New file.
4540 * java/math/BigDecimal.java: New file.
4541 * java/sql/CallableStatement.java: New file.
4542 * java/sql/Connection.java: New file.
4543 * java/sql/DataTruncation.java: New file.
4544 * java/sql/DatabaseMetaData.java: New file.
4545 * java/sql/Date.java: New file.
4546 * java/sql/Driver.java: New file.
4547 * java/sql/DriverManager.java: New file.
4548 * java/sql/DriverPropertyInfo.java: New file.
4549 * java/sql/PreparedStatement.java: New file.
4550 * java/sql/ResultSet.java: New file.
4551 * java/sql/ResultSetMetaData.java: New file.
4552 * java/sql/SQLException.java: New file.
4553 * java/sql/SQLWarning.java: New file.
4554 * java/sql/Statement.java: New file.
4555 * java/sql/Time.java: New file.
4556 * java/sql/Timestamp.java: New file.
4557 * java/sql/Types.java: New file.
4558 * Makefile.am: Added above new files.
4559 * Makefile.in: Rebuilt.
4561 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4562 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4563 DatagramSocket constructor instead of null.
4565 2000-04-08 Anthony Green <green@cygnus.com>
4567 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4570 2000-04-08 Anthony Green <green@cygnus.com>
4572 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4573 (_Jv_MutexUnlock): Ditto.
4574 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4575 (_Jv_MutexUnlock): Ditto.
4577 2000-04-08 Anthony Green <green@cygnus.com>
4579 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4580 (ensureCapacity_unsynchronized): New private method.
4581 (append): Use ensureCapacity_unsynchronized.
4583 2000-04-08 Tom Tromey <tromey@cygnus.com>
4585 * Makefile.in: Rebuilt.
4586 * Makefile.am (awt_java_source_files): Added new files.
4587 * java/awt/IllegalComponentStateException.java: New file.
4588 * java/awt/ItemSelectable.java: New file.
4589 * java/awt/event/WindowEvent.java: Finished.
4590 * java/awt/event/TextEvent.java: Finished.
4591 * java/awt/event/ContainerEvent.java: New file.
4592 * java/awt/Component.java (getX, getY): New methods.
4593 * java/awt/event/PaintEvent.java: New file.
4594 * java/awt/event/MouseEvent.java: New file.
4595 * java/awt/ActiveEvent.java: New file.
4596 * java/awt/event/KeyEvent.java: Finished.
4597 * java/awt/event/ItemEvent.java: New file.
4598 * java/awt/Adjustable.java: New file.
4599 * java/awt/event/InputMethodEvent.java: New file.
4600 * java/awt/event/InputEvent.java: Finished.
4601 * java/awt/event/FocusEvent.java: New file.
4602 * java/awt/event/MouseMotionAdapter.java: New file.
4603 * java/awt/event/MouseAdapter.java: New file.
4604 * java/awt/event/KeyAdapter.java: New file.
4605 * java/awt/event/FocusAdapter.java: New file.
4606 * java/awt/event/ContainerAdapter.java: New file.
4607 * java/awt/event/ComponentEvent.java: Finished.
4608 * java/awt/event/AdjustmentEvent.java: New file.
4609 * java/awt/event/ComponentAdapter.java: New file.
4610 * java/awt/event/ActionEvent.java: Finished.
4611 * java/awt/event/MouseMotionListener.java: New file.
4612 * java/awt/event/MouseListener.java: New file.
4613 * java/awt/event/ItemListener.java: New file.
4614 * java/awt/event/InputMethodListener.java: New file.
4615 * java/awt/event/ContainerListener.java: New file.
4616 * java/awt/event/FocusListener.java: New file.
4617 * java/awt/event/ComponentListener.java: New file.
4618 * java/awt/event/AWTEventListener.java: New file.
4619 * java/awt/event/AdjustmentListener.java: New file.
4621 2000-04-08 Anthony Green <green@cygnus.com>
4623 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4624 check when we have to.
4626 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4629 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4632 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4633 inline hasMoreElements.
4635 2000-04-05 Tom Tromey <tromey@cygnus.com>
4637 * configure: Rebuilt.
4638 * configure.in: Recognize --enable-java-awt.
4639 (AWT): New conditional.
4640 * Makefile.in: Rebuilt.
4641 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4643 (libgcjawt_la_SOURCES): New macro.
4644 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4645 (libgcjawt_la_DEPENDENCIES): Likewise.
4646 (libgcjawt_la_LIBADD): Likewise.
4647 (libgcjawt_la_LDFLAGS): Likewise.
4648 (libgcj.zip): Depend on cond_java_awt_source_files
4649 (cond_awt_java_source_files): New macro.
4650 (MOSTLYCLEANFILES): Added awto_files.
4651 (awto_files): New macro. Use where javao_files used.
4652 (nat_headers): Use cond_awt_java_source_files.
4654 2000-04-04 Tom Tromey <tromey@cygnus.com>
4656 * Makefile.in: Rebuilt.
4657 * Makefile.am (awt_java_source_files): Added AWTException.java.
4658 * java/awt/AWTException.java: New file.
4660 2000-04-03 Tom Tromey <tromey@cygnus.com>
4662 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4663 commentary from Alex.
4665 * Makefile.in: Rebuilt.
4666 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4669 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4671 * configure: Rebuilt.
4672 * configure.in: Add --disable-jvmpi.
4673 * include/config.h.in: Rebuilt.
4674 * acconfig.h: Add ENABLE_JVMPI.
4676 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4677 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4678 (_Jv_JVMPI_Notify_THREAD_END): New define.
4679 (_Jv_JVMPI_Notify_THREAD_END): New define.
4680 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4681 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4682 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4684 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4687 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4688 (finish_): Generate JVMPI thread end events.
4689 (run_): Generate JVMPI thread start events.
4690 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4691 preloaded JNI library.
4692 Include JVMPI headers if necessary.
4693 (run): Generate JVMPI thread start events.
4695 * boehm.cc: Define GC_disable and GC_enable.
4696 (_Jv_DisableGC): New function.
4697 (_Jv_EnableGC): New function.
4698 (disable_gc_mutex): Declare.
4699 * nogc.cc (_Jv_DisableGC): New function.
4700 (_Jv_EnableGC): New function.
4702 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4703 (_Jv_JVMPI_Interface): Define.
4704 (jvmpiEnableEvent): New function.
4705 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4707 * include/jvmpi.h: New file.
4709 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4711 * Makefile.in: New #defines and friends for Thread.h.
4712 * Makefile.am: Ditto.
4713 * posix-threads.cc: (struct starter): Remove `object'.
4714 (_Jv_CondWait): Use interruptable condition variables and new
4715 recursive mutexes. New return codes on interrupt or non-ownership
4717 (_Jv_CondNotify): Ditto.
4718 (_Jv_CondNotifyAll): Ditto.
4719 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4720 the target thread by signaling its wait condition.
4721 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4722 not the starter struct. Initialize wait_mutex and wait_cond.
4723 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4725 (_Jv_MutexUnlock): Ditto.
4726 (really_start): Set info->data->thread from pthread_self() to work
4727 around a race condition. Destroy wait_mutex and wait_cond when run()
4729 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4730 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4732 startable_flag: New private field.
4733 (Thread): Initialize `startable_flag'.
4734 (toString): Check for null thread group.
4735 * java/lang/natThread.cc: (struct natThread): New fields
4736 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4737 (class locker): Removed.
4738 (initialize_native): Initialize `join_cond' and `join_mutex'.
4739 (interrupt): Now just calls _Jv_ThreadInterrupt().
4740 (join): Simplified. Just wait on the target thread's join condition.
4741 (finish_): Remove join list code. Unset thread group. Signal
4742 potential joiners by notifying the dying threads join_cond.
4743 (start): Check for illegal restarts.
4744 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4746 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4747 #defines and #ifdefs.
4748 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4749 `wait_mutex', `next'.
4750 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4751 directly mapping to pthread_cond_t.
4752 (struct _Jv_Mutex_t): New recursive implementation.
4753 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4754 _Jv_HaveCondDestroy: Never define this for posix-threads.
4755 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4756 (_Jv_CondNotifyAll): Ditto.
4757 (_Jv_MutexLock): Ditto.
4758 (_Jv_MutexUnlock): Ditto.
4759 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4760 (_Jv_MutexDestroy): Ditto.
4761 (_Jv_CondDestroy): Removed.
4762 (_Jv_PthreadGetMutex): Removed.
4763 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4764 error. Add a FIXME about this.
4765 (_Jv_CondNotifyAll): Ditto.
4766 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4767 _JV_NOT_OWNER on other errors. Add FIXME.
4769 2000-03-26 Tom Tromey <tromey@cygnus.com>
4771 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4773 (call): Don't throw exception here.
4775 2000-03-26 Tom Tromey <tromey@cygnus.com>
4777 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4778 * interpret.cc: Use SIZEOF_VOID_P.
4779 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4780 (_Jv_loadLong): Likewise.
4781 (_Jv_storeDouble): Likewise.
4782 * configure: Rebuilt.
4783 * configure.in: Check size of void*.
4785 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4787 2000-03-26 Hans Boehm <boehm@acm.org>
4789 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4790 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4792 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4793 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4794 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4795 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4797 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4798 (FFI_RAW_SIZE): Likewise.
4799 (_Jv_InterpMethod::ncode): Use them.
4800 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4801 STORED): Define differently on a 64 bit machine.
4802 (continue1): Use ffi_java_raw_call when appropriate.
4804 2000-03-24 Warren Levy <warrenl@cygnus.com>
4806 * java/math/BigInteger.java(divide): Handle the special case when
4807 dividing by 1 and the high bit of the dividend is set.
4808 (setShiftRight): Handle case when count == 0.
4810 2000-03-24 Warren Levy <warrenl@cygnus.com>
4812 * java/awt/Font.java(isBold): Fix syntax error.
4814 * java/awt/Frame.java(postEvent): ditto.
4815 * java/awt/Menu.java(postEvent): ditto.
4816 * java/awt/MenuBar.java(postEvent): ditto.
4817 * java/awt/Toolkit.java(init): Included a stub.
4819 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4821 * java/awt/Event.java: Add all the event type constants.
4822 (Event): Implemented constructors.
4823 (controlDown): Implemented.
4824 (metaDown): Implemented.
4825 (paramString): Stubbed.
4826 (shiftDown): Implemented.
4827 (toString): Implemented.
4828 (translate): Implemented.
4830 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4832 * java/lang/natClass.cc (isInstance): Initialize `this'.
4833 (isAssignableFrom): Initialize `this' and `klass'.
4834 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4835 implemented by any loaded class, so return false.
4836 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4837 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4839 2000-03-19 Warren Levy <warrenl@cygnus.com>
4841 * java/awt/Color.java: Specified java.io for Serializable.
4842 * java/awt/Toolkit.java: Imported java.net.URL.
4844 2000-03-19 Warren Levy <warrenl@cygnus.com>
4846 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4848 2000-03-16 Warren Levy <warrenl@cygnus.com>
4850 * java/awt/Color.java: New file.
4851 * java/awt/Graphics.java: New file.
4852 * java/awt/Image.java: New file.
4853 * java/awt/Paint.java: New file.
4854 * java/awt/PaintContext.java: New file.
4855 * java/awt/Transparency.java: New file.
4856 * java/util/Collection.java: New file.
4857 * java/util/Comparator.java: New file.
4858 * java/util/Iterator.java: New file.
4859 * java/util/List.java: New file.
4860 * java/util/ListIterator.java: New file.
4861 * Makefile.am: Added above new files.
4862 * Makefile.in: Rebuilt.
4864 * java/awt/Font.java (PLAIN): New field.
4866 (ITALIC): New field.
4867 (ROMAN_BASELINE): New field.
4868 (CENTER_BASELINE): New field.
4869 (HANGING_BASELINE): New field.
4873 (pointSize): New field.
4874 (Font): Implemented constructor.
4875 (isPlain): Implemented method.
4876 (isBold): Implemented method.
4877 (isItalic): Implemented method.
4878 (getName): Implemented method.
4879 (getStyle): Implemented method.
4880 (getSize): Implemented method.
4881 (getSize2D): Implemented method.
4883 * java/awt/Frame.java (getFont): Stubbed.
4884 (postEvent): Stubbed.
4886 * java/awt/Menu.java (postEvent): Stubbed.
4887 * java/awt/MenuBar.java (getFont): Stubbed.
4888 (postEvent): Stubbed.
4889 * java/awt/Toolkit.java (getImage): Added abstract method.
4891 2000-03-15 Tom Tromey <tromey@cygnus.com>
4893 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4895 * prims.cc (win32_exception_handler): Reformatted.
4897 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4898 (_Jv_HaveMutexDestroy): Likewise.
4900 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4902 * java/io/natFileDescriptorWin32.cc: New file.
4903 * java/io/natFileWin32.cc: New file.
4904 * java/net/natInetAddress.cc: Added conditional inclusion of
4905 Windows / Winsock headers.
4906 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4907 inclusion of Windows / Winsock headers.
4908 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4909 Windows / Winsock headers.
4910 * include/win32-signal.h: New file.
4911 * include/win32-threads.h: New file.
4912 * win32-threads.cc: New file.
4913 * exception.cc (win32_get_restart_frame): New function.
4914 * prims.cc (win32_exception_handler): New function.
4915 (main_init) Performs Winsock initialisation.
4916 (main_init) Installs exeception handler.
4918 2000-03-14 Tom Tromey <tromey@cygnus.com>
4920 * jni.cc (mangled_name): Fixed assertion.
4921 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4922 turned assert into actual failure.
4924 2000-03-09 Warren Levy <warrenl@cygnus.com>
4926 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4927 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4928 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4930 2000-03-09 Warren Levy <warrenl@cygnus.com>
4932 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4933 * java/security/DigestException.java: New file.
4934 * java/security/GeneralSecurityException.java: New file.
4935 * java/security/InvalidAlgorithmParameterException.java: New file.
4936 * java/security/InvalidKeyException.java: New file.
4937 * java/security/InvalidParameterException.java: New file.
4938 * java/security/Key.java: New file.
4939 * java/security/KeyException.java: New file.
4940 * java/security/KeyPair.java: New file.
4941 * java/security/KeyPairGenerator.java: New file.
4942 * java/security/KeyPairGeneratorSpi.java: New file.
4943 * java/security/NoSuchProviderException.java: New file.
4944 * java/security/PrivateKey.java: New file.
4945 * java/security/Provider.java: New file.
4946 * java/security/PublicKey.java: New file.
4947 * java/security/SecureRandom.java: New file.
4948 * java/security/Security.java: New file.
4949 * java/security/Signature.java: New file.
4950 * java/security/SignatureException.java: New file.
4951 * java/security/interfaces/DSAKey.java: New file.
4952 * java/security/interfaces/DSAParams.java: New file.
4953 * java/security/interfaces/DSAPrivateKey.java: New file.
4954 * java/security/interfaces/DSAPublicKey.java: New file.
4955 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4956 * java/security/interfaces/RSAPrivateKey.java: New file.
4957 * java/security/interfaces/RSAPublicKey.java: New file.
4958 * java/security/spec/AlgorithmParameterSpec.java: New file.
4959 * java/security/spec/InvalidKeySpecException.java: New file.
4960 * java/security/spec/InvalidParameterSpecException.java: New file.
4961 * java/security/spec/KeySpec.java: New file.
4962 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4963 * java/security/spec/RSAPrivateKeySpec.java: New file.
4964 * java/security/spec/RSAPublicKeySpec.java: New file.
4965 * Makefile.am: Added above java.security files.
4966 * Makefile.in: Rebuilt.
4968 * java/security/MessageDigest.java: Rewritten.
4969 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4971 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4975 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4977 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4978 _Jv_PrepareConstantTimeTables.
4979 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4980 classes should have an IDT, so don't return if klass is an array
4983 2000-03-08 Tom Tromey <tromey@cygnus.com>
4985 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4986 of `void' to be created.
4988 2000-03-08 Warren Levy <warrenl@cygnus.com>
4990 * java/math/BigInteger.java(signum): Handle zero properly.
4992 2000-03-07 Tom Tromey <tromey@cygnus.com>
4994 * All files: Updated copyright information.
4995 * COPYING: New file.
4996 * COPYING.LIB: Removed.
4997 * LIBGCJ_LICENSE: We now use GPL + special exception.
4999 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5001 * resolve.cc (_Jv_SearchMethodInClass): New function.
5002 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5003 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5005 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5007 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5008 (struct _Jv_ifaces): New declaration.
5009 JV_CLASS: New macro definition.
5010 (getComponentType): Relocate below isArray() for inlining.
5011 (getModifiers): Declare `inline'.
5012 (getSuperclass): Ditto.
5014 (isPrimitive): Ditto.
5015 (_Jv_IsAssignableFrom): New prototype.
5016 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5018 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5019 Check for JV_STATE_DONE before invoking initializeClass().
5020 (_Jv_PrepareConstantTimeTables): New prototype.
5021 (_Jv_GetInterfaces): Ditto.
5022 (_Jv_GenerateITable): Ditto.
5023 (_Jv_GetMethodString): Ditto.
5024 (_Jv_AppendPartialITable): Ditto.
5025 (_Jv_FindIIndex): Ditto.
5026 depth, ancestors, idt: New class fields.
5028 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5029 inline function `_Jv_IsAssignableFrom'. Use that function.
5030 (isInstance): Declare `inline'.
5031 (initializeClass): Get lock on class before checking `state'. Unlock
5032 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5034 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5035 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5036 class->depth and ancestor table.
5037 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5038 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5039 _Jv_IsAssignableFrom.
5040 (_Jv_CheckArrayStore): Ditto.
5041 (_Jv_LookupInterfaceMethodIdx): New function.
5042 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5043 (_Jv_PrepareConstantTimeTables): New function.
5044 (_Jv_IndexOf): Ditto.
5045 (_Jv_GetInterfaces): Ditto.
5046 (_Jv_GenerateITable): Ditto.
5047 (_Jv_GetMethodString): Ditto.
5048 (_Jv_AppendPartialITable): Ditto.
5049 iindex_mutex, iindex_mutex_initialized: New static fields.
5050 (_Jv_FindIIndex): New function.
5052 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5054 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5055 (_Jv_CheckArrayStore): Ditto.
5056 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5057 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5058 Moved to gcj/array.h.
5059 (_Jv_Realloc): New function.
5061 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5063 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5064 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5065 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5066 JvNewDoubleArray): Implementations moved from prims.cc and
5069 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5071 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5073 2000-03-06 Tom Tromey <tromey@cygnus.com>
5075 * jni.cc (MARK_NONE): New define.
5076 (MARK_USER): Likewise.
5077 (MARK_SYSTEM): Likewise.
5078 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5080 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5081 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5082 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5083 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5085 (call): Use MARK_SYSTEM.
5086 (_Jv_GetJNIEnvNewFrame): New function.
5087 (_Jv_LookupJNIMethod): New function.
5088 (_Jv_JNI_PopSystemFrame): New function.
5089 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5091 2000-03-05 Tom Tromey <tromey@cygnus.com>
5093 Fix for PR libgcj/43:
5094 * include/Makefile.in: Rebuilt.
5095 * include/Makefile.am (include_HEADERS): New define.
5097 2000-03-05 Anthony Green <green@redhat.com>
5099 * gcj/javaprims.h ("Java"): Remove FirstThread.
5101 * configure.host: Fix __NO_MATH_INLNES botch.
5103 * Makefile.in: Rebuilt.
5104 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5105 (gnu/gcj/runtime/FirstThread.h): Moved.
5106 (ordinary_java_source_files): Move FirstThread.java.
5107 * prims.cc: Deal with FirstThread movement.
5109 (_Jv_RunMain): Ditto.
5111 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5112 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5114 2000-03-05 Warren Levy <warrenl@cygnus.com>
5116 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5117 Handle null addresses.
5119 2000-03-04 Anthony Green <green@redhat.com>
5121 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5124 2000-03-04 Anthony Green <green@redhat.com>
5126 * configure: Rebuilt.
5127 * configure.in (ZLIBTESTSPEC): New macro.
5128 (GCTESTSPEC): New macro.
5129 (LIBGCJTESTSPEC): New macro.
5130 * libgcj-test.spec.in: New file.
5132 2000-03-02 Tom Tromey <tromey@cygnus.com>
5134 * include/java-interp.h: Don't include MethodInvocation.h.
5135 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5136 * Makefile.in: Rebuilt.
5137 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5138 (ordinary_java_source_files): Don't mention
5139 MethodInvocation.java.
5140 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5141 * interpret.cc (MethodInvocation::continue1): Removed.
5142 (run): Handle exceptions here.
5143 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5145 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5147 (defineClass2): Removed.
5149 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5151 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5153 (hack_call): Removed.
5155 * java/lang/Class.h (Class): Removed hackRunInitializers,
5157 * java/lang/natClass.cc (hackRunInitializers): Removed.
5158 (initializeClass): Catch exceptions here.
5159 Include ExceptionInInitializerError.h.
5160 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5163 * java/lang/Object.h (Object): Don't mention hack12_6.
5164 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5166 * java/lang/Object.java (hack12_6): Removed.
5168 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5169 (start): Use run_, not run__.
5170 * java/lang/Thread.java (run_): Renamed from run__; old run_
5173 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5174 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5175 (_Jv_JNI_DefineClass): Likewise.
5176 (_Jv_JNI_ThrowNew): Likewise.
5177 (_Jv_JNI_AllocObject): Likewise.
5178 (_Jv_JNI_GetAnyMethodID): Likewise.
5179 (_Jv_JNI_CallAnyMethodV): Likewise.
5180 (_Jv_JNI_CallAnyMethodA): Likewise.
5181 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5182 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5183 (_Jv_JNI_GetAnyFieldID): Likewise.
5184 (_Jv_JNI_NewString): Likewise.
5185 (_Jv_JNI_NewStringUTF): Likewise.
5186 (_Jv_JNI_GetStringUTFChars): Likewise.
5187 (_Jv_JNI_NewObjectArray): Likewise.
5188 (_Jv_JNI_NewPrimitiveArray): Likewise.
5189 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5190 (_Jv_JNI_GetStringRegion): Likewise.
5191 (_Jv_JNI_GetStringUTFRegion): Likewise.
5192 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5193 (_Jv_JNI_MonitorEnter): Likewise.
5194 (_Jv_JNI_MonitorExit): Likewise.
5195 (_Jv_JNI_ToReflectedField): Likewise.
5196 (_Jv_JNI_ToReflectedMethod): Likewise.
5197 (_Jv_JNI_RegisterNatives): Likewise.
5198 (_Jv_JNI_AttachCurrentThread): Likewise.
5199 (_Jv_JNI_DestroyJavaVM): Likewise.
5201 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5203 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5204 error caused by the incorrect casting of a long to an int.
5206 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5208 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5209 SIGSEV caused by use of the wrong instance variable.
5211 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5213 * java/io/File.java (File(String, String)): For dirPath, treat an
5214 empty String the same as `null'.
5216 2000-02-26 Anthony Green <green@cygnus.com>
5218 * gnu/gcj/io/MimeTypes.java: Test for null.
5220 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5221 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5223 * java/net/URLConnection.java: Update copyright notice.
5225 2000-02-25 Tom Tromey <tromey@cygnus.com>
5227 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5230 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5232 * java/net/URLConnection.java (initializeDateFormats): New
5234 (getHeaderFieldDate): Call initializeDateFormats if required.
5235 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5237 Fix for PR libgcj/38.
5239 2000-02-24 Warren Levy <warrenl@cygnus.com>
5241 * java/math/BigInteger.java(ival): Made private.
5245 2000-02-20 Anthony Green <green@cygnus.com>
5247 * Makefile.in: Rebuilt.
5248 * Makefile.am (ordinary_java_source_files): Add
5249 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5251 * scripts/MakeDefaultMimeTypes.java: New file.
5252 * scripts/mime.types: New file.
5253 * scripts/classes.pl: Moved from top level.
5254 * classes.pl: Moved to scripts directory.
5256 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5258 * gnu/gcj/io/MimeTypes.java: New file.
5259 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5261 2000-02-20 Tom Tromey <tromey@cygnus.com>
5263 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5265 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5267 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5270 2000-02-18 Tom Tromey <tromey@cygnus.com>
5272 * include/jvm.h (_Jv_GetJavaVM): Declare.
5273 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5274 (_Jv_MethodBase::get_method): New method.
5275 (_Jv_JNIMethod::set_function): New method.
5276 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5277 (_Jv_JNI_RegisterNatives): New function.
5278 (_Jv_JNIFunctions): Updated for new functions.
5279 (_Jv_GetJavaVM): New function.
5280 (_Jv_JNI_GetJavaVM): Use it. Now static.
5281 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5282 is already a Java thread but does not have a JNIEnv yet.
5284 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5287 2000-02-17 Tom Tromey <tromey@cygnus.com>
5289 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5292 2000-02-16 Tom Tromey <tromey@cygnus.com>
5294 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5296 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5297 (_Jv_JNI_NewObject): Likewise.
5298 (_Jv_JNI_NewObjectA): Likewise.
5299 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5300 as "return" type to _Jv_CallAnyMethodA.
5301 (_Jv_JNI_CallAnyMethodA): Likewise.
5302 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5304 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5307 2000-02-15 Tom Tromey <tromey@cygnus.com>
5309 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5311 (init_cif): Added `rtype_p' argument.
5312 * include/java-interp.h (class _Jv_MethodBase): Added
5314 (class _Jv_InterpMethod): Removed args_raw_size.
5315 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5316 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5317 class pointer as well as the ordinary arguments.
5319 * jni.cc (mangled_name): Skip leading `(' in signature.
5321 * jni.cc (add_char): Added missing `else'.
5323 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5326 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5330 * java/lang/natRuntime.cc (_load): Include library path with
5333 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5336 * java/lang/natThread.cc (dumpStack): Removed.
5337 * java/lang/Thread.java (dumpStack): Implemented.
5339 2000-02-15 Tom Tromey <tromey@cygnus.com>
5341 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5342 with `lib' for loadLibrary. Fixes PR gcj/150.
5344 2000-02-14 Warren Levy <warrenl@cygnus.com>
5346 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5348 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5352 (modPow): Rewritten to not use the naive, slow, brute force approach.
5353 (isProbablePrime): Implemented.
5354 (testBit): Implemented.
5355 (flipBit): Implemented.
5356 (getLowestSetBit): Implemented.
5358 2000-02-16 Anthony Green <green@redhat.com>
5360 * configure.host: Use the same options for i386 and i486 as we do
5363 2000-02-12 Tom Tromey <tromey@cygnus.com>
5365 * java/io/File.java (createTempFile): Use low bits from counter,
5368 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5370 * THANKS: More thanks.
5372 2000-02-11 Tom Tromey <tromey@cygnus.com>
5374 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5375 astore instruction. From Hans Boehm.
5377 2000-02-11 Warren Levy <warrenl@cygnus.com>
5379 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5380 (BigInteger(String)): New constructor.
5381 (not): Rewritten using version from Kawa's BitOps class.
5382 (valueOf): New private methods from Kawa's BitOps class.
5389 (andNot): Implemented.
5390 (clearBit): Implemented.
5391 (setBit): Implemented.
5392 (bitCount): Implemented.
5393 (toByteArray): Implemented.
5395 2000-02-11 Tom Tromey <tromey@cygnus.com>
5397 * java/io/File.java (nextValue): Now synchronized.
5399 2000-02-10 Tom Tromey <tromey@cygnus.com>
5401 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5402 * java/io/FileDescriptor.java (EXCL): New static field.
5403 * java/io/File.java (tmpdir): New static field.
5404 (createTempFile): New method.
5405 (nextValue): New method.
5406 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5409 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5410 (jboolean): Declare as an attributed int, not a bool.
5411 (_Jv_func): Declare differently for C.
5413 * gnu/gcj/jni/natNativeThread.cc: New file.
5414 * gnu/gcj/jni/NativeThread.java: New file.
5415 * java/lang/Thread.java (data): Now a RawData.
5416 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5418 * Makefile.in: Rebuilt.
5419 * Makefile.am (java/lang/Thread.h): New target.
5420 (ordinary_java_source_files): Added NativeThread.java.
5421 (nat_source_files): Added natNativeThread.cc.
5422 * java/lang/natThread.cc: Include <jni.h>
5423 (struct natThread): Added `jni_env' field.
5424 (_Jv_GetCurrentJNIEnv): New function.
5425 (_Jv_SetCurrentJNIEnv): Likewise.
5426 (initialize_native): Initialize jni_env.
5428 * jni.cc (ThreadGroupClass): New define.
5429 (_Jv_JNI_InvokeFunctions): New structure.
5430 (JNI_GetCreatedJavaVMs): New function.
5431 (the_vm): New global.
5432 (JNI_GetDefaultJavaVMInitArgs): New function.
5433 Include NativeThread.h.
5434 (NativeThreadClass): New define.
5435 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5436 (_Jv_JNI_DestroyJavaVM): New function.
5437 (_Jv_JNI_AttachCurrentThread): New function.
5438 (_Jv_JNI_DetachCurrentThread): New function.
5439 (_Jv_JNI_GetEnv): New function.
5440 (JNI_CreateJavaVM): New function.
5441 (_Jv_JNI_GetJavaVM): New function.
5442 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5443 * include/jni.h (JavaVMAttachArgs): New structure.
5444 (JNI_EDETACHED): New define.
5445 (JNI_EVERSION): Likewise.
5446 (JavaVM): Define properly.
5447 (struct JNIInvokeInterface): New structure.
5448 (class _Jv_JavaVM): New class.
5449 (JNI_OnLoad, JNI_OnUnload): Declare.
5450 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5451 JNI_GetCreatedJavaVMs): Declare.
5452 (JavaVMInitArgs): New typedef.
5453 (JavaVMOption): Likewise.
5454 (JNI_ERR): New define.
5457 2000-02-10 Andrew Haley <aph@cygnus.com>
5459 * interpret.cc: Don't include fdlibm.h.
5460 Replace #if with #ifdef throughout.
5461 Declare extern __ieee754_fmod.
5462 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5464 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5465 Search class hierarchy for superclass vtable.
5467 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5468 off the end of a pointer list.
5470 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5474 2000-02-09 Tom Tromey <tromey@cygnus.com>
5476 * java/lang/natRuntime.cc (_load): Call add_library.
5477 (loadLibraryInternal): Likewise.
5479 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5480 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5481 (Output_iconv::finalize): Likewise.
5483 2000-02-08 Tom Tromey <tromey@cygnus.com>
5485 * java/util/Properties.java (setProperty): New method.
5486 (store): New method.
5488 2000-02-07 Tom Tromey <tromey@cygnus.com>
5490 * java/lang/Runtime.java (_load): Declare.
5491 (load, loadLibrary): Wrote in terms of _load.
5492 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5494 (loadLibrary): Likewise.
5496 (_load): New method.
5497 (loadLibrary, load): Removed.
5499 * jni.cc (ThrowableClass): New define.
5500 (_Jv_JNI_Throw): Check argument.
5501 (_Jv_JNI_ThrowNew): Likewise.
5502 (wrap_value): Don't wrap object if it is NULL.
5503 (_Jv_JNI_DefineClass): Use wrap_value.
5504 (_Jv_JNI_FindClass): Likewise.
5505 (_Jv_JNI_GetSuperclass): Likewise.
5506 (_Jv_JNI_ExceptionOccurred): Likewise.
5507 (_Jv_JNI_AllocObject): Likewise.
5508 (_Jv_JNI_GetObjectClass): Likewise.
5509 (_Jv_JNI_NewString): Likewise.
5510 (_Jv_JNI_NewStringUTF): Likewise.
5511 (_Jv_JNI_NewObjectArray): Likewise.
5512 (_Jv_JNI_GetObjectArrayElement): Likewise.
5513 (_Jv_JNI_NewPrimitiveArray): Likewise.
5514 (_Jv_JNI_ToReflectedField): Likewise.
5515 (_Jv_JNI_ToReflectedMethod): Likewise.
5516 (_Jv_JNI_AllocObject): Check argument.
5517 (_Jv_JNI_NewObjectV): Likewise.
5518 (_Jv_JNI_NewObject): Likewise.
5519 (_Jv_JNI_NewObjectA): Likewise.
5520 (_Jv_JNI_GetObjectClass): Likewise.
5521 (_Jv_JNI_GetField): Likewise.
5522 (_Jv_JNI_SetField): Likewise.
5524 * interpret.cc (PUSHL): Don't use expression statement.
5529 * jni.cc (add_char): Conditional on INTERPRETER.
5530 (mangled_name): Likewise.
5532 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5534 (class _Jv_JNIMethod): Likewise.
5536 2000-02-04 Warren Levy <warrenl@cygnus.com>
5538 * Makefile.am: Added MPN.java and BigInteger.java.
5539 * Makefile.in: Rebuilt.
5540 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5542 * java/math/BigInteger.java: New file. Based primarily on
5543 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5545 2000-02-04 Tom Tromey <tromey@cygnus.com>
5547 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5549 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5550 if the method is native.
5551 * resolve.cc (ncode): Don't handle native methods.
5552 (_Jv_JNIMethod::ncode): New method.
5553 (_Jv_PrepareClass): Handle native methods.
5554 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5555 Include AbstractMethodError.h.
5556 (add_char): New function.
5557 (mangled_name): Likewise.
5558 * include/java-interp.h (class _Jv_JNIMethod): New class.
5559 (class _Jv_MethodBase): New class.
5560 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5561 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5564 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5565 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5566 libraries): New globals.
5567 (add_library): New function.
5568 (_Jv_FindSymbolInExecutable): New function.
5570 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5573 2000-02-04 Andrew Haley <aph@cygnus.com>
5575 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5576 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5577 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5578 printStackTrace to printRawStackTrace.
5580 2000-02-03 Tom Tromey <tromey@cygnus.com>
5582 * java/util/Calendar.java (toString): New method.
5583 * java/util/SimpleTimeZone.java (clone): New method.
5584 (toString): New method.
5585 * java/util/TimeZone.java (clone): New method.
5586 * java/text/SimpleDateFormat.java (clone): New method.
5587 * java/text/NumberFormat.java (clone): New method.
5588 (equals): New method.
5589 * java/text/Format.java (clone): New method.
5590 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5592 (clone): New method.
5593 * java/text/DateFormat.java (clone): New method.
5594 * java/text/Collator.java (clone): New method.
5596 2000-02-03 Tom Tromey <tromey@cygnus.com>
5598 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5601 2000-02-01 Tom Tromey <tromey@cygnus.com>
5603 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5604 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5605 constructing the closure if the function is native.
5606 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5607 a template function, #if'd out, or static.
5608 Include <java-interp.h>.
5610 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5612 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5614 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5615 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5617 (wrap_value): New function.
5618 (_Jv_JNI_CallAnyMethodV): Use it.
5619 (_Jv_JNI_CallAnyMethodA): Likewise.
5620 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5621 (_Jv_JNI_GetStaticField): Likewise.
5623 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5624 (_Jv_JNI_GetStaticField): Likewise.
5626 2000-01-31 Tom Tromey <tromey@cygnus.com>
5628 * prims.cc (_Jv_MallocUnchecked): New function.
5629 (main_init): Call _Jv_JNI_Init.
5630 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5631 (_Jv_JNI_Init): Declare.
5632 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5634 (_Jv_JNI_NewGlobalRef): New function.
5635 (_Jv_JNI_DeleteGlobalRef): New function.
5636 (_Jv_JNI_DeleteLocalRef): New function.
5637 (_Jv_JNI_conversion_call): Initialize and clear local reference
5639 (_Jv_JNI_NewLocalRef): New function.
5640 (struct _Jv_JNI_LocalFrame): New structure.
5641 (_Jv_JNI_PushLocalFrame): New function.
5642 (_Jv_JNI_EnsureLocalCapacity): New function.
5643 (FRAME_SIZE): New define.
5644 (_Jv_JNI_GetStringChars): Mark string, not characters.
5645 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5646 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5647 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5649 (_Jv_JNI_DefineClass): Make return value a local ref.
5650 (_Jv_JNI_FindClass): Likewise.
5651 (_Jv_JNI_GetSuperclass): Likewise.
5652 (_Jv_JNI_ExceptionOccurred): Likewise.
5653 (_Jv_JNI_AllocObject): Likewise.
5654 (_Jv_JNI_GetObjectClass): Likewise.
5655 (_Jv_JNI_CallAnyMethodV): Likewise.
5656 (_Jv_JNI_NewString): Likewise.
5657 (_Jv_JNI_NewStringUTF): Likewise.
5658 (_Jv_JNI_NewObjectArray): Likewise.
5659 (_Jv_JNI_GetObjectArrayElement): Likewise.
5660 (_Jv_JNI_ToReflectedField): Likewise.
5661 (_Jv_JNI_ToReflectedMethod): Likewise.
5662 (_Jv_JNIFunctions): Updated table for new functions.
5663 (_Jv_JNI_Init): New function.
5664 (mark_for_gc): Wrote.
5665 (unmark_for_gc): Wrote.
5666 * include/jni.h (struct JNINativeInterface): Removed name from
5667 PopLocalFrame parameter.
5668 (class _Jv_JNIEnv): Added `locals' field.
5670 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5672 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5675 2000-01-30 Tom Tromey <tromey@cygnus.com>
5677 * include/config.h.in: Rebuilt.
5678 * acconfig.h (HAVE_ICONV): Define.
5679 * configure: Rebuilt.
5680 * configure.in: Check for `iconv' function.
5681 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5682 no specific encoder exists.
5683 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5684 no specific encoder exists.
5685 * Makefile.in: Rebuilt.
5686 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5688 (nat_source_files): Added natIconv.cc.
5689 * gnu/gcj/convert/natIconv.cc: New file.
5690 * gnu/gcj/convert/Input_iconv.java: New file.
5691 * gnu/gcj/convert/Output_iconv.java: New file.
5693 2000-01-28 Tom Tromey <tromey@cygnus.com>
5695 * Makefile.in: Rebuilt.
5696 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5698 2000-01-26 Tom Tromey <tromey@cygnus.com>
5700 * gcj/method.h (JvNumMethods): Moved from Class.h.
5701 (JvGetFirstMethod): Likewise.
5702 * java/lang/Class.h (Object): Updated decl of
5703 _Jv_JNI_ToReflectedField.
5704 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5705 * Makefile.in: Rebuilt.
5706 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5707 argument of _Jv_JNI_ToReflectedField.
5708 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5710 (java/lang/reflect/Method.h): Likewise.
5711 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5713 (jweak): New typedef.
5714 (struct JNINativeInterface): Correctly declare remaining entries.
5715 * jni.cc: Include Class.h, ClassLoader.h.
5716 (_Jv_JNI_FindClass): New function.
5717 (_Jv_JNI_DefineClass): New function.
5718 (_Jv_JNI_conversion_call): New function.
5719 (_Jv_JNI_FindClass): Use current class loader to find class.
5720 (_Jv_JNI_ExceptionCheck): New function.
5721 (_Jv_JNI_FromReflectedField): Now static.
5722 (MethodClass): New define.
5723 (_Jv_JNI_FromReflectedMethod): New function.
5724 (_Jv_JNI_ToReflectedMethod): Likewise.
5726 (_Jv_JNI_IsAssignableFrom): Renamed.
5727 (_Jv_JNI_GetStringRegion): New function.
5728 Include StringIndexOutOfBoundsException.h.
5729 (_Jv_JNI_GetStringUTFRegion): New function.
5730 (_Jv_JNIFunctions): Updated for new functions.
5731 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5732 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5733 (_Jv_JNI_GetStringCritical): New function.
5734 (_Jv_JNI_ReleaseStringCritical): Likewise.
5735 (get_throwable): Removed.
5736 (GCJ_JV_JNIENV_FRIEND): Removed.
5737 (__GCJ_JNI_IMPL__): Define.
5740 * resolve.cc (get_ffi_type_from_signature): Handle case where
5743 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5745 * interpret.cc (run): Don't call println.
5746 Don't include PrintStream.h.
5748 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5749 nameIndex. Use "jint" as type for boffset.
5750 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5752 (Class): Likewise. Also changed type of method_count,
5753 vtable_method_count, size_in_bytes, field_count,
5754 static_field_count, interface_count.
5755 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5758 2000-01-21 Tom Tromey <tromey@cygnus.com>
5760 * java/lang/reflect/natConstructor.cc (newInstance): Use
5762 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5763 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5764 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5767 (invoke): Use _Jv_CallAnyMethodA.
5769 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5770 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5772 (struct _Jv_Method): Added getNextMethod method.
5773 (JvNumMethods): New function.
5774 (JvGetFirstMethod): Likewise.
5775 * gcj/field.h (JvGetFirstStaticField): New function.
5776 (JvNumStaticFields): Likewise.
5777 (getNextField): Renamed from getNextInstanceField.
5778 (struct _Jv_Field): New method getClass.
5779 * jni.cc: Wrote many new functions.
5780 * include/jni.h (JNI_TRUE): Define.
5781 (JNI_FALSE): Likewise.
5782 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5783 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5784 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5785 (jfieldID, jmethodID): Likewise.
5786 (JNI_COMMIT, JNI_ABORT): New defines.
5787 (JNINativeMethod): New struct.
5788 (struct JNINativeInterface): Correctly declared more entries.
5789 (class _Jv_JNIEnv): Added `ex' member.
5790 (JNI_VERSION_1_1): New define.
5791 (JNI_VERSION_1_2): Likewise.
5793 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5794 getNextInstanceField.
5796 2000-01-20 Tom Tromey <tromey@cygnus.com>
5798 * resolve.cc (StringClass): Removed.
5799 * defineclass.cc (StringClass): Removed.
5801 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5805 2000-01-19 Tom Tromey <tromey@cygnus.com>
5807 * interpret.cc (PC_REGISTER_ASM): Removed.
5809 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5810 From Bryce McKinlay.
5812 * All files: Updated copyright to reflect Cygnus purchase.
5814 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5816 * configure: Rebuilt.
5817 * configure.in: Recognize --disable-interpreter.
5819 2000-01-18 Andrew Haley <aph@cygnus.com>
5821 * name-finder.cc (lookup): Check for dladdr function.
5822 acconfig.h (HAVE_DLADDR): Add.
5823 configure.in: Check for HAVE_DLADDR
5825 include/config.h.in: Rebuilt.
5827 2000-01-17 Andrew Haley <aph@cygnus.com>
5829 * prims.cc (_Jv_RunMain): Set the name of this executable.
5831 2000-01-17 Tom Tromey <tromey@cygnus.com>
5833 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5834 when backtrace can't be computed.
5836 * configure: Rebuilt.
5837 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5839 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5840 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5841 (_Jv_FindClassInCache): Likewise.
5842 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5843 (findSystemClass): Try to load class from compiled module.
5845 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5846 (loadLibrary): Likewise.
5847 (lt_preloaded_symbols): Define.
5848 (loadLibraryInternal): New method.
5849 * include/config.h.in: Rebuilt.
5850 * acconfig.h (USE_LTDL): Added.
5851 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5852 (INCLUDES): Added $(INCLTDL).
5853 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5854 (libgcj_la_LIBADD): Likewise.
5855 * aclocal.m4, configure: Rebuilt.
5856 * configure.in: Added libltdl support.
5858 2000-01-15 Tom Tromey <tromey@cygnus.com>
5860 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5862 2000-01-14 Andrew Haley <aph@cygnus.com>
5864 * java/lang/natThrowable.cc: New file.
5866 * java/lang/Throwable.java (fillInStackTrace): Make native.
5867 (printStackTrace): Call native method to do this.
5868 (Throwable): Call fillInStackTrace.
5869 (stackTrace): New variable.
5871 * include/jvm.h: Add _Jv_ThisExecutable functions.
5873 * prims.cc: (_Jv_execName): New variable.
5874 (catch_segv): Call fillInStackTrace.
5876 (_Jv_ThisExecutable): New functions.
5877 (JvRunMain): Set the name of this executable.
5879 * Makefile.am: Add java/lang/natThrowable.cc.
5881 * Makefile.in: Rebuilt.
5883 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5885 * configure.in: Force link with __frame_state_for in
5886 FORCELIBGCCSPEC. Add new checks for backtrace.
5887 * include/config.h.in: Rebuilt.
5889 * name-finder.cc: New file.
5890 * include/name-finder.h: New file.
5892 2000-01-16 Anthony Green <green@cygnus.com>
5894 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5897 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5899 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5901 2000-01-13 Tom Tromey <tromey@cygnus.com>
5903 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5904 not system loader, as initiating loader.
5906 2000-01-11 Tom Tromey <tromey@cygnus.com>
5908 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5909 HP/UX. From David Scott Urban.
5911 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5913 * java/lang/natMath.cc (pow): Cast args to `double', not
5916 (IEEEremainder): Likewise.
5917 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5918 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5920 2000-01-09 Anthony Green <green@cygnus.com>
5922 * java/lang/natString.cc (init): Test for overflow condition
5923 during out of bounds check.
5924 (getChars): Throw StringIndexOutOfBoundsException, not
5925 ArrayIndexOutOfBoundsException.
5927 (regionMatches): Obey case option during string comparison.
5929 * configure.host (ligcj_interpreter): New variable. Enable
5930 interpreter by default on IA-32.
5931 * configure.in: Examine libgcj_interpreter.
5932 * configure: Rebuilt.
5934 2000-01-07 Tom Tromey <tromey@cygnus.com>
5936 * mauve-libgcj: Don't disable ClassTest.
5938 * java/lang/natClass.cc (getClasses): Wrote.
5940 2000-01-06 Tom Tromey <tromey@cygnus.com>
5942 * java/lang/natClass.cc (_getConstructors): Correctly check
5943 whether method name is the init name.
5944 (getMethod): Look at accflags on method in `klass', not `this'.
5946 2000-01-05 Tom Tromey <tromey@cygnus.com>
5948 * java/lang/natClass.cc (getMethod): Compute offset relative to
5949 `klass's methods table, not `this's table.
5951 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5952 In unwrapping/widening case, check whether `k' is null, not
5953 whether it is primitive. Initialize `num' from `argelts', not
5954 `paramelts'. Correct create and pass arguments to ffi_call.
5955 Don't let presence of `this' argument affect index used to look in
5957 (COPY): Set appropriate element in `values' vector.
5959 * java/lang/natClass.cc: Include <gcj/method.h>.
5961 * java/lang/Class.h (_getMethods): Correctly declare as private,
5964 * java/lang/Class.h (_getMethods): Declare.
5965 * java/lang/Class.java (_getMethods): Declare.
5966 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5967 (getDeclaredClasses): Always return empty array.
5968 (_getMethods): New method.
5969 (getMethods): Wrote.
5970 (getDeclaredMethod): Return `rmethod'.
5971 (finit_name): New global.
5972 (getDeclaredMethods): Check for finit_name.
5973 (_getMethods): Likewise.
5974 (getMethod): Only return public methods.
5976 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5977 jboolean and select correct ffi type on that basis.
5978 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5979 Constructor call always has `void' return type.
5981 2000-01-04 Tom Tromey <tromey@cygnus.com>
5983 * java/lang/Class.h (getSignature): Updated.
5984 * java/lang/Class.java (getSignature): Updated.
5985 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5987 (getConstructor): Ensure constructor is public.
5988 (_getConstructors): Check for public-ness of constructor when
5989 `declared' is false, not when it is true.
5991 2000-01-04 Warren Levy <warrenl@cygnus.com>
5993 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5995 (receive): Set the sender's address in the DatagramPacket.
5997 2000-01-04 Tom Tromey <tromey@cygnus.com>
5999 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6000 declaring class as return_type argument to
6001 _Jv_CallNonvirtualMethodA.
6002 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6003 constructor case, create object and use it as `this' argument.
6004 * java/lang/Class.h (_getConstructors): Declare.
6005 (_getFields): Declare.
6006 * java/lang/Class.java (getConstructors): Wrote.
6007 (_getConstructors): New native method.
6008 (getDeclaredConstructors): Wrote.
6009 (_getFields): Declare new native method.
6010 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6012 (getMethod): Work correctly when class is primitive.
6013 (getDeclaredMethods): Likewise. Compute offset using `method',
6015 (getDeclaredMethod): Likewise.
6016 (getConstructor): Wrote.
6017 (ConstructorClass): New define.
6018 (getDeclaredConstructor): Wrote.
6019 (_getConstructors): New method.
6020 (_getFields): New method.
6023 * Makefile.in: Rebuilt.
6024 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6026 * prims.cc: Remove `#pragma implementation'.
6027 * gcj/array.h: Remove `#pragma interface'.
6029 * prims.cc (_Jv_equaln): New function.
6030 * java/lang/Class.java (getSignature): Declare.
6031 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6032 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6034 (getSignature): New method.
6035 (getDeclaredMethod): Wrote.
6037 Include StringBuffer.h.
6038 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6039 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6041 (getSignature): Declare.
6042 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6043 (_Jv_equaln): Declare.
6044 (_Jv_CallNonvirtualMethodA): Declare.
6045 * Makefile.in: Rebuilt.
6046 * Makefile.am (nat_source_files): Added natConstructor.cc.
6047 (java/lang/reflect/Constructor.h): New target.
6048 * java/lang/reflect/natConstructor.cc: New file.
6049 * java/lang/reflect/Constructor.java (newInstance): Now native.
6050 (declaringClass): Renamed from decl_class.
6051 (offset): Renamed from index.
6052 (getType): New native method.
6053 (getModifiers): Now native.
6054 (getParameterTypes): Call getType if required.
6055 (hashCode): Include hash code from declaring class.
6056 (modifiers): Removed.
6057 (toString): Call getType if required.
6058 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6059 * java/lang/reflect/natMethod.cc (hack_call): New method.
6060 Removed `#if 0' around FFI code.
6061 Include <gnu/gcj/RawData.h>.
6062 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6063 IllegalArgumentException when argument object and class disagree.
6064 (_Jv_GetTypesFromSignature): New function.
6066 (ObjectClass): New define.
6067 (_Jv_CallNonvirtualMethodA): New function.
6068 * java/lang/reflect/Method.java (hack_trampoline): New method.
6069 (hack_call): New native method.