1 2001-03-30 Tom Tromey <tromey@redhat.com>
3 * jni.cc (add_char): Correctly encode non-ascii characters.
4 (add_char): Define even when INTERPRETER not defined.
5 (mangled_name): Likewise.
6 (_Jv_GetJNIEnvNewFrame): Likewise.
7 (_Jv_LookupJNIMethod): Likewise.
9 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
11 * configure.host: Enable interpreter for PPC.
13 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
15 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
16 to "file.separator", "path.separator", and "java.io.tmpdir" property
18 * java/io/File.java: Likewise.
19 * java/io/natFile.cc (init_native): Likewise.
20 * java/io/natFileWin32.cc (init_native): Likewise.
22 2001-04-01 Per Bothner <per@bothner.com>
24 * java/lang/natString.cc (intern): If string's data does not point to
25 this String, make a fresh String that does.
27 * java/lang/natString.cc (unintern): Replace by static function.
28 * java/lang/String.java (unintern): Remove method.
30 2001-04-01 Per Bothner <per@bothner.com>
32 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
33 (finish): def.deflate needs to be called in a loop.
34 (inbuf, inbufLength): New private fields.
35 (write(int)): Use inbuf.
36 (write(byte[],int,int): Check if pending output in inbuf.
37 * ZipOutputStream.java: Don't use Deflater if stored.
38 Use a Checksum object directly, not via a CheckedOutputStream.
39 (uncompressed_size): New field,
40 (closeEntry): Only write data_directory if needed.
41 (write): If STORED, write directly.
42 Always update crc, and uncompressed_size.
43 (write_entry): Fix lots of protocol erors.
45 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
47 1.3-Compliant Implementation of java.io.File.
48 * java/lang/natSystem.cc (init_properties): Get "file.separator",
49 "path.separator", and "java.io.tmpdir" from the File class, instead
50 of setting them explicitly.
51 * java/io/File.java: Do not canonicalize paths for security manager
52 checks. Call init_native() from static initializer. Do not pass path
53 argument to native methods. New native method declarations. Some
54 security manager checks moved to checkWrite().
55 (equals): Check file system case sensitivity and act appropriatly.
57 (isHidden): New method implemented.
58 (performList): Changed prototype. Now takes a class argument specifying
59 the class of the returned array: Strings or File objects. Also added
61 (listFiles): New variants with "File" return type implemented.
62 (createTempFile): Use createNewFile(). Use maxPathLen.
63 (setReadOnly): New method implemented.
64 (listRoots): Likewise.
65 (compareTo): Likewise.
66 (setLastModified): Likewise.
67 (checkWrite): New method.
69 * java/io/natFile.cc: Various functions no longer take canonical path
71 (stat): Handle ISHIDDEN query.
72 (isAbsolute): Remove WIN32 cruft.
73 (performList): New arguments. Handle returning either File[] or String[]
74 arrays. Check with FileFilter or FilenameFilter arguments as
75 appropriate. Use an ArrayList, not a Vector, for the temporary list.
76 (performSetReadOnly): New method implemented.
77 (performListRoots): Likewise.
78 (performSetLastModified): Likewise.
79 (performCreate): Likewise.
80 (init_native): New initialization function.
81 * java/io/natFileWin32.cc: Various functions no longer take canonical
83 (stat): Add FIXME about ISHIDDEN query.
84 (performList): New arguments. Handle returning either File[] or String[]
85 arrays. Check with FileFilter or FilenameFilter arguments as
86 appropriate. Use an ArrayList, not a Vector, for the temporary list.
87 (performSetReadOnly): New. Stubbed.
88 (performListRoots): Likewise.
89 (performSetLastModified): Likewise.
90 (performCreate): Likewise.
91 (init_native) New initialization function.
92 * configure.in: Check for utime() and chmod().
94 * include/config.h.in: Rebuilt.
96 Resolves PR libgcj/1759.
98 2001-03-28 Richard Henderson <rth@redhat.com>
100 IA-64 ABI Exception Handling:
101 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
102 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
103 Remove EXCEPTIONSPEC.
104 * configure.host (libgcj_sjlj): Remove.
105 * configure.in (EXCEPTIONSPEC): Remove.
106 (enable-sjlj-exceptions): Detect if not specified.
107 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
108 what header we're looking for.
109 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
110 * Makefile.in, configure: Regenerate.
111 * exception.cc: Don't declare libgcc2 stuff.
112 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
113 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
114 (win32_get_restart_frame): Remove.
115 (struct java_exception_header): New.
116 (__gcj_exception_class): New.
117 (get_exception_header_from_ue): New.
118 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
119 (size_of_encoded_value, read_encoded_value): New.
120 (read_uleb128, read_sleb128, parse_lsda_header): New.
121 (get_ttype_entry, __gcj_personality_sj0): New.
122 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
124 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
126 * javax/naming/InitialContext.java (init): Fix typo.
127 (composeName): Remove unnecessary semicolon.
128 (addToEnvironment): Remove unnecessary semicolon.
129 (addToEnvironment): Use put() instead of add().
131 * javax/naming/InitialContext.java (InitialContext):
133 (destroySubcontext): Method doesn't return a result.
134 * javax/naming/Context.java: Import java.util.Hashtable.
135 * javax/naming/Name.java: Import java.util.Enumeration.
137 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
139 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
140 objects in subdirectories.
141 * Makefile.in: Rebuilt.
143 2001-03-25 Richard Henderson <rth@redhat.com>
145 * exception.cc (java_eh_info): Make value type jthrowable.
146 (_Jv_type_matcher): Remove now unneeded cast.
147 (_Jv_Throw): Make argument type jthrowable. Munge name
148 for SJLJ_EXCEPTIONS here ...
149 * gcj/cni.h: ... not here.
151 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
153 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
154 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
155 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
156 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
157 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
158 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
159 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
160 java/lang/natClass.cc, java/lang/natClassLoader.cc,
161 java/lang/natDouble.cc, java/lang/natObject.cc,
162 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
163 java/lang/natString.cc, java/lang/natSystem.cc,
164 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
165 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
166 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
167 java/util/zip/natInflater.cc:
168 Use throw, not JvThrow or _Jv_Throw.
170 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
172 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
173 paramater, bump it to 1.
174 * java/util/Hashtable.java (Hashtable): Likewise.
176 2001-03-23 Per Bothner <per@bothner.com>
178 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
179 check for errors, since we don't want to throw exception on
180 overflow/underflow. Instead, trim whitespace, and then check that
181 _strtod_r uses up all the rest of the string.
183 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
184 ancestors array is invalid for interfaces, so do that *after*
185 check that the target type is not an interface.
187 2000-03-23 Jeff Sturm <jsturm@one-point.com>
189 * prims.cc (_Jv_FindClassFromSignature): Check return of
190 recursive call. Do not abort on invalid signature; return NULL
193 2001-03-22 Tom Tromey <tromey@redhat.com>
195 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
196 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
198 * include/jvm.h (_Jv_ResolveField): Declare.
199 * include/java-interp.h (_Jv_ResolveField): Don't declare.
200 * resolve.cc (_Jv_ResolveField): No longer conditional on
203 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
205 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
207 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
208 to a temporary file, then invoke libtool with the -objectlist
210 (libgcjx.la): Likewise.
211 * Makefile.in: Rebuilt.
213 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
215 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
217 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
219 * jni.cc (add_char): Handle `.' like `/'.
221 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
223 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
224 initialize if exception_types is null.
225 * java/lang/reflect/Constructor.java: Likewise.
226 * java/lang/reflect/natConstructor.cc (getType): Initialize
227 exception_types to an empty Object array.
229 2001-03-21 Tom Tromey <tromey@redhat.com>
231 * configure: Rebuilt.
232 * configure.in (GCJFLAGS): Subst.
233 * Makefile.in: Rebuilt.
234 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
235 (gij_LDFLAGS): Likewise.
236 (JC1FLAGS): Added GCJFLAGS and removed -g.
238 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
239 read/write case. Fixes PR libgcj/2338.
241 2001-03-20 Warren Levy <warrenl@redhat.com>
243 * java/util/TimeZone.java: Sync up with Classpath. Includes new
244 and corrected SimpleTimeZone's for the timezones hash table.
246 2001-03-19 Per Bothner <per@bothner.com>
248 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
249 "canonicalize" "../../xxx" to "/xxx".
251 2001-03-19 Mark Wielaard <mark@klomp.org>
253 * java/util/ArrayList.java: Remove RCS keywords from comments
254 * java/util/BasicMapEntry.java: idem
255 * java/util/Dictionary.java: idem
256 * java/util/HashSet.java: idem
258 * java/util/EventObject.java: reindent
259 * java/util/Properties.java: idem
260 * java/util/SortedMap.java: idem
262 * java/util/Enumeration.java: Merge with Classpath
263 * java/util/EventListener.java: idem
264 * java/util/Observable.java: idem
265 * java/util/Observer.java: idem
266 * java/util/Stack.java: idem
268 2001-03-17 Tom Tromey <tromey@redhat.com>
270 * java/lang/natString.cc (rehash): Don't bother with memset;
271 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
273 (UNMASK_PTR): New macro.
274 (intern): Unmask pointer before returning it. Register finalizer
276 (unintern): Handle case where
277 (MASK_PTR): New macro.
278 (PTR_MAKSED): Likewise.
279 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
281 2001-03-01 Andrew Haley <aph@redhat.com>
283 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
284 stackTrace buffer to a correctly aligned pointer array.
286 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
288 * java/lang/Runtime.java (_exit): Declare new package-private native.
289 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
290 without a security manager check.
291 (exit): Call _exit after security check.
292 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
294 * java/lang/System.java (setSecurityManager): If a security manager
295 is already in place, call checkPermission.
296 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
297 throws an exception, try to deal with it gracefully.
298 * java/lang/ExceptionInInitializerError.java (printStackTrace):
299 Only try to print the subordinate stack trace if "exception" is set.
300 Print our class name first.
302 2001-03-08 Tom Tromey <tromey@redhat.com>
304 * java/io/ObjectStreamClass.java (setUID): Don't write interface
305 info for array classes.
306 Fixes PR libgcj/1971.
308 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
310 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
313 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
315 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
316 instead of the new JDK1.2 API. This is simpler and makes
317 back-porting the classes to JDK1.1 trivial.
318 (readObject): likewise.
320 2001-03-01 Per Bothner <per@bothner.com>
322 Changes merged from Kawa's gnu.math.
323 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
324 (rshift(int[],int[],int,int): Removed - not needed.
325 (gcd): Use rshift0 rather than rshift.
326 * java/math/BigInteger.java (setShiftRight): Likewise.
327 (divide): Simplify by using rshift0.
328 (divide): Zero-extend results if high-order bit set.
330 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
332 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
335 2001-02-23 Per Bothner <per@bothner.com>
337 Change to sometimes include class name in ClassFormatError message.
338 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
339 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
340 boolean instead of throwing ClassFormatError on failure.
341 (throw_class_format_error): Change static function to method.
342 (_Jv_ClassReader): New inline methods verify_identifier,
343 two overloads of verify_classname, verify_field_signature, and
344 verify_method_signature
345 * include/java-interp.h: Update declarations to return bool.
346 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
347 ClassFormatError since _Jv_VerifyClassName now returns bool.
349 2001-02-23 Per Bothner <per@bothner.com>
351 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
352 c++filt to select java-style output.
354 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
356 Fix for PR java/2040:
357 * java/util/HashMap.java (HashMap): Don't throw exception for
358 loadFactor > 1. Add exception messages.
359 * java/util/Hashtable.java (Hashtable): Likewise.
361 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
363 Disable libgcjx by default.
364 * configure.in: Add support for --enable-java-awt configure option.
365 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
366 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
367 * Makefile.in: Rebuilt.
368 * configure: Rebuilt.
370 2001-02-20 Tom Tromey <tromey@redhat.com>
372 * java/io/PipedWriter.java (flush): Throw exception if stream
374 * java/io/OutputStreamWriter.java (write): Throw exception if
376 (writeChars): Don't throw exception if stream closed.
377 * java/io/CharArrayWriter.java (closed): New field.
379 (flush): Throw exception if stream closed.
380 (reset): Synchronize on correct lock. Allow stream to be
382 (toCharArray, toString, writeTo): Synchronize.
383 (write): Throwe exception if stream closed.
384 * java/io/BufferedWriter.java (close): Clear `buffer'.
385 (flush): Throw IOException if stream is closed.
388 2001-02-16 Tom Tromey <tromey@cygnus.com>
390 * java/lang/ThreadGroup.java (activeCount): Only include threads
392 (enumerate): Likewise.
394 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
396 * java/lang/Integer.java (getInteger): Return default argument if
397 property is not set. Don't call decode with null argument.
398 * java/lang/Long.java (getLong): Likewise.
400 * java/io/CharArrayReader.java (CharArrayReader): Throw
401 IllegalArgumentException if constructor arguments are illegal.
402 (ready): Return false if no more characters can be read.
403 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
405 2001-02-17 Mark Wielaard <mark@klomp.org>
407 * java/util/TimerTask.java: New version from Classpath.
409 2001-02-17 Mark Wielaard <mark@klomp.org>
411 Remerge with Classpath
412 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
413 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
414 (readByte): Use convertToByte().
415 (readChar): Use convertToChar().
416 (readInt): Use convertToInt().
417 (readLong): Use convertToLong().
418 (readShort): Use convertToShort().
419 (readUnsignedByte): Use convertToUnsignedByte().
420 (readUnsignedShort): Use convertToUnsignedShort().
421 (readUTF): Use convertToUTF().
423 (convertToBoolean): Resurrected.
424 (convertToByte): Ditto.
425 (convertToChar): Ditto.
426 (convertToInt): Ditto.
427 (convertToLong): Ditto.
428 (convertToShort): Ditto.
429 (convertToUnsignedByte): Ditto.
430 (convertToUnsignedShort): Ditto.
431 (convertToUTF): Ditto.
433 2001-02-17 Mark Wielaard <mark@klomp.org>
437 2001-02-17 Mark Wielaard <mark@klomp.org>
439 * java/io/DataInputStream.java: update copyright notice
440 * java/io/PrintWriter.java: idem
441 * java/io/Reader.java: idem
442 * java/io/StreamTokenizer.java: idem
443 * java/io/StringReader.java: idem
444 * java/lang/reflect/ReflectPermission.java: idem
446 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
448 * java/util/TreeSet.java (clone): Made subclass safe, use
449 super.clone(), not new.
450 * java/util/TreeMap.java (clone): Likewise.
452 * java/util/TreeMap.java (nil): Made non-final.
453 (clone): Create new nil node for copy.
455 * java/util/HashSet.java (clone): Made subclass safe, use
456 super.clone(), not new.
458 2001-02-14 Andrew Haley <aph@redhat.com>
460 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
463 2001-02-15 Anthony Green <green@redhat.com>
465 * defineclass.cc: Don't include alloca.h.
466 (prepare_pool_entry): Convert alloca to __builtin_alloca.
467 * interpret.cc (run_normal): Ditto.
469 * java/lang/natDouble.cc (parseDouble): Ditto.
471 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
473 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
475 * java/util/Collections.java (ReverseComparator): New static class.
476 (reverseOrder): Return static instance of ReverseComparator.
478 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
479 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
480 Rectangle.clone(), not Object.clone().
482 * java/util/HashSet.java (clone): Remove try/catch.
484 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
485 * java/util/Collection.java: Likewise.
486 * java/util/Comparator.java: Likewise.
487 * java/util/Dictionary.java: Likewise.
488 * java/util/Iterator.java: Likewise.
489 * java/util/ListIterator.java: Likewise.
490 * java/util/Map.java: Likewise.
491 * java/util/Set.java: Likewise.
493 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
495 * java/util/TreeMap.java: New file.
496 * java/util/TreeSet.java: New file.
497 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
498 * Makefile.in: Rebuilt.
499 * java/util/HashSet.java (clone): Use constructor instead of calling
501 * java/util/SortedSet.java: Sync with classpath.
502 * java/util/HashMap.java (hash): Use if statement instead of ternary,
505 * java/lang/natClass.cc (getSignature): Don't try to dereference
506 param_types if it is null. Instead, take this to mean "no parameters".
507 * java/lang/TreeMap.java (TreeIterator.next): Throw
508 NoSuchElementException in preference to ConcurrentModificationException.
509 (TreeIterator.remove): Throw IllegalStateException in preference to
510 ConcurrentModificationException.
511 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
512 throw a NoSuchElementException.
513 (SubMap.lastKey): Likewise.
515 2001-02-13 Tom Tromey <tromey@redhat.com>
517 * java/io/PipedReader.java (ready): Throw IOException if pipe
519 * java/io/FilterReader.java (close): Don't clear `in'.
520 * java/io/CharArrayReader.java (mark): Throw IOException if stream
522 (read, ready, reset, skip): Added exception message.
523 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
524 Perform checkStatus check inside synchronized block.
526 2001-02-13 Tom Tromey <tromey@redhat.com>
528 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
530 2001-02-13 Tom Tromey <tromey@redhat.com>
532 Fix for PR libgcj/1351:
533 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
535 Include Thread.h and InterruptedIOException.h.
537 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
539 * java/io/BlockDataException.java: Removed.
540 * java/io/ObjectInputStream.java (readObject): Throw
541 StreamCorruptedException, not BlockDataException.
542 * Makefile.am: Remove BlockDataException.
543 * Makefile.in: Rebuild.
545 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
546 Tom Tromey <tromey@redhat.com>
548 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
551 2001-02-09 Tom Tromey <tromey@redhat.com>
553 * java/util/Timer.java: New version from Classpath.
555 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
557 * java/lang/Double.java (doubleToRawLongBits): Now native.
558 * java/lang/Float.java (floatToRawIntBits): Likewise.
559 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
560 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
562 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
564 * java/io/File.java (java.net): Imported.
565 (getAbsoluteFile): Added.
566 (getCanonicalPath): Likewise.
569 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
571 * java/lang/Byte.java: Remove redundant instanceof and null checks.
572 * java/lang/Integer.java: Likewise.
573 * java/lang/Long.java: Likewise.
574 * java/lang/Short.java: Likewise.
575 * java/lang/Double.java: Likewise.
576 (doubleToRawLongBits): New method.
577 * java/lang/Float.java: As above.
578 (floatToRawIntBits): New method.
580 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
581 IOException if stream closed.
583 2001-02-08 Tom Tromey <tromey@redhat.com>
585 * java/lang/Float.java (parseFloat): New method.
587 2001-02-08 Tom Tromey <tromey@redhat.com>
589 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
590 * java/io/InputStreamReader.java (ready, read): Throw IOException
591 if stream has been closed.
593 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
595 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
596 Change sources.redhat.com and sourceware.cygnus.com references to
599 2001-02-07 Tom Tromey <tromey@redhat.com>
601 Fix for PR libgcj/1906:
602 * java/text/MessageFormat.java (setLocale): Use named class
605 (format(Object,StringBuffer,FieldPosition)): Special case if
606 argument is an Object[].
608 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
610 * java/util/Arrays.java: Removed "cmp" methods.
611 (qsort): Don't use "cmp".
614 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
616 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
617 sort. Fix for PR java/1895.
619 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
621 * configure.host: Use sjlj-exceptions for Alpha.
623 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
625 * libgcj.spec.in: Don't force static libgcc into the executable.
626 * configure.in (FORCELIBGCCSPEC): Removed.
627 * configure: Rebuilt.
629 2001-01-31 Tom Tromey <tromey@redhat.com>
631 * Makefile.in: Rebuilt.
632 * Makefile.am (LTCXXCOMPILE): New macro.
634 2001-01-26 Andrew Haley <aph@redhat.com>
636 (INIT_FPE): Use a direct system call to set the handler.
638 2001-01-27 Richard Henderson <rth@redhat.com>
640 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
642 2001-01-27 Tom Tromey <tromey@redhat.com>
644 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
645 native interface structure.
647 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
649 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
651 (read (byte[], int, int)): Only call readNextBlock() if the block
652 buffer would actually be overrun. Increment blockDataPosition.
653 (callReadMethod): Propagate exceptions from invocation target.
654 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
655 exceptions from invocation target.
657 2001-01-26 Tom Tromey <tromey@redhat.com>
659 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
660 to internal representation.
661 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
662 _Jv_FindClassFromSignature.
664 2001-01-26 Warren Levy <warrenl@redhat.com>
666 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
667 and timezone if they are available on the system.
669 2001-01-24 Tom Tromey <tromey@redhat.com>
671 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
673 2001-01-24 Tom Tromey <tromey@redhat.com>
675 * Makefile.in: Rebuilt.
676 * Makefile.am (c_source_files): Added sf_fabs.c.
677 * java/lang/sf_fabs.c: New file.
679 2001-01-19 Warren Levy <warrenl@redhat.com>
681 * java/text/SimpleDateFormat.java (format): Compute hour for cases
682 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
683 correctly. Adjust properly from 0-23 clock hour.
685 2001-01-17 Mark Wielaard <mark@klomp.org>
687 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
689 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
691 * java/lang/Class.h (isInterface): Move implementation from
692 natClass.cc. Declare inline.
693 (Class): Add default constructor.
694 * java/lang/Object.h: Update comments.
695 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
696 initialize superclass, saving a call if super is already initialized.
698 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
700 * prims.cc (init_prim_class): Deleted.
701 (DECLARE_PRIM_TYPE): Rewritten.
702 * java/lang/Class.h (stdio.h): Include removed.
703 (stddef.h): Included.
704 (java/lang/reflect/Modifier.h): Likewise.
705 (Class): Contructor now takes arguments, initializes fields.
706 (initializePrim): Prototype deleted.
707 * java/lang/natClass.cc (initializePrim): Deleted.
709 2001-01-16 Warren Levy <warrenl@redhat.com>
711 * java/math/BigInteger.java: Update Copyright year.
713 2001-01-16 Hans Boehm <hans_boehm@hp.com>
715 * java/math/BigInteger.java (setShiftRight): Only do negative shift
718 2001-01-14 Mark Wielaard <mark@klomp.org>
719 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
720 (decode): Merge comments with Classpath, don't throw Exception
722 2001-01-12 Tom Tromey <tromey@redhat.com>
724 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
728 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
729 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
730 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
731 * gnu/awt/gtk/GtkLabelPeer.java: New file.
732 * gnu/awt/gtk/GtkButtonPeer.java: New file.
734 * java/lang/natSystem.cc: Include locale.h if it exists.
735 * configure: Rebuilt.
736 * configure.in: Check for locale.h.
738 2001-01-11 Tom Tromey <tromey@redhat.com>
740 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
741 (Cursor(int), getPredefinedCursor): Throw exception if argument
744 2001-01-03 Tom Tromey <tromey@redhat.com>
746 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
747 (getLocationOnScreen): Wrote.
749 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
751 * Makefile.am: Re-enable dependencies.
752 * Makefile.in: Rebuilt.
754 2001-01-10 Warren Levy <warrenl@redhat.com>
756 * java/math/BigDecimal.java (divide): Fixed comment.
758 2001-01-10 Warren Levy <warrenl@redhat.com>
760 Fix for PR libgcj/1596:
761 * java/math/BigDecimal.java (divide): Check newScale for validity.
762 Ensure that BigInteger.pow() is called with a non-negative value.
763 (setScale (int)): New public method.
764 (setScale (int,int)): New public method.
766 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
768 Fix for PR libgcj/1338:
769 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
770 commentChar. Fixed typos in comments.
772 2001-01-08 Warren Levy <warrenl@redhat.com>
774 Fix for PR libgcj/1411:
775 * Makefile.am: Removed java/util/natTimeZone.cc.
776 * Makefile.in: Rebuilt.
777 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
778 missing localized timezone names.
779 * java/lang/System.java (getDefaultTimeZoneId): New private method.
780 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
781 (init_properties): Set user.timezone property.
782 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
783 default timezone names; removed non-standard ones. Use standard
785 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
787 * java/util/TimeZone.java: Add standard ID names per JCL; removed
789 (getDefaultTimeZoneId): Removed.
791 * java/util/natTimeZone.cc: Removed.
793 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
795 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
796 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
797 (_Jv_GetArrayClass): New inline function.
798 (arrayclass): New field.
799 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
800 _Jv_GetArrayElementFromElementType.
801 (_Jv_NewPrimArray): Ditto.
802 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
803 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
804 Set Modifier::ABSTRACT.
805 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
806 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
807 Now synchronized. Array classes are now referenced from
808 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
809 Set array classes' accessibility flags correctly. Optimize so that
810 all array classes share the same IDT.
811 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
812 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
813 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
814 in superclasses from overwriting classes own fields.
815 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
816 Modifier::isAbstract().
817 (null_idt): New static field.
818 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
820 (_Jv_IndexOf): Made inline.
821 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
823 2001-01-08 Tom Tromey <tromey@redhat.com>
825 Fix for PR java/1586:
826 * Makefile.in: Rebuilt.
827 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
829 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
831 * Makefile.am: Use the new "-M -MF" option for generating dependencies
832 from the c++ compiler.
833 * Makefile.in: Rebuilt.
835 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
837 All files with updated copyright.
838 * prims.cc (class _Jv_PrimClass): Removed.
839 (init_prim_class): New function.
840 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
841 `_Jv_PrimClass' in primitive type declarations. Assign to the
842 value returned by `init_prim_class.'
843 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
844 primitive type declarations.
845 (JvPrimClass): Cast to `jclass' removed.
846 * java/lang/Class.h (Class): New constructor.
847 (Class): New copy constructor.
848 (initializePrim): New prototype.
849 (_Jv_PrimClass): Field removed.
850 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
851 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
852 (class java::lang::Object): `finalize' moved up front.
853 * java/lang/natClass.cc
854 (isAssignableFrom): Turned outline.
855 (isInstance): Likewise.
856 (isInterface): Likewise, fixed indentation.
857 (initializePrim): New function.
859 2001-01-07 Anthony Green <green@redhat.com>
861 * Makefile.am (texinfo): Add texinfo target for generating texinfo
863 * Makefile.in: Rebuilt.
865 * scripts/TexinfoDoclet.java: New file.
867 * doc/java-applet.texi, doc/java-lang-reflect.texi,
868 doc/java-awt-color.texi, doc/java-lang.texi,
869 doc/java-awt-datatransfer.texi, doc/java-math.texi,
870 doc/java-awt-event.texi, doc/java-net.texi,
871 doc/java-awt-geom.texi, doc/java-security-spec.texi,
872 doc/java-awt-image.texi, doc/java-security.texi,
873 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
874 doc/java-text.texi, doc/java-beans-beancontext.texi,
875 doc/java-util-jar.texi, doc/java-beans.texi,
876 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
877 doc/java-lang-ref.texi: New files.
879 2001-01-07 Anthony Green <green@redhat.com>
881 * java/net/URLConnection.java (setDoOutput): URLConnection's may
882 be used for both input and output, so don't clear doInput.
884 * java/lang/StringBuffer.java: Fix comments.
886 2001-01-06 Anthony Green <green@redhat.com>
888 * java/beans/PropertyDescriptor.java: Fix comment.
889 * java/io/PushbackReader.java: Fix comment.
890 * java/io/ObjectStreamClass.java: Fix comment.
891 * java/io/DataInputStream.java: Fix comment.
892 * java/io/PipedInputStream.java: Fix comments.
893 * java/io/PipedReader.java: Fix comments.
894 * java/sql/DatabaseMetaData.java: Fix comments.
896 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
898 * java/io/PipedReader: Synchronize on "lock" instead of this.
900 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
902 * java/lang/Thread.java: Update comment.
904 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
905 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
906 * java/io/PipedReader: New implementation based on new
908 * java/io/PipedWriter: Updated to match new PipedReader.
910 2001-01-03 Tom Tromey <tromey@redhat.com>
912 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
913 (getViewportSize): Insets include scrollbar size.
914 (doLayout): Finished.
915 (getScrollPosition): Wrote.
916 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
918 2001-01-02 Tom Tromey <tromey@redhat.com>
920 * java/awt/ScrollPane.java: Wrote.
921 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
924 * java/awt/Panel.java (Panel()): Fixed.
926 * java/awt/Component.java (isShowing): Return false if no peer
927 exists, and true if component is visible and no parent exists.
928 (getLocationOnScreen): Wrote.
929 (getPreferredSize): Removed FIXME comment.
930 (getMinimumSize): Likewise.
931 (getAlignmentX, getAlignmentY): Wrote.
933 (requestFocus): Wrote.
934 (transferFocus): Wrote.
935 (findNextFocusComponent): New method.
938 (enableEvents): Call setEventMask on the peer.
940 * java/awt/Container.java (list): Use super.list() to print self.
941 (findNextFocusComponent): New method.
942 (setLayout): Call invalidate.
943 (findComponentAt): Wrote.
945 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
947 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
948 the correct versions of various linuxthreads functions get linked.
949 * Makefile.in: Rebuilt.
950 * java/lang/natThread.cc (finalize_native): New static function. Call
951 _Jv_ThreadDestroyData.
952 (initialize_native): Register finalizer for "data".
953 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
954 (_Jv_ThreadDestroyData): New prototype.
955 * include/win32-threads.h: Ditto.
956 * include/no-threads.h: Ditto.
957 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
958 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
959 move mutex and condition variable destroy code from:
960 (really_start): ...here.
961 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
962 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
963 (_Jv_ThreadDestroyData): Implemented.
964 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
965 (_Jv_AllocArray): Ditto.
967 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
969 * java/sql/DriverManager.java (getConnection): Don't set user/password
972 2000-12-27 Warren Levy <warrenl@redhat.com>
974 Fix for PR libgcj/1358:
975 * java/lang/System.java: Update Copyright date properly.
976 * java/util/Calendar.java: Fix typo in comment.
977 (set): Set 24-hour clock hour instead of 12-hour clock hour.
978 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
979 initialize times. Spec says to set H:M:S values to zero only if
981 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
982 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
983 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
984 timezones and GMT offsets, being careful to account for units of
985 milliseconds vs. seconds.
987 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
989 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
990 not be assigned to Object.
992 Fix for PR libgcj/1516:
993 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
995 (can_widen): Declared inline. Remove redundant checks for void
996 arguments and char->short conversion. Add special case for boolean
998 (ffi_type): Declared inline.
999 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1001 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1003 * java/sql/SQLWarning.java: Fixed typo in comment.
1005 2000-12-26 Tom Tromey <tromey@redhat.com>
1007 * java/awt/MenuItem.java (paramString): Now protected.
1009 * java/awt/MenuShortcut.java: Implements Serializable.
1011 * java/awt/MenuBar.java: Rewrote from scratch.
1013 * java/awt/MenuComponent.java (removeNotify): Wrote.
1014 Implements Serializable.
1016 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1019 * java/awt/CheckboxMenuItem.java: Wrote.
1021 2000-12-25 Tom Tromey <tromey@redhat.com>
1023 * java/awt/MenuContainer.java: Fixed typo.
1025 * Makefile.in: Rebuilt.
1026 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1027 * java/awt/SystemColor.java: New file.
1029 * java/awt/Color.java (rgba): Now package-private.
1031 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1033 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1036 * java/awt/MenuItem.java (addNotify): New method.
1037 (MenuItem(String,MenuShortcut)): New constructor.
1038 (setLabel): Notify peer of change.
1039 (setEnabled): Likewise.
1041 * java/awt/GridLayout.java (toString): New method.
1043 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1044 (FlowLayout): Check for LEADING and TRAILING.
1045 (setAlignment): Likewise.
1046 (layoutContainer): Handle component orientation.
1048 * java/awt/Component.java (orientatin): New field.
1049 (setComponentOrientation): Wrote.
1050 (getComponentOrientation): Wrote.
1052 * java/awt/Event.java (Event): Implements Serializable.
1053 (consumed): New field for serialization.
1054 * java/awt/Dimension.java (Dimension): Implements Serializable.
1055 * java/awt/Cursor.java (Cursor): Implements Serializable.
1056 * java/awt/Container.java (Container): No longer abstract.
1058 * java/awt/Choice.java: Wrote.
1059 * java/awt/Checkbox.java: Wrote.
1060 * java/awt/ItemSelectable.java: Documented.
1061 * java/awt/CheckboxGroup.java: Wrote.
1063 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1065 (getSize): Likewise.
1067 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1069 * java/io/FileDescriptor.java: Initialize fd to -1.
1070 Remove default constructor.
1072 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1074 * java/lang/mprec.h: Change C9X reference to refer to C99.
1076 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1078 * java/lang/Throwable.java (trace_enabled): New static field.
1079 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1080 trace_enabled not set.
1081 * prims.cc (main_init): Turn off trace_enabled while creating
1082 default exception objects.
1084 2000-12-21 Tom Tromey <tromey@redhat.com>
1086 * java/beans/PropertyChangeListener.java: Extends EventListener.
1087 * java/beans/VetoableChangeListener.java: Extends EventListener.
1089 * java/util/zip/Deflater.java (update, init): Now private.
1091 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1093 * java/util/BasicMapEntry.java: Re-added.
1094 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1095 (putAll): Test for BasicMapEntry.
1096 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1097 (putAll): Test for BasicMapEntry.
1098 Change references from `HashMap.Entry' to `Entry' in various places.
1099 * Makefile.am: Add BasicMapEntry.java.
1100 * Makefile.in: Rebuilt.
1102 2000-12-18 Warren Levy <warrenl@redhat.com>
1104 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1105 need to set timezone to a valid non-null value. Partial fix for
1108 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1110 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1112 * java/awt/Button.java (addNotify): Likewise.
1113 * java/awt/Label.java (addNotify): Likewise.
1114 * java/awt/Panel.java (addNotify): Likewise.
1115 * java/awt/Scrollbar.java (addNotify): Likewise.
1116 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1117 Remove redundant null checks.
1119 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1121 * COPYING: Update to current
1122 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1123 to 19yy as example year in copyright notice).
1125 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1127 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1128 end-of-stream if avail_in is 0.
1130 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1132 * java/util/ArrayList.java (data): Declare transient.
1133 (serialPersistantFields): Removed.
1134 (readObject): Use defaultReadObject(), not readFields().
1135 (writeObject): Use defaultWriteObject(), not writeFields().
1137 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1139 * java/util/Hashtable.java (put): Remove `last' variable.
1140 Link new entry to head of list.
1141 * java/util/HashMap.java (put): Ditto.
1143 2000-12-15 Tom Tromey <tromey@redhat.com>
1145 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1146 loader to Class.forName.
1148 2000-12-14 Tom Tromey <tromey@redhat.com>
1150 * java/util/ResourceBundle.java
1151 (getBundle(String,Locale,ClassLoader)): New method.
1152 (trySomeGetBundle): Added `loader' argument.
1153 (partialGetBundle): Likewise.
1155 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1156 maximumFractionDigits, maximumIntegerDigits,
1157 minimumFractionDigits, minimumIntegerDigits): Now
1160 * java/lang/Thread.java (checkAccess): Now final.
1162 * java/lang/RuntimePermission.java: Class now final.
1164 * java/io/StringWriter.java (StringWriter(int)): Now public.
1166 * java/io/SerializablePermission.java (legal_names): Now private.
1168 * java/lang/Character.java: Updated UnicodeBlock constants.
1169 * scripts/blocks.pl: Special case private use and surrogate
1172 2000-12-12 Tom Tromey <tromey@redhat.com>
1174 * Makefile.in: Rebuilt.
1175 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1177 (GCJCOMPILE): Use it.
1180 2000-12-11 Tom Tromey <tromey@redhat.com>
1182 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1183 New static final fields.
1185 * scripts/classes.pl (scan): Skip lines with leading `*'.
1186 Fix for PR libgcj/378.
1188 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1190 * configure.in: Remove check for -fuse-divide-subroutine.
1191 * configure: Rebuilt.
1193 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1195 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1197 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1199 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1200 Remove BasicMapEntry.java and Bucket.java.
1201 * Makefile.in: Rebuilt.
1202 * java/util/HashMap.java: Rewritten.
1203 * java/util/HashSet.java: Imported from classpath.
1204 * java/util/WeakHashMap.java: Imported from classpath.
1205 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1206 * java/util/Bucket.java: Deleted.
1207 * java/util/BasicMapEntry.java: Deleted.
1208 * java/util/Collections.java (search): Use a for-loop, not iterator
1210 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1211 of elements in source.
1212 (max): Use a for-loop.
1214 (reverse): Keep track of positions instead of using Iterator's
1215 nextIndex() and previousIndex().
1216 (shuffle(List)): Initialize defaultRandom if required using
1217 double-check thread safety idiom. Call two-argument shuffle method
1218 using defaultRandom.
1219 (defaultRandom): New field.
1220 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1221 using previousIndex() and nextIndex().
1222 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1223 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1224 * java/util/AbstractMap.java (toString): Use StringBuffer.
1225 * java/lang/ref/PhantomReference.java: Imported from classpath.
1226 * java/lang/ref/SoftReference.java: Ditto.
1227 * java/lang/ref/Reference.java: Ditto.
1228 * java/lang/ref/WeakReference.java: Ditto.
1229 * java/lang/ref/ReferenceQueue.java: Ditto.
1231 2000-12-10 Richard Henderson <rth@redhat.com>
1233 * configure.host: Recognize alpha*-*, not alphaev6-*.
1235 2000-12-09 Anthony Green <green@redhat.com>
1237 * configure.host: Enable interpreter for Alpha.
1239 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1241 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1242 (ZIP): Points at fastjar instead of zip.
1243 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1244 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1245 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1246 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1247 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1248 ($(x_java_source_files:.java=.class):): Likewise.
1249 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1251 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1252 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1253 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1254 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1255 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1256 gnu/gcj/runtime/VMClassLoader.h:,
1257 java/io/ObjectInputStream$$GetField.h:,
1258 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1259 (Makefile.in): Rebuilt.
1261 2000-12-08 Tom Tromey <tromey@redhat.com>
1264 * configure: Rebuilt.
1265 * configure.in: Use echo, not `:', to create .d files.
1267 2000-12-08 Warren Levy <warrenl@redhat.com>
1269 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1270 NullPointerException so proper check of offset can be done.
1272 2000-12-08 Warren Levy <warrenl@redhat.com>
1274 * java/io/FileInputStream.java (close): Check if the fd is valid.
1275 * java/io/RandomAccessFile.java (close): Ditto.
1276 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1277 * java/net/PlainSocketImpl.java (close): Ditto.
1279 2000-12-06 Tom Tromey <tromey@redhat.com>
1281 * java/awt/GridBagConstraints.java: Filled in values for static
1284 * java/util/BitSet.java: Updated copyright notice.
1286 * Makefile.in: Rebuilt.
1287 * Makefile.am (awt_java_source_files): Added new file.
1288 * java/awt/GridBagConstraints.java: New file.
1290 2000-12-05 Tom Tromey <tromey@redhat.com>
1292 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1293 Now package-private, not protected.
1294 * java/text/DateFormatSymbols.java (equals): Now private.
1295 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1296 * java/util/BitSet.java: Class no longer final.
1298 2000-12-04 Warren Levy <warrenl@redhat.com>
1300 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1301 out code dependent on compiler and library changes.
1303 2000-12-04 Warren Levy <warrenl@redhat.com>
1305 * java/io/FilePermission.java: Made class final per spec.
1306 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1307 method name to match spec (fixed typo).
1308 * java/util/LinkedList.java: Implements List.
1310 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1312 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1313 Edgar Villanueva <edgarvil@home.com>.
1315 2000-12-03 Tom Tromey <tromey@redhat.com>
1317 * java/awt/geom/Point2D.java: Added protected constructor.
1318 (equals): New method.
1319 (Float.setLocation(float,float)): New method.
1320 * java/awt/geom/Dimension2D.java: Added protected constructor.
1321 * java/awt/geom/AffineTransform.java: Made all constants public.
1322 (concatenate): Fixed typo in name.
1323 * java/awt/event/WindowAdapter.java: Class now abstract.
1324 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1325 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1328 * java/awt/AWTError.java: Extend Error, not
1329 IllegalStateException.
1331 * Makefile.in: Rebuilt.
1332 * Makefile.am (awt_java_source_files): Added new file.
1333 * java/awt/geom/RoundRectangle2D.java: New file.
1335 * Makefile.in: Rebuilt.
1336 * Makefile.am (awt_java_source_files): Added new file.
1337 * java/awt/FlowLayout.java: New file.
1339 * Makefile.in: Rebuilt.
1340 * Makefile.am (awt_java_source_files): Added new file.
1341 * java/awt/GridLayout.java: New file.
1343 2000-12-02 Tom Tromey <tromey@redhat.com>
1345 * Makefile.in: Rebuilt.
1346 * Makefile.am (awt_java_source_files): Added new files.
1347 * java/awt/CardLayout.java: New file.
1348 * java/awt/AWTPermission.java: New file.
1350 2000-12-01 Tom Tromey <tromey@redhat.com>
1352 * java/util/Vector.java (insertElementAt): Unconditionally
1353 increment elementCount.
1354 (removeRange): Clear unused slots in vector.
1356 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1358 * java/lang/natMath.cc: Declare fabsf() function.
1359 * java/lang/mprec.h: Don't include math.h.
1360 * java/lang/dtoa.c: Include string.h.
1361 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1364 From Adam Welc <welc@cs.purdue.edu>:
1365 * java/util/LinkedList.java (removeFirst): Update `first' field.
1366 Handle the last == first case.
1367 (removeLast): Update `last' field. Handle the last == first case.
1369 2000-12-01 Warren Levy <warrenl@cygnus.com>
1371 * Makefile.am: Added entries for new java.sql modules.
1372 * Makefile.in: Rebuilt.
1374 2000-12-01 Warren Levy <warrenl@cygnus.com>
1376 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1377 that aren't quite 1.2 compatible yet.
1379 2000-11-30 Warren Levy <warrenl@cygnus.com>
1381 * java/sql/Array.java: New file from classpath.
1382 * java/sql/BatchUpdateException.java: Ditto.
1383 * java/sql/Blob.java: Ditto.
1384 * java/sql/Clob.java: Ditto.
1385 * java/sql/Ref.java: Ditto.
1386 * java/sql/SQLData.java: Ditto.
1387 * java/sql/SQLInput.java: Ditto.
1388 * java/sql/SQLOutput.java: Ditto.
1389 * java/sql/Struct.java: Ditto.
1390 * java/sql/CallableStatement.java: Merged file from claspath.
1391 * java/sql/Connection.java: Ditto.
1392 * java/sql/DataTruncation.java: Ditto.
1393 * java/sql/DatabaseMetaData.java: Ditto.
1394 * java/sql/DriverManager.java: Ditto.
1395 * java/sql/PreparedStatement.java: Ditto.
1396 * java/sql/ResultSet.java: Ditto.
1397 * java/sql/ResultSetMetaData.java: Ditto.
1398 * java/sql/SQLException.java: Ditto.
1399 * java/sql/SQLWarning.java: Ditto.
1400 * java/sql/Statement.java: Ditto.
1401 * java/sql/Types.java: Ditto.
1403 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1405 * java/lang/natSystem.cc (init_properties): Set user.language and
1407 * configure.in: Check for setlocale.
1408 * configure: Rebuilt.
1409 * include/config.h.in: Rebuilt.
1411 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1412 the infate() call didn't deliver any output. Throw a ZipException if
1413 the needsDictionary() call returns true.
1414 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1415 * java/io/InputStreamReader: Use the default buffer size for the
1416 contained BufferedInputStream.
1418 2000-11-28 Warren Levy <warrenl@cygnus.com>
1420 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1421 more time zone entries.
1422 * java/text/SimpleDateFormat.java (format): Added case for
1425 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1427 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1428 directly rather than read() in all cases. Make primitive read
1429 implementations more efficient, as defined in JDK online docs.
1430 (skipBytes): Behave like the JDK's implementation.
1431 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1432 closed stream with checkStatus() whenever an IOException can be
1434 (checkStatus): New private method.
1436 2000-11-27 Warren Levy <warrenl@cygnus.com>
1438 * Makefile.am: Added natTimeZone.cc.
1439 * Makefile.in: Rebuilt.
1440 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1441 * java/text/DateFormatSymbols.java (ampms): Made package private.
1442 (eras): Made package private.
1443 (months): Made package private.
1444 (shortMonths): Made package private.
1445 (shortWeekdays): Made package private.
1446 (weekdays): Made package private.
1447 (formatPrefixes): New private field.
1448 (localPatternCharsDefault): Made private.
1449 (dateFormats): New package private field.
1450 (timeFormats): New package private field.
1451 (formatsForKey): New private method.
1452 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1453 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1454 * java/text/SimpleDateFormat.java: Merged with Classpath.
1455 * java/util/TimeZone.java: Merged with Classpath.
1456 * java/util/natTimeZone.cc: New file.
1458 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1460 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1461 (addElement): Don't increment elementCount twice. Doh.
1462 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1463 array needs to be expanded.
1465 * java/util/Collections.java (UnmodifiableCollection): Implement
1467 (UnmodifiableList): Throw UnsupportedOperationException from
1468 modification methods. Set `l' from the one-parameter constructor.
1469 (UnmodifiableMap): Implement toString().
1470 (SynchronizedCollection): Ditto.
1471 (SynchronizedList): Set `l' from the one-parameter constructor.
1472 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1473 (SynchronizedMap): Implement toString().
1475 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1477 * javax/naming/NameParser.java,
1478 javax/naming/directory/AttributeInUseException.java,
1479 javax/naming/directory/AttributeModificationException.java,
1480 javax/naming/directory/InvalidAttributeIdentifierException.java,
1481 javax/naming/directory/InvalidAttributesException.java,
1482 javax/naming/directory/InvalidAttributeValueException.java,
1483 javax/naming/directory/InvalidSearchControlsException.java,
1484 javax/naming/directory/InvalidSearchFilterException.java,
1485 javax/naming/directory/NoSuchAttributeException.java,
1486 javax/naming/directory/SchemaViolationException.java: New files.
1488 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1490 * javax/naming/InitialContext.java (rebind): Implement.
1491 (unbind): Implement.
1492 (rename): Implement.
1494 (listBindings): Implement.
1495 (destroySubcontext): Implement.
1496 (createSubcontext): Implement.
1497 (lookupLink): Implement.
1498 (getNameParser): Implement.
1499 (composeName): Implement.
1500 (addToEnvironment): Implement.
1502 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1504 * javax/naming/AuthenticationException.java,
1505 javax/naming/AuthenticationNotSupportedException.java,
1506 javax/naming/CannotProceedException.java,
1507 javax/naming/CommunicationException.java,
1508 javax/naming/ConfigurationException.java,
1509 javax/naming/ContextNotEmptyException.java,
1510 javax/naming/InsufficientResourcesException.java,
1511 javax/naming/InterruptedNamingException.java,
1512 javax/naming/InvalidNameException.java,
1513 javax/naming/LimitExceededException.java,
1514 javax/naming/LinkException.java,
1515 javax/naming/LinkLoopException.java,
1516 javax/naming/MalformedLinkException.java,
1517 javax/naming/NameAlreadyBoundException.java,
1518 javax/naming/NameNotFoundException.java,
1519 javax/naming/NamingSecurityException.java,
1520 javax/naming/NoPermissionException.java,
1521 javax/naming/NotContextException.java,
1522 javax/naming/PartialResultException.java,
1523 javax/naming/ReferralException.java,
1524 javax/naming/ServiceUnavailableException.java,
1525 javax/naming/SizeLimitExceededException.java,
1526 javax/naming/TimeLimitExceededException.java: New files.
1528 * javax/naming/Name.java (clone): New method.
1529 (compareTo): New method.
1530 (isEmpty): New method.
1531 (getAll): New method.
1532 (getPrefix): New method.
1533 (getSuffix): New method.
1534 (startsWith): New method.
1535 (endsWith): New method.
1536 (addAll): New method.
1537 (addAll): New method.
1540 (remove): New method.
1542 * javax/naming/Context.java (lookup): New method.
1543 (rebind): New method.
1544 (unbind): New method.
1545 (rename): New method.
1547 (listBindings): New method.
1548 (destroySubcontext): New method.
1549 (createSubcontext): New method.
1550 (lookupLink): New method.
1551 (getNameParser): New method.
1552 (composeName): New method.
1553 (addToEnvironment): New method.
1554 (removeFromEnvironment): New method.
1555 (getEnvironment): New method.
1556 (close): New method.
1557 (getNameInNamespace): New method.
1559 * javax/naming/InitialContext.java (lookup): New method.
1560 (rebind): New method.
1561 (unbind): New method.
1562 (rename): New method.
1564 (listBindings): New method.
1565 (destroySubcontext): New method.
1566 (createSubcontext): New method.
1567 (lookupLink): New method.
1568 (getNameParser): New method.
1569 (composeName): New method.
1570 (addToEnvironment): New method.
1571 (removeFromEnvironment): New method.
1572 (getEnvironment): New method.
1573 (close): New method.
1574 (getNameInNamespace): New method.
1576 2000-11-26 Tom Tromey <tromey@cygnus.com>
1578 * Makefile.in: Rebuilt.
1579 * Makefile.am (core_java_source_files): Added
1580 RuntimePermission.java.
1581 * java/lang/RuntimePermission.java: Imported from Classpath.
1582 * java/lang/Thread.java (getContextClassLoader): Now
1583 synchronized. Added security code.
1584 (setContextClassLoader): Likewise.
1586 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1587 length field of array.
1588 (_Jv_NewPrimArray): Likewise.
1589 * gcj/array.h (__JArray): `length' field now const. Added
1592 2000-11-26 Anthony Green <green@redhat.com>
1594 * javax/naming/spi/NamingManager.java,
1595 javax/naming/spi/ObjectFactory.java,
1596 javax/naming/spi/InitialContextFactory.java,
1597 javax/naming/spi/InitialContextFactoryBuilder.java,
1598 javax/naming/RefAddr.java, javax/naming/Reference.java,
1599 javax/naming/NamingException.java, javax/naming/Context.java,
1600 javax/naming/Referenceable.java,
1601 javax/naming/directory/InitialDirContext.java,
1602 javax/naming/directory/DirContext.java,
1603 javax/naming/directory/Attributes.java,
1604 javax/naming/directory/Attribute.java,
1605 javax/naming/StringRefAddr.java,
1606 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1607 javax/naming/InitialContext.java,
1608 javax/naming/NoInitialContextException.java: New files.
1610 2000-11-25 Anthony Green <green@redhat.com>
1612 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1613 (_Jv_NewPrimArray): Likewise.
1614 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1615 (class JArray): Removed constructor.
1617 * java/lang/Thread.java (context_class_loader): New private data.
1618 (getContextClassLoader): New method.
1619 (setContextClassLoader): New method.
1620 (Thread): Initialize context_class_loader.
1622 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1623 (getResource): Rename to findResource.
1624 (findResource): New method. Used to be getResource.
1625 (getResourceAsStream): Deleted.
1626 (jarFileize): Extracted logic from URLClassLoader constructor into
1627 this new private method.
1628 (addURL): New protected method.
1629 (URLClassLoader): Call jarFileize. Use addElement instead of
1631 (findResources): New method.
1633 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1634 (getResource): Implement correct logic.
1635 (findResource): New method.
1636 (getResources): New method.
1637 (findClass): Create a ClassNotFoundException with the name of the
1638 class rather than nothing at all.
1639 (defineClass) Only throw ClassFormatError.
1641 * java/lang/Class.java (forName): New method.
1642 * java/lang/Class.h (forName): New method.
1643 * java/lang/natClass.cc (forName): New method.
1645 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1647 * java/lang/System.java (setProperties): Only call init_properties()
1648 if properties is null.
1649 (getProperties): Ditto.
1650 (getProperty): Ditto.
1651 (setProperty): Call init_properties if properties are null.
1652 (prop_init): Remove field.
1653 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1654 method. Check for null properties after synchronizing instead of
1655 prop_init flag. Set the properties field last for thread safety.
1657 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1658 test for gcj.dumpobjects property and enable object stream dumping
1660 (dumpElement): No longer native.
1661 (dumpElementln): Ditto.
1662 (setDump): Do not define.
1663 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1664 (dumpElementln): Removed.
1667 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1669 * configure: Rebuilt.
1670 * Makefile.in: Rebuilt.
1671 * Makefile.am (built_java_source_files): Add Configuration.java.
1672 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1673 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1674 Create `gnu' directory in the build tree.
1675 * gnu/classpath/Configuration.java.in: New file.
1677 2000-11-24 Tom Tromey <tromey@cygnus.com>
1679 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1681 (_Jv_NewPrimArray): Likewise.
1683 * gcj/array.h (__JArray): `length' field now const. Added
1685 (class JArray): Added constructor.
1687 2000-11-23 Mark Wielaard <mark@klomp.org>
1689 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1692 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1694 * java/util/Vector.java: Improve exception messages.
1695 (Vector): Check initialCapacity for IllegalArgumentException.
1696 (tromToSize): Don't check for elementCount == elementData.length
1698 (toArray): Don't try to set null marker if target array is the same
1699 length as the vector.
1701 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1703 * Makefile.in: Rebuilt.
1704 * Makefile.am (core_java_source_files): Added Collections.java.
1705 * java/util/List.java: Merged from classpath.
1706 * java/util/Vector.java: Ditto.
1707 * java/util/Collections.java: From classpath.
1708 * java/util/ArrayList.java (addAll(Collection)): Call
1709 addAll(int,Collection) instead of duplicating code.
1710 (indexOf): Clean up int initialization.
1711 (clear): Set cleared array entries to null, to allow garbage
1713 * java/util/List.java: Minor formatting fixes.
1714 * java/util/SimpleTimeZone.java: ditto.
1716 2000-11-18 Tom Tromey <tromey@cygnus.com>
1718 * Makefile.in: Rebuilt.
1719 * Makefile.am (core_java_source_files): Added new files.
1720 * java/lang/reflect/ReflectPermission.java: New class.
1721 * java/io/FileFilter.java: From Classpath
1722 * java/io/FilePermission.java: From Classpath.
1724 2000-11-17 Tom Tromey <tromey@cygnus.com>
1726 * java/lang/reflect/AccessibleObject.java (isAccessible,
1727 setAccessible): Now public.
1729 * java/lang/natString.cc: Include Locale.h.
1730 (toUpperCase): Added `locale' argument. Handle locale
1732 (toLowerCase): Added `locale' argument. Handle locale
1734 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1735 CAPITAL_I): New defines.
1736 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1739 (toUpperCase, toLowerCase): New methods. Variants which accept
1742 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1745 * java/util/PropertyPermission.java: Re-merged from Classpath.
1747 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1749 * java/text/StringCharacterIterator.java: Reindented.
1750 (setText): New method.
1752 2000-11-17 Mark Wielaard <mark@klomp.org>
1754 Merge with Classpath (changes by Bryce McKinlay)
1755 * java/util/jar/*.java: Reformat all to unofficial standard coding
1756 style. No changes of substance.
1758 2000-11-17 Mark Wielaard <mark@klomp.org>
1760 * java/util/zip/*.java: Javadoc updates.
1762 2000-11-17 Tom Tromey <tromey@cygnus.com>
1764 * java/text/CollationKey.java: Implement Comparable.
1765 (compareTo(Object)): New method.
1766 * java/text/Collator.java (compare(Object,Object)): New method.
1767 Implement Comparator.
1769 * java/util/zip/InflaterInputStream.java (available): New method.
1770 (close): New method.
1771 (read, available, skip, fill): Throw exception if stream closed.
1772 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1773 getNextEntry): Throw exception if closed.
1775 2000-11-16 Tom Tromey <tromey@cygnus.com>
1777 * java/io/PushbackReader.java: Merged with Classpath.
1778 * java/util/Arrays.java: Updated from Classpath.
1780 * scripts/blocks.pl: New file.
1781 * java/lang/Character.java (Subset): New class.
1782 (UnicodeBlock): New class.
1784 * java/lang/Math.java (toDegrees, toRadians): New methods.
1786 * java/lang/Float.java: Implement Comparable.
1787 (compareTo): New methods.
1788 * java/lang/Double.java: Implement Comparable.
1789 (compareTo): New methods.
1791 2000-11-16 Warren Levy <warrenl@cygnus.com>
1793 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1795 (listeners): Made transient.
1796 (source): Renamed from 'bean'.
1797 (children): New field for serialization.
1798 (propertyChangeSupportSerializedDataVersion): Ditto.
1799 (serialVersionUID): Ditto.
1800 (writeObject): New serialization method.
1801 (readObject): New serialization method.
1802 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1804 (listeners): Made transient.
1805 (source): Renamed from 'bean'.
1806 (children): New field for serialization.
1807 (vetoableChangeSupportSerializedDataVersion): Ditto.
1808 (serialVersionUID): Ditto.
1809 (writeObject): New serialization method.
1810 (readObject): New serialization method.
1811 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1812 to allow constructor to have a return type (i.e. the class that the
1813 constructor constructs).
1815 2000-11-14 Tom Tromey <tromey@cygnus.com>
1817 * Makefile.in: Rebuilt.
1818 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1821 2000-11-02 Warren Levy <warrenl@cygnus.com>
1823 * java/io/ObjectInputStream.java (readObject): Added code to
1824 conditionally dump out the serialized data.
1825 Handle ENDBLOCKDATA case a bit more gracefully since the current
1826 behavior doesn't seem to work as expected.
1827 (readStreamHeader): Added code for serialized data dumper.
1828 (readNextBlock): Ditto.
1829 (readFields): Ditto.
1830 (dump): New private static field for turning on/off dumper.
1831 (setDump): New native method.
1832 (dumpElement): New native method.
1833 (dumpElementln): New native method.
1834 * java/io/natObjectInputStream.cc (setDump): New method.
1835 (dumpElement): New method.
1836 (dumpElementln): New method.
1838 2000-11-02 Warren Levy <warrenl@cygnus.com>
1840 * java/net/InetAddress.java (addr): Renamed from 'address'.
1841 (address): New field to match Serialized Form doc.
1842 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1843 (family): New serialization field.
1844 (serialVersionUID): New field.
1845 (readObject): New method.
1846 (writeObject): New method.
1847 (getFamily): New native method.
1848 (InetAddress): Set family.
1849 * java/net/natInetAddress.cc (getFamily): New method.
1850 (addr): Renamed from 'address'.
1851 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1852 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1853 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1855 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1857 * java/util/AbstractList.java (SubList): Make it a top-level private
1859 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1861 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1862 * Makefile.in: Rebuilt.
1864 2000-11-02 Tom Tromey <tromey@cygnus.com>
1866 * Makefile.in: Rebuilt.
1867 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1870 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1872 * java/util/AbstractList.java (remove): Comment out modCount increment
1873 to work around compiler bug.
1876 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1878 * java/util/AbstractList.java: Throw messages with
1879 IndexOutOfBoundsExceptions.
1880 (listIterator()): Call listIterator(0).
1881 (size): New field. Initialize to size().
1882 (hasNext): Test position against size, not size().
1883 (remove): Increment knownMod by one instead of resetting it from
1886 (SubList.upMod): Removed.
1887 (SubList.set): Don't call upMod() or update knownMod.
1888 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1889 (SubList.remove): Ditto.
1890 (SubList.addAll): Don't call backingList.size(). Increment size from
1892 (SubList.iterator): New method. Call listIterator(0).
1893 (SubList.listIterator): New method. Restore code to return an anonymous
1894 listIterator implementation (with some changes).
1895 * java/util/AbstractSequentialList.java: Throw messages with
1896 IndexOutOfBoundsExceptions.
1897 (addAll): Add a specnote.
1898 * java/util/ArrayList.java (removeRange): Get the math right.
1899 (addAll): Increment modCount _before_ creating iterator.
1900 * java/util/LinkedList.java: Rewritten, mostly.
1902 2000-11-01 Tom Tromey <tromey@cygnus.com>
1904 * scripts/encodings.pl: Added `ASCII' alias.
1905 * Makefile.in: Rebuilt.
1906 * Makefile.am (convert_source_files): Added new files.
1907 * gnu/gcj/convert/Input_ASCII.java: New file.
1908 * gnu/gcj/convert/Output_ASCII.java: New file.
1909 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1910 out-of-range characters.
1911 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1912 (read): Swap bytes if required. Treat `count' as character count,
1914 (write): Likewise. Also, handle case where iconv fails on a given
1916 (init): Put encoding into exception.
1917 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1918 (static): Call iconv_init. Rebuilt alias list.
1919 (iconv_init): New private method.
1921 2000-11-01 Tom Tromey <tromey@cygnus.com>
1923 * Makefile.in: Rebuilt.
1924 * Makefile.am (install-exec-hook): Only make a single symlink, and
1925 remove the destination before making the link.
1926 * configure: Rebuilt.
1927 * configure.in: Call AC_PROG_LN_S.
1929 2000-10-31 Warren Levy <warrenl@cygnus.com>
1931 * jni.cc: Added include of java/lang/ThreadGroup.h.
1932 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1933 per change of 2000-10-05.
1935 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1937 * java/util/BitSet.java: Updated @specnote.
1939 * java/io/Reader.java: Merge docs from classpath.
1940 (skip): Synchronize on `lock'.
1941 * java/io/FileReader.java: Import correct implementation from
1943 * java/io/StringReader.java: Merge docs from classpath.
1944 (ready): Throw IOException if stream is closed.
1946 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1948 * java/util/AbstractCollection.java (addAll): Use size() instead of
1949 hasNext() in iterator loop.
1951 (contains): Ditto. Simplify loop.
1952 (containsAll): Ditto.
1957 (toString): Ditto. Use string concatenation operators, not
1959 * java/util/AbstractList.java (addAll): Use size() instead of
1960 hasNext() in iterator loop.
1963 (indexOf): Ditto. Don't take null check outside of the loop.
1964 (iterator): Return an AbstractListItr instead of anonymous class.
1965 (lastIndexOf): Use a for loop bounded by size() instead of
1966 hasPrevious() in iterator loop.
1967 (listIterator): Return an AbstractListItr.
1968 (removeRange): Remove bounds checking code and docs.
1969 (AbstractListItr): New inner class. Code moved here from
1971 (SubList.iterator): Removed. Use default implementation from
1972 AbstractList instead.
1973 (SubList.listIterator): As above.
1974 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1975 instead of hasNext() in iterator loop.
1976 (containsValue): Ditto.
1982 (toString): Ditto. Use string concatenation operators, not
1984 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1985 bounded by size() instead of hasNext() in iterator loop.
1986 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1987 part of normal execution flow. Do an explicit null check instead.
1988 * java/util/ArrayList.java (_iSize): Rename to `size'.
1989 (_arData): Rename to `data'.
1990 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1993 (removeRange): Make protected. Don't check bounds.
1994 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1996 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1998 (addAll (int, Collection)): Check lower bounds. Simplify exception
2000 (clone): Clone the data array too.
2001 (indexOf): Inline doesEqual().
2002 (lastIndexOf): Ditto.
2003 (clear): Don't set array data to null.
2004 (set): Check lower bounds. Simplify exception string.
2005 (toArray): Correct comment.
2006 (trimToSize): Don't update modCount, this is not a structural change.
2009 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2011 (toString): Declare `bit' as long, not int.
2012 (data): Made package-private, not private.
2014 2000-10-27 Warren Levy <warrenl@cygnus.com>
2016 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2017 array elements to true.
2019 2000-10-27 Warren Levy <warrenl@cygnus.com>
2021 * Makefile.am: Added locale files from Classpath.
2022 * Makefile.in: Rebuilt.
2023 * gnu/java/locale/Calendar.java: New file.
2024 * gnu/java/locale/Calendar_de.java: New file.
2025 * gnu/java/locale/Calendar_en.java: New file.
2026 * gnu/java/locale/Calendar_nl.java: New file.
2027 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2028 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2029 serialization compatibility.
2030 (scale): Made private.
2031 (serialVersionUID): New field.
2032 * java/math/BigInteger.java (ival): Made transient.
2033 (words): Made transient.
2034 (bitCount): New serialization field.
2036 (firstNonzeroByteNum): Ditto.
2037 (lowestSetBit): Ditto.
2040 (serialVersionUID): New field.
2041 (readObject): New method.
2042 (writeObject): New method.
2043 * java/util/BitSet.java (serialVersionUID): New field.
2044 * java/util/Calendar.java: Replaced with Classpath file.
2045 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2046 of getDefault() for TimeZone or Locale instead of passing nulls.
2047 * java/util/Locale.java (serialVersionUID): New field.
2048 (writeObject): New method.
2049 (readObject): New method.
2050 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2052 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2054 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2055 (core_java_source_files): Put java.lang, java.io, and java.util here.
2056 (ordinary_java_source_files): Order so that core_java_source_files are
2058 (java_source_files): Reorder so that special_java_source_files are
2060 * configure.in: Don't pass -I flag to gcj.
2061 * Makefile.in: Rebuilt.
2062 * configure: Rebuilt.
2064 2000-10-25 Tom Tromey <tromey@cygnus.com>
2066 * Makefile.in: Rebuilt.
2067 * Makefile.am (install-exec-hook): New target.
2069 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2071 * java/util/EventObject.java: Merged from classpath.
2073 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2076 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2078 * java/util/AbstractSet.java (equals): Re-installed original code.
2080 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2082 * Makefile.am: Added rules for libgcjx library.
2083 * Makefile.in: Rebuilt.
2084 * configure.in: Added check for X.
2085 * configure: Rebuilt.
2086 * gnu/awt/LightweightRedirector.java: New file.
2087 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2088 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2089 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2090 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2091 * gnu/awt/j2d/MappedRaster.java: New file.
2092 * gnu/awt/xlib/XCanvasPeer.java: New file.
2093 * gnu/awt/xlib/XEventLoop.java: New file.
2094 * gnu/awt/xlib/XEventQueue.java: New file.
2095 * gnu/awt/xlib/XFontMetrics.java: New file.
2096 * gnu/awt/xlib/XFramePeer.java: New file.
2097 * gnu/awt/xlib/XGraphics.java: New file.
2098 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2099 * gnu/awt/xlib/XPanelPeer.java: New file.
2100 * gnu/awt/xlib/XToolkit.java: New file.
2101 * gnu/gcj/xlib/Clip.java: New file.
2102 * gnu/gcj/xlib/Colormap.java: New file.
2103 * gnu/gcj/xlib/Display.java: New file.
2104 * gnu/gcj/xlib/Drawable.java: New file.
2105 * gnu/gcj/xlib/Font.java: New file.
2106 * gnu/gcj/xlib/GC.java: New file.
2107 * gnu/gcj/xlib/Pixmap.java: New file.
2108 * gnu/gcj/xlib/Screen.java: New file.
2109 * gnu/gcj/xlib/Visual.java: New file.
2110 * gnu/gcj/xlib/WMSizeHints.java: New file.
2111 * gnu/gcj/xlib/Window.java: New file.
2112 * gnu/gcj/xlib/WindowAttributes.java: New file.
2113 * gnu/gcj/xlib/XAnyEvent.java: New file.
2114 * gnu/gcj/xlib/XButtonEvent.java: New file.
2115 * gnu/gcj/xlib/XColor.java: New file.
2116 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2117 * gnu/gcj/xlib/XConnectException.java: New file.
2118 * gnu/gcj/xlib/XEvent.java: New file.
2119 * gnu/gcj/xlib/XException.java: New file.
2120 * gnu/gcj/xlib/XExposeEvent.java: New file.
2121 * gnu/gcj/xlib/XID.java: New file.
2122 * gnu/gcj/xlib/XImage.java: New file.
2123 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2124 * gnu/gcj/xlib/natClip.cc: New file.
2125 * gnu/gcj/xlib/natColormap.cc: New file.
2126 * gnu/gcj/xlib/natDisplay.cc: New file.
2127 * gnu/gcj/xlib/natDrawable.cc: New file.
2128 * gnu/gcj/xlib/natFont.cc: New file.
2129 * gnu/gcj/xlib/natGC.cc: New file.
2130 * gnu/gcj/xlib/natPixmap.cc: New file.
2131 * gnu/gcj/xlib/natScreen.cc: New file.
2132 * gnu/gcj/xlib/natVisual.cc: New file.
2133 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2134 * gnu/gcj/xlib/natWindow.cc: New file.
2135 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2136 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2137 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2138 * gnu/gcj/xlib/natXColor.cc: New file.
2139 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2140 * gnu/gcj/xlib/natXException.cc: New file.
2141 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2142 * gnu/gcj/xlib/natXImage.cc: New file.
2143 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2144 * java/awt/EventDispatchThread.java: Start thead on creation.
2146 2000-10-20 Tom Tromey <tromey@cygnus.com>
2148 From Arno J. Klaassen:
2149 * interpret.cc: Include <stdlib.h> for alloca.
2150 * defineclass.cc: Include <stdlib.h> for alloca.
2152 * Makefile.in: Rebuilt.
2153 * Makefile.am: Include deps.mk.
2154 (GCJCOMPILE): Added -MD, -MT, and -MF.
2155 ($(javao_files)): Don't depend on libgcj.zip.
2156 (all-recursive): New target.
2157 (%.lo:%.cc): Do dependency tracking.
2158 ($(nat_headers)): Don't depend on libgcj.zip.
2159 * configure: Rebuilt.
2160 * configure.in: Make .d files and deps.mk.
2162 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2164 * exception.cc: Don't #include "exception".
2165 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2167 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2168 * Makefile.in: Updated.
2170 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2172 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2173 * java/awt/peer/ComponentPeer.java (disable): Removed.
2176 (minimumSize): Removed.
2177 (preferredSize): Removed.
2180 * java/awt/peer/ListPeer.java (addItem): Removed.
2182 (minimumSize): Removed.
2183 (preferredSize): Removed.
2184 (setMultipleSelections): Removed.
2185 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2186 (remove): Renamed from removeMenu.
2187 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2189 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2190 (remove): Renamed from removeItem.
2191 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2192 (getMinimumSize): Removed.
2193 (getPreferredSize): Removed.
2194 (minimumSize): Removed.
2195 (preferredSize): Removed.
2196 (replaceText): Removed.
2197 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2198 (preferredSize): Removed.
2199 (getMinimumSize): Removed.
2200 (getPreferredSize): Removed.
2201 (setEchoCharacter): Removed.
2203 2000-10-10 Warren Levy <warrenl@cygnus.com>
2205 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2206 * java/sql/Date.java (serialVersionUID): New field.
2207 * java/sql/Time.java (serialVersionUID): New field.
2208 * java/sql/Timestamp.java (serialVersionUID): New field.
2209 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2210 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2211 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2212 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2213 (readObject): New serialization method.
2214 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2215 (serialVersionOnStream): New field.
2216 (readObject): New serialization method.
2217 (getMonetaryDecimalSeparator): New method.
2218 (setMonetaryDecimalSeparator): New method.
2219 * java/text/NumberFormat.java (maxFractionDigits): New field.
2220 (maxIntegerDigits): New field.
2221 (minFractionDigits): New field.
2222 (minIntegerDigits): New field.
2223 (serialVersionOnStream): New field.
2224 (serialVersionUID): New field.
2225 (readObject): New serialization method.
2226 (writeObject): New serialization method.
2227 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2228 (serialVersionOnStream): New field.
2229 (serialVersionUID): New field.
2230 (readObject): New serialization method.
2232 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2234 * configure.in (GCJ): Avoid bogus error message when looking for
2235 (and not finding) gcj in the build tree.
2236 * configure: Rebuilt.
2238 2000-10-09 Tom Tromey <tromey@cygnus.com>
2240 * configure: Rebuilt.
2241 * configure.in: Include sys/types.h when checking for socklen_t.
2242 From Arno J. Klaassen.
2244 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2246 * include/jvm.h: Enable __builtin_expect().
2248 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2249 the main program. Fix for PR libgcj/341.
2251 2000-10-07 Tom Tromey <tromey@cygnus.com>
2253 * java/util/Properties.java: Merged with Classpath version.
2255 2000-10-05 Tom Tromey <tromey@cygnus.com>
2257 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2258 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2259 * java/lang/Class.h (Object): Added `class$' field.
2260 * java/lang/Object.h (Object): Added `class$' field.
2261 * defineclass.cc (ClassClass): Use `class$' form.
2262 (ClassObject): Likewise.
2263 * resolve.cc (ClassObject): Use `class$' form.
2264 (ObjectClass): Likewise.
2265 * interpret.cc (ClassError): Removed.
2266 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2268 (IntegerClass): Likewise.
2269 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2271 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2272 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2273 SerializableClass): Likewise.
2274 Include Serializable.h, Cloneable.h.
2275 * java/lang/natSystem.cc (SystemClass): Removed.
2276 (init_properties): Use `class$' form.
2277 * java/lang/natObject.cc (CloneableClass): Removed.
2278 (clone): Use `class$' form.
2279 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2280 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2281 ConstructorClass): Likewise.
2282 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2283 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2284 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2285 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2287 (ClassClass): Likewise.
2288 * include/jvm.h (StringClass): Use `class$' form.
2289 * prims.cc (ObjectClass): Removed.
2290 (_Jv_RunMain): Use `class$' form.
2291 (_Jv_AllocObject): Likewise.
2292 * jni.cc (ClassClass): Use `class$' form.
2293 (ThrowableClass): Likewise.
2294 (ObjectClass): Likewise.
2295 (MethodClass): Likewise.
2296 (ThreadGroupClass): Likewise.
2297 (NativeThreadClass): Likewise.
2298 * boehm.cc (ObjectClass): Removed.
2299 (ClassClass): Removed.
2300 (_Jv_MarkObj): Use `class$' form.
2301 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2304 2000-10-05 Warren Levy <warrenl@cygnus.com>
2306 * Makefile.am: Removed java/io/Replaceable.java and
2307 java/io/Resolvable.java.
2308 * Makefile.in: Rebuilt.
2309 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2311 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2313 (processResolution): Handle readResolve method via reflection with
2314 removal of Resolvable interface.
2315 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2316 method via reflection with removal of Replaceable interface.
2317 * java/io/Replaceable.java: Removed.
2318 * java/io/Resolvable.java: Removed.
2319 * java/security/Key.java (serialVersionUID): New field.
2320 * java/security/Provider.java (serialVersionUID): New field.
2321 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2323 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2325 * java/sql/DataTruncation.java (serialVersionUID): New field.
2326 * java/sql/SQLException.java (serialVersionUID): New field.
2327 * java/sql/SQLWarning.java (serialVersionUID): New field.
2328 * java/util/Date.java (serialVersionUID): New field.
2329 (millis): Made transient.
2330 (readObject): New method.
2331 (writeObject): New method.
2333 2000-10-05 Tom Tromey <tromey@cygnus.com>
2335 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2337 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2339 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2340 (JvRunMain): Set _Jv_argv and _Jv_argc.
2341 * java/awt/Component.java: Minor fixes.
2342 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2343 * java/awt/Toolkit.java (systemEventQueue): Removed.
2344 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2345 * java/awt/Window.java (getToolkit): Don't call super.
2346 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2347 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2348 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2349 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2350 * gnu/awt/gtk/GtkFramePeer.java: New file.
2351 * gnu/awt/gtk/GtkMainThread.java: New file.
2352 * gnu/awt/gtk/GtkToolkit.java: New file.
2353 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2354 * gnu/awt/gtk/gtkcommon.cc: New file.
2355 * gnu/awt/gtk/gtkcommon.h: New file.
2356 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2357 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2358 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2359 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2360 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2361 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2363 2000-09-30 Tom Tromey <tromey@cygnus.com>
2365 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2366 interrupted before modifying the cv's wait set.
2369 2000-09-30 Hans Boehm <boehm@acm.org>
2370 Bryce McKinlay <bryce@albatross.co.nz>
2372 Implement bitmap descriptor based marking for Boehm GC.
2374 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2375 * configure: Rebuilt.
2376 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2377 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2378 method get_finalizer().
2379 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2380 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2381 (_Jv_AllocObj): Add new jclass parameter.
2382 (_Jv_AllocArray): Ditto.
2383 (_Jv_BuildGCDescr): New prototype.
2384 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2385 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2386 get_finalizer() instead of direct finalizer vtable offset.
2387 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2388 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2389 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2390 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2391 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2392 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2393 (_Jv_DetermineVTableIndex): Ditto.
2394 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2395 calculations to account for new gc_descr field.
2396 * boehm.cc: #include gc_gcj.h.
2397 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2398 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2399 New commentary from HB. Mark the classes vtable.
2400 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2401 (GC_DEFAULT_DESCR): New #define.
2402 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2403 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2404 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2405 scan conservativly if size is less than min_heap_addr. Set vtable
2406 pointer of new object before returning.
2407 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2408 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2409 allocation for obj_kind_x.
2410 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2411 (_Jv_AllocObj): Set vtable on returned object.
2412 (_Jv_AllocArray): Ditto.
2413 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2414 (_Jv_NewPrimArray): Ditto.
2415 (_Jv_AllocObj): Declare as a friend.
2416 (_Jv_AllocArray): Ditto.
2417 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2418 from &ObjectClass into new array class. Remove offset-by-one
2419 adjustments from `method' size calculations to account for gc_descr
2422 2000-09-26 Tom Tromey <tromey@cygnus.com>
2424 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2425 `remove', not `add'.
2427 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2429 * java/lang/natSystem.cc (file_encoding): Added return statement.
2431 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2433 * Makefile.am: Re-work shell commands that exceeded command-line
2435 * Makefile.in: Rebuilt.
2437 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2439 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2440 * java/lang/natDouble.cc: Likewise.
2441 * java/lang/reflect/natMethod.cc: Likewise.
2442 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2444 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2446 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2448 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2449 * acinclude.m4: Arrange for automake to not bring in a new
2450 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2451 * Makefile.am: Leave it up to automake to subst GCJ.
2452 * aclocal.m4, configure, Makefile.in: Rebuilt.
2454 2000-09-13 Tom Tromey <tromey@cygnus.com>
2456 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2457 (get): Ensure Boolean class is initialized.
2458 * java/lang/reflect/natField.cc (BooleanClass): New define.
2459 (get): Ensure Boolean class is initialized.
2461 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2463 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2464 Initialize with anonymous class.
2465 (compareToIgnoreCase): New method.
2467 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2468 (uncaughtException): Set had_uncaught_exception.
2469 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2470 exit with error status if set.
2471 (_Jv_RunMain): Ditto.
2473 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2475 * configure: Rebuilt with new ../libtool.m4.
2477 2000-09-11 Tom Tromey <tromey@cygnus.com>
2479 * java/lang/reflect/Field.java (toString): Don't rely on
2482 2000-09-08 Tom Tromey <tromey@cygnus.com>
2484 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2485 default decoder use iconv.
2486 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2487 Let default encoder use iconv.
2488 * configure: Rebuilt.
2489 * configure.in: Check for nl_langinfo and <langinfo.h>.
2490 * java/lang/natSystem.cc (file_encoding): New function.
2491 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2493 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2495 * acinclude.m4: Simplify the tests for CC and CXX.
2496 * aclocal.m4, configure: Rebuilt.
2498 * acinclude.m4: Include libtool macros from the source tree.
2499 * aclocal.m4, configure: Rebuilt.
2501 2000-09-08 Warren Levy <warrenl@cygnus.com>
2503 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2504 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2505 * java/io/File.java (writeObject): Added.
2506 (readObject): Added.
2507 (serialVersionUID): Added.
2508 * java/io/ObjectOutputStream.java (writeObject): Initialized
2509 fieldsAlreadyWritten before recursion rather than after.
2510 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2511 * java/io/OptionalDataException.java (serialVersionUID): Added.
2512 (OptionalDataException): Made package private.
2513 * java/io/SyncFailedException.java (SyncFailedException): Removed
2514 default constructor to match spec.
2515 * java/lang/Boolean.java (serialVersionUID): Added.
2516 * java/lang/Byte.java (serialVersionUID): Added.
2517 * java/lang/Character.java (serialVersionUID): Added.
2518 * java/lang/Double.java (serialVersionUID): Added.
2519 * java/lang/Float.java (serialVersionUID): Added.
2520 * java/lang/Integer.java (serialVersionUID): Added.
2521 * java/lang/Long.java (serialVersionUID): Added.
2522 * java/lang/Number.java (serialVersionUID): Added.
2523 * java/lang/Short.java (serialVersionUID): Added.
2524 * java/lang/String.java (serialVersionUID): Added.
2525 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2527 * java/lang/reflect/InvocationTargetException.java
2528 (serialVersionUID): Added.
2529 * java/net/URL.java (handler): Made transient.
2530 (hashCode): Added field for serialization, per spec. and use
2531 cached value if available.
2532 (serialVersionUID): Added.
2533 (URL): Initialize hashCode.
2534 (set): Adjust hashCode.
2535 (readObject): New Method to initialize the protocol handler when
2537 (writeObject): New method.
2538 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2539 * java/text/Collator.java: Removed 'implements Serializable'.
2540 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2541 * java/util/Properties.java (serialVersionUID): Added.
2542 * java/util/Random.java (serialVersionUID): Added.
2543 (seed): Made private.
2544 (nextNextGaussian): Made private.
2545 (haveNextNextGaussian): Made private.
2546 * java/util/Stack.java (serialVersionUID): Added.
2547 * java/util/TimeZone.java (serialVersionUID): Added.
2548 * java/util/Vector.java (serialVersionUID): Added.
2550 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2552 * Makefile.am (Thread.h): Don't be friends with native threads
2554 * Makefile.in: Rebuilt.
2555 * java/lang/Thread.java (interrupt_flag): Make package-private.
2557 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2559 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2560 to avoid long long division.
2562 2000-09-06 Tom Tromey <tromey@cygnus.com>
2564 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2566 * java/lang/reflect/Method.java (toString): Use `getName' for
2569 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2570 `args' if method takes no parameters.
2572 Fix for PR java.lang/339:
2573 * java/lang/natPosixProcess.cc (fail): New function.
2574 (cleanup): New function.
2575 (startProcess): Use them. Create pipe so child can communicate
2576 exec failure back to parent.
2578 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2580 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2582 (send): Undo last patch. Remove the label only.
2584 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2586 * java/net/natInetAdress.cc: Ditto.
2588 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2590 2000-09-05 Tom Tromey <tromey@cygnus.com>
2592 * doc/cni.sgml: Updated from master copy.
2594 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2596 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2598 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2600 * java/lang/fdlibm.h: #undef __P if previously defined.
2601 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2602 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2606 2000-09-04 Tom Tromey <tromey@cygnus.com>
2608 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2611 2000-09-04 Anthony Green <green@redhat.com>
2613 Fix for PR java.io/203:
2614 * java/io/File.java (createTempFile): Obey directory argument.
2615 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2616 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2617 variable to set java.io.tmpdir on non-WIN32 systems.
2619 2000-09-04 Anthony Green <green@redhat.com>
2621 * java/io/File.java (deleteOnExit): New method.
2622 * gnu/gcj/runtime/FileDeleter.java: New class.
2623 * java/lang/natRuntime.cc (exit): Call
2624 FileDeleter.deleteOnExitNow()
2625 * Makefile.am: Add FileDeleter.java.
2626 * Makefile.in: Rebuilt.
2628 2000-09-02 Tom Tromey <tromey@cygnus.com>
2630 * Makefile.in: Rebuilt.
2631 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2632 environment variable.
2634 2000-09-01 Andrew Haley <aph@redhat.com>
2636 * java/io/StreamTokenizer.java: Don't throw a
2637 NumberFormatException if a field is numeric as far as the
2638 StreamTokenizer is concerned but not as far as Double.valueOf() is
2639 concerned: return a zero instead.
2641 2000-08-30 Tom Tromey <tromey@cygnus.com>
2643 * Makefile.in: Rebuilt.
2644 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2646 2000-08-28 Tom Tromey <tromey@cygnus.com>
2648 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2649 gnu/gcj/awt/ComponentDataBlitOp.java,
2650 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2651 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2652 java/awt/color/ICC_ColorSpace.java,
2653 java/awt/color/ICC_Profile.java,
2654 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2655 java/awt/image/ComponentColorModel.java,
2656 java/awt/image/ComponentSampleModel.java,
2657 java/awt/image/DataBuffer.java,
2658 java/awt/image/DataBufferByte.java,
2659 java/awt/image/DataBufferInt.java,
2660 java/awt/image/DataBufferUShort.java,
2661 java/awt/image/DirectColorModel.java,
2662 java/awt/image/IndexColorModel.java,
2663 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2664 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2665 java/awt/image/SinglePixelPackedSampleModel.java,
2666 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2667 Removed Latin-1 copyright symbols.
2668 * java/util/zip/ZipFile.java: Indentation fixes.
2670 2000-08-27 Mark Wielaard <mark@klomp.org>
2672 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2673 constructor, close can delete the file, finalize calls close.
2674 * java/util/jar/JarFile.java: Constructor that takes mode now
2677 2000-08-27 Anthony Green <green@redhat.com>
2679 * java/util/ArrayList.java, java/util/Timer.java,
2680 java/util/LinkedList.java, java/util/TimerTask.java,
2681 java/util/HashMap.java, java/util/AbstractMap.java,
2682 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2683 java/util/SortedSet.java: Imported from GNU Classpath.
2684 * Makefile.in: Rebuilt.
2685 * Makefile.am: Added new files.
2687 2000-08-26 Anthony Green <green@redhat.com>
2689 * Makefile.in: Rebuilt.
2690 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2693 * prims.cc: Include ClassLoader.h.
2694 (_Jv_RunMain): When executing jar files, classpath must be the jar
2695 file only. Lose our reference to the system ClassLoader in order
2696 to get a new one with the correct classpath.
2697 * java/lang/natSystem.cc (init_properties): When executing a jar
2698 file, only use the jar file for java.class.path.
2700 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2701 for bytecode archives.
2703 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2704 exists, but not Main-Class.
2706 2000-08-23 Mark Wielaard <mark@klomp.org>
2708 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2709 return -1 when fill() has no more data for the Inflater.
2711 2000-08-23 Mark Wielaard <mark@klomp.org>
2713 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2714 write(String) already does.
2716 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2718 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2719 to `alive_flag', call `init'.
2720 (init): New native method.
2721 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2724 2000-08-21 Mark Wielaard <mark@klomp.org>
2726 * Makefile.in: Rebuilt.
2727 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2729 (java/lang/reflect/Field.h): Likewise.
2730 (java/lang/reflect/Method.h): Likewise.
2731 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2734 2000-08-21 Tom Tromey <tromey@cygnus.com>
2736 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2739 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2741 * java/lang/natSystem.cc (init_properties): Change sourceware
2742 reference to sources.redhat.com.
2744 * include/java-props.h: Add _Jv_Jar_Class_Path.
2745 * prims.cc: Ditto. Set it from `gij -jar file' option.
2747 * java/lang/natSystem.cc (init_properties): Set java.class.path
2749 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2751 * java/util/PropertyPermission.java: Import from GNU Classpath.
2752 * Makefile.in: Rebuilt.
2753 * Makefile.am: Add java/util/PropertyPermission.java.
2754 * java/lang/System.java: Add setProperty method.
2756 * gij.cc (main): Add -jar option to execute jar files.
2757 (help): Describe -jar option.
2758 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2759 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2760 * gnu/gcj/runtime/FirstThread.java (main): New method.
2762 * java/util/jar/Attributes.java: Correct comment spelling.
2764 2000-08-20 Mark Wielaard <mark@klomp.org>
2766 * java/util/zip/Adler32.java: Make private variables really private
2767 * java/util/zip/CRC32.java: Make private variables really private
2768 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2770 * java/util/zip/InflaterInputStream.java: skip() could skip to
2772 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2773 * java/util/zip/ZipFile.java: size() new 1.2 method
2774 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2775 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2778 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2780 * java/util/jar/JarFile.java: Don't call
2781 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2784 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2786 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2787 Read the entire contents of the class file, not just what is
2790 * java/net/JarURLConnection.java: getEntry doesn't take any
2791 arguments. Return null if element is null.
2793 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2794 size from the archive, not the inflated size.
2796 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2797 java.util.zip.ZipFile.getEntry.
2799 * gij.cc (help): Change sourceware reference to
2802 2000-08-19 Tom Tromey <tromey@cygnus.com>
2804 * java/util/zip/ZipInputStream.java (createZipEntry):
2807 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2809 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2810 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2811 java/util/jar/JarInputStream.java,
2812 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2813 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2814 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2815 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2816 java/security/cert/Certificate.java,
2817 java/security/cert/CertificateEncodingException.java,
2818 java/security/cert/CertificateException.java,
2819 java/security/cert/CertificateExpiredException.java,
2820 java/security/cert/CertificateFactory.java,
2821 java/security/cert/CertificateFactorySpi.java,
2822 java/security/cert/CertificateNotYetValidException.java,
2823 java/security/cert/CertificateParsingException.java,
2824 java/security/cert/X509CRL.java,
2825 java/security/cert/X509CRLEntry.java,
2826 java/security/cert/X509Certificate.java,
2827 java/security/cert/X509Extension.java: Imported from Classpath.
2828 * java/util/Hashtable.java: Imported from Classpath.
2830 * java/util/zip/ZipInputStream.java: Create stub for
2833 * gcj/javaprims.h: Updated class list.
2835 * Makefile.in, gcj/Makefile.in: Rebuilt.
2836 * Makefile.am (ordinary_java_source_files): Add these new classes.
2838 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2840 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2841 * gnu/gcj/awt/GLightweightPeer.java: New file.
2842 * java/awt/BorderLayout.java: Implemented all methods.
2843 * java/awt/Button.java (actionListener, actionCommand): Renamed
2844 and modifier change.
2845 (addNotify): Call super.
2846 (dispatchEventImpl): New method.
2847 (getListeners): New method.
2848 (label): Made package-private, not private.
2849 * java/awt/Canvas.java: Implemented class body.
2850 * java/awt/Color.java (brighter): New method.
2851 (darker): New method.
2852 (hashCode): New method.
2853 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2854 (getGraphicsConfiguration): Delegate to
2855 getGraphicsConfigurationImpl().
2856 (getGraphicsConfigurationImpl): New method.
2857 (getToolkit): Only return value from peer if not null.
2858 (isDisplayable): Check with parent.
2859 (isShowing): No parent implies not showing.
2860 (getForeground): Check parent property if local is null.
2861 (getBackground): Likewise.
2862 (getFont): Likewise.
2863 (setForeground): Inform peer.
2864 (setBackground): Likewise
2865 (setLocale): Invalidate component.
2866 (getColorModel): Implemented.
2867 (setLocation): Invalidate, or ignore if no change.
2868 (setSize): Invalidate, or ignore if no change.
2869 (setBounds): Invalidate, or ignore if no change.
2870 (isOpaque): By default, heavyweight implies opaque.
2871 (isLightweight): Implemented.
2872 (getMaximumSize): Implemented.
2873 (doLayout): Implemented, NOP.
2874 (validate): Implemented, NOP.
2875 (invalidate): Only propagate to parent if parent was valid.
2876 (getGraphics): Implemented.
2877 (getFontMetrics): Implemented.
2878 (update): Implemented.
2879 (paintAll): Implemented.
2880 (repaint): Implemented all repaint methods.
2881 (print): Implemented.
2882 (printAll): Implemented.
2883 (createImage): Implemented.
2884 (dispatchEvent): Give the peer a chance to handle the event.
2885 (dispatchEventImpl): Dispatch paint events.
2886 (enableEvents): Lightweights enable events on parent component.
2887 (coalesceEvents): Coalesce paint events, and select event type
2889 (coalescePaintEvents): New method.
2890 (processEvent): Fix unfortunate ordering of statements, and call
2891 correct method for MOUSE_CLICKED.
2892 (processPaintEvent): New method.
2893 (addNotify): Allow container to notify children before event
2894 mask is set in peer.
2895 (addNotifyContainerChildren): New method.
2896 (removeNotify): Visibility should not change on removeNotify.
2897 (paramString): Implemented.
2898 (list): Implemented two of the list methods.
2899 * Container (myInsets): Removed, insets are managed by peer.
2900 (getInsets): Query peer.
2901 (addImpl): Fix reparenting, enable events for lightweights,
2902 initialize component array.
2903 (validate): Call doLayout in validateTree() instead.
2904 (validateTree): Do nothing if already valid. Call beginValidate(),
2905 endValidate() on peer. Call validateTree() instead of validate()
2906 for children that are containers. Mark valid after validation of
2908 (setFont): Partial implementation.
2909 (paint): Implemented.
2910 (visitChildren): New method.
2911 (visitChild): New method.
2912 (update): Implemented.
2913 (print): Implemented.
2914 (paintComponents): Implemented.
2915 (printComponents): Consider translation and clipping.
2916 (getComponentAt): Ignore invisible children. Return this if no
2918 (addNotify): Call super.
2919 (addNotifyContainerChildren): New method.
2920 (paramString): Implemented.
2921 (list): Implemented.
2922 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2924 (invokeLater): Likewise.
2925 (isDispatchThread): Likewise.
2926 * java/awt/FontMetrics (getLeading): Formula change.
2927 (getDescent): Consider leading also.
2928 (getMaxAscent): Default to getAscent().
2929 (getMaxDescent): Default to getDescent.
2930 (getMaxAdvance): Return value signifying unknown.
2931 (charWidth): Both methods implemented.
2932 (charsWidth): Implemented.
2933 (bytesWidth): Implemented.
2934 (getWidths): Implemented.
2935 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2937 (Frame): Rearragend constuctor chaining to disallow null being
2938 passed as a graphics configuration.
2939 (getTitle): Return empty string if null.
2941 (getIconImage): New method.
2942 (setIconImage): New method.
2943 (finalize): New method.
2944 (setMenuBar): Notify peer.
2945 (isResizable): New method.
2946 (setResizable): New method.
2947 (getState): New method.
2949 (remove): Implemented.
2950 (removeNotify): New method.
2951 (getFrames): New method.
2952 * java/awt/Graphics.java: Implemented body of class.
2953 * java/awt/Graphics2D.java: New file.
2954 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2955 * java/awt/Image.java: Implemented body of class.
2956 * java/awt/Panel.java (Panel): Call correct super constructor.
2957 (addNotify): Implemented.
2958 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2959 * java/awt/RenderingHints.java: New file.
2960 * java/awt/Toolkit.java (createComponent): Implemented.
2961 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2962 * java/awt/Window.java (Window): Two new constructors. Reordered
2963 constructor chaining.
2964 (getGraphicsConfigurationImpl): New method.
2965 (finalize): Call super.
2966 (addNotify): Call super.
2967 (pack): Do layout stuff.
2968 (show): Ensure that peer exists and that component is valid.
2969 (dispose): Dispose owned children.
2970 (getOwner): Simplify code, casting null pointers is valid.
2971 (getGraphicsConfiguration): Ask peer if local value is null.
2972 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2974 * java/awt/image/BufferedImage.java: New file.
2975 * java/awt/image/RasterOp.java: New file.
2976 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2977 More powerfull replacement for getColorModel().
2978 (getColorModel) Removed.
2979 (setEventMask) New method.
2980 * Makefile.am: Added new files.
2981 * Makefile.in: Rebuilt.
2983 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2985 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2986 (finit_leg_name): New global.
2987 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2988 `$finit$'. This is a backward compatibility hack.
2989 (java::lang::Class::_getMethods): Likewise.
2991 2000-08-15 Andrew Haley <aph@cygnus.com>
2993 * include/jvm.h (_Jv_HashCode): New hash code.
2995 2000-08-15 Tom Tromey <tromey@cygnus.com>
2997 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2999 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3001 * THANKS: More thanks.
3003 2000-08-10 Tom Tromey <tromey@cygnus.com>
3005 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3007 (connect): Likewise.
3009 (getOption): Likewise.
3010 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3011 case when errno not set.
3014 (receive): Likewise.
3015 (mcastGrp): Likewise.
3016 (setOption): Likewise.
3017 (getOption): Likewise.
3019 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3020 John Stracke <francis@ecal.com>
3022 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3023 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3025 (disconnect): Don't unset connected flag.
3026 (getHeaderField (String)): Call connect() if not connected.
3027 (getHeaderField (int)): Ditto.
3028 (getHeaderFieldKey): Ditto.
3029 (getHttpHeaders): Don't call connect().
3030 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3031 gotResponseVals): New fields.
3032 (getResponseCode): Call getResponseVals() conditionally.
3033 (getResponseMessage): Ditto.
3034 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3036 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3038 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3039 * Makefile.in: Rebuilt.
3040 * java/awt/Color.java (getTransparency): New method.
3041 * java/awt/Component.java: Various updates.
3042 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3043 after dealing with children.
3044 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3045 * java/awt/Window.java: Various new methods and updates.
3046 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3048 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3049 * java/awt/event/WindowEvent.java (paramString): Ditto.
3050 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3052 * java/awt/geom/Point2D.java (clone): Ditto.
3053 * java/awt/geom/RectangularShape.java (clone): Ditto.
3054 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3055 isAlphaPremultiplied): Make package-private, not private.
3057 2000-08-08 Tom Tromey <tromey@cygnus.com>
3059 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3060 surrogate characters.
3061 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3063 (write): Correct handling of surrogate characters.
3065 2000-08-07 Tom Tromey <tromey@cygnus.com>
3067 * java/lang/reflect/Method.java (hashCode): Use getName().
3068 (toString): Likewise.
3069 * java/lang/reflect/natMethod.cc (getType): Initialize
3072 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3074 * java/lang/reflect/Field.java (toString): Correct formatting.
3077 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3079 (receive): Streamlined.
3081 2000-08-05 Tom Tromey <tromey@cygnus.com>
3083 * java/io/PrintWriter.java: Merged comments from Classpath.
3084 (printlnUnsynchronized): Removed.
3085 (println()): Print the separator.
3086 (println): Call println(), not printlnUnsynchronized.
3087 (out): Now protected, to match spec.
3089 2000-08-04 Tom Tromey <tromey@cygnus.com>
3091 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3092 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3095 2000-08-03 Warren Levy <warrenl@cygnus.com>
3097 * java/io/ObjectInputStream.java (readFields): Turn off
3098 readDataFromBlock while reading via GetField.
3099 (GetField$1.get(String, Object)): Pass Class of default value to
3101 (getField): Allow for null default values.
3103 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3104 (PutField$1.put): Fixed calls of checkType in most of the put
3105 methods to pass the correct parameter.
3106 (PutField$1.put(String, Object)): Allow for null value arg.
3107 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3110 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3111 typo in spec'ed field name.
3112 (getSerialPersistentFields): Changed spelling of method to match
3113 the correct spelling of the spec'ed field name.
3115 2000-08-03 Tom Tromey <tromey@cygnus.com>
3117 * Makefile.in: Rebuilt.
3118 * Makefile.am (awt_java_source_files): Added new files.
3120 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3122 * Makefile.am: Add new AWT stubs.
3123 * java/awt/Canvas.java: New placeholder class.
3124 * java/awt/Checkbox.java: Ditto.
3125 * java/awt/CheckboxMenuItem.java: Ditto.
3126 * java/awt/Choice.java: Ditto.
3127 * java/awt/Dialog.java: Ditto.
3128 * java/awt/FileDialog.java: Ditto.
3129 * java/awt/List.java: Ditto.
3130 * java/awt/ScrollPane.java: Ditto.
3131 * java/awt/TextField.java: Ditto.
3132 * java/awt/datatransfer/Clipboard.java: Ditto.
3133 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3134 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3135 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3136 Some commented out. Partially implemented.
3137 * java/awt/natToolkit.cc: Removed file.
3139 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3141 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3142 Fixes "make -j" builds.
3143 * Makefile.in: Rebuild.
3145 2000-08-02 Tom Tromey <tromey@cygnus.com>
3147 * Makefile.in: Rebuilt.
3148 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3149 * java/net/natPlainSocketImpl.cc: Include posix.h.
3150 (accept): Use _Jv_select.
3151 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3152 (receive): Use _Jv_select.
3153 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3154 (available): Use _Jv_select.
3155 * java/lang/natSystem.cc: Include posix.h.
3156 (currentTimeMillis): Use _Jv_gettimeofday.
3157 * include/posix.h: New file.
3158 * posix.cc: New file.
3160 * scripts/encodings.pl: New file.
3161 * Makefile.in: Rebuilt.
3162 * Makefile.am (convert_source_files): Added IOConverter.java.
3163 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3165 (getDefaultDecodingClass): Canonicalize default encoding name.
3166 (getEncoder): Likewise.
3167 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3169 (getDefaultDecodingClass): Canonicalize default encoding name.
3170 (getDecoder): Likewise.
3171 * gnu/gcj/convert/IOConverter.java: New file.
3173 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3175 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3176 to match C declaration in ffi.h.
3177 * Makefile.am: Add java/awt/Button.java.
3178 * Makefile.in: Rebuilt.
3180 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3182 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3183 cast of the second argument to `ffi_raw_call' changed to match
3186 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3188 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3189 argument to `ffi_raw_call' changed to match prototype.
3191 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3193 * java/awt/Component.java (toString): Implemented.
3194 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3195 dispatchEvent() to dispatch the event.
3196 (removeImpl): Ditto.
3198 2000-07-30 Anthony Green <green@redhat.com>
3200 * java/awt/Component.java: Add treeLock object.
3201 (getTreeLock): Implement.
3202 (isShowing): Implement.
3204 2000-07-30 Tom Tromey <tromey@cygnus.com>
3206 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3208 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3210 * java/awt/Window.java (addNotify): Wrote.
3211 (addWindowListener): Wrote.
3213 (getWarningString): Wrote.
3214 (processEvent): Wrote.
3215 (processWindowEvent): Wrote.
3216 (removeWindowListener): Wrote.
3217 (show): Call validate(), setVisible().
3221 * java/awt/Toolkit.java (createWindow): Declare.
3223 * java/awt/Frame.java (addNotify): Use getToolkit to find
3226 * java/awt/Component.java (invalidate): Wrote.
3228 (getToolkit): Wrote.
3230 * java/awt/Container.java (addContainerListener): Removed
3232 (removeContainerListener): Likewise.
3234 (add(Component)): Use it.
3235 (add(String,Component)): Likewise.
3236 (add(Component,int)): Likewise.
3237 (add(Component,Object)): Likewise.
3238 (add(Component,Object,int)): Likewise.
3240 (getAlignmentX): Wrote.
3241 (getAlignmentY): Wrote.
3242 (getComponentAt): Wrote.
3243 (getMaximumSize): Wrote.
3244 (invalidate): Wrote.
3245 (list(PrintStream,int)): Wrote.
3246 (list(PrintWriter,int)): Wrote.
3247 (getMinimumSize): Wrote.
3248 (getPreferredSize): Wrote.
3249 (printComponents): Wrote.
3250 (processContainerEvent): Look at containerListener, not
3252 (remove): Added event processing and peer destruction.
3253 (removeAll): Use remove.
3254 (removeNotify): Wrote.
3256 (validateTree): Wrote.
3258 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3259 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3260 * java/awt/Container.java (addNotify): Don't create Container
3262 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3264 2000-07-30 Tom Tromey <tromey@cygnus.com>
3266 * java/awt/Container.java (remove(int)): Wrote.
3267 (remove(Component)): Wrote.
3268 (add(Component)): Wrote.
3269 (add(Component,int)): Wrote.
3271 (addNotify): Set our own peer.
3272 * java/awt/Scrollbar.java (listeners): Changed type.
3273 (Scrollbar): Don't initialize listeners.
3275 (setValue): Call setValues.
3276 (setMinimum): Likewise.
3277 (setMaxPriority): Likewise.
3278 (setVisibleAmount): Likewise.
3280 (setUnitIncrement): Forward to peer.
3281 (setLineIncrement): Call setUnitIncrement.
3282 (setPageIncrement): Call setBlockIncrement.
3283 (setBlockIncrement): Forward to peer.
3284 (addAdjustmentListener): Rewrote.
3285 (removeAdjustmentListener): Rewrote.
3286 (processAdjustmentEvent): Rewrote.
3287 (paramString): Wrote.
3288 * Makefile.in: Rebuilt.
3289 * Makefile.am (awt_java_source_files): Added Button.java.
3290 * java/awt/Button.java: New file.
3291 * java/awt/Toolkit.java (createLabel): Declare.
3292 (createButton): Likewise.
3293 (createScrollbar): Likewise.
3294 (createContainer): Likewise.
3295 * java/awt/Label.java (addNotify): Wrote.
3296 (setAlignment): Call setAlignment in the peer.
3297 (setText): Call setText in the peer.
3299 2000-07-28 Warren Levy <warrenl@cygnus.com>
3301 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3302 NotSerializableException with just the class name.
3304 2000-07-26 Andrew Haley <aph@cygnus.com>
3306 * interpret.cc (continue1): Insert missing break into switch.
3308 2000-07-28 Warren Levy <warrenl@cygnus.com>
3310 * java/io/ObjectStreamException.java: Made constructors protected.
3312 2000-07-27 Tom Tromey <tromey@cygnus.com>
3314 * java/io/OutputStreamWriter.java (close): Only flush if not
3317 2000-07-27 Warren Levy <warrenl@cygnus.com>
3319 * mauve-libgcj: Activated serialization tests.
3320 * gcj/field.h (getModifiers): Mask off unknown flags.
3321 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3322 spurious bits don't cause discrepancies.
3323 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3324 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3325 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3326 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3327 * java/lang/Throwable.java (serialVersionUID): New field.
3328 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3329 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3331 * java/lang/reflect/natMethod.cc: Ditto.
3332 * java/security/Key.java (serialVersionUID): Removed field for now.
3333 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3334 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3336 2000-07-22 Tom Tromey <tromey@cygnus.com>
3338 * java/awt/geom/RectangularShape.java (getPathIterator):
3341 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3343 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3344 stub libjava/java/awt/ColorModel.java which was located in the
3346 * libjava/java/awt/image/ComponentColorModel.java: New file.
3347 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3348 * libjava/java/awt/image/DataBuffer.java: New file.
3349 * libjava/java/awt/image/DataBufferByte.java: New file.
3350 * libjava/java/awt/image/DataBufferInt.java: New file.
3351 * libjava/java/awt/image/DataBufferUShort.java: New file.
3352 * libjava/java/awt/image/DirectColorModel.java: New file.
3353 * libjava/java/awt/image/PackedColorModel.java: New file.
3354 * libjava/java/awt/image/Raster.java: New file.
3355 * libjava/java/awt/image/SampleModel.java: New file.
3356 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3358 * libjava/java/awt/image/IndexColorModel.java: New file.
3359 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3360 java.awt.ColorModel stub.
3362 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3363 * gnu/gcj/util/Buffers.java: New file, utility class.
3365 * libjava/Makefile.am: Updated to include new files.
3366 * libjava/Makefile.in: Rebuilt.
3368 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3370 * java/io/StreamTokenizer.java: Merged with classpath.
3372 2000-07-20 Tom Tromey <tromey@cygnus.com>
3374 * Makefile.in: Rebuilt.
3375 * Makefile.am (awt_java_source_files): Updated for new files.
3376 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3377 * java/awt/Label.java: New file.
3378 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3379 (createIntersection, createUnion, getBounds2D): New methods.
3380 * java/awt/Scrollbar.java: New file.
3381 * java/awt/Shape.java: Updated to 1.2.
3382 * java/awt/geom/AffineTransform.java: New file.
3383 * java/awt/geom/Ellipse2D.java: New file.
3384 * java/awt/geom/NoninvertibleTransformException.java: New file.
3385 * java/awt/geom/PathIterator.java: New file.
3386 * java/awt/geom/Rectangle2D.java: New file.
3387 * java/awt/geom/RectangularShape.java: New file.
3388 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3389 * java/awt/geom/IllegalPathStateException.java: New file.
3391 * scripts/showval.java: New file.
3393 * scripts/classes.pl (scan): Print inner classes properly.
3394 * gcj/javaprims.h: Updated class list.
3396 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3397 initialize String fields for interpreted classes. Fixes bug
3398 reported by Hans Boehm.
3400 * java/io/File.java (getParentFile): New method, from Classpath
3401 via Oskar Liljeblad.
3403 * java/util/Vector.java (remove(Object)): Implemented.
3405 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3407 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3408 zero return from backtrace().
3410 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3412 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3414 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3415 before calling notifyAll().
3417 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3419 Add missing files from last check-in:
3420 * java/awt/image/ImageConsumer.java: New file.
3421 * java/awt/image/ImageProducer.java: New file.
3422 * java/awt/image/ImageObserver.java: New file.
3424 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3426 Merged implementation of java.applet from classpath:
3427 * java/applet/Applet.java: New file.
3428 * java/applet/AppletContext.java: New file.
3429 * java/applet/AppletStub.java: New file.
3430 * java/applet/AudioClip.java: New file.
3432 * Makefile.am: Added new java.applet classes.
3433 * Makefile.in: Rebuilt.
3435 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3438 * java/util/ResourceBundle.java (getLocale): stub.
3439 * Makefile.am: Added new AWT classes.
3440 * Makefile.in: Rebuilt.
3441 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3442 constructors. Fix toString() and paramString().
3443 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3444 * java/awt/CheckboxGroup.java: New class.
3445 * java/awt/ColorModel.java: New class.
3446 * java/awt/Component.java: Added stubs for most methods. Implemented
3448 * java/awt/Container.java: ditto.
3449 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3450 * java/awt/Cursor.java: ditto.
3451 * java/awt/Event.java: Fix paramString().
3452 * java/awt/EventQueue.java: New class. Implemented.
3453 * java/awt/Font.java: Added additional stub methods. Implemented
3455 * java/awt/FontMetrics.java: New class. Stubbed.
3456 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3458 * java/awt/Insets.java: New class. Implemented.
3459 * java/awt/Menu.java: Add new methods. Partially implemented.
3460 * java/awt/MenuItem.java: Add new methods and fields. Partially
3462 * java/awt/MenuShortcut.java: New class. Implemented.
3463 * java/awt/Panel.java: New class. Placeholder.
3464 * java/awt/PopupMenu.java: New class. Stubbed.
3465 * java/awt/Rectangle.java: New class. Implemented.
3466 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3467 * java/awt/event/ActionEvent.java: Implement paramString().
3468 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3469 * java/awt/event/ComponentEvent.java: Implement paramString().
3470 * java/awt/event/ContainerEvent.java: Implement paramString().
3471 * java/awt/event/FocusEvent.java: Implement paramString().
3472 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3473 * java/awt/event/HierarchyBoundsListener.java: New class.
3474 * java/awt/event/HierarchyEvent.java: New class.
3475 * java/awt/event/HierarchyListener.java: New class.
3476 * java/awt/event/InputMethodEvent.java: Implement paramString().
3477 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3478 exception if !catchExceptions.
3479 * java/awt/event/ItemEvent.java: Implement paramString().
3480 * java/awt/event/KeyEvent.java: Implement paramString().
3481 * java/awt/event/MouseEvent.java: Implement paramString().
3482 * java/awt/event/PaintEvent.java: Implement paramString().
3483 * java/awt/event/TextEvent.java: Implement paramString().
3484 * java/awt/event/WindowEvent.java: Implement paramString().
3486 AWT Peer interfaces:
3487 * java/awt/peer/ButtonPeer.java: New file.
3488 * java/awt/peer/ListPeer.java: New file.
3489 * java/awt/peer/CanvasPeer.java: New file.
3490 * java/awt/peer/MenuBarPeer.java: New file.
3491 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3492 * java/awt/peer/MenuComponentPeer.java: New file.
3493 * java/awt/peer/CheckboxPeer.java: New file.
3494 * java/awt/peer/MenuItemPeer.java: New file.
3495 * java/awt/peer/ChoicePeer.java: New file.
3496 * java/awt/peer/MenuPeer.java: New file.
3497 * java/awt/peer/ComponentPeer.java: Implemented.
3498 * java/awt/peer/PanelPeer.java: New file.
3499 * java/awt/peer/ContainerPeer.java: Implemented.
3500 * java/awt/peer/PopupMenuPeer.java: New file.
3501 * java/awt/peer/DialogPeer.java: New file.
3502 * java/awt/peer/ScrollPanePeer.java: New file.
3503 * java/awt/peer/FileDialogPeer.java: New file.
3504 * java/awt/peer/ScrollbarPeer.java: New file.
3505 * java/awt/peer/FontPeer.java: New file.
3506 * java/awt/peer/TextAreaPeer.java: New file.
3507 * java/awt/peer/FramePeer.java: Implemented.
3508 * java/awt/peer/TextComponentPeer.java: New file.
3509 * java/awt/peer/LabelPeer.java: New file.
3510 * java/awt/peer/TextFieldPeer.java: New file.
3511 * java/awt/peer/LightweightPeer.java: New file.
3512 * java/awt/peer/WindowPeer.java: Implemented.
3514 2000-07-06 Tom Tromey <tromey@cygnus.com>
3516 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3517 Initialize static final String fields.
3519 2000-07-03 Tom Tromey <tromey@cygnus.com>
3521 * java/io/PrintWriter.java (print): Call write(String), not
3522 print(String). See PR libgcj/277.
3523 (print(String)): Use write, not out.write.
3525 2000-06-30 Tom Tromey <tromey@cygnus.com>
3527 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3529 2000-06-27 Andrew Haley <aph@cygnus.com>
3531 * java/io/File.java (createTempFile): Close the FileDescriptor
3532 used to create a temp file. Fixes some of PR 203.
3533 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3534 collection if we run out of file handles.
3536 2000-06-28 Warren Levy <warrenl@cygnus.com>
3538 * gnu/java/security/provider/Gnu.java: New file.
3539 * gnu/java/security/provider/SHA.java: New file.
3540 * gnu/java/security/provider/SHA1PRNG.java: New file.
3541 * Makefile.am: Added the above files.
3542 * Makefile.in: Rebuilt.
3544 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3546 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3548 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3549 (destroyed_flag): Removed.
3550 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3551 (activeCount): Added spec note.
3553 2000-06-27 Warren Levy <warrenl@cygnus.com>
3555 * java/security/Principal.java: New file.
3556 * Makefile.am: Added Principal.java.
3557 * Makefile.in: Rebuilt.
3559 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3561 * java/awt/event/MouseEvent.java: Fixed coordinate space
3564 2000-06-27 Tom Tromey <tromey@cygnus.com>
3566 * java/io/PushbackInputStream.java (read): If there are characters
3567 in the buffer, don't also call super.read().
3568 * java/io/PushbackReader.java (read): If there are characters in
3569 the buffer, don't also call super.read().
3571 * java/lang/Double.java (valueOf): Call parseDouble().
3573 2000-06-26 Warren Levy <warrenl@cygnus.com>
3575 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3576 (newVal): Renamed to newValue.
3577 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3578 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3579 (revokeNow): Renamed to invalidateRefs.
3580 * java/io/OptionalDataException.java: Updated FIXME.
3581 (eof): New placeholder field.
3583 * java/io/WriteAbortedException.java (message): Made transient.
3584 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3585 * java/lang/Throwable.java (stackTrace): Made transient.
3586 * java/net/InetAddress.java: Made Serializable.
3587 * java/security/KeyPair.java: Made Serializable.
3588 * java/security/Provider.java: Replaced with Classpath version that
3589 implements serialization and proper methods.
3590 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3591 (limits): Renamed to choiceLimits.
3593 2000-06-24 Tom Tromey <tromey@cygnus.com>
3595 * java/lang/natDouble.cc (parseDouble): Renamed from
3597 * java/lang/Double.java (parseDouble): Renamed from
3598 doubleValueOf. Now public.
3600 2000-06-23 Andrew Haley <aph@cygnus.com>
3602 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3603 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3605 2000-06-23 Tom Tromey <tromey@cygnus.com>
3607 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3608 * java/lang/natDouble.cc: Always include <alloca.h>.
3609 Fix for PR libgcj/267.
3611 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3613 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3614 comply with classpath VM spec.
3615 (add(Group)): Rename to addGroup().
3616 * java/lang/Thread.java (Thread): Use addThread().
3617 * java/lang/natThread.cc (finish_): Use removeThread().
3619 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3621 * java/lang/ThreadGroup.java: Merged with classpath.
3622 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3623 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3625 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3626 ThreadGroup.root if Thread.currentThread is null. Honour the
3627 ThreadGroup's max priority setting.
3629 2000-06-18 Tom Tromey <tromey@cygnus.com>
3631 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3632 returned class. For PR gcj/260.
3634 2000-06-16 Tom Tromey <tromey@cygnus.com>
3636 Fix for PR libgcj/261:
3637 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3639 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3640 argument. (This is a patch from long ago that somehow went
3643 2000-06-15 Tom Tromey <tromey@cygnus.com>
3645 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3649 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3651 Fix for PR java.lang/258:
3652 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3653 JV_STATE_DONE, to prevent accidental initialization.
3654 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3655 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3656 interface or an abstract class. Remove redundant initializeClass calls.
3657 Remove duplicate if_idt test.
3658 (_Jv_InterfaceAssignableFrom): New function.
3659 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3661 2000-05-31 Tom Tromey <tromey@cygnus.com>
3663 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3664 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3665 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3666 (NUM_OBJECT_METHODS): New define.
3667 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3668 `array_vtable' parameter. Added assertion.
3669 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3672 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3674 * gcj/cni.h: Include <string.h>.
3675 * defineclass.cc: Include <alloca.h>.
3676 * interpret.cc: Ditto.
3677 * gij.cc: Include <stdlib.h>.
3679 2000-05-30 Tom Tromey <tromey@cygnus.com>
3681 * include/name-finder.h: Include <sys/wait.h>.
3682 (_Jv_name_finder::pid): Now of type `pid_t'.
3683 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3684 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3687 2000-05-24 Warren Levy <warrenl@cygnus.com>
3689 * java/io/ObjectOutputStream.java (writeObject): Use component type
3690 when writing arrays.
3693 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3695 Fix for PR libgcj/226:
3696 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3697 since this is an installed header.
3699 Fix for PR libgcj/228:
3700 * java/util/zip/ZipFile (getInputStream): Create inflater with
3703 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3704 with DataFormatException.
3706 2000-05-20 Tom Tromey <tromey@cygnus.com>
3708 * Makefile.in: Rebuilt.
3709 * Makefile.am (hack1): Removed.
3710 (awto_files): Likewise.
3711 (libgcjawt_la_SOURCES): Likewise.
3712 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3713 (libgcjawt_la_DEPENDENCIES): Likewise.
3714 (libgcjawt_la_LIBADD): Likewise.
3715 (libgcjawt_la_LDFLAGS): Likewise.
3716 (libgcjawt_la_LINK): Likewise.
3717 ($(awt_java_source_files:.java=.class)): Likewise.
3718 (libgcj.zip): Don't depend on AWT files.
3719 (MOSTLYCLEANFILES): Don't include AWT files.
3720 ($(awto_files)): Removed.
3721 (nat_headers): Removed AWT files.
3722 (cond_awt_java_source_files): Removed.
3723 (ordinary_java_source_files): Added awt_java_source_files.
3724 * libgcj.spec.in (*lib): Removed -lgcjawt.
3725 * configure: Rebuilt.
3726 * configure.in: Removed --enable-java-awt option.
3728 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3730 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3731 (ZipEntry): Copy the `name' field.
3732 (clone): Implement JDK1.2 method.
3733 (setCompressedSize): ditto.
3736 2000-05-19 Tom Tromey <tromey@cygnus.com>
3738 * java/io/BufferedWriter.java: Merged with Classpath.
3739 * java/io/BufferedOutputStream.java: Merged with Classpath.
3741 2000-05-16 Andrew Haley <aph@cygnus.com>
3743 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3744 build_ia64_frame_state.
3745 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3748 2000-05-15 Warren Levy <warrenl@cygnus.com>
3750 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3751 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3752 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3753 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3754 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3755 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3756 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3757 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3758 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3759 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3760 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3761 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3762 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3763 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3764 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3765 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3766 * gnu/gcj/io/NullOutputStream.java: Removed.
3767 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3768 * gnu/gcj/lang/ArrayHelper.java: Removed.
3769 * gnu/gcj/lang/ClassHelper.java: Removed.
3770 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3772 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3773 * gnu/java/beans/EmptyBeanInfo.java: New file.
3774 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3775 * gnu/java/beans/IntrospectionIncubator.java: New file.
3776 * gnu/java/beans/editors/ColorEditor.java: New file.
3777 * gnu/java/beans/editors/FontEditor.java: New file.
3778 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3779 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3780 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3781 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3782 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3783 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3784 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3785 * gnu/java/beans/editors/StringEditor.java: New file.
3786 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3787 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3788 * gnu/java/io/NullOutputStream.java: New file.
3789 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3790 * gnu/java/lang/ArrayHelper.java: New file.
3791 * gnu/java/lang/ClassHelper.java: New file.
3792 * gnu/java/lang/reflect/TypeSignature.java: New file.
3794 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3795 namespace back to the original Classpath gnu/java namespace.
3796 * Makefile.in: Rebuilt.
3798 * java/beans/Beans.java: Namespace change.
3799 * java/beans/EventSetDescriptor.java: Namespace change.
3800 * java/beans/Introspector.java: Namespace change.
3801 * java/beans/PropertyEditorManager.java: Namespace change.
3802 * java/io/ObjectInputStream.java: Namespace change.
3803 * java/io/ObjectOutputStream.java: Namespace change.
3804 * java/io/ObjectStreamClass.java: Namespace change.
3805 * java/io/ObjectStreamField.java: Namespace change.
3807 2000-04-21 Warren Levy <warrenl@cygnus.com>
3809 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3810 now that compiler patch is available.
3811 Removed unneeded System.loadLibrary.
3812 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3813 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3815 2000-04-19 Andrew Haley <aph@cygnus.com>
3817 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3818 and target classes have been initialized.
3820 2000-04-19 Andrew Haley <aph@cygnus.com>
3822 * java/lang/String.java: implement Serializable, Comparable.
3823 (compareTo (Object)): New method.
3825 2000-04-19 Warren Levy <warrenl@cygnus.com>
3827 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3828 instead of getField to retrieve non-public field.
3829 (getSerialPersistantFields): Ditto.
3831 2000-04-18 Warren Levy <warrenl@cygnus.com>
3833 * mauve-libgcj: Turned off object serialization tests temporarily
3834 due to compiler error.
3836 2000-04-17 Warren Levy <warrenl@cygnus.com>
3838 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3839 to avoid build problem.
3841 * mauve-libgcj: Turned on object serialization tests.
3843 2000-04-17 Tom Tromey <tromey@cygnus.com>
3845 * libgcj.spec.in (*lib): Added -lgcjawt.
3847 2000-04-17 Andrew Haley <aph@cygnus.com>
3849 * Makefile.am: Add new files:
3850 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3852 * Makefile.in: Rebuilt.
3854 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3855 interface that has no implementations.
3856 Check for an attempt to assign an abstract class to an interface.
3858 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3859 if we fail to find MessageDigest.getInstance ("SHA").
3861 * gnu/gcj/io/SimpleSHSStream.java: New file.
3862 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3863 * gnu/gcj/io/shs.cc: New file.
3864 * gnu/gcj/io/shs.h: new file.
3866 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3869 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3870 punctuation from the classname of an array element.
3872 * gcj/javaprims.h: Add SimpleDigestStream.
3874 2000-04-17 Andrew Haley <aph@cygnus.com>
3876 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3877 to getPrivateField for superclasses.
3879 2000-04-14 Andrew Haley <aph@cygnus.com>
3881 * Makefile.am: Add new files:
3882 java/io/ObjectOutputStream$PutField.h,
3883 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3884 java/io/natObjectOutputStream.cc
3885 * Makefile.in: Rebuilt.
3886 * gcj/Makefile.in: Rebuilt.
3887 * include/Makefile.in: Rebuilt.
3888 * java/lang/Class.h (getPrivateField): New method.
3889 (getPrivateMethod): Ditto.
3890 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3891 and java::io::ObjectStreamClass our friends.
3892 * java/lang/natClass.cc (getPrivateField): New method.
3893 (getPrivateMethod): Ditto.
3894 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3895 * gcj/javaprims.h: Add serialization classes.
3896 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3897 (setByteField): Ditto.
3898 (setCharField): Ditto.
3899 (setDoubleField): Ditto.
3900 (setFloatField): Ditto.
3901 (setIntField): Ditto.
3902 (setLongField): Ditto.
3903 (setShortField): Ditto.
3904 (setObjectField): Ditto.
3905 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3907 (getByteField): Ditto.
3908 (getCharField): Ditto.
3909 (getDoubleField): Ditto.
3910 (getFloatField): Ditto.
3911 (getIntField): Ditto.
3912 (getLongField): Ditto.
3913 (getShortField): Ditto.
3914 (getObjectField): Ditto.
3915 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3917 (getSerialPersistantFields): Ditto.
3918 (getDefinedSUID): Ditto.
3919 * java/io/natObjectOutputStream.cc: New file.
3920 * java/io/natObjectInputStream.cc: New file.
3922 2000-04-13 Warren Levy <warrenl@cygnus.com>
3924 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3925 problems. Revert to previous version to reproduce and when fixed.
3927 2000-04-13 Warren Levy <warrenl@cygnus.com>
3929 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3930 * gnu/gcj/io/NullOutputStream.java: New file.
3931 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3932 * java/io/BlockDataException.java: New file.
3933 * java/io/Externalizable.java: New file.
3934 * java/io/InvalidClassException.java: New file.
3935 * java/io/InvalidObjectException.java: New file.
3936 * java/io/NotActiveException.java: New file.
3937 * java/io/NotSerializableException.java: New file.
3938 * java/io/ObjectInput.java: New file.
3939 * java/io/ObjectInputStream.java: New file.
3940 * java/io/ObjectInputValidation.java: New file.
3941 * java/io/ObjectOutput.java: New file.
3942 * java/io/ObjectOutputStream.java: New file.
3943 * java/io/ObjectStreamClass.java: New file.
3944 * java/io/ObjectStreamConstants.java: New file.
3945 * java/io/ObjectStreamField.java: New file.
3946 * java/io/Replaceable.java: New file.
3947 * java/io/Resolvable.java: New file.
3948 * java/io/SerializablePermission.java: New file.
3949 * java/io/WriteAbortedException.java: New file.
3950 * java/security/BasicPermission.java: New file.
3951 * java/security/DigestOutputStream.java: New file.
3952 * java/security/Guard.java: New file.
3953 * java/security/Permission.java: New file.
3954 * java/security/PermissionCollection.java: New file.
3955 * Makefile.am: Added above files.
3956 * Makefile.in: Rebuilt.
3958 * java/beans/Beans.java (instantiate): Activated serialization code.
3959 * java/lang/SecurityManager.java (checkPermission): New method.
3961 2000-04-12 Warren Levy <warrenl@cygnus.com>
3963 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3964 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3965 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3966 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3967 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3968 * gnu/gcj/beans/editors/FontEditor.java: New file.
3969 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3970 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3971 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3972 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3973 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3974 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3975 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3976 * gnu/gcj/beans/editors/StringEditor.java: New file.
3977 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3978 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3979 * gnu/gcj/lang/ArrayHelper.java: New file.
3980 * gnu/gcj/lang/ClassHelper.java: New file.
3981 * java/beans/BeanDescriptor.java: New file.
3982 * java/beans/BeanInfo.java: New file.
3983 * java/beans/Beans.java: New file.
3984 * java/beans/Customizer.java: New file.
3985 * java/beans/DesignMode.java: New file.
3986 * java/beans/EventSetDescriptor.java: New file.
3987 * java/beans/FeatureDescriptor.java: New file.
3988 * java/beans/IndexedPropertyDescriptor.java: New file.
3989 * java/beans/IntrospectionException.java: New file.
3990 * java/beans/Introspector.java: New file.
3991 * java/beans/MethodDescriptor.java: New file.
3992 * java/beans/ParameterDescriptor.java: New file.
3993 * java/beans/PropertyChangeEvent.java: New file.
3994 * java/beans/PropertyChangeListener.java: New file.
3995 * java/beans/PropertyChangeSupport.java: New file.
3996 * java/beans/PropertyDescriptor.java: New file.
3997 * java/beans/PropertyEditor.java: New file.
3998 * java/beans/PropertyEditorManager.java: New file.
3999 * java/beans/PropertyEditorSupport.java: New file.
4000 * java/beans/PropertyVetoException.java: New file.
4001 * java/beans/SimpleBeanInfo.java: New file.
4002 * java/beans/VetoableChangeListener.java: New file.
4003 * java/beans/VetoableChangeSupport.java: New file.
4004 * java/beans/Visibility.java: New file.
4005 * java/beans/beancontext/BeanContext.java: New file.
4006 * java/beans/beancontext/BeanContextChild.java: New file.
4007 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4008 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4009 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4010 * java/beans/beancontext/BeanContextEvent.java: New file.
4011 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4012 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4013 * java/beans/beancontext/BeanContextProxy.java: New file.
4014 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4016 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4017 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4019 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4020 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4022 * java/beans/beancontext/BeanContextServices.java: New file.
4023 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4024 * java/util/AbstractCollection.java: New file.
4025 * java/util/AbstractList.java: New file.
4026 * java/util/Arrays.java: New file.
4027 * Makefile.am: Added above files.
4028 * Makefile.in: Rebuilt.
4030 2000-04-11 Warren Levy <warrenl@cygnus.com>
4032 * java/awt/AWTError.java: New file.
4033 * java/awt/AWTEvent.java: New file.
4034 * java/awt/AWTException.java: New file.
4035 * java/awt/ActiveEvent.java: New file.
4036 * java/awt/Adjustable.java: New file.
4037 * java/awt/BorderLayout.java: New file.
4038 * java/awt/Color.java: New file.
4039 * java/awt/Component.java: New file.
4040 * java/awt/Container.java: New file.
4041 * java/awt/Dimension.java: New file.
4042 * java/awt/Event.java: New file.
4043 * java/awt/Font.java: New file.
4044 * java/awt/Frame.java: New file.
4045 * java/awt/Graphics.java: New file.
4046 * java/awt/IllegalComponentStateException.java: New file.
4047 * java/awt/Image.java: New file.
4048 * java/awt/ItemSelectable.java: New file.
4049 * java/awt/LayoutManager.java: New file.
4050 * java/awt/LayoutManager2.java: New file.
4051 * java/awt/Menu.java: New file.
4052 * java/awt/MenuBar.java: New file.
4053 * java/awt/MenuComponent.java: New file.
4054 * java/awt/MenuContainer.java: New file.
4055 * java/awt/MenuItem.java: New file.
4056 * java/awt/Paint.java: New file.
4057 * java/awt/PaintContext.java: New file.
4058 * java/awt/Point.java: New file.
4059 * java/awt/Rectangle.java: New file.
4060 * java/awt/Shape.java: New file.
4061 * java/awt/TextArea.java: New file.
4062 * java/awt/TextComponent.java: New file.
4063 * java/awt/Toolkit.java: New file.
4064 * java/awt/Transparency.java: New file.
4065 * java/awt/Window.java: New file.
4066 * java/awt/natToolkit.cc: New file.
4067 * java/awt/event/AWTEventListener.java: New file.
4068 * java/awt/event/ActionEvent.java: New file.
4069 * java/awt/event/ActionListener.java: New file.
4070 * java/awt/event/AdjustmentEvent.java: New file.
4071 * java/awt/event/AdjustmentListener.java: New file.
4072 * java/awt/event/ComponentAdapter.java: New file.
4073 * java/awt/event/ComponentEvent.java: New file.
4074 * java/awt/event/ComponentListener.java: New file.
4075 * java/awt/event/ContainerAdapter.java: New file.
4076 * java/awt/event/ContainerEvent.java: New file.
4077 * java/awt/event/ContainerListener.java: New file.
4078 * java/awt/event/FocusAdapter.java: New file.
4079 * java/awt/event/FocusEvent.java: New file.
4080 * java/awt/event/FocusListener.java: New file.
4081 * java/awt/event/InputEvent.java: New file.
4082 * java/awt/event/InputMethodEvent.java: New file.
4083 * java/awt/event/InputMethodListener.java: New file.
4084 * java/awt/event/InvocationEvent.java: New file.
4085 * java/awt/event/ItemEvent.java: New file.
4086 * java/awt/event/ItemListener.java: New file.
4087 * java/awt/event/KeyAdapter.java: New file.
4088 * java/awt/event/KeyEvent.java: New file.
4089 * java/awt/event/KeyListener.java: New file.
4090 * java/awt/event/MouseAdapter.java: New file.
4091 * java/awt/event/MouseEvent.java: New file.
4092 * java/awt/event/MouseListener.java: New file.
4093 * java/awt/event/MouseMotionAdapter.java: New file.
4094 * java/awt/event/MouseMotionListener.java: New file.
4095 * java/awt/event/PaintEvent.java: New file.
4096 * java/awt/event/TextEvent.java: New file.
4097 * java/awt/event/TextListener.java: New file.
4098 * java/awt/event/WindowAdapter.java: New file.
4099 * java/awt/event/WindowEvent.java: New file.
4100 * java/awt/event/WindowListener.java: New file.
4101 * java/awt/geom/Dimension2D.java: New file.
4102 * java/awt/geom/Point2D.java: New file.
4103 * java/awt/peer/ComponentPeer.java: New file.
4104 * java/awt/peer/ContainerPeer.java: New file.
4105 * java/awt/peer/FramePeer.java: New file.
4106 * java/awt/peer/WindowPeer.java: New file.
4107 * java/util/Collection.java: New file.
4108 * java/util/Comparator.java: New file.
4109 * java/util/Iterator.java: New file.
4110 * java/util/List.java: New file.
4111 * java/util/ListIterator.java: New file.
4112 * Makefile.am: Added above files.
4113 * Makefile.in: Rebuilt.
4115 2000-04-10 Warren Levy <warrenl@cygnus.com>
4117 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4118 * java/lang/FirstThread.java: Ditto.
4119 * java/lang/StringBuffer.java: Ditto.
4120 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4122 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4123 Special case handled in java.math.BigInteger.
4124 * java/math/BigInteger.java (divide): Handle the special case when
4125 dividing by 1 and the high bit of the dividend is set.
4126 (setShiftRight): Handle case when count == 0.
4128 2000-04-05 Andrew Haley <aph@cygnus.com>
4130 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4133 2000-04-05 Andrew Haley <aph@cygnus.com>
4135 * sysdep/ia64.c (rse_address_add): Delete.
4136 (IS_NaT_COLLECTION_ADDR): Delete.
4137 (ia64_backtrace_helper): check for null unwind_info.
4139 * sysdep/ia64-frame.h: add calc_caller_bsp.
4141 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4144 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4145 (_Jv_remI): Likewise.
4146 (_Jv_divJ): Likewise.
4147 (_Jv_remJ): Likewise.
4149 * interpret.cc (continue1): Use divide subroutines to guarantee
4150 correct Java standard behaviour.
4151 Floating-point division should not abort; make it so.
4153 2000-03-29 Tom Tromey <tromey@cygnus.com>
4155 * configure: Rebuilt.
4156 * configure.in: Test against `libgcj_sjlj', not
4157 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4158 to be set even when using sjlj.
4160 2000-03-24 Andrew Haley <aph@cygnus.com>
4162 * Makefile.am: Add file addr2name.awk.
4163 * Makefile.in: Rebuilt.
4164 * addr2name.awk: New file.
4165 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4167 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4170 2000-03-22 Andrew Haley <aph@cygnus.com>
4172 * configure.host: Add -funwind-tables for IA64.
4173 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4174 * Makefile.in: Rebuilt.
4175 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4176 * sysdep/ia64.c: New file.
4177 * sysdep/ia64-frame.h: New file.
4178 * configure.in: Add sysdep/ia64.c for ia64.
4179 * configure: Rebuilt.
4181 2000-03-17 Andrew Haley <aph@cygnus.com>
4183 * java/lang/natString.cc: Remove `register' keyword.
4184 interpret.cc: ditto.
4186 2000-03-16 Andrew Haley <aph@cygnus.com>
4188 * configure.host (ia64): Enable interpreter.
4190 2000-03-14 Hans Boehm <boehm@acm.org>
4192 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4194 2000-03-14 Andrew Haley <aph@cygnus.com>
4196 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4199 2000-03-10 Andrew Haley <aph@cygnus.com>
4201 * java/lang/ieeefp.h: Import latest version from fdlibm.
4203 2000-03-14 Andrew Haley <aph@cygnus.com>
4205 * prims.cc (_Jv_ThrowSignal): New function.
4206 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4208 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4209 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4210 * include/ppc-signal.h: New file.
4212 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4214 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4215 * java/lang/natThread.java (initialize_native): Cast `data' to
4217 * gnu/gcj/RawData.java: Clarify documentation.
4219 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4220 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4221 `jarFile', not `jarFileURL'.
4223 2000-05-15 Andrew Haley <aph@cygnus.com>
4225 * include/ppc-signal.h: New file.
4227 2000-05-11 Tom Tromey <tromey@cygnus.com>
4229 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4230 file headers, don't include `size' in the skip call.
4232 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4234 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4235 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4237 (replace): Reimplemented. Fix javadoc.
4238 (reverse): Call ensureCapacity_unsynchronized().
4239 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4241 (replace): Calculate length for arraycopy() correctly.
4243 2000-05-09 Tom Tromey <tromey@cygnus.com>
4245 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4247 (insert(int,char[],int,int): New method.
4248 (delete): New method from Classpath.
4249 (deleteCharAt): Likewise.
4250 (substring): Likewise.
4251 (shared): No longer private.
4252 Added JavaDoc comments from Classpath.
4253 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4256 2000-05-07 Tom Tromey <tromey@cygnus.com>
4258 * Makefile.in: Rebuilt.
4259 * Makefile.am (LIBLINK): New macro.
4260 (libgcj_la_LINK): Use it.
4261 (libgcjawt_la_LINK): Likewise.
4263 2000-05-06 Tom Tromey <tromey@cygnus.com>
4265 * Makefile.in: Rebuilt.
4266 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4268 2000-05-05 Tom Tromey <tromey@cygnus.com>
4270 Fix for PR libgcj/220:
4271 * Makefile.in: Rebuilt.
4272 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4273 (jv_convert_LDFLAGS): Likewise.
4274 (libgcj_la_LDFLAGS): Likewise.
4275 (GCJLINK): New macro.
4276 (jv_convert_LINK): Use it.
4277 (gij_LINK): Likewise.
4278 (libgcj_la_LINK): New macro.
4279 (libgcjawt_la_LINK): Likewise.
4281 2000-05-04 Tom Tromey <tromey@cygnus.com>
4283 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4285 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4289 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4291 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4292 (_Jv_IsAssignableFrom): Ditto.
4293 (_Jv_IsInstanceOf): Ditto.
4294 (_Jv_CheckCast): Ditto.
4295 (_Jv_CheckArrayStore): Ditto.
4296 * java/lang/Class.h (_Jv_InitClass): Ditto.
4297 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4302 (_Jv_MonitorExit): Ditto.
4303 * boehm.cc (_Jv_MarkObj): Ditto.
4304 (_Jv_MarkObj): Ditto.
4305 (_Jv_MarkArray): Ditto.
4306 * prims.cc (_Jv_AllocObject): Ditto.
4307 (_Jv_NewObjectArray): Ditto.
4308 (_Jv_NewPrimArray): Ditto.
4309 (_Jv_Malloc): Ditto.
4310 (_Jv_Realloc): Ditto.
4311 (_Jv_MallocUnchecked): Ditto.
4317 2000-05-04 Tom Tromey <tromey@cygnus.com>
4319 * java/util/Locale.java (Locale): Don't explicitly check for
4321 * java/util/Hashtable.java (containsKey): Don't explicitly check
4324 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4326 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4328 * java/text/StringCharacterIterator.java
4329 (StringCharacterIterator): Don't check for null.
4330 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4332 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4333 check for null pointer.
4334 (leaveGroup): Likewise.
4335 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4337 (setData): Likewise.
4338 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4341 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4343 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4344 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4345 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4346 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4347 -rpath for in-gcc builds.
4348 * Makefile.in: Rebuilt.
4350 2000-04-28 Tom Tromey <tromey@cygnus.com>
4352 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4355 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4357 * libjava/java/lang/String.java (toString): Remove `final' hack.
4359 2000-04-05 Tom Tromey <tromey@cygnus.com>
4361 Runtime support for PR gcj/2:
4362 * prims.cc (_Jv_ThrowNullPointerException): New function.
4363 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4365 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4367 * prims.cc (_Jv_NewObjectArray): Fix typo.
4369 2000-04-26 Tom Tromey <tromey@cygnus.com>
4371 * Makefile.in: Rebuilt.
4372 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4374 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4376 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4379 2000-04-22 Anthony Green <green@cygnus.com>
4381 * include/jvm.h (__builtin_expect): Define as unused for now.
4382 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4386 (_Jv_MonitorExit): Ditto.
4387 * boehm.cc (_Jv_MarkObj): Ditto.
4388 (_Jv_MarkObj): Ditto.
4389 (_Jv_MarkArray): Ditto.
4390 (_Jv_AllocBytes): Ditto.
4391 * prims.cc (_Jv_AllocObject): Ditto.
4392 (_Jv_NewObjectArray): Ditto.
4393 (_Jv_NewPrimArray): Ditto.
4394 (_Jv_Malloc): Ditto.
4395 (_Jv_Realloc): Ditto.
4396 (_Jv_MallocUnchecked): Ditto.
4402 * include/Makefile.in: Rebuilt.
4403 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4405 2000-04-21 Tom Tromey <tromey@cygnus.com>
4407 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4408 Yet another new version from Classpath.
4410 Fix for PR libgcj/15:
4411 * java/util/natGregorianCalendar.cc (_REENTRANT,
4412 _POSIX_PTHREAD_SEMANTICS): Don't define.
4413 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4414 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4416 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4418 * configure: Rebuilt.
4419 * configure.in: If using POSIX threads, define _REENTRANT if
4420 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4421 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4423 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4424 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4425 version from Classpath.
4427 Fix for PR libgcj/213:
4428 * Makefile.in: Rebuilt.
4429 * Makefile.am (gij_SOURCES): Added gij.cc.
4430 (EXTRA_gij_SOURCES): Removed.
4431 (gij_LDADD): Removed gij.lo.
4432 (gij_DEPENDENCIES): Likewise.
4433 ($(gij_OBJECTS)): Depend on nat_headers.
4435 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4436 `setURL', not `url.set'.
4438 2000-04-20 Tom Tromey <tromey@cygnus.com>
4440 Fix for PR java.io/204:
4441 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4442 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4445 Fix for PR libgcj/212:
4446 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4447 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4448 * java/lang/Class.h (_Jv_word): Declare.
4450 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4452 2000-04-19 Tom Tromey <tromey@cygnus.com>
4454 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4455 doesn't have a loader.
4457 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4459 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4460 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4462 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4464 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4466 (available): Initialize `where' to prevent bogus compiler warning.
4468 2000-04-12 Tom Tromey <tromey@cygnus.com>
4470 * java/lang/natString.cc (intern): Temporarily disable finalizer
4473 * java/lang/natString.cc (unintern): Added `obj' argument.
4474 (intern): Register finalizer for string.
4475 * java/lang/String.java (unintern): Now static; added obj
4478 2000-04-11 Tom Tromey <tromey@cygnus.com>
4480 * java/util/Vector.java (VectorEnumeration): Now `final'.
4481 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4482 (HashtableEnumeration): Likewise.
4483 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4484 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4486 2000-04-10 Warren Levy <warrenl@cygnus.com>
4488 * java/io/ObjectStreamException.java: New file.
4489 * java/io/OptionalDataException.java: New file.
4490 * java/io/StreamCorruptedException.java: New file.
4491 * java/math/BigDecimal.java: New file.
4492 * java/sql/CallableStatement.java: New file.
4493 * java/sql/Connection.java: New file.
4494 * java/sql/DataTruncation.java: New file.
4495 * java/sql/DatabaseMetaData.java: New file.
4496 * java/sql/Date.java: New file.
4497 * java/sql/Driver.java: New file.
4498 * java/sql/DriverManager.java: New file.
4499 * java/sql/DriverPropertyInfo.java: New file.
4500 * java/sql/PreparedStatement.java: New file.
4501 * java/sql/ResultSet.java: New file.
4502 * java/sql/ResultSetMetaData.java: New file.
4503 * java/sql/SQLException.java: New file.
4504 * java/sql/SQLWarning.java: New file.
4505 * java/sql/Statement.java: New file.
4506 * java/sql/Time.java: New file.
4507 * java/sql/Timestamp.java: New file.
4508 * java/sql/Types.java: New file.
4509 * Makefile.am: Added above new files.
4510 * Makefile.in: Rebuilt.
4512 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4513 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4514 DatagramSocket constructor instead of null.
4516 2000-04-08 Anthony Green <green@cygnus.com>
4518 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4521 2000-04-08 Anthony Green <green@cygnus.com>
4523 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4524 (_Jv_MutexUnlock): Ditto.
4525 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4526 (_Jv_MutexUnlock): Ditto.
4528 2000-04-08 Anthony Green <green@cygnus.com>
4530 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4531 (ensureCapacity_unsynchronized): New private method.
4532 (append): Use ensureCapacity_unsynchronized.
4534 2000-04-08 Tom Tromey <tromey@cygnus.com>
4536 * Makefile.in: Rebuilt.
4537 * Makefile.am (awt_java_source_files): Added new files.
4538 * java/awt/IllegalComponentStateException.java: New file.
4539 * java/awt/ItemSelectable.java: New file.
4540 * java/awt/event/WindowEvent.java: Finished.
4541 * java/awt/event/TextEvent.java: Finished.
4542 * java/awt/event/ContainerEvent.java: New file.
4543 * java/awt/Component.java (getX, getY): New methods.
4544 * java/awt/event/PaintEvent.java: New file.
4545 * java/awt/event/MouseEvent.java: New file.
4546 * java/awt/ActiveEvent.java: New file.
4547 * java/awt/event/KeyEvent.java: Finished.
4548 * java/awt/event/ItemEvent.java: New file.
4549 * java/awt/Adjustable.java: New file.
4550 * java/awt/event/InputMethodEvent.java: New file.
4551 * java/awt/event/InputEvent.java: Finished.
4552 * java/awt/event/FocusEvent.java: New file.
4553 * java/awt/event/MouseMotionAdapter.java: New file.
4554 * java/awt/event/MouseAdapter.java: New file.
4555 * java/awt/event/KeyAdapter.java: New file.
4556 * java/awt/event/FocusAdapter.java: New file.
4557 * java/awt/event/ContainerAdapter.java: New file.
4558 * java/awt/event/ComponentEvent.java: Finished.
4559 * java/awt/event/AdjustmentEvent.java: New file.
4560 * java/awt/event/ComponentAdapter.java: New file.
4561 * java/awt/event/ActionEvent.java: Finished.
4562 * java/awt/event/MouseMotionListener.java: New file.
4563 * java/awt/event/MouseListener.java: New file.
4564 * java/awt/event/ItemListener.java: New file.
4565 * java/awt/event/InputMethodListener.java: New file.
4566 * java/awt/event/ContainerListener.java: New file.
4567 * java/awt/event/FocusListener.java: New file.
4568 * java/awt/event/ComponentListener.java: New file.
4569 * java/awt/event/AWTEventListener.java: New file.
4570 * java/awt/event/AdjustmentListener.java: New file.
4572 2000-04-08 Anthony Green <green@cygnus.com>
4574 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4575 check when we have to.
4577 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4580 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4583 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4584 inline hasMoreElements.
4586 2000-04-05 Tom Tromey <tromey@cygnus.com>
4588 * configure: Rebuilt.
4589 * configure.in: Recognize --enable-java-awt.
4590 (AWT): New conditional.
4591 * Makefile.in: Rebuilt.
4592 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4594 (libgcjawt_la_SOURCES): New macro.
4595 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4596 (libgcjawt_la_DEPENDENCIES): Likewise.
4597 (libgcjawt_la_LIBADD): Likewise.
4598 (libgcjawt_la_LDFLAGS): Likewise.
4599 (libgcj.zip): Depend on cond_java_awt_source_files
4600 (cond_awt_java_source_files): New macro.
4601 (MOSTLYCLEANFILES): Added awto_files.
4602 (awto_files): New macro. Use where javao_files used.
4603 (nat_headers): Use cond_awt_java_source_files.
4605 2000-04-04 Tom Tromey <tromey@cygnus.com>
4607 * Makefile.in: Rebuilt.
4608 * Makefile.am (awt_java_source_files): Added AWTException.java.
4609 * java/awt/AWTException.java: New file.
4611 2000-04-03 Tom Tromey <tromey@cygnus.com>
4613 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4614 commentary from Alex.
4616 * Makefile.in: Rebuilt.
4617 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4620 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4622 * configure: Rebuilt.
4623 * configure.in: Add --disable-jvmpi.
4624 * include/config.h.in: Rebuilt.
4625 * acconfig.h: Add ENABLE_JVMPI.
4627 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4628 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4629 (_Jv_JVMPI_Notify_THREAD_END): New define.
4630 (_Jv_JVMPI_Notify_THREAD_END): New define.
4631 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4632 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4633 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4635 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4638 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4639 (finish_): Generate JVMPI thread end events.
4640 (run_): Generate JVMPI thread start events.
4641 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4642 preloaded JNI library.
4643 Include JVMPI headers if necessary.
4644 (run): Generate JVMPI thread start events.
4646 * boehm.cc: Define GC_disable and GC_enable.
4647 (_Jv_DisableGC): New function.
4648 (_Jv_EnableGC): New function.
4649 (disable_gc_mutex): Declare.
4650 * nogc.cc (_Jv_DisableGC): New function.
4651 (_Jv_EnableGC): New function.
4653 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4654 (_Jv_JVMPI_Interface): Define.
4655 (jvmpiEnableEvent): New function.
4656 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4658 * include/jvmpi.h: New file.
4660 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4662 * Makefile.in: New #defines and friends for Thread.h.
4663 * Makefile.am: Ditto.
4664 * posix-threads.cc: (struct starter): Remove `object'.
4665 (_Jv_CondWait): Use interruptable condition variables and new
4666 recursive mutexes. New return codes on interrupt or non-ownership
4668 (_Jv_CondNotify): Ditto.
4669 (_Jv_CondNotifyAll): Ditto.
4670 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4671 the target thread by signaling its wait condition.
4672 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4673 not the starter struct. Initialize wait_mutex and wait_cond.
4674 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4676 (_Jv_MutexUnlock): Ditto.
4677 (really_start): Set info->data->thread from pthread_self() to work
4678 around a race condition. Destroy wait_mutex and wait_cond when run()
4680 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4681 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4683 startable_flag: New private field.
4684 (Thread): Initialize `startable_flag'.
4685 (toString): Check for null thread group.
4686 * java/lang/natThread.cc: (struct natThread): New fields
4687 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4688 (class locker): Removed.
4689 (initialize_native): Initialize `join_cond' and `join_mutex'.
4690 (interrupt): Now just calls _Jv_ThreadInterrupt().
4691 (join): Simplified. Just wait on the target thread's join condition.
4692 (finish_): Remove join list code. Unset thread group. Signal
4693 potential joiners by notifying the dying threads join_cond.
4694 (start): Check for illegal restarts.
4695 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4697 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4698 #defines and #ifdefs.
4699 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4700 `wait_mutex', `next'.
4701 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4702 directly mapping to pthread_cond_t.
4703 (struct _Jv_Mutex_t): New recursive implementation.
4704 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4705 _Jv_HaveCondDestroy: Never define this for posix-threads.
4706 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4707 (_Jv_CondNotifyAll): Ditto.
4708 (_Jv_MutexLock): Ditto.
4709 (_Jv_MutexUnlock): Ditto.
4710 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4711 (_Jv_MutexDestroy): Ditto.
4712 (_Jv_CondDestroy): Removed.
4713 (_Jv_PthreadGetMutex): Removed.
4714 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4715 error. Add a FIXME about this.
4716 (_Jv_CondNotifyAll): Ditto.
4717 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4718 _JV_NOT_OWNER on other errors. Add FIXME.
4720 2000-03-26 Tom Tromey <tromey@cygnus.com>
4722 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4724 (call): Don't throw exception here.
4726 2000-03-26 Tom Tromey <tromey@cygnus.com>
4728 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4729 * interpret.cc: Use SIZEOF_VOID_P.
4730 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4731 (_Jv_loadLong): Likewise.
4732 (_Jv_storeDouble): Likewise.
4733 * configure: Rebuilt.
4734 * configure.in: Check size of void*.
4736 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4738 2000-03-26 Hans Boehm <boehm@acm.org>
4740 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4741 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4743 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4744 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4745 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4746 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4748 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4749 (FFI_RAW_SIZE): Likewise.
4750 (_Jv_InterpMethod::ncode): Use them.
4751 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4752 STORED): Define differently on a 64 bit machine.
4753 (continue1): Use ffi_java_raw_call when appropriate.
4755 2000-03-24 Warren Levy <warrenl@cygnus.com>
4757 * java/math/BigInteger.java(divide): Handle the special case when
4758 dividing by 1 and the high bit of the dividend is set.
4759 (setShiftRight): Handle case when count == 0.
4761 2000-03-24 Warren Levy <warrenl@cygnus.com>
4763 * java/awt/Font.java(isBold): Fix syntax error.
4765 * java/awt/Frame.java(postEvent): ditto.
4766 * java/awt/Menu.java(postEvent): ditto.
4767 * java/awt/MenuBar.java(postEvent): ditto.
4768 * java/awt/Toolkit.java(init): Included a stub.
4770 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4772 * java/awt/Event.java: Add all the event type constants.
4773 (Event): Implemented constructors.
4774 (controlDown): Implemented.
4775 (metaDown): Implemented.
4776 (paramString): Stubbed.
4777 (shiftDown): Implemented.
4778 (toString): Implemented.
4779 (translate): Implemented.
4781 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4783 * java/lang/natClass.cc (isInstance): Initialize `this'.
4784 (isAssignableFrom): Initialize `this' and `klass'.
4785 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4786 implemented by any loaded class, so return false.
4787 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4788 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4790 2000-03-19 Warren Levy <warrenl@cygnus.com>
4792 * java/awt/Color.java: Specified java.io for Serializable.
4793 * java/awt/Toolkit.java: Imported java.net.URL.
4795 2000-03-19 Warren Levy <warrenl@cygnus.com>
4797 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4799 2000-03-16 Warren Levy <warrenl@cygnus.com>
4801 * java/awt/Color.java: New file.
4802 * java/awt/Graphics.java: New file.
4803 * java/awt/Image.java: New file.
4804 * java/awt/Paint.java: New file.
4805 * java/awt/PaintContext.java: New file.
4806 * java/awt/Transparency.java: New file.
4807 * java/util/Collection.java: New file.
4808 * java/util/Comparator.java: New file.
4809 * java/util/Iterator.java: New file.
4810 * java/util/List.java: New file.
4811 * java/util/ListIterator.java: New file.
4812 * Makefile.am: Added above new files.
4813 * Makefile.in: Rebuilt.
4815 * java/awt/Font.java (PLAIN): New field.
4817 (ITALIC): New field.
4818 (ROMAN_BASELINE): New field.
4819 (CENTER_BASELINE): New field.
4820 (HANGING_BASELINE): New field.
4824 (pointSize): New field.
4825 (Font): Implemented constructor.
4826 (isPlain): Implemented method.
4827 (isBold): Implemented method.
4828 (isItalic): Implemented method.
4829 (getName): Implemented method.
4830 (getStyle): Implemented method.
4831 (getSize): Implemented method.
4832 (getSize2D): Implemented method.
4834 * java/awt/Frame.java (getFont): Stubbed.
4835 (postEvent): Stubbed.
4837 * java/awt/Menu.java (postEvent): Stubbed.
4838 * java/awt/MenuBar.java (getFont): Stubbed.
4839 (postEvent): Stubbed.
4840 * java/awt/Toolkit.java (getImage): Added abstract method.
4842 2000-03-15 Tom Tromey <tromey@cygnus.com>
4844 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4846 * prims.cc (win32_exception_handler): Reformatted.
4848 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4849 (_Jv_HaveMutexDestroy): Likewise.
4851 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4853 * java/io/natFileDescriptorWin32.cc: New file.
4854 * java/io/natFileWin32.cc: New file.
4855 * java/net/natInetAddress.cc: Added conditional inclusion of
4856 Windows / Winsock headers.
4857 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4858 inclusion of Windows / Winsock headers.
4859 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4860 Windows / Winsock headers.
4861 * include/win32-signal.h: New file.
4862 * include/win32-threads.h: New file.
4863 * win32-threads.cc: New file.
4864 * exception.cc (win32_get_restart_frame): New function.
4865 * prims.cc (win32_exception_handler): New function.
4866 (main_init) Performs Winsock initialisation.
4867 (main_init) Installs exeception handler.
4869 2000-03-14 Tom Tromey <tromey@cygnus.com>
4871 * jni.cc (mangled_name): Fixed assertion.
4872 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4873 turned assert into actual failure.
4875 2000-03-09 Warren Levy <warrenl@cygnus.com>
4877 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4878 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4879 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4881 2000-03-09 Warren Levy <warrenl@cygnus.com>
4883 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4884 * java/security/DigestException.java: New file.
4885 * java/security/GeneralSecurityException.java: New file.
4886 * java/security/InvalidAlgorithmParameterException.java: New file.
4887 * java/security/InvalidKeyException.java: New file.
4888 * java/security/InvalidParameterException.java: New file.
4889 * java/security/Key.java: New file.
4890 * java/security/KeyException.java: New file.
4891 * java/security/KeyPair.java: New file.
4892 * java/security/KeyPairGenerator.java: New file.
4893 * java/security/KeyPairGeneratorSpi.java: New file.
4894 * java/security/NoSuchProviderException.java: New file.
4895 * java/security/PrivateKey.java: New file.
4896 * java/security/Provider.java: New file.
4897 * java/security/PublicKey.java: New file.
4898 * java/security/SecureRandom.java: New file.
4899 * java/security/Security.java: New file.
4900 * java/security/Signature.java: New file.
4901 * java/security/SignatureException.java: New file.
4902 * java/security/interfaces/DSAKey.java: New file.
4903 * java/security/interfaces/DSAParams.java: New file.
4904 * java/security/interfaces/DSAPrivateKey.java: New file.
4905 * java/security/interfaces/DSAPublicKey.java: New file.
4906 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4907 * java/security/interfaces/RSAPrivateKey.java: New file.
4908 * java/security/interfaces/RSAPublicKey.java: New file.
4909 * java/security/spec/AlgorithmParameterSpec.java: New file.
4910 * java/security/spec/InvalidKeySpecException.java: New file.
4911 * java/security/spec/InvalidParameterSpecException.java: New file.
4912 * java/security/spec/KeySpec.java: New file.
4913 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4914 * java/security/spec/RSAPrivateKeySpec.java: New file.
4915 * java/security/spec/RSAPublicKeySpec.java: New file.
4916 * Makefile.am: Added above java.security files.
4917 * Makefile.in: Rebuilt.
4919 * java/security/MessageDigest.java: Rewritten.
4920 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4922 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4926 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4928 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4929 _Jv_PrepareConstantTimeTables.
4930 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4931 classes should have an IDT, so don't return if klass is an array
4934 2000-03-08 Tom Tromey <tromey@cygnus.com>
4936 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4937 of `void' to be created.
4939 2000-03-08 Warren Levy <warrenl@cygnus.com>
4941 * java/math/BigInteger.java(signum): Handle zero properly.
4943 2000-03-07 Tom Tromey <tromey@cygnus.com>
4945 * All files: Updated copyright information.
4946 * COPYING: New file.
4947 * COPYING.LIB: Removed.
4948 * LIBGCJ_LICENSE: We now use GPL + special exception.
4950 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4952 * resolve.cc (_Jv_SearchMethodInClass): New function.
4953 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4954 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4956 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4958 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4959 (struct _Jv_ifaces): New declaration.
4960 JV_CLASS: New macro definition.
4961 (getComponentType): Relocate below isArray() for inlining.
4962 (getModifiers): Declare `inline'.
4963 (getSuperclass): Ditto.
4965 (isPrimitive): Ditto.
4966 (_Jv_IsAssignableFrom): New prototype.
4967 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4969 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4970 Check for JV_STATE_DONE before invoking initializeClass().
4971 (_Jv_PrepareConstantTimeTables): New prototype.
4972 (_Jv_GetInterfaces): Ditto.
4973 (_Jv_GenerateITable): Ditto.
4974 (_Jv_GetMethodString): Ditto.
4975 (_Jv_AppendPartialITable): Ditto.
4976 (_Jv_FindIIndex): Ditto.
4977 depth, ancestors, idt: New class fields.
4979 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4980 inline function `_Jv_IsAssignableFrom'. Use that function.
4981 (isInstance): Declare `inline'.
4982 (initializeClass): Get lock on class before checking `state'. Unlock
4983 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4985 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4986 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4987 class->depth and ancestor table.
4988 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4989 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4990 _Jv_IsAssignableFrom.
4991 (_Jv_CheckArrayStore): Ditto.
4992 (_Jv_LookupInterfaceMethodIdx): New function.
4993 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4994 (_Jv_PrepareConstantTimeTables): New function.
4995 (_Jv_IndexOf): Ditto.
4996 (_Jv_GetInterfaces): Ditto.
4997 (_Jv_GenerateITable): Ditto.
4998 (_Jv_GetMethodString): Ditto.
4999 (_Jv_AppendPartialITable): Ditto.
5000 iindex_mutex, iindex_mutex_initialized: New static fields.
5001 (_Jv_FindIIndex): New function.
5003 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5005 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5006 (_Jv_CheckArrayStore): Ditto.
5007 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5008 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5009 Moved to gcj/array.h.
5010 (_Jv_Realloc): New function.
5012 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5014 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5015 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5016 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5017 JvNewDoubleArray): Implementations moved from prims.cc and
5020 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5022 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5024 2000-03-06 Tom Tromey <tromey@cygnus.com>
5026 * jni.cc (MARK_NONE): New define.
5027 (MARK_USER): Likewise.
5028 (MARK_SYSTEM): Likewise.
5029 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5031 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5032 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5033 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5034 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5036 (call): Use MARK_SYSTEM.
5037 (_Jv_GetJNIEnvNewFrame): New function.
5038 (_Jv_LookupJNIMethod): New function.
5039 (_Jv_JNI_PopSystemFrame): New function.
5040 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5042 2000-03-05 Tom Tromey <tromey@cygnus.com>
5044 Fix for PR libgcj/43:
5045 * include/Makefile.in: Rebuilt.
5046 * include/Makefile.am (include_HEADERS): New define.
5048 2000-03-05 Anthony Green <green@redhat.com>
5050 * gcj/javaprims.h ("Java"): Remove FirstThread.
5052 * configure.host: Fix __NO_MATH_INLNES botch.
5054 * Makefile.in: Rebuilt.
5055 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5056 (gnu/gcj/runtime/FirstThread.h): Moved.
5057 (ordinary_java_source_files): Move FirstThread.java.
5058 * prims.cc: Deal with FirstThread movement.
5060 (_Jv_RunMain): Ditto.
5062 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5063 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5065 2000-03-05 Warren Levy <warrenl@cygnus.com>
5067 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5068 Handle null addresses.
5070 2000-03-04 Anthony Green <green@redhat.com>
5072 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5075 2000-03-04 Anthony Green <green@redhat.com>
5077 * configure: Rebuilt.
5078 * configure.in (ZLIBTESTSPEC): New macro.
5079 (GCTESTSPEC): New macro.
5080 (LIBGCJTESTSPEC): New macro.
5081 * libgcj-test.spec.in: New file.
5083 2000-03-02 Tom Tromey <tromey@cygnus.com>
5085 * include/java-interp.h: Don't include MethodInvocation.h.
5086 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5087 * Makefile.in: Rebuilt.
5088 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5089 (ordinary_java_source_files): Don't mention
5090 MethodInvocation.java.
5091 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5092 * interpret.cc (MethodInvocation::continue1): Removed.
5093 (run): Handle exceptions here.
5094 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5096 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5098 (defineClass2): Removed.
5100 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5102 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5104 (hack_call): Removed.
5106 * java/lang/Class.h (Class): Removed hackRunInitializers,
5108 * java/lang/natClass.cc (hackRunInitializers): Removed.
5109 (initializeClass): Catch exceptions here.
5110 Include ExceptionInInitializerError.h.
5111 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5114 * java/lang/Object.h (Object): Don't mention hack12_6.
5115 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5117 * java/lang/Object.java (hack12_6): Removed.
5119 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5120 (start): Use run_, not run__.
5121 * java/lang/Thread.java (run_): Renamed from run__; old run_
5124 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5125 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5126 (_Jv_JNI_DefineClass): Likewise.
5127 (_Jv_JNI_ThrowNew): Likewise.
5128 (_Jv_JNI_AllocObject): Likewise.
5129 (_Jv_JNI_GetAnyMethodID): Likewise.
5130 (_Jv_JNI_CallAnyMethodV): Likewise.
5131 (_Jv_JNI_CallAnyMethodA): Likewise.
5132 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5133 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5134 (_Jv_JNI_GetAnyFieldID): Likewise.
5135 (_Jv_JNI_NewString): Likewise.
5136 (_Jv_JNI_NewStringUTF): Likewise.
5137 (_Jv_JNI_GetStringUTFChars): Likewise.
5138 (_Jv_JNI_NewObjectArray): Likewise.
5139 (_Jv_JNI_NewPrimitiveArray): Likewise.
5140 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5141 (_Jv_JNI_GetStringRegion): Likewise.
5142 (_Jv_JNI_GetStringUTFRegion): Likewise.
5143 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5144 (_Jv_JNI_MonitorEnter): Likewise.
5145 (_Jv_JNI_MonitorExit): Likewise.
5146 (_Jv_JNI_ToReflectedField): Likewise.
5147 (_Jv_JNI_ToReflectedMethod): Likewise.
5148 (_Jv_JNI_RegisterNatives): Likewise.
5149 (_Jv_JNI_AttachCurrentThread): Likewise.
5150 (_Jv_JNI_DestroyJavaVM): Likewise.
5152 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5154 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5155 error caused by the incorrect casting of a long to an int.
5157 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5159 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5160 SIGSEV caused by use of the wrong instance variable.
5162 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5164 * java/io/File.java (File(String, String)): For dirPath, treat an
5165 empty String the same as `null'.
5167 2000-02-26 Anthony Green <green@cygnus.com>
5169 * gnu/gcj/io/MimeTypes.java: Test for null.
5171 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5172 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5174 * java/net/URLConnection.java: Update copyright notice.
5176 2000-02-25 Tom Tromey <tromey@cygnus.com>
5178 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5181 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5183 * java/net/URLConnection.java (initializeDateFormats): New
5185 (getHeaderFieldDate): Call initializeDateFormats if required.
5186 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5188 Fix for PR libgcj/38.
5190 2000-02-24 Warren Levy <warrenl@cygnus.com>
5192 * java/math/BigInteger.java(ival): Made private.
5196 2000-02-20 Anthony Green <green@cygnus.com>
5198 * Makefile.in: Rebuilt.
5199 * Makefile.am (ordinary_java_source_files): Add
5200 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5202 * scripts/MakeDefaultMimeTypes.java: New file.
5203 * scripts/mime.types: New file.
5204 * scripts/classes.pl: Moved from top level.
5205 * classes.pl: Moved to scripts directory.
5207 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5209 * gnu/gcj/io/MimeTypes.java: New file.
5210 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5212 2000-02-20 Tom Tromey <tromey@cygnus.com>
5214 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5216 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5218 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5221 2000-02-18 Tom Tromey <tromey@cygnus.com>
5223 * include/jvm.h (_Jv_GetJavaVM): Declare.
5224 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5225 (_Jv_MethodBase::get_method): New method.
5226 (_Jv_JNIMethod::set_function): New method.
5227 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5228 (_Jv_JNI_RegisterNatives): New function.
5229 (_Jv_JNIFunctions): Updated for new functions.
5230 (_Jv_GetJavaVM): New function.
5231 (_Jv_JNI_GetJavaVM): Use it. Now static.
5232 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5233 is already a Java thread but does not have a JNIEnv yet.
5235 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5238 2000-02-17 Tom Tromey <tromey@cygnus.com>
5240 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5243 2000-02-16 Tom Tromey <tromey@cygnus.com>
5245 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5247 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5248 (_Jv_JNI_NewObject): Likewise.
5249 (_Jv_JNI_NewObjectA): Likewise.
5250 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5251 as "return" type to _Jv_CallAnyMethodA.
5252 (_Jv_JNI_CallAnyMethodA): Likewise.
5253 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5255 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5258 2000-02-15 Tom Tromey <tromey@cygnus.com>
5260 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5262 (init_cif): Added `rtype_p' argument.
5263 * include/java-interp.h (class _Jv_MethodBase): Added
5265 (class _Jv_InterpMethod): Removed args_raw_size.
5266 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5267 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5268 class pointer as well as the ordinary arguments.
5270 * jni.cc (mangled_name): Skip leading `(' in signature.
5272 * jni.cc (add_char): Added missing `else'.
5274 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5277 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5281 * java/lang/natRuntime.cc (_load): Include library path with
5284 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5287 * java/lang/natThread.cc (dumpStack): Removed.
5288 * java/lang/Thread.java (dumpStack): Implemented.
5290 2000-02-15 Tom Tromey <tromey@cygnus.com>
5292 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5293 with `lib' for loadLibrary. Fixes PR gcj/150.
5295 2000-02-14 Warren Levy <warrenl@cygnus.com>
5297 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5299 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5303 (modPow): Rewritten to not use the naive, slow, brute force approach.
5304 (isProbablePrime): Implemented.
5305 (testBit): Implemented.
5306 (flipBit): Implemented.
5307 (getLowestSetBit): Implemented.
5309 2000-02-16 Anthony Green <green@redhat.com>
5311 * configure.host: Use the same options for i386 and i486 as we do
5314 2000-02-12 Tom Tromey <tromey@cygnus.com>
5316 * java/io/File.java (createTempFile): Use low bits from counter,
5319 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5321 * THANKS: More thanks.
5323 2000-02-11 Tom Tromey <tromey@cygnus.com>
5325 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5326 astore instruction. From Hans Boehm.
5328 2000-02-11 Warren Levy <warrenl@cygnus.com>
5330 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5331 (BigInteger(String)): New constructor.
5332 (not): Rewritten using version from Kawa's BitOps class.
5333 (valueOf): New private methods from Kawa's BitOps class.
5340 (andNot): Implemented.
5341 (clearBit): Implemented.
5342 (setBit): Implemented.
5343 (bitCount): Implemented.
5344 (toByteArray): Implemented.
5346 2000-02-11 Tom Tromey <tromey@cygnus.com>
5348 * java/io/File.java (nextValue): Now synchronized.
5350 2000-02-10 Tom Tromey <tromey@cygnus.com>
5352 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5353 * java/io/FileDescriptor.java (EXCL): New static field.
5354 * java/io/File.java (tmpdir): New static field.
5355 (createTempFile): New method.
5356 (nextValue): New method.
5357 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5360 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5361 (jboolean): Declare as an attributed int, not a bool.
5362 (_Jv_func): Declare differently for C.
5364 * gnu/gcj/jni/natNativeThread.cc: New file.
5365 * gnu/gcj/jni/NativeThread.java: New file.
5366 * java/lang/Thread.java (data): Now a RawData.
5367 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5369 * Makefile.in: Rebuilt.
5370 * Makefile.am (java/lang/Thread.h): New target.
5371 (ordinary_java_source_files): Added NativeThread.java.
5372 (nat_source_files): Added natNativeThread.cc.
5373 * java/lang/natThread.cc: Include <jni.h>
5374 (struct natThread): Added `jni_env' field.
5375 (_Jv_GetCurrentJNIEnv): New function.
5376 (_Jv_SetCurrentJNIEnv): Likewise.
5377 (initialize_native): Initialize jni_env.
5379 * jni.cc (ThreadGroupClass): New define.
5380 (_Jv_JNI_InvokeFunctions): New structure.
5381 (JNI_GetCreatedJavaVMs): New function.
5382 (the_vm): New global.
5383 (JNI_GetDefaultJavaVMInitArgs): New function.
5384 Include NativeThread.h.
5385 (NativeThreadClass): New define.
5386 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5387 (_Jv_JNI_DestroyJavaVM): New function.
5388 (_Jv_JNI_AttachCurrentThread): New function.
5389 (_Jv_JNI_DetachCurrentThread): New function.
5390 (_Jv_JNI_GetEnv): New function.
5391 (JNI_CreateJavaVM): New function.
5392 (_Jv_JNI_GetJavaVM): New function.
5393 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5394 * include/jni.h (JavaVMAttachArgs): New structure.
5395 (JNI_EDETACHED): New define.
5396 (JNI_EVERSION): Likewise.
5397 (JavaVM): Define properly.
5398 (struct JNIInvokeInterface): New structure.
5399 (class _Jv_JavaVM): New class.
5400 (JNI_OnLoad, JNI_OnUnload): Declare.
5401 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5402 JNI_GetCreatedJavaVMs): Declare.
5403 (JavaVMInitArgs): New typedef.
5404 (JavaVMOption): Likewise.
5405 (JNI_ERR): New define.
5408 2000-02-10 Andrew Haley <aph@cygnus.com>
5410 * interpret.cc: Don't include fdlibm.h.
5411 Replace #if with #ifdef throughout.
5412 Declare extern __ieee754_fmod.
5413 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5415 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5416 Search class hierarchy for superclass vtable.
5418 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5419 off the end of a pointer list.
5421 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5425 2000-02-09 Tom Tromey <tromey@cygnus.com>
5427 * java/lang/natRuntime.cc (_load): Call add_library.
5428 (loadLibraryInternal): Likewise.
5430 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5431 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5432 (Output_iconv::finalize): Likewise.
5434 2000-02-08 Tom Tromey <tromey@cygnus.com>
5436 * java/util/Properties.java (setProperty): New method.
5437 (store): New method.
5439 2000-02-07 Tom Tromey <tromey@cygnus.com>
5441 * java/lang/Runtime.java (_load): Declare.
5442 (load, loadLibrary): Wrote in terms of _load.
5443 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5445 (loadLibrary): Likewise.
5447 (_load): New method.
5448 (loadLibrary, load): Removed.
5450 * jni.cc (ThrowableClass): New define.
5451 (_Jv_JNI_Throw): Check argument.
5452 (_Jv_JNI_ThrowNew): Likewise.
5453 (wrap_value): Don't wrap object if it is NULL.
5454 (_Jv_JNI_DefineClass): Use wrap_value.
5455 (_Jv_JNI_FindClass): Likewise.
5456 (_Jv_JNI_GetSuperclass): Likewise.
5457 (_Jv_JNI_ExceptionOccurred): Likewise.
5458 (_Jv_JNI_AllocObject): Likewise.
5459 (_Jv_JNI_GetObjectClass): Likewise.
5460 (_Jv_JNI_NewString): Likewise.
5461 (_Jv_JNI_NewStringUTF): Likewise.
5462 (_Jv_JNI_NewObjectArray): Likewise.
5463 (_Jv_JNI_GetObjectArrayElement): Likewise.
5464 (_Jv_JNI_NewPrimitiveArray): Likewise.
5465 (_Jv_JNI_ToReflectedField): Likewise.
5466 (_Jv_JNI_ToReflectedMethod): Likewise.
5467 (_Jv_JNI_AllocObject): Check argument.
5468 (_Jv_JNI_NewObjectV): Likewise.
5469 (_Jv_JNI_NewObject): Likewise.
5470 (_Jv_JNI_NewObjectA): Likewise.
5471 (_Jv_JNI_GetObjectClass): Likewise.
5472 (_Jv_JNI_GetField): Likewise.
5473 (_Jv_JNI_SetField): Likewise.
5475 * interpret.cc (PUSHL): Don't use expression statement.
5480 * jni.cc (add_char): Conditional on INTERPRETER.
5481 (mangled_name): Likewise.
5483 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5485 (class _Jv_JNIMethod): Likewise.
5487 2000-02-04 Warren Levy <warrenl@cygnus.com>
5489 * Makefile.am: Added MPN.java and BigInteger.java.
5490 * Makefile.in: Rebuilt.
5491 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5493 * java/math/BigInteger.java: New file. Based primarily on
5494 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5496 2000-02-04 Tom Tromey <tromey@cygnus.com>
5498 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5500 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5501 if the method is native.
5502 * resolve.cc (ncode): Don't handle native methods.
5503 (_Jv_JNIMethod::ncode): New method.
5504 (_Jv_PrepareClass): Handle native methods.
5505 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5506 Include AbstractMethodError.h.
5507 (add_char): New function.
5508 (mangled_name): Likewise.
5509 * include/java-interp.h (class _Jv_JNIMethod): New class.
5510 (class _Jv_MethodBase): New class.
5511 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5512 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5515 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5516 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5517 libraries): New globals.
5518 (add_library): New function.
5519 (_Jv_FindSymbolInExecutable): New function.
5521 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5524 2000-02-04 Andrew Haley <aph@cygnus.com>
5526 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5527 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5528 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5529 printStackTrace to printRawStackTrace.
5531 2000-02-03 Tom Tromey <tromey@cygnus.com>
5533 * java/util/Calendar.java (toString): New method.
5534 * java/util/SimpleTimeZone.java (clone): New method.
5535 (toString): New method.
5536 * java/util/TimeZone.java (clone): New method.
5537 * java/text/SimpleDateFormat.java (clone): New method.
5538 * java/text/NumberFormat.java (clone): New method.
5539 (equals): New method.
5540 * java/text/Format.java (clone): New method.
5541 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5543 (clone): New method.
5544 * java/text/DateFormat.java (clone): New method.
5545 * java/text/Collator.java (clone): New method.
5547 2000-02-03 Tom Tromey <tromey@cygnus.com>
5549 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5552 2000-02-01 Tom Tromey <tromey@cygnus.com>
5554 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5555 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5556 constructing the closure if the function is native.
5557 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5558 a template function, #if'd out, or static.
5559 Include <java-interp.h>.
5561 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5563 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5565 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5566 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5568 (wrap_value): New function.
5569 (_Jv_JNI_CallAnyMethodV): Use it.
5570 (_Jv_JNI_CallAnyMethodA): Likewise.
5571 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5572 (_Jv_JNI_GetStaticField): Likewise.
5574 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5575 (_Jv_JNI_GetStaticField): Likewise.
5577 2000-01-31 Tom Tromey <tromey@cygnus.com>
5579 * prims.cc (_Jv_MallocUnchecked): New function.
5580 (main_init): Call _Jv_JNI_Init.
5581 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5582 (_Jv_JNI_Init): Declare.
5583 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5585 (_Jv_JNI_NewGlobalRef): New function.
5586 (_Jv_JNI_DeleteGlobalRef): New function.
5587 (_Jv_JNI_DeleteLocalRef): New function.
5588 (_Jv_JNI_conversion_call): Initialize and clear local reference
5590 (_Jv_JNI_NewLocalRef): New function.
5591 (struct _Jv_JNI_LocalFrame): New structure.
5592 (_Jv_JNI_PushLocalFrame): New function.
5593 (_Jv_JNI_EnsureLocalCapacity): New function.
5594 (FRAME_SIZE): New define.
5595 (_Jv_JNI_GetStringChars): Mark string, not characters.
5596 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5597 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5598 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5600 (_Jv_JNI_DefineClass): Make return value a local ref.
5601 (_Jv_JNI_FindClass): Likewise.
5602 (_Jv_JNI_GetSuperclass): Likewise.
5603 (_Jv_JNI_ExceptionOccurred): Likewise.
5604 (_Jv_JNI_AllocObject): Likewise.
5605 (_Jv_JNI_GetObjectClass): Likewise.
5606 (_Jv_JNI_CallAnyMethodV): Likewise.
5607 (_Jv_JNI_NewString): Likewise.
5608 (_Jv_JNI_NewStringUTF): Likewise.
5609 (_Jv_JNI_NewObjectArray): Likewise.
5610 (_Jv_JNI_GetObjectArrayElement): Likewise.
5611 (_Jv_JNI_ToReflectedField): Likewise.
5612 (_Jv_JNI_ToReflectedMethod): Likewise.
5613 (_Jv_JNIFunctions): Updated table for new functions.
5614 (_Jv_JNI_Init): New function.
5615 (mark_for_gc): Wrote.
5616 (unmark_for_gc): Wrote.
5617 * include/jni.h (struct JNINativeInterface): Removed name from
5618 PopLocalFrame parameter.
5619 (class _Jv_JNIEnv): Added `locals' field.
5621 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5623 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5626 2000-01-30 Tom Tromey <tromey@cygnus.com>
5628 * include/config.h.in: Rebuilt.
5629 * acconfig.h (HAVE_ICONV): Define.
5630 * configure: Rebuilt.
5631 * configure.in: Check for `iconv' function.
5632 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5633 no specific encoder exists.
5634 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5635 no specific encoder exists.
5636 * Makefile.in: Rebuilt.
5637 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5639 (nat_source_files): Added natIconv.cc.
5640 * gnu/gcj/convert/natIconv.cc: New file.
5641 * gnu/gcj/convert/Input_iconv.java: New file.
5642 * gnu/gcj/convert/Output_iconv.java: New file.
5644 2000-01-28 Tom Tromey <tromey@cygnus.com>
5646 * Makefile.in: Rebuilt.
5647 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5649 2000-01-26 Tom Tromey <tromey@cygnus.com>
5651 * gcj/method.h (JvNumMethods): Moved from Class.h.
5652 (JvGetFirstMethod): Likewise.
5653 * java/lang/Class.h (Object): Updated decl of
5654 _Jv_JNI_ToReflectedField.
5655 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5656 * Makefile.in: Rebuilt.
5657 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5658 argument of _Jv_JNI_ToReflectedField.
5659 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5661 (java/lang/reflect/Method.h): Likewise.
5662 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5664 (jweak): New typedef.
5665 (struct JNINativeInterface): Correctly declare remaining entries.
5666 * jni.cc: Include Class.h, ClassLoader.h.
5667 (_Jv_JNI_FindClass): New function.
5668 (_Jv_JNI_DefineClass): New function.
5669 (_Jv_JNI_conversion_call): New function.
5670 (_Jv_JNI_FindClass): Use current class loader to find class.
5671 (_Jv_JNI_ExceptionCheck): New function.
5672 (_Jv_JNI_FromReflectedField): Now static.
5673 (MethodClass): New define.
5674 (_Jv_JNI_FromReflectedMethod): New function.
5675 (_Jv_JNI_ToReflectedMethod): Likewise.
5677 (_Jv_JNI_IsAssignableFrom): Renamed.
5678 (_Jv_JNI_GetStringRegion): New function.
5679 Include StringIndexOutOfBoundsException.h.
5680 (_Jv_JNI_GetStringUTFRegion): New function.
5681 (_Jv_JNIFunctions): Updated for new functions.
5682 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5683 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5684 (_Jv_JNI_GetStringCritical): New function.
5685 (_Jv_JNI_ReleaseStringCritical): Likewise.
5686 (get_throwable): Removed.
5687 (GCJ_JV_JNIENV_FRIEND): Removed.
5688 (__GCJ_JNI_IMPL__): Define.
5691 * resolve.cc (get_ffi_type_from_signature): Handle case where
5694 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5696 * interpret.cc (run): Don't call println.
5697 Don't include PrintStream.h.
5699 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5700 nameIndex. Use "jint" as type for boffset.
5701 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5703 (Class): Likewise. Also changed type of method_count,
5704 vtable_method_count, size_in_bytes, field_count,
5705 static_field_count, interface_count.
5706 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5709 2000-01-21 Tom Tromey <tromey@cygnus.com>
5711 * java/lang/reflect/natConstructor.cc (newInstance): Use
5713 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5714 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5715 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5718 (invoke): Use _Jv_CallAnyMethodA.
5720 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5721 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5723 (struct _Jv_Method): Added getNextMethod method.
5724 (JvNumMethods): New function.
5725 (JvGetFirstMethod): Likewise.
5726 * gcj/field.h (JvGetFirstStaticField): New function.
5727 (JvNumStaticFields): Likewise.
5728 (getNextField): Renamed from getNextInstanceField.
5729 (struct _Jv_Field): New method getClass.
5730 * jni.cc: Wrote many new functions.
5731 * include/jni.h (JNI_TRUE): Define.
5732 (JNI_FALSE): Likewise.
5733 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5734 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5735 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5736 (jfieldID, jmethodID): Likewise.
5737 (JNI_COMMIT, JNI_ABORT): New defines.
5738 (JNINativeMethod): New struct.
5739 (struct JNINativeInterface): Correctly declared more entries.
5740 (class _Jv_JNIEnv): Added `ex' member.
5741 (JNI_VERSION_1_1): New define.
5742 (JNI_VERSION_1_2): Likewise.
5744 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5745 getNextInstanceField.
5747 2000-01-20 Tom Tromey <tromey@cygnus.com>
5749 * resolve.cc (StringClass): Removed.
5750 * defineclass.cc (StringClass): Removed.
5752 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5756 2000-01-19 Tom Tromey <tromey@cygnus.com>
5758 * interpret.cc (PC_REGISTER_ASM): Removed.
5760 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5761 From Bryce McKinlay.
5763 * All files: Updated copyright to reflect Cygnus purchase.
5765 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5767 * configure: Rebuilt.
5768 * configure.in: Recognize --disable-interpreter.
5770 2000-01-18 Andrew Haley <aph@cygnus.com>
5772 * name-finder.cc (lookup): Check for dladdr function.
5773 acconfig.h (HAVE_DLADDR): Add.
5774 configure.in: Check for HAVE_DLADDR
5776 include/config.h.in: Rebuilt.
5778 2000-01-17 Andrew Haley <aph@cygnus.com>
5780 * prims.cc (_Jv_RunMain): Set the name of this executable.
5782 2000-01-17 Tom Tromey <tromey@cygnus.com>
5784 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5785 when backtrace can't be computed.
5787 * configure: Rebuilt.
5788 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5790 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5791 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5792 (_Jv_FindClassInCache): Likewise.
5793 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5794 (findSystemClass): Try to load class from compiled module.
5796 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5797 (loadLibrary): Likewise.
5798 (lt_preloaded_symbols): Define.
5799 (loadLibraryInternal): New method.
5800 * include/config.h.in: Rebuilt.
5801 * acconfig.h (USE_LTDL): Added.
5802 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5803 (INCLUDES): Added $(INCLTDL).
5804 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5805 (libgcj_la_LIBADD): Likewise.
5806 * aclocal.m4, configure: Rebuilt.
5807 * configure.in: Added libltdl support.
5809 2000-01-15 Tom Tromey <tromey@cygnus.com>
5811 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5813 2000-01-14 Andrew Haley <aph@cygnus.com>
5815 * java/lang/natThrowable.cc: New file.
5817 * java/lang/Throwable.java (fillInStackTrace): Make native.
5818 (printStackTrace): Call native method to do this.
5819 (Throwable): Call fillInStackTrace.
5820 (stackTrace): New variable.
5822 * include/jvm.h: Add _Jv_ThisExecutable functions.
5824 * prims.cc: (_Jv_execName): New variable.
5825 (catch_segv): Call fillInStackTrace.
5827 (_Jv_ThisExecutable): New functions.
5828 (JvRunMain): Set the name of this executable.
5830 * Makefile.am: Add java/lang/natThrowable.cc.
5832 * Makefile.in: Rebuilt.
5834 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5836 * configure.in: Force link with __frame_state_for in
5837 FORCELIBGCCSPEC. Add new checks for backtrace.
5838 * include/config.h.in: Rebuilt.
5840 * name-finder.cc: New file.
5841 * include/name-finder.h: New file.
5843 2000-01-16 Anthony Green <green@cygnus.com>
5845 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5848 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5850 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5852 2000-01-13 Tom Tromey <tromey@cygnus.com>
5854 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5855 not system loader, as initiating loader.
5857 2000-01-11 Tom Tromey <tromey@cygnus.com>
5859 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5860 HP/UX. From David Scott Urban.
5862 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5864 * java/lang/natMath.cc (pow): Cast args to `double', not
5867 (IEEEremainder): Likewise.
5868 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5869 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5871 2000-01-09 Anthony Green <green@cygnus.com>
5873 * java/lang/natString.cc (init): Test for overflow condition
5874 during out of bounds check.
5875 (getChars): Throw StringIndexOutOfBoundsException, not
5876 ArrayIndexOutOfBoundsException.
5878 (regionMatches): Obey case option during string comparison.
5880 * configure.host (ligcj_interpreter): New variable. Enable
5881 interpreter by default on IA-32.
5882 * configure.in: Examine libgcj_interpreter.
5883 * configure: Rebuilt.
5885 2000-01-07 Tom Tromey <tromey@cygnus.com>
5887 * mauve-libgcj: Don't disable ClassTest.
5889 * java/lang/natClass.cc (getClasses): Wrote.
5891 2000-01-06 Tom Tromey <tromey@cygnus.com>
5893 * java/lang/natClass.cc (_getConstructors): Correctly check
5894 whether method name is the init name.
5895 (getMethod): Look at accflags on method in `klass', not `this'.
5897 2000-01-05 Tom Tromey <tromey@cygnus.com>
5899 * java/lang/natClass.cc (getMethod): Compute offset relative to
5900 `klass's methods table, not `this's table.
5902 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5903 In unwrapping/widening case, check whether `k' is null, not
5904 whether it is primitive. Initialize `num' from `argelts', not
5905 `paramelts'. Correct create and pass arguments to ffi_call.
5906 Don't let presence of `this' argument affect index used to look in
5908 (COPY): Set appropriate element in `values' vector.
5910 * java/lang/natClass.cc: Include <gcj/method.h>.
5912 * java/lang/Class.h (_getMethods): Correctly declare as private,
5915 * java/lang/Class.h (_getMethods): Declare.
5916 * java/lang/Class.java (_getMethods): Declare.
5917 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5918 (getDeclaredClasses): Always return empty array.
5919 (_getMethods): New method.
5920 (getMethods): Wrote.
5921 (getDeclaredMethod): Return `rmethod'.
5922 (finit_name): New global.
5923 (getDeclaredMethods): Check for finit_name.
5924 (_getMethods): Likewise.
5925 (getMethod): Only return public methods.
5927 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5928 jboolean and select correct ffi type on that basis.
5929 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5930 Constructor call always has `void' return type.
5932 2000-01-04 Tom Tromey <tromey@cygnus.com>
5934 * java/lang/Class.h (getSignature): Updated.
5935 * java/lang/Class.java (getSignature): Updated.
5936 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5938 (getConstructor): Ensure constructor is public.
5939 (_getConstructors): Check for public-ness of constructor when
5940 `declared' is false, not when it is true.
5942 2000-01-04 Warren Levy <warrenl@cygnus.com>
5944 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5946 (receive): Set the sender's address in the DatagramPacket.
5948 2000-01-04 Tom Tromey <tromey@cygnus.com>
5950 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5951 declaring class as return_type argument to
5952 _Jv_CallNonvirtualMethodA.
5953 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5954 constructor case, create object and use it as `this' argument.
5955 * java/lang/Class.h (_getConstructors): Declare.
5956 (_getFields): Declare.
5957 * java/lang/Class.java (getConstructors): Wrote.
5958 (_getConstructors): New native method.
5959 (getDeclaredConstructors): Wrote.
5960 (_getFields): Declare new native method.
5961 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5963 (getMethod): Work correctly when class is primitive.
5964 (getDeclaredMethods): Likewise. Compute offset using `method',
5966 (getDeclaredMethod): Likewise.
5967 (getConstructor): Wrote.
5968 (ConstructorClass): New define.
5969 (getDeclaredConstructor): Wrote.
5970 (_getConstructors): New method.
5971 (_getFields): New method.
5974 * Makefile.in: Rebuilt.
5975 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5977 * prims.cc: Remove `#pragma implementation'.
5978 * gcj/array.h: Remove `#pragma interface'.
5980 * prims.cc (_Jv_equaln): New function.
5981 * java/lang/Class.java (getSignature): Declare.
5982 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5983 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5985 (getSignature): New method.
5986 (getDeclaredMethod): Wrote.
5988 Include StringBuffer.h.
5989 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5990 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5992 (getSignature): Declare.
5993 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5994 (_Jv_equaln): Declare.
5995 (_Jv_CallNonvirtualMethodA): Declare.
5996 * Makefile.in: Rebuilt.
5997 * Makefile.am (nat_source_files): Added natConstructor.cc.
5998 (java/lang/reflect/Constructor.h): New target.
5999 * java/lang/reflect/natConstructor.cc: New file.
6000 * java/lang/reflect/Constructor.java (newInstance): Now native.
6001 (declaringClass): Renamed from decl_class.
6002 (offset): Renamed from index.
6003 (getType): New native method.
6004 (getModifiers): Now native.
6005 (getParameterTypes): Call getType if required.
6006 (hashCode): Include hash code from declaring class.
6007 (modifiers): Removed.
6008 (toString): Call getType if required.
6009 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6010 * java/lang/reflect/natMethod.cc (hack_call): New method.
6011 Removed `#if 0' around FFI code.
6012 Include <gnu/gcj/RawData.h>.
6013 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6014 IllegalArgumentException when argument object and class disagree.
6015 (_Jv_GetTypesFromSignature): New function.
6017 (ObjectClass): New define.
6018 (_Jv_CallNonvirtualMethodA): New function.
6019 * java/lang/reflect/Method.java (hack_trampoline): New method.
6020 (hack_call): New native method.