1 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/io/File.java (normalizePath): New private method.
4 (File (String)): Use normalizePath().
5 (File (String, String)): Likewise.
7 * Makefile.am (libffi_files): Removed.
8 (libgcj.la): Link libffi as a convenience library instead of
9 refering to its object files directly.
10 * Makefile.in: Rebuilt.
12 2001-04-08 Per Bothner <per@bothner.com>
14 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
15 Recalculate hash, since Utf8Const's hash is only 16 bits.
17 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
18 bits of hash to calculate step for chaining.
20 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
21 when 2/3 full, rather than 3/4 full.
23 2001-04-06 Tom Tromey <tromey@redhat.com>
25 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
26 (wrap_value<T*>): New specialization.
27 (_Jv_JNI_PopLocalFrame): Update env->locals.
29 2001-04-05 Tom Tromey <tromey@redhat.com>
31 * libtool-version: Updated current.
33 2001-04-04 Andreas Jaeger <aj@suse.de>
35 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
36 * gcj/Makefile.in: Rebuilt.
37 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
38 * Makefile.in: Rebuilt.
39 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
40 * testsuite/Makefile.in: Rebuild.
41 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
42 * include/Makefile.in: Rebuild.
44 2001-04-02 Zack Weinberg <zackw@stanford.edu>
46 * testsuite/lib/libjava.exp: Correct typo: 'output from source
47 compiled test', not 'execution from source compiled test'.
48 Use UNTESTED, not XFAIL, for tests which are not run because
49 they depend on a previous test which failed.
51 2001-04-02 Richard Henderson <rth@redhat.com>
53 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
57 * exception.cc (_Jv_Throw): Clarify commentary.
59 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
61 * jni.cc (wrap_value<jclass>): New specialization.
63 2001-04-02 Tom Tromey <tromey@redhat.com>
65 * java/io/PrintStream.java (out): Removed field. Fixes PR
67 (write): Call flush, not out.flush, per spec.
68 (close): Flush output stream, per spec. Handle
69 InterruptedIOException.
70 (checkError): Likewise.
71 (flush, print, write): Handle InterruptedIOException per spec.
72 (PrintStream): Don't create BufferedOutputStream.
73 (work_bytes): New field.
74 (writeChars): Use work_bytes. Don't assume `out' is a
77 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
79 * java/text/MessageFormat.java (setLocale): Added missing `else'.
82 2001-03-30 Tom Tromey <tromey@redhat.com>
84 * jni.cc (add_char): Correctly encode non-ascii characters.
85 (add_char): Define even when INTERPRETER not defined.
86 (mangled_name): Likewise.
87 (_Jv_GetJNIEnvNewFrame): Likewise.
88 (_Jv_LookupJNIMethod): Likewise.
90 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
92 * configure.host: Enable interpreter for PPC.
94 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
96 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
97 to "file.separator", "path.separator", and "java.io.tmpdir" property
99 * java/io/File.java: Likewise.
100 * java/io/natFile.cc (init_native): Likewise.
101 * java/io/natFileWin32.cc (init_native): Likewise.
103 2001-04-01 Per Bothner <per@bothner.com>
105 * java/lang/natString.cc (intern): If string's data does not point to
106 this String, make a fresh String that does.
108 * java/lang/natString.cc (unintern): Replace by static function.
109 * java/lang/String.java (unintern): Remove method.
111 2001-04-01 Per Bothner <per@bothner.com>
113 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
114 (finish): def.deflate needs to be called in a loop.
115 (inbuf, inbufLength): New private fields.
116 (write(int)): Use inbuf.
117 (write(byte[],int,int): Check if pending output in inbuf.
118 * ZipOutputStream.java: Don't use Deflater if stored.
119 Use a Checksum object directly, not via a CheckedOutputStream.
120 (uncompressed_size): New field,
121 (closeEntry): Only write data_directory if needed.
122 (write): If STORED, write directly.
123 Always update crc, and uncompressed_size.
124 (write_entry): Fix lots of protocol erors.
126 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
128 1.3-Compliant Implementation of java.io.File.
129 * java/lang/natSystem.cc (init_properties): Get "file.separator",
130 "path.separator", and "java.io.tmpdir" from the File class, instead
131 of setting them explicitly.
132 * java/io/File.java: Do not canonicalize paths for security manager
133 checks. Call init_native() from static initializer. Do not pass path
134 argument to native methods. New native method declarations. Some
135 security manager checks moved to checkWrite().
136 (equals): Check file system case sensitivity and act appropriatly.
137 (hashCode): Likewise.
138 (isHidden): New method implemented.
139 (performList): Changed prototype. Now takes a class argument specifying
140 the class of the returned array: Strings or File objects. Also added
142 (listFiles): New variants with "File" return type implemented.
143 (createTempFile): Use createNewFile(). Use maxPathLen.
144 (setReadOnly): New method implemented.
145 (listRoots): Likewise.
146 (compareTo): Likewise.
147 (setLastModified): Likewise.
148 (checkWrite): New method.
150 * java/io/natFile.cc: Various functions no longer take canonical path
152 (stat): Handle ISHIDDEN query.
153 (isAbsolute): Remove WIN32 cruft.
154 (performList): New arguments. Handle returning either File[] or String[]
155 arrays. Check with FileFilter or FilenameFilter arguments as
156 appropriate. Use an ArrayList, not a Vector, for the temporary list.
157 (performSetReadOnly): New method implemented.
158 (performListRoots): Likewise.
159 (performSetLastModified): Likewise.
160 (performCreate): Likewise.
161 (init_native): New initialization function.
162 * java/io/natFileWin32.cc: Various functions no longer take canonical
164 (stat): Add FIXME about ISHIDDEN query.
165 (performList): New arguments. Handle returning either File[] or String[]
166 arrays. Check with FileFilter or FilenameFilter arguments as
167 appropriate. Use an ArrayList, not a Vector, for the temporary list.
168 (performSetReadOnly): New. Stubbed.
169 (performListRoots): Likewise.
170 (performSetLastModified): Likewise.
171 (performCreate): Likewise.
172 (init_native) New initialization function.
173 * configure.in: Check for utime() and chmod().
174 * configure: Rebuilt.
175 * include/config.h.in: Rebuilt.
177 Resolves PR libgcj/1759.
179 2001-03-28 Richard Henderson <rth@redhat.com>
181 IA-64 ABI Exception Handling:
182 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
183 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
184 Remove EXCEPTIONSPEC.
185 * configure.host (libgcj_sjlj): Remove.
186 * configure.in (EXCEPTIONSPEC): Remove.
187 (enable-sjlj-exceptions): Detect if not specified.
188 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
189 what header we're looking for.
190 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
191 * Makefile.in, configure: Regenerate.
192 * exception.cc: Don't declare libgcc2 stuff.
193 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
194 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
195 (win32_get_restart_frame): Remove.
196 (struct java_exception_header): New.
197 (__gcj_exception_class): New.
198 (get_exception_header_from_ue): New.
199 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
200 (size_of_encoded_value, read_encoded_value): New.
201 (read_uleb128, read_sleb128, parse_lsda_header): New.
202 (get_ttype_entry, __gcj_personality_sj0): New.
203 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
205 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
207 * javax/naming/InitialContext.java (init): Fix typo.
208 (composeName): Remove unnecessary semicolon.
209 (addToEnvironment): Remove unnecessary semicolon.
210 (addToEnvironment): Use put() instead of add().
212 * javax/naming/InitialContext.java (InitialContext):
214 (destroySubcontext): Method doesn't return a result.
215 * javax/naming/Context.java: Import java.util.Hashtable.
216 * javax/naming/Name.java: Import java.util.Enumeration.
218 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
220 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
221 objects in subdirectories.
222 * Makefile.in: Rebuilt.
224 2001-03-25 Richard Henderson <rth@redhat.com>
226 * exception.cc (java_eh_info): Make value type jthrowable.
227 (_Jv_type_matcher): Remove now unneeded cast.
228 (_Jv_Throw): Make argument type jthrowable. Munge name
229 for SJLJ_EXCEPTIONS here ...
230 * gcj/cni.h: ... not here.
232 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
234 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
235 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
236 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
237 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
238 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
239 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
240 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
241 java/lang/natClass.cc, java/lang/natClassLoader.cc,
242 java/lang/natDouble.cc, java/lang/natObject.cc,
243 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
244 java/lang/natString.cc, java/lang/natSystem.cc,
245 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
246 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
247 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
248 java/util/zip/natInflater.cc:
249 Use throw, not JvThrow or _Jv_Throw.
251 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
253 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
254 paramater, bump it to 1.
255 * java/util/Hashtable.java (Hashtable): Likewise.
257 2001-03-23 Per Bothner <per@bothner.com>
259 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
260 check for errors, since we don't want to throw exception on
261 overflow/underflow. Instead, trim whitespace, and then check that
262 _strtod_r uses up all the rest of the string.
264 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
265 ancestors array is invalid for interfaces, so do that *after*
266 check that the target type is not an interface.
268 2000-03-23 Jeff Sturm <jsturm@one-point.com>
270 * prims.cc (_Jv_FindClassFromSignature): Check return of
271 recursive call. Do not abort on invalid signature; return NULL
274 2001-03-22 Tom Tromey <tromey@redhat.com>
276 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
277 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
279 * include/jvm.h (_Jv_ResolveField): Declare.
280 * include/java-interp.h (_Jv_ResolveField): Don't declare.
281 * resolve.cc (_Jv_ResolveField): No longer conditional on
284 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
286 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
288 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
289 to a temporary file, then invoke libtool with the -objectlist
291 (libgcjx.la): Likewise.
292 * Makefile.in: Rebuilt.
294 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
296 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
298 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
300 * jni.cc (add_char): Handle `.' like `/'.
302 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
304 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
305 initialize if exception_types is null.
306 * java/lang/reflect/Constructor.java: Likewise.
307 * java/lang/reflect/natConstructor.cc (getType): Initialize
308 exception_types to an empty Object array.
310 2001-03-21 Tom Tromey <tromey@redhat.com>
312 * configure: Rebuilt.
313 * configure.in (GCJFLAGS): Subst.
314 * Makefile.in: Rebuilt.
315 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
316 (gij_LDFLAGS): Likewise.
317 (JC1FLAGS): Added GCJFLAGS and removed -g.
319 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
320 read/write case. Fixes PR libgcj/2338.
322 2001-03-20 Warren Levy <warrenl@redhat.com>
324 * java/util/TimeZone.java: Sync up with Classpath. Includes new
325 and corrected SimpleTimeZone's for the timezones hash table.
327 2001-03-19 Per Bothner <per@bothner.com>
329 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
330 "canonicalize" "../../xxx" to "/xxx".
332 2001-03-19 Mark Wielaard <mark@klomp.org>
334 * java/util/ArrayList.java: Remove RCS keywords from comments
335 * java/util/BasicMapEntry.java: idem
336 * java/util/Dictionary.java: idem
337 * java/util/HashSet.java: idem
339 * java/util/EventObject.java: reindent
340 * java/util/Properties.java: idem
341 * java/util/SortedMap.java: idem
343 * java/util/Enumeration.java: Merge with Classpath
344 * java/util/EventListener.java: idem
345 * java/util/Observable.java: idem
346 * java/util/Observer.java: idem
347 * java/util/Stack.java: idem
349 2001-03-17 Tom Tromey <tromey@redhat.com>
351 * java/lang/natString.cc (rehash): Don't bother with memset;
352 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
354 (UNMASK_PTR): New macro.
355 (intern): Unmask pointer before returning it. Register finalizer
357 (unintern): Handle case where
358 (MASK_PTR): New macro.
359 (PTR_MAKSED): Likewise.
360 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
362 2001-03-01 Andrew Haley <aph@redhat.com>
364 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
365 stackTrace buffer to a correctly aligned pointer array.
367 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
369 * java/lang/Runtime.java (_exit): Declare new package-private native.
370 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
371 without a security manager check.
372 (exit): Call _exit after security check.
373 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
375 * java/lang/System.java (setSecurityManager): If a security manager
376 is already in place, call checkPermission.
377 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
378 throws an exception, try to deal with it gracefully.
379 * java/lang/ExceptionInInitializerError.java (printStackTrace):
380 Only try to print the subordinate stack trace if "exception" is set.
381 Print our class name first.
383 2001-03-08 Tom Tromey <tromey@redhat.com>
385 * java/io/ObjectStreamClass.java (setUID): Don't write interface
386 info for array classes.
387 Fixes PR libgcj/1971.
389 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
391 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
394 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
396 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
397 instead of the new JDK1.2 API. This is simpler and makes
398 back-porting the classes to JDK1.1 trivial.
399 (readObject): likewise.
401 2001-03-01 Per Bothner <per@bothner.com>
403 Changes merged from Kawa's gnu.math.
404 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
405 (rshift(int[],int[],int,int): Removed - not needed.
406 (gcd): Use rshift0 rather than rshift.
407 * java/math/BigInteger.java (setShiftRight): Likewise.
408 (divide): Simplify by using rshift0.
409 (divide): Zero-extend results if high-order bit set.
411 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
413 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
416 2001-02-23 Per Bothner <per@bothner.com>
418 Change to sometimes include class name in ClassFormatError message.
419 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
420 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
421 boolean instead of throwing ClassFormatError on failure.
422 (throw_class_format_error): Change static function to method.
423 (_Jv_ClassReader): New inline methods verify_identifier,
424 two overloads of verify_classname, verify_field_signature, and
425 verify_method_signature
426 * include/java-interp.h: Update declarations to return bool.
427 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
428 ClassFormatError since _Jv_VerifyClassName now returns bool.
430 2001-02-23 Per Bothner <per@bothner.com>
432 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
433 c++filt to select java-style output.
435 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
437 Fix for PR java/2040:
438 * java/util/HashMap.java (HashMap): Don't throw exception for
439 loadFactor > 1. Add exception messages.
440 * java/util/Hashtable.java (Hashtable): Likewise.
442 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
444 Disable libgcjx by default.
445 * configure.in: Add support for --enable-java-awt configure option.
446 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
447 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
448 * Makefile.in: Rebuilt.
449 * configure: Rebuilt.
451 2001-02-20 Tom Tromey <tromey@redhat.com>
453 * java/io/PipedWriter.java (flush): Throw exception if stream
455 * java/io/OutputStreamWriter.java (write): Throw exception if
457 (writeChars): Don't throw exception if stream closed.
458 * java/io/CharArrayWriter.java (closed): New field.
460 (flush): Throw exception if stream closed.
461 (reset): Synchronize on correct lock. Allow stream to be
463 (toCharArray, toString, writeTo): Synchronize.
464 (write): Throwe exception if stream closed.
465 * java/io/BufferedWriter.java (close): Clear `buffer'.
466 (flush): Throw IOException if stream is closed.
469 2001-02-16 Tom Tromey <tromey@cygnus.com>
471 * java/lang/ThreadGroup.java (activeCount): Only include threads
473 (enumerate): Likewise.
475 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
477 * java/lang/Integer.java (getInteger): Return default argument if
478 property is not set. Don't call decode with null argument.
479 * java/lang/Long.java (getLong): Likewise.
481 * java/io/CharArrayReader.java (CharArrayReader): Throw
482 IllegalArgumentException if constructor arguments are illegal.
483 (ready): Return false if no more characters can be read.
484 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
486 2001-02-17 Mark Wielaard <mark@klomp.org>
488 * java/util/TimerTask.java: New version from Classpath.
490 2001-02-17 Mark Wielaard <mark@klomp.org>
492 Remerge with Classpath
493 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
494 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
495 (readByte): Use convertToByte().
496 (readChar): Use convertToChar().
497 (readInt): Use convertToInt().
498 (readLong): Use convertToLong().
499 (readShort): Use convertToShort().
500 (readUnsignedByte): Use convertToUnsignedByte().
501 (readUnsignedShort): Use convertToUnsignedShort().
502 (readUTF): Use convertToUTF().
504 (convertToBoolean): Resurrected.
505 (convertToByte): Ditto.
506 (convertToChar): Ditto.
507 (convertToInt): Ditto.
508 (convertToLong): Ditto.
509 (convertToShort): Ditto.
510 (convertToUnsignedByte): Ditto.
511 (convertToUnsignedShort): Ditto.
512 (convertToUTF): Ditto.
514 2001-02-17 Mark Wielaard <mark@klomp.org>
518 2001-02-17 Mark Wielaard <mark@klomp.org>
520 * java/io/DataInputStream.java: update copyright notice
521 * java/io/PrintWriter.java: idem
522 * java/io/Reader.java: idem
523 * java/io/StreamTokenizer.java: idem
524 * java/io/StringReader.java: idem
525 * java/lang/reflect/ReflectPermission.java: idem
527 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
529 * java/util/TreeSet.java (clone): Made subclass safe, use
530 super.clone(), not new.
531 * java/util/TreeMap.java (clone): Likewise.
533 * java/util/TreeMap.java (nil): Made non-final.
534 (clone): Create new nil node for copy.
536 * java/util/HashSet.java (clone): Made subclass safe, use
537 super.clone(), not new.
539 2001-02-14 Andrew Haley <aph@redhat.com>
541 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
544 2001-02-15 Anthony Green <green@redhat.com>
546 * defineclass.cc: Don't include alloca.h.
547 (prepare_pool_entry): Convert alloca to __builtin_alloca.
548 * interpret.cc (run_normal): Ditto.
550 * java/lang/natDouble.cc (parseDouble): Ditto.
552 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
554 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
556 * java/util/Collections.java (ReverseComparator): New static class.
557 (reverseOrder): Return static instance of ReverseComparator.
559 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
560 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
561 Rectangle.clone(), not Object.clone().
563 * java/util/HashSet.java (clone): Remove try/catch.
565 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
566 * java/util/Collection.java: Likewise.
567 * java/util/Comparator.java: Likewise.
568 * java/util/Dictionary.java: Likewise.
569 * java/util/Iterator.java: Likewise.
570 * java/util/ListIterator.java: Likewise.
571 * java/util/Map.java: Likewise.
572 * java/util/Set.java: Likewise.
574 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
576 * java/util/TreeMap.java: New file.
577 * java/util/TreeSet.java: New file.
578 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
579 * Makefile.in: Rebuilt.
580 * java/util/HashSet.java (clone): Use constructor instead of calling
582 * java/util/SortedSet.java: Sync with classpath.
583 * java/util/HashMap.java (hash): Use if statement instead of ternary,
586 * java/lang/natClass.cc (getSignature): Don't try to dereference
587 param_types if it is null. Instead, take this to mean "no parameters".
588 * java/lang/TreeMap.java (TreeIterator.next): Throw
589 NoSuchElementException in preference to ConcurrentModificationException.
590 (TreeIterator.remove): Throw IllegalStateException in preference to
591 ConcurrentModificationException.
592 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
593 throw a NoSuchElementException.
594 (SubMap.lastKey): Likewise.
596 2001-02-13 Tom Tromey <tromey@redhat.com>
598 * java/io/PipedReader.java (ready): Throw IOException if pipe
600 * java/io/FilterReader.java (close): Don't clear `in'.
601 * java/io/CharArrayReader.java (mark): Throw IOException if stream
603 (read, ready, reset, skip): Added exception message.
604 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
605 Perform checkStatus check inside synchronized block.
607 2001-02-13 Tom Tromey <tromey@redhat.com>
609 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
611 2001-02-13 Tom Tromey <tromey@redhat.com>
613 Fix for PR libgcj/1351:
614 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
616 Include Thread.h and InterruptedIOException.h.
618 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
620 * java/io/BlockDataException.java: Removed.
621 * java/io/ObjectInputStream.java (readObject): Throw
622 StreamCorruptedException, not BlockDataException.
623 * Makefile.am: Remove BlockDataException.
624 * Makefile.in: Rebuild.
626 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
627 Tom Tromey <tromey@redhat.com>
629 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
632 2001-02-09 Tom Tromey <tromey@redhat.com>
634 * java/util/Timer.java: New version from Classpath.
636 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
638 * java/lang/Double.java (doubleToRawLongBits): Now native.
639 * java/lang/Float.java (floatToRawIntBits): Likewise.
640 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
641 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
643 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
645 * java/io/File.java (java.net): Imported.
646 (getAbsoluteFile): Added.
647 (getCanonicalPath): Likewise.
650 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
652 * java/lang/Byte.java: Remove redundant instanceof and null checks.
653 * java/lang/Integer.java: Likewise.
654 * java/lang/Long.java: Likewise.
655 * java/lang/Short.java: Likewise.
656 * java/lang/Double.java: Likewise.
657 (doubleToRawLongBits): New method.
658 * java/lang/Float.java: As above.
659 (floatToRawIntBits): New method.
661 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
662 IOException if stream closed.
664 2001-02-08 Tom Tromey <tromey@redhat.com>
666 * java/lang/Float.java (parseFloat): New method.
668 2001-02-08 Tom Tromey <tromey@redhat.com>
670 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
671 * java/io/InputStreamReader.java (ready, read): Throw IOException
672 if stream has been closed.
674 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
676 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
677 Change sources.redhat.com and sourceware.cygnus.com references to
680 2001-02-07 Tom Tromey <tromey@redhat.com>
682 Fix for PR libgcj/1906:
683 * java/text/MessageFormat.java (setLocale): Use named class
686 (format(Object,StringBuffer,FieldPosition)): Special case if
687 argument is an Object[].
689 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
691 * java/util/Arrays.java: Removed "cmp" methods.
692 (qsort): Don't use "cmp".
695 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
697 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
698 sort. Fix for PR java/1895.
700 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
702 * configure.host: Use sjlj-exceptions for Alpha.
704 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
706 * libgcj.spec.in: Don't force static libgcc into the executable.
707 * configure.in (FORCELIBGCCSPEC): Removed.
708 * configure: Rebuilt.
710 2001-01-31 Tom Tromey <tromey@redhat.com>
712 * Makefile.in: Rebuilt.
713 * Makefile.am (LTCXXCOMPILE): New macro.
715 2001-01-26 Andrew Haley <aph@redhat.com>
717 (INIT_FPE): Use a direct system call to set the handler.
719 2001-01-27 Richard Henderson <rth@redhat.com>
721 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
723 2001-01-27 Tom Tromey <tromey@redhat.com>
725 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
726 native interface structure.
728 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
730 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
732 (read (byte[], int, int)): Only call readNextBlock() if the block
733 buffer would actually be overrun. Increment blockDataPosition.
734 (callReadMethod): Propagate exceptions from invocation target.
735 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
736 exceptions from invocation target.
738 2001-01-26 Tom Tromey <tromey@redhat.com>
740 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
741 to internal representation.
742 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
743 _Jv_FindClassFromSignature.
745 2001-01-26 Warren Levy <warrenl@redhat.com>
747 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
748 and timezone if they are available on the system.
750 2001-01-24 Tom Tromey <tromey@redhat.com>
752 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
754 2001-01-24 Tom Tromey <tromey@redhat.com>
756 * Makefile.in: Rebuilt.
757 * Makefile.am (c_source_files): Added sf_fabs.c.
758 * java/lang/sf_fabs.c: New file.
760 2001-01-19 Warren Levy <warrenl@redhat.com>
762 * java/text/SimpleDateFormat.java (format): Compute hour for cases
763 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
764 correctly. Adjust properly from 0-23 clock hour.
766 2001-01-17 Mark Wielaard <mark@klomp.org>
768 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
770 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
772 * java/lang/Class.h (isInterface): Move implementation from
773 natClass.cc. Declare inline.
774 (Class): Add default constructor.
775 * java/lang/Object.h: Update comments.
776 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
777 initialize superclass, saving a call if super is already initialized.
779 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
781 * prims.cc (init_prim_class): Deleted.
782 (DECLARE_PRIM_TYPE): Rewritten.
783 * java/lang/Class.h (stdio.h): Include removed.
784 (stddef.h): Included.
785 (java/lang/reflect/Modifier.h): Likewise.
786 (Class): Contructor now takes arguments, initializes fields.
787 (initializePrim): Prototype deleted.
788 * java/lang/natClass.cc (initializePrim): Deleted.
790 2001-01-16 Warren Levy <warrenl@redhat.com>
792 * java/math/BigInteger.java: Update Copyright year.
794 2001-01-16 Hans Boehm <hans_boehm@hp.com>
796 * java/math/BigInteger.java (setShiftRight): Only do negative shift
799 2001-01-14 Mark Wielaard <mark@klomp.org>
800 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
801 (decode): Merge comments with Classpath, don't throw Exception
803 2001-01-12 Tom Tromey <tromey@redhat.com>
805 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
809 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
810 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
811 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
812 * gnu/awt/gtk/GtkLabelPeer.java: New file.
813 * gnu/awt/gtk/GtkButtonPeer.java: New file.
815 * java/lang/natSystem.cc: Include locale.h if it exists.
816 * configure: Rebuilt.
817 * configure.in: Check for locale.h.
819 2001-01-11 Tom Tromey <tromey@redhat.com>
821 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
822 (Cursor(int), getPredefinedCursor): Throw exception if argument
825 2001-01-03 Tom Tromey <tromey@redhat.com>
827 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
828 (getLocationOnScreen): Wrote.
830 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
832 * Makefile.am: Re-enable dependencies.
833 * Makefile.in: Rebuilt.
835 2001-01-10 Warren Levy <warrenl@redhat.com>
837 * java/math/BigDecimal.java (divide): Fixed comment.
839 2001-01-10 Warren Levy <warrenl@redhat.com>
841 Fix for PR libgcj/1596:
842 * java/math/BigDecimal.java (divide): Check newScale for validity.
843 Ensure that BigInteger.pow() is called with a non-negative value.
844 (setScale (int)): New public method.
845 (setScale (int,int)): New public method.
847 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
849 Fix for PR libgcj/1338:
850 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
851 commentChar. Fixed typos in comments.
853 2001-01-08 Warren Levy <warrenl@redhat.com>
855 Fix for PR libgcj/1411:
856 * Makefile.am: Removed java/util/natTimeZone.cc.
857 * Makefile.in: Rebuilt.
858 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
859 missing localized timezone names.
860 * java/lang/System.java (getDefaultTimeZoneId): New private method.
861 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
862 (init_properties): Set user.timezone property.
863 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
864 default timezone names; removed non-standard ones. Use standard
866 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
868 * java/util/TimeZone.java: Add standard ID names per JCL; removed
870 (getDefaultTimeZoneId): Removed.
872 * java/util/natTimeZone.cc: Removed.
874 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
876 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
877 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
878 (_Jv_GetArrayClass): New inline function.
879 (arrayclass): New field.
880 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
881 _Jv_GetArrayElementFromElementType.
882 (_Jv_NewPrimArray): Ditto.
883 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
884 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
885 Set Modifier::ABSTRACT.
886 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
887 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
888 Now synchronized. Array classes are now referenced from
889 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
890 Set array classes' accessibility flags correctly. Optimize so that
891 all array classes share the same IDT.
892 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
893 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
894 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
895 in superclasses from overwriting classes own fields.
896 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
897 Modifier::isAbstract().
898 (null_idt): New static field.
899 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
901 (_Jv_IndexOf): Made inline.
902 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
904 2001-01-08 Tom Tromey <tromey@redhat.com>
906 Fix for PR java/1586:
907 * Makefile.in: Rebuilt.
908 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
910 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
912 * Makefile.am: Use the new "-M -MF" option for generating dependencies
913 from the c++ compiler.
914 * Makefile.in: Rebuilt.
916 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
918 All files with updated copyright.
919 * prims.cc (class _Jv_PrimClass): Removed.
920 (init_prim_class): New function.
921 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
922 `_Jv_PrimClass' in primitive type declarations. Assign to the
923 value returned by `init_prim_class.'
924 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
925 primitive type declarations.
926 (JvPrimClass): Cast to `jclass' removed.
927 * java/lang/Class.h (Class): New constructor.
928 (Class): New copy constructor.
929 (initializePrim): New prototype.
930 (_Jv_PrimClass): Field removed.
931 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
932 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
933 (class java::lang::Object): `finalize' moved up front.
934 * java/lang/natClass.cc
935 (isAssignableFrom): Turned outline.
936 (isInstance): Likewise.
937 (isInterface): Likewise, fixed indentation.
938 (initializePrim): New function.
940 2001-01-07 Anthony Green <green@redhat.com>
942 * Makefile.am (texinfo): Add texinfo target for generating texinfo
944 * Makefile.in: Rebuilt.
946 * scripts/TexinfoDoclet.java: New file.
948 * doc/java-applet.texi, doc/java-lang-reflect.texi,
949 doc/java-awt-color.texi, doc/java-lang.texi,
950 doc/java-awt-datatransfer.texi, doc/java-math.texi,
951 doc/java-awt-event.texi, doc/java-net.texi,
952 doc/java-awt-geom.texi, doc/java-security-spec.texi,
953 doc/java-awt-image.texi, doc/java-security.texi,
954 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
955 doc/java-text.texi, doc/java-beans-beancontext.texi,
956 doc/java-util-jar.texi, doc/java-beans.texi,
957 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
958 doc/java-lang-ref.texi: New files.
960 2001-01-07 Anthony Green <green@redhat.com>
962 * java/net/URLConnection.java (setDoOutput): URLConnection's may
963 be used for both input and output, so don't clear doInput.
965 * java/lang/StringBuffer.java: Fix comments.
967 2001-01-06 Anthony Green <green@redhat.com>
969 * java/beans/PropertyDescriptor.java: Fix comment.
970 * java/io/PushbackReader.java: Fix comment.
971 * java/io/ObjectStreamClass.java: Fix comment.
972 * java/io/DataInputStream.java: Fix comment.
973 * java/io/PipedInputStream.java: Fix comments.
974 * java/io/PipedReader.java: Fix comments.
975 * java/sql/DatabaseMetaData.java: Fix comments.
977 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
979 * java/io/PipedReader: Synchronize on "lock" instead of this.
981 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
983 * java/lang/Thread.java: Update comment.
985 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
986 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
987 * java/io/PipedReader: New implementation based on new
989 * java/io/PipedWriter: Updated to match new PipedReader.
991 2001-01-03 Tom Tromey <tromey@redhat.com>
993 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
994 (getViewportSize): Insets include scrollbar size.
995 (doLayout): Finished.
996 (getScrollPosition): Wrote.
997 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
999 2001-01-02 Tom Tromey <tromey@redhat.com>
1001 * java/awt/ScrollPane.java: Wrote.
1002 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1005 * java/awt/Panel.java (Panel()): Fixed.
1007 * java/awt/Component.java (isShowing): Return false if no peer
1008 exists, and true if component is visible and no parent exists.
1009 (getLocationOnScreen): Wrote.
1010 (getPreferredSize): Removed FIXME comment.
1011 (getMinimumSize): Likewise.
1012 (getAlignmentX, getAlignmentY): Wrote.
1014 (requestFocus): Wrote.
1015 (transferFocus): Wrote.
1016 (findNextFocusComponent): New method.
1017 (hasFocus()): Wrote.
1018 (checkImage): Wrote.
1019 (enableEvents): Call setEventMask on the peer.
1021 * java/awt/Container.java (list): Use super.list() to print self.
1022 (findNextFocusComponent): New method.
1023 (setLayout): Call invalidate.
1024 (findComponentAt): Wrote.
1026 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
1028 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1029 the correct versions of various linuxthreads functions get linked.
1030 * Makefile.in: Rebuilt.
1031 * java/lang/natThread.cc (finalize_native): New static function. Call
1032 _Jv_ThreadDestroyData.
1033 (initialize_native): Register finalizer for "data".
1034 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1035 (_Jv_ThreadDestroyData): New prototype.
1036 * include/win32-threads.h: Ditto.
1037 * include/no-threads.h: Ditto.
1038 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1039 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1040 move mutex and condition variable destroy code from:
1041 (really_start): ...here.
1042 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1043 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1044 (_Jv_ThreadDestroyData): Implemented.
1045 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1046 (_Jv_AllocArray): Ditto.
1048 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
1050 * java/sql/DriverManager.java (getConnection): Don't set user/password
1053 2000-12-27 Warren Levy <warrenl@redhat.com>
1055 Fix for PR libgcj/1358:
1056 * java/lang/System.java: Update Copyright date properly.
1057 * java/util/Calendar.java: Fix typo in comment.
1058 (set): Set 24-hour clock hour instead of 12-hour clock hour.
1059 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1060 initialize times. Spec says to set H:M:S values to zero only if
1062 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1063 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1064 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1065 timezones and GMT offsets, being careful to account for units of
1066 milliseconds vs. seconds.
1068 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
1070 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1071 not be assigned to Object.
1073 Fix for PR libgcj/1516:
1074 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1076 (can_widen): Declared inline. Remove redundant checks for void
1077 arguments and char->short conversion. Add special case for boolean
1079 (ffi_type): Declared inline.
1080 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1082 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
1084 * java/sql/SQLWarning.java: Fixed typo in comment.
1086 2000-12-26 Tom Tromey <tromey@redhat.com>
1088 * java/awt/MenuItem.java (paramString): Now protected.
1090 * java/awt/MenuShortcut.java: Implements Serializable.
1092 * java/awt/MenuBar.java: Rewrote from scratch.
1094 * java/awt/MenuComponent.java (removeNotify): Wrote.
1095 Implements Serializable.
1097 * java/awt/GridBagConstraints.java (GridBagConstraints): New
1100 * java/awt/CheckboxMenuItem.java: Wrote.
1102 2000-12-25 Tom Tromey <tromey@redhat.com>
1104 * java/awt/MenuContainer.java: Fixed typo.
1106 * Makefile.in: Rebuilt.
1107 * Makefile.am (awt_java_source_files): Added SystemColor.java.
1108 * java/awt/SystemColor.java: New file.
1110 * java/awt/Color.java (rgba): Now package-private.
1112 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1114 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1117 * java/awt/MenuItem.java (addNotify): New method.
1118 (MenuItem(String,MenuShortcut)): New constructor.
1119 (setLabel): Notify peer of change.
1120 (setEnabled): Likewise.
1122 * java/awt/GridLayout.java (toString): New method.
1124 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1125 (FlowLayout): Check for LEADING and TRAILING.
1126 (setAlignment): Likewise.
1127 (layoutContainer): Handle component orientation.
1129 * java/awt/Component.java (orientatin): New field.
1130 (setComponentOrientation): Wrote.
1131 (getComponentOrientation): Wrote.
1133 * java/awt/Event.java (Event): Implements Serializable.
1134 (consumed): New field for serialization.
1135 * java/awt/Dimension.java (Dimension): Implements Serializable.
1136 * java/awt/Cursor.java (Cursor): Implements Serializable.
1137 * java/awt/Container.java (Container): No longer abstract.
1139 * java/awt/Choice.java: Wrote.
1140 * java/awt/Checkbox.java: Wrote.
1141 * java/awt/ItemSelectable.java: Documented.
1142 * java/awt/CheckboxGroup.java: Wrote.
1144 * java/awt/CardLayout.java (layoutContainer): Directly use fields
1146 (getSize): Likewise.
1148 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
1150 * java/io/FileDescriptor.java: Initialize fd to -1.
1151 Remove default constructor.
1153 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1155 * java/lang/mprec.h: Change C9X reference to refer to C99.
1157 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
1159 * java/lang/Throwable.java (trace_enabled): New static field.
1160 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1161 trace_enabled not set.
1162 * prims.cc (main_init): Turn off trace_enabled while creating
1163 default exception objects.
1165 2000-12-21 Tom Tromey <tromey@redhat.com>
1167 * java/beans/PropertyChangeListener.java: Extends EventListener.
1168 * java/beans/VetoableChangeListener.java: Extends EventListener.
1170 * java/util/zip/Deflater.java (update, init): Now private.
1172 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
1174 * java/util/BasicMapEntry.java: Re-added.
1175 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1176 (putAll): Test for BasicMapEntry.
1177 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1178 (putAll): Test for BasicMapEntry.
1179 Change references from `HashMap.Entry' to `Entry' in various places.
1180 * Makefile.am: Add BasicMapEntry.java.
1181 * Makefile.in: Rebuilt.
1183 2000-12-18 Warren Levy <warrenl@redhat.com>
1185 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1186 need to set timezone to a valid non-null value. Partial fix for
1189 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1191 * java/awt/Window.java (addNotify): Remove peer casting hack now that
1193 * java/awt/Button.java (addNotify): Likewise.
1194 * java/awt/Label.java (addNotify): Likewise.
1195 * java/awt/Panel.java (addNotify): Likewise.
1196 * java/awt/Scrollbar.java (addNotify): Likewise.
1197 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1198 Remove redundant null checks.
1200 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1202 * COPYING: Update to current
1203 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1204 to 19yy as example year in copyright notice).
1206 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
1208 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1209 end-of-stream if avail_in is 0.
1211 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
1213 * java/util/ArrayList.java (data): Declare transient.
1214 (serialPersistantFields): Removed.
1215 (readObject): Use defaultReadObject(), not readFields().
1216 (writeObject): Use defaultWriteObject(), not writeFields().
1218 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
1220 * java/util/Hashtable.java (put): Remove `last' variable.
1221 Link new entry to head of list.
1222 * java/util/HashMap.java (put): Ditto.
1224 2000-12-15 Tom Tromey <tromey@redhat.com>
1226 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1227 loader to Class.forName.
1229 2000-12-14 Tom Tromey <tromey@redhat.com>
1231 * java/util/ResourceBundle.java
1232 (getBundle(String,Locale,ClassLoader)): New method.
1233 (trySomeGetBundle): Added `loader' argument.
1234 (partialGetBundle): Likewise.
1236 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1237 maximumFractionDigits, maximumIntegerDigits,
1238 minimumFractionDigits, minimumIntegerDigits): Now
1241 * java/lang/Thread.java (checkAccess): Now final.
1243 * java/lang/RuntimePermission.java: Class now final.
1245 * java/io/StringWriter.java (StringWriter(int)): Now public.
1247 * java/io/SerializablePermission.java (legal_names): Now private.
1249 * java/lang/Character.java: Updated UnicodeBlock constants.
1250 * scripts/blocks.pl: Special case private use and surrogate
1253 2000-12-12 Tom Tromey <tromey@redhat.com>
1255 * Makefile.in: Rebuilt.
1256 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1258 (GCJCOMPILE): Use it.
1261 2000-12-11 Tom Tromey <tromey@redhat.com>
1263 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1264 New static final fields.
1266 * scripts/classes.pl (scan): Skip lines with leading `*'.
1267 Fix for PR libgcj/378.
1269 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1271 * configure.in: Remove check for -fuse-divide-subroutine.
1272 * configure: Rebuilt.
1274 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1276 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1278 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1280 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1281 Remove BasicMapEntry.java and Bucket.java.
1282 * Makefile.in: Rebuilt.
1283 * java/util/HashMap.java: Rewritten.
1284 * java/util/HashSet.java: Imported from classpath.
1285 * java/util/WeakHashMap.java: Imported from classpath.
1286 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1287 * java/util/Bucket.java: Deleted.
1288 * java/util/BasicMapEntry.java: Deleted.
1289 * java/util/Collections.java (search): Use a for-loop, not iterator
1291 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1292 of elements in source.
1293 (max): Use a for-loop.
1295 (reverse): Keep track of positions instead of using Iterator's
1296 nextIndex() and previousIndex().
1297 (shuffle(List)): Initialize defaultRandom if required using
1298 double-check thread safety idiom. Call two-argument shuffle method
1299 using defaultRandom.
1300 (defaultRandom): New field.
1301 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1302 using previousIndex() and nextIndex().
1303 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1304 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1305 * java/util/AbstractMap.java (toString): Use StringBuffer.
1306 * java/lang/ref/PhantomReference.java: Imported from classpath.
1307 * java/lang/ref/SoftReference.java: Ditto.
1308 * java/lang/ref/Reference.java: Ditto.
1309 * java/lang/ref/WeakReference.java: Ditto.
1310 * java/lang/ref/ReferenceQueue.java: Ditto.
1312 2000-12-10 Richard Henderson <rth@redhat.com>
1314 * configure.host: Recognize alpha*-*, not alphaev6-*.
1316 2000-12-09 Anthony Green <green@redhat.com>
1318 * configure.host: Enable interpreter for Alpha.
1320 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1322 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1323 (ZIP): Points at fastjar instead of zip.
1324 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1325 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1326 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1327 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1328 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1329 ($(x_java_source_files:.java=.class):): Likewise.
1330 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1332 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1333 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1334 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1335 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1336 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1337 gnu/gcj/runtime/VMClassLoader.h:,
1338 java/io/ObjectInputStream$$GetField.h:,
1339 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1340 (Makefile.in): Rebuilt.
1342 2000-12-08 Tom Tromey <tromey@redhat.com>
1345 * configure: Rebuilt.
1346 * configure.in: Use echo, not `:', to create .d files.
1348 2000-12-08 Warren Levy <warrenl@redhat.com>
1350 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1351 NullPointerException so proper check of offset can be done.
1353 2000-12-08 Warren Levy <warrenl@redhat.com>
1355 * java/io/FileInputStream.java (close): Check if the fd is valid.
1356 * java/io/RandomAccessFile.java (close): Ditto.
1357 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1358 * java/net/PlainSocketImpl.java (close): Ditto.
1360 2000-12-06 Tom Tromey <tromey@redhat.com>
1362 * java/awt/GridBagConstraints.java: Filled in values for static
1365 * java/util/BitSet.java: Updated copyright notice.
1367 * Makefile.in: Rebuilt.
1368 * Makefile.am (awt_java_source_files): Added new file.
1369 * java/awt/GridBagConstraints.java: New file.
1371 2000-12-05 Tom Tromey <tromey@redhat.com>
1373 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1374 Now package-private, not protected.
1375 * java/text/DateFormatSymbols.java (equals): Now private.
1376 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1377 * java/util/BitSet.java: Class no longer final.
1379 2000-12-04 Warren Levy <warrenl@redhat.com>
1381 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1382 out code dependent on compiler and library changes.
1384 2000-12-04 Warren Levy <warrenl@redhat.com>
1386 * java/io/FilePermission.java: Made class final per spec.
1387 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1388 method name to match spec (fixed typo).
1389 * java/util/LinkedList.java: Implements List.
1391 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1393 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1394 Edgar Villanueva <edgarvil@home.com>.
1396 2000-12-03 Tom Tromey <tromey@redhat.com>
1398 * java/awt/geom/Point2D.java: Added protected constructor.
1399 (equals): New method.
1400 (Float.setLocation(float,float)): New method.
1401 * java/awt/geom/Dimension2D.java: Added protected constructor.
1402 * java/awt/geom/AffineTransform.java: Made all constants public.
1403 (concatenate): Fixed typo in name.
1404 * java/awt/event/WindowAdapter.java: Class now abstract.
1405 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1406 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1409 * java/awt/AWTError.java: Extend Error, not
1410 IllegalStateException.
1412 * Makefile.in: Rebuilt.
1413 * Makefile.am (awt_java_source_files): Added new file.
1414 * java/awt/geom/RoundRectangle2D.java: New file.
1416 * Makefile.in: Rebuilt.
1417 * Makefile.am (awt_java_source_files): Added new file.
1418 * java/awt/FlowLayout.java: New file.
1420 * Makefile.in: Rebuilt.
1421 * Makefile.am (awt_java_source_files): Added new file.
1422 * java/awt/GridLayout.java: New file.
1424 2000-12-02 Tom Tromey <tromey@redhat.com>
1426 * Makefile.in: Rebuilt.
1427 * Makefile.am (awt_java_source_files): Added new files.
1428 * java/awt/CardLayout.java: New file.
1429 * java/awt/AWTPermission.java: New file.
1431 2000-12-01 Tom Tromey <tromey@redhat.com>
1433 * java/util/Vector.java (insertElementAt): Unconditionally
1434 increment elementCount.
1435 (removeRange): Clear unused slots in vector.
1437 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1439 * java/lang/natMath.cc: Declare fabsf() function.
1440 * java/lang/mprec.h: Don't include math.h.
1441 * java/lang/dtoa.c: Include string.h.
1442 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1445 From Adam Welc <welc@cs.purdue.edu>:
1446 * java/util/LinkedList.java (removeFirst): Update `first' field.
1447 Handle the last == first case.
1448 (removeLast): Update `last' field. Handle the last == first case.
1450 2000-12-01 Warren Levy <warrenl@cygnus.com>
1452 * Makefile.am: Added entries for new java.sql modules.
1453 * Makefile.in: Rebuilt.
1455 2000-12-01 Warren Levy <warrenl@cygnus.com>
1457 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1458 that aren't quite 1.2 compatible yet.
1460 2000-11-30 Warren Levy <warrenl@cygnus.com>
1462 * java/sql/Array.java: New file from classpath.
1463 * java/sql/BatchUpdateException.java: Ditto.
1464 * java/sql/Blob.java: Ditto.
1465 * java/sql/Clob.java: Ditto.
1466 * java/sql/Ref.java: Ditto.
1467 * java/sql/SQLData.java: Ditto.
1468 * java/sql/SQLInput.java: Ditto.
1469 * java/sql/SQLOutput.java: Ditto.
1470 * java/sql/Struct.java: Ditto.
1471 * java/sql/CallableStatement.java: Merged file from claspath.
1472 * java/sql/Connection.java: Ditto.
1473 * java/sql/DataTruncation.java: Ditto.
1474 * java/sql/DatabaseMetaData.java: Ditto.
1475 * java/sql/DriverManager.java: Ditto.
1476 * java/sql/PreparedStatement.java: Ditto.
1477 * java/sql/ResultSet.java: Ditto.
1478 * java/sql/ResultSetMetaData.java: Ditto.
1479 * java/sql/SQLException.java: Ditto.
1480 * java/sql/SQLWarning.java: Ditto.
1481 * java/sql/Statement.java: Ditto.
1482 * java/sql/Types.java: Ditto.
1484 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1486 * java/lang/natSystem.cc (init_properties): Set user.language and
1488 * configure.in: Check for setlocale.
1489 * configure: Rebuilt.
1490 * include/config.h.in: Rebuilt.
1492 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1493 the infate() call didn't deliver any output. Throw a ZipException if
1494 the needsDictionary() call returns true.
1495 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1496 * java/io/InputStreamReader: Use the default buffer size for the
1497 contained BufferedInputStream.
1499 2000-11-28 Warren Levy <warrenl@cygnus.com>
1501 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1502 more time zone entries.
1503 * java/text/SimpleDateFormat.java (format): Added case for
1506 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1508 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1509 directly rather than read() in all cases. Make primitive read
1510 implementations more efficient, as defined in JDK online docs.
1511 (skipBytes): Behave like the JDK's implementation.
1512 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1513 closed stream with checkStatus() whenever an IOException can be
1515 (checkStatus): New private method.
1517 2000-11-27 Warren Levy <warrenl@cygnus.com>
1519 * Makefile.am: Added natTimeZone.cc.
1520 * Makefile.in: Rebuilt.
1521 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1522 * java/text/DateFormatSymbols.java (ampms): Made package private.
1523 (eras): Made package private.
1524 (months): Made package private.
1525 (shortMonths): Made package private.
1526 (shortWeekdays): Made package private.
1527 (weekdays): Made package private.
1528 (formatPrefixes): New private field.
1529 (localPatternCharsDefault): Made private.
1530 (dateFormats): New package private field.
1531 (timeFormats): New package private field.
1532 (formatsForKey): New private method.
1533 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1534 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1535 * java/text/SimpleDateFormat.java: Merged with Classpath.
1536 * java/util/TimeZone.java: Merged with Classpath.
1537 * java/util/natTimeZone.cc: New file.
1539 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1541 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1542 (addElement): Don't increment elementCount twice. Doh.
1543 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1544 array needs to be expanded.
1546 * java/util/Collections.java (UnmodifiableCollection): Implement
1548 (UnmodifiableList): Throw UnsupportedOperationException from
1549 modification methods. Set `l' from the one-parameter constructor.
1550 (UnmodifiableMap): Implement toString().
1551 (SynchronizedCollection): Ditto.
1552 (SynchronizedList): Set `l' from the one-parameter constructor.
1553 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1554 (SynchronizedMap): Implement toString().
1556 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1558 * javax/naming/NameParser.java,
1559 javax/naming/directory/AttributeInUseException.java,
1560 javax/naming/directory/AttributeModificationException.java,
1561 javax/naming/directory/InvalidAttributeIdentifierException.java,
1562 javax/naming/directory/InvalidAttributesException.java,
1563 javax/naming/directory/InvalidAttributeValueException.java,
1564 javax/naming/directory/InvalidSearchControlsException.java,
1565 javax/naming/directory/InvalidSearchFilterException.java,
1566 javax/naming/directory/NoSuchAttributeException.java,
1567 javax/naming/directory/SchemaViolationException.java: New files.
1569 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1571 * javax/naming/InitialContext.java (rebind): Implement.
1572 (unbind): Implement.
1573 (rename): Implement.
1575 (listBindings): Implement.
1576 (destroySubcontext): Implement.
1577 (createSubcontext): Implement.
1578 (lookupLink): Implement.
1579 (getNameParser): Implement.
1580 (composeName): Implement.
1581 (addToEnvironment): Implement.
1583 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1585 * javax/naming/AuthenticationException.java,
1586 javax/naming/AuthenticationNotSupportedException.java,
1587 javax/naming/CannotProceedException.java,
1588 javax/naming/CommunicationException.java,
1589 javax/naming/ConfigurationException.java,
1590 javax/naming/ContextNotEmptyException.java,
1591 javax/naming/InsufficientResourcesException.java,
1592 javax/naming/InterruptedNamingException.java,
1593 javax/naming/InvalidNameException.java,
1594 javax/naming/LimitExceededException.java,
1595 javax/naming/LinkException.java,
1596 javax/naming/LinkLoopException.java,
1597 javax/naming/MalformedLinkException.java,
1598 javax/naming/NameAlreadyBoundException.java,
1599 javax/naming/NameNotFoundException.java,
1600 javax/naming/NamingSecurityException.java,
1601 javax/naming/NoPermissionException.java,
1602 javax/naming/NotContextException.java,
1603 javax/naming/PartialResultException.java,
1604 javax/naming/ReferralException.java,
1605 javax/naming/ServiceUnavailableException.java,
1606 javax/naming/SizeLimitExceededException.java,
1607 javax/naming/TimeLimitExceededException.java: New files.
1609 * javax/naming/Name.java (clone): New method.
1610 (compareTo): New method.
1611 (isEmpty): New method.
1612 (getAll): New method.
1613 (getPrefix): New method.
1614 (getSuffix): New method.
1615 (startsWith): New method.
1616 (endsWith): New method.
1617 (addAll): New method.
1618 (addAll): New method.
1621 (remove): New method.
1623 * javax/naming/Context.java (lookup): New method.
1624 (rebind): New method.
1625 (unbind): New method.
1626 (rename): New method.
1628 (listBindings): New method.
1629 (destroySubcontext): New method.
1630 (createSubcontext): New method.
1631 (lookupLink): New method.
1632 (getNameParser): New method.
1633 (composeName): New method.
1634 (addToEnvironment): New method.
1635 (removeFromEnvironment): New method.
1636 (getEnvironment): New method.
1637 (close): New method.
1638 (getNameInNamespace): New method.
1640 * javax/naming/InitialContext.java (lookup): New method.
1641 (rebind): New method.
1642 (unbind): New method.
1643 (rename): New method.
1645 (listBindings): New method.
1646 (destroySubcontext): New method.
1647 (createSubcontext): New method.
1648 (lookupLink): New method.
1649 (getNameParser): New method.
1650 (composeName): New method.
1651 (addToEnvironment): New method.
1652 (removeFromEnvironment): New method.
1653 (getEnvironment): New method.
1654 (close): New method.
1655 (getNameInNamespace): New method.
1657 2000-11-26 Tom Tromey <tromey@cygnus.com>
1659 * Makefile.in: Rebuilt.
1660 * Makefile.am (core_java_source_files): Added
1661 RuntimePermission.java.
1662 * java/lang/RuntimePermission.java: Imported from Classpath.
1663 * java/lang/Thread.java (getContextClassLoader): Now
1664 synchronized. Added security code.
1665 (setContextClassLoader): Likewise.
1667 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1668 length field of array.
1669 (_Jv_NewPrimArray): Likewise.
1670 * gcj/array.h (__JArray): `length' field now const. Added
1673 2000-11-26 Anthony Green <green@redhat.com>
1675 * javax/naming/spi/NamingManager.java,
1676 javax/naming/spi/ObjectFactory.java,
1677 javax/naming/spi/InitialContextFactory.java,
1678 javax/naming/spi/InitialContextFactoryBuilder.java,
1679 javax/naming/RefAddr.java, javax/naming/Reference.java,
1680 javax/naming/NamingException.java, javax/naming/Context.java,
1681 javax/naming/Referenceable.java,
1682 javax/naming/directory/InitialDirContext.java,
1683 javax/naming/directory/DirContext.java,
1684 javax/naming/directory/Attributes.java,
1685 javax/naming/directory/Attribute.java,
1686 javax/naming/StringRefAddr.java,
1687 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1688 javax/naming/InitialContext.java,
1689 javax/naming/NoInitialContextException.java: New files.
1691 2000-11-25 Anthony Green <green@redhat.com>
1693 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1694 (_Jv_NewPrimArray): Likewise.
1695 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1696 (class JArray): Removed constructor.
1698 * java/lang/Thread.java (context_class_loader): New private data.
1699 (getContextClassLoader): New method.
1700 (setContextClassLoader): New method.
1701 (Thread): Initialize context_class_loader.
1703 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1704 (getResource): Rename to findResource.
1705 (findResource): New method. Used to be getResource.
1706 (getResourceAsStream): Deleted.
1707 (jarFileize): Extracted logic from URLClassLoader constructor into
1708 this new private method.
1709 (addURL): New protected method.
1710 (URLClassLoader): Call jarFileize. Use addElement instead of
1712 (findResources): New method.
1714 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1715 (getResource): Implement correct logic.
1716 (findResource): New method.
1717 (getResources): New method.
1718 (findClass): Create a ClassNotFoundException with the name of the
1719 class rather than nothing at all.
1720 (defineClass) Only throw ClassFormatError.
1722 * java/lang/Class.java (forName): New method.
1723 * java/lang/Class.h (forName): New method.
1724 * java/lang/natClass.cc (forName): New method.
1726 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1728 * java/lang/System.java (setProperties): Only call init_properties()
1729 if properties is null.
1730 (getProperties): Ditto.
1731 (getProperty): Ditto.
1732 (setProperty): Call init_properties if properties are null.
1733 (prop_init): Remove field.
1734 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1735 method. Check for null properties after synchronizing instead of
1736 prop_init flag. Set the properties field last for thread safety.
1738 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1739 test for gcj.dumpobjects property and enable object stream dumping
1741 (dumpElement): No longer native.
1742 (dumpElementln): Ditto.
1743 (setDump): Do not define.
1744 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1745 (dumpElementln): Removed.
1748 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1750 * configure: Rebuilt.
1751 * Makefile.in: Rebuilt.
1752 * Makefile.am (built_java_source_files): Add Configuration.java.
1753 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1754 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1755 Create `gnu' directory in the build tree.
1756 * gnu/classpath/Configuration.java.in: New file.
1758 2000-11-24 Tom Tromey <tromey@cygnus.com>
1760 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1762 (_Jv_NewPrimArray): Likewise.
1764 * gcj/array.h (__JArray): `length' field now const. Added
1766 (class JArray): Added constructor.
1768 2000-11-23 Mark Wielaard <mark@klomp.org>
1770 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1773 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1775 * java/util/Vector.java: Improve exception messages.
1776 (Vector): Check initialCapacity for IllegalArgumentException.
1777 (tromToSize): Don't check for elementCount == elementData.length
1779 (toArray): Don't try to set null marker if target array is the same
1780 length as the vector.
1782 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1784 * Makefile.in: Rebuilt.
1785 * Makefile.am (core_java_source_files): Added Collections.java.
1786 * java/util/List.java: Merged from classpath.
1787 * java/util/Vector.java: Ditto.
1788 * java/util/Collections.java: From classpath.
1789 * java/util/ArrayList.java (addAll(Collection)): Call
1790 addAll(int,Collection) instead of duplicating code.
1791 (indexOf): Clean up int initialization.
1792 (clear): Set cleared array entries to null, to allow garbage
1794 * java/util/List.java: Minor formatting fixes.
1795 * java/util/SimpleTimeZone.java: ditto.
1797 2000-11-18 Tom Tromey <tromey@cygnus.com>
1799 * Makefile.in: Rebuilt.
1800 * Makefile.am (core_java_source_files): Added new files.
1801 * java/lang/reflect/ReflectPermission.java: New class.
1802 * java/io/FileFilter.java: From Classpath
1803 * java/io/FilePermission.java: From Classpath.
1805 2000-11-17 Tom Tromey <tromey@cygnus.com>
1807 * java/lang/reflect/AccessibleObject.java (isAccessible,
1808 setAccessible): Now public.
1810 * java/lang/natString.cc: Include Locale.h.
1811 (toUpperCase): Added `locale' argument. Handle locale
1813 (toLowerCase): Added `locale' argument. Handle locale
1815 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1816 CAPITAL_I): New defines.
1817 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1820 (toUpperCase, toLowerCase): New methods. Variants which accept
1823 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1826 * java/util/PropertyPermission.java: Re-merged from Classpath.
1828 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1830 * java/text/StringCharacterIterator.java: Reindented.
1831 (setText): New method.
1833 2000-11-17 Mark Wielaard <mark@klomp.org>
1835 Merge with Classpath (changes by Bryce McKinlay)
1836 * java/util/jar/*.java: Reformat all to unofficial standard coding
1837 style. No changes of substance.
1839 2000-11-17 Mark Wielaard <mark@klomp.org>
1841 * java/util/zip/*.java: Javadoc updates.
1843 2000-11-17 Tom Tromey <tromey@cygnus.com>
1845 * java/text/CollationKey.java: Implement Comparable.
1846 (compareTo(Object)): New method.
1847 * java/text/Collator.java (compare(Object,Object)): New method.
1848 Implement Comparator.
1850 * java/util/zip/InflaterInputStream.java (available): New method.
1851 (close): New method.
1852 (read, available, skip, fill): Throw exception if stream closed.
1853 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1854 getNextEntry): Throw exception if closed.
1856 2000-11-16 Tom Tromey <tromey@cygnus.com>
1858 * java/io/PushbackReader.java: Merged with Classpath.
1859 * java/util/Arrays.java: Updated from Classpath.
1861 * scripts/blocks.pl: New file.
1862 * java/lang/Character.java (Subset): New class.
1863 (UnicodeBlock): New class.
1865 * java/lang/Math.java (toDegrees, toRadians): New methods.
1867 * java/lang/Float.java: Implement Comparable.
1868 (compareTo): New methods.
1869 * java/lang/Double.java: Implement Comparable.
1870 (compareTo): New methods.
1872 2000-11-16 Warren Levy <warrenl@cygnus.com>
1874 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1876 (listeners): Made transient.
1877 (source): Renamed from 'bean'.
1878 (children): New field for serialization.
1879 (propertyChangeSupportSerializedDataVersion): Ditto.
1880 (serialVersionUID): Ditto.
1881 (writeObject): New serialization method.
1882 (readObject): New serialization method.
1883 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1885 (listeners): Made transient.
1886 (source): Renamed from 'bean'.
1887 (children): New field for serialization.
1888 (vetoableChangeSupportSerializedDataVersion): Ditto.
1889 (serialVersionUID): Ditto.
1890 (writeObject): New serialization method.
1891 (readObject): New serialization method.
1892 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1893 to allow constructor to have a return type (i.e. the class that the
1894 constructor constructs).
1896 2000-11-14 Tom Tromey <tromey@cygnus.com>
1898 * Makefile.in: Rebuilt.
1899 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1902 2000-11-02 Warren Levy <warrenl@cygnus.com>
1904 * java/io/ObjectInputStream.java (readObject): Added code to
1905 conditionally dump out the serialized data.
1906 Handle ENDBLOCKDATA case a bit more gracefully since the current
1907 behavior doesn't seem to work as expected.
1908 (readStreamHeader): Added code for serialized data dumper.
1909 (readNextBlock): Ditto.
1910 (readFields): Ditto.
1911 (dump): New private static field for turning on/off dumper.
1912 (setDump): New native method.
1913 (dumpElement): New native method.
1914 (dumpElementln): New native method.
1915 * java/io/natObjectInputStream.cc (setDump): New method.
1916 (dumpElement): New method.
1917 (dumpElementln): New method.
1919 2000-11-02 Warren Levy <warrenl@cygnus.com>
1921 * java/net/InetAddress.java (addr): Renamed from 'address'.
1922 (address): New field to match Serialized Form doc.
1923 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1924 (family): New serialization field.
1925 (serialVersionUID): New field.
1926 (readObject): New method.
1927 (writeObject): New method.
1928 (getFamily): New native method.
1929 (InetAddress): Set family.
1930 * java/net/natInetAddress.cc (getFamily): New method.
1931 (addr): Renamed from 'address'.
1932 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1933 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1934 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1936 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1938 * java/util/AbstractList.java (SubList): Make it a top-level private
1940 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1942 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1943 * Makefile.in: Rebuilt.
1945 2000-11-02 Tom Tromey <tromey@cygnus.com>
1947 * Makefile.in: Rebuilt.
1948 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1951 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1953 * java/util/AbstractList.java (remove): Comment out modCount increment
1954 to work around compiler bug.
1957 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1959 * java/util/AbstractList.java: Throw messages with
1960 IndexOutOfBoundsExceptions.
1961 (listIterator()): Call listIterator(0).
1962 (size): New field. Initialize to size().
1963 (hasNext): Test position against size, not size().
1964 (remove): Increment knownMod by one instead of resetting it from
1967 (SubList.upMod): Removed.
1968 (SubList.set): Don't call upMod() or update knownMod.
1969 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1970 (SubList.remove): Ditto.
1971 (SubList.addAll): Don't call backingList.size(). Increment size from
1973 (SubList.iterator): New method. Call listIterator(0).
1974 (SubList.listIterator): New method. Restore code to return an anonymous
1975 listIterator implementation (with some changes).
1976 * java/util/AbstractSequentialList.java: Throw messages with
1977 IndexOutOfBoundsExceptions.
1978 (addAll): Add a specnote.
1979 * java/util/ArrayList.java (removeRange): Get the math right.
1980 (addAll): Increment modCount _before_ creating iterator.
1981 * java/util/LinkedList.java: Rewritten, mostly.
1983 2000-11-01 Tom Tromey <tromey@cygnus.com>
1985 * scripts/encodings.pl: Added `ASCII' alias.
1986 * Makefile.in: Rebuilt.
1987 * Makefile.am (convert_source_files): Added new files.
1988 * gnu/gcj/convert/Input_ASCII.java: New file.
1989 * gnu/gcj/convert/Output_ASCII.java: New file.
1990 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1991 out-of-range characters.
1992 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1993 (read): Swap bytes if required. Treat `count' as character count,
1995 (write): Likewise. Also, handle case where iconv fails on a given
1997 (init): Put encoding into exception.
1998 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1999 (static): Call iconv_init. Rebuilt alias list.
2000 (iconv_init): New private method.
2002 2000-11-01 Tom Tromey <tromey@cygnus.com>
2004 * Makefile.in: Rebuilt.
2005 * Makefile.am (install-exec-hook): Only make a single symlink, and
2006 remove the destination before making the link.
2007 * configure: Rebuilt.
2008 * configure.in: Call AC_PROG_LN_S.
2010 2000-10-31 Warren Levy <warrenl@cygnus.com>
2012 * jni.cc: Added include of java/lang/ThreadGroup.h.
2013 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2014 per change of 2000-10-05.
2016 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
2018 * java/util/BitSet.java: Updated @specnote.
2020 * java/io/Reader.java: Merge docs from classpath.
2021 (skip): Synchronize on `lock'.
2022 * java/io/FileReader.java: Import correct implementation from
2024 * java/io/StringReader.java: Merge docs from classpath.
2025 (ready): Throw IOException if stream is closed.
2027 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
2029 * java/util/AbstractCollection.java (addAll): Use size() instead of
2030 hasNext() in iterator loop.
2032 (contains): Ditto. Simplify loop.
2033 (containsAll): Ditto.
2038 (toString): Ditto. Use string concatenation operators, not
2040 * java/util/AbstractList.java (addAll): Use size() instead of
2041 hasNext() in iterator loop.
2044 (indexOf): Ditto. Don't take null check outside of the loop.
2045 (iterator): Return an AbstractListItr instead of anonymous class.
2046 (lastIndexOf): Use a for loop bounded by size() instead of
2047 hasPrevious() in iterator loop.
2048 (listIterator): Return an AbstractListItr.
2049 (removeRange): Remove bounds checking code and docs.
2050 (AbstractListItr): New inner class. Code moved here from
2052 (SubList.iterator): Removed. Use default implementation from
2053 AbstractList instead.
2054 (SubList.listIterator): As above.
2055 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2056 instead of hasNext() in iterator loop.
2057 (containsValue): Ditto.
2063 (toString): Ditto. Use string concatenation operators, not
2065 * java/util/AbstractSequentialList.java (addAll): Use a for loop
2066 bounded by size() instead of hasNext() in iterator loop.
2067 * java/util/AbstractSet.java (hashCode): Don't catch exception as
2068 part of normal execution flow. Do an explicit null check instead.
2069 * java/util/ArrayList.java (_iSize): Rename to `size'.
2070 (_arData): Rename to `data'.
2071 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2074 (removeRange): Make protected. Don't check bounds.
2075 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2077 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2079 (addAll (int, Collection)): Check lower bounds. Simplify exception
2081 (clone): Clone the data array too.
2082 (indexOf): Inline doesEqual().
2083 (lastIndexOf): Ditto.
2084 (clear): Don't set array data to null.
2085 (set): Check lower bounds. Simplify exception string.
2086 (toArray): Correct comment.
2087 (trimToSize): Don't update modCount, this is not a structural change.
2090 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2092 (toString): Declare `bit' as long, not int.
2093 (data): Made package-private, not private.
2095 2000-10-27 Warren Levy <warrenl@cygnus.com>
2097 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2098 array elements to true.
2100 2000-10-27 Warren Levy <warrenl@cygnus.com>
2102 * Makefile.am: Added locale files from Classpath.
2103 * Makefile.in: Rebuilt.
2104 * gnu/java/locale/Calendar.java: New file.
2105 * gnu/java/locale/Calendar_de.java: New file.
2106 * gnu/java/locale/Calendar_en.java: New file.
2107 * gnu/java/locale/Calendar_nl.java: New file.
2108 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2109 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2110 serialization compatibility.
2111 (scale): Made private.
2112 (serialVersionUID): New field.
2113 * java/math/BigInteger.java (ival): Made transient.
2114 (words): Made transient.
2115 (bitCount): New serialization field.
2117 (firstNonzeroByteNum): Ditto.
2118 (lowestSetBit): Ditto.
2121 (serialVersionUID): New field.
2122 (readObject): New method.
2123 (writeObject): New method.
2124 * java/util/BitSet.java (serialVersionUID): New field.
2125 * java/util/Calendar.java: Replaced with Classpath file.
2126 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2127 of getDefault() for TimeZone or Locale instead of passing nulls.
2128 * java/util/Locale.java (serialVersionUID): New field.
2129 (writeObject): New method.
2130 (readObject): New method.
2131 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2133 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
2135 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2136 (core_java_source_files): Put java.lang, java.io, and java.util here.
2137 (ordinary_java_source_files): Order so that core_java_source_files are
2139 (java_source_files): Reorder so that special_java_source_files are
2141 * configure.in: Don't pass -I flag to gcj.
2142 * Makefile.in: Rebuilt.
2143 * configure: Rebuilt.
2145 2000-10-25 Tom Tromey <tromey@cygnus.com>
2147 * Makefile.in: Rebuilt.
2148 * Makefile.am (install-exec-hook): New target.
2150 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
2152 * java/util/EventObject.java: Merged from classpath.
2154 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2157 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2159 * java/util/AbstractSet.java (equals): Re-installed original code.
2161 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2163 * Makefile.am: Added rules for libgcjx library.
2164 * Makefile.in: Rebuilt.
2165 * configure.in: Added check for X.
2166 * configure: Rebuilt.
2167 * gnu/awt/LightweightRedirector.java: New file.
2168 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2169 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2170 * gnu/awt/j2d/Graphics2DImpl.java: New file.
2171 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2172 * gnu/awt/j2d/MappedRaster.java: New file.
2173 * gnu/awt/xlib/XCanvasPeer.java: New file.
2174 * gnu/awt/xlib/XEventLoop.java: New file.
2175 * gnu/awt/xlib/XEventQueue.java: New file.
2176 * gnu/awt/xlib/XFontMetrics.java: New file.
2177 * gnu/awt/xlib/XFramePeer.java: New file.
2178 * gnu/awt/xlib/XGraphics.java: New file.
2179 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2180 * gnu/awt/xlib/XPanelPeer.java: New file.
2181 * gnu/awt/xlib/XToolkit.java: New file.
2182 * gnu/gcj/xlib/Clip.java: New file.
2183 * gnu/gcj/xlib/Colormap.java: New file.
2184 * gnu/gcj/xlib/Display.java: New file.
2185 * gnu/gcj/xlib/Drawable.java: New file.
2186 * gnu/gcj/xlib/Font.java: New file.
2187 * gnu/gcj/xlib/GC.java: New file.
2188 * gnu/gcj/xlib/Pixmap.java: New file.
2189 * gnu/gcj/xlib/Screen.java: New file.
2190 * gnu/gcj/xlib/Visual.java: New file.
2191 * gnu/gcj/xlib/WMSizeHints.java: New file.
2192 * gnu/gcj/xlib/Window.java: New file.
2193 * gnu/gcj/xlib/WindowAttributes.java: New file.
2194 * gnu/gcj/xlib/XAnyEvent.java: New file.
2195 * gnu/gcj/xlib/XButtonEvent.java: New file.
2196 * gnu/gcj/xlib/XColor.java: New file.
2197 * gnu/gcj/xlib/XConfigureEvent.java: New file.
2198 * gnu/gcj/xlib/XConnectException.java: New file.
2199 * gnu/gcj/xlib/XEvent.java: New file.
2200 * gnu/gcj/xlib/XException.java: New file.
2201 * gnu/gcj/xlib/XExposeEvent.java: New file.
2202 * gnu/gcj/xlib/XID.java: New file.
2203 * gnu/gcj/xlib/XImage.java: New file.
2204 * gnu/gcj/xlib/XUnmapEvent.java: New file.
2205 * gnu/gcj/xlib/natClip.cc: New file.
2206 * gnu/gcj/xlib/natColormap.cc: New file.
2207 * gnu/gcj/xlib/natDisplay.cc: New file.
2208 * gnu/gcj/xlib/natDrawable.cc: New file.
2209 * gnu/gcj/xlib/natFont.cc: New file.
2210 * gnu/gcj/xlib/natGC.cc: New file.
2211 * gnu/gcj/xlib/natPixmap.cc: New file.
2212 * gnu/gcj/xlib/natScreen.cc: New file.
2213 * gnu/gcj/xlib/natVisual.cc: New file.
2214 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2215 * gnu/gcj/xlib/natWindow.cc: New file.
2216 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2217 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2218 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2219 * gnu/gcj/xlib/natXColor.cc: New file.
2220 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2221 * gnu/gcj/xlib/natXException.cc: New file.
2222 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2223 * gnu/gcj/xlib/natXImage.cc: New file.
2224 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2225 * java/awt/EventDispatchThread.java: Start thead on creation.
2227 2000-10-20 Tom Tromey <tromey@cygnus.com>
2229 From Arno J. Klaassen:
2230 * interpret.cc: Include <stdlib.h> for alloca.
2231 * defineclass.cc: Include <stdlib.h> for alloca.
2233 * Makefile.in: Rebuilt.
2234 * Makefile.am: Include deps.mk.
2235 (GCJCOMPILE): Added -MD, -MT, and -MF.
2236 ($(javao_files)): Don't depend on libgcj.zip.
2237 (all-recursive): New target.
2238 (%.lo:%.cc): Do dependency tracking.
2239 ($(nat_headers)): Don't depend on libgcj.zip.
2240 * configure: Rebuilt.
2241 * configure.in: Make .d files and deps.mk.
2243 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
2245 * exception.cc: Don't #include "exception".
2246 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2248 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2249 * Makefile.in: Updated.
2251 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2253 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2254 * java/awt/peer/ComponentPeer.java (disable): Removed.
2257 (minimumSize): Removed.
2258 (preferredSize): Removed.
2261 * java/awt/peer/ListPeer.java (addItem): Removed.
2263 (minimumSize): Removed.
2264 (preferredSize): Removed.
2265 (setMultipleSelections): Removed.
2266 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2267 (remove): Renamed from removeMenu.
2268 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2270 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2271 (remove): Renamed from removeItem.
2272 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2273 (getMinimumSize): Removed.
2274 (getPreferredSize): Removed.
2275 (minimumSize): Removed.
2276 (preferredSize): Removed.
2277 (replaceText): Removed.
2278 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2279 (preferredSize): Removed.
2280 (getMinimumSize): Removed.
2281 (getPreferredSize): Removed.
2282 (setEchoCharacter): Removed.
2284 2000-10-10 Warren Levy <warrenl@cygnus.com>
2286 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2287 * java/sql/Date.java (serialVersionUID): New field.
2288 * java/sql/Time.java (serialVersionUID): New field.
2289 * java/sql/Timestamp.java (serialVersionUID): New field.
2290 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2291 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2292 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2293 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2294 (readObject): New serialization method.
2295 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2296 (serialVersionOnStream): New field.
2297 (readObject): New serialization method.
2298 (getMonetaryDecimalSeparator): New method.
2299 (setMonetaryDecimalSeparator): New method.
2300 * java/text/NumberFormat.java (maxFractionDigits): New field.
2301 (maxIntegerDigits): New field.
2302 (minFractionDigits): New field.
2303 (minIntegerDigits): New field.
2304 (serialVersionOnStream): New field.
2305 (serialVersionUID): New field.
2306 (readObject): New serialization method.
2307 (writeObject): New serialization method.
2308 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2309 (serialVersionOnStream): New field.
2310 (serialVersionUID): New field.
2311 (readObject): New serialization method.
2313 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2315 * configure.in (GCJ): Avoid bogus error message when looking for
2316 (and not finding) gcj in the build tree.
2317 * configure: Rebuilt.
2319 2000-10-09 Tom Tromey <tromey@cygnus.com>
2321 * configure: Rebuilt.
2322 * configure.in: Include sys/types.h when checking for socklen_t.
2323 From Arno J. Klaassen.
2325 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2327 * include/jvm.h: Enable __builtin_expect().
2329 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2330 the main program. Fix for PR libgcj/341.
2332 2000-10-07 Tom Tromey <tromey@cygnus.com>
2334 * java/util/Properties.java: Merged with Classpath version.
2336 2000-10-05 Tom Tromey <tromey@cygnus.com>
2338 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2339 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2340 * java/lang/Class.h (Object): Added `class$' field.
2341 * java/lang/Object.h (Object): Added `class$' field.
2342 * defineclass.cc (ClassClass): Use `class$' form.
2343 (ClassObject): Likewise.
2344 * resolve.cc (ClassObject): Use `class$' form.
2345 (ObjectClass): Likewise.
2346 * interpret.cc (ClassError): Removed.
2347 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2349 (IntegerClass): Likewise.
2350 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2352 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2353 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2354 SerializableClass): Likewise.
2355 Include Serializable.h, Cloneable.h.
2356 * java/lang/natSystem.cc (SystemClass): Removed.
2357 (init_properties): Use `class$' form.
2358 * java/lang/natObject.cc (CloneableClass): Removed.
2359 (clone): Use `class$' form.
2360 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2361 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2362 ConstructorClass): Likewise.
2363 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2364 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2365 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2366 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2368 (ClassClass): Likewise.
2369 * include/jvm.h (StringClass): Use `class$' form.
2370 * prims.cc (ObjectClass): Removed.
2371 (_Jv_RunMain): Use `class$' form.
2372 (_Jv_AllocObject): Likewise.
2373 * jni.cc (ClassClass): Use `class$' form.
2374 (ThrowableClass): Likewise.
2375 (ObjectClass): Likewise.
2376 (MethodClass): Likewise.
2377 (ThreadGroupClass): Likewise.
2378 (NativeThreadClass): Likewise.
2379 * boehm.cc (ObjectClass): Removed.
2380 (ClassClass): Removed.
2381 (_Jv_MarkObj): Use `class$' form.
2382 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2385 2000-10-05 Warren Levy <warrenl@cygnus.com>
2387 * Makefile.am: Removed java/io/Replaceable.java and
2388 java/io/Resolvable.java.
2389 * Makefile.in: Rebuilt.
2390 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2392 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2394 (processResolution): Handle readResolve method via reflection with
2395 removal of Resolvable interface.
2396 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2397 method via reflection with removal of Replaceable interface.
2398 * java/io/Replaceable.java: Removed.
2399 * java/io/Resolvable.java: Removed.
2400 * java/security/Key.java (serialVersionUID): New field.
2401 * java/security/Provider.java (serialVersionUID): New field.
2402 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2404 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2406 * java/sql/DataTruncation.java (serialVersionUID): New field.
2407 * java/sql/SQLException.java (serialVersionUID): New field.
2408 * java/sql/SQLWarning.java (serialVersionUID): New field.
2409 * java/util/Date.java (serialVersionUID): New field.
2410 (millis): Made transient.
2411 (readObject): New method.
2412 (writeObject): New method.
2414 2000-10-05 Tom Tromey <tromey@cygnus.com>
2416 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2418 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2420 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2421 (JvRunMain): Set _Jv_argv and _Jv_argc.
2422 * java/awt/Component.java: Minor fixes.
2423 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2424 * java/awt/Toolkit.java (systemEventQueue): Removed.
2425 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2426 * java/awt/Window.java (getToolkit): Don't call super.
2427 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2428 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2429 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2430 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2431 * gnu/awt/gtk/GtkFramePeer.java: New file.
2432 * gnu/awt/gtk/GtkMainThread.java: New file.
2433 * gnu/awt/gtk/GtkToolkit.java: New file.
2434 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2435 * gnu/awt/gtk/gtkcommon.cc: New file.
2436 * gnu/awt/gtk/gtkcommon.h: New file.
2437 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2438 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2439 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2440 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2441 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2442 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2444 2000-09-30 Tom Tromey <tromey@cygnus.com>
2446 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2447 interrupted before modifying the cv's wait set.
2450 2000-09-30 Hans Boehm <boehm@acm.org>
2451 Bryce McKinlay <bryce@albatross.co.nz>
2453 Implement bitmap descriptor based marking for Boehm GC.
2455 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2456 * configure: Rebuilt.
2457 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2458 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2459 method get_finalizer().
2460 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2461 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2462 (_Jv_AllocObj): Add new jclass parameter.
2463 (_Jv_AllocArray): Ditto.
2464 (_Jv_BuildGCDescr): New prototype.
2465 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2466 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2467 get_finalizer() instead of direct finalizer vtable offset.
2468 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2469 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2470 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2471 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2472 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2473 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2474 (_Jv_DetermineVTableIndex): Ditto.
2475 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2476 calculations to account for new gc_descr field.
2477 * boehm.cc: #include gc_gcj.h.
2478 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2479 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2480 New commentary from HB. Mark the classes vtable.
2481 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2482 (GC_DEFAULT_DESCR): New #define.
2483 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2484 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2485 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2486 scan conservativly if size is less than min_heap_addr. Set vtable
2487 pointer of new object before returning.
2488 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2489 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2490 allocation for obj_kind_x.
2491 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2492 (_Jv_AllocObj): Set vtable on returned object.
2493 (_Jv_AllocArray): Ditto.
2494 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2495 (_Jv_NewPrimArray): Ditto.
2496 (_Jv_AllocObj): Declare as a friend.
2497 (_Jv_AllocArray): Ditto.
2498 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2499 from &ObjectClass into new array class. Remove offset-by-one
2500 adjustments from `method' size calculations to account for gc_descr
2503 2000-09-26 Tom Tromey <tromey@cygnus.com>
2505 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2506 `remove', not `add'.
2508 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2510 * java/lang/natSystem.cc (file_encoding): Added return statement.
2512 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2514 * Makefile.am: Re-work shell commands that exceeded command-line
2516 * Makefile.in: Rebuilt.
2518 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2520 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2521 * java/lang/natDouble.cc: Likewise.
2522 * java/lang/reflect/natMethod.cc: Likewise.
2523 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2525 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2527 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2529 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2530 * acinclude.m4: Arrange for automake to not bring in a new
2531 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2532 * Makefile.am: Leave it up to automake to subst GCJ.
2533 * aclocal.m4, configure, Makefile.in: Rebuilt.
2535 2000-09-13 Tom Tromey <tromey@cygnus.com>
2537 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2538 (get): Ensure Boolean class is initialized.
2539 * java/lang/reflect/natField.cc (BooleanClass): New define.
2540 (get): Ensure Boolean class is initialized.
2542 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2544 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2545 Initialize with anonymous class.
2546 (compareToIgnoreCase): New method.
2548 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2549 (uncaughtException): Set had_uncaught_exception.
2550 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2551 exit with error status if set.
2552 (_Jv_RunMain): Ditto.
2554 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2556 * configure: Rebuilt with new ../libtool.m4.
2558 2000-09-11 Tom Tromey <tromey@cygnus.com>
2560 * java/lang/reflect/Field.java (toString): Don't rely on
2563 2000-09-08 Tom Tromey <tromey@cygnus.com>
2565 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2566 default decoder use iconv.
2567 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2568 Let default encoder use iconv.
2569 * configure: Rebuilt.
2570 * configure.in: Check for nl_langinfo and <langinfo.h>.
2571 * java/lang/natSystem.cc (file_encoding): New function.
2572 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2574 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2576 * acinclude.m4: Simplify the tests for CC and CXX.
2577 * aclocal.m4, configure: Rebuilt.
2579 * acinclude.m4: Include libtool macros from the source tree.
2580 * aclocal.m4, configure: Rebuilt.
2582 2000-09-08 Warren Levy <warrenl@cygnus.com>
2584 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2585 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2586 * java/io/File.java (writeObject): Added.
2587 (readObject): Added.
2588 (serialVersionUID): Added.
2589 * java/io/ObjectOutputStream.java (writeObject): Initialized
2590 fieldsAlreadyWritten before recursion rather than after.
2591 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2592 * java/io/OptionalDataException.java (serialVersionUID): Added.
2593 (OptionalDataException): Made package private.
2594 * java/io/SyncFailedException.java (SyncFailedException): Removed
2595 default constructor to match spec.
2596 * java/lang/Boolean.java (serialVersionUID): Added.
2597 * java/lang/Byte.java (serialVersionUID): Added.
2598 * java/lang/Character.java (serialVersionUID): Added.
2599 * java/lang/Double.java (serialVersionUID): Added.
2600 * java/lang/Float.java (serialVersionUID): Added.
2601 * java/lang/Integer.java (serialVersionUID): Added.
2602 * java/lang/Long.java (serialVersionUID): Added.
2603 * java/lang/Number.java (serialVersionUID): Added.
2604 * java/lang/Short.java (serialVersionUID): Added.
2605 * java/lang/String.java (serialVersionUID): Added.
2606 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2608 * java/lang/reflect/InvocationTargetException.java
2609 (serialVersionUID): Added.
2610 * java/net/URL.java (handler): Made transient.
2611 (hashCode): Added field for serialization, per spec. and use
2612 cached value if available.
2613 (serialVersionUID): Added.
2614 (URL): Initialize hashCode.
2615 (set): Adjust hashCode.
2616 (readObject): New Method to initialize the protocol handler when
2618 (writeObject): New method.
2619 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2620 * java/text/Collator.java: Removed 'implements Serializable'.
2621 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2622 * java/util/Properties.java (serialVersionUID): Added.
2623 * java/util/Random.java (serialVersionUID): Added.
2624 (seed): Made private.
2625 (nextNextGaussian): Made private.
2626 (haveNextNextGaussian): Made private.
2627 * java/util/Stack.java (serialVersionUID): Added.
2628 * java/util/TimeZone.java (serialVersionUID): Added.
2629 * java/util/Vector.java (serialVersionUID): Added.
2631 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2633 * Makefile.am (Thread.h): Don't be friends with native threads
2635 * Makefile.in: Rebuilt.
2636 * java/lang/Thread.java (interrupt_flag): Make package-private.
2638 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2640 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2641 to avoid long long division.
2643 2000-09-06 Tom Tromey <tromey@cygnus.com>
2645 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2647 * java/lang/reflect/Method.java (toString): Use `getName' for
2650 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2651 `args' if method takes no parameters.
2653 Fix for PR java.lang/339:
2654 * java/lang/natPosixProcess.cc (fail): New function.
2655 (cleanup): New function.
2656 (startProcess): Use them. Create pipe so child can communicate
2657 exec failure back to parent.
2659 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2661 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2663 (send): Undo last patch. Remove the label only.
2665 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2667 * java/net/natInetAdress.cc: Ditto.
2669 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2671 2000-09-05 Tom Tromey <tromey@cygnus.com>
2673 * doc/cni.sgml: Updated from master copy.
2675 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2677 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2679 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2681 * java/lang/fdlibm.h: #undef __P if previously defined.
2682 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2683 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2687 2000-09-04 Tom Tromey <tromey@cygnus.com>
2689 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2692 2000-09-04 Anthony Green <green@redhat.com>
2694 Fix for PR java.io/203:
2695 * java/io/File.java (createTempFile): Obey directory argument.
2696 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2697 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2698 variable to set java.io.tmpdir on non-WIN32 systems.
2700 2000-09-04 Anthony Green <green@redhat.com>
2702 * java/io/File.java (deleteOnExit): New method.
2703 * gnu/gcj/runtime/FileDeleter.java: New class.
2704 * java/lang/natRuntime.cc (exit): Call
2705 FileDeleter.deleteOnExitNow()
2706 * Makefile.am: Add FileDeleter.java.
2707 * Makefile.in: Rebuilt.
2709 2000-09-02 Tom Tromey <tromey@cygnus.com>
2711 * Makefile.in: Rebuilt.
2712 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2713 environment variable.
2715 2000-09-01 Andrew Haley <aph@redhat.com>
2717 * java/io/StreamTokenizer.java: Don't throw a
2718 NumberFormatException if a field is numeric as far as the
2719 StreamTokenizer is concerned but not as far as Double.valueOf() is
2720 concerned: return a zero instead.
2722 2000-08-30 Tom Tromey <tromey@cygnus.com>
2724 * Makefile.in: Rebuilt.
2725 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2727 2000-08-28 Tom Tromey <tromey@cygnus.com>
2729 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2730 gnu/gcj/awt/ComponentDataBlitOp.java,
2731 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2732 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2733 java/awt/color/ICC_ColorSpace.java,
2734 java/awt/color/ICC_Profile.java,
2735 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2736 java/awt/image/ComponentColorModel.java,
2737 java/awt/image/ComponentSampleModel.java,
2738 java/awt/image/DataBuffer.java,
2739 java/awt/image/DataBufferByte.java,
2740 java/awt/image/DataBufferInt.java,
2741 java/awt/image/DataBufferUShort.java,
2742 java/awt/image/DirectColorModel.java,
2743 java/awt/image/IndexColorModel.java,
2744 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2745 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2746 java/awt/image/SinglePixelPackedSampleModel.java,
2747 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2748 Removed Latin-1 copyright symbols.
2749 * java/util/zip/ZipFile.java: Indentation fixes.
2751 2000-08-27 Mark Wielaard <mark@klomp.org>
2753 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2754 constructor, close can delete the file, finalize calls close.
2755 * java/util/jar/JarFile.java: Constructor that takes mode now
2758 2000-08-27 Anthony Green <green@redhat.com>
2760 * java/util/ArrayList.java, java/util/Timer.java,
2761 java/util/LinkedList.java, java/util/TimerTask.java,
2762 java/util/HashMap.java, java/util/AbstractMap.java,
2763 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2764 java/util/SortedSet.java: Imported from GNU Classpath.
2765 * Makefile.in: Rebuilt.
2766 * Makefile.am: Added new files.
2768 2000-08-26 Anthony Green <green@redhat.com>
2770 * Makefile.in: Rebuilt.
2771 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2774 * prims.cc: Include ClassLoader.h.
2775 (_Jv_RunMain): When executing jar files, classpath must be the jar
2776 file only. Lose our reference to the system ClassLoader in order
2777 to get a new one with the correct classpath.
2778 * java/lang/natSystem.cc (init_properties): When executing a jar
2779 file, only use the jar file for java.class.path.
2781 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2782 for bytecode archives.
2784 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2785 exists, but not Main-Class.
2787 2000-08-23 Mark Wielaard <mark@klomp.org>
2789 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2790 return -1 when fill() has no more data for the Inflater.
2792 2000-08-23 Mark Wielaard <mark@klomp.org>
2794 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2795 write(String) already does.
2797 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2799 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2800 to `alive_flag', call `init'.
2801 (init): New native method.
2802 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2805 2000-08-21 Mark Wielaard <mark@klomp.org>
2807 * Makefile.in: Rebuilt.
2808 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2810 (java/lang/reflect/Field.h): Likewise.
2811 (java/lang/reflect/Method.h): Likewise.
2812 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2815 2000-08-21 Tom Tromey <tromey@cygnus.com>
2817 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2820 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2822 * java/lang/natSystem.cc (init_properties): Change sourceware
2823 reference to sources.redhat.com.
2825 * include/java-props.h: Add _Jv_Jar_Class_Path.
2826 * prims.cc: Ditto. Set it from `gij -jar file' option.
2828 * java/lang/natSystem.cc (init_properties): Set java.class.path
2830 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2832 * java/util/PropertyPermission.java: Import from GNU Classpath.
2833 * Makefile.in: Rebuilt.
2834 * Makefile.am: Add java/util/PropertyPermission.java.
2835 * java/lang/System.java: Add setProperty method.
2837 * gij.cc (main): Add -jar option to execute jar files.
2838 (help): Describe -jar option.
2839 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2840 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2841 * gnu/gcj/runtime/FirstThread.java (main): New method.
2843 * java/util/jar/Attributes.java: Correct comment spelling.
2845 2000-08-20 Mark Wielaard <mark@klomp.org>
2847 * java/util/zip/Adler32.java: Make private variables really private
2848 * java/util/zip/CRC32.java: Make private variables really private
2849 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2851 * java/util/zip/InflaterInputStream.java: skip() could skip to
2853 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2854 * java/util/zip/ZipFile.java: size() new 1.2 method
2855 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2856 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2859 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2861 * java/util/jar/JarFile.java: Don't call
2862 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2865 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2867 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2868 Read the entire contents of the class file, not just what is
2871 * java/net/JarURLConnection.java: getEntry doesn't take any
2872 arguments. Return null if element is null.
2874 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2875 size from the archive, not the inflated size.
2877 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2878 java.util.zip.ZipFile.getEntry.
2880 * gij.cc (help): Change sourceware reference to
2883 2000-08-19 Tom Tromey <tromey@cygnus.com>
2885 * java/util/zip/ZipInputStream.java (createZipEntry):
2888 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2890 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2891 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2892 java/util/jar/JarInputStream.java,
2893 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2894 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2895 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2896 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2897 java/security/cert/Certificate.java,
2898 java/security/cert/CertificateEncodingException.java,
2899 java/security/cert/CertificateException.java,
2900 java/security/cert/CertificateExpiredException.java,
2901 java/security/cert/CertificateFactory.java,
2902 java/security/cert/CertificateFactorySpi.java,
2903 java/security/cert/CertificateNotYetValidException.java,
2904 java/security/cert/CertificateParsingException.java,
2905 java/security/cert/X509CRL.java,
2906 java/security/cert/X509CRLEntry.java,
2907 java/security/cert/X509Certificate.java,
2908 java/security/cert/X509Extension.java: Imported from Classpath.
2909 * java/util/Hashtable.java: Imported from Classpath.
2911 * java/util/zip/ZipInputStream.java: Create stub for
2914 * gcj/javaprims.h: Updated class list.
2916 * Makefile.in, gcj/Makefile.in: Rebuilt.
2917 * Makefile.am (ordinary_java_source_files): Add these new classes.
2919 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2921 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2922 * gnu/gcj/awt/GLightweightPeer.java: New file.
2923 * java/awt/BorderLayout.java: Implemented all methods.
2924 * java/awt/Button.java (actionListener, actionCommand): Renamed
2925 and modifier change.
2926 (addNotify): Call super.
2927 (dispatchEventImpl): New method.
2928 (getListeners): New method.
2929 (label): Made package-private, not private.
2930 * java/awt/Canvas.java: Implemented class body.
2931 * java/awt/Color.java (brighter): New method.
2932 (darker): New method.
2933 (hashCode): New method.
2934 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2935 (getGraphicsConfiguration): Delegate to
2936 getGraphicsConfigurationImpl().
2937 (getGraphicsConfigurationImpl): New method.
2938 (getToolkit): Only return value from peer if not null.
2939 (isDisplayable): Check with parent.
2940 (isShowing): No parent implies not showing.
2941 (getForeground): Check parent property if local is null.
2942 (getBackground): Likewise.
2943 (getFont): Likewise.
2944 (setForeground): Inform peer.
2945 (setBackground): Likewise
2946 (setLocale): Invalidate component.
2947 (getColorModel): Implemented.
2948 (setLocation): Invalidate, or ignore if no change.
2949 (setSize): Invalidate, or ignore if no change.
2950 (setBounds): Invalidate, or ignore if no change.
2951 (isOpaque): By default, heavyweight implies opaque.
2952 (isLightweight): Implemented.
2953 (getMaximumSize): Implemented.
2954 (doLayout): Implemented, NOP.
2955 (validate): Implemented, NOP.
2956 (invalidate): Only propagate to parent if parent was valid.
2957 (getGraphics): Implemented.
2958 (getFontMetrics): Implemented.
2959 (update): Implemented.
2960 (paintAll): Implemented.
2961 (repaint): Implemented all repaint methods.
2962 (print): Implemented.
2963 (printAll): Implemented.
2964 (createImage): Implemented.
2965 (dispatchEvent): Give the peer a chance to handle the event.
2966 (dispatchEventImpl): Dispatch paint events.
2967 (enableEvents): Lightweights enable events on parent component.
2968 (coalesceEvents): Coalesce paint events, and select event type
2970 (coalescePaintEvents): New method.
2971 (processEvent): Fix unfortunate ordering of statements, and call
2972 correct method for MOUSE_CLICKED.
2973 (processPaintEvent): New method.
2974 (addNotify): Allow container to notify children before event
2975 mask is set in peer.
2976 (addNotifyContainerChildren): New method.
2977 (removeNotify): Visibility should not change on removeNotify.
2978 (paramString): Implemented.
2979 (list): Implemented two of the list methods.
2980 * Container (myInsets): Removed, insets are managed by peer.
2981 (getInsets): Query peer.
2982 (addImpl): Fix reparenting, enable events for lightweights,
2983 initialize component array.
2984 (validate): Call doLayout in validateTree() instead.
2985 (validateTree): Do nothing if already valid. Call beginValidate(),
2986 endValidate() on peer. Call validateTree() instead of validate()
2987 for children that are containers. Mark valid after validation of
2989 (setFont): Partial implementation.
2990 (paint): Implemented.
2991 (visitChildren): New method.
2992 (visitChild): New method.
2993 (update): Implemented.
2994 (print): Implemented.
2995 (paintComponents): Implemented.
2996 (printComponents): Consider translation and clipping.
2997 (getComponentAt): Ignore invisible children. Return this if no
2999 (addNotify): Call super.
3000 (addNotifyContainerChildren): New method.
3001 (paramString): Implemented.
3002 (list): Implemented.
3003 * java/awt/EventQueue (invokeAndWait): Get system event queue the
3005 (invokeLater): Likewise.
3006 (isDispatchThread): Likewise.
3007 * java/awt/FontMetrics (getLeading): Formula change.
3008 (getDescent): Consider leading also.
3009 (getMaxAscent): Default to getAscent().
3010 (getMaxDescent): Default to getDescent.
3011 (getMaxAdvance): Return value signifying unknown.
3012 (charWidth): Both methods implemented.
3013 (charsWidth): Implemented.
3014 (bytesWidth): Implemented.
3015 (getWidths): Implemented.
3016 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3018 (Frame): Rearragend constuctor chaining to disallow null being
3019 passed as a graphics configuration.
3020 (getTitle): Return empty string if null.
3022 (getIconImage): New method.
3023 (setIconImage): New method.
3024 (finalize): New method.
3025 (setMenuBar): Notify peer.
3026 (isResizable): New method.
3027 (setResizable): New method.
3028 (getState): New method.
3030 (remove): Implemented.
3031 (removeNotify): New method.
3032 (getFrames): New method.
3033 * java/awt/Graphics.java: Implemented body of class.
3034 * java/awt/Graphics2D.java: New file.
3035 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3036 * java/awt/Image.java: Implemented body of class.
3037 * java/awt/Panel.java (Panel): Call correct super constructor.
3038 (addNotify): Implemented.
3039 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3040 * java/awt/RenderingHints.java: New file.
3041 * java/awt/Toolkit.java (createComponent): Implemented.
3042 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3043 * java/awt/Window.java (Window): Two new constructors. Reordered
3044 constructor chaining.
3045 (getGraphicsConfigurationImpl): New method.
3046 (finalize): Call super.
3047 (addNotify): Call super.
3048 (pack): Do layout stuff.
3049 (show): Ensure that peer exists and that component is valid.
3050 (dispose): Dispose owned children.
3051 (getOwner): Simplify code, casting null pointers is valid.
3052 (getGraphicsConfiguration): Ask peer if local value is null.
3053 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3055 * java/awt/image/BufferedImage.java: New file.
3056 * java/awt/image/RasterOp.java: New file.
3057 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3058 More powerfull replacement for getColorModel().
3059 (getColorModel) Removed.
3060 (setEventMask) New method.
3061 * Makefile.am: Added new files.
3062 * Makefile.in: Rebuilt.
3064 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
3066 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3067 (finit_leg_name): New global.
3068 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3069 `$finit$'. This is a backward compatibility hack.
3070 (java::lang::Class::_getMethods): Likewise.
3072 2000-08-15 Andrew Haley <aph@cygnus.com>
3074 * include/jvm.h (_Jv_HashCode): New hash code.
3076 2000-08-15 Tom Tromey <tromey@cygnus.com>
3078 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3080 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
3082 * THANKS: More thanks.
3084 2000-08-10 Tom Tromey <tromey@cygnus.com>
3086 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3088 (connect): Likewise.
3090 (getOption): Likewise.
3091 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3092 case when errno not set.
3095 (receive): Likewise.
3096 (mcastGrp): Likewise.
3097 (setOption): Likewise.
3098 (getOption): Likewise.
3100 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
3101 John Stracke <francis@ecal.com>
3103 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3104 (connect): Don't falsely claim HTTP/1.1 compliance. Call
3106 (disconnect): Don't unset connected flag.
3107 (getHeaderField (String)): Call connect() if not connected.
3108 (getHeaderField (int)): Ditto.
3109 (getHeaderFieldKey): Ditto.
3110 (getHttpHeaders): Don't call connect().
3111 * java/net/HttpURLConnection.java (instanceFollowRedirects,
3112 gotResponseVals): New fields.
3113 (getResponseCode): Call getResponseVals() conditionally.
3114 (getResponseMessage): Ditto.
3115 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3117 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
3119 * Makefile.am: Move beans and applet classes to awt_java_source_files.
3120 * Makefile.in: Rebuilt.
3121 * java/awt/Color.java (getTransparency): New method.
3122 * java/awt/Component.java: Various updates.
3123 * java/awt/Container.java (removeNotify): Call super.removeNotify()
3124 after dealing with children.
3125 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3126 * java/awt/Window.java: Various new methods and updates.
3127 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3129 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3130 * java/awt/event/WindowEvent.java (paramString): Ditto.
3131 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3133 * java/awt/geom/Point2D.java (clone): Ditto.
3134 * java/awt/geom/RectangularShape.java (clone): Ditto.
3135 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3136 isAlphaPremultiplied): Make package-private, not private.
3138 2000-08-08 Tom Tromey <tromey@cygnus.com>
3140 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3141 surrogate characters.
3142 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3144 (write): Correct handling of surrogate characters.
3146 2000-08-07 Tom Tromey <tromey@cygnus.com>
3148 * java/lang/reflect/Method.java (hashCode): Use getName().
3149 (toString): Likewise.
3150 * java/lang/reflect/natMethod.cc (getType): Initialize
3153 * java/lang/reflect/Method.java (toString): Use Class.getName, not
3155 * java/lang/reflect/Field.java (toString): Correct formatting.
3158 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3160 (receive): Streamlined.
3162 2000-08-05 Tom Tromey <tromey@cygnus.com>
3164 * java/io/PrintWriter.java: Merged comments from Classpath.
3165 (printlnUnsynchronized): Removed.
3166 (println()): Print the separator.
3167 (println): Call println(), not printlnUnsynchronized.
3168 (out): Now protected, to match spec.
3170 2000-08-04 Tom Tromey <tromey@cygnus.com>
3172 * java/io/StreamTokenizer.java (TT_NONE): Now private.
3173 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
3176 2000-08-03 Warren Levy <warrenl@cygnus.com>
3178 * java/io/ObjectInputStream.java (readFields): Turn off
3179 readDataFromBlock while reading via GetField.
3180 (GetField$1.get(String, Object)): Pass Class of default value to
3182 (getField): Allow for null default values.
3184 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3185 (PutField$1.put): Fixed calls of checkType in most of the put
3186 methods to pass the correct parameter.
3187 (PutField$1.put(String, Object)): Allow for null value arg.
3188 (PutField$1.write): Turn off writeDataAsBlocks while writing via
3191 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3192 typo in spec'ed field name.
3193 (getSerialPersistentFields): Changed spelling of method to match
3194 the correct spelling of the spec'ed field name.
3196 2000-08-03 Tom Tromey <tromey@cygnus.com>
3198 * Makefile.in: Rebuilt.
3199 * Makefile.am (awt_java_source_files): Added new files.
3201 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3203 * Makefile.am: Add new AWT stubs.
3204 * java/awt/Canvas.java: New placeholder class.
3205 * java/awt/Checkbox.java: Ditto.
3206 * java/awt/CheckboxMenuItem.java: Ditto.
3207 * java/awt/Choice.java: Ditto.
3208 * java/awt/Dialog.java: Ditto.
3209 * java/awt/FileDialog.java: Ditto.
3210 * java/awt/List.java: Ditto.
3211 * java/awt/ScrollPane.java: Ditto.
3212 * java/awt/TextField.java: Ditto.
3213 * java/awt/datatransfer/Clipboard.java: Ditto.
3214 * java/awt/Component.java (treeLock): Now a static String. Add comment.
3215 * java/awt/MenuItem.java (MenuItem): Add default constructor.
3216 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3217 Some commented out. Partially implemented.
3218 * java/awt/natToolkit.cc: Removed file.
3220 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
3222 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3223 Fixes "make -j" builds.
3224 * Makefile.in: Rebuild.
3226 2000-08-02 Tom Tromey <tromey@cygnus.com>
3228 * Makefile.in: Rebuilt.
3229 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3230 * java/net/natPlainSocketImpl.cc: Include posix.h.
3231 (accept): Use _Jv_select.
3232 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3233 (receive): Use _Jv_select.
3234 * java/io/natFileDescriptorPosix.cc: Include posix.h.
3235 (available): Use _Jv_select.
3236 * java/lang/natSystem.cc: Include posix.h.
3237 (currentTimeMillis): Use _Jv_gettimeofday.
3238 * include/posix.h: New file.
3239 * posix.cc: New file.
3241 * scripts/encodings.pl: New file.
3242 * Makefile.in: Rebuilt.
3243 * Makefile.am (convert_source_files): Added IOConverter.java.
3244 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3246 (getDefaultDecodingClass): Canonicalize default encoding name.
3247 (getEncoder): Likewise.
3248 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3250 (getDefaultDecodingClass): Canonicalize default encoding name.
3251 (getDecoder): Likewise.
3252 * gnu/gcj/convert/IOConverter.java: New file.
3254 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3256 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3257 to match C declaration in ffi.h.
3258 * Makefile.am: Add java/awt/Button.java.
3259 * Makefile.in: Rebuilt.
3261 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3263 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3264 cast of the second argument to `ffi_raw_call' changed to match
3267 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3269 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3270 argument to `ffi_raw_call' changed to match prototype.
3272 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3274 * java/awt/Component.java (toString): Implemented.
3275 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3276 dispatchEvent() to dispatch the event.
3277 (removeImpl): Ditto.
3279 2000-07-30 Anthony Green <green@redhat.com>
3281 * java/awt/Component.java: Add treeLock object.
3282 (getTreeLock): Implement.
3283 (isShowing): Implement.
3285 2000-07-30 Tom Tromey <tromey@cygnus.com>
3287 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3289 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3291 * java/awt/Window.java (addNotify): Wrote.
3292 (addWindowListener): Wrote.
3294 (getWarningString): Wrote.
3295 (processEvent): Wrote.
3296 (processWindowEvent): Wrote.
3297 (removeWindowListener): Wrote.
3298 (show): Call validate(), setVisible().
3302 * java/awt/Toolkit.java (createWindow): Declare.
3304 * java/awt/Frame.java (addNotify): Use getToolkit to find
3307 * java/awt/Component.java (invalidate): Wrote.
3309 (getToolkit): Wrote.
3311 * java/awt/Container.java (addContainerListener): Removed
3313 (removeContainerListener): Likewise.
3315 (add(Component)): Use it.
3316 (add(String,Component)): Likewise.
3317 (add(Component,int)): Likewise.
3318 (add(Component,Object)): Likewise.
3319 (add(Component,Object,int)): Likewise.
3321 (getAlignmentX): Wrote.
3322 (getAlignmentY): Wrote.
3323 (getComponentAt): Wrote.
3324 (getMaximumSize): Wrote.
3325 (invalidate): Wrote.
3326 (list(PrintStream,int)): Wrote.
3327 (list(PrintWriter,int)): Wrote.
3328 (getMinimumSize): Wrote.
3329 (getPreferredSize): Wrote.
3330 (printComponents): Wrote.
3331 (processContainerEvent): Look at containerListener, not
3333 (remove): Added event processing and peer destruction.
3334 (removeAll): Use remove.
3335 (removeNotify): Wrote.
3337 (validateTree): Wrote.
3339 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3340 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3341 * java/awt/Container.java (addNotify): Don't create Container
3343 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3345 2000-07-30 Tom Tromey <tromey@cygnus.com>
3347 * java/awt/Container.java (remove(int)): Wrote.
3348 (remove(Component)): Wrote.
3349 (add(Component)): Wrote.
3350 (add(Component,int)): Wrote.
3352 (addNotify): Set our own peer.
3353 * java/awt/Scrollbar.java (listeners): Changed type.
3354 (Scrollbar): Don't initialize listeners.
3356 (setValue): Call setValues.
3357 (setMinimum): Likewise.
3358 (setMaxPriority): Likewise.
3359 (setVisibleAmount): Likewise.
3361 (setUnitIncrement): Forward to peer.
3362 (setLineIncrement): Call setUnitIncrement.
3363 (setPageIncrement): Call setBlockIncrement.
3364 (setBlockIncrement): Forward to peer.
3365 (addAdjustmentListener): Rewrote.
3366 (removeAdjustmentListener): Rewrote.
3367 (processAdjustmentEvent): Rewrote.
3368 (paramString): Wrote.
3369 * Makefile.in: Rebuilt.
3370 * Makefile.am (awt_java_source_files): Added Button.java.
3371 * java/awt/Button.java: New file.
3372 * java/awt/Toolkit.java (createLabel): Declare.
3373 (createButton): Likewise.
3374 (createScrollbar): Likewise.
3375 (createContainer): Likewise.
3376 * java/awt/Label.java (addNotify): Wrote.
3377 (setAlignment): Call setAlignment in the peer.
3378 (setText): Call setText in the peer.
3380 2000-07-28 Warren Levy <warrenl@cygnus.com>
3382 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3383 NotSerializableException with just the class name.
3385 2000-07-26 Andrew Haley <aph@cygnus.com>
3387 * interpret.cc (continue1): Insert missing break into switch.
3389 2000-07-28 Warren Levy <warrenl@cygnus.com>
3391 * java/io/ObjectStreamException.java: Made constructors protected.
3393 2000-07-27 Tom Tromey <tromey@cygnus.com>
3395 * java/io/OutputStreamWriter.java (close): Only flush if not
3398 2000-07-27 Warren Levy <warrenl@cygnus.com>
3400 * mauve-libgcj: Activated serialization tests.
3401 * gcj/field.h (getModifiers): Mask off unknown flags.
3402 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3403 spurious bits don't cause discrepancies.
3404 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3405 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3406 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3407 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3408 * java/lang/Throwable.java (serialVersionUID): New field.
3409 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3410 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3412 * java/lang/reflect/natMethod.cc: Ditto.
3413 * java/security/Key.java (serialVersionUID): Removed field for now.
3414 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3415 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3417 2000-07-22 Tom Tromey <tromey@cygnus.com>
3419 * java/awt/geom/RectangularShape.java (getPathIterator):
3422 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3424 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3425 stub libjava/java/awt/ColorModel.java which was located in the
3427 * libjava/java/awt/image/ComponentColorModel.java: New file.
3428 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3429 * libjava/java/awt/image/DataBuffer.java: New file.
3430 * libjava/java/awt/image/DataBufferByte.java: New file.
3431 * libjava/java/awt/image/DataBufferInt.java: New file.
3432 * libjava/java/awt/image/DataBufferUShort.java: New file.
3433 * libjava/java/awt/image/DirectColorModel.java: New file.
3434 * libjava/java/awt/image/PackedColorModel.java: New file.
3435 * libjava/java/awt/image/Raster.java: New file.
3436 * libjava/java/awt/image/SampleModel.java: New file.
3437 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3439 * libjava/java/awt/image/IndexColorModel.java: New file.
3440 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3441 java.awt.ColorModel stub.
3443 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3444 * gnu/gcj/util/Buffers.java: New file, utility class.
3446 * libjava/Makefile.am: Updated to include new files.
3447 * libjava/Makefile.in: Rebuilt.
3449 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3451 * java/io/StreamTokenizer.java: Merged with classpath.
3453 2000-07-20 Tom Tromey <tromey@cygnus.com>
3455 * Makefile.in: Rebuilt.
3456 * Makefile.am (awt_java_source_files): Updated for new files.
3457 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3458 * java/awt/Label.java: New file.
3459 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3460 (createIntersection, createUnion, getBounds2D): New methods.
3461 * java/awt/Scrollbar.java: New file.
3462 * java/awt/Shape.java: Updated to 1.2.
3463 * java/awt/geom/AffineTransform.java: New file.
3464 * java/awt/geom/Ellipse2D.java: New file.
3465 * java/awt/geom/NoninvertibleTransformException.java: New file.
3466 * java/awt/geom/PathIterator.java: New file.
3467 * java/awt/geom/Rectangle2D.java: New file.
3468 * java/awt/geom/RectangularShape.java: New file.
3469 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3470 * java/awt/geom/IllegalPathStateException.java: New file.
3472 * scripts/showval.java: New file.
3474 * scripts/classes.pl (scan): Print inner classes properly.
3475 * gcj/javaprims.h: Updated class list.
3477 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3478 initialize String fields for interpreted classes. Fixes bug
3479 reported by Hans Boehm.
3481 * java/io/File.java (getParentFile): New method, from Classpath
3482 via Oskar Liljeblad.
3484 * java/util/Vector.java (remove(Object)): Implemented.
3486 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3488 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3489 zero return from backtrace().
3491 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3493 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3495 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3496 before calling notifyAll().
3498 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3500 Add missing files from last check-in:
3501 * java/awt/image/ImageConsumer.java: New file.
3502 * java/awt/image/ImageProducer.java: New file.
3503 * java/awt/image/ImageObserver.java: New file.
3505 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3507 Merged implementation of java.applet from classpath:
3508 * java/applet/Applet.java: New file.
3509 * java/applet/AppletContext.java: New file.
3510 * java/applet/AppletStub.java: New file.
3511 * java/applet/AudioClip.java: New file.
3513 * Makefile.am: Added new java.applet classes.
3514 * Makefile.in: Rebuilt.
3516 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3519 * java/util/ResourceBundle.java (getLocale): stub.
3520 * Makefile.am: Added new AWT classes.
3521 * Makefile.in: Rebuilt.
3522 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3523 constructors. Fix toString() and paramString().
3524 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3525 * java/awt/CheckboxGroup.java: New class.
3526 * java/awt/ColorModel.java: New class.
3527 * java/awt/Component.java: Added stubs for most methods. Implemented
3529 * java/awt/Container.java: ditto.
3530 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3531 * java/awt/Cursor.java: ditto.
3532 * java/awt/Event.java: Fix paramString().
3533 * java/awt/EventQueue.java: New class. Implemented.
3534 * java/awt/Font.java: Added additional stub methods. Implemented
3536 * java/awt/FontMetrics.java: New class. Stubbed.
3537 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3539 * java/awt/Insets.java: New class. Implemented.
3540 * java/awt/Menu.java: Add new methods. Partially implemented.
3541 * java/awt/MenuItem.java: Add new methods and fields. Partially
3543 * java/awt/MenuShortcut.java: New class. Implemented.
3544 * java/awt/Panel.java: New class. Placeholder.
3545 * java/awt/PopupMenu.java: New class. Stubbed.
3546 * java/awt/Rectangle.java: New class. Implemented.
3547 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3548 * java/awt/event/ActionEvent.java: Implement paramString().
3549 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3550 * java/awt/event/ComponentEvent.java: Implement paramString().
3551 * java/awt/event/ContainerEvent.java: Implement paramString().
3552 * java/awt/event/FocusEvent.java: Implement paramString().
3553 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3554 * java/awt/event/HierarchyBoundsListener.java: New class.
3555 * java/awt/event/HierarchyEvent.java: New class.
3556 * java/awt/event/HierarchyListener.java: New class.
3557 * java/awt/event/InputMethodEvent.java: Implement paramString().
3558 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3559 exception if !catchExceptions.
3560 * java/awt/event/ItemEvent.java: Implement paramString().
3561 * java/awt/event/KeyEvent.java: Implement paramString().
3562 * java/awt/event/MouseEvent.java: Implement paramString().
3563 * java/awt/event/PaintEvent.java: Implement paramString().
3564 * java/awt/event/TextEvent.java: Implement paramString().
3565 * java/awt/event/WindowEvent.java: Implement paramString().
3567 AWT Peer interfaces:
3568 * java/awt/peer/ButtonPeer.java: New file.
3569 * java/awt/peer/ListPeer.java: New file.
3570 * java/awt/peer/CanvasPeer.java: New file.
3571 * java/awt/peer/MenuBarPeer.java: New file.
3572 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3573 * java/awt/peer/MenuComponentPeer.java: New file.
3574 * java/awt/peer/CheckboxPeer.java: New file.
3575 * java/awt/peer/MenuItemPeer.java: New file.
3576 * java/awt/peer/ChoicePeer.java: New file.
3577 * java/awt/peer/MenuPeer.java: New file.
3578 * java/awt/peer/ComponentPeer.java: Implemented.
3579 * java/awt/peer/PanelPeer.java: New file.
3580 * java/awt/peer/ContainerPeer.java: Implemented.
3581 * java/awt/peer/PopupMenuPeer.java: New file.
3582 * java/awt/peer/DialogPeer.java: New file.
3583 * java/awt/peer/ScrollPanePeer.java: New file.
3584 * java/awt/peer/FileDialogPeer.java: New file.
3585 * java/awt/peer/ScrollbarPeer.java: New file.
3586 * java/awt/peer/FontPeer.java: New file.
3587 * java/awt/peer/TextAreaPeer.java: New file.
3588 * java/awt/peer/FramePeer.java: Implemented.
3589 * java/awt/peer/TextComponentPeer.java: New file.
3590 * java/awt/peer/LabelPeer.java: New file.
3591 * java/awt/peer/TextFieldPeer.java: New file.
3592 * java/awt/peer/LightweightPeer.java: New file.
3593 * java/awt/peer/WindowPeer.java: Implemented.
3595 2000-07-06 Tom Tromey <tromey@cygnus.com>
3597 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3598 Initialize static final String fields.
3600 2000-07-03 Tom Tromey <tromey@cygnus.com>
3602 * java/io/PrintWriter.java (print): Call write(String), not
3603 print(String). See PR libgcj/277.
3604 (print(String)): Use write, not out.write.
3606 2000-06-30 Tom Tromey <tromey@cygnus.com>
3608 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3610 2000-06-27 Andrew Haley <aph@cygnus.com>
3612 * java/io/File.java (createTempFile): Close the FileDescriptor
3613 used to create a temp file. Fixes some of PR 203.
3614 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3615 collection if we run out of file handles.
3617 2000-06-28 Warren Levy <warrenl@cygnus.com>
3619 * gnu/java/security/provider/Gnu.java: New file.
3620 * gnu/java/security/provider/SHA.java: New file.
3621 * gnu/java/security/provider/SHA1PRNG.java: New file.
3622 * Makefile.am: Added the above files.
3623 * Makefile.in: Rebuilt.
3625 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3627 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3629 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3630 (destroyed_flag): Removed.
3631 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3632 (activeCount): Added spec note.
3634 2000-06-27 Warren Levy <warrenl@cygnus.com>
3636 * java/security/Principal.java: New file.
3637 * Makefile.am: Added Principal.java.
3638 * Makefile.in: Rebuilt.
3640 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3642 * java/awt/event/MouseEvent.java: Fixed coordinate space
3645 2000-06-27 Tom Tromey <tromey@cygnus.com>
3647 * java/io/PushbackInputStream.java (read): If there are characters
3648 in the buffer, don't also call super.read().
3649 * java/io/PushbackReader.java (read): If there are characters in
3650 the buffer, don't also call super.read().
3652 * java/lang/Double.java (valueOf): Call parseDouble().
3654 2000-06-26 Warren Levy <warrenl@cygnus.com>
3656 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3657 (newVal): Renamed to newValue.
3658 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3659 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3660 (revokeNow): Renamed to invalidateRefs.
3661 * java/io/OptionalDataException.java: Updated FIXME.
3662 (eof): New placeholder field.
3664 * java/io/WriteAbortedException.java (message): Made transient.
3665 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3666 * java/lang/Throwable.java (stackTrace): Made transient.
3667 * java/net/InetAddress.java: Made Serializable.
3668 * java/security/KeyPair.java: Made Serializable.
3669 * java/security/Provider.java: Replaced with Classpath version that
3670 implements serialization and proper methods.
3671 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3672 (limits): Renamed to choiceLimits.
3674 2000-06-24 Tom Tromey <tromey@cygnus.com>
3676 * java/lang/natDouble.cc (parseDouble): Renamed from
3678 * java/lang/Double.java (parseDouble): Renamed from
3679 doubleValueOf. Now public.
3681 2000-06-23 Andrew Haley <aph@cygnus.com>
3683 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3684 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3686 2000-06-23 Tom Tromey <tromey@cygnus.com>
3688 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3689 * java/lang/natDouble.cc: Always include <alloca.h>.
3690 Fix for PR libgcj/267.
3692 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3694 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3695 comply with classpath VM spec.
3696 (add(Group)): Rename to addGroup().
3697 * java/lang/Thread.java (Thread): Use addThread().
3698 * java/lang/natThread.cc (finish_): Use removeThread().
3700 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3702 * java/lang/ThreadGroup.java: Merged with classpath.
3703 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3704 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3706 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3707 ThreadGroup.root if Thread.currentThread is null. Honour the
3708 ThreadGroup's max priority setting.
3710 2000-06-18 Tom Tromey <tromey@cygnus.com>
3712 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3713 returned class. For PR gcj/260.
3715 2000-06-16 Tom Tromey <tromey@cygnus.com>
3717 Fix for PR libgcj/261:
3718 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3720 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3721 argument. (This is a patch from long ago that somehow went
3724 2000-06-15 Tom Tromey <tromey@cygnus.com>
3726 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3730 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3732 Fix for PR java.lang/258:
3733 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3734 JV_STATE_DONE, to prevent accidental initialization.
3735 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3736 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3737 interface or an abstract class. Remove redundant initializeClass calls.
3738 Remove duplicate if_idt test.
3739 (_Jv_InterfaceAssignableFrom): New function.
3740 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3742 2000-05-31 Tom Tromey <tromey@cygnus.com>
3744 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3745 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3746 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3747 (NUM_OBJECT_METHODS): New define.
3748 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3749 `array_vtable' parameter. Added assertion.
3750 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3753 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3755 * gcj/cni.h: Include <string.h>.
3756 * defineclass.cc: Include <alloca.h>.
3757 * interpret.cc: Ditto.
3758 * gij.cc: Include <stdlib.h>.
3760 2000-05-30 Tom Tromey <tromey@cygnus.com>
3762 * include/name-finder.h: Include <sys/wait.h>.
3763 (_Jv_name_finder::pid): Now of type `pid_t'.
3764 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3765 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3768 2000-05-24 Warren Levy <warrenl@cygnus.com>
3770 * java/io/ObjectOutputStream.java (writeObject): Use component type
3771 when writing arrays.
3774 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3776 Fix for PR libgcj/226:
3777 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3778 since this is an installed header.
3780 Fix for PR libgcj/228:
3781 * java/util/zip/ZipFile (getInputStream): Create inflater with
3784 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3785 with DataFormatException.
3787 2000-05-20 Tom Tromey <tromey@cygnus.com>
3789 * Makefile.in: Rebuilt.
3790 * Makefile.am (hack1): Removed.
3791 (awto_files): Likewise.
3792 (libgcjawt_la_SOURCES): Likewise.
3793 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3794 (libgcjawt_la_DEPENDENCIES): Likewise.
3795 (libgcjawt_la_LIBADD): Likewise.
3796 (libgcjawt_la_LDFLAGS): Likewise.
3797 (libgcjawt_la_LINK): Likewise.
3798 ($(awt_java_source_files:.java=.class)): Likewise.
3799 (libgcj.zip): Don't depend on AWT files.
3800 (MOSTLYCLEANFILES): Don't include AWT files.
3801 ($(awto_files)): Removed.
3802 (nat_headers): Removed AWT files.
3803 (cond_awt_java_source_files): Removed.
3804 (ordinary_java_source_files): Added awt_java_source_files.
3805 * libgcj.spec.in (*lib): Removed -lgcjawt.
3806 * configure: Rebuilt.
3807 * configure.in: Removed --enable-java-awt option.
3809 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3811 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3812 (ZipEntry): Copy the `name' field.
3813 (clone): Implement JDK1.2 method.
3814 (setCompressedSize): ditto.
3817 2000-05-19 Tom Tromey <tromey@cygnus.com>
3819 * java/io/BufferedWriter.java: Merged with Classpath.
3820 * java/io/BufferedOutputStream.java: Merged with Classpath.
3822 2000-05-16 Andrew Haley <aph@cygnus.com>
3824 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3825 build_ia64_frame_state.
3826 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3829 2000-05-15 Warren Levy <warrenl@cygnus.com>
3831 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3832 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3833 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3834 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3835 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3836 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3837 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3838 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3839 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3840 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3841 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3842 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3843 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3844 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3845 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3846 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3847 * gnu/gcj/io/NullOutputStream.java: Removed.
3848 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3849 * gnu/gcj/lang/ArrayHelper.java: Removed.
3850 * gnu/gcj/lang/ClassHelper.java: Removed.
3851 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3853 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3854 * gnu/java/beans/EmptyBeanInfo.java: New file.
3855 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3856 * gnu/java/beans/IntrospectionIncubator.java: New file.
3857 * gnu/java/beans/editors/ColorEditor.java: New file.
3858 * gnu/java/beans/editors/FontEditor.java: New file.
3859 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3860 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3861 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3862 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3863 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3864 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3865 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3866 * gnu/java/beans/editors/StringEditor.java: New file.
3867 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3868 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3869 * gnu/java/io/NullOutputStream.java: New file.
3870 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3871 * gnu/java/lang/ArrayHelper.java: New file.
3872 * gnu/java/lang/ClassHelper.java: New file.
3873 * gnu/java/lang/reflect/TypeSignature.java: New file.
3875 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3876 namespace back to the original Classpath gnu/java namespace.
3877 * Makefile.in: Rebuilt.
3879 * java/beans/Beans.java: Namespace change.
3880 * java/beans/EventSetDescriptor.java: Namespace change.
3881 * java/beans/Introspector.java: Namespace change.
3882 * java/beans/PropertyEditorManager.java: Namespace change.
3883 * java/io/ObjectInputStream.java: Namespace change.
3884 * java/io/ObjectOutputStream.java: Namespace change.
3885 * java/io/ObjectStreamClass.java: Namespace change.
3886 * java/io/ObjectStreamField.java: Namespace change.
3888 2000-04-21 Warren Levy <warrenl@cygnus.com>
3890 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3891 now that compiler patch is available.
3892 Removed unneeded System.loadLibrary.
3893 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3894 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3896 2000-04-19 Andrew Haley <aph@cygnus.com>
3898 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3899 and target classes have been initialized.
3901 2000-04-19 Andrew Haley <aph@cygnus.com>
3903 * java/lang/String.java: implement Serializable, Comparable.
3904 (compareTo (Object)): New method.
3906 2000-04-19 Warren Levy <warrenl@cygnus.com>
3908 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3909 instead of getField to retrieve non-public field.
3910 (getSerialPersistantFields): Ditto.
3912 2000-04-18 Warren Levy <warrenl@cygnus.com>
3914 * mauve-libgcj: Turned off object serialization tests temporarily
3915 due to compiler error.
3917 2000-04-17 Warren Levy <warrenl@cygnus.com>
3919 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3920 to avoid build problem.
3922 * mauve-libgcj: Turned on object serialization tests.
3924 2000-04-17 Tom Tromey <tromey@cygnus.com>
3926 * libgcj.spec.in (*lib): Added -lgcjawt.
3928 2000-04-17 Andrew Haley <aph@cygnus.com>
3930 * Makefile.am: Add new files:
3931 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3933 * Makefile.in: Rebuilt.
3935 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3936 interface that has no implementations.
3937 Check for an attempt to assign an abstract class to an interface.
3939 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3940 if we fail to find MessageDigest.getInstance ("SHA").
3942 * gnu/gcj/io/SimpleSHSStream.java: New file.
3943 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3944 * gnu/gcj/io/shs.cc: New file.
3945 * gnu/gcj/io/shs.h: new file.
3947 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3950 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3951 punctuation from the classname of an array element.
3953 * gcj/javaprims.h: Add SimpleDigestStream.
3955 2000-04-17 Andrew Haley <aph@cygnus.com>
3957 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3958 to getPrivateField for superclasses.
3960 2000-04-14 Andrew Haley <aph@cygnus.com>
3962 * Makefile.am: Add new files:
3963 java/io/ObjectOutputStream$PutField.h,
3964 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3965 java/io/natObjectOutputStream.cc
3966 * Makefile.in: Rebuilt.
3967 * gcj/Makefile.in: Rebuilt.
3968 * include/Makefile.in: Rebuilt.
3969 * java/lang/Class.h (getPrivateField): New method.
3970 (getPrivateMethod): Ditto.
3971 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3972 and java::io::ObjectStreamClass our friends.
3973 * java/lang/natClass.cc (getPrivateField): New method.
3974 (getPrivateMethod): Ditto.
3975 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3976 * gcj/javaprims.h: Add serialization classes.
3977 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3978 (setByteField): Ditto.
3979 (setCharField): Ditto.
3980 (setDoubleField): Ditto.
3981 (setFloatField): Ditto.
3982 (setIntField): Ditto.
3983 (setLongField): Ditto.
3984 (setShortField): Ditto.
3985 (setObjectField): Ditto.
3986 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3988 (getByteField): Ditto.
3989 (getCharField): Ditto.
3990 (getDoubleField): Ditto.
3991 (getFloatField): Ditto.
3992 (getIntField): Ditto.
3993 (getLongField): Ditto.
3994 (getShortField): Ditto.
3995 (getObjectField): Ditto.
3996 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3998 (getSerialPersistantFields): Ditto.
3999 (getDefinedSUID): Ditto.
4000 * java/io/natObjectOutputStream.cc: New file.
4001 * java/io/natObjectInputStream.cc: New file.
4003 2000-04-13 Warren Levy <warrenl@cygnus.com>
4005 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4006 problems. Revert to previous version to reproduce and when fixed.
4008 2000-04-13 Warren Levy <warrenl@cygnus.com>
4010 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4011 * gnu/gcj/io/NullOutputStream.java: New file.
4012 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4013 * java/io/BlockDataException.java: New file.
4014 * java/io/Externalizable.java: New file.
4015 * java/io/InvalidClassException.java: New file.
4016 * java/io/InvalidObjectException.java: New file.
4017 * java/io/NotActiveException.java: New file.
4018 * java/io/NotSerializableException.java: New file.
4019 * java/io/ObjectInput.java: New file.
4020 * java/io/ObjectInputStream.java: New file.
4021 * java/io/ObjectInputValidation.java: New file.
4022 * java/io/ObjectOutput.java: New file.
4023 * java/io/ObjectOutputStream.java: New file.
4024 * java/io/ObjectStreamClass.java: New file.
4025 * java/io/ObjectStreamConstants.java: New file.
4026 * java/io/ObjectStreamField.java: New file.
4027 * java/io/Replaceable.java: New file.
4028 * java/io/Resolvable.java: New file.
4029 * java/io/SerializablePermission.java: New file.
4030 * java/io/WriteAbortedException.java: New file.
4031 * java/security/BasicPermission.java: New file.
4032 * java/security/DigestOutputStream.java: New file.
4033 * java/security/Guard.java: New file.
4034 * java/security/Permission.java: New file.
4035 * java/security/PermissionCollection.java: New file.
4036 * Makefile.am: Added above files.
4037 * Makefile.in: Rebuilt.
4039 * java/beans/Beans.java (instantiate): Activated serialization code.
4040 * java/lang/SecurityManager.java (checkPermission): New method.
4042 2000-04-12 Warren Levy <warrenl@cygnus.com>
4044 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4045 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4046 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4047 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4048 * gnu/gcj/beans/editors/ColorEditor.java: New file.
4049 * gnu/gcj/beans/editors/FontEditor.java: New file.
4050 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4051 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4052 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4053 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4054 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4055 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4056 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4057 * gnu/gcj/beans/editors/StringEditor.java: New file.
4058 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4059 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4060 * gnu/gcj/lang/ArrayHelper.java: New file.
4061 * gnu/gcj/lang/ClassHelper.java: New file.
4062 * java/beans/BeanDescriptor.java: New file.
4063 * java/beans/BeanInfo.java: New file.
4064 * java/beans/Beans.java: New file.
4065 * java/beans/Customizer.java: New file.
4066 * java/beans/DesignMode.java: New file.
4067 * java/beans/EventSetDescriptor.java: New file.
4068 * java/beans/FeatureDescriptor.java: New file.
4069 * java/beans/IndexedPropertyDescriptor.java: New file.
4070 * java/beans/IntrospectionException.java: New file.
4071 * java/beans/Introspector.java: New file.
4072 * java/beans/MethodDescriptor.java: New file.
4073 * java/beans/ParameterDescriptor.java: New file.
4074 * java/beans/PropertyChangeEvent.java: New file.
4075 * java/beans/PropertyChangeListener.java: New file.
4076 * java/beans/PropertyChangeSupport.java: New file.
4077 * java/beans/PropertyDescriptor.java: New file.
4078 * java/beans/PropertyEditor.java: New file.
4079 * java/beans/PropertyEditorManager.java: New file.
4080 * java/beans/PropertyEditorSupport.java: New file.
4081 * java/beans/PropertyVetoException.java: New file.
4082 * java/beans/SimpleBeanInfo.java: New file.
4083 * java/beans/VetoableChangeListener.java: New file.
4084 * java/beans/VetoableChangeSupport.java: New file.
4085 * java/beans/Visibility.java: New file.
4086 * java/beans/beancontext/BeanContext.java: New file.
4087 * java/beans/beancontext/BeanContextChild.java: New file.
4088 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4089 * java/beans/beancontext/BeanContextChildSupport.java: New file.
4090 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4091 * java/beans/beancontext/BeanContextEvent.java: New file.
4092 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4093 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4094 * java/beans/beancontext/BeanContextProxy.java: New file.
4095 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4097 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4098 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4100 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4101 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4103 * java/beans/beancontext/BeanContextServices.java: New file.
4104 * java/beans/beancontext/BeanContextServicesListener.java: New file.
4105 * java/util/AbstractCollection.java: New file.
4106 * java/util/AbstractList.java: New file.
4107 * java/util/Arrays.java: New file.
4108 * Makefile.am: Added above files.
4109 * Makefile.in: Rebuilt.
4111 2000-04-11 Warren Levy <warrenl@cygnus.com>
4113 * java/awt/AWTError.java: New file.
4114 * java/awt/AWTEvent.java: New file.
4115 * java/awt/AWTException.java: New file.
4116 * java/awt/ActiveEvent.java: New file.
4117 * java/awt/Adjustable.java: New file.
4118 * java/awt/BorderLayout.java: New file.
4119 * java/awt/Color.java: New file.
4120 * java/awt/Component.java: New file.
4121 * java/awt/Container.java: New file.
4122 * java/awt/Dimension.java: New file.
4123 * java/awt/Event.java: New file.
4124 * java/awt/Font.java: New file.
4125 * java/awt/Frame.java: New file.
4126 * java/awt/Graphics.java: New file.
4127 * java/awt/IllegalComponentStateException.java: New file.
4128 * java/awt/Image.java: New file.
4129 * java/awt/ItemSelectable.java: New file.
4130 * java/awt/LayoutManager.java: New file.
4131 * java/awt/LayoutManager2.java: New file.
4132 * java/awt/Menu.java: New file.
4133 * java/awt/MenuBar.java: New file.
4134 * java/awt/MenuComponent.java: New file.
4135 * java/awt/MenuContainer.java: New file.
4136 * java/awt/MenuItem.java: New file.
4137 * java/awt/Paint.java: New file.
4138 * java/awt/PaintContext.java: New file.
4139 * java/awt/Point.java: New file.
4140 * java/awt/Rectangle.java: New file.
4141 * java/awt/Shape.java: New file.
4142 * java/awt/TextArea.java: New file.
4143 * java/awt/TextComponent.java: New file.
4144 * java/awt/Toolkit.java: New file.
4145 * java/awt/Transparency.java: New file.
4146 * java/awt/Window.java: New file.
4147 * java/awt/natToolkit.cc: New file.
4148 * java/awt/event/AWTEventListener.java: New file.
4149 * java/awt/event/ActionEvent.java: New file.
4150 * java/awt/event/ActionListener.java: New file.
4151 * java/awt/event/AdjustmentEvent.java: New file.
4152 * java/awt/event/AdjustmentListener.java: New file.
4153 * java/awt/event/ComponentAdapter.java: New file.
4154 * java/awt/event/ComponentEvent.java: New file.
4155 * java/awt/event/ComponentListener.java: New file.
4156 * java/awt/event/ContainerAdapter.java: New file.
4157 * java/awt/event/ContainerEvent.java: New file.
4158 * java/awt/event/ContainerListener.java: New file.
4159 * java/awt/event/FocusAdapter.java: New file.
4160 * java/awt/event/FocusEvent.java: New file.
4161 * java/awt/event/FocusListener.java: New file.
4162 * java/awt/event/InputEvent.java: New file.
4163 * java/awt/event/InputMethodEvent.java: New file.
4164 * java/awt/event/InputMethodListener.java: New file.
4165 * java/awt/event/InvocationEvent.java: New file.
4166 * java/awt/event/ItemEvent.java: New file.
4167 * java/awt/event/ItemListener.java: New file.
4168 * java/awt/event/KeyAdapter.java: New file.
4169 * java/awt/event/KeyEvent.java: New file.
4170 * java/awt/event/KeyListener.java: New file.
4171 * java/awt/event/MouseAdapter.java: New file.
4172 * java/awt/event/MouseEvent.java: New file.
4173 * java/awt/event/MouseListener.java: New file.
4174 * java/awt/event/MouseMotionAdapter.java: New file.
4175 * java/awt/event/MouseMotionListener.java: New file.
4176 * java/awt/event/PaintEvent.java: New file.
4177 * java/awt/event/TextEvent.java: New file.
4178 * java/awt/event/TextListener.java: New file.
4179 * java/awt/event/WindowAdapter.java: New file.
4180 * java/awt/event/WindowEvent.java: New file.
4181 * java/awt/event/WindowListener.java: New file.
4182 * java/awt/geom/Dimension2D.java: New file.
4183 * java/awt/geom/Point2D.java: New file.
4184 * java/awt/peer/ComponentPeer.java: New file.
4185 * java/awt/peer/ContainerPeer.java: New file.
4186 * java/awt/peer/FramePeer.java: New file.
4187 * java/awt/peer/WindowPeer.java: New file.
4188 * java/util/Collection.java: New file.
4189 * java/util/Comparator.java: New file.
4190 * java/util/Iterator.java: New file.
4191 * java/util/List.java: New file.
4192 * java/util/ListIterator.java: New file.
4193 * Makefile.am: Added above files.
4194 * Makefile.in: Rebuilt.
4196 2000-04-10 Warren Levy <warrenl@cygnus.com>
4198 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4199 * java/lang/FirstThread.java: Ditto.
4200 * java/lang/StringBuffer.java: Ditto.
4201 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4203 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4204 Special case handled in java.math.BigInteger.
4205 * java/math/BigInteger.java (divide): Handle the special case when
4206 dividing by 1 and the high bit of the dividend is set.
4207 (setShiftRight): Handle case when count == 0.
4209 2000-04-05 Andrew Haley <aph@cygnus.com>
4211 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4214 2000-04-05 Andrew Haley <aph@cygnus.com>
4216 * sysdep/ia64.c (rse_address_add): Delete.
4217 (IS_NaT_COLLECTION_ADDR): Delete.
4218 (ia64_backtrace_helper): check for null unwind_info.
4220 * sysdep/ia64-frame.h: add calc_caller_bsp.
4222 * java/lang/natThrowable.cc (printRawStackTrace): Flush
4225 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4226 (_Jv_remI): Likewise.
4227 (_Jv_divJ): Likewise.
4228 (_Jv_remJ): Likewise.
4230 * interpret.cc (continue1): Use divide subroutines to guarantee
4231 correct Java standard behaviour.
4232 Floating-point division should not abort; make it so.
4234 2000-03-29 Tom Tromey <tromey@cygnus.com>
4236 * configure: Rebuilt.
4237 * configure.in: Test against `libgcj_sjlj', not
4238 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
4239 to be set even when using sjlj.
4241 2000-03-24 Andrew Haley <aph@cygnus.com>
4243 * Makefile.am: Add file addr2name.awk.
4244 * Makefile.in: Rebuilt.
4245 * addr2name.awk: New file.
4246 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4248 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4251 2000-03-22 Andrew Haley <aph@cygnus.com>
4253 * configure.host: Add -funwind-tables for IA64.
4254 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4255 * Makefile.in: Rebuilt.
4256 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4257 * sysdep/ia64.c: New file.
4258 * sysdep/ia64-frame.h: New file.
4259 * configure.in: Add sysdep/ia64.c for ia64.
4260 * configure: Rebuilt.
4262 2000-03-17 Andrew Haley <aph@cygnus.com>
4264 * java/lang/natString.cc: Remove `register' keyword.
4265 interpret.cc: ditto.
4267 2000-03-16 Andrew Haley <aph@cygnus.com>
4269 * configure.host (ia64): Enable interpreter.
4271 2000-03-14 Hans Boehm <boehm@acm.org>
4273 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4275 2000-03-14 Andrew Haley <aph@cygnus.com>
4277 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4280 2000-03-10 Andrew Haley <aph@cygnus.com>
4282 * java/lang/ieeefp.h: Import latest version from fdlibm.
4284 2000-03-14 Andrew Haley <aph@cygnus.com>
4286 * prims.cc (_Jv_ThrowSignal): New function.
4287 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4289 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4290 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4291 * include/ppc-signal.h: New file.
4293 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4295 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4296 * java/lang/natThread.java (initialize_native): Cast `data' to
4298 * gnu/gcj/RawData.java: Clarify documentation.
4300 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4301 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4302 `jarFile', not `jarFileURL'.
4304 2000-05-15 Andrew Haley <aph@cygnus.com>
4306 * include/ppc-signal.h: New file.
4308 2000-05-11 Tom Tromey <tromey@cygnus.com>
4310 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4311 file headers, don't include `size' in the skip call.
4313 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4315 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4316 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4318 (replace): Reimplemented. Fix javadoc.
4319 (reverse): Call ensureCapacity_unsynchronized().
4320 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4322 (replace): Calculate length for arraycopy() correctly.
4324 2000-05-09 Tom Tromey <tromey@cygnus.com>
4326 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4328 (insert(int,char[],int,int): New method.
4329 (delete): New method from Classpath.
4330 (deleteCharAt): Likewise.
4331 (substring): Likewise.
4332 (shared): No longer private.
4333 Added JavaDoc comments from Classpath.
4334 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4337 2000-05-07 Tom Tromey <tromey@cygnus.com>
4339 * Makefile.in: Rebuilt.
4340 * Makefile.am (LIBLINK): New macro.
4341 (libgcj_la_LINK): Use it.
4342 (libgcjawt_la_LINK): Likewise.
4344 2000-05-06 Tom Tromey <tromey@cygnus.com>
4346 * Makefile.in: Rebuilt.
4347 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4349 2000-05-05 Tom Tromey <tromey@cygnus.com>
4351 Fix for PR libgcj/220:
4352 * Makefile.in: Rebuilt.
4353 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4354 (jv_convert_LDFLAGS): Likewise.
4355 (libgcj_la_LDFLAGS): Likewise.
4356 (GCJLINK): New macro.
4357 (jv_convert_LINK): Use it.
4358 (gij_LINK): Likewise.
4359 (libgcj_la_LINK): New macro.
4360 (libgcjawt_la_LINK): Likewise.
4362 2000-05-04 Tom Tromey <tromey@cygnus.com>
4364 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4366 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4370 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4372 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4373 (_Jv_IsAssignableFrom): Ditto.
4374 (_Jv_IsInstanceOf): Ditto.
4375 (_Jv_CheckCast): Ditto.
4376 (_Jv_CheckArrayStore): Ditto.
4377 * java/lang/Class.h (_Jv_InitClass): Ditto.
4378 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4383 (_Jv_MonitorExit): Ditto.
4384 * boehm.cc (_Jv_MarkObj): Ditto.
4385 (_Jv_MarkObj): Ditto.
4386 (_Jv_MarkArray): Ditto.
4387 * prims.cc (_Jv_AllocObject): Ditto.
4388 (_Jv_NewObjectArray): Ditto.
4389 (_Jv_NewPrimArray): Ditto.
4390 (_Jv_Malloc): Ditto.
4391 (_Jv_Realloc): Ditto.
4392 (_Jv_MallocUnchecked): Ditto.
4398 2000-05-04 Tom Tromey <tromey@cygnus.com>
4400 * java/util/Locale.java (Locale): Don't explicitly check for
4402 * java/util/Hashtable.java (containsKey): Don't explicitly check
4405 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4407 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4409 * java/text/StringCharacterIterator.java
4410 (StringCharacterIterator): Don't check for null.
4411 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4413 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4414 check for null pointer.
4415 (leaveGroup): Likewise.
4416 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4418 (setData): Likewise.
4419 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4422 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4424 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4425 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4426 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4427 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4428 -rpath for in-gcc builds.
4429 * Makefile.in: Rebuilt.
4431 2000-04-28 Tom Tromey <tromey@cygnus.com>
4433 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4436 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4438 * libjava/java/lang/String.java (toString): Remove `final' hack.
4440 2000-04-05 Tom Tromey <tromey@cygnus.com>
4442 Runtime support for PR gcj/2:
4443 * prims.cc (_Jv_ThrowNullPointerException): New function.
4444 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4446 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4448 * prims.cc (_Jv_NewObjectArray): Fix typo.
4450 2000-04-26 Tom Tromey <tromey@cygnus.com>
4452 * Makefile.in: Rebuilt.
4453 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4455 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4457 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4460 2000-04-22 Anthony Green <green@cygnus.com>
4462 * include/jvm.h (__builtin_expect): Define as unused for now.
4463 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4467 (_Jv_MonitorExit): Ditto.
4468 * boehm.cc (_Jv_MarkObj): Ditto.
4469 (_Jv_MarkObj): Ditto.
4470 (_Jv_MarkArray): Ditto.
4471 (_Jv_AllocBytes): Ditto.
4472 * prims.cc (_Jv_AllocObject): Ditto.
4473 (_Jv_NewObjectArray): Ditto.
4474 (_Jv_NewPrimArray): Ditto.
4475 (_Jv_Malloc): Ditto.
4476 (_Jv_Realloc): Ditto.
4477 (_Jv_MallocUnchecked): Ditto.
4483 * include/Makefile.in: Rebuilt.
4484 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4486 2000-04-21 Tom Tromey <tromey@cygnus.com>
4488 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4489 Yet another new version from Classpath.
4491 Fix for PR libgcj/15:
4492 * java/util/natGregorianCalendar.cc (_REENTRANT,
4493 _POSIX_PTHREAD_SEMANTICS): Don't define.
4494 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4495 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4497 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4499 * configure: Rebuilt.
4500 * configure.in: If using POSIX threads, define _REENTRANT if
4501 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4502 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4504 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4505 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4506 version from Classpath.
4508 Fix for PR libgcj/213:
4509 * Makefile.in: Rebuilt.
4510 * Makefile.am (gij_SOURCES): Added gij.cc.
4511 (EXTRA_gij_SOURCES): Removed.
4512 (gij_LDADD): Removed gij.lo.
4513 (gij_DEPENDENCIES): Likewise.
4514 ($(gij_OBJECTS)): Depend on nat_headers.
4516 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4517 `setURL', not `url.set'.
4519 2000-04-20 Tom Tromey <tromey@cygnus.com>
4521 Fix for PR java.io/204:
4522 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4523 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4526 Fix for PR libgcj/212:
4527 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4528 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4529 * java/lang/Class.h (_Jv_word): Declare.
4531 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4533 2000-04-19 Tom Tromey <tromey@cygnus.com>
4535 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4536 doesn't have a loader.
4538 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4540 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4541 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4543 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4545 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4547 (available): Initialize `where' to prevent bogus compiler warning.
4549 2000-04-12 Tom Tromey <tromey@cygnus.com>
4551 * java/lang/natString.cc (intern): Temporarily disable finalizer
4554 * java/lang/natString.cc (unintern): Added `obj' argument.
4555 (intern): Register finalizer for string.
4556 * java/lang/String.java (unintern): Now static; added obj
4559 2000-04-11 Tom Tromey <tromey@cygnus.com>
4561 * java/util/Vector.java (VectorEnumeration): Now `final'.
4562 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4563 (HashtableEnumeration): Likewise.
4564 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4565 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4567 2000-04-10 Warren Levy <warrenl@cygnus.com>
4569 * java/io/ObjectStreamException.java: New file.
4570 * java/io/OptionalDataException.java: New file.
4571 * java/io/StreamCorruptedException.java: New file.
4572 * java/math/BigDecimal.java: New file.
4573 * java/sql/CallableStatement.java: New file.
4574 * java/sql/Connection.java: New file.
4575 * java/sql/DataTruncation.java: New file.
4576 * java/sql/DatabaseMetaData.java: New file.
4577 * java/sql/Date.java: New file.
4578 * java/sql/Driver.java: New file.
4579 * java/sql/DriverManager.java: New file.
4580 * java/sql/DriverPropertyInfo.java: New file.
4581 * java/sql/PreparedStatement.java: New file.
4582 * java/sql/ResultSet.java: New file.
4583 * java/sql/ResultSetMetaData.java: New file.
4584 * java/sql/SQLException.java: New file.
4585 * java/sql/SQLWarning.java: New file.
4586 * java/sql/Statement.java: New file.
4587 * java/sql/Time.java: New file.
4588 * java/sql/Timestamp.java: New file.
4589 * java/sql/Types.java: New file.
4590 * Makefile.am: Added above new files.
4591 * Makefile.in: Rebuilt.
4593 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4594 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4595 DatagramSocket constructor instead of null.
4597 2000-04-08 Anthony Green <green@cygnus.com>
4599 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4602 2000-04-08 Anthony Green <green@cygnus.com>
4604 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4605 (_Jv_MutexUnlock): Ditto.
4606 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4607 (_Jv_MutexUnlock): Ditto.
4609 2000-04-08 Anthony Green <green@cygnus.com>
4611 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4612 (ensureCapacity_unsynchronized): New private method.
4613 (append): Use ensureCapacity_unsynchronized.
4615 2000-04-08 Tom Tromey <tromey@cygnus.com>
4617 * Makefile.in: Rebuilt.
4618 * Makefile.am (awt_java_source_files): Added new files.
4619 * java/awt/IllegalComponentStateException.java: New file.
4620 * java/awt/ItemSelectable.java: New file.
4621 * java/awt/event/WindowEvent.java: Finished.
4622 * java/awt/event/TextEvent.java: Finished.
4623 * java/awt/event/ContainerEvent.java: New file.
4624 * java/awt/Component.java (getX, getY): New methods.
4625 * java/awt/event/PaintEvent.java: New file.
4626 * java/awt/event/MouseEvent.java: New file.
4627 * java/awt/ActiveEvent.java: New file.
4628 * java/awt/event/KeyEvent.java: Finished.
4629 * java/awt/event/ItemEvent.java: New file.
4630 * java/awt/Adjustable.java: New file.
4631 * java/awt/event/InputMethodEvent.java: New file.
4632 * java/awt/event/InputEvent.java: Finished.
4633 * java/awt/event/FocusEvent.java: New file.
4634 * java/awt/event/MouseMotionAdapter.java: New file.
4635 * java/awt/event/MouseAdapter.java: New file.
4636 * java/awt/event/KeyAdapter.java: New file.
4637 * java/awt/event/FocusAdapter.java: New file.
4638 * java/awt/event/ContainerAdapter.java: New file.
4639 * java/awt/event/ComponentEvent.java: Finished.
4640 * java/awt/event/AdjustmentEvent.java: New file.
4641 * java/awt/event/ComponentAdapter.java: New file.
4642 * java/awt/event/ActionEvent.java: Finished.
4643 * java/awt/event/MouseMotionListener.java: New file.
4644 * java/awt/event/MouseListener.java: New file.
4645 * java/awt/event/ItemListener.java: New file.
4646 * java/awt/event/InputMethodListener.java: New file.
4647 * java/awt/event/ContainerListener.java: New file.
4648 * java/awt/event/FocusListener.java: New file.
4649 * java/awt/event/ComponentListener.java: New file.
4650 * java/awt/event/AWTEventListener.java: New file.
4651 * java/awt/event/AdjustmentListener.java: New file.
4653 2000-04-08 Anthony Green <green@cygnus.com>
4655 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4656 check when we have to.
4658 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4661 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4664 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4665 inline hasMoreElements.
4667 2000-04-05 Tom Tromey <tromey@cygnus.com>
4669 * configure: Rebuilt.
4670 * configure.in: Recognize --enable-java-awt.
4671 (AWT): New conditional.
4672 * Makefile.in: Rebuilt.
4673 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4675 (libgcjawt_la_SOURCES): New macro.
4676 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4677 (libgcjawt_la_DEPENDENCIES): Likewise.
4678 (libgcjawt_la_LIBADD): Likewise.
4679 (libgcjawt_la_LDFLAGS): Likewise.
4680 (libgcj.zip): Depend on cond_java_awt_source_files
4681 (cond_awt_java_source_files): New macro.
4682 (MOSTLYCLEANFILES): Added awto_files.
4683 (awto_files): New macro. Use where javao_files used.
4684 (nat_headers): Use cond_awt_java_source_files.
4686 2000-04-04 Tom Tromey <tromey@cygnus.com>
4688 * Makefile.in: Rebuilt.
4689 * Makefile.am (awt_java_source_files): Added AWTException.java.
4690 * java/awt/AWTException.java: New file.
4692 2000-04-03 Tom Tromey <tromey@cygnus.com>
4694 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4695 commentary from Alex.
4697 * Makefile.in: Rebuilt.
4698 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4701 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4703 * configure: Rebuilt.
4704 * configure.in: Add --disable-jvmpi.
4705 * include/config.h.in: Rebuilt.
4706 * acconfig.h: Add ENABLE_JVMPI.
4708 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4709 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4710 (_Jv_JVMPI_Notify_THREAD_END): New define.
4711 (_Jv_JVMPI_Notify_THREAD_END): New define.
4712 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4713 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4714 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4716 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4719 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4720 (finish_): Generate JVMPI thread end events.
4721 (run_): Generate JVMPI thread start events.
4722 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4723 preloaded JNI library.
4724 Include JVMPI headers if necessary.
4725 (run): Generate JVMPI thread start events.
4727 * boehm.cc: Define GC_disable and GC_enable.
4728 (_Jv_DisableGC): New function.
4729 (_Jv_EnableGC): New function.
4730 (disable_gc_mutex): Declare.
4731 * nogc.cc (_Jv_DisableGC): New function.
4732 (_Jv_EnableGC): New function.
4734 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4735 (_Jv_JVMPI_Interface): Define.
4736 (jvmpiEnableEvent): New function.
4737 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4739 * include/jvmpi.h: New file.
4741 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4743 * Makefile.in: New #defines and friends for Thread.h.
4744 * Makefile.am: Ditto.
4745 * posix-threads.cc: (struct starter): Remove `object'.
4746 (_Jv_CondWait): Use interruptable condition variables and new
4747 recursive mutexes. New return codes on interrupt or non-ownership
4749 (_Jv_CondNotify): Ditto.
4750 (_Jv_CondNotifyAll): Ditto.
4751 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4752 the target thread by signaling its wait condition.
4753 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4754 not the starter struct. Initialize wait_mutex and wait_cond.
4755 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4757 (_Jv_MutexUnlock): Ditto.
4758 (really_start): Set info->data->thread from pthread_self() to work
4759 around a race condition. Destroy wait_mutex and wait_cond when run()
4761 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4762 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4764 startable_flag: New private field.
4765 (Thread): Initialize `startable_flag'.
4766 (toString): Check for null thread group.
4767 * java/lang/natThread.cc: (struct natThread): New fields
4768 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4769 (class locker): Removed.
4770 (initialize_native): Initialize `join_cond' and `join_mutex'.
4771 (interrupt): Now just calls _Jv_ThreadInterrupt().
4772 (join): Simplified. Just wait on the target thread's join condition.
4773 (finish_): Remove join list code. Unset thread group. Signal
4774 potential joiners by notifying the dying threads join_cond.
4775 (start): Check for illegal restarts.
4776 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4778 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4779 #defines and #ifdefs.
4780 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4781 `wait_mutex', `next'.
4782 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4783 directly mapping to pthread_cond_t.
4784 (struct _Jv_Mutex_t): New recursive implementation.
4785 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4786 _Jv_HaveCondDestroy: Never define this for posix-threads.
4787 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4788 (_Jv_CondNotifyAll): Ditto.
4789 (_Jv_MutexLock): Ditto.
4790 (_Jv_MutexUnlock): Ditto.
4791 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4792 (_Jv_MutexDestroy): Ditto.
4793 (_Jv_CondDestroy): Removed.
4794 (_Jv_PthreadGetMutex): Removed.
4795 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4796 error. Add a FIXME about this.
4797 (_Jv_CondNotifyAll): Ditto.
4798 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4799 _JV_NOT_OWNER on other errors. Add FIXME.
4801 2000-03-26 Tom Tromey <tromey@cygnus.com>
4803 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4805 (call): Don't throw exception here.
4807 2000-03-26 Tom Tromey <tromey@cygnus.com>
4809 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4810 * interpret.cc: Use SIZEOF_VOID_P.
4811 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4812 (_Jv_loadLong): Likewise.
4813 (_Jv_storeDouble): Likewise.
4814 * configure: Rebuilt.
4815 * configure.in: Check size of void*.
4817 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4819 2000-03-26 Hans Boehm <boehm@acm.org>
4821 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4822 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4824 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4825 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4826 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4827 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4829 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4830 (FFI_RAW_SIZE): Likewise.
4831 (_Jv_InterpMethod::ncode): Use them.
4832 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4833 STORED): Define differently on a 64 bit machine.
4834 (continue1): Use ffi_java_raw_call when appropriate.
4836 2000-03-24 Warren Levy <warrenl@cygnus.com>
4838 * java/math/BigInteger.java(divide): Handle the special case when
4839 dividing by 1 and the high bit of the dividend is set.
4840 (setShiftRight): Handle case when count == 0.
4842 2000-03-24 Warren Levy <warrenl@cygnus.com>
4844 * java/awt/Font.java(isBold): Fix syntax error.
4846 * java/awt/Frame.java(postEvent): ditto.
4847 * java/awt/Menu.java(postEvent): ditto.
4848 * java/awt/MenuBar.java(postEvent): ditto.
4849 * java/awt/Toolkit.java(init): Included a stub.
4851 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4853 * java/awt/Event.java: Add all the event type constants.
4854 (Event): Implemented constructors.
4855 (controlDown): Implemented.
4856 (metaDown): Implemented.
4857 (paramString): Stubbed.
4858 (shiftDown): Implemented.
4859 (toString): Implemented.
4860 (translate): Implemented.
4862 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4864 * java/lang/natClass.cc (isInstance): Initialize `this'.
4865 (isAssignableFrom): Initialize `this' and `klass'.
4866 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4867 implemented by any loaded class, so return false.
4868 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4869 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4871 2000-03-19 Warren Levy <warrenl@cygnus.com>
4873 * java/awt/Color.java: Specified java.io for Serializable.
4874 * java/awt/Toolkit.java: Imported java.net.URL.
4876 2000-03-19 Warren Levy <warrenl@cygnus.com>
4878 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4880 2000-03-16 Warren Levy <warrenl@cygnus.com>
4882 * java/awt/Color.java: New file.
4883 * java/awt/Graphics.java: New file.
4884 * java/awt/Image.java: New file.
4885 * java/awt/Paint.java: New file.
4886 * java/awt/PaintContext.java: New file.
4887 * java/awt/Transparency.java: New file.
4888 * java/util/Collection.java: New file.
4889 * java/util/Comparator.java: New file.
4890 * java/util/Iterator.java: New file.
4891 * java/util/List.java: New file.
4892 * java/util/ListIterator.java: New file.
4893 * Makefile.am: Added above new files.
4894 * Makefile.in: Rebuilt.
4896 * java/awt/Font.java (PLAIN): New field.
4898 (ITALIC): New field.
4899 (ROMAN_BASELINE): New field.
4900 (CENTER_BASELINE): New field.
4901 (HANGING_BASELINE): New field.
4905 (pointSize): New field.
4906 (Font): Implemented constructor.
4907 (isPlain): Implemented method.
4908 (isBold): Implemented method.
4909 (isItalic): Implemented method.
4910 (getName): Implemented method.
4911 (getStyle): Implemented method.
4912 (getSize): Implemented method.
4913 (getSize2D): Implemented method.
4915 * java/awt/Frame.java (getFont): Stubbed.
4916 (postEvent): Stubbed.
4918 * java/awt/Menu.java (postEvent): Stubbed.
4919 * java/awt/MenuBar.java (getFont): Stubbed.
4920 (postEvent): Stubbed.
4921 * java/awt/Toolkit.java (getImage): Added abstract method.
4923 2000-03-15 Tom Tromey <tromey@cygnus.com>
4925 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4927 * prims.cc (win32_exception_handler): Reformatted.
4929 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4930 (_Jv_HaveMutexDestroy): Likewise.
4932 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4934 * java/io/natFileDescriptorWin32.cc: New file.
4935 * java/io/natFileWin32.cc: New file.
4936 * java/net/natInetAddress.cc: Added conditional inclusion of
4937 Windows / Winsock headers.
4938 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4939 inclusion of Windows / Winsock headers.
4940 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4941 Windows / Winsock headers.
4942 * include/win32-signal.h: New file.
4943 * include/win32-threads.h: New file.
4944 * win32-threads.cc: New file.
4945 * exception.cc (win32_get_restart_frame): New function.
4946 * prims.cc (win32_exception_handler): New function.
4947 (main_init) Performs Winsock initialisation.
4948 (main_init) Installs exeception handler.
4950 2000-03-14 Tom Tromey <tromey@cygnus.com>
4952 * jni.cc (mangled_name): Fixed assertion.
4953 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4954 turned assert into actual failure.
4956 2000-03-09 Warren Levy <warrenl@cygnus.com>
4958 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4959 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4960 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4962 2000-03-09 Warren Levy <warrenl@cygnus.com>
4964 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4965 * java/security/DigestException.java: New file.
4966 * java/security/GeneralSecurityException.java: New file.
4967 * java/security/InvalidAlgorithmParameterException.java: New file.
4968 * java/security/InvalidKeyException.java: New file.
4969 * java/security/InvalidParameterException.java: New file.
4970 * java/security/Key.java: New file.
4971 * java/security/KeyException.java: New file.
4972 * java/security/KeyPair.java: New file.
4973 * java/security/KeyPairGenerator.java: New file.
4974 * java/security/KeyPairGeneratorSpi.java: New file.
4975 * java/security/NoSuchProviderException.java: New file.
4976 * java/security/PrivateKey.java: New file.
4977 * java/security/Provider.java: New file.
4978 * java/security/PublicKey.java: New file.
4979 * java/security/SecureRandom.java: New file.
4980 * java/security/Security.java: New file.
4981 * java/security/Signature.java: New file.
4982 * java/security/SignatureException.java: New file.
4983 * java/security/interfaces/DSAKey.java: New file.
4984 * java/security/interfaces/DSAParams.java: New file.
4985 * java/security/interfaces/DSAPrivateKey.java: New file.
4986 * java/security/interfaces/DSAPublicKey.java: New file.
4987 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4988 * java/security/interfaces/RSAPrivateKey.java: New file.
4989 * java/security/interfaces/RSAPublicKey.java: New file.
4990 * java/security/spec/AlgorithmParameterSpec.java: New file.
4991 * java/security/spec/InvalidKeySpecException.java: New file.
4992 * java/security/spec/InvalidParameterSpecException.java: New file.
4993 * java/security/spec/KeySpec.java: New file.
4994 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4995 * java/security/spec/RSAPrivateKeySpec.java: New file.
4996 * java/security/spec/RSAPublicKeySpec.java: New file.
4997 * Makefile.am: Added above java.security files.
4998 * Makefile.in: Rebuilt.
5000 * java/security/MessageDigest.java: Rewritten.
5001 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5003 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5007 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
5009 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5010 _Jv_PrepareConstantTimeTables.
5011 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5012 classes should have an IDT, so don't return if klass is an array
5015 2000-03-08 Tom Tromey <tromey@cygnus.com>
5017 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5018 of `void' to be created.
5020 2000-03-08 Warren Levy <warrenl@cygnus.com>
5022 * java/math/BigInteger.java(signum): Handle zero properly.
5024 2000-03-07 Tom Tromey <tromey@cygnus.com>
5026 * All files: Updated copyright information.
5027 * COPYING: New file.
5028 * COPYING.LIB: Removed.
5029 * LIBGCJ_LICENSE: We now use GPL + special exception.
5031 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5033 * resolve.cc (_Jv_SearchMethodInClass): New function.
5034 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5035 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5037 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
5039 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5040 (struct _Jv_ifaces): New declaration.
5041 JV_CLASS: New macro definition.
5042 (getComponentType): Relocate below isArray() for inlining.
5043 (getModifiers): Declare `inline'.
5044 (getSuperclass): Ditto.
5046 (isPrimitive): Ditto.
5047 (_Jv_IsAssignableFrom): New prototype.
5048 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5050 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5051 Check for JV_STATE_DONE before invoking initializeClass().
5052 (_Jv_PrepareConstantTimeTables): New prototype.
5053 (_Jv_GetInterfaces): Ditto.
5054 (_Jv_GenerateITable): Ditto.
5055 (_Jv_GetMethodString): Ditto.
5056 (_Jv_AppendPartialITable): Ditto.
5057 (_Jv_FindIIndex): Ditto.
5058 depth, ancestors, idt: New class fields.
5060 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5061 inline function `_Jv_IsAssignableFrom'. Use that function.
5062 (isInstance): Declare `inline'.
5063 (initializeClass): Get lock on class before checking `state'. Unlock
5064 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5066 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5067 (_Jv_IsAssignableFrom): New inline function. Test assignability using
5068 class->depth and ancestor table.
5069 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5070 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5071 _Jv_IsAssignableFrom.
5072 (_Jv_CheckArrayStore): Ditto.
5073 (_Jv_LookupInterfaceMethodIdx): New function.
5074 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5075 (_Jv_PrepareConstantTimeTables): New function.
5076 (_Jv_IndexOf): Ditto.
5077 (_Jv_GetInterfaces): Ditto.
5078 (_Jv_GenerateITable): Ditto.
5079 (_Jv_GetMethodString): Ditto.
5080 (_Jv_AppendPartialITable): Ditto.
5081 iindex_mutex, iindex_mutex_initialized: New static fields.
5082 (_Jv_FindIIndex): New function.
5084 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5086 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5087 (_Jv_CheckArrayStore): Ditto.
5088 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5089 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5090 Moved to gcj/array.h.
5091 (_Jv_Realloc): New function.
5093 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5095 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5096 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5097 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5098 JvNewDoubleArray): Implementations moved from prims.cc and
5101 * gcj/javaprims.h (_Jv_Realloc): Prototype.
5103 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5105 2000-03-06 Tom Tromey <tromey@cygnus.com>
5107 * jni.cc (MARK_NONE): New define.
5108 (MARK_USER): Likewise.
5109 (MARK_SYSTEM): Likewise.
5110 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5112 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5113 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5114 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5115 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5117 (call): Use MARK_SYSTEM.
5118 (_Jv_GetJNIEnvNewFrame): New function.
5119 (_Jv_LookupJNIMethod): New function.
5120 (_Jv_JNI_PopSystemFrame): New function.
5121 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5123 2000-03-05 Tom Tromey <tromey@cygnus.com>
5125 Fix for PR libgcj/43:
5126 * include/Makefile.in: Rebuilt.
5127 * include/Makefile.am (include_HEADERS): New define.
5129 2000-03-05 Anthony Green <green@redhat.com>
5131 * gcj/javaprims.h ("Java"): Remove FirstThread.
5133 * configure.host: Fix __NO_MATH_INLNES botch.
5135 * Makefile.in: Rebuilt.
5136 * Makefile.am (nat_source_files): Move natFirstThread.cc.
5137 (gnu/gcj/runtime/FirstThread.h): Moved.
5138 (ordinary_java_source_files): Move FirstThread.java.
5139 * prims.cc: Deal with FirstThread movement.
5141 (_Jv_RunMain): Ditto.
5143 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5144 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5146 2000-03-05 Warren Levy <warrenl@cygnus.com>
5148 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5149 Handle null addresses.
5151 2000-03-04 Anthony Green <green@redhat.com>
5153 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5156 2000-03-04 Anthony Green <green@redhat.com>
5158 * configure: Rebuilt.
5159 * configure.in (ZLIBTESTSPEC): New macro.
5160 (GCTESTSPEC): New macro.
5161 (LIBGCJTESTSPEC): New macro.
5162 * libgcj-test.spec.in: New file.
5164 2000-03-02 Tom Tromey <tromey@cygnus.com>
5166 * include/java-interp.h: Don't include MethodInvocation.h.
5167 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5168 * Makefile.in: Rebuilt.
5169 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5170 (ordinary_java_source_files): Don't mention
5171 MethodInvocation.java.
5172 * gnu/gcj/runtime/MethodInvocation.java: Removed.
5173 * interpret.cc (MethodInvocation::continue1): Removed.
5174 (run): Handle exceptions here.
5175 * java/lang/ClassLoader.java (defineClass1, defineClass2):
5177 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5179 (defineClass2): Removed.
5181 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5183 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5185 (hack_call): Removed.
5187 * java/lang/Class.h (Class): Removed hackRunInitializers,
5189 * java/lang/natClass.cc (hackRunInitializers): Removed.
5190 (initializeClass): Catch exceptions here.
5191 Include ExceptionInInitializerError.h.
5192 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5195 * java/lang/Object.h (Object): Don't mention hack12_6.
5196 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5198 * java/lang/Object.java (hack12_6): Removed.
5200 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
5201 (start): Use run_, not run__.
5202 * java/lang/Thread.java (run_): Renamed from run__; old run_
5205 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5206 (_Jv_JNI_EnsureLocalCapacity): Likewise.
5207 (_Jv_JNI_DefineClass): Likewise.
5208 (_Jv_JNI_ThrowNew): Likewise.
5209 (_Jv_JNI_AllocObject): Likewise.
5210 (_Jv_JNI_GetAnyMethodID): Likewise.
5211 (_Jv_JNI_CallAnyMethodV): Likewise.
5212 (_Jv_JNI_CallAnyMethodA): Likewise.
5213 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5214 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5215 (_Jv_JNI_GetAnyFieldID): Likewise.
5216 (_Jv_JNI_NewString): Likewise.
5217 (_Jv_JNI_NewStringUTF): Likewise.
5218 (_Jv_JNI_GetStringUTFChars): Likewise.
5219 (_Jv_JNI_NewObjectArray): Likewise.
5220 (_Jv_JNI_NewPrimitiveArray): Likewise.
5221 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5222 (_Jv_JNI_GetStringRegion): Likewise.
5223 (_Jv_JNI_GetStringUTFRegion): Likewise.
5224 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5225 (_Jv_JNI_MonitorEnter): Likewise.
5226 (_Jv_JNI_MonitorExit): Likewise.
5227 (_Jv_JNI_ToReflectedField): Likewise.
5228 (_Jv_JNI_ToReflectedMethod): Likewise.
5229 (_Jv_JNI_RegisterNatives): Likewise.
5230 (_Jv_JNI_AttachCurrentThread): Likewise.
5231 (_Jv_JNI_DestroyJavaVM): Likewise.
5233 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5235 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5236 error caused by the incorrect casting of a long to an int.
5238 2000-02-28 Mo DeJong <mdejong@cygnus.com>
5240 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5241 SIGSEV caused by use of the wrong instance variable.
5243 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
5245 * java/io/File.java (File(String, String)): For dirPath, treat an
5246 empty String the same as `null'.
5248 2000-02-26 Anthony Green <green@cygnus.com>
5250 * gnu/gcj/io/MimeTypes.java: Test for null.
5252 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5253 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5255 * java/net/URLConnection.java: Update copyright notice.
5257 2000-02-25 Tom Tromey <tromey@cygnus.com>
5259 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5262 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5264 * java/net/URLConnection.java (initializeDateFormats): New
5266 (getHeaderFieldDate): Call initializeDateFormats if required.
5267 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5269 Fix for PR libgcj/38.
5271 2000-02-24 Warren Levy <warrenl@cygnus.com>
5273 * java/math/BigInteger.java(ival): Made private.
5277 2000-02-20 Anthony Green <green@cygnus.com>
5279 * Makefile.in: Rebuilt.
5280 * Makefile.am (ordinary_java_source_files): Add
5281 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5283 * scripts/MakeDefaultMimeTypes.java: New file.
5284 * scripts/mime.types: New file.
5285 * scripts/classes.pl: Moved from top level.
5286 * classes.pl: Moved to scripts directory.
5288 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5290 * gnu/gcj/io/MimeTypes.java: New file.
5291 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5293 2000-02-20 Tom Tromey <tromey@cygnus.com>
5295 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5297 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5299 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5302 2000-02-18 Tom Tromey <tromey@cygnus.com>
5304 * include/jvm.h (_Jv_GetJavaVM): Declare.
5305 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5306 (_Jv_MethodBase::get_method): New method.
5307 (_Jv_JNIMethod::set_function): New method.
5308 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5309 (_Jv_JNI_RegisterNatives): New function.
5310 (_Jv_JNIFunctions): Updated for new functions.
5311 (_Jv_GetJavaVM): New function.
5312 (_Jv_JNI_GetJavaVM): Use it. Now static.
5313 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5314 is already a Java thread but does not have a JNIEnv yet.
5316 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5319 2000-02-17 Tom Tromey <tromey@cygnus.com>
5321 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5324 2000-02-16 Tom Tromey <tromey@cygnus.com>
5326 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5328 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5329 (_Jv_JNI_NewObject): Likewise.
5330 (_Jv_JNI_NewObjectA): Likewise.
5331 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5332 as "return" type to _Jv_CallAnyMethodA.
5333 (_Jv_JNI_CallAnyMethodA): Likewise.
5334 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5336 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5339 2000-02-15 Tom Tromey <tromey@cygnus.com>
5341 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5343 (init_cif): Added `rtype_p' argument.
5344 * include/java-interp.h (class _Jv_MethodBase): Added
5346 (class _Jv_InterpMethod): Removed args_raw_size.
5347 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5348 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5349 class pointer as well as the ordinary arguments.
5351 * jni.cc (mangled_name): Skip leading `(' in signature.
5353 * jni.cc (add_char): Added missing `else'.
5355 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5358 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5362 * java/lang/natRuntime.cc (_load): Include library path with
5365 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5368 * java/lang/natThread.cc (dumpStack): Removed.
5369 * java/lang/Thread.java (dumpStack): Implemented.
5371 2000-02-15 Tom Tromey <tromey@cygnus.com>
5373 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5374 with `lib' for loadLibrary. Fixes PR gcj/150.
5376 2000-02-14 Warren Levy <warrenl@cygnus.com>
5378 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5380 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5384 (modPow): Rewritten to not use the naive, slow, brute force approach.
5385 (isProbablePrime): Implemented.
5386 (testBit): Implemented.
5387 (flipBit): Implemented.
5388 (getLowestSetBit): Implemented.
5390 2000-02-16 Anthony Green <green@redhat.com>
5392 * configure.host: Use the same options for i386 and i486 as we do
5395 2000-02-12 Tom Tromey <tromey@cygnus.com>
5397 * java/io/File.java (createTempFile): Use low bits from counter,
5400 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5402 * THANKS: More thanks.
5404 2000-02-11 Tom Tromey <tromey@cygnus.com>
5406 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5407 astore instruction. From Hans Boehm.
5409 2000-02-11 Warren Levy <warrenl@cygnus.com>
5411 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5412 (BigInteger(String)): New constructor.
5413 (not): Rewritten using version from Kawa's BitOps class.
5414 (valueOf): New private methods from Kawa's BitOps class.
5421 (andNot): Implemented.
5422 (clearBit): Implemented.
5423 (setBit): Implemented.
5424 (bitCount): Implemented.
5425 (toByteArray): Implemented.
5427 2000-02-11 Tom Tromey <tromey@cygnus.com>
5429 * java/io/File.java (nextValue): Now synchronized.
5431 2000-02-10 Tom Tromey <tromey@cygnus.com>
5433 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5434 * java/io/FileDescriptor.java (EXCL): New static field.
5435 * java/io/File.java (tmpdir): New static field.
5436 (createTempFile): New method.
5437 (nextValue): New method.
5438 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5441 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5442 (jboolean): Declare as an attributed int, not a bool.
5443 (_Jv_func): Declare differently for C.
5445 * gnu/gcj/jni/natNativeThread.cc: New file.
5446 * gnu/gcj/jni/NativeThread.java: New file.
5447 * java/lang/Thread.java (data): Now a RawData.
5448 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5450 * Makefile.in: Rebuilt.
5451 * Makefile.am (java/lang/Thread.h): New target.
5452 (ordinary_java_source_files): Added NativeThread.java.
5453 (nat_source_files): Added natNativeThread.cc.
5454 * java/lang/natThread.cc: Include <jni.h>
5455 (struct natThread): Added `jni_env' field.
5456 (_Jv_GetCurrentJNIEnv): New function.
5457 (_Jv_SetCurrentJNIEnv): Likewise.
5458 (initialize_native): Initialize jni_env.
5460 * jni.cc (ThreadGroupClass): New define.
5461 (_Jv_JNI_InvokeFunctions): New structure.
5462 (JNI_GetCreatedJavaVMs): New function.
5463 (the_vm): New global.
5464 (JNI_GetDefaultJavaVMInitArgs): New function.
5465 Include NativeThread.h.
5466 (NativeThreadClass): New define.
5467 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5468 (_Jv_JNI_DestroyJavaVM): New function.
5469 (_Jv_JNI_AttachCurrentThread): New function.
5470 (_Jv_JNI_DetachCurrentThread): New function.
5471 (_Jv_JNI_GetEnv): New function.
5472 (JNI_CreateJavaVM): New function.
5473 (_Jv_JNI_GetJavaVM): New function.
5474 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5475 * include/jni.h (JavaVMAttachArgs): New structure.
5476 (JNI_EDETACHED): New define.
5477 (JNI_EVERSION): Likewise.
5478 (JavaVM): Define properly.
5479 (struct JNIInvokeInterface): New structure.
5480 (class _Jv_JavaVM): New class.
5481 (JNI_OnLoad, JNI_OnUnload): Declare.
5482 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5483 JNI_GetCreatedJavaVMs): Declare.
5484 (JavaVMInitArgs): New typedef.
5485 (JavaVMOption): Likewise.
5486 (JNI_ERR): New define.
5489 2000-02-10 Andrew Haley <aph@cygnus.com>
5491 * interpret.cc: Don't include fdlibm.h.
5492 Replace #if with #ifdef throughout.
5493 Declare extern __ieee754_fmod.
5494 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5496 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5497 Search class hierarchy for superclass vtable.
5499 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5500 off the end of a pointer list.
5502 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5506 2000-02-09 Tom Tromey <tromey@cygnus.com>
5508 * java/lang/natRuntime.cc (_load): Call add_library.
5509 (loadLibraryInternal): Likewise.
5511 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5512 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5513 (Output_iconv::finalize): Likewise.
5515 2000-02-08 Tom Tromey <tromey@cygnus.com>
5517 * java/util/Properties.java (setProperty): New method.
5518 (store): New method.
5520 2000-02-07 Tom Tromey <tromey@cygnus.com>
5522 * java/lang/Runtime.java (_load): Declare.
5523 (load, loadLibrary): Wrote in terms of _load.
5524 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5526 (loadLibrary): Likewise.
5528 (_load): New method.
5529 (loadLibrary, load): Removed.
5531 * jni.cc (ThrowableClass): New define.
5532 (_Jv_JNI_Throw): Check argument.
5533 (_Jv_JNI_ThrowNew): Likewise.
5534 (wrap_value): Don't wrap object if it is NULL.
5535 (_Jv_JNI_DefineClass): Use wrap_value.
5536 (_Jv_JNI_FindClass): Likewise.
5537 (_Jv_JNI_GetSuperclass): Likewise.
5538 (_Jv_JNI_ExceptionOccurred): Likewise.
5539 (_Jv_JNI_AllocObject): Likewise.
5540 (_Jv_JNI_GetObjectClass): Likewise.
5541 (_Jv_JNI_NewString): Likewise.
5542 (_Jv_JNI_NewStringUTF): Likewise.
5543 (_Jv_JNI_NewObjectArray): Likewise.
5544 (_Jv_JNI_GetObjectArrayElement): Likewise.
5545 (_Jv_JNI_NewPrimitiveArray): Likewise.
5546 (_Jv_JNI_ToReflectedField): Likewise.
5547 (_Jv_JNI_ToReflectedMethod): Likewise.
5548 (_Jv_JNI_AllocObject): Check argument.
5549 (_Jv_JNI_NewObjectV): Likewise.
5550 (_Jv_JNI_NewObject): Likewise.
5551 (_Jv_JNI_NewObjectA): Likewise.
5552 (_Jv_JNI_GetObjectClass): Likewise.
5553 (_Jv_JNI_GetField): Likewise.
5554 (_Jv_JNI_SetField): Likewise.
5556 * interpret.cc (PUSHL): Don't use expression statement.
5561 * jni.cc (add_char): Conditional on INTERPRETER.
5562 (mangled_name): Likewise.
5564 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5566 (class _Jv_JNIMethod): Likewise.
5568 2000-02-04 Warren Levy <warrenl@cygnus.com>
5570 * Makefile.am: Added MPN.java and BigInteger.java.
5571 * Makefile.in: Rebuilt.
5572 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5574 * java/math/BigInteger.java: New file. Based primarily on
5575 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5577 2000-02-04 Tom Tromey <tromey@cygnus.com>
5579 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5581 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5582 if the method is native.
5583 * resolve.cc (ncode): Don't handle native methods.
5584 (_Jv_JNIMethod::ncode): New method.
5585 (_Jv_PrepareClass): Handle native methods.
5586 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5587 Include AbstractMethodError.h.
5588 (add_char): New function.
5589 (mangled_name): Likewise.
5590 * include/java-interp.h (class _Jv_JNIMethod): New class.
5591 (class _Jv_MethodBase): New class.
5592 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5593 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5596 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5597 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5598 libraries): New globals.
5599 (add_library): New function.
5600 (_Jv_FindSymbolInExecutable): New function.
5602 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5605 2000-02-04 Andrew Haley <aph@cygnus.com>
5607 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5608 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5609 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5610 printStackTrace to printRawStackTrace.
5612 2000-02-03 Tom Tromey <tromey@cygnus.com>
5614 * java/util/Calendar.java (toString): New method.
5615 * java/util/SimpleTimeZone.java (clone): New method.
5616 (toString): New method.
5617 * java/util/TimeZone.java (clone): New method.
5618 * java/text/SimpleDateFormat.java (clone): New method.
5619 * java/text/NumberFormat.java (clone): New method.
5620 (equals): New method.
5621 * java/text/Format.java (clone): New method.
5622 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5624 (clone): New method.
5625 * java/text/DateFormat.java (clone): New method.
5626 * java/text/Collator.java (clone): New method.
5628 2000-02-03 Tom Tromey <tromey@cygnus.com>
5630 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5633 2000-02-01 Tom Tromey <tromey@cygnus.com>
5635 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5636 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5637 constructing the closure if the function is native.
5638 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5639 a template function, #if'd out, or static.
5640 Include <java-interp.h>.
5642 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5644 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5646 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5647 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5649 (wrap_value): New function.
5650 (_Jv_JNI_CallAnyMethodV): Use it.
5651 (_Jv_JNI_CallAnyMethodA): Likewise.
5652 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5653 (_Jv_JNI_GetStaticField): Likewise.
5655 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5656 (_Jv_JNI_GetStaticField): Likewise.
5658 2000-01-31 Tom Tromey <tromey@cygnus.com>
5660 * prims.cc (_Jv_MallocUnchecked): New function.
5661 (main_init): Call _Jv_JNI_Init.
5662 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5663 (_Jv_JNI_Init): Declare.
5664 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5666 (_Jv_JNI_NewGlobalRef): New function.
5667 (_Jv_JNI_DeleteGlobalRef): New function.
5668 (_Jv_JNI_DeleteLocalRef): New function.
5669 (_Jv_JNI_conversion_call): Initialize and clear local reference
5671 (_Jv_JNI_NewLocalRef): New function.
5672 (struct _Jv_JNI_LocalFrame): New structure.
5673 (_Jv_JNI_PushLocalFrame): New function.
5674 (_Jv_JNI_EnsureLocalCapacity): New function.
5675 (FRAME_SIZE): New define.
5676 (_Jv_JNI_GetStringChars): Mark string, not characters.
5677 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5678 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5679 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5681 (_Jv_JNI_DefineClass): Make return value a local ref.
5682 (_Jv_JNI_FindClass): Likewise.
5683 (_Jv_JNI_GetSuperclass): Likewise.
5684 (_Jv_JNI_ExceptionOccurred): Likewise.
5685 (_Jv_JNI_AllocObject): Likewise.
5686 (_Jv_JNI_GetObjectClass): Likewise.
5687 (_Jv_JNI_CallAnyMethodV): Likewise.
5688 (_Jv_JNI_NewString): Likewise.
5689 (_Jv_JNI_NewStringUTF): Likewise.
5690 (_Jv_JNI_NewObjectArray): Likewise.
5691 (_Jv_JNI_GetObjectArrayElement): Likewise.
5692 (_Jv_JNI_ToReflectedField): Likewise.
5693 (_Jv_JNI_ToReflectedMethod): Likewise.
5694 (_Jv_JNIFunctions): Updated table for new functions.
5695 (_Jv_JNI_Init): New function.
5696 (mark_for_gc): Wrote.
5697 (unmark_for_gc): Wrote.
5698 * include/jni.h (struct JNINativeInterface): Removed name from
5699 PopLocalFrame parameter.
5700 (class _Jv_JNIEnv): Added `locals' field.
5702 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5704 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5707 2000-01-30 Tom Tromey <tromey@cygnus.com>
5709 * include/config.h.in: Rebuilt.
5710 * acconfig.h (HAVE_ICONV): Define.
5711 * configure: Rebuilt.
5712 * configure.in: Check for `iconv' function.
5713 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5714 no specific encoder exists.
5715 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5716 no specific encoder exists.
5717 * Makefile.in: Rebuilt.
5718 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5720 (nat_source_files): Added natIconv.cc.
5721 * gnu/gcj/convert/natIconv.cc: New file.
5722 * gnu/gcj/convert/Input_iconv.java: New file.
5723 * gnu/gcj/convert/Output_iconv.java: New file.
5725 2000-01-28 Tom Tromey <tromey@cygnus.com>
5727 * Makefile.in: Rebuilt.
5728 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5730 2000-01-26 Tom Tromey <tromey@cygnus.com>
5732 * gcj/method.h (JvNumMethods): Moved from Class.h.
5733 (JvGetFirstMethod): Likewise.
5734 * java/lang/Class.h (Object): Updated decl of
5735 _Jv_JNI_ToReflectedField.
5736 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5737 * Makefile.in: Rebuilt.
5738 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5739 argument of _Jv_JNI_ToReflectedField.
5740 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5742 (java/lang/reflect/Method.h): Likewise.
5743 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5745 (jweak): New typedef.
5746 (struct JNINativeInterface): Correctly declare remaining entries.
5747 * jni.cc: Include Class.h, ClassLoader.h.
5748 (_Jv_JNI_FindClass): New function.
5749 (_Jv_JNI_DefineClass): New function.
5750 (_Jv_JNI_conversion_call): New function.
5751 (_Jv_JNI_FindClass): Use current class loader to find class.
5752 (_Jv_JNI_ExceptionCheck): New function.
5753 (_Jv_JNI_FromReflectedField): Now static.
5754 (MethodClass): New define.
5755 (_Jv_JNI_FromReflectedMethod): New function.
5756 (_Jv_JNI_ToReflectedMethod): Likewise.
5758 (_Jv_JNI_IsAssignableFrom): Renamed.
5759 (_Jv_JNI_GetStringRegion): New function.
5760 Include StringIndexOutOfBoundsException.h.
5761 (_Jv_JNI_GetStringUTFRegion): New function.
5762 (_Jv_JNIFunctions): Updated for new functions.
5763 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5764 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5765 (_Jv_JNI_GetStringCritical): New function.
5766 (_Jv_JNI_ReleaseStringCritical): Likewise.
5767 (get_throwable): Removed.
5768 (GCJ_JV_JNIENV_FRIEND): Removed.
5769 (__GCJ_JNI_IMPL__): Define.
5772 * resolve.cc (get_ffi_type_from_signature): Handle case where
5775 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5777 * interpret.cc (run): Don't call println.
5778 Don't include PrintStream.h.
5780 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5781 nameIndex. Use "jint" as type for boffset.
5782 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5784 (Class): Likewise. Also changed type of method_count,
5785 vtable_method_count, size_in_bytes, field_count,
5786 static_field_count, interface_count.
5787 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5790 2000-01-21 Tom Tromey <tromey@cygnus.com>
5792 * java/lang/reflect/natConstructor.cc (newInstance): Use
5794 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5795 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5796 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5799 (invoke): Use _Jv_CallAnyMethodA.
5801 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5802 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5804 (struct _Jv_Method): Added getNextMethod method.
5805 (JvNumMethods): New function.
5806 (JvGetFirstMethod): Likewise.
5807 * gcj/field.h (JvGetFirstStaticField): New function.
5808 (JvNumStaticFields): Likewise.
5809 (getNextField): Renamed from getNextInstanceField.
5810 (struct _Jv_Field): New method getClass.
5811 * jni.cc: Wrote many new functions.
5812 * include/jni.h (JNI_TRUE): Define.
5813 (JNI_FALSE): Likewise.
5814 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5815 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5816 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5817 (jfieldID, jmethodID): Likewise.
5818 (JNI_COMMIT, JNI_ABORT): New defines.
5819 (JNINativeMethod): New struct.
5820 (struct JNINativeInterface): Correctly declared more entries.
5821 (class _Jv_JNIEnv): Added `ex' member.
5822 (JNI_VERSION_1_1): New define.
5823 (JNI_VERSION_1_2): Likewise.
5825 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5826 getNextInstanceField.
5828 2000-01-20 Tom Tromey <tromey@cygnus.com>
5830 * resolve.cc (StringClass): Removed.
5831 * defineclass.cc (StringClass): Removed.
5833 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5837 2000-01-19 Tom Tromey <tromey@cygnus.com>
5839 * interpret.cc (PC_REGISTER_ASM): Removed.
5841 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5842 From Bryce McKinlay.
5844 * All files: Updated copyright to reflect Cygnus purchase.
5846 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5848 * configure: Rebuilt.
5849 * configure.in: Recognize --disable-interpreter.
5851 2000-01-18 Andrew Haley <aph@cygnus.com>
5853 * name-finder.cc (lookup): Check for dladdr function.
5854 acconfig.h (HAVE_DLADDR): Add.
5855 configure.in: Check for HAVE_DLADDR
5857 include/config.h.in: Rebuilt.
5859 2000-01-17 Andrew Haley <aph@cygnus.com>
5861 * prims.cc (_Jv_RunMain): Set the name of this executable.
5863 2000-01-17 Tom Tromey <tromey@cygnus.com>
5865 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5866 when backtrace can't be computed.
5868 * configure: Rebuilt.
5869 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5871 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5872 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5873 (_Jv_FindClassInCache): Likewise.
5874 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5875 (findSystemClass): Try to load class from compiled module.
5877 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5878 (loadLibrary): Likewise.
5879 (lt_preloaded_symbols): Define.
5880 (loadLibraryInternal): New method.
5881 * include/config.h.in: Rebuilt.
5882 * acconfig.h (USE_LTDL): Added.
5883 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5884 (INCLUDES): Added $(INCLTDL).
5885 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5886 (libgcj_la_LIBADD): Likewise.
5887 * aclocal.m4, configure: Rebuilt.
5888 * configure.in: Added libltdl support.
5890 2000-01-15 Tom Tromey <tromey@cygnus.com>
5892 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5894 2000-01-14 Andrew Haley <aph@cygnus.com>
5896 * java/lang/natThrowable.cc: New file.
5898 * java/lang/Throwable.java (fillInStackTrace): Make native.
5899 (printStackTrace): Call native method to do this.
5900 (Throwable): Call fillInStackTrace.
5901 (stackTrace): New variable.
5903 * include/jvm.h: Add _Jv_ThisExecutable functions.
5905 * prims.cc: (_Jv_execName): New variable.
5906 (catch_segv): Call fillInStackTrace.
5908 (_Jv_ThisExecutable): New functions.
5909 (JvRunMain): Set the name of this executable.
5911 * Makefile.am: Add java/lang/natThrowable.cc.
5913 * Makefile.in: Rebuilt.
5915 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5917 * configure.in: Force link with __frame_state_for in
5918 FORCELIBGCCSPEC. Add new checks for backtrace.
5919 * include/config.h.in: Rebuilt.
5921 * name-finder.cc: New file.
5922 * include/name-finder.h: New file.
5924 2000-01-16 Anthony Green <green@cygnus.com>
5926 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5929 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5931 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5933 2000-01-13 Tom Tromey <tromey@cygnus.com>
5935 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5936 not system loader, as initiating loader.
5938 2000-01-11 Tom Tromey <tromey@cygnus.com>
5940 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5941 HP/UX. From David Scott Urban.
5943 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5945 * java/lang/natMath.cc (pow): Cast args to `double', not
5948 (IEEEremainder): Likewise.
5949 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5950 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5952 2000-01-09 Anthony Green <green@cygnus.com>
5954 * java/lang/natString.cc (init): Test for overflow condition
5955 during out of bounds check.
5956 (getChars): Throw StringIndexOutOfBoundsException, not
5957 ArrayIndexOutOfBoundsException.
5959 (regionMatches): Obey case option during string comparison.
5961 * configure.host (ligcj_interpreter): New variable. Enable
5962 interpreter by default on IA-32.
5963 * configure.in: Examine libgcj_interpreter.
5964 * configure: Rebuilt.
5966 2000-01-07 Tom Tromey <tromey@cygnus.com>
5968 * mauve-libgcj: Don't disable ClassTest.
5970 * java/lang/natClass.cc (getClasses): Wrote.
5972 2000-01-06 Tom Tromey <tromey@cygnus.com>
5974 * java/lang/natClass.cc (_getConstructors): Correctly check
5975 whether method name is the init name.
5976 (getMethod): Look at accflags on method in `klass', not `this'.
5978 2000-01-05 Tom Tromey <tromey@cygnus.com>
5980 * java/lang/natClass.cc (getMethod): Compute offset relative to
5981 `klass's methods table, not `this's table.
5983 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5984 In unwrapping/widening case, check whether `k' is null, not
5985 whether it is primitive. Initialize `num' from `argelts', not
5986 `paramelts'. Correct create and pass arguments to ffi_call.
5987 Don't let presence of `this' argument affect index used to look in
5989 (COPY): Set appropriate element in `values' vector.
5991 * java/lang/natClass.cc: Include <gcj/method.h>.
5993 * java/lang/Class.h (_getMethods): Correctly declare as private,
5996 * java/lang/Class.h (_getMethods): Declare.
5997 * java/lang/Class.java (_getMethods): Declare.
5998 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5999 (getDeclaredClasses): Always return empty array.
6000 (_getMethods): New method.
6001 (getMethods): Wrote.
6002 (getDeclaredMethod): Return `rmethod'.
6003 (finit_name): New global.
6004 (getDeclaredMethods): Check for finit_name.
6005 (_getMethods): Likewise.
6006 (getMethod): Only return public methods.
6008 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6009 jboolean and select correct ffi type on that basis.
6010 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6011 Constructor call always has `void' return type.
6013 2000-01-04 Tom Tromey <tromey@cygnus.com>
6015 * java/lang/Class.h (getSignature): Updated.
6016 * java/lang/Class.java (getSignature): Updated.
6017 * java/lang/natClass.cc (getSignature): Added `is_constructor'
6019 (getConstructor): Ensure constructor is public.
6020 (_getConstructors): Check for public-ness of constructor when
6021 `declared' is false, not when it is true.
6023 2000-01-04 Warren Levy <warrenl@cygnus.com>
6025 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6027 (receive): Set the sender's address in the DatagramPacket.
6029 2000-01-04 Tom Tromey <tromey@cygnus.com>
6031 * java/lang/reflect/natConstructor.cc (newInstance): Pass
6032 declaring class as return_type argument to
6033 _Jv_CallNonvirtualMethodA.
6034 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6035 constructor case, create object and use it as `this' argument.
6036 * java/lang/Class.h (_getConstructors): Declare.
6037 (_getFields): Declare.
6038 * java/lang/Class.java (getConstructors): Wrote.
6039 (_getConstructors): New native method.
6040 (getDeclaredConstructors): Wrote.
6041 (_getFields): Declare new native method.
6042 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6044 (getMethod): Work correctly when class is primitive.
6045 (getDeclaredMethods): Likewise. Compute offset using `method',
6047 (getDeclaredMethod): Likewise.
6048 (getConstructor): Wrote.
6049 (ConstructorClass): New define.
6050 (getDeclaredConstructor): Wrote.
6051 (_getConstructors): New method.
6052 (_getFields): New method.
6055 * Makefile.in: Rebuilt.
6056 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6058 * prims.cc: Remove `#pragma implementation'.
6059 * gcj/array.h: Remove `#pragma interface'.
6061 * prims.cc (_Jv_equaln): New function.
6062 * java/lang/Class.java (getSignature): Declare.
6063 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6064 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6066 (getSignature): New method.
6067 (getDeclaredMethod): Wrote.
6069 Include StringBuffer.h.
6070 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6071 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
6073 (getSignature): Declare.
6074 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6075 (_Jv_equaln): Declare.
6076 (_Jv_CallNonvirtualMethodA): Declare.
6077 * Makefile.in: Rebuilt.
6078 * Makefile.am (nat_source_files): Added natConstructor.cc.
6079 (java/lang/reflect/Constructor.h): New target.
6080 * java/lang/reflect/natConstructor.cc: New file.
6081 * java/lang/reflect/Constructor.java (newInstance): Now native.
6082 (declaringClass): Renamed from decl_class.
6083 (offset): Renamed from index.
6084 (getType): New native method.
6085 (getModifiers): Now native.
6086 (getParameterTypes): Call getType if required.
6087 (hashCode): Include hash code from declaring class.
6088 (modifiers): Removed.
6089 (toString): Call getType if required.
6090 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6091 * java/lang/reflect/natMethod.cc (hack_call): New method.
6092 Removed `#if 0' around FFI code.
6093 Include <gnu/gcj/RawData.h>.
6094 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
6095 IllegalArgumentException when argument object and class disagree.
6096 (_Jv_GetTypesFromSignature): New function.
6098 (ObjectClass): New define.
6099 (_Jv_CallNonvirtualMethodA): New function.
6100 * java/lang/reflect/Method.java (hack_trampoline): New method.
6101 (hack_call): New native method.