1 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
4 paramater, bump it to 1.
5 * java/util/Hashtable.java (Hashtable): Likewise.
7 2001-03-23 Per Bothner <per@bothner.com>
9 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
10 check for errors, since we don't want to throw exception on
11 overflow/underflow. Instead, trim whitespace, and then check that
12 _strtod_r uses up all the rest of the string.
14 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
15 ancestors array is invalid for interfaces, so do that *after*
16 check that the target type is not an interface.
18 2000-03-23 Jeff Sturm <jsturm@one-point.com>
20 * prims.cc (_Jv_FindClassFromSignature): Check return of
21 recursive call. Do not abort on invalid signature; return NULL
24 2001-03-22 Tom Tromey <tromey@redhat.com>
26 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
27 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
29 * include/jvm.h (_Jv_ResolveField): Declare.
30 * include/java-interp.h (_Jv_ResolveField): Don't declare.
31 * resolve.cc (_Jv_ResolveField): No longer conditional on
34 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
36 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
38 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
39 to a temporary file, then invoke libtool with the -objectlist
41 (libgcjx.la): Likewise.
42 * Makefile.in: Rebuilt.
44 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
46 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
48 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
50 * jni.cc (add_char): Handle `.' like `/'.
52 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
54 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
55 initialize if exception_types is null.
56 * java/lang/reflect/Constructor.java: Likewise.
57 * java/lang/reflect/natConstructor.cc (getType): Initialize
58 exception_types to an empty Object array.
60 2001-03-21 Tom Tromey <tromey@redhat.com>
63 * configure.in (GCJFLAGS): Subst.
64 * Makefile.in: Rebuilt.
65 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
66 (gij_LDFLAGS): Likewise.
67 (JC1FLAGS): Added GCJFLAGS and removed -g.
69 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
70 read/write case. Fixes PR libgcj/2338.
72 2001-03-20 Warren Levy <warrenl@redhat.com>
74 * java/util/TimeZone.java: Sync up with Classpath. Includes new
75 and corrected SimpleTimeZone's for the timezones hash table.
77 2001-03-19 Per Bothner <per@bothner.com>
79 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
80 "canonicalize" "../../xxx" to "/xxx".
82 2001-03-19 Mark Wielaard <mark@klomp.org>
84 * java/util/ArrayList.java: Remove RCS keywords from comments
85 * java/util/BasicMapEntry.java: idem
86 * java/util/Dictionary.java: idem
87 * java/util/HashSet.java: idem
89 * java/util/EventObject.java: reindent
90 * java/util/Properties.java: idem
91 * java/util/SortedMap.java: idem
93 * java/util/Enumeration.java: Merge with Classpath
94 * java/util/EventListener.java: idem
95 * java/util/Observable.java: idem
96 * java/util/Observer.java: idem
97 * java/util/Stack.java: idem
99 2001-03-17 Tom Tromey <tromey@redhat.com>
101 * java/lang/natString.cc (rehash): Don't bother with memset;
102 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
104 (UNMASK_PTR): New macro.
105 (intern): Unmask pointer before returning it. Register finalizer
107 (unintern): Handle case where
108 (MASK_PTR): New macro.
109 (PTR_MAKSED): Likewise.
110 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
112 2001-03-01 Andrew Haley <aph@redhat.com>
114 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
115 stackTrace buffer to a correctly aligned pointer array.
117 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
119 * java/lang/Runtime.java (_exit): Declare new package-private native.
120 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
121 without a security manager check.
122 (exit): Call _exit after security check.
123 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
125 * java/lang/System.java (setSecurityManager): If a security manager
126 is already in place, call checkPermission.
127 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
128 throws an exception, try to deal with it gracefully.
129 * java/lang/ExceptionInInitializerError.java (printStackTrace):
130 Only try to print the subordinate stack trace if "exception" is set.
131 Print our class name first.
133 2001-03-08 Tom Tromey <tromey@redhat.com>
135 * java/io/ObjectStreamClass.java (setUID): Don't write interface
136 info for array classes.
137 Fixes PR libgcj/1971.
139 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
141 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
144 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
146 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
147 instead of the new JDK1.2 API. This is simpler and makes
148 back-porting the classes to JDK1.1 trivial.
149 (readObject): likewise.
151 2001-03-01 Per Bothner <per@bothner.com>
153 Changes merged from Kawa's gnu.math.
154 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
155 (rshift(int[],int[],int,int): Removed - not needed.
156 (gcd): Use rshift0 rather than rshift.
157 * java/math/BigInteger.java (setShiftRight): Likewise.
158 (divide): Simplify by using rshift0.
159 (divide): Zero-extend results if high-order bit set.
161 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
163 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
166 2001-02-23 Per Bothner <per@bothner.com>
168 Change to sometimes include class name in ClassFormatError message.
169 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
170 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
171 boolean instead of throwing ClassFormatError on failure.
172 (throw_class_format_error): Change static function to method.
173 (_Jv_ClassReader): New inline methods verify_identifier,
174 two overloads of verify_classname, verify_field_signature, and
175 verify_method_signature
176 * include/java-interp.h: Update declarations to return bool.
177 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
178 ClassFormatError since _Jv_VerifyClassName now returns bool.
180 2001-02-23 Per Bothner <per@bothner.com>
182 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
183 c++filt to select java-style output.
185 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
187 Fix for PR java/2040:
188 * java/util/HashMap.java (HashMap): Don't throw exception for
189 loadFactor > 1. Add exception messages.
190 * java/util/Hashtable.java (Hashtable): Likewise.
192 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
194 Disable libgcjx by default.
195 * configure.in: Add support for --enable-java-awt configure option.
196 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
197 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
198 * Makefile.in: Rebuilt.
199 * configure: Rebuilt.
201 2001-02-20 Tom Tromey <tromey@redhat.com>
203 * java/io/PipedWriter.java (flush): Throw exception if stream
205 * java/io/OutputStreamWriter.java (write): Throw exception if
207 (writeChars): Don't throw exception if stream closed.
208 * java/io/CharArrayWriter.java (closed): New field.
210 (flush): Throw exception if stream closed.
211 (reset): Synchronize on correct lock. Allow stream to be
213 (toCharArray, toString, writeTo): Synchronize.
214 (write): Throwe exception if stream closed.
215 * java/io/BufferedWriter.java (close): Clear `buffer'.
216 (flush): Throw IOException if stream is closed.
219 2001-02-16 Tom Tromey <tromey@cygnus.com>
221 * java/lang/ThreadGroup.java (activeCount): Only include threads
223 (enumerate): Likewise.
225 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
227 * java/lang/Integer.java (getInteger): Return default argument if
228 property is not set. Don't call decode with null argument.
229 * java/lang/Long.java (getLong): Likewise.
231 * java/io/CharArrayReader.java (CharArrayReader): Throw
232 IllegalArgumentException if constructor arguments are illegal.
233 (ready): Return false if no more characters can be read.
234 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
236 2001-02-17 Mark Wielaard <mark@klomp.org>
238 * java/util/TimerTask.java: New version from Classpath.
240 2001-02-17 Mark Wielaard <mark@klomp.org>
242 Remerge with Classpath
243 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
244 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
245 (readByte): Use convertToByte().
246 (readChar): Use convertToChar().
247 (readInt): Use convertToInt().
248 (readLong): Use convertToLong().
249 (readShort): Use convertToShort().
250 (readUnsignedByte): Use convertToUnsignedByte().
251 (readUnsignedShort): Use convertToUnsignedShort().
252 (readUTF): Use convertToUTF().
254 (convertToBoolean): Resurrected.
255 (convertToByte): Ditto.
256 (convertToChar): Ditto.
257 (convertToInt): Ditto.
258 (convertToLong): Ditto.
259 (convertToShort): Ditto.
260 (convertToUnsignedByte): Ditto.
261 (convertToUnsignedShort): Ditto.
262 (convertToUTF): Ditto.
264 2001-02-17 Mark Wielaard <mark@klomp.org>
268 2001-02-17 Mark Wielaard <mark@klomp.org>
270 * java/io/DataInputStream.java: update copyright notice
271 * java/io/PrintWriter.java: idem
272 * java/io/Reader.java: idem
273 * java/io/StreamTokenizer.java: idem
274 * java/io/StringReader.java: idem
275 * java/lang/reflect/ReflectPermission.java: idem
277 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
279 * java/util/TreeSet.java (clone): Made subclass safe, use
280 super.clone(), not new.
281 * java/util/TreeMap.java (clone): Likewise.
283 * java/util/TreeMap.java (nil): Made non-final.
284 (clone): Create new nil node for copy.
286 * java/util/HashSet.java (clone): Made subclass safe, use
287 super.clone(), not new.
289 2001-02-14 Andrew Haley <aph@redhat.com>
291 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
294 2001-02-15 Anthony Green <green@redhat.com>
296 * defineclass.cc: Don't include alloca.h.
297 (prepare_pool_entry): Convert alloca to __builtin_alloca.
298 * interpret.cc (run_normal): Ditto.
300 * java/lang/natDouble.cc (parseDouble): Ditto.
302 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
304 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
306 * java/util/Collections.java (ReverseComparator): New static class.
307 (reverseOrder): Return static instance of ReverseComparator.
309 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
310 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
311 Rectangle.clone(), not Object.clone().
313 * java/util/HashSet.java (clone): Remove try/catch.
315 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
316 * java/util/Collection.java: Likewise.
317 * java/util/Comparator.java: Likewise.
318 * java/util/Dictionary.java: Likewise.
319 * java/util/Iterator.java: Likewise.
320 * java/util/ListIterator.java: Likewise.
321 * java/util/Map.java: Likewise.
322 * java/util/Set.java: Likewise.
324 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
326 * java/util/TreeMap.java: New file.
327 * java/util/TreeSet.java: New file.
328 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
329 * Makefile.in: Rebuilt.
330 * java/util/HashSet.java (clone): Use constructor instead of calling
332 * java/util/SortedSet.java: Sync with classpath.
333 * java/util/HashMap.java (hash): Use if statement instead of ternary,
336 * java/lang/natClass.cc (getSignature): Don't try to dereference
337 param_types if it is null. Instead, take this to mean "no parameters".
338 * java/lang/TreeMap.java (TreeIterator.next): Throw
339 NoSuchElementException in preference to ConcurrentModificationException.
340 (TreeIterator.remove): Throw IllegalStateException in preference to
341 ConcurrentModificationException.
342 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
343 throw a NoSuchElementException.
344 (SubMap.lastKey): Likewise.
346 2001-02-13 Tom Tromey <tromey@redhat.com>
348 * java/io/PipedReader.java (ready): Throw IOException if pipe
350 * java/io/FilterReader.java (close): Don't clear `in'.
351 * java/io/CharArrayReader.java (mark): Throw IOException if stream
353 (read, ready, reset, skip): Added exception message.
354 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
355 Perform checkStatus check inside synchronized block.
357 2001-02-13 Tom Tromey <tromey@redhat.com>
359 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
361 2001-02-13 Tom Tromey <tromey@redhat.com>
363 Fix for PR libgcj/1351:
364 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
366 Include Thread.h and InterruptedIOException.h.
368 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
370 * java/io/BlockDataException.java: Removed.
371 * java/io/ObjectInputStream.java (readObject): Throw
372 StreamCorruptedException, not BlockDataException.
373 * Makefile.am: Remove BlockDataException.
374 * Makefile.in: Rebuild.
376 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
377 Tom Tromey <tromey@redhat.com>
379 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
382 2001-02-09 Tom Tromey <tromey@redhat.com>
384 * java/util/Timer.java: New version from Classpath.
386 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
388 * java/lang/Double.java (doubleToRawLongBits): Now native.
389 * java/lang/Float.java (floatToRawIntBits): Likewise.
390 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
391 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
393 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
395 * java/io/File.java (java.net): Imported.
396 (getAbsoluteFile): Added.
397 (getCanonicalPath): Likewise.
400 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
402 * java/lang/Byte.java: Remove redundant instanceof and null checks.
403 * java/lang/Integer.java: Likewise.
404 * java/lang/Long.java: Likewise.
405 * java/lang/Short.java: Likewise.
406 * java/lang/Double.java: Likewise.
407 (doubleToRawLongBits): New method.
408 * java/lang/Float.java: As above.
409 (floatToRawIntBits): New method.
411 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
412 IOException if stream closed.
414 2001-02-08 Tom Tromey <tromey@redhat.com>
416 * java/lang/Float.java (parseFloat): New method.
418 2001-02-08 Tom Tromey <tromey@redhat.com>
420 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
421 * java/io/InputStreamReader.java (ready, read): Throw IOException
422 if stream has been closed.
424 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
426 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
427 Change sources.redhat.com and sourceware.cygnus.com references to
430 2001-02-07 Tom Tromey <tromey@redhat.com>
432 Fix for PR libgcj/1906:
433 * java/text/MessageFormat.java (setLocale): Use named class
436 (format(Object,StringBuffer,FieldPosition)): Special case if
437 argument is an Object[].
439 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
441 * java/util/Arrays.java: Removed "cmp" methods.
442 (qsort): Don't use "cmp".
445 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
447 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
448 sort. Fix for PR java/1895.
450 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
452 * configure.host: Use sjlj-exceptions for Alpha.
454 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
456 * libgcj.spec.in: Don't force static libgcc into the executable.
457 * configure.in (FORCELIBGCCSPEC): Removed.
458 * configure: Rebuilt.
460 2001-01-31 Tom Tromey <tromey@redhat.com>
462 * Makefile.in: Rebuilt.
463 * Makefile.am (LTCXXCOMPILE): New macro.
465 2001-01-26 Andrew Haley <aph@redhat.com>
467 (INIT_FPE): Use a direct system call to set the handler.
469 2001-01-27 Richard Henderson <rth@redhat.com>
471 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
473 2001-01-27 Tom Tromey <tromey@redhat.com>
475 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
476 native interface structure.
478 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
480 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
482 (read (byte[], int, int)): Only call readNextBlock() if the block
483 buffer would actually be overrun. Increment blockDataPosition.
484 (callReadMethod): Propagate exceptions from invocation target.
485 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
486 exceptions from invocation target.
488 2001-01-26 Tom Tromey <tromey@redhat.com>
490 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
491 to internal representation.
492 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
493 _Jv_FindClassFromSignature.
495 2001-01-26 Warren Levy <warrenl@redhat.com>
497 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
498 and timezone if they are available on the system.
500 2001-01-24 Tom Tromey <tromey@redhat.com>
502 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
504 2001-01-24 Tom Tromey <tromey@redhat.com>
506 * Makefile.in: Rebuilt.
507 * Makefile.am (c_source_files): Added sf_fabs.c.
508 * java/lang/sf_fabs.c: New file.
510 2001-01-19 Warren Levy <warrenl@redhat.com>
512 * java/text/SimpleDateFormat.java (format): Compute hour for cases
513 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
514 correctly. Adjust properly from 0-23 clock hour.
516 2001-01-17 Mark Wielaard <mark@klomp.org>
518 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
520 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
522 * java/lang/Class.h (isInterface): Move implementation from
523 natClass.cc. Declare inline.
524 (Class): Add default constructor.
525 * java/lang/Object.h: Update comments.
526 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
527 initialize superclass, saving a call if super is already initialized.
529 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
531 * prims.cc (init_prim_class): Deleted.
532 (DECLARE_PRIM_TYPE): Rewritten.
533 * java/lang/Class.h (stdio.h): Include removed.
534 (stddef.h): Included.
535 (java/lang/reflect/Modifier.h): Likewise.
536 (Class): Contructor now takes arguments, initializes fields.
537 (initializePrim): Prototype deleted.
538 * java/lang/natClass.cc (initializePrim): Deleted.
540 2001-01-16 Warren Levy <warrenl@redhat.com>
542 * java/math/BigInteger.java: Update Copyright year.
544 2001-01-16 Hans Boehm <hans_boehm@hp.com>
546 * java/math/BigInteger.java (setShiftRight): Only do negative shift
549 2001-01-14 Mark Wielaard <mark@klomp.org>
550 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
551 (decode): Merge comments with Classpath, don't throw Exception
553 2001-01-12 Tom Tromey <tromey@redhat.com>
555 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
559 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
560 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
561 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
562 * gnu/awt/gtk/GtkLabelPeer.java: New file.
563 * gnu/awt/gtk/GtkButtonPeer.java: New file.
565 * java/lang/natSystem.cc: Include locale.h if it exists.
566 * configure: Rebuilt.
567 * configure.in: Check for locale.h.
569 2001-01-11 Tom Tromey <tromey@redhat.com>
571 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
572 (Cursor(int), getPredefinedCursor): Throw exception if argument
575 2001-01-03 Tom Tromey <tromey@redhat.com>
577 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
578 (getLocationOnScreen): Wrote.
580 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
582 * Makefile.am: Re-enable dependencies.
583 * Makefile.in: Rebuilt.
585 2001-01-10 Warren Levy <warrenl@redhat.com>
587 * java/math/BigDecimal.java (divide): Fixed comment.
589 2001-01-10 Warren Levy <warrenl@redhat.com>
591 Fix for PR libgcj/1596:
592 * java/math/BigDecimal.java (divide): Check newScale for validity.
593 Ensure that BigInteger.pow() is called with a non-negative value.
594 (setScale (int)): New public method.
595 (setScale (int,int)): New public method.
597 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
599 Fix for PR libgcj/1338:
600 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
601 commentChar. Fixed typos in comments.
603 2001-01-08 Warren Levy <warrenl@redhat.com>
605 Fix for PR libgcj/1411:
606 * Makefile.am: Removed java/util/natTimeZone.cc.
607 * Makefile.in: Rebuilt.
608 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
609 missing localized timezone names.
610 * java/lang/System.java (getDefaultTimeZoneId): New private method.
611 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
612 (init_properties): Set user.timezone property.
613 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
614 default timezone names; removed non-standard ones. Use standard
616 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
618 * java/util/TimeZone.java: Add standard ID names per JCL; removed
620 (getDefaultTimeZoneId): Removed.
622 * java/util/natTimeZone.cc: Removed.
624 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
626 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
627 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
628 (_Jv_GetArrayClass): New inline function.
629 (arrayclass): New field.
630 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
631 _Jv_GetArrayElementFromElementType.
632 (_Jv_NewPrimArray): Ditto.
633 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
634 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
635 Set Modifier::ABSTRACT.
636 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
637 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
638 Now synchronized. Array classes are now referenced from
639 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
640 Set array classes' accessibility flags correctly. Optimize so that
641 all array classes share the same IDT.
642 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
643 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
644 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
645 in superclasses from overwriting classes own fields.
646 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
647 Modifier::isAbstract().
648 (null_idt): New static field.
649 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
651 (_Jv_IndexOf): Made inline.
652 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
654 2001-01-08 Tom Tromey <tromey@redhat.com>
656 Fix for PR java/1586:
657 * Makefile.in: Rebuilt.
658 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
660 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
662 * Makefile.am: Use the new "-M -MF" option for generating dependencies
663 from the c++ compiler.
664 * Makefile.in: Rebuilt.
666 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
668 All files with updated copyright.
669 * prims.cc (class _Jv_PrimClass): Removed.
670 (init_prim_class): New function.
671 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
672 `_Jv_PrimClass' in primitive type declarations. Assign to the
673 value returned by `init_prim_class.'
674 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
675 primitive type declarations.
676 (JvPrimClass): Cast to `jclass' removed.
677 * java/lang/Class.h (Class): New constructor.
678 (Class): New copy constructor.
679 (initializePrim): New prototype.
680 (_Jv_PrimClass): Field removed.
681 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
682 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
683 (class java::lang::Object): `finalize' moved up front.
684 * java/lang/natClass.cc
685 (isAssignableFrom): Turned outline.
686 (isInstance): Likewise.
687 (isInterface): Likewise, fixed indentation.
688 (initializePrim): New function.
690 2001-01-07 Anthony Green <green@redhat.com>
692 * Makefile.am (texinfo): Add texinfo target for generating texinfo
694 * Makefile.in: Rebuilt.
696 * scripts/TexinfoDoclet.java: New file.
698 * doc/java-applet.texi, doc/java-lang-reflect.texi,
699 doc/java-awt-color.texi, doc/java-lang.texi,
700 doc/java-awt-datatransfer.texi, doc/java-math.texi,
701 doc/java-awt-event.texi, doc/java-net.texi,
702 doc/java-awt-geom.texi, doc/java-security-spec.texi,
703 doc/java-awt-image.texi, doc/java-security.texi,
704 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
705 doc/java-text.texi, doc/java-beans-beancontext.texi,
706 doc/java-util-jar.texi, doc/java-beans.texi,
707 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
708 doc/java-lang-ref.texi: New files.
710 2001-01-07 Anthony Green <green@redhat.com>
712 * java/net/URLConnection.java (setDoOutput): URLConnection's may
713 be used for both input and output, so don't clear doInput.
715 * java/lang/StringBuffer.java: Fix comments.
717 2001-01-06 Anthony Green <green@redhat.com>
719 * java/beans/PropertyDescriptor.java: Fix comment.
720 * java/io/PushbackReader.java: Fix comment.
721 * java/io/ObjectStreamClass.java: Fix comment.
722 * java/io/DataInputStream.java: Fix comment.
723 * java/io/PipedInputStream.java: Fix comments.
724 * java/io/PipedReader.java: Fix comments.
725 * java/sql/DatabaseMetaData.java: Fix comments.
727 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
729 * java/io/PipedReader: Synchronize on "lock" instead of this.
731 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
733 * java/lang/Thread.java: Update comment.
735 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
736 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
737 * java/io/PipedReader: New implementation based on new
739 * java/io/PipedWriter: Updated to match new PipedReader.
741 2001-01-03 Tom Tromey <tromey@redhat.com>
743 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
744 (getViewportSize): Insets include scrollbar size.
745 (doLayout): Finished.
746 (getScrollPosition): Wrote.
747 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
749 2001-01-02 Tom Tromey <tromey@redhat.com>
751 * java/awt/ScrollPane.java: Wrote.
752 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
755 * java/awt/Panel.java (Panel()): Fixed.
757 * java/awt/Component.java (isShowing): Return false if no peer
758 exists, and true if component is visible and no parent exists.
759 (getLocationOnScreen): Wrote.
760 (getPreferredSize): Removed FIXME comment.
761 (getMinimumSize): Likewise.
762 (getAlignmentX, getAlignmentY): Wrote.
764 (requestFocus): Wrote.
765 (transferFocus): Wrote.
766 (findNextFocusComponent): New method.
769 (enableEvents): Call setEventMask on the peer.
771 * java/awt/Container.java (list): Use super.list() to print self.
772 (findNextFocusComponent): New method.
773 (setLayout): Call invalidate.
774 (findComponentAt): Wrote.
776 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
778 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
779 the correct versions of various linuxthreads functions get linked.
780 * Makefile.in: Rebuilt.
781 * java/lang/natThread.cc (finalize_native): New static function. Call
782 _Jv_ThreadDestroyData.
783 (initialize_native): Register finalizer for "data".
784 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
785 (_Jv_ThreadDestroyData): New prototype.
786 * include/win32-threads.h: Ditto.
787 * include/no-threads.h: Ditto.
788 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
789 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
790 move mutex and condition variable destroy code from:
791 (really_start): ...here.
792 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
793 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
794 (_Jv_ThreadDestroyData): Implemented.
795 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
796 (_Jv_AllocArray): Ditto.
798 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
800 * java/sql/DriverManager.java (getConnection): Don't set user/password
803 2000-12-27 Warren Levy <warrenl@redhat.com>
805 Fix for PR libgcj/1358:
806 * java/lang/System.java: Update Copyright date properly.
807 * java/util/Calendar.java: Fix typo in comment.
808 (set): Set 24-hour clock hour instead of 12-hour clock hour.
809 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
810 initialize times. Spec says to set H:M:S values to zero only if
812 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
813 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
814 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
815 timezones and GMT offsets, being careful to account for units of
816 milliseconds vs. seconds.
818 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
820 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
821 not be assigned to Object.
823 Fix for PR libgcj/1516:
824 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
826 (can_widen): Declared inline. Remove redundant checks for void
827 arguments and char->short conversion. Add special case for boolean
829 (ffi_type): Declared inline.
830 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
832 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
834 * java/sql/SQLWarning.java: Fixed typo in comment.
836 2000-12-26 Tom Tromey <tromey@redhat.com>
838 * java/awt/MenuItem.java (paramString): Now protected.
840 * java/awt/MenuShortcut.java: Implements Serializable.
842 * java/awt/MenuBar.java: Rewrote from scratch.
844 * java/awt/MenuComponent.java (removeNotify): Wrote.
845 Implements Serializable.
847 * java/awt/GridBagConstraints.java (GridBagConstraints): New
850 * java/awt/CheckboxMenuItem.java: Wrote.
852 2000-12-25 Tom Tromey <tromey@redhat.com>
854 * java/awt/MenuContainer.java: Fixed typo.
856 * Makefile.in: Rebuilt.
857 * Makefile.am (awt_java_source_files): Added SystemColor.java.
858 * java/awt/SystemColor.java: New file.
860 * java/awt/Color.java (rgba): Now package-private.
862 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
864 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
867 * java/awt/MenuItem.java (addNotify): New method.
868 (MenuItem(String,MenuShortcut)): New constructor.
869 (setLabel): Notify peer of change.
870 (setEnabled): Likewise.
872 * java/awt/GridLayout.java (toString): New method.
874 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
875 (FlowLayout): Check for LEADING and TRAILING.
876 (setAlignment): Likewise.
877 (layoutContainer): Handle component orientation.
879 * java/awt/Component.java (orientatin): New field.
880 (setComponentOrientation): Wrote.
881 (getComponentOrientation): Wrote.
883 * java/awt/Event.java (Event): Implements Serializable.
884 (consumed): New field for serialization.
885 * java/awt/Dimension.java (Dimension): Implements Serializable.
886 * java/awt/Cursor.java (Cursor): Implements Serializable.
887 * java/awt/Container.java (Container): No longer abstract.
889 * java/awt/Choice.java: Wrote.
890 * java/awt/Checkbox.java: Wrote.
891 * java/awt/ItemSelectable.java: Documented.
892 * java/awt/CheckboxGroup.java: Wrote.
894 * java/awt/CardLayout.java (layoutContainer): Directly use fields
898 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
900 * java/io/FileDescriptor.java: Initialize fd to -1.
901 Remove default constructor.
903 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
905 * java/lang/mprec.h: Change C9X reference to refer to C99.
907 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
909 * java/lang/Throwable.java (trace_enabled): New static field.
910 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
911 trace_enabled not set.
912 * prims.cc (main_init): Turn off trace_enabled while creating
913 default exception objects.
915 2000-12-21 Tom Tromey <tromey@redhat.com>
917 * java/beans/PropertyChangeListener.java: Extends EventListener.
918 * java/beans/VetoableChangeListener.java: Extends EventListener.
920 * java/util/zip/Deflater.java (update, init): Now private.
922 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
924 * java/util/BasicMapEntry.java: Re-added.
925 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
926 (putAll): Test for BasicMapEntry.
927 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
928 (putAll): Test for BasicMapEntry.
929 Change references from `HashMap.Entry' to `Entry' in various places.
930 * Makefile.am: Add BasicMapEntry.java.
931 * Makefile.in: Rebuilt.
933 2000-12-18 Warren Levy <warrenl@redhat.com>
935 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
936 need to set timezone to a valid non-null value. Partial fix for
939 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
941 * java/awt/Window.java (addNotify): Remove peer casting hack now that
943 * java/awt/Button.java (addNotify): Likewise.
944 * java/awt/Label.java (addNotify): Likewise.
945 * java/awt/Panel.java (addNotify): Likewise.
946 * java/awt/Scrollbar.java (addNotify): Likewise.
947 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
948 Remove redundant null checks.
950 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
952 * COPYING: Update to current
953 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
954 to 19yy as example year in copyright notice).
956 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
958 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
959 end-of-stream if avail_in is 0.
961 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
963 * java/util/ArrayList.java (data): Declare transient.
964 (serialPersistantFields): Removed.
965 (readObject): Use defaultReadObject(), not readFields().
966 (writeObject): Use defaultWriteObject(), not writeFields().
968 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
970 * java/util/Hashtable.java (put): Remove `last' variable.
971 Link new entry to head of list.
972 * java/util/HashMap.java (put): Ditto.
974 2000-12-15 Tom Tromey <tromey@redhat.com>
976 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
977 loader to Class.forName.
979 2000-12-14 Tom Tromey <tromey@redhat.com>
981 * java/util/ResourceBundle.java
982 (getBundle(String,Locale,ClassLoader)): New method.
983 (trySomeGetBundle): Added `loader' argument.
984 (partialGetBundle): Likewise.
986 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
987 maximumFractionDigits, maximumIntegerDigits,
988 minimumFractionDigits, minimumIntegerDigits): Now
991 * java/lang/Thread.java (checkAccess): Now final.
993 * java/lang/RuntimePermission.java: Class now final.
995 * java/io/StringWriter.java (StringWriter(int)): Now public.
997 * java/io/SerializablePermission.java (legal_names): Now private.
999 * java/lang/Character.java: Updated UnicodeBlock constants.
1000 * scripts/blocks.pl: Special case private use and surrogate
1003 2000-12-12 Tom Tromey <tromey@redhat.com>
1005 * Makefile.in: Rebuilt.
1006 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1008 (GCJCOMPILE): Use it.
1011 2000-12-11 Tom Tromey <tromey@redhat.com>
1013 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1014 New static final fields.
1016 * scripts/classes.pl (scan): Skip lines with leading `*'.
1017 Fix for PR libgcj/378.
1019 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1021 * configure.in: Remove check for -fuse-divide-subroutine.
1022 * configure: Rebuilt.
1024 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1026 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1028 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1030 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1031 Remove BasicMapEntry.java and Bucket.java.
1032 * Makefile.in: Rebuilt.
1033 * java/util/HashMap.java: Rewritten.
1034 * java/util/HashSet.java: Imported from classpath.
1035 * java/util/WeakHashMap.java: Imported from classpath.
1036 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1037 * java/util/Bucket.java: Deleted.
1038 * java/util/BasicMapEntry.java: Deleted.
1039 * java/util/Collections.java (search): Use a for-loop, not iterator
1041 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1042 of elements in source.
1043 (max): Use a for-loop.
1045 (reverse): Keep track of positions instead of using Iterator's
1046 nextIndex() and previousIndex().
1047 (shuffle(List)): Initialize defaultRandom if required using
1048 double-check thread safety idiom. Call two-argument shuffle method
1049 using defaultRandom.
1050 (defaultRandom): New field.
1051 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1052 using previousIndex() and nextIndex().
1053 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1054 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1055 * java/util/AbstractMap.java (toString): Use StringBuffer.
1056 * java/lang/ref/PhantomReference.java: Imported from classpath.
1057 * java/lang/ref/SoftReference.java: Ditto.
1058 * java/lang/ref/Reference.java: Ditto.
1059 * java/lang/ref/WeakReference.java: Ditto.
1060 * java/lang/ref/ReferenceQueue.java: Ditto.
1062 2000-12-10 Richard Henderson <rth@redhat.com>
1064 * configure.host: Recognize alpha*-*, not alphaev6-*.
1066 2000-12-09 Anthony Green <green@redhat.com>
1068 * configure.host: Enable interpreter for Alpha.
1070 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1072 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1073 (ZIP): Points at fastjar instead of zip.
1074 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1075 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1076 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1077 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1078 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1079 ($(x_java_source_files:.java=.class):): Likewise.
1080 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1082 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1083 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1084 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1085 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1086 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1087 gnu/gcj/runtime/VMClassLoader.h:,
1088 java/io/ObjectInputStream$$GetField.h:,
1089 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1090 (Makefile.in): Rebuilt.
1092 2000-12-08 Tom Tromey <tromey@redhat.com>
1095 * configure: Rebuilt.
1096 * configure.in: Use echo, not `:', to create .d files.
1098 2000-12-08 Warren Levy <warrenl@redhat.com>
1100 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1101 NullPointerException so proper check of offset can be done.
1103 2000-12-08 Warren Levy <warrenl@redhat.com>
1105 * java/io/FileInputStream.java (close): Check if the fd is valid.
1106 * java/io/RandomAccessFile.java (close): Ditto.
1107 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1108 * java/net/PlainSocketImpl.java (close): Ditto.
1110 2000-12-06 Tom Tromey <tromey@redhat.com>
1112 * java/awt/GridBagConstraints.java: Filled in values for static
1115 * java/util/BitSet.java: Updated copyright notice.
1117 * Makefile.in: Rebuilt.
1118 * Makefile.am (awt_java_source_files): Added new file.
1119 * java/awt/GridBagConstraints.java: New file.
1121 2000-12-05 Tom Tromey <tromey@redhat.com>
1123 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1124 Now package-private, not protected.
1125 * java/text/DateFormatSymbols.java (equals): Now private.
1126 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1127 * java/util/BitSet.java: Class no longer final.
1129 2000-12-04 Warren Levy <warrenl@redhat.com>
1131 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1132 out code dependent on compiler and library changes.
1134 2000-12-04 Warren Levy <warrenl@redhat.com>
1136 * java/io/FilePermission.java: Made class final per spec.
1137 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1138 method name to match spec (fixed typo).
1139 * java/util/LinkedList.java: Implements List.
1141 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1143 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1144 Edgar Villanueva <edgarvil@home.com>.
1146 2000-12-03 Tom Tromey <tromey@redhat.com>
1148 * java/awt/geom/Point2D.java: Added protected constructor.
1149 (equals): New method.
1150 (Float.setLocation(float,float)): New method.
1151 * java/awt/geom/Dimension2D.java: Added protected constructor.
1152 * java/awt/geom/AffineTransform.java: Made all constants public.
1153 (concatenate): Fixed typo in name.
1154 * java/awt/event/WindowAdapter.java: Class now abstract.
1155 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1156 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1159 * java/awt/AWTError.java: Extend Error, not
1160 IllegalStateException.
1162 * Makefile.in: Rebuilt.
1163 * Makefile.am (awt_java_source_files): Added new file.
1164 * java/awt/geom/RoundRectangle2D.java: New file.
1166 * Makefile.in: Rebuilt.
1167 * Makefile.am (awt_java_source_files): Added new file.
1168 * java/awt/FlowLayout.java: New file.
1170 * Makefile.in: Rebuilt.
1171 * Makefile.am (awt_java_source_files): Added new file.
1172 * java/awt/GridLayout.java: New file.
1174 2000-12-02 Tom Tromey <tromey@redhat.com>
1176 * Makefile.in: Rebuilt.
1177 * Makefile.am (awt_java_source_files): Added new files.
1178 * java/awt/CardLayout.java: New file.
1179 * java/awt/AWTPermission.java: New file.
1181 2000-12-01 Tom Tromey <tromey@redhat.com>
1183 * java/util/Vector.java (insertElementAt): Unconditionally
1184 increment elementCount.
1185 (removeRange): Clear unused slots in vector.
1187 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1189 * java/lang/natMath.cc: Declare fabsf() function.
1190 * java/lang/mprec.h: Don't include math.h.
1191 * java/lang/dtoa.c: Include string.h.
1192 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1195 From Adam Welc <welc@cs.purdue.edu>:
1196 * java/util/LinkedList.java (removeFirst): Update `first' field.
1197 Handle the last == first case.
1198 (removeLast): Update `last' field. Handle the last == first case.
1200 2000-12-01 Warren Levy <warrenl@cygnus.com>
1202 * Makefile.am: Added entries for new java.sql modules.
1203 * Makefile.in: Rebuilt.
1205 2000-12-01 Warren Levy <warrenl@cygnus.com>
1207 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1208 that aren't quite 1.2 compatible yet.
1210 2000-11-30 Warren Levy <warrenl@cygnus.com>
1212 * java/sql/Array.java: New file from classpath.
1213 * java/sql/BatchUpdateException.java: Ditto.
1214 * java/sql/Blob.java: Ditto.
1215 * java/sql/Clob.java: Ditto.
1216 * java/sql/Ref.java: Ditto.
1217 * java/sql/SQLData.java: Ditto.
1218 * java/sql/SQLInput.java: Ditto.
1219 * java/sql/SQLOutput.java: Ditto.
1220 * java/sql/Struct.java: Ditto.
1221 * java/sql/CallableStatement.java: Merged file from claspath.
1222 * java/sql/Connection.java: Ditto.
1223 * java/sql/DataTruncation.java: Ditto.
1224 * java/sql/DatabaseMetaData.java: Ditto.
1225 * java/sql/DriverManager.java: Ditto.
1226 * java/sql/PreparedStatement.java: Ditto.
1227 * java/sql/ResultSet.java: Ditto.
1228 * java/sql/ResultSetMetaData.java: Ditto.
1229 * java/sql/SQLException.java: Ditto.
1230 * java/sql/SQLWarning.java: Ditto.
1231 * java/sql/Statement.java: Ditto.
1232 * java/sql/Types.java: Ditto.
1234 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1236 * java/lang/natSystem.cc (init_properties): Set user.language and
1238 * configure.in: Check for setlocale.
1239 * configure: Rebuilt.
1240 * include/config.h.in: Rebuilt.
1242 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1243 the infate() call didn't deliver any output. Throw a ZipException if
1244 the needsDictionary() call returns true.
1245 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1246 * java/io/InputStreamReader: Use the default buffer size for the
1247 contained BufferedInputStream.
1249 2000-11-28 Warren Levy <warrenl@cygnus.com>
1251 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1252 more time zone entries.
1253 * java/text/SimpleDateFormat.java (format): Added case for
1256 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1258 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1259 directly rather than read() in all cases. Make primitive read
1260 implementations more efficient, as defined in JDK online docs.
1261 (skipBytes): Behave like the JDK's implementation.
1262 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1263 closed stream with checkStatus() whenever an IOException can be
1265 (checkStatus): New private method.
1267 2000-11-27 Warren Levy <warrenl@cygnus.com>
1269 * Makefile.am: Added natTimeZone.cc.
1270 * Makefile.in: Rebuilt.
1271 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1272 * java/text/DateFormatSymbols.java (ampms): Made package private.
1273 (eras): Made package private.
1274 (months): Made package private.
1275 (shortMonths): Made package private.
1276 (shortWeekdays): Made package private.
1277 (weekdays): Made package private.
1278 (formatPrefixes): New private field.
1279 (localPatternCharsDefault): Made private.
1280 (dateFormats): New package private field.
1281 (timeFormats): New package private field.
1282 (formatsForKey): New private method.
1283 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1284 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1285 * java/text/SimpleDateFormat.java: Merged with Classpath.
1286 * java/util/TimeZone.java: Merged with Classpath.
1287 * java/util/natTimeZone.cc: New file.
1289 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1291 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1292 (addElement): Don't increment elementCount twice. Doh.
1293 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1294 array needs to be expanded.
1296 * java/util/Collections.java (UnmodifiableCollection): Implement
1298 (UnmodifiableList): Throw UnsupportedOperationException from
1299 modification methods. Set `l' from the one-parameter constructor.
1300 (UnmodifiableMap): Implement toString().
1301 (SynchronizedCollection): Ditto.
1302 (SynchronizedList): Set `l' from the one-parameter constructor.
1303 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1304 (SynchronizedMap): Implement toString().
1306 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1308 * javax/naming/NameParser.java,
1309 javax/naming/directory/AttributeInUseException.java,
1310 javax/naming/directory/AttributeModificationException.java,
1311 javax/naming/directory/InvalidAttributeIdentifierException.java,
1312 javax/naming/directory/InvalidAttributesException.java,
1313 javax/naming/directory/InvalidAttributeValueException.java,
1314 javax/naming/directory/InvalidSearchControlsException.java,
1315 javax/naming/directory/InvalidSearchFilterException.java,
1316 javax/naming/directory/NoSuchAttributeException.java,
1317 javax/naming/directory/SchemaViolationException.java: New files.
1319 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1321 * javax/naming/InitialContext.java (rebind): Implement.
1322 (unbind): Implement.
1323 (rename): Implement.
1325 (listBindings): Implement.
1326 (destroySubcontext): Implement.
1327 (createSubcontext): Implement.
1328 (lookupLink): Implement.
1329 (getNameParser): Implement.
1330 (composeName): Implement.
1331 (addToEnvironment): Implement.
1333 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1335 * javax/naming/AuthenticationException.java,
1336 javax/naming/AuthenticationNotSupportedException.java,
1337 javax/naming/CannotProceedException.java,
1338 javax/naming/CommunicationException.java,
1339 javax/naming/ConfigurationException.java,
1340 javax/naming/ContextNotEmptyException.java,
1341 javax/naming/InsufficientResourcesException.java,
1342 javax/naming/InterruptedNamingException.java,
1343 javax/naming/InvalidNameException.java,
1344 javax/naming/LimitExceededException.java,
1345 javax/naming/LinkException.java,
1346 javax/naming/LinkLoopException.java,
1347 javax/naming/MalformedLinkException.java,
1348 javax/naming/NameAlreadyBoundException.java,
1349 javax/naming/NameNotFoundException.java,
1350 javax/naming/NamingSecurityException.java,
1351 javax/naming/NoPermissionException.java,
1352 javax/naming/NotContextException.java,
1353 javax/naming/PartialResultException.java,
1354 javax/naming/ReferralException.java,
1355 javax/naming/ServiceUnavailableException.java,
1356 javax/naming/SizeLimitExceededException.java,
1357 javax/naming/TimeLimitExceededException.java: New files.
1359 * javax/naming/Name.java (clone): New method.
1360 (compareTo): New method.
1361 (isEmpty): New method.
1362 (getAll): New method.
1363 (getPrefix): New method.
1364 (getSuffix): New method.
1365 (startsWith): New method.
1366 (endsWith): New method.
1367 (addAll): New method.
1368 (addAll): New method.
1371 (remove): New method.
1373 * javax/naming/Context.java (lookup): New method.
1374 (rebind): New method.
1375 (unbind): New method.
1376 (rename): New method.
1378 (listBindings): New method.
1379 (destroySubcontext): New method.
1380 (createSubcontext): New method.
1381 (lookupLink): New method.
1382 (getNameParser): New method.
1383 (composeName): New method.
1384 (addToEnvironment): New method.
1385 (removeFromEnvironment): New method.
1386 (getEnvironment): New method.
1387 (close): New method.
1388 (getNameInNamespace): New method.
1390 * javax/naming/InitialContext.java (lookup): New method.
1391 (rebind): New method.
1392 (unbind): New method.
1393 (rename): New method.
1395 (listBindings): New method.
1396 (destroySubcontext): New method.
1397 (createSubcontext): New method.
1398 (lookupLink): New method.
1399 (getNameParser): New method.
1400 (composeName): New method.
1401 (addToEnvironment): New method.
1402 (removeFromEnvironment): New method.
1403 (getEnvironment): New method.
1404 (close): New method.
1405 (getNameInNamespace): New method.
1407 2000-11-26 Tom Tromey <tromey@cygnus.com>
1409 * Makefile.in: Rebuilt.
1410 * Makefile.am (core_java_source_files): Added
1411 RuntimePermission.java.
1412 * java/lang/RuntimePermission.java: Imported from Classpath.
1413 * java/lang/Thread.java (getContextClassLoader): Now
1414 synchronized. Added security code.
1415 (setContextClassLoader): Likewise.
1417 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1418 length field of array.
1419 (_Jv_NewPrimArray): Likewise.
1420 * gcj/array.h (__JArray): `length' field now const. Added
1423 2000-11-26 Anthony Green <green@redhat.com>
1425 * javax/naming/spi/NamingManager.java,
1426 javax/naming/spi/ObjectFactory.java,
1427 javax/naming/spi/InitialContextFactory.java,
1428 javax/naming/spi/InitialContextFactoryBuilder.java,
1429 javax/naming/RefAddr.java, javax/naming/Reference.java,
1430 javax/naming/NamingException.java, javax/naming/Context.java,
1431 javax/naming/Referenceable.java,
1432 javax/naming/directory/InitialDirContext.java,
1433 javax/naming/directory/DirContext.java,
1434 javax/naming/directory/Attributes.java,
1435 javax/naming/directory/Attribute.java,
1436 javax/naming/StringRefAddr.java,
1437 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1438 javax/naming/InitialContext.java,
1439 javax/naming/NoInitialContextException.java: New files.
1441 2000-11-25 Anthony Green <green@redhat.com>
1443 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1444 (_Jv_NewPrimArray): Likewise.
1445 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1446 (class JArray): Removed constructor.
1448 * java/lang/Thread.java (context_class_loader): New private data.
1449 (getContextClassLoader): New method.
1450 (setContextClassLoader): New method.
1451 (Thread): Initialize context_class_loader.
1453 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1454 (getResource): Rename to findResource.
1455 (findResource): New method. Used to be getResource.
1456 (getResourceAsStream): Deleted.
1457 (jarFileize): Extracted logic from URLClassLoader constructor into
1458 this new private method.
1459 (addURL): New protected method.
1460 (URLClassLoader): Call jarFileize. Use addElement instead of
1462 (findResources): New method.
1464 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1465 (getResource): Implement correct logic.
1466 (findResource): New method.
1467 (getResources): New method.
1468 (findClass): Create a ClassNotFoundException with the name of the
1469 class rather than nothing at all.
1470 (defineClass) Only throw ClassFormatError.
1472 * java/lang/Class.java (forName): New method.
1473 * java/lang/Class.h (forName): New method.
1474 * java/lang/natClass.cc (forName): New method.
1476 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1478 * java/lang/System.java (setProperties): Only call init_properties()
1479 if properties is null.
1480 (getProperties): Ditto.
1481 (getProperty): Ditto.
1482 (setProperty): Call init_properties if properties are null.
1483 (prop_init): Remove field.
1484 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1485 method. Check for null properties after synchronizing instead of
1486 prop_init flag. Set the properties field last for thread safety.
1488 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1489 test for gcj.dumpobjects property and enable object stream dumping
1491 (dumpElement): No longer native.
1492 (dumpElementln): Ditto.
1493 (setDump): Do not define.
1494 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1495 (dumpElementln): Removed.
1498 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1500 * configure: Rebuilt.
1501 * Makefile.in: Rebuilt.
1502 * Makefile.am (built_java_source_files): Add Configuration.java.
1503 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1504 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1505 Create `gnu' directory in the build tree.
1506 * gnu/classpath/Configuration.java.in: New file.
1508 2000-11-24 Tom Tromey <tromey@cygnus.com>
1510 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1512 (_Jv_NewPrimArray): Likewise.
1514 * gcj/array.h (__JArray): `length' field now const. Added
1516 (class JArray): Added constructor.
1518 2000-11-23 Mark Wielaard <mark@klomp.org>
1520 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1523 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1525 * java/util/Vector.java: Improve exception messages.
1526 (Vector): Check initialCapacity for IllegalArgumentException.
1527 (tromToSize): Don't check for elementCount == elementData.length
1529 (toArray): Don't try to set null marker if target array is the same
1530 length as the vector.
1532 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1534 * Makefile.in: Rebuilt.
1535 * Makefile.am (core_java_source_files): Added Collections.java.
1536 * java/util/List.java: Merged from classpath.
1537 * java/util/Vector.java: Ditto.
1538 * java/util/Collections.java: From classpath.
1539 * java/util/ArrayList.java (addAll(Collection)): Call
1540 addAll(int,Collection) instead of duplicating code.
1541 (indexOf): Clean up int initialization.
1542 (clear): Set cleared array entries to null, to allow garbage
1544 * java/util/List.java: Minor formatting fixes.
1545 * java/util/SimpleTimeZone.java: ditto.
1547 2000-11-18 Tom Tromey <tromey@cygnus.com>
1549 * Makefile.in: Rebuilt.
1550 * Makefile.am (core_java_source_files): Added new files.
1551 * java/lang/reflect/ReflectPermission.java: New class.
1552 * java/io/FileFilter.java: From Classpath
1553 * java/io/FilePermission.java: From Classpath.
1555 2000-11-17 Tom Tromey <tromey@cygnus.com>
1557 * java/lang/reflect/AccessibleObject.java (isAccessible,
1558 setAccessible): Now public.
1560 * java/lang/natString.cc: Include Locale.h.
1561 (toUpperCase): Added `locale' argument. Handle locale
1563 (toLowerCase): Added `locale' argument. Handle locale
1565 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1566 CAPITAL_I): New defines.
1567 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1570 (toUpperCase, toLowerCase): New methods. Variants which accept
1573 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1576 * java/util/PropertyPermission.java: Re-merged from Classpath.
1578 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1580 * java/text/StringCharacterIterator.java: Reindented.
1581 (setText): New method.
1583 2000-11-17 Mark Wielaard <mark@klomp.org>
1585 Merge with Classpath (changes by Bryce McKinlay)
1586 * java/util/jar/*.java: Reformat all to unofficial standard coding
1587 style. No changes of substance.
1589 2000-11-17 Mark Wielaard <mark@klomp.org>
1591 * java/util/zip/*.java: Javadoc updates.
1593 2000-11-17 Tom Tromey <tromey@cygnus.com>
1595 * java/text/CollationKey.java: Implement Comparable.
1596 (compareTo(Object)): New method.
1597 * java/text/Collator.java (compare(Object,Object)): New method.
1598 Implement Comparator.
1600 * java/util/zip/InflaterInputStream.java (available): New method.
1601 (close): New method.
1602 (read, available, skip, fill): Throw exception if stream closed.
1603 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1604 getNextEntry): Throw exception if closed.
1606 2000-11-16 Tom Tromey <tromey@cygnus.com>
1608 * java/io/PushbackReader.java: Merged with Classpath.
1609 * java/util/Arrays.java: Updated from Classpath.
1611 * scripts/blocks.pl: New file.
1612 * java/lang/Character.java (Subset): New class.
1613 (UnicodeBlock): New class.
1615 * java/lang/Math.java (toDegrees, toRadians): New methods.
1617 * java/lang/Float.java: Implement Comparable.
1618 (compareTo): New methods.
1619 * java/lang/Double.java: Implement Comparable.
1620 (compareTo): New methods.
1622 2000-11-16 Warren Levy <warrenl@cygnus.com>
1624 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1626 (listeners): Made transient.
1627 (source): Renamed from 'bean'.
1628 (children): New field for serialization.
1629 (propertyChangeSupportSerializedDataVersion): Ditto.
1630 (serialVersionUID): Ditto.
1631 (writeObject): New serialization method.
1632 (readObject): New serialization method.
1633 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1635 (listeners): Made transient.
1636 (source): Renamed from 'bean'.
1637 (children): New field for serialization.
1638 (vetoableChangeSupportSerializedDataVersion): Ditto.
1639 (serialVersionUID): Ditto.
1640 (writeObject): New serialization method.
1641 (readObject): New serialization method.
1642 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1643 to allow constructor to have a return type (i.e. the class that the
1644 constructor constructs).
1646 2000-11-14 Tom Tromey <tromey@cygnus.com>
1648 * Makefile.in: Rebuilt.
1649 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1652 2000-11-02 Warren Levy <warrenl@cygnus.com>
1654 * java/io/ObjectInputStream.java (readObject): Added code to
1655 conditionally dump out the serialized data.
1656 Handle ENDBLOCKDATA case a bit more gracefully since the current
1657 behavior doesn't seem to work as expected.
1658 (readStreamHeader): Added code for serialized data dumper.
1659 (readNextBlock): Ditto.
1660 (readFields): Ditto.
1661 (dump): New private static field for turning on/off dumper.
1662 (setDump): New native method.
1663 (dumpElement): New native method.
1664 (dumpElementln): New native method.
1665 * java/io/natObjectInputStream.cc (setDump): New method.
1666 (dumpElement): New method.
1667 (dumpElementln): New method.
1669 2000-11-02 Warren Levy <warrenl@cygnus.com>
1671 * java/net/InetAddress.java (addr): Renamed from 'address'.
1672 (address): New field to match Serialized Form doc.
1673 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1674 (family): New serialization field.
1675 (serialVersionUID): New field.
1676 (readObject): New method.
1677 (writeObject): New method.
1678 (getFamily): New native method.
1679 (InetAddress): Set family.
1680 * java/net/natInetAddress.cc (getFamily): New method.
1681 (addr): Renamed from 'address'.
1682 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1683 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1684 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1686 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1688 * java/util/AbstractList.java (SubList): Make it a top-level private
1690 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1692 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1693 * Makefile.in: Rebuilt.
1695 2000-11-02 Tom Tromey <tromey@cygnus.com>
1697 * Makefile.in: Rebuilt.
1698 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1701 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1703 * java/util/AbstractList.java (remove): Comment out modCount increment
1704 to work around compiler bug.
1707 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1709 * java/util/AbstractList.java: Throw messages with
1710 IndexOutOfBoundsExceptions.
1711 (listIterator()): Call listIterator(0).
1712 (size): New field. Initialize to size().
1713 (hasNext): Test position against size, not size().
1714 (remove): Increment knownMod by one instead of resetting it from
1717 (SubList.upMod): Removed.
1718 (SubList.set): Don't call upMod() or update knownMod.
1719 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1720 (SubList.remove): Ditto.
1721 (SubList.addAll): Don't call backingList.size(). Increment size from
1723 (SubList.iterator): New method. Call listIterator(0).
1724 (SubList.listIterator): New method. Restore code to return an anonymous
1725 listIterator implementation (with some changes).
1726 * java/util/AbstractSequentialList.java: Throw messages with
1727 IndexOutOfBoundsExceptions.
1728 (addAll): Add a specnote.
1729 * java/util/ArrayList.java (removeRange): Get the math right.
1730 (addAll): Increment modCount _before_ creating iterator.
1731 * java/util/LinkedList.java: Rewritten, mostly.
1733 2000-11-01 Tom Tromey <tromey@cygnus.com>
1735 * scripts/encodings.pl: Added `ASCII' alias.
1736 * Makefile.in: Rebuilt.
1737 * Makefile.am (convert_source_files): Added new files.
1738 * gnu/gcj/convert/Input_ASCII.java: New file.
1739 * gnu/gcj/convert/Output_ASCII.java: New file.
1740 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1741 out-of-range characters.
1742 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1743 (read): Swap bytes if required. Treat `count' as character count,
1745 (write): Likewise. Also, handle case where iconv fails on a given
1747 (init): Put encoding into exception.
1748 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1749 (static): Call iconv_init. Rebuilt alias list.
1750 (iconv_init): New private method.
1752 2000-11-01 Tom Tromey <tromey@cygnus.com>
1754 * Makefile.in: Rebuilt.
1755 * Makefile.am (install-exec-hook): Only make a single symlink, and
1756 remove the destination before making the link.
1757 * configure: Rebuilt.
1758 * configure.in: Call AC_PROG_LN_S.
1760 2000-10-31 Warren Levy <warrenl@cygnus.com>
1762 * jni.cc: Added include of java/lang/ThreadGroup.h.
1763 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1764 per change of 2000-10-05.
1766 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1768 * java/util/BitSet.java: Updated @specnote.
1770 * java/io/Reader.java: Merge docs from classpath.
1771 (skip): Synchronize on `lock'.
1772 * java/io/FileReader.java: Import correct implementation from
1774 * java/io/StringReader.java: Merge docs from classpath.
1775 (ready): Throw IOException if stream is closed.
1777 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1779 * java/util/AbstractCollection.java (addAll): Use size() instead of
1780 hasNext() in iterator loop.
1782 (contains): Ditto. Simplify loop.
1783 (containsAll): Ditto.
1788 (toString): Ditto. Use string concatenation operators, not
1790 * java/util/AbstractList.java (addAll): Use size() instead of
1791 hasNext() in iterator loop.
1794 (indexOf): Ditto. Don't take null check outside of the loop.
1795 (iterator): Return an AbstractListItr instead of anonymous class.
1796 (lastIndexOf): Use a for loop bounded by size() instead of
1797 hasPrevious() in iterator loop.
1798 (listIterator): Return an AbstractListItr.
1799 (removeRange): Remove bounds checking code and docs.
1800 (AbstractListItr): New inner class. Code moved here from
1802 (SubList.iterator): Removed. Use default implementation from
1803 AbstractList instead.
1804 (SubList.listIterator): As above.
1805 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1806 instead of hasNext() in iterator loop.
1807 (containsValue): Ditto.
1813 (toString): Ditto. Use string concatenation operators, not
1815 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1816 bounded by size() instead of hasNext() in iterator loop.
1817 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1818 part of normal execution flow. Do an explicit null check instead.
1819 * java/util/ArrayList.java (_iSize): Rename to `size'.
1820 (_arData): Rename to `data'.
1821 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1824 (removeRange): Make protected. Don't check bounds.
1825 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1827 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1829 (addAll (int, Collection)): Check lower bounds. Simplify exception
1831 (clone): Clone the data array too.
1832 (indexOf): Inline doesEqual().
1833 (lastIndexOf): Ditto.
1834 (clear): Don't set array data to null.
1835 (set): Check lower bounds. Simplify exception string.
1836 (toArray): Correct comment.
1837 (trimToSize): Don't update modCount, this is not a structural change.
1840 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1842 (toString): Declare `bit' as long, not int.
1843 (data): Made package-private, not private.
1845 2000-10-27 Warren Levy <warrenl@cygnus.com>
1847 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1848 array elements to true.
1850 2000-10-27 Warren Levy <warrenl@cygnus.com>
1852 * Makefile.am: Added locale files from Classpath.
1853 * Makefile.in: Rebuilt.
1854 * gnu/java/locale/Calendar.java: New file.
1855 * gnu/java/locale/Calendar_de.java: New file.
1856 * gnu/java/locale/Calendar_en.java: New file.
1857 * gnu/java/locale/Calendar_nl.java: New file.
1858 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1859 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1860 serialization compatibility.
1861 (scale): Made private.
1862 (serialVersionUID): New field.
1863 * java/math/BigInteger.java (ival): Made transient.
1864 (words): Made transient.
1865 (bitCount): New serialization field.
1867 (firstNonzeroByteNum): Ditto.
1868 (lowestSetBit): Ditto.
1871 (serialVersionUID): New field.
1872 (readObject): New method.
1873 (writeObject): New method.
1874 * java/util/BitSet.java (serialVersionUID): New field.
1875 * java/util/Calendar.java: Replaced with Classpath file.
1876 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1877 of getDefault() for TimeZone or Locale instead of passing nulls.
1878 * java/util/Locale.java (serialVersionUID): New field.
1879 (writeObject): New method.
1880 (readObject): New method.
1881 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1883 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1885 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1886 (core_java_source_files): Put java.lang, java.io, and java.util here.
1887 (ordinary_java_source_files): Order so that core_java_source_files are
1889 (java_source_files): Reorder so that special_java_source_files are
1891 * configure.in: Don't pass -I flag to gcj.
1892 * Makefile.in: Rebuilt.
1893 * configure: Rebuilt.
1895 2000-10-25 Tom Tromey <tromey@cygnus.com>
1897 * Makefile.in: Rebuilt.
1898 * Makefile.am (install-exec-hook): New target.
1900 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1902 * java/util/EventObject.java: Merged from classpath.
1904 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1907 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1909 * java/util/AbstractSet.java (equals): Re-installed original code.
1911 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1913 * Makefile.am: Added rules for libgcjx library.
1914 * Makefile.in: Rebuilt.
1915 * configure.in: Added check for X.
1916 * configure: Rebuilt.
1917 * gnu/awt/LightweightRedirector.java: New file.
1918 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1919 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1920 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1921 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1922 * gnu/awt/j2d/MappedRaster.java: New file.
1923 * gnu/awt/xlib/XCanvasPeer.java: New file.
1924 * gnu/awt/xlib/XEventLoop.java: New file.
1925 * gnu/awt/xlib/XEventQueue.java: New file.
1926 * gnu/awt/xlib/XFontMetrics.java: New file.
1927 * gnu/awt/xlib/XFramePeer.java: New file.
1928 * gnu/awt/xlib/XGraphics.java: New file.
1929 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1930 * gnu/awt/xlib/XPanelPeer.java: New file.
1931 * gnu/awt/xlib/XToolkit.java: New file.
1932 * gnu/gcj/xlib/Clip.java: New file.
1933 * gnu/gcj/xlib/Colormap.java: New file.
1934 * gnu/gcj/xlib/Display.java: New file.
1935 * gnu/gcj/xlib/Drawable.java: New file.
1936 * gnu/gcj/xlib/Font.java: New file.
1937 * gnu/gcj/xlib/GC.java: New file.
1938 * gnu/gcj/xlib/Pixmap.java: New file.
1939 * gnu/gcj/xlib/Screen.java: New file.
1940 * gnu/gcj/xlib/Visual.java: New file.
1941 * gnu/gcj/xlib/WMSizeHints.java: New file.
1942 * gnu/gcj/xlib/Window.java: New file.
1943 * gnu/gcj/xlib/WindowAttributes.java: New file.
1944 * gnu/gcj/xlib/XAnyEvent.java: New file.
1945 * gnu/gcj/xlib/XButtonEvent.java: New file.
1946 * gnu/gcj/xlib/XColor.java: New file.
1947 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1948 * gnu/gcj/xlib/XConnectException.java: New file.
1949 * gnu/gcj/xlib/XEvent.java: New file.
1950 * gnu/gcj/xlib/XException.java: New file.
1951 * gnu/gcj/xlib/XExposeEvent.java: New file.
1952 * gnu/gcj/xlib/XID.java: New file.
1953 * gnu/gcj/xlib/XImage.java: New file.
1954 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1955 * gnu/gcj/xlib/natClip.cc: New file.
1956 * gnu/gcj/xlib/natColormap.cc: New file.
1957 * gnu/gcj/xlib/natDisplay.cc: New file.
1958 * gnu/gcj/xlib/natDrawable.cc: New file.
1959 * gnu/gcj/xlib/natFont.cc: New file.
1960 * gnu/gcj/xlib/natGC.cc: New file.
1961 * gnu/gcj/xlib/natPixmap.cc: New file.
1962 * gnu/gcj/xlib/natScreen.cc: New file.
1963 * gnu/gcj/xlib/natVisual.cc: New file.
1964 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1965 * gnu/gcj/xlib/natWindow.cc: New file.
1966 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1967 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1968 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1969 * gnu/gcj/xlib/natXColor.cc: New file.
1970 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1971 * gnu/gcj/xlib/natXException.cc: New file.
1972 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1973 * gnu/gcj/xlib/natXImage.cc: New file.
1974 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1975 * java/awt/EventDispatchThread.java: Start thead on creation.
1977 2000-10-20 Tom Tromey <tromey@cygnus.com>
1979 From Arno J. Klaassen:
1980 * interpret.cc: Include <stdlib.h> for alloca.
1981 * defineclass.cc: Include <stdlib.h> for alloca.
1983 * Makefile.in: Rebuilt.
1984 * Makefile.am: Include deps.mk.
1985 (GCJCOMPILE): Added -MD, -MT, and -MF.
1986 ($(javao_files)): Don't depend on libgcj.zip.
1987 (all-recursive): New target.
1988 (%.lo:%.cc): Do dependency tracking.
1989 ($(nat_headers)): Don't depend on libgcj.zip.
1990 * configure: Rebuilt.
1991 * configure.in: Make .d files and deps.mk.
1993 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1995 * exception.cc: Don't #include "exception".
1996 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1998 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1999 * Makefile.in: Updated.
2001 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
2003 * java/awt/peer/ChoicePeer.java (addItem): Removed.
2004 * java/awt/peer/ComponentPeer.java (disable): Removed.
2007 (minimumSize): Removed.
2008 (preferredSize): Removed.
2011 * java/awt/peer/ListPeer.java (addItem): Removed.
2013 (minimumSize): Removed.
2014 (preferredSize): Removed.
2015 (setMultipleSelections): Removed.
2016 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2017 (remove): Renamed from removeMenu.
2018 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2020 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2021 (remove): Renamed from removeItem.
2022 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2023 (getMinimumSize): Removed.
2024 (getPreferredSize): Removed.
2025 (minimumSize): Removed.
2026 (preferredSize): Removed.
2027 (replaceText): Removed.
2028 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2029 (preferredSize): Removed.
2030 (getMinimumSize): Removed.
2031 (getPreferredSize): Removed.
2032 (setEchoCharacter): Removed.
2034 2000-10-10 Warren Levy <warrenl@cygnus.com>
2036 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2037 * java/sql/Date.java (serialVersionUID): New field.
2038 * java/sql/Time.java (serialVersionUID): New field.
2039 * java/sql/Timestamp.java (serialVersionUID): New field.
2040 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2041 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2042 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2043 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2044 (readObject): New serialization method.
2045 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2046 (serialVersionOnStream): New field.
2047 (readObject): New serialization method.
2048 (getMonetaryDecimalSeparator): New method.
2049 (setMonetaryDecimalSeparator): New method.
2050 * java/text/NumberFormat.java (maxFractionDigits): New field.
2051 (maxIntegerDigits): New field.
2052 (minFractionDigits): New field.
2053 (minIntegerDigits): New field.
2054 (serialVersionOnStream): New field.
2055 (serialVersionUID): New field.
2056 (readObject): New serialization method.
2057 (writeObject): New serialization method.
2058 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2059 (serialVersionOnStream): New field.
2060 (serialVersionUID): New field.
2061 (readObject): New serialization method.
2063 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2065 * configure.in (GCJ): Avoid bogus error message when looking for
2066 (and not finding) gcj in the build tree.
2067 * configure: Rebuilt.
2069 2000-10-09 Tom Tromey <tromey@cygnus.com>
2071 * configure: Rebuilt.
2072 * configure.in: Include sys/types.h when checking for socklen_t.
2073 From Arno J. Klaassen.
2075 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2077 * include/jvm.h: Enable __builtin_expect().
2079 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2080 the main program. Fix for PR libgcj/341.
2082 2000-10-07 Tom Tromey <tromey@cygnus.com>
2084 * java/util/Properties.java: Merged with Classpath version.
2086 2000-10-05 Tom Tromey <tromey@cygnus.com>
2088 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2089 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2090 * java/lang/Class.h (Object): Added `class$' field.
2091 * java/lang/Object.h (Object): Added `class$' field.
2092 * defineclass.cc (ClassClass): Use `class$' form.
2093 (ClassObject): Likewise.
2094 * resolve.cc (ClassObject): Use `class$' form.
2095 (ObjectClass): Likewise.
2096 * interpret.cc (ClassError): Removed.
2097 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2099 (IntegerClass): Likewise.
2100 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2102 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2103 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2104 SerializableClass): Likewise.
2105 Include Serializable.h, Cloneable.h.
2106 * java/lang/natSystem.cc (SystemClass): Removed.
2107 (init_properties): Use `class$' form.
2108 * java/lang/natObject.cc (CloneableClass): Removed.
2109 (clone): Use `class$' form.
2110 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2111 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2112 ConstructorClass): Likewise.
2113 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2114 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2115 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2116 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2118 (ClassClass): Likewise.
2119 * include/jvm.h (StringClass): Use `class$' form.
2120 * prims.cc (ObjectClass): Removed.
2121 (_Jv_RunMain): Use `class$' form.
2122 (_Jv_AllocObject): Likewise.
2123 * jni.cc (ClassClass): Use `class$' form.
2124 (ThrowableClass): Likewise.
2125 (ObjectClass): Likewise.
2126 (MethodClass): Likewise.
2127 (ThreadGroupClass): Likewise.
2128 (NativeThreadClass): Likewise.
2129 * boehm.cc (ObjectClass): Removed.
2130 (ClassClass): Removed.
2131 (_Jv_MarkObj): Use `class$' form.
2132 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2135 2000-10-05 Warren Levy <warrenl@cygnus.com>
2137 * Makefile.am: Removed java/io/Replaceable.java and
2138 java/io/Resolvable.java.
2139 * Makefile.in: Rebuilt.
2140 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2142 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2144 (processResolution): Handle readResolve method via reflection with
2145 removal of Resolvable interface.
2146 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2147 method via reflection with removal of Replaceable interface.
2148 * java/io/Replaceable.java: Removed.
2149 * java/io/Resolvable.java: Removed.
2150 * java/security/Key.java (serialVersionUID): New field.
2151 * java/security/Provider.java (serialVersionUID): New field.
2152 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2154 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2156 * java/sql/DataTruncation.java (serialVersionUID): New field.
2157 * java/sql/SQLException.java (serialVersionUID): New field.
2158 * java/sql/SQLWarning.java (serialVersionUID): New field.
2159 * java/util/Date.java (serialVersionUID): New field.
2160 (millis): Made transient.
2161 (readObject): New method.
2162 (writeObject): New method.
2164 2000-10-05 Tom Tromey <tromey@cygnus.com>
2166 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2168 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2170 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2171 (JvRunMain): Set _Jv_argv and _Jv_argc.
2172 * java/awt/Component.java: Minor fixes.
2173 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2174 * java/awt/Toolkit.java (systemEventQueue): Removed.
2175 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2176 * java/awt/Window.java (getToolkit): Don't call super.
2177 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2178 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2179 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2180 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2181 * gnu/awt/gtk/GtkFramePeer.java: New file.
2182 * gnu/awt/gtk/GtkMainThread.java: New file.
2183 * gnu/awt/gtk/GtkToolkit.java: New file.
2184 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2185 * gnu/awt/gtk/gtkcommon.cc: New file.
2186 * gnu/awt/gtk/gtkcommon.h: New file.
2187 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2188 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2189 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2190 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2191 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2192 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2194 2000-09-30 Tom Tromey <tromey@cygnus.com>
2196 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2197 interrupted before modifying the cv's wait set.
2200 2000-09-30 Hans Boehm <boehm@acm.org>
2201 Bryce McKinlay <bryce@albatross.co.nz>
2203 Implement bitmap descriptor based marking for Boehm GC.
2205 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2206 * configure: Rebuilt.
2207 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2208 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2209 method get_finalizer().
2210 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2211 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2212 (_Jv_AllocObj): Add new jclass parameter.
2213 (_Jv_AllocArray): Ditto.
2214 (_Jv_BuildGCDescr): New prototype.
2215 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2216 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2217 get_finalizer() instead of direct finalizer vtable offset.
2218 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2219 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2220 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2221 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2222 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2223 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2224 (_Jv_DetermineVTableIndex): Ditto.
2225 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2226 calculations to account for new gc_descr field.
2227 * boehm.cc: #include gc_gcj.h.
2228 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2229 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2230 New commentary from HB. Mark the classes vtable.
2231 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2232 (GC_DEFAULT_DESCR): New #define.
2233 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2234 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2235 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2236 scan conservativly if size is less than min_heap_addr. Set vtable
2237 pointer of new object before returning.
2238 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2239 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2240 allocation for obj_kind_x.
2241 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2242 (_Jv_AllocObj): Set vtable on returned object.
2243 (_Jv_AllocArray): Ditto.
2244 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2245 (_Jv_NewPrimArray): Ditto.
2246 (_Jv_AllocObj): Declare as a friend.
2247 (_Jv_AllocArray): Ditto.
2248 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2249 from &ObjectClass into new array class. Remove offset-by-one
2250 adjustments from `method' size calculations to account for gc_descr
2253 2000-09-26 Tom Tromey <tromey@cygnus.com>
2255 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2256 `remove', not `add'.
2258 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2260 * java/lang/natSystem.cc (file_encoding): Added return statement.
2262 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2264 * Makefile.am: Re-work shell commands that exceeded command-line
2266 * Makefile.in: Rebuilt.
2268 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2270 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2271 * java/lang/natDouble.cc: Likewise.
2272 * java/lang/reflect/natMethod.cc: Likewise.
2273 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2275 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2277 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2279 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2280 * acinclude.m4: Arrange for automake to not bring in a new
2281 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2282 * Makefile.am: Leave it up to automake to subst GCJ.
2283 * aclocal.m4, configure, Makefile.in: Rebuilt.
2285 2000-09-13 Tom Tromey <tromey@cygnus.com>
2287 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2288 (get): Ensure Boolean class is initialized.
2289 * java/lang/reflect/natField.cc (BooleanClass): New define.
2290 (get): Ensure Boolean class is initialized.
2292 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2294 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2295 Initialize with anonymous class.
2296 (compareToIgnoreCase): New method.
2298 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2299 (uncaughtException): Set had_uncaught_exception.
2300 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2301 exit with error status if set.
2302 (_Jv_RunMain): Ditto.
2304 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2306 * configure: Rebuilt with new ../libtool.m4.
2308 2000-09-11 Tom Tromey <tromey@cygnus.com>
2310 * java/lang/reflect/Field.java (toString): Don't rely on
2313 2000-09-08 Tom Tromey <tromey@cygnus.com>
2315 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2316 default decoder use iconv.
2317 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2318 Let default encoder use iconv.
2319 * configure: Rebuilt.
2320 * configure.in: Check for nl_langinfo and <langinfo.h>.
2321 * java/lang/natSystem.cc (file_encoding): New function.
2322 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2324 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2326 * acinclude.m4: Simplify the tests for CC and CXX.
2327 * aclocal.m4, configure: Rebuilt.
2329 * acinclude.m4: Include libtool macros from the source tree.
2330 * aclocal.m4, configure: Rebuilt.
2332 2000-09-08 Warren Levy <warrenl@cygnus.com>
2334 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2335 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2336 * java/io/File.java (writeObject): Added.
2337 (readObject): Added.
2338 (serialVersionUID): Added.
2339 * java/io/ObjectOutputStream.java (writeObject): Initialized
2340 fieldsAlreadyWritten before recursion rather than after.
2341 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2342 * java/io/OptionalDataException.java (serialVersionUID): Added.
2343 (OptionalDataException): Made package private.
2344 * java/io/SyncFailedException.java (SyncFailedException): Removed
2345 default constructor to match spec.
2346 * java/lang/Boolean.java (serialVersionUID): Added.
2347 * java/lang/Byte.java (serialVersionUID): Added.
2348 * java/lang/Character.java (serialVersionUID): Added.
2349 * java/lang/Double.java (serialVersionUID): Added.
2350 * java/lang/Float.java (serialVersionUID): Added.
2351 * java/lang/Integer.java (serialVersionUID): Added.
2352 * java/lang/Long.java (serialVersionUID): Added.
2353 * java/lang/Number.java (serialVersionUID): Added.
2354 * java/lang/Short.java (serialVersionUID): Added.
2355 * java/lang/String.java (serialVersionUID): Added.
2356 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2358 * java/lang/reflect/InvocationTargetException.java
2359 (serialVersionUID): Added.
2360 * java/net/URL.java (handler): Made transient.
2361 (hashCode): Added field for serialization, per spec. and use
2362 cached value if available.
2363 (serialVersionUID): Added.
2364 (URL): Initialize hashCode.
2365 (set): Adjust hashCode.
2366 (readObject): New Method to initialize the protocol handler when
2368 (writeObject): New method.
2369 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2370 * java/text/Collator.java: Removed 'implements Serializable'.
2371 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2372 * java/util/Properties.java (serialVersionUID): Added.
2373 * java/util/Random.java (serialVersionUID): Added.
2374 (seed): Made private.
2375 (nextNextGaussian): Made private.
2376 (haveNextNextGaussian): Made private.
2377 * java/util/Stack.java (serialVersionUID): Added.
2378 * java/util/TimeZone.java (serialVersionUID): Added.
2379 * java/util/Vector.java (serialVersionUID): Added.
2381 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2383 * Makefile.am (Thread.h): Don't be friends with native threads
2385 * Makefile.in: Rebuilt.
2386 * java/lang/Thread.java (interrupt_flag): Make package-private.
2388 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2390 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2391 to avoid long long division.
2393 2000-09-06 Tom Tromey <tromey@cygnus.com>
2395 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2397 * java/lang/reflect/Method.java (toString): Use `getName' for
2400 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2401 `args' if method takes no parameters.
2403 Fix for PR java.lang/339:
2404 * java/lang/natPosixProcess.cc (fail): New function.
2405 (cleanup): New function.
2406 (startProcess): Use them. Create pipe so child can communicate
2407 exec failure back to parent.
2409 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2411 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2413 (send): Undo last patch. Remove the label only.
2415 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2417 * java/net/natInetAdress.cc: Ditto.
2419 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2421 2000-09-05 Tom Tromey <tromey@cygnus.com>
2423 * doc/cni.sgml: Updated from master copy.
2425 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2427 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2429 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2431 * java/lang/fdlibm.h: #undef __P if previously defined.
2432 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2433 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2437 2000-09-04 Tom Tromey <tromey@cygnus.com>
2439 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2442 2000-09-04 Anthony Green <green@redhat.com>
2444 Fix for PR java.io/203:
2445 * java/io/File.java (createTempFile): Obey directory argument.
2446 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2447 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2448 variable to set java.io.tmpdir on non-WIN32 systems.
2450 2000-09-04 Anthony Green <green@redhat.com>
2452 * java/io/File.java (deleteOnExit): New method.
2453 * gnu/gcj/runtime/FileDeleter.java: New class.
2454 * java/lang/natRuntime.cc (exit): Call
2455 FileDeleter.deleteOnExitNow()
2456 * Makefile.am: Add FileDeleter.java.
2457 * Makefile.in: Rebuilt.
2459 2000-09-02 Tom Tromey <tromey@cygnus.com>
2461 * Makefile.in: Rebuilt.
2462 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2463 environment variable.
2465 2000-09-01 Andrew Haley <aph@redhat.com>
2467 * java/io/StreamTokenizer.java: Don't throw a
2468 NumberFormatException if a field is numeric as far as the
2469 StreamTokenizer is concerned but not as far as Double.valueOf() is
2470 concerned: return a zero instead.
2472 2000-08-30 Tom Tromey <tromey@cygnus.com>
2474 * Makefile.in: Rebuilt.
2475 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2477 2000-08-28 Tom Tromey <tromey@cygnus.com>
2479 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2480 gnu/gcj/awt/ComponentDataBlitOp.java,
2481 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2482 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2483 java/awt/color/ICC_ColorSpace.java,
2484 java/awt/color/ICC_Profile.java,
2485 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2486 java/awt/image/ComponentColorModel.java,
2487 java/awt/image/ComponentSampleModel.java,
2488 java/awt/image/DataBuffer.java,
2489 java/awt/image/DataBufferByte.java,
2490 java/awt/image/DataBufferInt.java,
2491 java/awt/image/DataBufferUShort.java,
2492 java/awt/image/DirectColorModel.java,
2493 java/awt/image/IndexColorModel.java,
2494 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2495 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2496 java/awt/image/SinglePixelPackedSampleModel.java,
2497 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2498 Removed Latin-1 copyright symbols.
2499 * java/util/zip/ZipFile.java: Indentation fixes.
2501 2000-08-27 Mark Wielaard <mark@klomp.org>
2503 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2504 constructor, close can delete the file, finalize calls close.
2505 * java/util/jar/JarFile.java: Constructor that takes mode now
2508 2000-08-27 Anthony Green <green@redhat.com>
2510 * java/util/ArrayList.java, java/util/Timer.java,
2511 java/util/LinkedList.java, java/util/TimerTask.java,
2512 java/util/HashMap.java, java/util/AbstractMap.java,
2513 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2514 java/util/SortedSet.java: Imported from GNU Classpath.
2515 * Makefile.in: Rebuilt.
2516 * Makefile.am: Added new files.
2518 2000-08-26 Anthony Green <green@redhat.com>
2520 * Makefile.in: Rebuilt.
2521 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2524 * prims.cc: Include ClassLoader.h.
2525 (_Jv_RunMain): When executing jar files, classpath must be the jar
2526 file only. Lose our reference to the system ClassLoader in order
2527 to get a new one with the correct classpath.
2528 * java/lang/natSystem.cc (init_properties): When executing a jar
2529 file, only use the jar file for java.class.path.
2531 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2532 for bytecode archives.
2534 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2535 exists, but not Main-Class.
2537 2000-08-23 Mark Wielaard <mark@klomp.org>
2539 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2540 return -1 when fill() has no more data for the Inflater.
2542 2000-08-23 Mark Wielaard <mark@klomp.org>
2544 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2545 write(String) already does.
2547 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2549 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2550 to `alive_flag', call `init'.
2551 (init): New native method.
2552 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2555 2000-08-21 Mark Wielaard <mark@klomp.org>
2557 * Makefile.in: Rebuilt.
2558 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2560 (java/lang/reflect/Field.h): Likewise.
2561 (java/lang/reflect/Method.h): Likewise.
2562 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2565 2000-08-21 Tom Tromey <tromey@cygnus.com>
2567 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2570 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2572 * java/lang/natSystem.cc (init_properties): Change sourceware
2573 reference to sources.redhat.com.
2575 * include/java-props.h: Add _Jv_Jar_Class_Path.
2576 * prims.cc: Ditto. Set it from `gij -jar file' option.
2578 * java/lang/natSystem.cc (init_properties): Set java.class.path
2580 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2582 * java/util/PropertyPermission.java: Import from GNU Classpath.
2583 * Makefile.in: Rebuilt.
2584 * Makefile.am: Add java/util/PropertyPermission.java.
2585 * java/lang/System.java: Add setProperty method.
2587 * gij.cc (main): Add -jar option to execute jar files.
2588 (help): Describe -jar option.
2589 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2590 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2591 * gnu/gcj/runtime/FirstThread.java (main): New method.
2593 * java/util/jar/Attributes.java: Correct comment spelling.
2595 2000-08-20 Mark Wielaard <mark@klomp.org>
2597 * java/util/zip/Adler32.java: Make private variables really private
2598 * java/util/zip/CRC32.java: Make private variables really private
2599 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2601 * java/util/zip/InflaterInputStream.java: skip() could skip to
2603 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2604 * java/util/zip/ZipFile.java: size() new 1.2 method
2605 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2606 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2609 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2611 * java/util/jar/JarFile.java: Don't call
2612 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2615 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2617 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2618 Read the entire contents of the class file, not just what is
2621 * java/net/JarURLConnection.java: getEntry doesn't take any
2622 arguments. Return null if element is null.
2624 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2625 size from the archive, not the inflated size.
2627 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2628 java.util.zip.ZipFile.getEntry.
2630 * gij.cc (help): Change sourceware reference to
2633 2000-08-19 Tom Tromey <tromey@cygnus.com>
2635 * java/util/zip/ZipInputStream.java (createZipEntry):
2638 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2640 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2641 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2642 java/util/jar/JarInputStream.java,
2643 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2644 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2645 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2646 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2647 java/security/cert/Certificate.java,
2648 java/security/cert/CertificateEncodingException.java,
2649 java/security/cert/CertificateException.java,
2650 java/security/cert/CertificateExpiredException.java,
2651 java/security/cert/CertificateFactory.java,
2652 java/security/cert/CertificateFactorySpi.java,
2653 java/security/cert/CertificateNotYetValidException.java,
2654 java/security/cert/CertificateParsingException.java,
2655 java/security/cert/X509CRL.java,
2656 java/security/cert/X509CRLEntry.java,
2657 java/security/cert/X509Certificate.java,
2658 java/security/cert/X509Extension.java: Imported from Classpath.
2659 * java/util/Hashtable.java: Imported from Classpath.
2661 * java/util/zip/ZipInputStream.java: Create stub for
2664 * gcj/javaprims.h: Updated class list.
2666 * Makefile.in, gcj/Makefile.in: Rebuilt.
2667 * Makefile.am (ordinary_java_source_files): Add these new classes.
2669 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2671 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2672 * gnu/gcj/awt/GLightweightPeer.java: New file.
2673 * java/awt/BorderLayout.java: Implemented all methods.
2674 * java/awt/Button.java (actionListener, actionCommand): Renamed
2675 and modifier change.
2676 (addNotify): Call super.
2677 (dispatchEventImpl): New method.
2678 (getListeners): New method.
2679 (label): Made package-private, not private.
2680 * java/awt/Canvas.java: Implemented class body.
2681 * java/awt/Color.java (brighter): New method.
2682 (darker): New method.
2683 (hashCode): New method.
2684 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2685 (getGraphicsConfiguration): Delegate to
2686 getGraphicsConfigurationImpl().
2687 (getGraphicsConfigurationImpl): New method.
2688 (getToolkit): Only return value from peer if not null.
2689 (isDisplayable): Check with parent.
2690 (isShowing): No parent implies not showing.
2691 (getForeground): Check parent property if local is null.
2692 (getBackground): Likewise.
2693 (getFont): Likewise.
2694 (setForeground): Inform peer.
2695 (setBackground): Likewise
2696 (setLocale): Invalidate component.
2697 (getColorModel): Implemented.
2698 (setLocation): Invalidate, or ignore if no change.
2699 (setSize): Invalidate, or ignore if no change.
2700 (setBounds): Invalidate, or ignore if no change.
2701 (isOpaque): By default, heavyweight implies opaque.
2702 (isLightweight): Implemented.
2703 (getMaximumSize): Implemented.
2704 (doLayout): Implemented, NOP.
2705 (validate): Implemented, NOP.
2706 (invalidate): Only propagate to parent if parent was valid.
2707 (getGraphics): Implemented.
2708 (getFontMetrics): Implemented.
2709 (update): Implemented.
2710 (paintAll): Implemented.
2711 (repaint): Implemented all repaint methods.
2712 (print): Implemented.
2713 (printAll): Implemented.
2714 (createImage): Implemented.
2715 (dispatchEvent): Give the peer a chance to handle the event.
2716 (dispatchEventImpl): Dispatch paint events.
2717 (enableEvents): Lightweights enable events on parent component.
2718 (coalesceEvents): Coalesce paint events, and select event type
2720 (coalescePaintEvents): New method.
2721 (processEvent): Fix unfortunate ordering of statements, and call
2722 correct method for MOUSE_CLICKED.
2723 (processPaintEvent): New method.
2724 (addNotify): Allow container to notify children before event
2725 mask is set in peer.
2726 (addNotifyContainerChildren): New method.
2727 (removeNotify): Visibility should not change on removeNotify.
2728 (paramString): Implemented.
2729 (list): Implemented two of the list methods.
2730 * Container (myInsets): Removed, insets are managed by peer.
2731 (getInsets): Query peer.
2732 (addImpl): Fix reparenting, enable events for lightweights,
2733 initialize component array.
2734 (validate): Call doLayout in validateTree() instead.
2735 (validateTree): Do nothing if already valid. Call beginValidate(),
2736 endValidate() on peer. Call validateTree() instead of validate()
2737 for children that are containers. Mark valid after validation of
2739 (setFont): Partial implementation.
2740 (paint): Implemented.
2741 (visitChildren): New method.
2742 (visitChild): New method.
2743 (update): Implemented.
2744 (print): Implemented.
2745 (paintComponents): Implemented.
2746 (printComponents): Consider translation and clipping.
2747 (getComponentAt): Ignore invisible children. Return this if no
2749 (addNotify): Call super.
2750 (addNotifyContainerChildren): New method.
2751 (paramString): Implemented.
2752 (list): Implemented.
2753 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2755 (invokeLater): Likewise.
2756 (isDispatchThread): Likewise.
2757 * java/awt/FontMetrics (getLeading): Formula change.
2758 (getDescent): Consider leading also.
2759 (getMaxAscent): Default to getAscent().
2760 (getMaxDescent): Default to getDescent.
2761 (getMaxAdvance): Return value signifying unknown.
2762 (charWidth): Both methods implemented.
2763 (charsWidth): Implemented.
2764 (bytesWidth): Implemented.
2765 (getWidths): Implemented.
2766 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2768 (Frame): Rearragend constuctor chaining to disallow null being
2769 passed as a graphics configuration.
2770 (getTitle): Return empty string if null.
2772 (getIconImage): New method.
2773 (setIconImage): New method.
2774 (finalize): New method.
2775 (setMenuBar): Notify peer.
2776 (isResizable): New method.
2777 (setResizable): New method.
2778 (getState): New method.
2780 (remove): Implemented.
2781 (removeNotify): New method.
2782 (getFrames): New method.
2783 * java/awt/Graphics.java: Implemented body of class.
2784 * java/awt/Graphics2D.java: New file.
2785 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2786 * java/awt/Image.java: Implemented body of class.
2787 * java/awt/Panel.java (Panel): Call correct super constructor.
2788 (addNotify): Implemented.
2789 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2790 * java/awt/RenderingHints.java: New file.
2791 * java/awt/Toolkit.java (createComponent): Implemented.
2792 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2793 * java/awt/Window.java (Window): Two new constructors. Reordered
2794 constructor chaining.
2795 (getGraphicsConfigurationImpl): New method.
2796 (finalize): Call super.
2797 (addNotify): Call super.
2798 (pack): Do layout stuff.
2799 (show): Ensure that peer exists and that component is valid.
2800 (dispose): Dispose owned children.
2801 (getOwner): Simplify code, casting null pointers is valid.
2802 (getGraphicsConfiguration): Ask peer if local value is null.
2803 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2805 * java/awt/image/BufferedImage.java: New file.
2806 * java/awt/image/RasterOp.java: New file.
2807 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2808 More powerfull replacement for getColorModel().
2809 (getColorModel) Removed.
2810 (setEventMask) New method.
2811 * Makefile.am: Added new files.
2812 * Makefile.in: Rebuilt.
2814 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2816 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2817 (finit_leg_name): New global.
2818 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2819 `$finit$'. This is a backward compatibility hack.
2820 (java::lang::Class::_getMethods): Likewise.
2822 2000-08-15 Andrew Haley <aph@cygnus.com>
2824 * include/jvm.h (_Jv_HashCode): New hash code.
2826 2000-08-15 Tom Tromey <tromey@cygnus.com>
2828 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2830 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2832 * THANKS: More thanks.
2834 2000-08-10 Tom Tromey <tromey@cygnus.com>
2836 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2838 (connect): Likewise.
2840 (getOption): Likewise.
2841 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2842 case when errno not set.
2845 (receive): Likewise.
2846 (mcastGrp): Likewise.
2847 (setOption): Likewise.
2848 (getOption): Likewise.
2850 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2851 John Stracke <francis@ecal.com>
2853 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2854 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2856 (disconnect): Don't unset connected flag.
2857 (getHeaderField (String)): Call connect() if not connected.
2858 (getHeaderField (int)): Ditto.
2859 (getHeaderFieldKey): Ditto.
2860 (getHttpHeaders): Don't call connect().
2861 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2862 gotResponseVals): New fields.
2863 (getResponseCode): Call getResponseVals() conditionally.
2864 (getResponseMessage): Ditto.
2865 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2867 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2869 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2870 * Makefile.in: Rebuilt.
2871 * java/awt/Color.java (getTransparency): New method.
2872 * java/awt/Component.java: Various updates.
2873 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2874 after dealing with children.
2875 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2876 * java/awt/Window.java: Various new methods and updates.
2877 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2879 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2880 * java/awt/event/WindowEvent.java (paramString): Ditto.
2881 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2883 * java/awt/geom/Point2D.java (clone): Ditto.
2884 * java/awt/geom/RectangularShape.java (clone): Ditto.
2885 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2886 isAlphaPremultiplied): Make package-private, not private.
2888 2000-08-08 Tom Tromey <tromey@cygnus.com>
2890 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2891 surrogate characters.
2892 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2894 (write): Correct handling of surrogate characters.
2896 2000-08-07 Tom Tromey <tromey@cygnus.com>
2898 * java/lang/reflect/Method.java (hashCode): Use getName().
2899 (toString): Likewise.
2900 * java/lang/reflect/natMethod.cc (getType): Initialize
2903 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2905 * java/lang/reflect/Field.java (toString): Correct formatting.
2908 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2910 (receive): Streamlined.
2912 2000-08-05 Tom Tromey <tromey@cygnus.com>
2914 * java/io/PrintWriter.java: Merged comments from Classpath.
2915 (printlnUnsynchronized): Removed.
2916 (println()): Print the separator.
2917 (println): Call println(), not printlnUnsynchronized.
2918 (out): Now protected, to match spec.
2920 2000-08-04 Tom Tromey <tromey@cygnus.com>
2922 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2923 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2926 2000-08-03 Warren Levy <warrenl@cygnus.com>
2928 * java/io/ObjectInputStream.java (readFields): Turn off
2929 readDataFromBlock while reading via GetField.
2930 (GetField$1.get(String, Object)): Pass Class of default value to
2932 (getField): Allow for null default values.
2934 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2935 (PutField$1.put): Fixed calls of checkType in most of the put
2936 methods to pass the correct parameter.
2937 (PutField$1.put(String, Object)): Allow for null value arg.
2938 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2941 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2942 typo in spec'ed field name.
2943 (getSerialPersistentFields): Changed spelling of method to match
2944 the correct spelling of the spec'ed field name.
2946 2000-08-03 Tom Tromey <tromey@cygnus.com>
2948 * Makefile.in: Rebuilt.
2949 * Makefile.am (awt_java_source_files): Added new files.
2951 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2953 * Makefile.am: Add new AWT stubs.
2954 * java/awt/Canvas.java: New placeholder class.
2955 * java/awt/Checkbox.java: Ditto.
2956 * java/awt/CheckboxMenuItem.java: Ditto.
2957 * java/awt/Choice.java: Ditto.
2958 * java/awt/Dialog.java: Ditto.
2959 * java/awt/FileDialog.java: Ditto.
2960 * java/awt/List.java: Ditto.
2961 * java/awt/ScrollPane.java: Ditto.
2962 * java/awt/TextField.java: Ditto.
2963 * java/awt/datatransfer/Clipboard.java: Ditto.
2964 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2965 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2966 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2967 Some commented out. Partially implemented.
2968 * java/awt/natToolkit.cc: Removed file.
2970 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2972 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2973 Fixes "make -j" builds.
2974 * Makefile.in: Rebuild.
2976 2000-08-02 Tom Tromey <tromey@cygnus.com>
2978 * Makefile.in: Rebuilt.
2979 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2980 * java/net/natPlainSocketImpl.cc: Include posix.h.
2981 (accept): Use _Jv_select.
2982 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2983 (receive): Use _Jv_select.
2984 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2985 (available): Use _Jv_select.
2986 * java/lang/natSystem.cc: Include posix.h.
2987 (currentTimeMillis): Use _Jv_gettimeofday.
2988 * include/posix.h: New file.
2989 * posix.cc: New file.
2991 * scripts/encodings.pl: New file.
2992 * Makefile.in: Rebuilt.
2993 * Makefile.am (convert_source_files): Added IOConverter.java.
2994 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2996 (getDefaultDecodingClass): Canonicalize default encoding name.
2997 (getEncoder): Likewise.
2998 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3000 (getDefaultDecodingClass): Canonicalize default encoding name.
3001 (getDecoder): Likewise.
3002 * gnu/gcj/convert/IOConverter.java: New file.
3004 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3006 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3007 to match C declaration in ffi.h.
3008 * Makefile.am: Add java/awt/Button.java.
3009 * Makefile.in: Rebuilt.
3011 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3013 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3014 cast of the second argument to `ffi_raw_call' changed to match
3017 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3019 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3020 argument to `ffi_raw_call' changed to match prototype.
3022 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3024 * java/awt/Component.java (toString): Implemented.
3025 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3026 dispatchEvent() to dispatch the event.
3027 (removeImpl): Ditto.
3029 2000-07-30 Anthony Green <green@redhat.com>
3031 * java/awt/Component.java: Add treeLock object.
3032 (getTreeLock): Implement.
3033 (isShowing): Implement.
3035 2000-07-30 Tom Tromey <tromey@cygnus.com>
3037 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3039 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3041 * java/awt/Window.java (addNotify): Wrote.
3042 (addWindowListener): Wrote.
3044 (getWarningString): Wrote.
3045 (processEvent): Wrote.
3046 (processWindowEvent): Wrote.
3047 (removeWindowListener): Wrote.
3048 (show): Call validate(), setVisible().
3052 * java/awt/Toolkit.java (createWindow): Declare.
3054 * java/awt/Frame.java (addNotify): Use getToolkit to find
3057 * java/awt/Component.java (invalidate): Wrote.
3059 (getToolkit): Wrote.
3061 * java/awt/Container.java (addContainerListener): Removed
3063 (removeContainerListener): Likewise.
3065 (add(Component)): Use it.
3066 (add(String,Component)): Likewise.
3067 (add(Component,int)): Likewise.
3068 (add(Component,Object)): Likewise.
3069 (add(Component,Object,int)): Likewise.
3071 (getAlignmentX): Wrote.
3072 (getAlignmentY): Wrote.
3073 (getComponentAt): Wrote.
3074 (getMaximumSize): Wrote.
3075 (invalidate): Wrote.
3076 (list(PrintStream,int)): Wrote.
3077 (list(PrintWriter,int)): Wrote.
3078 (getMinimumSize): Wrote.
3079 (getPreferredSize): Wrote.
3080 (printComponents): Wrote.
3081 (processContainerEvent): Look at containerListener, not
3083 (remove): Added event processing and peer destruction.
3084 (removeAll): Use remove.
3085 (removeNotify): Wrote.
3087 (validateTree): Wrote.
3089 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3090 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3091 * java/awt/Container.java (addNotify): Don't create Container
3093 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3095 2000-07-30 Tom Tromey <tromey@cygnus.com>
3097 * java/awt/Container.java (remove(int)): Wrote.
3098 (remove(Component)): Wrote.
3099 (add(Component)): Wrote.
3100 (add(Component,int)): Wrote.
3102 (addNotify): Set our own peer.
3103 * java/awt/Scrollbar.java (listeners): Changed type.
3104 (Scrollbar): Don't initialize listeners.
3106 (setValue): Call setValues.
3107 (setMinimum): Likewise.
3108 (setMaxPriority): Likewise.
3109 (setVisibleAmount): Likewise.
3111 (setUnitIncrement): Forward to peer.
3112 (setLineIncrement): Call setUnitIncrement.
3113 (setPageIncrement): Call setBlockIncrement.
3114 (setBlockIncrement): Forward to peer.
3115 (addAdjustmentListener): Rewrote.
3116 (removeAdjustmentListener): Rewrote.
3117 (processAdjustmentEvent): Rewrote.
3118 (paramString): Wrote.
3119 * Makefile.in: Rebuilt.
3120 * Makefile.am (awt_java_source_files): Added Button.java.
3121 * java/awt/Button.java: New file.
3122 * java/awt/Toolkit.java (createLabel): Declare.
3123 (createButton): Likewise.
3124 (createScrollbar): Likewise.
3125 (createContainer): Likewise.
3126 * java/awt/Label.java (addNotify): Wrote.
3127 (setAlignment): Call setAlignment in the peer.
3128 (setText): Call setText in the peer.
3130 2000-07-28 Warren Levy <warrenl@cygnus.com>
3132 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3133 NotSerializableException with just the class name.
3135 2000-07-26 Andrew Haley <aph@cygnus.com>
3137 * interpret.cc (continue1): Insert missing break into switch.
3139 2000-07-28 Warren Levy <warrenl@cygnus.com>
3141 * java/io/ObjectStreamException.java: Made constructors protected.
3143 2000-07-27 Tom Tromey <tromey@cygnus.com>
3145 * java/io/OutputStreamWriter.java (close): Only flush if not
3148 2000-07-27 Warren Levy <warrenl@cygnus.com>
3150 * mauve-libgcj: Activated serialization tests.
3151 * gcj/field.h (getModifiers): Mask off unknown flags.
3152 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3153 spurious bits don't cause discrepancies.
3154 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3155 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3156 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3157 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3158 * java/lang/Throwable.java (serialVersionUID): New field.
3159 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3160 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3162 * java/lang/reflect/natMethod.cc: Ditto.
3163 * java/security/Key.java (serialVersionUID): Removed field for now.
3164 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3165 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3167 2000-07-22 Tom Tromey <tromey@cygnus.com>
3169 * java/awt/geom/RectangularShape.java (getPathIterator):
3172 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3174 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3175 stub libjava/java/awt/ColorModel.java which was located in the
3177 * libjava/java/awt/image/ComponentColorModel.java: New file.
3178 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3179 * libjava/java/awt/image/DataBuffer.java: New file.
3180 * libjava/java/awt/image/DataBufferByte.java: New file.
3181 * libjava/java/awt/image/DataBufferInt.java: New file.
3182 * libjava/java/awt/image/DataBufferUShort.java: New file.
3183 * libjava/java/awt/image/DirectColorModel.java: New file.
3184 * libjava/java/awt/image/PackedColorModel.java: New file.
3185 * libjava/java/awt/image/Raster.java: New file.
3186 * libjava/java/awt/image/SampleModel.java: New file.
3187 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3189 * libjava/java/awt/image/IndexColorModel.java: New file.
3190 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3191 java.awt.ColorModel stub.
3193 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3194 * gnu/gcj/util/Buffers.java: New file, utility class.
3196 * libjava/Makefile.am: Updated to include new files.
3197 * libjava/Makefile.in: Rebuilt.
3199 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3201 * java/io/StreamTokenizer.java: Merged with classpath.
3203 2000-07-20 Tom Tromey <tromey@cygnus.com>
3205 * Makefile.in: Rebuilt.
3206 * Makefile.am (awt_java_source_files): Updated for new files.
3207 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3208 * java/awt/Label.java: New file.
3209 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3210 (createIntersection, createUnion, getBounds2D): New methods.
3211 * java/awt/Scrollbar.java: New file.
3212 * java/awt/Shape.java: Updated to 1.2.
3213 * java/awt/geom/AffineTransform.java: New file.
3214 * java/awt/geom/Ellipse2D.java: New file.
3215 * java/awt/geom/NoninvertibleTransformException.java: New file.
3216 * java/awt/geom/PathIterator.java: New file.
3217 * java/awt/geom/Rectangle2D.java: New file.
3218 * java/awt/geom/RectangularShape.java: New file.
3219 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3220 * java/awt/geom/IllegalPathStateException.java: New file.
3222 * scripts/showval.java: New file.
3224 * scripts/classes.pl (scan): Print inner classes properly.
3225 * gcj/javaprims.h: Updated class list.
3227 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3228 initialize String fields for interpreted classes. Fixes bug
3229 reported by Hans Boehm.
3231 * java/io/File.java (getParentFile): New method, from Classpath
3232 via Oskar Liljeblad.
3234 * java/util/Vector.java (remove(Object)): Implemented.
3236 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3238 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3239 zero return from backtrace().
3241 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3243 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3245 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3246 before calling notifyAll().
3248 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3250 Add missing files from last check-in:
3251 * java/awt/image/ImageConsumer.java: New file.
3252 * java/awt/image/ImageProducer.java: New file.
3253 * java/awt/image/ImageObserver.java: New file.
3255 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3257 Merged implementation of java.applet from classpath:
3258 * java/applet/Applet.java: New file.
3259 * java/applet/AppletContext.java: New file.
3260 * java/applet/AppletStub.java: New file.
3261 * java/applet/AudioClip.java: New file.
3263 * Makefile.am: Added new java.applet classes.
3264 * Makefile.in: Rebuilt.
3266 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3269 * java/util/ResourceBundle.java (getLocale): stub.
3270 * Makefile.am: Added new AWT classes.
3271 * Makefile.in: Rebuilt.
3272 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3273 constructors. Fix toString() and paramString().
3274 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3275 * java/awt/CheckboxGroup.java: New class.
3276 * java/awt/ColorModel.java: New class.
3277 * java/awt/Component.java: Added stubs for most methods. Implemented
3279 * java/awt/Container.java: ditto.
3280 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3281 * java/awt/Cursor.java: ditto.
3282 * java/awt/Event.java: Fix paramString().
3283 * java/awt/EventQueue.java: New class. Implemented.
3284 * java/awt/Font.java: Added additional stub methods. Implemented
3286 * java/awt/FontMetrics.java: New class. Stubbed.
3287 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3289 * java/awt/Insets.java: New class. Implemented.
3290 * java/awt/Menu.java: Add new methods. Partially implemented.
3291 * java/awt/MenuItem.java: Add new methods and fields. Partially
3293 * java/awt/MenuShortcut.java: New class. Implemented.
3294 * java/awt/Panel.java: New class. Placeholder.
3295 * java/awt/PopupMenu.java: New class. Stubbed.
3296 * java/awt/Rectangle.java: New class. Implemented.
3297 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3298 * java/awt/event/ActionEvent.java: Implement paramString().
3299 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3300 * java/awt/event/ComponentEvent.java: Implement paramString().
3301 * java/awt/event/ContainerEvent.java: Implement paramString().
3302 * java/awt/event/FocusEvent.java: Implement paramString().
3303 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3304 * java/awt/event/HierarchyBoundsListener.java: New class.
3305 * java/awt/event/HierarchyEvent.java: New class.
3306 * java/awt/event/HierarchyListener.java: New class.
3307 * java/awt/event/InputMethodEvent.java: Implement paramString().
3308 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3309 exception if !catchExceptions.
3310 * java/awt/event/ItemEvent.java: Implement paramString().
3311 * java/awt/event/KeyEvent.java: Implement paramString().
3312 * java/awt/event/MouseEvent.java: Implement paramString().
3313 * java/awt/event/PaintEvent.java: Implement paramString().
3314 * java/awt/event/TextEvent.java: Implement paramString().
3315 * java/awt/event/WindowEvent.java: Implement paramString().
3317 AWT Peer interfaces:
3318 * java/awt/peer/ButtonPeer.java: New file.
3319 * java/awt/peer/ListPeer.java: New file.
3320 * java/awt/peer/CanvasPeer.java: New file.
3321 * java/awt/peer/MenuBarPeer.java: New file.
3322 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3323 * java/awt/peer/MenuComponentPeer.java: New file.
3324 * java/awt/peer/CheckboxPeer.java: New file.
3325 * java/awt/peer/MenuItemPeer.java: New file.
3326 * java/awt/peer/ChoicePeer.java: New file.
3327 * java/awt/peer/MenuPeer.java: New file.
3328 * java/awt/peer/ComponentPeer.java: Implemented.
3329 * java/awt/peer/PanelPeer.java: New file.
3330 * java/awt/peer/ContainerPeer.java: Implemented.
3331 * java/awt/peer/PopupMenuPeer.java: New file.
3332 * java/awt/peer/DialogPeer.java: New file.
3333 * java/awt/peer/ScrollPanePeer.java: New file.
3334 * java/awt/peer/FileDialogPeer.java: New file.
3335 * java/awt/peer/ScrollbarPeer.java: New file.
3336 * java/awt/peer/FontPeer.java: New file.
3337 * java/awt/peer/TextAreaPeer.java: New file.
3338 * java/awt/peer/FramePeer.java: Implemented.
3339 * java/awt/peer/TextComponentPeer.java: New file.
3340 * java/awt/peer/LabelPeer.java: New file.
3341 * java/awt/peer/TextFieldPeer.java: New file.
3342 * java/awt/peer/LightweightPeer.java: New file.
3343 * java/awt/peer/WindowPeer.java: Implemented.
3345 2000-07-06 Tom Tromey <tromey@cygnus.com>
3347 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3348 Initialize static final String fields.
3350 2000-07-03 Tom Tromey <tromey@cygnus.com>
3352 * java/io/PrintWriter.java (print): Call write(String), not
3353 print(String). See PR libgcj/277.
3354 (print(String)): Use write, not out.write.
3356 2000-06-30 Tom Tromey <tromey@cygnus.com>
3358 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3360 2000-06-27 Andrew Haley <aph@cygnus.com>
3362 * java/io/File.java (createTempFile): Close the FileDescriptor
3363 used to create a temp file. Fixes some of PR 203.
3364 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3365 collection if we run out of file handles.
3367 2000-06-28 Warren Levy <warrenl@cygnus.com>
3369 * gnu/java/security/provider/Gnu.java: New file.
3370 * gnu/java/security/provider/SHA.java: New file.
3371 * gnu/java/security/provider/SHA1PRNG.java: New file.
3372 * Makefile.am: Added the above files.
3373 * Makefile.in: Rebuilt.
3375 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3377 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3379 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3380 (destroyed_flag): Removed.
3381 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3382 (activeCount): Added spec note.
3384 2000-06-27 Warren Levy <warrenl@cygnus.com>
3386 * java/security/Principal.java: New file.
3387 * Makefile.am: Added Principal.java.
3388 * Makefile.in: Rebuilt.
3390 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3392 * java/awt/event/MouseEvent.java: Fixed coordinate space
3395 2000-06-27 Tom Tromey <tromey@cygnus.com>
3397 * java/io/PushbackInputStream.java (read): If there are characters
3398 in the buffer, don't also call super.read().
3399 * java/io/PushbackReader.java (read): If there are characters in
3400 the buffer, don't also call super.read().
3402 * java/lang/Double.java (valueOf): Call parseDouble().
3404 2000-06-26 Warren Levy <warrenl@cygnus.com>
3406 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3407 (newVal): Renamed to newValue.
3408 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3409 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3410 (revokeNow): Renamed to invalidateRefs.
3411 * java/io/OptionalDataException.java: Updated FIXME.
3412 (eof): New placeholder field.
3414 * java/io/WriteAbortedException.java (message): Made transient.
3415 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3416 * java/lang/Throwable.java (stackTrace): Made transient.
3417 * java/net/InetAddress.java: Made Serializable.
3418 * java/security/KeyPair.java: Made Serializable.
3419 * java/security/Provider.java: Replaced with Classpath version that
3420 implements serialization and proper methods.
3421 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3422 (limits): Renamed to choiceLimits.
3424 2000-06-24 Tom Tromey <tromey@cygnus.com>
3426 * java/lang/natDouble.cc (parseDouble): Renamed from
3428 * java/lang/Double.java (parseDouble): Renamed from
3429 doubleValueOf. Now public.
3431 2000-06-23 Andrew Haley <aph@cygnus.com>
3433 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3434 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3436 2000-06-23 Tom Tromey <tromey@cygnus.com>
3438 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3439 * java/lang/natDouble.cc: Always include <alloca.h>.
3440 Fix for PR libgcj/267.
3442 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3444 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3445 comply with classpath VM spec.
3446 (add(Group)): Rename to addGroup().
3447 * java/lang/Thread.java (Thread): Use addThread().
3448 * java/lang/natThread.cc (finish_): Use removeThread().
3450 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3452 * java/lang/ThreadGroup.java: Merged with classpath.
3453 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3454 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3456 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3457 ThreadGroup.root if Thread.currentThread is null. Honour the
3458 ThreadGroup's max priority setting.
3460 2000-06-18 Tom Tromey <tromey@cygnus.com>
3462 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3463 returned class. For PR gcj/260.
3465 2000-06-16 Tom Tromey <tromey@cygnus.com>
3467 Fix for PR libgcj/261:
3468 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3470 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3471 argument. (This is a patch from long ago that somehow went
3474 2000-06-15 Tom Tromey <tromey@cygnus.com>
3476 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3480 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3482 Fix for PR java.lang/258:
3483 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3484 JV_STATE_DONE, to prevent accidental initialization.
3485 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3486 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3487 interface or an abstract class. Remove redundant initializeClass calls.
3488 Remove duplicate if_idt test.
3489 (_Jv_InterfaceAssignableFrom): New function.
3490 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3492 2000-05-31 Tom Tromey <tromey@cygnus.com>
3494 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3495 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3496 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3497 (NUM_OBJECT_METHODS): New define.
3498 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3499 `array_vtable' parameter. Added assertion.
3500 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3503 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3505 * gcj/cni.h: Include <string.h>.
3506 * defineclass.cc: Include <alloca.h>.
3507 * interpret.cc: Ditto.
3508 * gij.cc: Include <stdlib.h>.
3510 2000-05-30 Tom Tromey <tromey@cygnus.com>
3512 * include/name-finder.h: Include <sys/wait.h>.
3513 (_Jv_name_finder::pid): Now of type `pid_t'.
3514 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3515 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3518 2000-05-24 Warren Levy <warrenl@cygnus.com>
3520 * java/io/ObjectOutputStream.java (writeObject): Use component type
3521 when writing arrays.
3524 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3526 Fix for PR libgcj/226:
3527 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3528 since this is an installed header.
3530 Fix for PR libgcj/228:
3531 * java/util/zip/ZipFile (getInputStream): Create inflater with
3534 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3535 with DataFormatException.
3537 2000-05-20 Tom Tromey <tromey@cygnus.com>
3539 * Makefile.in: Rebuilt.
3540 * Makefile.am (hack1): Removed.
3541 (awto_files): Likewise.
3542 (libgcjawt_la_SOURCES): Likewise.
3543 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3544 (libgcjawt_la_DEPENDENCIES): Likewise.
3545 (libgcjawt_la_LIBADD): Likewise.
3546 (libgcjawt_la_LDFLAGS): Likewise.
3547 (libgcjawt_la_LINK): Likewise.
3548 ($(awt_java_source_files:.java=.class)): Likewise.
3549 (libgcj.zip): Don't depend on AWT files.
3550 (MOSTLYCLEANFILES): Don't include AWT files.
3551 ($(awto_files)): Removed.
3552 (nat_headers): Removed AWT files.
3553 (cond_awt_java_source_files): Removed.
3554 (ordinary_java_source_files): Added awt_java_source_files.
3555 * libgcj.spec.in (*lib): Removed -lgcjawt.
3556 * configure: Rebuilt.
3557 * configure.in: Removed --enable-java-awt option.
3559 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3561 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3562 (ZipEntry): Copy the `name' field.
3563 (clone): Implement JDK1.2 method.
3564 (setCompressedSize): ditto.
3567 2000-05-19 Tom Tromey <tromey@cygnus.com>
3569 * java/io/BufferedWriter.java: Merged with Classpath.
3570 * java/io/BufferedOutputStream.java: Merged with Classpath.
3572 2000-05-16 Andrew Haley <aph@cygnus.com>
3574 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3575 build_ia64_frame_state.
3576 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3579 2000-05-15 Warren Levy <warrenl@cygnus.com>
3581 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3582 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3583 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3584 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3585 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3586 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3587 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3588 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3589 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3590 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3591 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3592 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3593 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3594 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3595 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3596 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3597 * gnu/gcj/io/NullOutputStream.java: Removed.
3598 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3599 * gnu/gcj/lang/ArrayHelper.java: Removed.
3600 * gnu/gcj/lang/ClassHelper.java: Removed.
3601 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3603 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3604 * gnu/java/beans/EmptyBeanInfo.java: New file.
3605 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3606 * gnu/java/beans/IntrospectionIncubator.java: New file.
3607 * gnu/java/beans/editors/ColorEditor.java: New file.
3608 * gnu/java/beans/editors/FontEditor.java: New file.
3609 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3610 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3611 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3612 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3613 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3614 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3615 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3616 * gnu/java/beans/editors/StringEditor.java: New file.
3617 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3618 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3619 * gnu/java/io/NullOutputStream.java: New file.
3620 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3621 * gnu/java/lang/ArrayHelper.java: New file.
3622 * gnu/java/lang/ClassHelper.java: New file.
3623 * gnu/java/lang/reflect/TypeSignature.java: New file.
3625 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3626 namespace back to the original Classpath gnu/java namespace.
3627 * Makefile.in: Rebuilt.
3629 * java/beans/Beans.java: Namespace change.
3630 * java/beans/EventSetDescriptor.java: Namespace change.
3631 * java/beans/Introspector.java: Namespace change.
3632 * java/beans/PropertyEditorManager.java: Namespace change.
3633 * java/io/ObjectInputStream.java: Namespace change.
3634 * java/io/ObjectOutputStream.java: Namespace change.
3635 * java/io/ObjectStreamClass.java: Namespace change.
3636 * java/io/ObjectStreamField.java: Namespace change.
3638 2000-04-21 Warren Levy <warrenl@cygnus.com>
3640 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3641 now that compiler patch is available.
3642 Removed unneeded System.loadLibrary.
3643 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3644 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3646 2000-04-19 Andrew Haley <aph@cygnus.com>
3648 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3649 and target classes have been initialized.
3651 2000-04-19 Andrew Haley <aph@cygnus.com>
3653 * java/lang/String.java: implement Serializable, Comparable.
3654 (compareTo (Object)): New method.
3656 2000-04-19 Warren Levy <warrenl@cygnus.com>
3658 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3659 instead of getField to retrieve non-public field.
3660 (getSerialPersistantFields): Ditto.
3662 2000-04-18 Warren Levy <warrenl@cygnus.com>
3664 * mauve-libgcj: Turned off object serialization tests temporarily
3665 due to compiler error.
3667 2000-04-17 Warren Levy <warrenl@cygnus.com>
3669 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3670 to avoid build problem.
3672 * mauve-libgcj: Turned on object serialization tests.
3674 2000-04-17 Tom Tromey <tromey@cygnus.com>
3676 * libgcj.spec.in (*lib): Added -lgcjawt.
3678 2000-04-17 Andrew Haley <aph@cygnus.com>
3680 * Makefile.am: Add new files:
3681 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3683 * Makefile.in: Rebuilt.
3685 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3686 interface that has no implementations.
3687 Check for an attempt to assign an abstract class to an interface.
3689 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3690 if we fail to find MessageDigest.getInstance ("SHA").
3692 * gnu/gcj/io/SimpleSHSStream.java: New file.
3693 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3694 * gnu/gcj/io/shs.cc: New file.
3695 * gnu/gcj/io/shs.h: new file.
3697 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3700 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3701 punctuation from the classname of an array element.
3703 * gcj/javaprims.h: Add SimpleDigestStream.
3705 2000-04-17 Andrew Haley <aph@cygnus.com>
3707 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3708 to getPrivateField for superclasses.
3710 2000-04-14 Andrew Haley <aph@cygnus.com>
3712 * Makefile.am: Add new files:
3713 java/io/ObjectOutputStream$PutField.h,
3714 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3715 java/io/natObjectOutputStream.cc
3716 * Makefile.in: Rebuilt.
3717 * gcj/Makefile.in: Rebuilt.
3718 * include/Makefile.in: Rebuilt.
3719 * java/lang/Class.h (getPrivateField): New method.
3720 (getPrivateMethod): Ditto.
3721 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3722 and java::io::ObjectStreamClass our friends.
3723 * java/lang/natClass.cc (getPrivateField): New method.
3724 (getPrivateMethod): Ditto.
3725 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3726 * gcj/javaprims.h: Add serialization classes.
3727 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3728 (setByteField): Ditto.
3729 (setCharField): Ditto.
3730 (setDoubleField): Ditto.
3731 (setFloatField): Ditto.
3732 (setIntField): Ditto.
3733 (setLongField): Ditto.
3734 (setShortField): Ditto.
3735 (setObjectField): Ditto.
3736 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3738 (getByteField): Ditto.
3739 (getCharField): Ditto.
3740 (getDoubleField): Ditto.
3741 (getFloatField): Ditto.
3742 (getIntField): Ditto.
3743 (getLongField): Ditto.
3744 (getShortField): Ditto.
3745 (getObjectField): Ditto.
3746 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3748 (getSerialPersistantFields): Ditto.
3749 (getDefinedSUID): Ditto.
3750 * java/io/natObjectOutputStream.cc: New file.
3751 * java/io/natObjectInputStream.cc: New file.
3753 2000-04-13 Warren Levy <warrenl@cygnus.com>
3755 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3756 problems. Revert to previous version to reproduce and when fixed.
3758 2000-04-13 Warren Levy <warrenl@cygnus.com>
3760 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3761 * gnu/gcj/io/NullOutputStream.java: New file.
3762 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3763 * java/io/BlockDataException.java: New file.
3764 * java/io/Externalizable.java: New file.
3765 * java/io/InvalidClassException.java: New file.
3766 * java/io/InvalidObjectException.java: New file.
3767 * java/io/NotActiveException.java: New file.
3768 * java/io/NotSerializableException.java: New file.
3769 * java/io/ObjectInput.java: New file.
3770 * java/io/ObjectInputStream.java: New file.
3771 * java/io/ObjectInputValidation.java: New file.
3772 * java/io/ObjectOutput.java: New file.
3773 * java/io/ObjectOutputStream.java: New file.
3774 * java/io/ObjectStreamClass.java: New file.
3775 * java/io/ObjectStreamConstants.java: New file.
3776 * java/io/ObjectStreamField.java: New file.
3777 * java/io/Replaceable.java: New file.
3778 * java/io/Resolvable.java: New file.
3779 * java/io/SerializablePermission.java: New file.
3780 * java/io/WriteAbortedException.java: New file.
3781 * java/security/BasicPermission.java: New file.
3782 * java/security/DigestOutputStream.java: New file.
3783 * java/security/Guard.java: New file.
3784 * java/security/Permission.java: New file.
3785 * java/security/PermissionCollection.java: New file.
3786 * Makefile.am: Added above files.
3787 * Makefile.in: Rebuilt.
3789 * java/beans/Beans.java (instantiate): Activated serialization code.
3790 * java/lang/SecurityManager.java (checkPermission): New method.
3792 2000-04-12 Warren Levy <warrenl@cygnus.com>
3794 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3795 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3796 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3797 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3798 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3799 * gnu/gcj/beans/editors/FontEditor.java: New file.
3800 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3801 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3802 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3803 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3804 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3805 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3806 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3807 * gnu/gcj/beans/editors/StringEditor.java: New file.
3808 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3809 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3810 * gnu/gcj/lang/ArrayHelper.java: New file.
3811 * gnu/gcj/lang/ClassHelper.java: New file.
3812 * java/beans/BeanDescriptor.java: New file.
3813 * java/beans/BeanInfo.java: New file.
3814 * java/beans/Beans.java: New file.
3815 * java/beans/Customizer.java: New file.
3816 * java/beans/DesignMode.java: New file.
3817 * java/beans/EventSetDescriptor.java: New file.
3818 * java/beans/FeatureDescriptor.java: New file.
3819 * java/beans/IndexedPropertyDescriptor.java: New file.
3820 * java/beans/IntrospectionException.java: New file.
3821 * java/beans/Introspector.java: New file.
3822 * java/beans/MethodDescriptor.java: New file.
3823 * java/beans/ParameterDescriptor.java: New file.
3824 * java/beans/PropertyChangeEvent.java: New file.
3825 * java/beans/PropertyChangeListener.java: New file.
3826 * java/beans/PropertyChangeSupport.java: New file.
3827 * java/beans/PropertyDescriptor.java: New file.
3828 * java/beans/PropertyEditor.java: New file.
3829 * java/beans/PropertyEditorManager.java: New file.
3830 * java/beans/PropertyEditorSupport.java: New file.
3831 * java/beans/PropertyVetoException.java: New file.
3832 * java/beans/SimpleBeanInfo.java: New file.
3833 * java/beans/VetoableChangeListener.java: New file.
3834 * java/beans/VetoableChangeSupport.java: New file.
3835 * java/beans/Visibility.java: New file.
3836 * java/beans/beancontext/BeanContext.java: New file.
3837 * java/beans/beancontext/BeanContextChild.java: New file.
3838 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3839 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3840 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3841 * java/beans/beancontext/BeanContextEvent.java: New file.
3842 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3843 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3844 * java/beans/beancontext/BeanContextProxy.java: New file.
3845 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3847 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3848 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3850 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3851 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3853 * java/beans/beancontext/BeanContextServices.java: New file.
3854 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3855 * java/util/AbstractCollection.java: New file.
3856 * java/util/AbstractList.java: New file.
3857 * java/util/Arrays.java: New file.
3858 * Makefile.am: Added above files.
3859 * Makefile.in: Rebuilt.
3861 2000-04-11 Warren Levy <warrenl@cygnus.com>
3863 * java/awt/AWTError.java: New file.
3864 * java/awt/AWTEvent.java: New file.
3865 * java/awt/AWTException.java: New file.
3866 * java/awt/ActiveEvent.java: New file.
3867 * java/awt/Adjustable.java: New file.
3868 * java/awt/BorderLayout.java: New file.
3869 * java/awt/Color.java: New file.
3870 * java/awt/Component.java: New file.
3871 * java/awt/Container.java: New file.
3872 * java/awt/Dimension.java: New file.
3873 * java/awt/Event.java: New file.
3874 * java/awt/Font.java: New file.
3875 * java/awt/Frame.java: New file.
3876 * java/awt/Graphics.java: New file.
3877 * java/awt/IllegalComponentStateException.java: New file.
3878 * java/awt/Image.java: New file.
3879 * java/awt/ItemSelectable.java: New file.
3880 * java/awt/LayoutManager.java: New file.
3881 * java/awt/LayoutManager2.java: New file.
3882 * java/awt/Menu.java: New file.
3883 * java/awt/MenuBar.java: New file.
3884 * java/awt/MenuComponent.java: New file.
3885 * java/awt/MenuContainer.java: New file.
3886 * java/awt/MenuItem.java: New file.
3887 * java/awt/Paint.java: New file.
3888 * java/awt/PaintContext.java: New file.
3889 * java/awt/Point.java: New file.
3890 * java/awt/Rectangle.java: New file.
3891 * java/awt/Shape.java: New file.
3892 * java/awt/TextArea.java: New file.
3893 * java/awt/TextComponent.java: New file.
3894 * java/awt/Toolkit.java: New file.
3895 * java/awt/Transparency.java: New file.
3896 * java/awt/Window.java: New file.
3897 * java/awt/natToolkit.cc: New file.
3898 * java/awt/event/AWTEventListener.java: New file.
3899 * java/awt/event/ActionEvent.java: New file.
3900 * java/awt/event/ActionListener.java: New file.
3901 * java/awt/event/AdjustmentEvent.java: New file.
3902 * java/awt/event/AdjustmentListener.java: New file.
3903 * java/awt/event/ComponentAdapter.java: New file.
3904 * java/awt/event/ComponentEvent.java: New file.
3905 * java/awt/event/ComponentListener.java: New file.
3906 * java/awt/event/ContainerAdapter.java: New file.
3907 * java/awt/event/ContainerEvent.java: New file.
3908 * java/awt/event/ContainerListener.java: New file.
3909 * java/awt/event/FocusAdapter.java: New file.
3910 * java/awt/event/FocusEvent.java: New file.
3911 * java/awt/event/FocusListener.java: New file.
3912 * java/awt/event/InputEvent.java: New file.
3913 * java/awt/event/InputMethodEvent.java: New file.
3914 * java/awt/event/InputMethodListener.java: New file.
3915 * java/awt/event/InvocationEvent.java: New file.
3916 * java/awt/event/ItemEvent.java: New file.
3917 * java/awt/event/ItemListener.java: New file.
3918 * java/awt/event/KeyAdapter.java: New file.
3919 * java/awt/event/KeyEvent.java: New file.
3920 * java/awt/event/KeyListener.java: New file.
3921 * java/awt/event/MouseAdapter.java: New file.
3922 * java/awt/event/MouseEvent.java: New file.
3923 * java/awt/event/MouseListener.java: New file.
3924 * java/awt/event/MouseMotionAdapter.java: New file.
3925 * java/awt/event/MouseMotionListener.java: New file.
3926 * java/awt/event/PaintEvent.java: New file.
3927 * java/awt/event/TextEvent.java: New file.
3928 * java/awt/event/TextListener.java: New file.
3929 * java/awt/event/WindowAdapter.java: New file.
3930 * java/awt/event/WindowEvent.java: New file.
3931 * java/awt/event/WindowListener.java: New file.
3932 * java/awt/geom/Dimension2D.java: New file.
3933 * java/awt/geom/Point2D.java: New file.
3934 * java/awt/peer/ComponentPeer.java: New file.
3935 * java/awt/peer/ContainerPeer.java: New file.
3936 * java/awt/peer/FramePeer.java: New file.
3937 * java/awt/peer/WindowPeer.java: New file.
3938 * java/util/Collection.java: New file.
3939 * java/util/Comparator.java: New file.
3940 * java/util/Iterator.java: New file.
3941 * java/util/List.java: New file.
3942 * java/util/ListIterator.java: New file.
3943 * Makefile.am: Added above files.
3944 * Makefile.in: Rebuilt.
3946 2000-04-10 Warren Levy <warrenl@cygnus.com>
3948 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3949 * java/lang/FirstThread.java: Ditto.
3950 * java/lang/StringBuffer.java: Ditto.
3951 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3953 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3954 Special case handled in java.math.BigInteger.
3955 * java/math/BigInteger.java (divide): Handle the special case when
3956 dividing by 1 and the high bit of the dividend is set.
3957 (setShiftRight): Handle case when count == 0.
3959 2000-04-05 Andrew Haley <aph@cygnus.com>
3961 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3964 2000-04-05 Andrew Haley <aph@cygnus.com>
3966 * sysdep/ia64.c (rse_address_add): Delete.
3967 (IS_NaT_COLLECTION_ADDR): Delete.
3968 (ia64_backtrace_helper): check for null unwind_info.
3970 * sysdep/ia64-frame.h: add calc_caller_bsp.
3972 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3975 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3976 (_Jv_remI): Likewise.
3977 (_Jv_divJ): Likewise.
3978 (_Jv_remJ): Likewise.
3980 * interpret.cc (continue1): Use divide subroutines to guarantee
3981 correct Java standard behaviour.
3982 Floating-point division should not abort; make it so.
3984 2000-03-29 Tom Tromey <tromey@cygnus.com>
3986 * configure: Rebuilt.
3987 * configure.in: Test against `libgcj_sjlj', not
3988 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3989 to be set even when using sjlj.
3991 2000-03-24 Andrew Haley <aph@cygnus.com>
3993 * Makefile.am: Add file addr2name.awk.
3994 * Makefile.in: Rebuilt.
3995 * addr2name.awk: New file.
3996 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3998 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4001 2000-03-22 Andrew Haley <aph@cygnus.com>
4003 * configure.host: Add -funwind-tables for IA64.
4004 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4005 * Makefile.in: Rebuilt.
4006 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4007 * sysdep/ia64.c: New file.
4008 * sysdep/ia64-frame.h: New file.
4009 * configure.in: Add sysdep/ia64.c for ia64.
4010 * configure: Rebuilt.
4012 2000-03-17 Andrew Haley <aph@cygnus.com>
4014 * java/lang/natString.cc: Remove `register' keyword.
4015 interpret.cc: ditto.
4017 2000-03-16 Andrew Haley <aph@cygnus.com>
4019 * configure.host (ia64): Enable interpreter.
4021 2000-03-14 Hans Boehm <boehm@acm.org>
4023 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4025 2000-03-14 Andrew Haley <aph@cygnus.com>
4027 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4030 2000-03-10 Andrew Haley <aph@cygnus.com>
4032 * java/lang/ieeefp.h: Import latest version from fdlibm.
4034 2000-03-14 Andrew Haley <aph@cygnus.com>
4036 * prims.cc (_Jv_ThrowSignal): New function.
4037 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4039 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4040 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4041 * include/ppc-signal.h: New file.
4043 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4045 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4046 * java/lang/natThread.java (initialize_native): Cast `data' to
4048 * gnu/gcj/RawData.java: Clarify documentation.
4050 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4051 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4052 `jarFile', not `jarFileURL'.
4054 2000-05-15 Andrew Haley <aph@cygnus.com>
4056 * include/ppc-signal.h: New file.
4058 2000-05-11 Tom Tromey <tromey@cygnus.com>
4060 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4061 file headers, don't include `size' in the skip call.
4063 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4065 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4066 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4068 (replace): Reimplemented. Fix javadoc.
4069 (reverse): Call ensureCapacity_unsynchronized().
4070 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4072 (replace): Calculate length for arraycopy() correctly.
4074 2000-05-09 Tom Tromey <tromey@cygnus.com>
4076 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4078 (insert(int,char[],int,int): New method.
4079 (delete): New method from Classpath.
4080 (deleteCharAt): Likewise.
4081 (substring): Likewise.
4082 (shared): No longer private.
4083 Added JavaDoc comments from Classpath.
4084 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4087 2000-05-07 Tom Tromey <tromey@cygnus.com>
4089 * Makefile.in: Rebuilt.
4090 * Makefile.am (LIBLINK): New macro.
4091 (libgcj_la_LINK): Use it.
4092 (libgcjawt_la_LINK): Likewise.
4094 2000-05-06 Tom Tromey <tromey@cygnus.com>
4096 * Makefile.in: Rebuilt.
4097 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4099 2000-05-05 Tom Tromey <tromey@cygnus.com>
4101 Fix for PR libgcj/220:
4102 * Makefile.in: Rebuilt.
4103 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4104 (jv_convert_LDFLAGS): Likewise.
4105 (libgcj_la_LDFLAGS): Likewise.
4106 (GCJLINK): New macro.
4107 (jv_convert_LINK): Use it.
4108 (gij_LINK): Likewise.
4109 (libgcj_la_LINK): New macro.
4110 (libgcjawt_la_LINK): Likewise.
4112 2000-05-04 Tom Tromey <tromey@cygnus.com>
4114 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4116 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4120 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4122 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4123 (_Jv_IsAssignableFrom): Ditto.
4124 (_Jv_IsInstanceOf): Ditto.
4125 (_Jv_CheckCast): Ditto.
4126 (_Jv_CheckArrayStore): Ditto.
4127 * java/lang/Class.h (_Jv_InitClass): Ditto.
4128 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4133 (_Jv_MonitorExit): Ditto.
4134 * boehm.cc (_Jv_MarkObj): Ditto.
4135 (_Jv_MarkObj): Ditto.
4136 (_Jv_MarkArray): Ditto.
4137 * prims.cc (_Jv_AllocObject): Ditto.
4138 (_Jv_NewObjectArray): Ditto.
4139 (_Jv_NewPrimArray): Ditto.
4140 (_Jv_Malloc): Ditto.
4141 (_Jv_Realloc): Ditto.
4142 (_Jv_MallocUnchecked): Ditto.
4148 2000-05-04 Tom Tromey <tromey@cygnus.com>
4150 * java/util/Locale.java (Locale): Don't explicitly check for
4152 * java/util/Hashtable.java (containsKey): Don't explicitly check
4155 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4157 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4159 * java/text/StringCharacterIterator.java
4160 (StringCharacterIterator): Don't check for null.
4161 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4163 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4164 check for null pointer.
4165 (leaveGroup): Likewise.
4166 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4168 (setData): Likewise.
4169 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4172 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4174 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4175 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4176 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4177 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4178 -rpath for in-gcc builds.
4179 * Makefile.in: Rebuilt.
4181 2000-04-28 Tom Tromey <tromey@cygnus.com>
4183 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4186 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4188 * libjava/java/lang/String.java (toString): Remove `final' hack.
4190 2000-04-05 Tom Tromey <tromey@cygnus.com>
4192 Runtime support for PR gcj/2:
4193 * prims.cc (_Jv_ThrowNullPointerException): New function.
4194 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4196 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4198 * prims.cc (_Jv_NewObjectArray): Fix typo.
4200 2000-04-26 Tom Tromey <tromey@cygnus.com>
4202 * Makefile.in: Rebuilt.
4203 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4205 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4207 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4210 2000-04-22 Anthony Green <green@cygnus.com>
4212 * include/jvm.h (__builtin_expect): Define as unused for now.
4213 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4217 (_Jv_MonitorExit): Ditto.
4218 * boehm.cc (_Jv_MarkObj): Ditto.
4219 (_Jv_MarkObj): Ditto.
4220 (_Jv_MarkArray): Ditto.
4221 (_Jv_AllocBytes): Ditto.
4222 * prims.cc (_Jv_AllocObject): Ditto.
4223 (_Jv_NewObjectArray): Ditto.
4224 (_Jv_NewPrimArray): Ditto.
4225 (_Jv_Malloc): Ditto.
4226 (_Jv_Realloc): Ditto.
4227 (_Jv_MallocUnchecked): Ditto.
4233 * include/Makefile.in: Rebuilt.
4234 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4236 2000-04-21 Tom Tromey <tromey@cygnus.com>
4238 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4239 Yet another new version from Classpath.
4241 Fix for PR libgcj/15:
4242 * java/util/natGregorianCalendar.cc (_REENTRANT,
4243 _POSIX_PTHREAD_SEMANTICS): Don't define.
4244 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4245 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4247 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4249 * configure: Rebuilt.
4250 * configure.in: If using POSIX threads, define _REENTRANT if
4251 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4252 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4254 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4255 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4256 version from Classpath.
4258 Fix for PR libgcj/213:
4259 * Makefile.in: Rebuilt.
4260 * Makefile.am (gij_SOURCES): Added gij.cc.
4261 (EXTRA_gij_SOURCES): Removed.
4262 (gij_LDADD): Removed gij.lo.
4263 (gij_DEPENDENCIES): Likewise.
4264 ($(gij_OBJECTS)): Depend on nat_headers.
4266 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4267 `setURL', not `url.set'.
4269 2000-04-20 Tom Tromey <tromey@cygnus.com>
4271 Fix for PR java.io/204:
4272 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4273 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4276 Fix for PR libgcj/212:
4277 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4278 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4279 * java/lang/Class.h (_Jv_word): Declare.
4281 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4283 2000-04-19 Tom Tromey <tromey@cygnus.com>
4285 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4286 doesn't have a loader.
4288 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4290 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4291 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4293 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4295 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4297 (available): Initialize `where' to prevent bogus compiler warning.
4299 2000-04-12 Tom Tromey <tromey@cygnus.com>
4301 * java/lang/natString.cc (intern): Temporarily disable finalizer
4304 * java/lang/natString.cc (unintern): Added `obj' argument.
4305 (intern): Register finalizer for string.
4306 * java/lang/String.java (unintern): Now static; added obj
4309 2000-04-11 Tom Tromey <tromey@cygnus.com>
4311 * java/util/Vector.java (VectorEnumeration): Now `final'.
4312 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4313 (HashtableEnumeration): Likewise.
4314 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4315 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4317 2000-04-10 Warren Levy <warrenl@cygnus.com>
4319 * java/io/ObjectStreamException.java: New file.
4320 * java/io/OptionalDataException.java: New file.
4321 * java/io/StreamCorruptedException.java: New file.
4322 * java/math/BigDecimal.java: New file.
4323 * java/sql/CallableStatement.java: New file.
4324 * java/sql/Connection.java: New file.
4325 * java/sql/DataTruncation.java: New file.
4326 * java/sql/DatabaseMetaData.java: New file.
4327 * java/sql/Date.java: New file.
4328 * java/sql/Driver.java: New file.
4329 * java/sql/DriverManager.java: New file.
4330 * java/sql/DriverPropertyInfo.java: New file.
4331 * java/sql/PreparedStatement.java: New file.
4332 * java/sql/ResultSet.java: New file.
4333 * java/sql/ResultSetMetaData.java: New file.
4334 * java/sql/SQLException.java: New file.
4335 * java/sql/SQLWarning.java: New file.
4336 * java/sql/Statement.java: New file.
4337 * java/sql/Time.java: New file.
4338 * java/sql/Timestamp.java: New file.
4339 * java/sql/Types.java: New file.
4340 * Makefile.am: Added above new files.
4341 * Makefile.in: Rebuilt.
4343 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4344 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4345 DatagramSocket constructor instead of null.
4347 2000-04-08 Anthony Green <green@cygnus.com>
4349 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4352 2000-04-08 Anthony Green <green@cygnus.com>
4354 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4355 (_Jv_MutexUnlock): Ditto.
4356 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4357 (_Jv_MutexUnlock): Ditto.
4359 2000-04-08 Anthony Green <green@cygnus.com>
4361 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4362 (ensureCapacity_unsynchronized): New private method.
4363 (append): Use ensureCapacity_unsynchronized.
4365 2000-04-08 Tom Tromey <tromey@cygnus.com>
4367 * Makefile.in: Rebuilt.
4368 * Makefile.am (awt_java_source_files): Added new files.
4369 * java/awt/IllegalComponentStateException.java: New file.
4370 * java/awt/ItemSelectable.java: New file.
4371 * java/awt/event/WindowEvent.java: Finished.
4372 * java/awt/event/TextEvent.java: Finished.
4373 * java/awt/event/ContainerEvent.java: New file.
4374 * java/awt/Component.java (getX, getY): New methods.
4375 * java/awt/event/PaintEvent.java: New file.
4376 * java/awt/event/MouseEvent.java: New file.
4377 * java/awt/ActiveEvent.java: New file.
4378 * java/awt/event/KeyEvent.java: Finished.
4379 * java/awt/event/ItemEvent.java: New file.
4380 * java/awt/Adjustable.java: New file.
4381 * java/awt/event/InputMethodEvent.java: New file.
4382 * java/awt/event/InputEvent.java: Finished.
4383 * java/awt/event/FocusEvent.java: New file.
4384 * java/awt/event/MouseMotionAdapter.java: New file.
4385 * java/awt/event/MouseAdapter.java: New file.
4386 * java/awt/event/KeyAdapter.java: New file.
4387 * java/awt/event/FocusAdapter.java: New file.
4388 * java/awt/event/ContainerAdapter.java: New file.
4389 * java/awt/event/ComponentEvent.java: Finished.
4390 * java/awt/event/AdjustmentEvent.java: New file.
4391 * java/awt/event/ComponentAdapter.java: New file.
4392 * java/awt/event/ActionEvent.java: Finished.
4393 * java/awt/event/MouseMotionListener.java: New file.
4394 * java/awt/event/MouseListener.java: New file.
4395 * java/awt/event/ItemListener.java: New file.
4396 * java/awt/event/InputMethodListener.java: New file.
4397 * java/awt/event/ContainerListener.java: New file.
4398 * java/awt/event/FocusListener.java: New file.
4399 * java/awt/event/ComponentListener.java: New file.
4400 * java/awt/event/AWTEventListener.java: New file.
4401 * java/awt/event/AdjustmentListener.java: New file.
4403 2000-04-08 Anthony Green <green@cygnus.com>
4405 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4406 check when we have to.
4408 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4411 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4414 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4415 inline hasMoreElements.
4417 2000-04-05 Tom Tromey <tromey@cygnus.com>
4419 * configure: Rebuilt.
4420 * configure.in: Recognize --enable-java-awt.
4421 (AWT): New conditional.
4422 * Makefile.in: Rebuilt.
4423 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4425 (libgcjawt_la_SOURCES): New macro.
4426 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4427 (libgcjawt_la_DEPENDENCIES): Likewise.
4428 (libgcjawt_la_LIBADD): Likewise.
4429 (libgcjawt_la_LDFLAGS): Likewise.
4430 (libgcj.zip): Depend on cond_java_awt_source_files
4431 (cond_awt_java_source_files): New macro.
4432 (MOSTLYCLEANFILES): Added awto_files.
4433 (awto_files): New macro. Use where javao_files used.
4434 (nat_headers): Use cond_awt_java_source_files.
4436 2000-04-04 Tom Tromey <tromey@cygnus.com>
4438 * Makefile.in: Rebuilt.
4439 * Makefile.am (awt_java_source_files): Added AWTException.java.
4440 * java/awt/AWTException.java: New file.
4442 2000-04-03 Tom Tromey <tromey@cygnus.com>
4444 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4445 commentary from Alex.
4447 * Makefile.in: Rebuilt.
4448 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4451 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4453 * configure: Rebuilt.
4454 * configure.in: Add --disable-jvmpi.
4455 * include/config.h.in: Rebuilt.
4456 * acconfig.h: Add ENABLE_JVMPI.
4458 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4459 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4460 (_Jv_JVMPI_Notify_THREAD_END): New define.
4461 (_Jv_JVMPI_Notify_THREAD_END): New define.
4462 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4463 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4464 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4466 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4469 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4470 (finish_): Generate JVMPI thread end events.
4471 (run_): Generate JVMPI thread start events.
4472 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4473 preloaded JNI library.
4474 Include JVMPI headers if necessary.
4475 (run): Generate JVMPI thread start events.
4477 * boehm.cc: Define GC_disable and GC_enable.
4478 (_Jv_DisableGC): New function.
4479 (_Jv_EnableGC): New function.
4480 (disable_gc_mutex): Declare.
4481 * nogc.cc (_Jv_DisableGC): New function.
4482 (_Jv_EnableGC): New function.
4484 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4485 (_Jv_JVMPI_Interface): Define.
4486 (jvmpiEnableEvent): New function.
4487 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4489 * include/jvmpi.h: New file.
4491 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4493 * Makefile.in: New #defines and friends for Thread.h.
4494 * Makefile.am: Ditto.
4495 * posix-threads.cc: (struct starter): Remove `object'.
4496 (_Jv_CondWait): Use interruptable condition variables and new
4497 recursive mutexes. New return codes on interrupt or non-ownership
4499 (_Jv_CondNotify): Ditto.
4500 (_Jv_CondNotifyAll): Ditto.
4501 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4502 the target thread by signaling its wait condition.
4503 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4504 not the starter struct. Initialize wait_mutex and wait_cond.
4505 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4507 (_Jv_MutexUnlock): Ditto.
4508 (really_start): Set info->data->thread from pthread_self() to work
4509 around a race condition. Destroy wait_mutex and wait_cond when run()
4511 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4512 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4514 startable_flag: New private field.
4515 (Thread): Initialize `startable_flag'.
4516 (toString): Check for null thread group.
4517 * java/lang/natThread.cc: (struct natThread): New fields
4518 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4519 (class locker): Removed.
4520 (initialize_native): Initialize `join_cond' and `join_mutex'.
4521 (interrupt): Now just calls _Jv_ThreadInterrupt().
4522 (join): Simplified. Just wait on the target thread's join condition.
4523 (finish_): Remove join list code. Unset thread group. Signal
4524 potential joiners by notifying the dying threads join_cond.
4525 (start): Check for illegal restarts.
4526 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4528 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4529 #defines and #ifdefs.
4530 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4531 `wait_mutex', `next'.
4532 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4533 directly mapping to pthread_cond_t.
4534 (struct _Jv_Mutex_t): New recursive implementation.
4535 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4536 _Jv_HaveCondDestroy: Never define this for posix-threads.
4537 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4538 (_Jv_CondNotifyAll): Ditto.
4539 (_Jv_MutexLock): Ditto.
4540 (_Jv_MutexUnlock): Ditto.
4541 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4542 (_Jv_MutexDestroy): Ditto.
4543 (_Jv_CondDestroy): Removed.
4544 (_Jv_PthreadGetMutex): Removed.
4545 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4546 error. Add a FIXME about this.
4547 (_Jv_CondNotifyAll): Ditto.
4548 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4549 _JV_NOT_OWNER on other errors. Add FIXME.
4551 2000-03-26 Tom Tromey <tromey@cygnus.com>
4553 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4555 (call): Don't throw exception here.
4557 2000-03-26 Tom Tromey <tromey@cygnus.com>
4559 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4560 * interpret.cc: Use SIZEOF_VOID_P.
4561 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4562 (_Jv_loadLong): Likewise.
4563 (_Jv_storeDouble): Likewise.
4564 * configure: Rebuilt.
4565 * configure.in: Check size of void*.
4567 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4569 2000-03-26 Hans Boehm <boehm@acm.org>
4571 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4572 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4574 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4575 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4576 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4577 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4579 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4580 (FFI_RAW_SIZE): Likewise.
4581 (_Jv_InterpMethod::ncode): Use them.
4582 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4583 STORED): Define differently on a 64 bit machine.
4584 (continue1): Use ffi_java_raw_call when appropriate.
4586 2000-03-24 Warren Levy <warrenl@cygnus.com>
4588 * java/math/BigInteger.java(divide): Handle the special case when
4589 dividing by 1 and the high bit of the dividend is set.
4590 (setShiftRight): Handle case when count == 0.
4592 2000-03-24 Warren Levy <warrenl@cygnus.com>
4594 * java/awt/Font.java(isBold): Fix syntax error.
4596 * java/awt/Frame.java(postEvent): ditto.
4597 * java/awt/Menu.java(postEvent): ditto.
4598 * java/awt/MenuBar.java(postEvent): ditto.
4599 * java/awt/Toolkit.java(init): Included a stub.
4601 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4603 * java/awt/Event.java: Add all the event type constants.
4604 (Event): Implemented constructors.
4605 (controlDown): Implemented.
4606 (metaDown): Implemented.
4607 (paramString): Stubbed.
4608 (shiftDown): Implemented.
4609 (toString): Implemented.
4610 (translate): Implemented.
4612 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4614 * java/lang/natClass.cc (isInstance): Initialize `this'.
4615 (isAssignableFrom): Initialize `this' and `klass'.
4616 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4617 implemented by any loaded class, so return false.
4618 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4619 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4621 2000-03-19 Warren Levy <warrenl@cygnus.com>
4623 * java/awt/Color.java: Specified java.io for Serializable.
4624 * java/awt/Toolkit.java: Imported java.net.URL.
4626 2000-03-19 Warren Levy <warrenl@cygnus.com>
4628 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4630 2000-03-16 Warren Levy <warrenl@cygnus.com>
4632 * java/awt/Color.java: New file.
4633 * java/awt/Graphics.java: New file.
4634 * java/awt/Image.java: New file.
4635 * java/awt/Paint.java: New file.
4636 * java/awt/PaintContext.java: New file.
4637 * java/awt/Transparency.java: New file.
4638 * java/util/Collection.java: New file.
4639 * java/util/Comparator.java: New file.
4640 * java/util/Iterator.java: New file.
4641 * java/util/List.java: New file.
4642 * java/util/ListIterator.java: New file.
4643 * Makefile.am: Added above new files.
4644 * Makefile.in: Rebuilt.
4646 * java/awt/Font.java (PLAIN): New field.
4648 (ITALIC): New field.
4649 (ROMAN_BASELINE): New field.
4650 (CENTER_BASELINE): New field.
4651 (HANGING_BASELINE): New field.
4655 (pointSize): New field.
4656 (Font): Implemented constructor.
4657 (isPlain): Implemented method.
4658 (isBold): Implemented method.
4659 (isItalic): Implemented method.
4660 (getName): Implemented method.
4661 (getStyle): Implemented method.
4662 (getSize): Implemented method.
4663 (getSize2D): Implemented method.
4665 * java/awt/Frame.java (getFont): Stubbed.
4666 (postEvent): Stubbed.
4668 * java/awt/Menu.java (postEvent): Stubbed.
4669 * java/awt/MenuBar.java (getFont): Stubbed.
4670 (postEvent): Stubbed.
4671 * java/awt/Toolkit.java (getImage): Added abstract method.
4673 2000-03-15 Tom Tromey <tromey@cygnus.com>
4675 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4677 * prims.cc (win32_exception_handler): Reformatted.
4679 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4680 (_Jv_HaveMutexDestroy): Likewise.
4682 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4684 * java/io/natFileDescriptorWin32.cc: New file.
4685 * java/io/natFileWin32.cc: New file.
4686 * java/net/natInetAddress.cc: Added conditional inclusion of
4687 Windows / Winsock headers.
4688 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4689 inclusion of Windows / Winsock headers.
4690 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4691 Windows / Winsock headers.
4692 * include/win32-signal.h: New file.
4693 * include/win32-threads.h: New file.
4694 * win32-threads.cc: New file.
4695 * exception.cc (win32_get_restart_frame): New function.
4696 * prims.cc (win32_exception_handler): New function.
4697 (main_init) Performs Winsock initialisation.
4698 (main_init) Installs exeception handler.
4700 2000-03-14 Tom Tromey <tromey@cygnus.com>
4702 * jni.cc (mangled_name): Fixed assertion.
4703 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4704 turned assert into actual failure.
4706 2000-03-09 Warren Levy <warrenl@cygnus.com>
4708 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4709 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4710 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4712 2000-03-09 Warren Levy <warrenl@cygnus.com>
4714 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4715 * java/security/DigestException.java: New file.
4716 * java/security/GeneralSecurityException.java: New file.
4717 * java/security/InvalidAlgorithmParameterException.java: New file.
4718 * java/security/InvalidKeyException.java: New file.
4719 * java/security/InvalidParameterException.java: New file.
4720 * java/security/Key.java: New file.
4721 * java/security/KeyException.java: New file.
4722 * java/security/KeyPair.java: New file.
4723 * java/security/KeyPairGenerator.java: New file.
4724 * java/security/KeyPairGeneratorSpi.java: New file.
4725 * java/security/NoSuchProviderException.java: New file.
4726 * java/security/PrivateKey.java: New file.
4727 * java/security/Provider.java: New file.
4728 * java/security/PublicKey.java: New file.
4729 * java/security/SecureRandom.java: New file.
4730 * java/security/Security.java: New file.
4731 * java/security/Signature.java: New file.
4732 * java/security/SignatureException.java: New file.
4733 * java/security/interfaces/DSAKey.java: New file.
4734 * java/security/interfaces/DSAParams.java: New file.
4735 * java/security/interfaces/DSAPrivateKey.java: New file.
4736 * java/security/interfaces/DSAPublicKey.java: New file.
4737 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4738 * java/security/interfaces/RSAPrivateKey.java: New file.
4739 * java/security/interfaces/RSAPublicKey.java: New file.
4740 * java/security/spec/AlgorithmParameterSpec.java: New file.
4741 * java/security/spec/InvalidKeySpecException.java: New file.
4742 * java/security/spec/InvalidParameterSpecException.java: New file.
4743 * java/security/spec/KeySpec.java: New file.
4744 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4745 * java/security/spec/RSAPrivateKeySpec.java: New file.
4746 * java/security/spec/RSAPublicKeySpec.java: New file.
4747 * Makefile.am: Added above java.security files.
4748 * Makefile.in: Rebuilt.
4750 * java/security/MessageDigest.java: Rewritten.
4751 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4753 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4757 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4759 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4760 _Jv_PrepareConstantTimeTables.
4761 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4762 classes should have an IDT, so don't return if klass is an array
4765 2000-03-08 Tom Tromey <tromey@cygnus.com>
4767 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4768 of `void' to be created.
4770 2000-03-08 Warren Levy <warrenl@cygnus.com>
4772 * java/math/BigInteger.java(signum): Handle zero properly.
4774 2000-03-07 Tom Tromey <tromey@cygnus.com>
4776 * All files: Updated copyright information.
4777 * COPYING: New file.
4778 * COPYING.LIB: Removed.
4779 * LIBGCJ_LICENSE: We now use GPL + special exception.
4781 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4783 * resolve.cc (_Jv_SearchMethodInClass): New function.
4784 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4785 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4787 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4789 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4790 (struct _Jv_ifaces): New declaration.
4791 JV_CLASS: New macro definition.
4792 (getComponentType): Relocate below isArray() for inlining.
4793 (getModifiers): Declare `inline'.
4794 (getSuperclass): Ditto.
4796 (isPrimitive): Ditto.
4797 (_Jv_IsAssignableFrom): New prototype.
4798 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4800 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4801 Check for JV_STATE_DONE before invoking initializeClass().
4802 (_Jv_PrepareConstantTimeTables): New prototype.
4803 (_Jv_GetInterfaces): Ditto.
4804 (_Jv_GenerateITable): Ditto.
4805 (_Jv_GetMethodString): Ditto.
4806 (_Jv_AppendPartialITable): Ditto.
4807 (_Jv_FindIIndex): Ditto.
4808 depth, ancestors, idt: New class fields.
4810 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4811 inline function `_Jv_IsAssignableFrom'. Use that function.
4812 (isInstance): Declare `inline'.
4813 (initializeClass): Get lock on class before checking `state'. Unlock
4814 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4816 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4817 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4818 class->depth and ancestor table.
4819 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4820 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4821 _Jv_IsAssignableFrom.
4822 (_Jv_CheckArrayStore): Ditto.
4823 (_Jv_LookupInterfaceMethodIdx): New function.
4824 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4825 (_Jv_PrepareConstantTimeTables): New function.
4826 (_Jv_IndexOf): Ditto.
4827 (_Jv_GetInterfaces): Ditto.
4828 (_Jv_GenerateITable): Ditto.
4829 (_Jv_GetMethodString): Ditto.
4830 (_Jv_AppendPartialITable): Ditto.
4831 iindex_mutex, iindex_mutex_initialized: New static fields.
4832 (_Jv_FindIIndex): New function.
4834 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4836 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4837 (_Jv_CheckArrayStore): Ditto.
4838 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4839 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4840 Moved to gcj/array.h.
4841 (_Jv_Realloc): New function.
4843 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4845 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4846 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4847 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4848 JvNewDoubleArray): Implementations moved from prims.cc and
4851 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4853 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4855 2000-03-06 Tom Tromey <tromey@cygnus.com>
4857 * jni.cc (MARK_NONE): New define.
4858 (MARK_USER): Likewise.
4859 (MARK_SYSTEM): Likewise.
4860 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4862 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4863 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4864 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4865 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4867 (call): Use MARK_SYSTEM.
4868 (_Jv_GetJNIEnvNewFrame): New function.
4869 (_Jv_LookupJNIMethod): New function.
4870 (_Jv_JNI_PopSystemFrame): New function.
4871 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4873 2000-03-05 Tom Tromey <tromey@cygnus.com>
4875 Fix for PR libgcj/43:
4876 * include/Makefile.in: Rebuilt.
4877 * include/Makefile.am (include_HEADERS): New define.
4879 2000-03-05 Anthony Green <green@redhat.com>
4881 * gcj/javaprims.h ("Java"): Remove FirstThread.
4883 * configure.host: Fix __NO_MATH_INLNES botch.
4885 * Makefile.in: Rebuilt.
4886 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4887 (gnu/gcj/runtime/FirstThread.h): Moved.
4888 (ordinary_java_source_files): Move FirstThread.java.
4889 * prims.cc: Deal with FirstThread movement.
4891 (_Jv_RunMain): Ditto.
4893 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4894 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4896 2000-03-05 Warren Levy <warrenl@cygnus.com>
4898 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4899 Handle null addresses.
4901 2000-03-04 Anthony Green <green@redhat.com>
4903 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4906 2000-03-04 Anthony Green <green@redhat.com>
4908 * configure: Rebuilt.
4909 * configure.in (ZLIBTESTSPEC): New macro.
4910 (GCTESTSPEC): New macro.
4911 (LIBGCJTESTSPEC): New macro.
4912 * libgcj-test.spec.in: New file.
4914 2000-03-02 Tom Tromey <tromey@cygnus.com>
4916 * include/java-interp.h: Don't include MethodInvocation.h.
4917 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4918 * Makefile.in: Rebuilt.
4919 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4920 (ordinary_java_source_files): Don't mention
4921 MethodInvocation.java.
4922 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4923 * interpret.cc (MethodInvocation::continue1): Removed.
4924 (run): Handle exceptions here.
4925 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4927 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4929 (defineClass2): Removed.
4931 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4933 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4935 (hack_call): Removed.
4937 * java/lang/Class.h (Class): Removed hackRunInitializers,
4939 * java/lang/natClass.cc (hackRunInitializers): Removed.
4940 (initializeClass): Catch exceptions here.
4941 Include ExceptionInInitializerError.h.
4942 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4945 * java/lang/Object.h (Object): Don't mention hack12_6.
4946 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4948 * java/lang/Object.java (hack12_6): Removed.
4950 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4951 (start): Use run_, not run__.
4952 * java/lang/Thread.java (run_): Renamed from run__; old run_
4955 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4956 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4957 (_Jv_JNI_DefineClass): Likewise.
4958 (_Jv_JNI_ThrowNew): Likewise.
4959 (_Jv_JNI_AllocObject): Likewise.
4960 (_Jv_JNI_GetAnyMethodID): Likewise.
4961 (_Jv_JNI_CallAnyMethodV): Likewise.
4962 (_Jv_JNI_CallAnyMethodA): Likewise.
4963 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4964 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4965 (_Jv_JNI_GetAnyFieldID): Likewise.
4966 (_Jv_JNI_NewString): Likewise.
4967 (_Jv_JNI_NewStringUTF): Likewise.
4968 (_Jv_JNI_GetStringUTFChars): Likewise.
4969 (_Jv_JNI_NewObjectArray): Likewise.
4970 (_Jv_JNI_NewPrimitiveArray): Likewise.
4971 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4972 (_Jv_JNI_GetStringRegion): Likewise.
4973 (_Jv_JNI_GetStringUTFRegion): Likewise.
4974 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4975 (_Jv_JNI_MonitorEnter): Likewise.
4976 (_Jv_JNI_MonitorExit): Likewise.
4977 (_Jv_JNI_ToReflectedField): Likewise.
4978 (_Jv_JNI_ToReflectedMethod): Likewise.
4979 (_Jv_JNI_RegisterNatives): Likewise.
4980 (_Jv_JNI_AttachCurrentThread): Likewise.
4981 (_Jv_JNI_DestroyJavaVM): Likewise.
4983 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4985 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4986 error caused by the incorrect casting of a long to an int.
4988 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4990 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4991 SIGSEV caused by use of the wrong instance variable.
4993 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4995 * java/io/File.java (File(String, String)): For dirPath, treat an
4996 empty String the same as `null'.
4998 2000-02-26 Anthony Green <green@cygnus.com>
5000 * gnu/gcj/io/MimeTypes.java: Test for null.
5002 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5003 (JNI_GetCreatedJavaVMs): Remove compiler warning.
5005 * java/net/URLConnection.java: Update copyright notice.
5007 2000-02-25 Tom Tromey <tromey@cygnus.com>
5009 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5012 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5014 * java/net/URLConnection.java (initializeDateFormats): New
5016 (getHeaderFieldDate): Call initializeDateFormats if required.
5017 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5019 Fix for PR libgcj/38.
5021 2000-02-24 Warren Levy <warrenl@cygnus.com>
5023 * java/math/BigInteger.java(ival): Made private.
5027 2000-02-20 Anthony Green <green@cygnus.com>
5029 * Makefile.in: Rebuilt.
5030 * Makefile.am (ordinary_java_source_files): Add
5031 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5033 * scripts/MakeDefaultMimeTypes.java: New file.
5034 * scripts/mime.types: New file.
5035 * scripts/classes.pl: Moved from top level.
5036 * classes.pl: Moved to scripts directory.
5038 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5040 * gnu/gcj/io/MimeTypes.java: New file.
5041 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5043 2000-02-20 Tom Tromey <tromey@cygnus.com>
5045 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5047 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5049 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5052 2000-02-18 Tom Tromey <tromey@cygnus.com>
5054 * include/jvm.h (_Jv_GetJavaVM): Declare.
5055 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5056 (_Jv_MethodBase::get_method): New method.
5057 (_Jv_JNIMethod::set_function): New method.
5058 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5059 (_Jv_JNI_RegisterNatives): New function.
5060 (_Jv_JNIFunctions): Updated for new functions.
5061 (_Jv_GetJavaVM): New function.
5062 (_Jv_JNI_GetJavaVM): Use it. Now static.
5063 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5064 is already a Java thread but does not have a JNIEnv yet.
5066 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5069 2000-02-17 Tom Tromey <tromey@cygnus.com>
5071 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5074 2000-02-16 Tom Tromey <tromey@cygnus.com>
5076 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5078 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5079 (_Jv_JNI_NewObject): Likewise.
5080 (_Jv_JNI_NewObjectA): Likewise.
5081 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5082 as "return" type to _Jv_CallAnyMethodA.
5083 (_Jv_JNI_CallAnyMethodA): Likewise.
5084 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5086 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5089 2000-02-15 Tom Tromey <tromey@cygnus.com>
5091 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5093 (init_cif): Added `rtype_p' argument.
5094 * include/java-interp.h (class _Jv_MethodBase): Added
5096 (class _Jv_InterpMethod): Removed args_raw_size.
5097 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5098 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5099 class pointer as well as the ordinary arguments.
5101 * jni.cc (mangled_name): Skip leading `(' in signature.
5103 * jni.cc (add_char): Added missing `else'.
5105 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5108 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5112 * java/lang/natRuntime.cc (_load): Include library path with
5115 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5118 * java/lang/natThread.cc (dumpStack): Removed.
5119 * java/lang/Thread.java (dumpStack): Implemented.
5121 2000-02-15 Tom Tromey <tromey@cygnus.com>
5123 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5124 with `lib' for loadLibrary. Fixes PR gcj/150.
5126 2000-02-14 Warren Levy <warrenl@cygnus.com>
5128 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5130 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5134 (modPow): Rewritten to not use the naive, slow, brute force approach.
5135 (isProbablePrime): Implemented.
5136 (testBit): Implemented.
5137 (flipBit): Implemented.
5138 (getLowestSetBit): Implemented.
5140 2000-02-16 Anthony Green <green@redhat.com>
5142 * configure.host: Use the same options for i386 and i486 as we do
5145 2000-02-12 Tom Tromey <tromey@cygnus.com>
5147 * java/io/File.java (createTempFile): Use low bits from counter,
5150 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5152 * THANKS: More thanks.
5154 2000-02-11 Tom Tromey <tromey@cygnus.com>
5156 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5157 astore instruction. From Hans Boehm.
5159 2000-02-11 Warren Levy <warrenl@cygnus.com>
5161 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5162 (BigInteger(String)): New constructor.
5163 (not): Rewritten using version from Kawa's BitOps class.
5164 (valueOf): New private methods from Kawa's BitOps class.
5171 (andNot): Implemented.
5172 (clearBit): Implemented.
5173 (setBit): Implemented.
5174 (bitCount): Implemented.
5175 (toByteArray): Implemented.
5177 2000-02-11 Tom Tromey <tromey@cygnus.com>
5179 * java/io/File.java (nextValue): Now synchronized.
5181 2000-02-10 Tom Tromey <tromey@cygnus.com>
5183 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5184 * java/io/FileDescriptor.java (EXCL): New static field.
5185 * java/io/File.java (tmpdir): New static field.
5186 (createTempFile): New method.
5187 (nextValue): New method.
5188 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5191 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5192 (jboolean): Declare as an attributed int, not a bool.
5193 (_Jv_func): Declare differently for C.
5195 * gnu/gcj/jni/natNativeThread.cc: New file.
5196 * gnu/gcj/jni/NativeThread.java: New file.
5197 * java/lang/Thread.java (data): Now a RawData.
5198 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5200 * Makefile.in: Rebuilt.
5201 * Makefile.am (java/lang/Thread.h): New target.
5202 (ordinary_java_source_files): Added NativeThread.java.
5203 (nat_source_files): Added natNativeThread.cc.
5204 * java/lang/natThread.cc: Include <jni.h>
5205 (struct natThread): Added `jni_env' field.
5206 (_Jv_GetCurrentJNIEnv): New function.
5207 (_Jv_SetCurrentJNIEnv): Likewise.
5208 (initialize_native): Initialize jni_env.
5210 * jni.cc (ThreadGroupClass): New define.
5211 (_Jv_JNI_InvokeFunctions): New structure.
5212 (JNI_GetCreatedJavaVMs): New function.
5213 (the_vm): New global.
5214 (JNI_GetDefaultJavaVMInitArgs): New function.
5215 Include NativeThread.h.
5216 (NativeThreadClass): New define.
5217 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5218 (_Jv_JNI_DestroyJavaVM): New function.
5219 (_Jv_JNI_AttachCurrentThread): New function.
5220 (_Jv_JNI_DetachCurrentThread): New function.
5221 (_Jv_JNI_GetEnv): New function.
5222 (JNI_CreateJavaVM): New function.
5223 (_Jv_JNI_GetJavaVM): New function.
5224 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5225 * include/jni.h (JavaVMAttachArgs): New structure.
5226 (JNI_EDETACHED): New define.
5227 (JNI_EVERSION): Likewise.
5228 (JavaVM): Define properly.
5229 (struct JNIInvokeInterface): New structure.
5230 (class _Jv_JavaVM): New class.
5231 (JNI_OnLoad, JNI_OnUnload): Declare.
5232 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5233 JNI_GetCreatedJavaVMs): Declare.
5234 (JavaVMInitArgs): New typedef.
5235 (JavaVMOption): Likewise.
5236 (JNI_ERR): New define.
5239 2000-02-10 Andrew Haley <aph@cygnus.com>
5241 * interpret.cc: Don't include fdlibm.h.
5242 Replace #if with #ifdef throughout.
5243 Declare extern __ieee754_fmod.
5244 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5246 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5247 Search class hierarchy for superclass vtable.
5249 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5250 off the end of a pointer list.
5252 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5256 2000-02-09 Tom Tromey <tromey@cygnus.com>
5258 * java/lang/natRuntime.cc (_load): Call add_library.
5259 (loadLibraryInternal): Likewise.
5261 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5262 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5263 (Output_iconv::finalize): Likewise.
5265 2000-02-08 Tom Tromey <tromey@cygnus.com>
5267 * java/util/Properties.java (setProperty): New method.
5268 (store): New method.
5270 2000-02-07 Tom Tromey <tromey@cygnus.com>
5272 * java/lang/Runtime.java (_load): Declare.
5273 (load, loadLibrary): Wrote in terms of _load.
5274 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5276 (loadLibrary): Likewise.
5278 (_load): New method.
5279 (loadLibrary, load): Removed.
5281 * jni.cc (ThrowableClass): New define.
5282 (_Jv_JNI_Throw): Check argument.
5283 (_Jv_JNI_ThrowNew): Likewise.
5284 (wrap_value): Don't wrap object if it is NULL.
5285 (_Jv_JNI_DefineClass): Use wrap_value.
5286 (_Jv_JNI_FindClass): Likewise.
5287 (_Jv_JNI_GetSuperclass): Likewise.
5288 (_Jv_JNI_ExceptionOccurred): Likewise.
5289 (_Jv_JNI_AllocObject): Likewise.
5290 (_Jv_JNI_GetObjectClass): Likewise.
5291 (_Jv_JNI_NewString): Likewise.
5292 (_Jv_JNI_NewStringUTF): Likewise.
5293 (_Jv_JNI_NewObjectArray): Likewise.
5294 (_Jv_JNI_GetObjectArrayElement): Likewise.
5295 (_Jv_JNI_NewPrimitiveArray): Likewise.
5296 (_Jv_JNI_ToReflectedField): Likewise.
5297 (_Jv_JNI_ToReflectedMethod): Likewise.
5298 (_Jv_JNI_AllocObject): Check argument.
5299 (_Jv_JNI_NewObjectV): Likewise.
5300 (_Jv_JNI_NewObject): Likewise.
5301 (_Jv_JNI_NewObjectA): Likewise.
5302 (_Jv_JNI_GetObjectClass): Likewise.
5303 (_Jv_JNI_GetField): Likewise.
5304 (_Jv_JNI_SetField): Likewise.
5306 * interpret.cc (PUSHL): Don't use expression statement.
5311 * jni.cc (add_char): Conditional on INTERPRETER.
5312 (mangled_name): Likewise.
5314 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5316 (class _Jv_JNIMethod): Likewise.
5318 2000-02-04 Warren Levy <warrenl@cygnus.com>
5320 * Makefile.am: Added MPN.java and BigInteger.java.
5321 * Makefile.in: Rebuilt.
5322 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5324 * java/math/BigInteger.java: New file. Based primarily on
5325 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5327 2000-02-04 Tom Tromey <tromey@cygnus.com>
5329 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5331 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5332 if the method is native.
5333 * resolve.cc (ncode): Don't handle native methods.
5334 (_Jv_JNIMethod::ncode): New method.
5335 (_Jv_PrepareClass): Handle native methods.
5336 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5337 Include AbstractMethodError.h.
5338 (add_char): New function.
5339 (mangled_name): Likewise.
5340 * include/java-interp.h (class _Jv_JNIMethod): New class.
5341 (class _Jv_MethodBase): New class.
5342 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5343 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5346 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5347 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5348 libraries): New globals.
5349 (add_library): New function.
5350 (_Jv_FindSymbolInExecutable): New function.
5352 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5355 2000-02-04 Andrew Haley <aph@cygnus.com>
5357 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5358 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5359 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5360 printStackTrace to printRawStackTrace.
5362 2000-02-03 Tom Tromey <tromey@cygnus.com>
5364 * java/util/Calendar.java (toString): New method.
5365 * java/util/SimpleTimeZone.java (clone): New method.
5366 (toString): New method.
5367 * java/util/TimeZone.java (clone): New method.
5368 * java/text/SimpleDateFormat.java (clone): New method.
5369 * java/text/NumberFormat.java (clone): New method.
5370 (equals): New method.
5371 * java/text/Format.java (clone): New method.
5372 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5374 (clone): New method.
5375 * java/text/DateFormat.java (clone): New method.
5376 * java/text/Collator.java (clone): New method.
5378 2000-02-03 Tom Tromey <tromey@cygnus.com>
5380 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5383 2000-02-01 Tom Tromey <tromey@cygnus.com>
5385 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5386 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5387 constructing the closure if the function is native.
5388 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5389 a template function, #if'd out, or static.
5390 Include <java-interp.h>.
5392 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5394 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5396 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5397 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5399 (wrap_value): New function.
5400 (_Jv_JNI_CallAnyMethodV): Use it.
5401 (_Jv_JNI_CallAnyMethodA): Likewise.
5402 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5403 (_Jv_JNI_GetStaticField): Likewise.
5405 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5406 (_Jv_JNI_GetStaticField): Likewise.
5408 2000-01-31 Tom Tromey <tromey@cygnus.com>
5410 * prims.cc (_Jv_MallocUnchecked): New function.
5411 (main_init): Call _Jv_JNI_Init.
5412 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5413 (_Jv_JNI_Init): Declare.
5414 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5416 (_Jv_JNI_NewGlobalRef): New function.
5417 (_Jv_JNI_DeleteGlobalRef): New function.
5418 (_Jv_JNI_DeleteLocalRef): New function.
5419 (_Jv_JNI_conversion_call): Initialize and clear local reference
5421 (_Jv_JNI_NewLocalRef): New function.
5422 (struct _Jv_JNI_LocalFrame): New structure.
5423 (_Jv_JNI_PushLocalFrame): New function.
5424 (_Jv_JNI_EnsureLocalCapacity): New function.
5425 (FRAME_SIZE): New define.
5426 (_Jv_JNI_GetStringChars): Mark string, not characters.
5427 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5428 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5429 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5431 (_Jv_JNI_DefineClass): Make return value a local ref.
5432 (_Jv_JNI_FindClass): Likewise.
5433 (_Jv_JNI_GetSuperclass): Likewise.
5434 (_Jv_JNI_ExceptionOccurred): Likewise.
5435 (_Jv_JNI_AllocObject): Likewise.
5436 (_Jv_JNI_GetObjectClass): Likewise.
5437 (_Jv_JNI_CallAnyMethodV): Likewise.
5438 (_Jv_JNI_NewString): Likewise.
5439 (_Jv_JNI_NewStringUTF): Likewise.
5440 (_Jv_JNI_NewObjectArray): Likewise.
5441 (_Jv_JNI_GetObjectArrayElement): Likewise.
5442 (_Jv_JNI_ToReflectedField): Likewise.
5443 (_Jv_JNI_ToReflectedMethod): Likewise.
5444 (_Jv_JNIFunctions): Updated table for new functions.
5445 (_Jv_JNI_Init): New function.
5446 (mark_for_gc): Wrote.
5447 (unmark_for_gc): Wrote.
5448 * include/jni.h (struct JNINativeInterface): Removed name from
5449 PopLocalFrame parameter.
5450 (class _Jv_JNIEnv): Added `locals' field.
5452 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5454 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5457 2000-01-30 Tom Tromey <tromey@cygnus.com>
5459 * include/config.h.in: Rebuilt.
5460 * acconfig.h (HAVE_ICONV): Define.
5461 * configure: Rebuilt.
5462 * configure.in: Check for `iconv' function.
5463 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5464 no specific encoder exists.
5465 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5466 no specific encoder exists.
5467 * Makefile.in: Rebuilt.
5468 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5470 (nat_source_files): Added natIconv.cc.
5471 * gnu/gcj/convert/natIconv.cc: New file.
5472 * gnu/gcj/convert/Input_iconv.java: New file.
5473 * gnu/gcj/convert/Output_iconv.java: New file.
5475 2000-01-28 Tom Tromey <tromey@cygnus.com>
5477 * Makefile.in: Rebuilt.
5478 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5480 2000-01-26 Tom Tromey <tromey@cygnus.com>
5482 * gcj/method.h (JvNumMethods): Moved from Class.h.
5483 (JvGetFirstMethod): Likewise.
5484 * java/lang/Class.h (Object): Updated decl of
5485 _Jv_JNI_ToReflectedField.
5486 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5487 * Makefile.in: Rebuilt.
5488 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5489 argument of _Jv_JNI_ToReflectedField.
5490 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5492 (java/lang/reflect/Method.h): Likewise.
5493 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5495 (jweak): New typedef.
5496 (struct JNINativeInterface): Correctly declare remaining entries.
5497 * jni.cc: Include Class.h, ClassLoader.h.
5498 (_Jv_JNI_FindClass): New function.
5499 (_Jv_JNI_DefineClass): New function.
5500 (_Jv_JNI_conversion_call): New function.
5501 (_Jv_JNI_FindClass): Use current class loader to find class.
5502 (_Jv_JNI_ExceptionCheck): New function.
5503 (_Jv_JNI_FromReflectedField): Now static.
5504 (MethodClass): New define.
5505 (_Jv_JNI_FromReflectedMethod): New function.
5506 (_Jv_JNI_ToReflectedMethod): Likewise.
5508 (_Jv_JNI_IsAssignableFrom): Renamed.
5509 (_Jv_JNI_GetStringRegion): New function.
5510 Include StringIndexOutOfBoundsException.h.
5511 (_Jv_JNI_GetStringUTFRegion): New function.
5512 (_Jv_JNIFunctions): Updated for new functions.
5513 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5514 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5515 (_Jv_JNI_GetStringCritical): New function.
5516 (_Jv_JNI_ReleaseStringCritical): Likewise.
5517 (get_throwable): Removed.
5518 (GCJ_JV_JNIENV_FRIEND): Removed.
5519 (__GCJ_JNI_IMPL__): Define.
5522 * resolve.cc (get_ffi_type_from_signature): Handle case where
5525 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5527 * interpret.cc (run): Don't call println.
5528 Don't include PrintStream.h.
5530 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5531 nameIndex. Use "jint" as type for boffset.
5532 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5534 (Class): Likewise. Also changed type of method_count,
5535 vtable_method_count, size_in_bytes, field_count,
5536 static_field_count, interface_count.
5537 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5540 2000-01-21 Tom Tromey <tromey@cygnus.com>
5542 * java/lang/reflect/natConstructor.cc (newInstance): Use
5544 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5545 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5546 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5549 (invoke): Use _Jv_CallAnyMethodA.
5551 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5552 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5554 (struct _Jv_Method): Added getNextMethod method.
5555 (JvNumMethods): New function.
5556 (JvGetFirstMethod): Likewise.
5557 * gcj/field.h (JvGetFirstStaticField): New function.
5558 (JvNumStaticFields): Likewise.
5559 (getNextField): Renamed from getNextInstanceField.
5560 (struct _Jv_Field): New method getClass.
5561 * jni.cc: Wrote many new functions.
5562 * include/jni.h (JNI_TRUE): Define.
5563 (JNI_FALSE): Likewise.
5564 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5565 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5566 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5567 (jfieldID, jmethodID): Likewise.
5568 (JNI_COMMIT, JNI_ABORT): New defines.
5569 (JNINativeMethod): New struct.
5570 (struct JNINativeInterface): Correctly declared more entries.
5571 (class _Jv_JNIEnv): Added `ex' member.
5572 (JNI_VERSION_1_1): New define.
5573 (JNI_VERSION_1_2): Likewise.
5575 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5576 getNextInstanceField.
5578 2000-01-20 Tom Tromey <tromey@cygnus.com>
5580 * resolve.cc (StringClass): Removed.
5581 * defineclass.cc (StringClass): Removed.
5583 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5587 2000-01-19 Tom Tromey <tromey@cygnus.com>
5589 * interpret.cc (PC_REGISTER_ASM): Removed.
5591 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5592 From Bryce McKinlay.
5594 * All files: Updated copyright to reflect Cygnus purchase.
5596 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5598 * configure: Rebuilt.
5599 * configure.in: Recognize --disable-interpreter.
5601 2000-01-18 Andrew Haley <aph@cygnus.com>
5603 * name-finder.cc (lookup): Check for dladdr function.
5604 acconfig.h (HAVE_DLADDR): Add.
5605 configure.in: Check for HAVE_DLADDR
5607 include/config.h.in: Rebuilt.
5609 2000-01-17 Andrew Haley <aph@cygnus.com>
5611 * prims.cc (_Jv_RunMain): Set the name of this executable.
5613 2000-01-17 Tom Tromey <tromey@cygnus.com>
5615 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5616 when backtrace can't be computed.
5618 * configure: Rebuilt.
5619 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5621 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5622 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5623 (_Jv_FindClassInCache): Likewise.
5624 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5625 (findSystemClass): Try to load class from compiled module.
5627 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5628 (loadLibrary): Likewise.
5629 (lt_preloaded_symbols): Define.
5630 (loadLibraryInternal): New method.
5631 * include/config.h.in: Rebuilt.
5632 * acconfig.h (USE_LTDL): Added.
5633 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5634 (INCLUDES): Added $(INCLTDL).
5635 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5636 (libgcj_la_LIBADD): Likewise.
5637 * aclocal.m4, configure: Rebuilt.
5638 * configure.in: Added libltdl support.
5640 2000-01-15 Tom Tromey <tromey@cygnus.com>
5642 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5644 2000-01-14 Andrew Haley <aph@cygnus.com>
5646 * java/lang/natThrowable.cc: New file.
5648 * java/lang/Throwable.java (fillInStackTrace): Make native.
5649 (printStackTrace): Call native method to do this.
5650 (Throwable): Call fillInStackTrace.
5651 (stackTrace): New variable.
5653 * include/jvm.h: Add _Jv_ThisExecutable functions.
5655 * prims.cc: (_Jv_execName): New variable.
5656 (catch_segv): Call fillInStackTrace.
5658 (_Jv_ThisExecutable): New functions.
5659 (JvRunMain): Set the name of this executable.
5661 * Makefile.am: Add java/lang/natThrowable.cc.
5663 * Makefile.in: Rebuilt.
5665 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5667 * configure.in: Force link with __frame_state_for in
5668 FORCELIBGCCSPEC. Add new checks for backtrace.
5669 * include/config.h.in: Rebuilt.
5671 * name-finder.cc: New file.
5672 * include/name-finder.h: New file.
5674 2000-01-16 Anthony Green <green@cygnus.com>
5676 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5679 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5681 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5683 2000-01-13 Tom Tromey <tromey@cygnus.com>
5685 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5686 not system loader, as initiating loader.
5688 2000-01-11 Tom Tromey <tromey@cygnus.com>
5690 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5691 HP/UX. From David Scott Urban.
5693 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5695 * java/lang/natMath.cc (pow): Cast args to `double', not
5698 (IEEEremainder): Likewise.
5699 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5700 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5702 2000-01-09 Anthony Green <green@cygnus.com>
5704 * java/lang/natString.cc (init): Test for overflow condition
5705 during out of bounds check.
5706 (getChars): Throw StringIndexOutOfBoundsException, not
5707 ArrayIndexOutOfBoundsException.
5709 (regionMatches): Obey case option during string comparison.
5711 * configure.host (ligcj_interpreter): New variable. Enable
5712 interpreter by default on IA-32.
5713 * configure.in: Examine libgcj_interpreter.
5714 * configure: Rebuilt.
5716 2000-01-07 Tom Tromey <tromey@cygnus.com>
5718 * mauve-libgcj: Don't disable ClassTest.
5720 * java/lang/natClass.cc (getClasses): Wrote.
5722 2000-01-06 Tom Tromey <tromey@cygnus.com>
5724 * java/lang/natClass.cc (_getConstructors): Correctly check
5725 whether method name is the init name.
5726 (getMethod): Look at accflags on method in `klass', not `this'.
5728 2000-01-05 Tom Tromey <tromey@cygnus.com>
5730 * java/lang/natClass.cc (getMethod): Compute offset relative to
5731 `klass's methods table, not `this's table.
5733 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5734 In unwrapping/widening case, check whether `k' is null, not
5735 whether it is primitive. Initialize `num' from `argelts', not
5736 `paramelts'. Correct create and pass arguments to ffi_call.
5737 Don't let presence of `this' argument affect index used to look in
5739 (COPY): Set appropriate element in `values' vector.
5741 * java/lang/natClass.cc: Include <gcj/method.h>.
5743 * java/lang/Class.h (_getMethods): Correctly declare as private,
5746 * java/lang/Class.h (_getMethods): Declare.
5747 * java/lang/Class.java (_getMethods): Declare.
5748 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5749 (getDeclaredClasses): Always return empty array.
5750 (_getMethods): New method.
5751 (getMethods): Wrote.
5752 (getDeclaredMethod): Return `rmethod'.
5753 (finit_name): New global.
5754 (getDeclaredMethods): Check for finit_name.
5755 (_getMethods): Likewise.
5756 (getMethod): Only return public methods.
5758 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5759 jboolean and select correct ffi type on that basis.
5760 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5761 Constructor call always has `void' return type.
5763 2000-01-04 Tom Tromey <tromey@cygnus.com>
5765 * java/lang/Class.h (getSignature): Updated.
5766 * java/lang/Class.java (getSignature): Updated.
5767 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5769 (getConstructor): Ensure constructor is public.
5770 (_getConstructors): Check for public-ness of constructor when
5771 `declared' is false, not when it is true.
5773 2000-01-04 Warren Levy <warrenl@cygnus.com>
5775 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5777 (receive): Set the sender's address in the DatagramPacket.
5779 2000-01-04 Tom Tromey <tromey@cygnus.com>
5781 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5782 declaring class as return_type argument to
5783 _Jv_CallNonvirtualMethodA.
5784 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5785 constructor case, create object and use it as `this' argument.
5786 * java/lang/Class.h (_getConstructors): Declare.
5787 (_getFields): Declare.
5788 * java/lang/Class.java (getConstructors): Wrote.
5789 (_getConstructors): New native method.
5790 (getDeclaredConstructors): Wrote.
5791 (_getFields): Declare new native method.
5792 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5794 (getMethod): Work correctly when class is primitive.
5795 (getDeclaredMethods): Likewise. Compute offset using `method',
5797 (getDeclaredMethod): Likewise.
5798 (getConstructor): Wrote.
5799 (ConstructorClass): New define.
5800 (getDeclaredConstructor): Wrote.
5801 (_getConstructors): New method.
5802 (_getFields): New method.
5805 * Makefile.in: Rebuilt.
5806 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5808 * prims.cc: Remove `#pragma implementation'.
5809 * gcj/array.h: Remove `#pragma interface'.
5811 * prims.cc (_Jv_equaln): New function.
5812 * java/lang/Class.java (getSignature): Declare.
5813 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5814 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5816 (getSignature): New method.
5817 (getDeclaredMethod): Wrote.
5819 Include StringBuffer.h.
5820 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5821 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5823 (getSignature): Declare.
5824 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5825 (_Jv_equaln): Declare.
5826 (_Jv_CallNonvirtualMethodA): Declare.
5827 * Makefile.in: Rebuilt.
5828 * Makefile.am (nat_source_files): Added natConstructor.cc.
5829 (java/lang/reflect/Constructor.h): New target.
5830 * java/lang/reflect/natConstructor.cc: New file.
5831 * java/lang/reflect/Constructor.java (newInstance): Now native.
5832 (declaringClass): Renamed from decl_class.
5833 (offset): Renamed from index.
5834 (getType): New native method.
5835 (getModifiers): Now native.
5836 (getParameterTypes): Call getType if required.
5837 (hashCode): Include hash code from declaring class.
5838 (modifiers): Removed.
5839 (toString): Call getType if required.
5840 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5841 * java/lang/reflect/natMethod.cc (hack_call): New method.
5842 Removed `#if 0' around FFI code.
5843 Include <gnu/gcj/RawData.h>.
5844 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5845 IllegalArgumentException when argument object and class disagree.
5846 (_Jv_GetTypesFromSignature): New function.
5848 (ObjectClass): New define.
5849 (_Jv_CallNonvirtualMethodA): New function.
5850 * java/lang/reflect/Method.java (hack_trampoline): New method.
5851 (hack_call): New native method.