1 2001-03-23 Per Bothner <per@bothner.com>
3 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
4 check for errors, since we don't want to throw exception on
5 overflow/underflow. Instead, trim whitespace, and then check that
6 _strtod_r uses up all the rest of the string.
8 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
9 ancestors array is invalid for interfaces, so do that *after*
10 check that the target type is not an interface.
12 2000-03-23 Jeff Sturm <jsturm@one-point.com>
14 * prims.cc (_Jv_FindClassFromSignature): Check return of
15 recursive call. Do not abort on invalid signature; return NULL
18 2001-03-22 Tom Tromey <tromey@redhat.com>
20 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
21 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
23 * include/jvm.h (_Jv_ResolveField): Declare.
24 * include/java-interp.h (_Jv_ResolveField): Don't declare.
25 * resolve.cc (_Jv_ResolveField): No longer conditional on
28 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
30 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
32 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
33 to a temporary file, then invoke libtool with the -objectlist
35 (libgcjx.la): Likewise.
36 * Makefile.in: Rebuilt.
38 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
40 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
42 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
44 * jni.cc (add_char): Handle `.' like `/'.
46 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
48 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
49 initialize if exception_types is null.
50 * java/lang/reflect/Constructor.java: Likewise.
51 * java/lang/reflect/natConstructor.cc (getType): Initialize
52 exception_types to an empty Object array.
54 2001-03-21 Tom Tromey <tromey@redhat.com>
57 * configure.in (GCJFLAGS): Subst.
58 * Makefile.in: Rebuilt.
59 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
60 (gij_LDFLAGS): Likewise.
61 (JC1FLAGS): Added GCJFLAGS and removed -g.
63 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
64 read/write case. Fixes PR libgcj/2338.
66 2001-03-20 Warren Levy <warrenl@redhat.com>
68 * java/util/TimeZone.java: Sync up with Classpath. Includes new
69 and corrected SimpleTimeZone's for the timezones hash table.
71 2001-03-19 Per Bothner <per@bothner.com>
73 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
74 "canonicalize" "../../xxx" to "/xxx".
76 2001-03-19 Mark Wielaard <mark@klomp.org>
78 * java/util/ArrayList.java: Remove RCS keywords from comments
79 * java/util/BasicMapEntry.java: idem
80 * java/util/Dictionary.java: idem
81 * java/util/HashSet.java: idem
83 * java/util/EventObject.java: reindent
84 * java/util/Properties.java: idem
85 * java/util/SortedMap.java: idem
87 * java/util/Enumeration.java: Merge with Classpath
88 * java/util/EventListener.java: idem
89 * java/util/Observable.java: idem
90 * java/util/Observer.java: idem
91 * java/util/Stack.java: idem
93 2001-03-17 Tom Tromey <tromey@redhat.com>
95 * java/lang/natString.cc (rehash): Don't bother with memset;
96 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
98 (UNMASK_PTR): New macro.
99 (intern): Unmask pointer before returning it. Register finalizer
101 (unintern): Handle case where
102 (MASK_PTR): New macro.
103 (PTR_MAKSED): Likewise.
104 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
106 2001-03-01 Andrew Haley <aph@redhat.com>
108 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
109 stackTrace buffer to a correctly aligned pointer array.
111 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
113 * java/lang/Runtime.java (_exit): Declare new package-private native.
114 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
115 without a security manager check.
116 (exit): Call _exit after security check.
117 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
119 * java/lang/System.java (setSecurityManager): If a security manager
120 is already in place, call checkPermission.
121 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
122 throws an exception, try to deal with it gracefully.
123 * java/lang/ExceptionInInitializerError.java (printStackTrace):
124 Only try to print the subordinate stack trace if "exception" is set.
125 Print our class name first.
127 2001-03-08 Tom Tromey <tromey@redhat.com>
129 * java/io/ObjectStreamClass.java (setUID): Don't write interface
130 info for array classes.
131 Fixes PR libgcj/1971.
133 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
135 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
138 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
140 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
141 instead of the new JDK1.2 API. This is simpler and makes
142 back-porting the classes to JDK1.1 trivial.
143 (readObject): likewise.
145 2001-03-01 Per Bothner <per@bothner.com>
147 Changes merged from Kawa's gnu.math.
148 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
149 (rshift(int[],int[],int,int): Removed - not needed.
150 (gcd): Use rshift0 rather than rshift.
151 * java/math/BigInteger.java (setShiftRight): Likewise.
152 (divide): Simplify by using rshift0.
153 (divide): Zero-extend results if high-order bit set.
155 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
157 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
160 2001-02-23 Per Bothner <per@bothner.com>
162 Change to sometimes include class name in ClassFormatError message.
163 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
164 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
165 boolean instead of throwing ClassFormatError on failure.
166 (throw_class_format_error): Change static function to method.
167 (_Jv_ClassReader): New inline methods verify_identifier,
168 two overloads of verify_classname, verify_field_signature, and
169 verify_method_signature
170 * include/java-interp.h: Update declarations to return bool.
171 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
172 ClassFormatError since _Jv_VerifyClassName now returns bool.
174 2001-02-23 Per Bothner <per@bothner.com>
176 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
177 c++filt to select java-style output.
179 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
181 Fix for PR java/2040:
182 * java/util/HashMap.java (HashMap): Don't throw exception for
183 loadFactor > 1. Add exception messages.
184 * java/util/Hashtable.java (Hashtable): Likewise.
186 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
188 Disable libgcjx by default.
189 * configure.in: Add support for --enable-java-awt configure option.
190 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
191 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
192 * Makefile.in: Rebuilt.
193 * configure: Rebuilt.
195 2001-02-20 Tom Tromey <tromey@redhat.com>
197 * java/io/PipedWriter.java (flush): Throw exception if stream
199 * java/io/OutputStreamWriter.java (write): Throw exception if
201 (writeChars): Don't throw exception if stream closed.
202 * java/io/CharArrayWriter.java (closed): New field.
204 (flush): Throw exception if stream closed.
205 (reset): Synchronize on correct lock. Allow stream to be
207 (toCharArray, toString, writeTo): Synchronize.
208 (write): Throwe exception if stream closed.
209 * java/io/BufferedWriter.java (close): Clear `buffer'.
210 (flush): Throw IOException if stream is closed.
213 2001-02-16 Tom Tromey <tromey@cygnus.com>
215 * java/lang/ThreadGroup.java (activeCount): Only include threads
217 (enumerate): Likewise.
219 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
221 * java/lang/Integer.java (getInteger): Return default argument if
222 property is not set. Don't call decode with null argument.
223 * java/lang/Long.java (getLong): Likewise.
225 * java/io/CharArrayReader.java (CharArrayReader): Throw
226 IllegalArgumentException if constructor arguments are illegal.
227 (ready): Return false if no more characters can be read.
228 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
230 2001-02-17 Mark Wielaard <mark@klomp.org>
232 * java/util/TimerTask.java: New version from Classpath.
234 2001-02-17 Mark Wielaard <mark@klomp.org>
236 Remerge with Classpath
237 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
238 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
239 (readByte): Use convertToByte().
240 (readChar): Use convertToChar().
241 (readInt): Use convertToInt().
242 (readLong): Use convertToLong().
243 (readShort): Use convertToShort().
244 (readUnsignedByte): Use convertToUnsignedByte().
245 (readUnsignedShort): Use convertToUnsignedShort().
246 (readUTF): Use convertToUTF().
248 (convertToBoolean): Resurrected.
249 (convertToByte): Ditto.
250 (convertToChar): Ditto.
251 (convertToInt): Ditto.
252 (convertToLong): Ditto.
253 (convertToShort): Ditto.
254 (convertToUnsignedByte): Ditto.
255 (convertToUnsignedShort): Ditto.
256 (convertToUTF): Ditto.
258 2001-02-17 Mark Wielaard <mark@klomp.org>
262 2001-02-17 Mark Wielaard <mark@klomp.org>
264 * java/io/DataInputStream.java: update copyright notice
265 * java/io/PrintWriter.java: idem
266 * java/io/Reader.java: idem
267 * java/io/StreamTokenizer.java: idem
268 * java/io/StringReader.java: idem
269 * java/lang/reflect/ReflectPermission.java: idem
271 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
273 * java/util/TreeSet.java (clone): Made subclass safe, use
274 super.clone(), not new.
275 * java/util/TreeMap.java (clone): Likewise.
277 * java/util/TreeMap.java (nil): Made non-final.
278 (clone): Create new nil node for copy.
280 * java/util/HashSet.java (clone): Made subclass safe, use
281 super.clone(), not new.
283 2001-02-14 Andrew Haley <aph@redhat.com>
285 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
288 2001-02-15 Anthony Green <green@redhat.com>
290 * defineclass.cc: Don't include alloca.h.
291 (prepare_pool_entry): Convert alloca to __builtin_alloca.
292 * interpret.cc (run_normal): Ditto.
294 * java/lang/natDouble.cc (parseDouble): Ditto.
296 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
298 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
300 * java/util/Collections.java (ReverseComparator): New static class.
301 (reverseOrder): Return static instance of ReverseComparator.
303 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
304 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
305 Rectangle.clone(), not Object.clone().
307 * java/util/HashSet.java (clone): Remove try/catch.
309 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
310 * java/util/Collection.java: Likewise.
311 * java/util/Comparator.java: Likewise.
312 * java/util/Dictionary.java: Likewise.
313 * java/util/Iterator.java: Likewise.
314 * java/util/ListIterator.java: Likewise.
315 * java/util/Map.java: Likewise.
316 * java/util/Set.java: Likewise.
318 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
320 * java/util/TreeMap.java: New file.
321 * java/util/TreeSet.java: New file.
322 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
323 * Makefile.in: Rebuilt.
324 * java/util/HashSet.java (clone): Use constructor instead of calling
326 * java/util/SortedSet.java: Sync with classpath.
327 * java/util/HashMap.java (hash): Use if statement instead of ternary,
330 * java/lang/natClass.cc (getSignature): Don't try to dereference
331 param_types if it is null. Instead, take this to mean "no parameters".
332 * java/lang/TreeMap.java (TreeIterator.next): Throw
333 NoSuchElementException in preference to ConcurrentModificationException.
334 (TreeIterator.remove): Throw IllegalStateException in preference to
335 ConcurrentModificationException.
336 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
337 throw a NoSuchElementException.
338 (SubMap.lastKey): Likewise.
340 2001-02-13 Tom Tromey <tromey@redhat.com>
342 * java/io/PipedReader.java (ready): Throw IOException if pipe
344 * java/io/FilterReader.java (close): Don't clear `in'.
345 * java/io/CharArrayReader.java (mark): Throw IOException if stream
347 (read, ready, reset, skip): Added exception message.
348 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
349 Perform checkStatus check inside synchronized block.
351 2001-02-13 Tom Tromey <tromey@redhat.com>
353 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
355 2001-02-13 Tom Tromey <tromey@redhat.com>
357 Fix for PR libgcj/1351:
358 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
360 Include Thread.h and InterruptedIOException.h.
362 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
364 * java/io/BlockDataException.java: Removed.
365 * java/io/ObjectInputStream.java (readObject): Throw
366 StreamCorruptedException, not BlockDataException.
367 * Makefile.am: Remove BlockDataException.
368 * Makefile.in: Rebuild.
370 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
371 Tom Tromey <tromey@redhat.com>
373 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
376 2001-02-09 Tom Tromey <tromey@redhat.com>
378 * java/util/Timer.java: New version from Classpath.
380 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
382 * java/lang/Double.java (doubleToRawLongBits): Now native.
383 * java/lang/Float.java (floatToRawIntBits): Likewise.
384 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
385 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
387 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
389 * java/io/File.java (java.net): Imported.
390 (getAbsoluteFile): Added.
391 (getCanonicalPath): Likewise.
394 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
396 * java/lang/Byte.java: Remove redundant instanceof and null checks.
397 * java/lang/Integer.java: Likewise.
398 * java/lang/Long.java: Likewise.
399 * java/lang/Short.java: Likewise.
400 * java/lang/Double.java: Likewise.
401 (doubleToRawLongBits): New method.
402 * java/lang/Float.java: As above.
403 (floatToRawIntBits): New method.
405 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
406 IOException if stream closed.
408 2001-02-08 Tom Tromey <tromey@redhat.com>
410 * java/lang/Float.java (parseFloat): New method.
412 2001-02-08 Tom Tromey <tromey@redhat.com>
414 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
415 * java/io/InputStreamReader.java (ready, read): Throw IOException
416 if stream has been closed.
418 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
420 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
421 Change sources.redhat.com and sourceware.cygnus.com references to
424 2001-02-07 Tom Tromey <tromey@redhat.com>
426 Fix for PR libgcj/1906:
427 * java/text/MessageFormat.java (setLocale): Use named class
430 (format(Object,StringBuffer,FieldPosition)): Special case if
431 argument is an Object[].
433 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
435 * java/util/Arrays.java: Removed "cmp" methods.
436 (qsort): Don't use "cmp".
439 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
441 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
442 sort. Fix for PR java/1895.
444 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
446 * configure.host: Use sjlj-exceptions for Alpha.
448 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
450 * libgcj.spec.in: Don't force static libgcc into the executable.
451 * configure.in (FORCELIBGCCSPEC): Removed.
452 * configure: Rebuilt.
454 2001-01-31 Tom Tromey <tromey@redhat.com>
456 * Makefile.in: Rebuilt.
457 * Makefile.am (LTCXXCOMPILE): New macro.
459 2001-01-26 Andrew Haley <aph@redhat.com>
461 (INIT_FPE): Use a direct system call to set the handler.
463 2001-01-27 Richard Henderson <rth@redhat.com>
465 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
467 2001-01-27 Tom Tromey <tromey@redhat.com>
469 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
470 native interface structure.
472 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
474 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
476 (read (byte[], int, int)): Only call readNextBlock() if the block
477 buffer would actually be overrun. Increment blockDataPosition.
478 (callReadMethod): Propagate exceptions from invocation target.
479 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
480 exceptions from invocation target.
482 2001-01-26 Tom Tromey <tromey@redhat.com>
484 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
485 to internal representation.
486 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
487 _Jv_FindClassFromSignature.
489 2001-01-26 Warren Levy <warrenl@redhat.com>
491 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
492 and timezone if they are available on the system.
494 2001-01-24 Tom Tromey <tromey@redhat.com>
496 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
498 2001-01-24 Tom Tromey <tromey@redhat.com>
500 * Makefile.in: Rebuilt.
501 * Makefile.am (c_source_files): Added sf_fabs.c.
502 * java/lang/sf_fabs.c: New file.
504 2001-01-19 Warren Levy <warrenl@redhat.com>
506 * java/text/SimpleDateFormat.java (format): Compute hour for cases
507 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
508 correctly. Adjust properly from 0-23 clock hour.
510 2001-01-17 Mark Wielaard <mark@klomp.org>
512 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
514 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
516 * java/lang/Class.h (isInterface): Move implementation from
517 natClass.cc. Declare inline.
518 (Class): Add default constructor.
519 * java/lang/Object.h: Update comments.
520 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
521 initialize superclass, saving a call if super is already initialized.
523 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
525 * prims.cc (init_prim_class): Deleted.
526 (DECLARE_PRIM_TYPE): Rewritten.
527 * java/lang/Class.h (stdio.h): Include removed.
528 (stddef.h): Included.
529 (java/lang/reflect/Modifier.h): Likewise.
530 (Class): Contructor now takes arguments, initializes fields.
531 (initializePrim): Prototype deleted.
532 * java/lang/natClass.cc (initializePrim): Deleted.
534 2001-01-16 Warren Levy <warrenl@redhat.com>
536 * java/math/BigInteger.java: Update Copyright year.
538 2001-01-16 Hans Boehm <hans_boehm@hp.com>
540 * java/math/BigInteger.java (setShiftRight): Only do negative shift
543 2001-01-14 Mark Wielaard <mark@klomp.org>
544 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
545 (decode): Merge comments with Classpath, don't throw Exception
547 2001-01-12 Tom Tromey <tromey@redhat.com>
549 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
553 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
554 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
555 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
556 * gnu/awt/gtk/GtkLabelPeer.java: New file.
557 * gnu/awt/gtk/GtkButtonPeer.java: New file.
559 * java/lang/natSystem.cc: Include locale.h if it exists.
560 * configure: Rebuilt.
561 * configure.in: Check for locale.h.
563 2001-01-11 Tom Tromey <tromey@redhat.com>
565 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
566 (Cursor(int), getPredefinedCursor): Throw exception if argument
569 2001-01-03 Tom Tromey <tromey@redhat.com>
571 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
572 (getLocationOnScreen): Wrote.
574 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
576 * Makefile.am: Re-enable dependencies.
577 * Makefile.in: Rebuilt.
579 2001-01-10 Warren Levy <warrenl@redhat.com>
581 * java/math/BigDecimal.java (divide): Fixed comment.
583 2001-01-10 Warren Levy <warrenl@redhat.com>
585 Fix for PR libgcj/1596:
586 * java/math/BigDecimal.java (divide): Check newScale for validity.
587 Ensure that BigInteger.pow() is called with a non-negative value.
588 (setScale (int)): New public method.
589 (setScale (int,int)): New public method.
591 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
593 Fix for PR libgcj/1338:
594 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
595 commentChar. Fixed typos in comments.
597 2001-01-08 Warren Levy <warrenl@redhat.com>
599 Fix for PR libgcj/1411:
600 * Makefile.am: Removed java/util/natTimeZone.cc.
601 * Makefile.in: Rebuilt.
602 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
603 missing localized timezone names.
604 * java/lang/System.java (getDefaultTimeZoneId): New private method.
605 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
606 (init_properties): Set user.timezone property.
607 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
608 default timezone names; removed non-standard ones. Use standard
610 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
612 * java/util/TimeZone.java: Add standard ID names per JCL; removed
614 (getDefaultTimeZoneId): Removed.
616 * java/util/natTimeZone.cc: Removed.
618 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
620 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
621 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
622 (_Jv_GetArrayClass): New inline function.
623 (arrayclass): New field.
624 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
625 _Jv_GetArrayElementFromElementType.
626 (_Jv_NewPrimArray): Ditto.
627 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
628 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
629 Set Modifier::ABSTRACT.
630 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
631 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
632 Now synchronized. Array classes are now referenced from
633 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
634 Set array classes' accessibility flags correctly. Optimize so that
635 all array classes share the same IDT.
636 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
637 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
638 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
639 in superclasses from overwriting classes own fields.
640 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
641 Modifier::isAbstract().
642 (null_idt): New static field.
643 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
645 (_Jv_IndexOf): Made inline.
646 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
648 2001-01-08 Tom Tromey <tromey@redhat.com>
650 Fix for PR java/1586:
651 * Makefile.in: Rebuilt.
652 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
654 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
656 * Makefile.am: Use the new "-M -MF" option for generating dependencies
657 from the c++ compiler.
658 * Makefile.in: Rebuilt.
660 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
662 All files with updated copyright.
663 * prims.cc (class _Jv_PrimClass): Removed.
664 (init_prim_class): New function.
665 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
666 `_Jv_PrimClass' in primitive type declarations. Assign to the
667 value returned by `init_prim_class.'
668 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
669 primitive type declarations.
670 (JvPrimClass): Cast to `jclass' removed.
671 * java/lang/Class.h (Class): New constructor.
672 (Class): New copy constructor.
673 (initializePrim): New prototype.
674 (_Jv_PrimClass): Field removed.
675 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
676 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
677 (class java::lang::Object): `finalize' moved up front.
678 * java/lang/natClass.cc
679 (isAssignableFrom): Turned outline.
680 (isInstance): Likewise.
681 (isInterface): Likewise, fixed indentation.
682 (initializePrim): New function.
684 2001-01-07 Anthony Green <green@redhat.com>
686 * Makefile.am (texinfo): Add texinfo target for generating texinfo
688 * Makefile.in: Rebuilt.
690 * scripts/TexinfoDoclet.java: New file.
692 * doc/java-applet.texi, doc/java-lang-reflect.texi,
693 doc/java-awt-color.texi, doc/java-lang.texi,
694 doc/java-awt-datatransfer.texi, doc/java-math.texi,
695 doc/java-awt-event.texi, doc/java-net.texi,
696 doc/java-awt-geom.texi, doc/java-security-spec.texi,
697 doc/java-awt-image.texi, doc/java-security.texi,
698 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
699 doc/java-text.texi, doc/java-beans-beancontext.texi,
700 doc/java-util-jar.texi, doc/java-beans.texi,
701 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
702 doc/java-lang-ref.texi: New files.
704 2001-01-07 Anthony Green <green@redhat.com>
706 * java/net/URLConnection.java (setDoOutput): URLConnection's may
707 be used for both input and output, so don't clear doInput.
709 * java/lang/StringBuffer.java: Fix comments.
711 2001-01-06 Anthony Green <green@redhat.com>
713 * java/beans/PropertyDescriptor.java: Fix comment.
714 * java/io/PushbackReader.java: Fix comment.
715 * java/io/ObjectStreamClass.java: Fix comment.
716 * java/io/DataInputStream.java: Fix comment.
717 * java/io/PipedInputStream.java: Fix comments.
718 * java/io/PipedReader.java: Fix comments.
719 * java/sql/DatabaseMetaData.java: Fix comments.
721 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
723 * java/io/PipedReader: Synchronize on "lock" instead of this.
725 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
727 * java/lang/Thread.java: Update comment.
729 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
730 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
731 * java/io/PipedReader: New implementation based on new
733 * java/io/PipedWriter: Updated to match new PipedReader.
735 2001-01-03 Tom Tromey <tromey@redhat.com>
737 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
738 (getViewportSize): Insets include scrollbar size.
739 (doLayout): Finished.
740 (getScrollPosition): Wrote.
741 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
743 2001-01-02 Tom Tromey <tromey@redhat.com>
745 * java/awt/ScrollPane.java: Wrote.
746 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
749 * java/awt/Panel.java (Panel()): Fixed.
751 * java/awt/Component.java (isShowing): Return false if no peer
752 exists, and true if component is visible and no parent exists.
753 (getLocationOnScreen): Wrote.
754 (getPreferredSize): Removed FIXME comment.
755 (getMinimumSize): Likewise.
756 (getAlignmentX, getAlignmentY): Wrote.
758 (requestFocus): Wrote.
759 (transferFocus): Wrote.
760 (findNextFocusComponent): New method.
763 (enableEvents): Call setEventMask on the peer.
765 * java/awt/Container.java (list): Use super.list() to print self.
766 (findNextFocusComponent): New method.
767 (setLayout): Call invalidate.
768 (findComponentAt): Wrote.
770 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
772 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
773 the correct versions of various linuxthreads functions get linked.
774 * Makefile.in: Rebuilt.
775 * java/lang/natThread.cc (finalize_native): New static function. Call
776 _Jv_ThreadDestroyData.
777 (initialize_native): Register finalizer for "data".
778 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
779 (_Jv_ThreadDestroyData): New prototype.
780 * include/win32-threads.h: Ditto.
781 * include/no-threads.h: Ditto.
782 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
783 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
784 move mutex and condition variable destroy code from:
785 (really_start): ...here.
786 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
787 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
788 (_Jv_ThreadDestroyData): Implemented.
789 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
790 (_Jv_AllocArray): Ditto.
792 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
794 * java/sql/DriverManager.java (getConnection): Don't set user/password
797 2000-12-27 Warren Levy <warrenl@redhat.com>
799 Fix for PR libgcj/1358:
800 * java/lang/System.java: Update Copyright date properly.
801 * java/util/Calendar.java: Fix typo in comment.
802 (set): Set 24-hour clock hour instead of 12-hour clock hour.
803 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
804 initialize times. Spec says to set H:M:S values to zero only if
806 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
807 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
808 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
809 timezones and GMT offsets, being careful to account for units of
810 milliseconds vs. seconds.
812 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
814 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
815 not be assigned to Object.
817 Fix for PR libgcj/1516:
818 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
820 (can_widen): Declared inline. Remove redundant checks for void
821 arguments and char->short conversion. Add special case for boolean
823 (ffi_type): Declared inline.
824 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
826 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
828 * java/sql/SQLWarning.java: Fixed typo in comment.
830 2000-12-26 Tom Tromey <tromey@redhat.com>
832 * java/awt/MenuItem.java (paramString): Now protected.
834 * java/awt/MenuShortcut.java: Implements Serializable.
836 * java/awt/MenuBar.java: Rewrote from scratch.
838 * java/awt/MenuComponent.java (removeNotify): Wrote.
839 Implements Serializable.
841 * java/awt/GridBagConstraints.java (GridBagConstraints): New
844 * java/awt/CheckboxMenuItem.java: Wrote.
846 2000-12-25 Tom Tromey <tromey@redhat.com>
848 * java/awt/MenuContainer.java: Fixed typo.
850 * Makefile.in: Rebuilt.
851 * Makefile.am (awt_java_source_files): Added SystemColor.java.
852 * java/awt/SystemColor.java: New file.
854 * java/awt/Color.java (rgba): Now package-private.
856 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
858 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
861 * java/awt/MenuItem.java (addNotify): New method.
862 (MenuItem(String,MenuShortcut)): New constructor.
863 (setLabel): Notify peer of change.
864 (setEnabled): Likewise.
866 * java/awt/GridLayout.java (toString): New method.
868 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
869 (FlowLayout): Check for LEADING and TRAILING.
870 (setAlignment): Likewise.
871 (layoutContainer): Handle component orientation.
873 * java/awt/Component.java (orientatin): New field.
874 (setComponentOrientation): Wrote.
875 (getComponentOrientation): Wrote.
877 * java/awt/Event.java (Event): Implements Serializable.
878 (consumed): New field for serialization.
879 * java/awt/Dimension.java (Dimension): Implements Serializable.
880 * java/awt/Cursor.java (Cursor): Implements Serializable.
881 * java/awt/Container.java (Container): No longer abstract.
883 * java/awt/Choice.java: Wrote.
884 * java/awt/Checkbox.java: Wrote.
885 * java/awt/ItemSelectable.java: Documented.
886 * java/awt/CheckboxGroup.java: Wrote.
888 * java/awt/CardLayout.java (layoutContainer): Directly use fields
892 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
894 * java/io/FileDescriptor.java: Initialize fd to -1.
895 Remove default constructor.
897 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
899 * java/lang/mprec.h: Change C9X reference to refer to C99.
901 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
903 * java/lang/Throwable.java (trace_enabled): New static field.
904 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
905 trace_enabled not set.
906 * prims.cc (main_init): Turn off trace_enabled while creating
907 default exception objects.
909 2000-12-21 Tom Tromey <tromey@redhat.com>
911 * java/beans/PropertyChangeListener.java: Extends EventListener.
912 * java/beans/VetoableChangeListener.java: Extends EventListener.
914 * java/util/zip/Deflater.java (update, init): Now private.
916 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
918 * java/util/BasicMapEntry.java: Re-added.
919 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
920 (putAll): Test for BasicMapEntry.
921 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
922 (putAll): Test for BasicMapEntry.
923 Change references from `HashMap.Entry' to `Entry' in various places.
924 * Makefile.am: Add BasicMapEntry.java.
925 * Makefile.in: Rebuilt.
927 2000-12-18 Warren Levy <warrenl@redhat.com>
929 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
930 need to set timezone to a valid non-null value. Partial fix for
933 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
935 * java/awt/Window.java (addNotify): Remove peer casting hack now that
937 * java/awt/Button.java (addNotify): Likewise.
938 * java/awt/Label.java (addNotify): Likewise.
939 * java/awt/Panel.java (addNotify): Likewise.
940 * java/awt/Scrollbar.java (addNotify): Likewise.
941 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
942 Remove redundant null checks.
944 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
946 * COPYING: Update to current
947 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
948 to 19yy as example year in copyright notice).
950 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
952 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
953 end-of-stream if avail_in is 0.
955 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
957 * java/util/ArrayList.java (data): Declare transient.
958 (serialPersistantFields): Removed.
959 (readObject): Use defaultReadObject(), not readFields().
960 (writeObject): Use defaultWriteObject(), not writeFields().
962 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
964 * java/util/Hashtable.java (put): Remove `last' variable.
965 Link new entry to head of list.
966 * java/util/HashMap.java (put): Ditto.
968 2000-12-15 Tom Tromey <tromey@redhat.com>
970 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
971 loader to Class.forName.
973 2000-12-14 Tom Tromey <tromey@redhat.com>
975 * java/util/ResourceBundle.java
976 (getBundle(String,Locale,ClassLoader)): New method.
977 (trySomeGetBundle): Added `loader' argument.
978 (partialGetBundle): Likewise.
980 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
981 maximumFractionDigits, maximumIntegerDigits,
982 minimumFractionDigits, minimumIntegerDigits): Now
985 * java/lang/Thread.java (checkAccess): Now final.
987 * java/lang/RuntimePermission.java: Class now final.
989 * java/io/StringWriter.java (StringWriter(int)): Now public.
991 * java/io/SerializablePermission.java (legal_names): Now private.
993 * java/lang/Character.java: Updated UnicodeBlock constants.
994 * scripts/blocks.pl: Special case private use and surrogate
997 2000-12-12 Tom Tromey <tromey@redhat.com>
999 * Makefile.in: Rebuilt.
1000 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1002 (GCJCOMPILE): Use it.
1005 2000-12-11 Tom Tromey <tromey@redhat.com>
1007 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1008 New static final fields.
1010 * scripts/classes.pl (scan): Skip lines with leading `*'.
1011 Fix for PR libgcj/378.
1013 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1015 * configure.in: Remove check for -fuse-divide-subroutine.
1016 * configure: Rebuilt.
1018 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1020 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1022 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
1024 * Makefile.am: Add HashSet.java and java/lang/ref classes.
1025 Remove BasicMapEntry.java and Bucket.java.
1026 * Makefile.in: Rebuilt.
1027 * java/util/HashMap.java: Rewritten.
1028 * java/util/HashSet.java: Imported from classpath.
1029 * java/util/WeakHashMap.java: Imported from classpath.
1030 * java/util/Hashtable.java: Rewritten based on new HashMap code.
1031 * java/util/Bucket.java: Deleted.
1032 * java/util/BasicMapEntry.java: Deleted.
1033 * java/util/Collections.java (search): Use a for-loop, not iterator
1035 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1036 of elements in source.
1037 (max): Use a for-loop.
1039 (reverse): Keep track of positions instead of using Iterator's
1040 nextIndex() and previousIndex().
1041 (shuffle(List)): Initialize defaultRandom if required using
1042 double-check thread safety idiom. Call two-argument shuffle method
1043 using defaultRandom.
1044 (defaultRandom): New field.
1045 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1046 using previousIndex() and nextIndex().
1047 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1048 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1049 * java/util/AbstractMap.java (toString): Use StringBuffer.
1050 * java/lang/ref/PhantomReference.java: Imported from classpath.
1051 * java/lang/ref/SoftReference.java: Ditto.
1052 * java/lang/ref/Reference.java: Ditto.
1053 * java/lang/ref/WeakReference.java: Ditto.
1054 * java/lang/ref/ReferenceQueue.java: Ditto.
1056 2000-12-10 Richard Henderson <rth@redhat.com>
1058 * configure.host: Recognize alpha*-*, not alphaev6-*.
1060 2000-12-09 Anthony Green <green@redhat.com>
1062 * configure.host: Enable interpreter for Alpha.
1064 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
1066 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1067 (ZIP): Points at fastjar instead of zip.
1068 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1069 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1070 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1071 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1072 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1073 ($(x_java_source_files:.java=.class):): Likewise.
1074 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1076 (CLEANFILES): libgcj.jar replaces libgcj.zip.
1077 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1078 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1079 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1080 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1081 gnu/gcj/runtime/VMClassLoader.h:,
1082 java/io/ObjectInputStream$$GetField.h:,
1083 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1084 (Makefile.in): Rebuilt.
1086 2000-12-08 Tom Tromey <tromey@redhat.com>
1089 * configure: Rebuilt.
1090 * configure.in: Use echo, not `:', to create .d files.
1092 2000-12-08 Warren Levy <warrenl@redhat.com>
1094 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1095 NullPointerException so proper check of offset can be done.
1097 2000-12-08 Warren Levy <warrenl@redhat.com>
1099 * java/io/FileInputStream.java (close): Check if the fd is valid.
1100 * java/io/RandomAccessFile.java (close): Ditto.
1101 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1102 * java/net/PlainSocketImpl.java (close): Ditto.
1104 2000-12-06 Tom Tromey <tromey@redhat.com>
1106 * java/awt/GridBagConstraints.java: Filled in values for static
1109 * java/util/BitSet.java: Updated copyright notice.
1111 * Makefile.in: Rebuilt.
1112 * Makefile.am (awt_java_source_files): Added new file.
1113 * java/awt/GridBagConstraints.java: New file.
1115 2000-12-05 Tom Tromey <tromey@redhat.com>
1117 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1118 Now package-private, not protected.
1119 * java/text/DateFormatSymbols.java (equals): Now private.
1120 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1121 * java/util/BitSet.java: Class no longer final.
1123 2000-12-04 Warren Levy <warrenl@redhat.com>
1125 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1126 out code dependent on compiler and library changes.
1128 2000-12-04 Warren Levy <warrenl@redhat.com>
1130 * java/io/FilePermission.java: Made class final per spec.
1131 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1132 method name to match spec (fixed typo).
1133 * java/util/LinkedList.java: Implements List.
1135 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1137 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1138 Edgar Villanueva <edgarvil@home.com>.
1140 2000-12-03 Tom Tromey <tromey@redhat.com>
1142 * java/awt/geom/Point2D.java: Added protected constructor.
1143 (equals): New method.
1144 (Float.setLocation(float,float)): New method.
1145 * java/awt/geom/Dimension2D.java: Added protected constructor.
1146 * java/awt/geom/AffineTransform.java: Made all constants public.
1147 (concatenate): Fixed typo in name.
1148 * java/awt/event/WindowAdapter.java: Class now abstract.
1149 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1150 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1153 * java/awt/AWTError.java: Extend Error, not
1154 IllegalStateException.
1156 * Makefile.in: Rebuilt.
1157 * Makefile.am (awt_java_source_files): Added new file.
1158 * java/awt/geom/RoundRectangle2D.java: New file.
1160 * Makefile.in: Rebuilt.
1161 * Makefile.am (awt_java_source_files): Added new file.
1162 * java/awt/FlowLayout.java: New file.
1164 * Makefile.in: Rebuilt.
1165 * Makefile.am (awt_java_source_files): Added new file.
1166 * java/awt/GridLayout.java: New file.
1168 2000-12-02 Tom Tromey <tromey@redhat.com>
1170 * Makefile.in: Rebuilt.
1171 * Makefile.am (awt_java_source_files): Added new files.
1172 * java/awt/CardLayout.java: New file.
1173 * java/awt/AWTPermission.java: New file.
1175 2000-12-01 Tom Tromey <tromey@redhat.com>
1177 * java/util/Vector.java (insertElementAt): Unconditionally
1178 increment elementCount.
1179 (removeRange): Clear unused slots in vector.
1181 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1183 * java/lang/natMath.cc: Declare fabsf() function.
1184 * java/lang/mprec.h: Don't include math.h.
1185 * java/lang/dtoa.c: Include string.h.
1186 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1189 From Adam Welc <welc@cs.purdue.edu>:
1190 * java/util/LinkedList.java (removeFirst): Update `first' field.
1191 Handle the last == first case.
1192 (removeLast): Update `last' field. Handle the last == first case.
1194 2000-12-01 Warren Levy <warrenl@cygnus.com>
1196 * Makefile.am: Added entries for new java.sql modules.
1197 * Makefile.in: Rebuilt.
1199 2000-12-01 Warren Levy <warrenl@cygnus.com>
1201 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1202 that aren't quite 1.2 compatible yet.
1204 2000-11-30 Warren Levy <warrenl@cygnus.com>
1206 * java/sql/Array.java: New file from classpath.
1207 * java/sql/BatchUpdateException.java: Ditto.
1208 * java/sql/Blob.java: Ditto.
1209 * java/sql/Clob.java: Ditto.
1210 * java/sql/Ref.java: Ditto.
1211 * java/sql/SQLData.java: Ditto.
1212 * java/sql/SQLInput.java: Ditto.
1213 * java/sql/SQLOutput.java: Ditto.
1214 * java/sql/Struct.java: Ditto.
1215 * java/sql/CallableStatement.java: Merged file from claspath.
1216 * java/sql/Connection.java: Ditto.
1217 * java/sql/DataTruncation.java: Ditto.
1218 * java/sql/DatabaseMetaData.java: Ditto.
1219 * java/sql/DriverManager.java: Ditto.
1220 * java/sql/PreparedStatement.java: Ditto.
1221 * java/sql/ResultSet.java: Ditto.
1222 * java/sql/ResultSetMetaData.java: Ditto.
1223 * java/sql/SQLException.java: Ditto.
1224 * java/sql/SQLWarning.java: Ditto.
1225 * java/sql/Statement.java: Ditto.
1226 * java/sql/Types.java: Ditto.
1228 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1230 * java/lang/natSystem.cc (init_properties): Set user.language and
1232 * configure.in: Check for setlocale.
1233 * configure: Rebuilt.
1234 * include/config.h.in: Rebuilt.
1236 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1237 the infate() call didn't deliver any output. Throw a ZipException if
1238 the needsDictionary() call returns true.
1239 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1240 * java/io/InputStreamReader: Use the default buffer size for the
1241 contained BufferedInputStream.
1243 2000-11-28 Warren Levy <warrenl@cygnus.com>
1245 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1246 more time zone entries.
1247 * java/text/SimpleDateFormat.java (format): Added case for
1250 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1252 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1253 directly rather than read() in all cases. Make primitive read
1254 implementations more efficient, as defined in JDK online docs.
1255 (skipBytes): Behave like the JDK's implementation.
1256 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1257 closed stream with checkStatus() whenever an IOException can be
1259 (checkStatus): New private method.
1261 2000-11-27 Warren Levy <warrenl@cygnus.com>
1263 * Makefile.am: Added natTimeZone.cc.
1264 * Makefile.in: Rebuilt.
1265 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1266 * java/text/DateFormatSymbols.java (ampms): Made package private.
1267 (eras): Made package private.
1268 (months): Made package private.
1269 (shortMonths): Made package private.
1270 (shortWeekdays): Made package private.
1271 (weekdays): Made package private.
1272 (formatPrefixes): New private field.
1273 (localPatternCharsDefault): Made private.
1274 (dateFormats): New package private field.
1275 (timeFormats): New package private field.
1276 (formatsForKey): New private method.
1277 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1278 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1279 * java/text/SimpleDateFormat.java: Merged with Classpath.
1280 * java/util/TimeZone.java: Merged with Classpath.
1281 * java/util/natTimeZone.cc: New file.
1283 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1285 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1286 (addElement): Don't increment elementCount twice. Doh.
1287 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1288 array needs to be expanded.
1290 * java/util/Collections.java (UnmodifiableCollection): Implement
1292 (UnmodifiableList): Throw UnsupportedOperationException from
1293 modification methods. Set `l' from the one-parameter constructor.
1294 (UnmodifiableMap): Implement toString().
1295 (SynchronizedCollection): Ditto.
1296 (SynchronizedList): Set `l' from the one-parameter constructor.
1297 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1298 (SynchronizedMap): Implement toString().
1300 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1302 * javax/naming/NameParser.java,
1303 javax/naming/directory/AttributeInUseException.java,
1304 javax/naming/directory/AttributeModificationException.java,
1305 javax/naming/directory/InvalidAttributeIdentifierException.java,
1306 javax/naming/directory/InvalidAttributesException.java,
1307 javax/naming/directory/InvalidAttributeValueException.java,
1308 javax/naming/directory/InvalidSearchControlsException.java,
1309 javax/naming/directory/InvalidSearchFilterException.java,
1310 javax/naming/directory/NoSuchAttributeException.java,
1311 javax/naming/directory/SchemaViolationException.java: New files.
1313 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1315 * javax/naming/InitialContext.java (rebind): Implement.
1316 (unbind): Implement.
1317 (rename): Implement.
1319 (listBindings): Implement.
1320 (destroySubcontext): Implement.
1321 (createSubcontext): Implement.
1322 (lookupLink): Implement.
1323 (getNameParser): Implement.
1324 (composeName): Implement.
1325 (addToEnvironment): Implement.
1327 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1329 * javax/naming/AuthenticationException.java,
1330 javax/naming/AuthenticationNotSupportedException.java,
1331 javax/naming/CannotProceedException.java,
1332 javax/naming/CommunicationException.java,
1333 javax/naming/ConfigurationException.java,
1334 javax/naming/ContextNotEmptyException.java,
1335 javax/naming/InsufficientResourcesException.java,
1336 javax/naming/InterruptedNamingException.java,
1337 javax/naming/InvalidNameException.java,
1338 javax/naming/LimitExceededException.java,
1339 javax/naming/LinkException.java,
1340 javax/naming/LinkLoopException.java,
1341 javax/naming/MalformedLinkException.java,
1342 javax/naming/NameAlreadyBoundException.java,
1343 javax/naming/NameNotFoundException.java,
1344 javax/naming/NamingSecurityException.java,
1345 javax/naming/NoPermissionException.java,
1346 javax/naming/NotContextException.java,
1347 javax/naming/PartialResultException.java,
1348 javax/naming/ReferralException.java,
1349 javax/naming/ServiceUnavailableException.java,
1350 javax/naming/SizeLimitExceededException.java,
1351 javax/naming/TimeLimitExceededException.java: New files.
1353 * javax/naming/Name.java (clone): New method.
1354 (compareTo): New method.
1355 (isEmpty): New method.
1356 (getAll): New method.
1357 (getPrefix): New method.
1358 (getSuffix): New method.
1359 (startsWith): New method.
1360 (endsWith): New method.
1361 (addAll): New method.
1362 (addAll): New method.
1365 (remove): New method.
1367 * javax/naming/Context.java (lookup): New method.
1368 (rebind): New method.
1369 (unbind): New method.
1370 (rename): New method.
1372 (listBindings): New method.
1373 (destroySubcontext): New method.
1374 (createSubcontext): New method.
1375 (lookupLink): New method.
1376 (getNameParser): New method.
1377 (composeName): New method.
1378 (addToEnvironment): New method.
1379 (removeFromEnvironment): New method.
1380 (getEnvironment): New method.
1381 (close): New method.
1382 (getNameInNamespace): New method.
1384 * javax/naming/InitialContext.java (lookup): New method.
1385 (rebind): New method.
1386 (unbind): New method.
1387 (rename): New method.
1389 (listBindings): New method.
1390 (destroySubcontext): New method.
1391 (createSubcontext): New method.
1392 (lookupLink): New method.
1393 (getNameParser): New method.
1394 (composeName): New method.
1395 (addToEnvironment): New method.
1396 (removeFromEnvironment): New method.
1397 (getEnvironment): New method.
1398 (close): New method.
1399 (getNameInNamespace): New method.
1401 2000-11-26 Tom Tromey <tromey@cygnus.com>
1403 * Makefile.in: Rebuilt.
1404 * Makefile.am (core_java_source_files): Added
1405 RuntimePermission.java.
1406 * java/lang/RuntimePermission.java: Imported from Classpath.
1407 * java/lang/Thread.java (getContextClassLoader): Now
1408 synchronized. Added security code.
1409 (setContextClassLoader): Likewise.
1411 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1412 length field of array.
1413 (_Jv_NewPrimArray): Likewise.
1414 * gcj/array.h (__JArray): `length' field now const. Added
1417 2000-11-26 Anthony Green <green@redhat.com>
1419 * javax/naming/spi/NamingManager.java,
1420 javax/naming/spi/ObjectFactory.java,
1421 javax/naming/spi/InitialContextFactory.java,
1422 javax/naming/spi/InitialContextFactoryBuilder.java,
1423 javax/naming/RefAddr.java, javax/naming/Reference.java,
1424 javax/naming/NamingException.java, javax/naming/Context.java,
1425 javax/naming/Referenceable.java,
1426 javax/naming/directory/InitialDirContext.java,
1427 javax/naming/directory/DirContext.java,
1428 javax/naming/directory/Attributes.java,
1429 javax/naming/directory/Attribute.java,
1430 javax/naming/StringRefAddr.java,
1431 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1432 javax/naming/InitialContext.java,
1433 javax/naming/NoInitialContextException.java: New files.
1435 2000-11-25 Anthony Green <green@redhat.com>
1437 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1438 (_Jv_NewPrimArray): Likewise.
1439 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1440 (class JArray): Removed constructor.
1442 * java/lang/Thread.java (context_class_loader): New private data.
1443 (getContextClassLoader): New method.
1444 (setContextClassLoader): New method.
1445 (Thread): Initialize context_class_loader.
1447 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1448 (getResource): Rename to findResource.
1449 (findResource): New method. Used to be getResource.
1450 (getResourceAsStream): Deleted.
1451 (jarFileize): Extracted logic from URLClassLoader constructor into
1452 this new private method.
1453 (addURL): New protected method.
1454 (URLClassLoader): Call jarFileize. Use addElement instead of
1456 (findResources): New method.
1458 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1459 (getResource): Implement correct logic.
1460 (findResource): New method.
1461 (getResources): New method.
1462 (findClass): Create a ClassNotFoundException with the name of the
1463 class rather than nothing at all.
1464 (defineClass) Only throw ClassFormatError.
1466 * java/lang/Class.java (forName): New method.
1467 * java/lang/Class.h (forName): New method.
1468 * java/lang/natClass.cc (forName): New method.
1470 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1472 * java/lang/System.java (setProperties): Only call init_properties()
1473 if properties is null.
1474 (getProperties): Ditto.
1475 (getProperty): Ditto.
1476 (setProperty): Call init_properties if properties are null.
1477 (prop_init): Remove field.
1478 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1479 method. Check for null properties after synchronizing instead of
1480 prop_init flag. Set the properties field last for thread safety.
1482 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1483 test for gcj.dumpobjects property and enable object stream dumping
1485 (dumpElement): No longer native.
1486 (dumpElementln): Ditto.
1487 (setDump): Do not define.
1488 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1489 (dumpElementln): Removed.
1492 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1494 * configure: Rebuilt.
1495 * Makefile.in: Rebuilt.
1496 * Makefile.am (built_java_source_files): Add Configuration.java.
1497 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1498 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1499 Create `gnu' directory in the build tree.
1500 * gnu/classpath/Configuration.java.in: New file.
1502 2000-11-24 Tom Tromey <tromey@cygnus.com>
1504 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1506 (_Jv_NewPrimArray): Likewise.
1508 * gcj/array.h (__JArray): `length' field now const. Added
1510 (class JArray): Added constructor.
1512 2000-11-23 Mark Wielaard <mark@klomp.org>
1514 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1517 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1519 * java/util/Vector.java: Improve exception messages.
1520 (Vector): Check initialCapacity for IllegalArgumentException.
1521 (tromToSize): Don't check for elementCount == elementData.length
1523 (toArray): Don't try to set null marker if target array is the same
1524 length as the vector.
1526 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1528 * Makefile.in: Rebuilt.
1529 * Makefile.am (core_java_source_files): Added Collections.java.
1530 * java/util/List.java: Merged from classpath.
1531 * java/util/Vector.java: Ditto.
1532 * java/util/Collections.java: From classpath.
1533 * java/util/ArrayList.java (addAll(Collection)): Call
1534 addAll(int,Collection) instead of duplicating code.
1535 (indexOf): Clean up int initialization.
1536 (clear): Set cleared array entries to null, to allow garbage
1538 * java/util/List.java: Minor formatting fixes.
1539 * java/util/SimpleTimeZone.java: ditto.
1541 2000-11-18 Tom Tromey <tromey@cygnus.com>
1543 * Makefile.in: Rebuilt.
1544 * Makefile.am (core_java_source_files): Added new files.
1545 * java/lang/reflect/ReflectPermission.java: New class.
1546 * java/io/FileFilter.java: From Classpath
1547 * java/io/FilePermission.java: From Classpath.
1549 2000-11-17 Tom Tromey <tromey@cygnus.com>
1551 * java/lang/reflect/AccessibleObject.java (isAccessible,
1552 setAccessible): Now public.
1554 * java/lang/natString.cc: Include Locale.h.
1555 (toUpperCase): Added `locale' argument. Handle locale
1557 (toLowerCase): Added `locale' argument. Handle locale
1559 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1560 CAPITAL_I): New defines.
1561 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1564 (toUpperCase, toLowerCase): New methods. Variants which accept
1567 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1570 * java/util/PropertyPermission.java: Re-merged from Classpath.
1572 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1574 * java/text/StringCharacterIterator.java: Reindented.
1575 (setText): New method.
1577 2000-11-17 Mark Wielaard <mark@klomp.org>
1579 Merge with Classpath (changes by Bryce McKinlay)
1580 * java/util/jar/*.java: Reformat all to unofficial standard coding
1581 style. No changes of substance.
1583 2000-11-17 Mark Wielaard <mark@klomp.org>
1585 * java/util/zip/*.java: Javadoc updates.
1587 2000-11-17 Tom Tromey <tromey@cygnus.com>
1589 * java/text/CollationKey.java: Implement Comparable.
1590 (compareTo(Object)): New method.
1591 * java/text/Collator.java (compare(Object,Object)): New method.
1592 Implement Comparator.
1594 * java/util/zip/InflaterInputStream.java (available): New method.
1595 (close): New method.
1596 (read, available, skip, fill): Throw exception if stream closed.
1597 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1598 getNextEntry): Throw exception if closed.
1600 2000-11-16 Tom Tromey <tromey@cygnus.com>
1602 * java/io/PushbackReader.java: Merged with Classpath.
1603 * java/util/Arrays.java: Updated from Classpath.
1605 * scripts/blocks.pl: New file.
1606 * java/lang/Character.java (Subset): New class.
1607 (UnicodeBlock): New class.
1609 * java/lang/Math.java (toDegrees, toRadians): New methods.
1611 * java/lang/Float.java: Implement Comparable.
1612 (compareTo): New methods.
1613 * java/lang/Double.java: Implement Comparable.
1614 (compareTo): New methods.
1616 2000-11-16 Warren Levy <warrenl@cygnus.com>
1618 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1620 (listeners): Made transient.
1621 (source): Renamed from 'bean'.
1622 (children): New field for serialization.
1623 (propertyChangeSupportSerializedDataVersion): Ditto.
1624 (serialVersionUID): Ditto.
1625 (writeObject): New serialization method.
1626 (readObject): New serialization method.
1627 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1629 (listeners): Made transient.
1630 (source): Renamed from 'bean'.
1631 (children): New field for serialization.
1632 (vetoableChangeSupportSerializedDataVersion): Ditto.
1633 (serialVersionUID): Ditto.
1634 (writeObject): New serialization method.
1635 (readObject): New serialization method.
1636 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1637 to allow constructor to have a return type (i.e. the class that the
1638 constructor constructs).
1640 2000-11-14 Tom Tromey <tromey@cygnus.com>
1642 * Makefile.in: Rebuilt.
1643 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1646 2000-11-02 Warren Levy <warrenl@cygnus.com>
1648 * java/io/ObjectInputStream.java (readObject): Added code to
1649 conditionally dump out the serialized data.
1650 Handle ENDBLOCKDATA case a bit more gracefully since the current
1651 behavior doesn't seem to work as expected.
1652 (readStreamHeader): Added code for serialized data dumper.
1653 (readNextBlock): Ditto.
1654 (readFields): Ditto.
1655 (dump): New private static field for turning on/off dumper.
1656 (setDump): New native method.
1657 (dumpElement): New native method.
1658 (dumpElementln): New native method.
1659 * java/io/natObjectInputStream.cc (setDump): New method.
1660 (dumpElement): New method.
1661 (dumpElementln): New method.
1663 2000-11-02 Warren Levy <warrenl@cygnus.com>
1665 * java/net/InetAddress.java (addr): Renamed from 'address'.
1666 (address): New field to match Serialized Form doc.
1667 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1668 (family): New serialization field.
1669 (serialVersionUID): New field.
1670 (readObject): New method.
1671 (writeObject): New method.
1672 (getFamily): New native method.
1673 (InetAddress): Set family.
1674 * java/net/natInetAddress.cc (getFamily): New method.
1675 (addr): Renamed from 'address'.
1676 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1677 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1678 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1680 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1682 * java/util/AbstractList.java (SubList): Make it a top-level private
1684 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1686 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1687 * Makefile.in: Rebuilt.
1689 2000-11-02 Tom Tromey <tromey@cygnus.com>
1691 * Makefile.in: Rebuilt.
1692 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1695 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1697 * java/util/AbstractList.java (remove): Comment out modCount increment
1698 to work around compiler bug.
1701 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1703 * java/util/AbstractList.java: Throw messages with
1704 IndexOutOfBoundsExceptions.
1705 (listIterator()): Call listIterator(0).
1706 (size): New field. Initialize to size().
1707 (hasNext): Test position against size, not size().
1708 (remove): Increment knownMod by one instead of resetting it from
1711 (SubList.upMod): Removed.
1712 (SubList.set): Don't call upMod() or update knownMod.
1713 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1714 (SubList.remove): Ditto.
1715 (SubList.addAll): Don't call backingList.size(). Increment size from
1717 (SubList.iterator): New method. Call listIterator(0).
1718 (SubList.listIterator): New method. Restore code to return an anonymous
1719 listIterator implementation (with some changes).
1720 * java/util/AbstractSequentialList.java: Throw messages with
1721 IndexOutOfBoundsExceptions.
1722 (addAll): Add a specnote.
1723 * java/util/ArrayList.java (removeRange): Get the math right.
1724 (addAll): Increment modCount _before_ creating iterator.
1725 * java/util/LinkedList.java: Rewritten, mostly.
1727 2000-11-01 Tom Tromey <tromey@cygnus.com>
1729 * scripts/encodings.pl: Added `ASCII' alias.
1730 * Makefile.in: Rebuilt.
1731 * Makefile.am (convert_source_files): Added new files.
1732 * gnu/gcj/convert/Input_ASCII.java: New file.
1733 * gnu/gcj/convert/Output_ASCII.java: New file.
1734 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1735 out-of-range characters.
1736 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1737 (read): Swap bytes if required. Treat `count' as character count,
1739 (write): Likewise. Also, handle case where iconv fails on a given
1741 (init): Put encoding into exception.
1742 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1743 (static): Call iconv_init. Rebuilt alias list.
1744 (iconv_init): New private method.
1746 2000-11-01 Tom Tromey <tromey@cygnus.com>
1748 * Makefile.in: Rebuilt.
1749 * Makefile.am (install-exec-hook): Only make a single symlink, and
1750 remove the destination before making the link.
1751 * configure: Rebuilt.
1752 * configure.in: Call AC_PROG_LN_S.
1754 2000-10-31 Warren Levy <warrenl@cygnus.com>
1756 * jni.cc: Added include of java/lang/ThreadGroup.h.
1757 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1758 per change of 2000-10-05.
1760 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1762 * java/util/BitSet.java: Updated @specnote.
1764 * java/io/Reader.java: Merge docs from classpath.
1765 (skip): Synchronize on `lock'.
1766 * java/io/FileReader.java: Import correct implementation from
1768 * java/io/StringReader.java: Merge docs from classpath.
1769 (ready): Throw IOException if stream is closed.
1771 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1773 * java/util/AbstractCollection.java (addAll): Use size() instead of
1774 hasNext() in iterator loop.
1776 (contains): Ditto. Simplify loop.
1777 (containsAll): Ditto.
1782 (toString): Ditto. Use string concatenation operators, not
1784 * java/util/AbstractList.java (addAll): Use size() instead of
1785 hasNext() in iterator loop.
1788 (indexOf): Ditto. Don't take null check outside of the loop.
1789 (iterator): Return an AbstractListItr instead of anonymous class.
1790 (lastIndexOf): Use a for loop bounded by size() instead of
1791 hasPrevious() in iterator loop.
1792 (listIterator): Return an AbstractListItr.
1793 (removeRange): Remove bounds checking code and docs.
1794 (AbstractListItr): New inner class. Code moved here from
1796 (SubList.iterator): Removed. Use default implementation from
1797 AbstractList instead.
1798 (SubList.listIterator): As above.
1799 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1800 instead of hasNext() in iterator loop.
1801 (containsValue): Ditto.
1807 (toString): Ditto. Use string concatenation operators, not
1809 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1810 bounded by size() instead of hasNext() in iterator loop.
1811 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1812 part of normal execution flow. Do an explicit null check instead.
1813 * java/util/ArrayList.java (_iSize): Rename to `size'.
1814 (_arData): Rename to `data'.
1815 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1818 (removeRange): Make protected. Don't check bounds.
1819 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1821 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1823 (addAll (int, Collection)): Check lower bounds. Simplify exception
1825 (clone): Clone the data array too.
1826 (indexOf): Inline doesEqual().
1827 (lastIndexOf): Ditto.
1828 (clear): Don't set array data to null.
1829 (set): Check lower bounds. Simplify exception string.
1830 (toArray): Correct comment.
1831 (trimToSize): Don't update modCount, this is not a structural change.
1834 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1836 (toString): Declare `bit' as long, not int.
1837 (data): Made package-private, not private.
1839 2000-10-27 Warren Levy <warrenl@cygnus.com>
1841 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1842 array elements to true.
1844 2000-10-27 Warren Levy <warrenl@cygnus.com>
1846 * Makefile.am: Added locale files from Classpath.
1847 * Makefile.in: Rebuilt.
1848 * gnu/java/locale/Calendar.java: New file.
1849 * gnu/java/locale/Calendar_de.java: New file.
1850 * gnu/java/locale/Calendar_en.java: New file.
1851 * gnu/java/locale/Calendar_nl.java: New file.
1852 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1853 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1854 serialization compatibility.
1855 (scale): Made private.
1856 (serialVersionUID): New field.
1857 * java/math/BigInteger.java (ival): Made transient.
1858 (words): Made transient.
1859 (bitCount): New serialization field.
1861 (firstNonzeroByteNum): Ditto.
1862 (lowestSetBit): Ditto.
1865 (serialVersionUID): New field.
1866 (readObject): New method.
1867 (writeObject): New method.
1868 * java/util/BitSet.java (serialVersionUID): New field.
1869 * java/util/Calendar.java: Replaced with Classpath file.
1870 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1871 of getDefault() for TimeZone or Locale instead of passing nulls.
1872 * java/util/Locale.java (serialVersionUID): New field.
1873 (writeObject): New method.
1874 (readObject): New method.
1875 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1877 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1879 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1880 (core_java_source_files): Put java.lang, java.io, and java.util here.
1881 (ordinary_java_source_files): Order so that core_java_source_files are
1883 (java_source_files): Reorder so that special_java_source_files are
1885 * configure.in: Don't pass -I flag to gcj.
1886 * Makefile.in: Rebuilt.
1887 * configure: Rebuilt.
1889 2000-10-25 Tom Tromey <tromey@cygnus.com>
1891 * Makefile.in: Rebuilt.
1892 * Makefile.am (install-exec-hook): New target.
1894 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1896 * java/util/EventObject.java: Merged from classpath.
1898 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1901 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1903 * java/util/AbstractSet.java (equals): Re-installed original code.
1905 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1907 * Makefile.am: Added rules for libgcjx library.
1908 * Makefile.in: Rebuilt.
1909 * configure.in: Added check for X.
1910 * configure: Rebuilt.
1911 * gnu/awt/LightweightRedirector.java: New file.
1912 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1913 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1914 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1915 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1916 * gnu/awt/j2d/MappedRaster.java: New file.
1917 * gnu/awt/xlib/XCanvasPeer.java: New file.
1918 * gnu/awt/xlib/XEventLoop.java: New file.
1919 * gnu/awt/xlib/XEventQueue.java: New file.
1920 * gnu/awt/xlib/XFontMetrics.java: New file.
1921 * gnu/awt/xlib/XFramePeer.java: New file.
1922 * gnu/awt/xlib/XGraphics.java: New file.
1923 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1924 * gnu/awt/xlib/XPanelPeer.java: New file.
1925 * gnu/awt/xlib/XToolkit.java: New file.
1926 * gnu/gcj/xlib/Clip.java: New file.
1927 * gnu/gcj/xlib/Colormap.java: New file.
1928 * gnu/gcj/xlib/Display.java: New file.
1929 * gnu/gcj/xlib/Drawable.java: New file.
1930 * gnu/gcj/xlib/Font.java: New file.
1931 * gnu/gcj/xlib/GC.java: New file.
1932 * gnu/gcj/xlib/Pixmap.java: New file.
1933 * gnu/gcj/xlib/Screen.java: New file.
1934 * gnu/gcj/xlib/Visual.java: New file.
1935 * gnu/gcj/xlib/WMSizeHints.java: New file.
1936 * gnu/gcj/xlib/Window.java: New file.
1937 * gnu/gcj/xlib/WindowAttributes.java: New file.
1938 * gnu/gcj/xlib/XAnyEvent.java: New file.
1939 * gnu/gcj/xlib/XButtonEvent.java: New file.
1940 * gnu/gcj/xlib/XColor.java: New file.
1941 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1942 * gnu/gcj/xlib/XConnectException.java: New file.
1943 * gnu/gcj/xlib/XEvent.java: New file.
1944 * gnu/gcj/xlib/XException.java: New file.
1945 * gnu/gcj/xlib/XExposeEvent.java: New file.
1946 * gnu/gcj/xlib/XID.java: New file.
1947 * gnu/gcj/xlib/XImage.java: New file.
1948 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1949 * gnu/gcj/xlib/natClip.cc: New file.
1950 * gnu/gcj/xlib/natColormap.cc: New file.
1951 * gnu/gcj/xlib/natDisplay.cc: New file.
1952 * gnu/gcj/xlib/natDrawable.cc: New file.
1953 * gnu/gcj/xlib/natFont.cc: New file.
1954 * gnu/gcj/xlib/natGC.cc: New file.
1955 * gnu/gcj/xlib/natPixmap.cc: New file.
1956 * gnu/gcj/xlib/natScreen.cc: New file.
1957 * gnu/gcj/xlib/natVisual.cc: New file.
1958 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1959 * gnu/gcj/xlib/natWindow.cc: New file.
1960 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1961 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1962 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1963 * gnu/gcj/xlib/natXColor.cc: New file.
1964 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1965 * gnu/gcj/xlib/natXException.cc: New file.
1966 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1967 * gnu/gcj/xlib/natXImage.cc: New file.
1968 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1969 * java/awt/EventDispatchThread.java: Start thead on creation.
1971 2000-10-20 Tom Tromey <tromey@cygnus.com>
1973 From Arno J. Klaassen:
1974 * interpret.cc: Include <stdlib.h> for alloca.
1975 * defineclass.cc: Include <stdlib.h> for alloca.
1977 * Makefile.in: Rebuilt.
1978 * Makefile.am: Include deps.mk.
1979 (GCJCOMPILE): Added -MD, -MT, and -MF.
1980 ($(javao_files)): Don't depend on libgcj.zip.
1981 (all-recursive): New target.
1982 (%.lo:%.cc): Do dependency tracking.
1983 ($(nat_headers)): Don't depend on libgcj.zip.
1984 * configure: Rebuilt.
1985 * configure.in: Make .d files and deps.mk.
1987 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1989 * exception.cc: Don't #include "exception".
1990 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1992 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1993 * Makefile.in: Updated.
1995 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1997 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1998 * java/awt/peer/ComponentPeer.java (disable): Removed.
2001 (minimumSize): Removed.
2002 (preferredSize): Removed.
2005 * java/awt/peer/ListPeer.java (addItem): Removed.
2007 (minimumSize): Removed.
2008 (preferredSize): Removed.
2009 (setMultipleSelections): Removed.
2010 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2011 (remove): Renamed from removeMenu.
2012 * java/awt/peer/MenuItemPeer.java (disable): Removed.
2014 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2015 (remove): Renamed from removeItem.
2016 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2017 (getMinimumSize): Removed.
2018 (getPreferredSize): Removed.
2019 (minimumSize): Removed.
2020 (preferredSize): Removed.
2021 (replaceText): Removed.
2022 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2023 (preferredSize): Removed.
2024 (getMinimumSize): Removed.
2025 (getPreferredSize): Removed.
2026 (setEchoCharacter): Removed.
2028 2000-10-10 Warren Levy <warrenl@cygnus.com>
2030 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2031 * java/sql/Date.java (serialVersionUID): New field.
2032 * java/sql/Time.java (serialVersionUID): New field.
2033 * java/sql/Timestamp.java (serialVersionUID): New field.
2034 * java/text/ChoiceFormat.java (serialVersionUID): New field.
2035 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2036 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2037 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2038 (readObject): New serialization method.
2039 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2040 (serialVersionOnStream): New field.
2041 (readObject): New serialization method.
2042 (getMonetaryDecimalSeparator): New method.
2043 (setMonetaryDecimalSeparator): New method.
2044 * java/text/NumberFormat.java (maxFractionDigits): New field.
2045 (maxIntegerDigits): New field.
2046 (minFractionDigits): New field.
2047 (minIntegerDigits): New field.
2048 (serialVersionOnStream): New field.
2049 (serialVersionUID): New field.
2050 (readObject): New serialization method.
2051 (writeObject): New serialization method.
2052 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2053 (serialVersionOnStream): New field.
2054 (serialVersionUID): New field.
2055 (readObject): New serialization method.
2057 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
2059 * configure.in (GCJ): Avoid bogus error message when looking for
2060 (and not finding) gcj in the build tree.
2061 * configure: Rebuilt.
2063 2000-10-09 Tom Tromey <tromey@cygnus.com>
2065 * configure: Rebuilt.
2066 * configure.in: Include sys/types.h when checking for socklen_t.
2067 From Arno J. Klaassen.
2069 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
2071 * include/jvm.h: Enable __builtin_expect().
2073 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2074 the main program. Fix for PR libgcj/341.
2076 2000-10-07 Tom Tromey <tromey@cygnus.com>
2078 * java/util/Properties.java: Merged with Classpath version.
2080 2000-10-05 Tom Tromey <tromey@cygnus.com>
2082 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2083 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2084 * java/lang/Class.h (Object): Added `class$' field.
2085 * java/lang/Object.h (Object): Added `class$' field.
2086 * defineclass.cc (ClassClass): Use `class$' form.
2087 (ClassObject): Likewise.
2088 * resolve.cc (ClassObject): Use `class$' form.
2089 (ObjectClass): Likewise.
2090 * interpret.cc (ClassError): Removed.
2091 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2093 (IntegerClass): Likewise.
2094 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2096 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2097 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2098 SerializableClass): Likewise.
2099 Include Serializable.h, Cloneable.h.
2100 * java/lang/natSystem.cc (SystemClass): Removed.
2101 (init_properties): Use `class$' form.
2102 * java/lang/natObject.cc (CloneableClass): Removed.
2103 (clone): Use `class$' form.
2104 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2105 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2106 ConstructorClass): Likewise.
2107 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2108 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2109 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2110 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2112 (ClassClass): Likewise.
2113 * include/jvm.h (StringClass): Use `class$' form.
2114 * prims.cc (ObjectClass): Removed.
2115 (_Jv_RunMain): Use `class$' form.
2116 (_Jv_AllocObject): Likewise.
2117 * jni.cc (ClassClass): Use `class$' form.
2118 (ThrowableClass): Likewise.
2119 (ObjectClass): Likewise.
2120 (MethodClass): Likewise.
2121 (ThreadGroupClass): Likewise.
2122 (NativeThreadClass): Likewise.
2123 * boehm.cc (ObjectClass): Removed.
2124 (ClassClass): Removed.
2125 (_Jv_MarkObj): Use `class$' form.
2126 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2129 2000-10-05 Warren Levy <warrenl@cygnus.com>
2131 * Makefile.am: Removed java/io/Replaceable.java and
2132 java/io/Resolvable.java.
2133 * Makefile.in: Rebuilt.
2134 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2136 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2138 (processResolution): Handle readResolve method via reflection with
2139 removal of Resolvable interface.
2140 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2141 method via reflection with removal of Replaceable interface.
2142 * java/io/Replaceable.java: Removed.
2143 * java/io/Resolvable.java: Removed.
2144 * java/security/Key.java (serialVersionUID): New field.
2145 * java/security/Provider.java (serialVersionUID): New field.
2146 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2148 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2150 * java/sql/DataTruncation.java (serialVersionUID): New field.
2151 * java/sql/SQLException.java (serialVersionUID): New field.
2152 * java/sql/SQLWarning.java (serialVersionUID): New field.
2153 * java/util/Date.java (serialVersionUID): New field.
2154 (millis): Made transient.
2155 (readObject): New method.
2156 (writeObject): New method.
2158 2000-10-05 Tom Tromey <tromey@cygnus.com>
2160 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2162 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2164 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2165 (JvRunMain): Set _Jv_argv and _Jv_argc.
2166 * java/awt/Component.java: Minor fixes.
2167 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2168 * java/awt/Toolkit.java (systemEventQueue): Removed.
2169 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2170 * java/awt/Window.java (getToolkit): Don't call super.
2171 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2172 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2173 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2174 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2175 * gnu/awt/gtk/GtkFramePeer.java: New file.
2176 * gnu/awt/gtk/GtkMainThread.java: New file.
2177 * gnu/awt/gtk/GtkToolkit.java: New file.
2178 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2179 * gnu/awt/gtk/gtkcommon.cc: New file.
2180 * gnu/awt/gtk/gtkcommon.h: New file.
2181 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2182 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2183 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2184 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2185 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2186 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2188 2000-09-30 Tom Tromey <tromey@cygnus.com>
2190 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2191 interrupted before modifying the cv's wait set.
2194 2000-09-30 Hans Boehm <boehm@acm.org>
2195 Bryce McKinlay <bryce@albatross.co.nz>
2197 Implement bitmap descriptor based marking for Boehm GC.
2199 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2200 * configure: Rebuilt.
2201 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2202 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2203 method get_finalizer().
2204 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2205 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2206 (_Jv_AllocObj): Add new jclass parameter.
2207 (_Jv_AllocArray): Ditto.
2208 (_Jv_BuildGCDescr): New prototype.
2209 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2210 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2211 get_finalizer() instead of direct finalizer vtable offset.
2212 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2213 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2214 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2215 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2216 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2217 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2218 (_Jv_DetermineVTableIndex): Ditto.
2219 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2220 calculations to account for new gc_descr field.
2221 * boehm.cc: #include gc_gcj.h.
2222 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2223 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2224 New commentary from HB. Mark the classes vtable.
2225 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2226 (GC_DEFAULT_DESCR): New #define.
2227 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2228 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2229 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2230 scan conservativly if size is less than min_heap_addr. Set vtable
2231 pointer of new object before returning.
2232 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2233 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2234 allocation for obj_kind_x.
2235 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2236 (_Jv_AllocObj): Set vtable on returned object.
2237 (_Jv_AllocArray): Ditto.
2238 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2239 (_Jv_NewPrimArray): Ditto.
2240 (_Jv_AllocObj): Declare as a friend.
2241 (_Jv_AllocArray): Ditto.
2242 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2243 from &ObjectClass into new array class. Remove offset-by-one
2244 adjustments from `method' size calculations to account for gc_descr
2247 2000-09-26 Tom Tromey <tromey@cygnus.com>
2249 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2250 `remove', not `add'.
2252 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2254 * java/lang/natSystem.cc (file_encoding): Added return statement.
2256 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2258 * Makefile.am: Re-work shell commands that exceeded command-line
2260 * Makefile.in: Rebuilt.
2262 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2264 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2265 * java/lang/natDouble.cc: Likewise.
2266 * java/lang/reflect/natMethod.cc: Likewise.
2267 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2269 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2271 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2273 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2274 * acinclude.m4: Arrange for automake to not bring in a new
2275 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2276 * Makefile.am: Leave it up to automake to subst GCJ.
2277 * aclocal.m4, configure, Makefile.in: Rebuilt.
2279 2000-09-13 Tom Tromey <tromey@cygnus.com>
2281 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2282 (get): Ensure Boolean class is initialized.
2283 * java/lang/reflect/natField.cc (BooleanClass): New define.
2284 (get): Ensure Boolean class is initialized.
2286 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2288 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2289 Initialize with anonymous class.
2290 (compareToIgnoreCase): New method.
2292 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2293 (uncaughtException): Set had_uncaught_exception.
2294 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2295 exit with error status if set.
2296 (_Jv_RunMain): Ditto.
2298 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2300 * configure: Rebuilt with new ../libtool.m4.
2302 2000-09-11 Tom Tromey <tromey@cygnus.com>
2304 * java/lang/reflect/Field.java (toString): Don't rely on
2307 2000-09-08 Tom Tromey <tromey@cygnus.com>
2309 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2310 default decoder use iconv.
2311 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2312 Let default encoder use iconv.
2313 * configure: Rebuilt.
2314 * configure.in: Check for nl_langinfo and <langinfo.h>.
2315 * java/lang/natSystem.cc (file_encoding): New function.
2316 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2318 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2320 * acinclude.m4: Simplify the tests for CC and CXX.
2321 * aclocal.m4, configure: Rebuilt.
2323 * acinclude.m4: Include libtool macros from the source tree.
2324 * aclocal.m4, configure: Rebuilt.
2326 2000-09-08 Warren Levy <warrenl@cygnus.com>
2328 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2329 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2330 * java/io/File.java (writeObject): Added.
2331 (readObject): Added.
2332 (serialVersionUID): Added.
2333 * java/io/ObjectOutputStream.java (writeObject): Initialized
2334 fieldsAlreadyWritten before recursion rather than after.
2335 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2336 * java/io/OptionalDataException.java (serialVersionUID): Added.
2337 (OptionalDataException): Made package private.
2338 * java/io/SyncFailedException.java (SyncFailedException): Removed
2339 default constructor to match spec.
2340 * java/lang/Boolean.java (serialVersionUID): Added.
2341 * java/lang/Byte.java (serialVersionUID): Added.
2342 * java/lang/Character.java (serialVersionUID): Added.
2343 * java/lang/Double.java (serialVersionUID): Added.
2344 * java/lang/Float.java (serialVersionUID): Added.
2345 * java/lang/Integer.java (serialVersionUID): Added.
2346 * java/lang/Long.java (serialVersionUID): Added.
2347 * java/lang/Number.java (serialVersionUID): Added.
2348 * java/lang/Short.java (serialVersionUID): Added.
2349 * java/lang/String.java (serialVersionUID): Added.
2350 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2352 * java/lang/reflect/InvocationTargetException.java
2353 (serialVersionUID): Added.
2354 * java/net/URL.java (handler): Made transient.
2355 (hashCode): Added field for serialization, per spec. and use
2356 cached value if available.
2357 (serialVersionUID): Added.
2358 (URL): Initialize hashCode.
2359 (set): Adjust hashCode.
2360 (readObject): New Method to initialize the protocol handler when
2362 (writeObject): New method.
2363 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2364 * java/text/Collator.java: Removed 'implements Serializable'.
2365 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2366 * java/util/Properties.java (serialVersionUID): Added.
2367 * java/util/Random.java (serialVersionUID): Added.
2368 (seed): Made private.
2369 (nextNextGaussian): Made private.
2370 (haveNextNextGaussian): Made private.
2371 * java/util/Stack.java (serialVersionUID): Added.
2372 * java/util/TimeZone.java (serialVersionUID): Added.
2373 * java/util/Vector.java (serialVersionUID): Added.
2375 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2377 * Makefile.am (Thread.h): Don't be friends with native threads
2379 * Makefile.in: Rebuilt.
2380 * java/lang/Thread.java (interrupt_flag): Make package-private.
2382 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2384 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2385 to avoid long long division.
2387 2000-09-06 Tom Tromey <tromey@cygnus.com>
2389 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2391 * java/lang/reflect/Method.java (toString): Use `getName' for
2394 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2395 `args' if method takes no parameters.
2397 Fix for PR java.lang/339:
2398 * java/lang/natPosixProcess.cc (fail): New function.
2399 (cleanup): New function.
2400 (startProcess): Use them. Create pipe so child can communicate
2401 exec failure back to parent.
2403 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2405 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2407 (send): Undo last patch. Remove the label only.
2409 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2411 * java/net/natInetAdress.cc: Ditto.
2413 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2415 2000-09-05 Tom Tromey <tromey@cygnus.com>
2417 * doc/cni.sgml: Updated from master copy.
2419 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2421 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2423 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2425 * java/lang/fdlibm.h: #undef __P if previously defined.
2426 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2427 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2431 2000-09-04 Tom Tromey <tromey@cygnus.com>
2433 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2436 2000-09-04 Anthony Green <green@redhat.com>
2438 Fix for PR java.io/203:
2439 * java/io/File.java (createTempFile): Obey directory argument.
2440 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2441 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2442 variable to set java.io.tmpdir on non-WIN32 systems.
2444 2000-09-04 Anthony Green <green@redhat.com>
2446 * java/io/File.java (deleteOnExit): New method.
2447 * gnu/gcj/runtime/FileDeleter.java: New class.
2448 * java/lang/natRuntime.cc (exit): Call
2449 FileDeleter.deleteOnExitNow()
2450 * Makefile.am: Add FileDeleter.java.
2451 * Makefile.in: Rebuilt.
2453 2000-09-02 Tom Tromey <tromey@cygnus.com>
2455 * Makefile.in: Rebuilt.
2456 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2457 environment variable.
2459 2000-09-01 Andrew Haley <aph@redhat.com>
2461 * java/io/StreamTokenizer.java: Don't throw a
2462 NumberFormatException if a field is numeric as far as the
2463 StreamTokenizer is concerned but not as far as Double.valueOf() is
2464 concerned: return a zero instead.
2466 2000-08-30 Tom Tromey <tromey@cygnus.com>
2468 * Makefile.in: Rebuilt.
2469 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2471 2000-08-28 Tom Tromey <tromey@cygnus.com>
2473 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2474 gnu/gcj/awt/ComponentDataBlitOp.java,
2475 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2476 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2477 java/awt/color/ICC_ColorSpace.java,
2478 java/awt/color/ICC_Profile.java,
2479 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2480 java/awt/image/ComponentColorModel.java,
2481 java/awt/image/ComponentSampleModel.java,
2482 java/awt/image/DataBuffer.java,
2483 java/awt/image/DataBufferByte.java,
2484 java/awt/image/DataBufferInt.java,
2485 java/awt/image/DataBufferUShort.java,
2486 java/awt/image/DirectColorModel.java,
2487 java/awt/image/IndexColorModel.java,
2488 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2489 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2490 java/awt/image/SinglePixelPackedSampleModel.java,
2491 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2492 Removed Latin-1 copyright symbols.
2493 * java/util/zip/ZipFile.java: Indentation fixes.
2495 2000-08-27 Mark Wielaard <mark@klomp.org>
2497 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2498 constructor, close can delete the file, finalize calls close.
2499 * java/util/jar/JarFile.java: Constructor that takes mode now
2502 2000-08-27 Anthony Green <green@redhat.com>
2504 * java/util/ArrayList.java, java/util/Timer.java,
2505 java/util/LinkedList.java, java/util/TimerTask.java,
2506 java/util/HashMap.java, java/util/AbstractMap.java,
2507 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2508 java/util/SortedSet.java: Imported from GNU Classpath.
2509 * Makefile.in: Rebuilt.
2510 * Makefile.am: Added new files.
2512 2000-08-26 Anthony Green <green@redhat.com>
2514 * Makefile.in: Rebuilt.
2515 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2518 * prims.cc: Include ClassLoader.h.
2519 (_Jv_RunMain): When executing jar files, classpath must be the jar
2520 file only. Lose our reference to the system ClassLoader in order
2521 to get a new one with the correct classpath.
2522 * java/lang/natSystem.cc (init_properties): When executing a jar
2523 file, only use the jar file for java.class.path.
2525 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2526 for bytecode archives.
2528 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2529 exists, but not Main-Class.
2531 2000-08-23 Mark Wielaard <mark@klomp.org>
2533 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2534 return -1 when fill() has no more data for the Inflater.
2536 2000-08-23 Mark Wielaard <mark@klomp.org>
2538 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2539 write(String) already does.
2541 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2543 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2544 to `alive_flag', call `init'.
2545 (init): New native method.
2546 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2549 2000-08-21 Mark Wielaard <mark@klomp.org>
2551 * Makefile.in: Rebuilt.
2552 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2554 (java/lang/reflect/Field.h): Likewise.
2555 (java/lang/reflect/Method.h): Likewise.
2556 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2559 2000-08-21 Tom Tromey <tromey@cygnus.com>
2561 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2564 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2566 * java/lang/natSystem.cc (init_properties): Change sourceware
2567 reference to sources.redhat.com.
2569 * include/java-props.h: Add _Jv_Jar_Class_Path.
2570 * prims.cc: Ditto. Set it from `gij -jar file' option.
2572 * java/lang/natSystem.cc (init_properties): Set java.class.path
2574 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2576 * java/util/PropertyPermission.java: Import from GNU Classpath.
2577 * Makefile.in: Rebuilt.
2578 * Makefile.am: Add java/util/PropertyPermission.java.
2579 * java/lang/System.java: Add setProperty method.
2581 * gij.cc (main): Add -jar option to execute jar files.
2582 (help): Describe -jar option.
2583 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2584 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2585 * gnu/gcj/runtime/FirstThread.java (main): New method.
2587 * java/util/jar/Attributes.java: Correct comment spelling.
2589 2000-08-20 Mark Wielaard <mark@klomp.org>
2591 * java/util/zip/Adler32.java: Make private variables really private
2592 * java/util/zip/CRC32.java: Make private variables really private
2593 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2595 * java/util/zip/InflaterInputStream.java: skip() could skip to
2597 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2598 * java/util/zip/ZipFile.java: size() new 1.2 method
2599 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2600 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2603 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2605 * java/util/jar/JarFile.java: Don't call
2606 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2609 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2611 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2612 Read the entire contents of the class file, not just what is
2615 * java/net/JarURLConnection.java: getEntry doesn't take any
2616 arguments. Return null if element is null.
2618 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2619 size from the archive, not the inflated size.
2621 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2622 java.util.zip.ZipFile.getEntry.
2624 * gij.cc (help): Change sourceware reference to
2627 2000-08-19 Tom Tromey <tromey@cygnus.com>
2629 * java/util/zip/ZipInputStream.java (createZipEntry):
2632 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2634 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2635 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2636 java/util/jar/JarInputStream.java,
2637 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2638 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2639 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2640 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2641 java/security/cert/Certificate.java,
2642 java/security/cert/CertificateEncodingException.java,
2643 java/security/cert/CertificateException.java,
2644 java/security/cert/CertificateExpiredException.java,
2645 java/security/cert/CertificateFactory.java,
2646 java/security/cert/CertificateFactorySpi.java,
2647 java/security/cert/CertificateNotYetValidException.java,
2648 java/security/cert/CertificateParsingException.java,
2649 java/security/cert/X509CRL.java,
2650 java/security/cert/X509CRLEntry.java,
2651 java/security/cert/X509Certificate.java,
2652 java/security/cert/X509Extension.java: Imported from Classpath.
2653 * java/util/Hashtable.java: Imported from Classpath.
2655 * java/util/zip/ZipInputStream.java: Create stub for
2658 * gcj/javaprims.h: Updated class list.
2660 * Makefile.in, gcj/Makefile.in: Rebuilt.
2661 * Makefile.am (ordinary_java_source_files): Add these new classes.
2663 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2665 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2666 * gnu/gcj/awt/GLightweightPeer.java: New file.
2667 * java/awt/BorderLayout.java: Implemented all methods.
2668 * java/awt/Button.java (actionListener, actionCommand): Renamed
2669 and modifier change.
2670 (addNotify): Call super.
2671 (dispatchEventImpl): New method.
2672 (getListeners): New method.
2673 (label): Made package-private, not private.
2674 * java/awt/Canvas.java: Implemented class body.
2675 * java/awt/Color.java (brighter): New method.
2676 (darker): New method.
2677 (hashCode): New method.
2678 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2679 (getGraphicsConfiguration): Delegate to
2680 getGraphicsConfigurationImpl().
2681 (getGraphicsConfigurationImpl): New method.
2682 (getToolkit): Only return value from peer if not null.
2683 (isDisplayable): Check with parent.
2684 (isShowing): No parent implies not showing.
2685 (getForeground): Check parent property if local is null.
2686 (getBackground): Likewise.
2687 (getFont): Likewise.
2688 (setForeground): Inform peer.
2689 (setBackground): Likewise
2690 (setLocale): Invalidate component.
2691 (getColorModel): Implemented.
2692 (setLocation): Invalidate, or ignore if no change.
2693 (setSize): Invalidate, or ignore if no change.
2694 (setBounds): Invalidate, or ignore if no change.
2695 (isOpaque): By default, heavyweight implies opaque.
2696 (isLightweight): Implemented.
2697 (getMaximumSize): Implemented.
2698 (doLayout): Implemented, NOP.
2699 (validate): Implemented, NOP.
2700 (invalidate): Only propagate to parent if parent was valid.
2701 (getGraphics): Implemented.
2702 (getFontMetrics): Implemented.
2703 (update): Implemented.
2704 (paintAll): Implemented.
2705 (repaint): Implemented all repaint methods.
2706 (print): Implemented.
2707 (printAll): Implemented.
2708 (createImage): Implemented.
2709 (dispatchEvent): Give the peer a chance to handle the event.
2710 (dispatchEventImpl): Dispatch paint events.
2711 (enableEvents): Lightweights enable events on parent component.
2712 (coalesceEvents): Coalesce paint events, and select event type
2714 (coalescePaintEvents): New method.
2715 (processEvent): Fix unfortunate ordering of statements, and call
2716 correct method for MOUSE_CLICKED.
2717 (processPaintEvent): New method.
2718 (addNotify): Allow container to notify children before event
2719 mask is set in peer.
2720 (addNotifyContainerChildren): New method.
2721 (removeNotify): Visibility should not change on removeNotify.
2722 (paramString): Implemented.
2723 (list): Implemented two of the list methods.
2724 * Container (myInsets): Removed, insets are managed by peer.
2725 (getInsets): Query peer.
2726 (addImpl): Fix reparenting, enable events for lightweights,
2727 initialize component array.
2728 (validate): Call doLayout in validateTree() instead.
2729 (validateTree): Do nothing if already valid. Call beginValidate(),
2730 endValidate() on peer. Call validateTree() instead of validate()
2731 for children that are containers. Mark valid after validation of
2733 (setFont): Partial implementation.
2734 (paint): Implemented.
2735 (visitChildren): New method.
2736 (visitChild): New method.
2737 (update): Implemented.
2738 (print): Implemented.
2739 (paintComponents): Implemented.
2740 (printComponents): Consider translation and clipping.
2741 (getComponentAt): Ignore invisible children. Return this if no
2743 (addNotify): Call super.
2744 (addNotifyContainerChildren): New method.
2745 (paramString): Implemented.
2746 (list): Implemented.
2747 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2749 (invokeLater): Likewise.
2750 (isDispatchThread): Likewise.
2751 * java/awt/FontMetrics (getLeading): Formula change.
2752 (getDescent): Consider leading also.
2753 (getMaxAscent): Default to getAscent().
2754 (getMaxDescent): Default to getDescent.
2755 (getMaxAdvance): Return value signifying unknown.
2756 (charWidth): Both methods implemented.
2757 (charsWidth): Implemented.
2758 (bytesWidth): Implemented.
2759 (getWidths): Implemented.
2760 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2762 (Frame): Rearragend constuctor chaining to disallow null being
2763 passed as a graphics configuration.
2764 (getTitle): Return empty string if null.
2766 (getIconImage): New method.
2767 (setIconImage): New method.
2768 (finalize): New method.
2769 (setMenuBar): Notify peer.
2770 (isResizable): New method.
2771 (setResizable): New method.
2772 (getState): New method.
2774 (remove): Implemented.
2775 (removeNotify): New method.
2776 (getFrames): New method.
2777 * java/awt/Graphics.java: Implemented body of class.
2778 * java/awt/Graphics2D.java: New file.
2779 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2780 * java/awt/Image.java: Implemented body of class.
2781 * java/awt/Panel.java (Panel): Call correct super constructor.
2782 (addNotify): Implemented.
2783 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2784 * java/awt/RenderingHints.java: New file.
2785 * java/awt/Toolkit.java (createComponent): Implemented.
2786 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2787 * java/awt/Window.java (Window): Two new constructors. Reordered
2788 constructor chaining.
2789 (getGraphicsConfigurationImpl): New method.
2790 (finalize): Call super.
2791 (addNotify): Call super.
2792 (pack): Do layout stuff.
2793 (show): Ensure that peer exists and that component is valid.
2794 (dispose): Dispose owned children.
2795 (getOwner): Simplify code, casting null pointers is valid.
2796 (getGraphicsConfiguration): Ask peer if local value is null.
2797 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2799 * java/awt/image/BufferedImage.java: New file.
2800 * java/awt/image/RasterOp.java: New file.
2801 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2802 More powerfull replacement for getColorModel().
2803 (getColorModel) Removed.
2804 (setEventMask) New method.
2805 * Makefile.am: Added new files.
2806 * Makefile.in: Rebuilt.
2808 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2810 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2811 (finit_leg_name): New global.
2812 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2813 `$finit$'. This is a backward compatibility hack.
2814 (java::lang::Class::_getMethods): Likewise.
2816 2000-08-15 Andrew Haley <aph@cygnus.com>
2818 * include/jvm.h (_Jv_HashCode): New hash code.
2820 2000-08-15 Tom Tromey <tromey@cygnus.com>
2822 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2824 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2826 * THANKS: More thanks.
2828 2000-08-10 Tom Tromey <tromey@cygnus.com>
2830 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2832 (connect): Likewise.
2834 (getOption): Likewise.
2835 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2836 case when errno not set.
2839 (receive): Likewise.
2840 (mcastGrp): Likewise.
2841 (setOption): Likewise.
2842 (getOption): Likewise.
2844 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2845 John Stracke <francis@ecal.com>
2847 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2848 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2850 (disconnect): Don't unset connected flag.
2851 (getHeaderField (String)): Call connect() if not connected.
2852 (getHeaderField (int)): Ditto.
2853 (getHeaderFieldKey): Ditto.
2854 (getHttpHeaders): Don't call connect().
2855 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2856 gotResponseVals): New fields.
2857 (getResponseCode): Call getResponseVals() conditionally.
2858 (getResponseMessage): Ditto.
2859 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2861 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2863 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2864 * Makefile.in: Rebuilt.
2865 * java/awt/Color.java (getTransparency): New method.
2866 * java/awt/Component.java: Various updates.
2867 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2868 after dealing with children.
2869 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2870 * java/awt/Window.java: Various new methods and updates.
2871 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2873 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2874 * java/awt/event/WindowEvent.java (paramString): Ditto.
2875 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2877 * java/awt/geom/Point2D.java (clone): Ditto.
2878 * java/awt/geom/RectangularShape.java (clone): Ditto.
2879 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2880 isAlphaPremultiplied): Make package-private, not private.
2882 2000-08-08 Tom Tromey <tromey@cygnus.com>
2884 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2885 surrogate characters.
2886 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2888 (write): Correct handling of surrogate characters.
2890 2000-08-07 Tom Tromey <tromey@cygnus.com>
2892 * java/lang/reflect/Method.java (hashCode): Use getName().
2893 (toString): Likewise.
2894 * java/lang/reflect/natMethod.cc (getType): Initialize
2897 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2899 * java/lang/reflect/Field.java (toString): Correct formatting.
2902 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2904 (receive): Streamlined.
2906 2000-08-05 Tom Tromey <tromey@cygnus.com>
2908 * java/io/PrintWriter.java: Merged comments from Classpath.
2909 (printlnUnsynchronized): Removed.
2910 (println()): Print the separator.
2911 (println): Call println(), not printlnUnsynchronized.
2912 (out): Now protected, to match spec.
2914 2000-08-04 Tom Tromey <tromey@cygnus.com>
2916 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2917 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2920 2000-08-03 Warren Levy <warrenl@cygnus.com>
2922 * java/io/ObjectInputStream.java (readFields): Turn off
2923 readDataFromBlock while reading via GetField.
2924 (GetField$1.get(String, Object)): Pass Class of default value to
2926 (getField): Allow for null default values.
2928 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2929 (PutField$1.put): Fixed calls of checkType in most of the put
2930 methods to pass the correct parameter.
2931 (PutField$1.put(String, Object)): Allow for null value arg.
2932 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2935 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2936 typo in spec'ed field name.
2937 (getSerialPersistentFields): Changed spelling of method to match
2938 the correct spelling of the spec'ed field name.
2940 2000-08-03 Tom Tromey <tromey@cygnus.com>
2942 * Makefile.in: Rebuilt.
2943 * Makefile.am (awt_java_source_files): Added new files.
2945 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2947 * Makefile.am: Add new AWT stubs.
2948 * java/awt/Canvas.java: New placeholder class.
2949 * java/awt/Checkbox.java: Ditto.
2950 * java/awt/CheckboxMenuItem.java: Ditto.
2951 * java/awt/Choice.java: Ditto.
2952 * java/awt/Dialog.java: Ditto.
2953 * java/awt/FileDialog.java: Ditto.
2954 * java/awt/List.java: Ditto.
2955 * java/awt/ScrollPane.java: Ditto.
2956 * java/awt/TextField.java: Ditto.
2957 * java/awt/datatransfer/Clipboard.java: Ditto.
2958 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2959 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2960 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2961 Some commented out. Partially implemented.
2962 * java/awt/natToolkit.cc: Removed file.
2964 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2966 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2967 Fixes "make -j" builds.
2968 * Makefile.in: Rebuild.
2970 2000-08-02 Tom Tromey <tromey@cygnus.com>
2972 * Makefile.in: Rebuilt.
2973 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2974 * java/net/natPlainSocketImpl.cc: Include posix.h.
2975 (accept): Use _Jv_select.
2976 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2977 (receive): Use _Jv_select.
2978 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2979 (available): Use _Jv_select.
2980 * java/lang/natSystem.cc: Include posix.h.
2981 (currentTimeMillis): Use _Jv_gettimeofday.
2982 * include/posix.h: New file.
2983 * posix.cc: New file.
2985 * scripts/encodings.pl: New file.
2986 * Makefile.in: Rebuilt.
2987 * Makefile.am (convert_source_files): Added IOConverter.java.
2988 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2990 (getDefaultDecodingClass): Canonicalize default encoding name.
2991 (getEncoder): Likewise.
2992 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2994 (getDefaultDecodingClass): Canonicalize default encoding name.
2995 (getDecoder): Likewise.
2996 * gnu/gcj/convert/IOConverter.java: New file.
2998 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
3000 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3001 to match C declaration in ffi.h.
3002 * Makefile.am: Add java/awt/Button.java.
3003 * Makefile.in: Rebuilt.
3005 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
3007 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3008 cast of the second argument to `ffi_raw_call' changed to match
3011 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
3013 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3014 argument to `ffi_raw_call' changed to match prototype.
3016 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
3018 * java/awt/Component.java (toString): Implemented.
3019 * java/awt/Container.java (addImpl): Remove FIXME. Only call
3020 dispatchEvent() to dispatch the event.
3021 (removeImpl): Ditto.
3023 2000-07-30 Anthony Green <green@redhat.com>
3025 * java/awt/Component.java: Add treeLock object.
3026 (getTreeLock): Implement.
3027 (isShowing): Implement.
3029 2000-07-30 Tom Tromey <tromey@cygnus.com>
3031 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3033 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3035 * java/awt/Window.java (addNotify): Wrote.
3036 (addWindowListener): Wrote.
3038 (getWarningString): Wrote.
3039 (processEvent): Wrote.
3040 (processWindowEvent): Wrote.
3041 (removeWindowListener): Wrote.
3042 (show): Call validate(), setVisible().
3046 * java/awt/Toolkit.java (createWindow): Declare.
3048 * java/awt/Frame.java (addNotify): Use getToolkit to find
3051 * java/awt/Component.java (invalidate): Wrote.
3053 (getToolkit): Wrote.
3055 * java/awt/Container.java (addContainerListener): Removed
3057 (removeContainerListener): Likewise.
3059 (add(Component)): Use it.
3060 (add(String,Component)): Likewise.
3061 (add(Component,int)): Likewise.
3062 (add(Component,Object)): Likewise.
3063 (add(Component,Object,int)): Likewise.
3065 (getAlignmentX): Wrote.
3066 (getAlignmentY): Wrote.
3067 (getComponentAt): Wrote.
3068 (getMaximumSize): Wrote.
3069 (invalidate): Wrote.
3070 (list(PrintStream,int)): Wrote.
3071 (list(PrintWriter,int)): Wrote.
3072 (getMinimumSize): Wrote.
3073 (getPreferredSize): Wrote.
3074 (printComponents): Wrote.
3075 (processContainerEvent): Look at containerListener, not
3077 (remove): Added event processing and peer destruction.
3078 (removeAll): Use remove.
3079 (removeNotify): Wrote.
3081 (validateTree): Wrote.
3083 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3084 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3085 * java/awt/Container.java (addNotify): Don't create Container
3087 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3089 2000-07-30 Tom Tromey <tromey@cygnus.com>
3091 * java/awt/Container.java (remove(int)): Wrote.
3092 (remove(Component)): Wrote.
3093 (add(Component)): Wrote.
3094 (add(Component,int)): Wrote.
3096 (addNotify): Set our own peer.
3097 * java/awt/Scrollbar.java (listeners): Changed type.
3098 (Scrollbar): Don't initialize listeners.
3100 (setValue): Call setValues.
3101 (setMinimum): Likewise.
3102 (setMaxPriority): Likewise.
3103 (setVisibleAmount): Likewise.
3105 (setUnitIncrement): Forward to peer.
3106 (setLineIncrement): Call setUnitIncrement.
3107 (setPageIncrement): Call setBlockIncrement.
3108 (setBlockIncrement): Forward to peer.
3109 (addAdjustmentListener): Rewrote.
3110 (removeAdjustmentListener): Rewrote.
3111 (processAdjustmentEvent): Rewrote.
3112 (paramString): Wrote.
3113 * Makefile.in: Rebuilt.
3114 * Makefile.am (awt_java_source_files): Added Button.java.
3115 * java/awt/Button.java: New file.
3116 * java/awt/Toolkit.java (createLabel): Declare.
3117 (createButton): Likewise.
3118 (createScrollbar): Likewise.
3119 (createContainer): Likewise.
3120 * java/awt/Label.java (addNotify): Wrote.
3121 (setAlignment): Call setAlignment in the peer.
3122 (setText): Call setText in the peer.
3124 2000-07-28 Warren Levy <warrenl@cygnus.com>
3126 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3127 NotSerializableException with just the class name.
3129 2000-07-26 Andrew Haley <aph@cygnus.com>
3131 * interpret.cc (continue1): Insert missing break into switch.
3133 2000-07-28 Warren Levy <warrenl@cygnus.com>
3135 * java/io/ObjectStreamException.java: Made constructors protected.
3137 2000-07-27 Tom Tromey <tromey@cygnus.com>
3139 * java/io/OutputStreamWriter.java (close): Only flush if not
3142 2000-07-27 Warren Levy <warrenl@cygnus.com>
3144 * mauve-libgcj: Activated serialization tests.
3145 * gcj/field.h (getModifiers): Mask off unknown flags.
3146 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3147 spurious bits don't cause discrepancies.
3148 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3149 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3150 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3151 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3152 * java/lang/Throwable.java (serialVersionUID): New field.
3153 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3154 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3156 * java/lang/reflect/natMethod.cc: Ditto.
3157 * java/security/Key.java (serialVersionUID): Removed field for now.
3158 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3159 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3161 2000-07-22 Tom Tromey <tromey@cygnus.com>
3163 * java/awt/geom/RectangularShape.java (getPathIterator):
3166 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3168 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3169 stub libjava/java/awt/ColorModel.java which was located in the
3171 * libjava/java/awt/image/ComponentColorModel.java: New file.
3172 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3173 * libjava/java/awt/image/DataBuffer.java: New file.
3174 * libjava/java/awt/image/DataBufferByte.java: New file.
3175 * libjava/java/awt/image/DataBufferInt.java: New file.
3176 * libjava/java/awt/image/DataBufferUShort.java: New file.
3177 * libjava/java/awt/image/DirectColorModel.java: New file.
3178 * libjava/java/awt/image/PackedColorModel.java: New file.
3179 * libjava/java/awt/image/Raster.java: New file.
3180 * libjava/java/awt/image/SampleModel.java: New file.
3181 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3183 * libjava/java/awt/image/IndexColorModel.java: New file.
3184 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3185 java.awt.ColorModel stub.
3187 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3188 * gnu/gcj/util/Buffers.java: New file, utility class.
3190 * libjava/Makefile.am: Updated to include new files.
3191 * libjava/Makefile.in: Rebuilt.
3193 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3195 * java/io/StreamTokenizer.java: Merged with classpath.
3197 2000-07-20 Tom Tromey <tromey@cygnus.com>
3199 * Makefile.in: Rebuilt.
3200 * Makefile.am (awt_java_source_files): Updated for new files.
3201 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3202 * java/awt/Label.java: New file.
3203 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3204 (createIntersection, createUnion, getBounds2D): New methods.
3205 * java/awt/Scrollbar.java: New file.
3206 * java/awt/Shape.java: Updated to 1.2.
3207 * java/awt/geom/AffineTransform.java: New file.
3208 * java/awt/geom/Ellipse2D.java: New file.
3209 * java/awt/geom/NoninvertibleTransformException.java: New file.
3210 * java/awt/geom/PathIterator.java: New file.
3211 * java/awt/geom/Rectangle2D.java: New file.
3212 * java/awt/geom/RectangularShape.java: New file.
3213 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3214 * java/awt/geom/IllegalPathStateException.java: New file.
3216 * scripts/showval.java: New file.
3218 * scripts/classes.pl (scan): Print inner classes properly.
3219 * gcj/javaprims.h: Updated class list.
3221 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3222 initialize String fields for interpreted classes. Fixes bug
3223 reported by Hans Boehm.
3225 * java/io/File.java (getParentFile): New method, from Classpath
3226 via Oskar Liljeblad.
3228 * java/util/Vector.java (remove(Object)): Implemented.
3230 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3232 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3233 zero return from backtrace().
3235 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3237 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3239 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3240 before calling notifyAll().
3242 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3244 Add missing files from last check-in:
3245 * java/awt/image/ImageConsumer.java: New file.
3246 * java/awt/image/ImageProducer.java: New file.
3247 * java/awt/image/ImageObserver.java: New file.
3249 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3251 Merged implementation of java.applet from classpath:
3252 * java/applet/Applet.java: New file.
3253 * java/applet/AppletContext.java: New file.
3254 * java/applet/AppletStub.java: New file.
3255 * java/applet/AudioClip.java: New file.
3257 * Makefile.am: Added new java.applet classes.
3258 * Makefile.in: Rebuilt.
3260 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3263 * java/util/ResourceBundle.java (getLocale): stub.
3264 * Makefile.am: Added new AWT classes.
3265 * Makefile.in: Rebuilt.
3266 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3267 constructors. Fix toString() and paramString().
3268 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3269 * java/awt/CheckboxGroup.java: New class.
3270 * java/awt/ColorModel.java: New class.
3271 * java/awt/Component.java: Added stubs for most methods. Implemented
3273 * java/awt/Container.java: ditto.
3274 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3275 * java/awt/Cursor.java: ditto.
3276 * java/awt/Event.java: Fix paramString().
3277 * java/awt/EventQueue.java: New class. Implemented.
3278 * java/awt/Font.java: Added additional stub methods. Implemented
3280 * java/awt/FontMetrics.java: New class. Stubbed.
3281 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3283 * java/awt/Insets.java: New class. Implemented.
3284 * java/awt/Menu.java: Add new methods. Partially implemented.
3285 * java/awt/MenuItem.java: Add new methods and fields. Partially
3287 * java/awt/MenuShortcut.java: New class. Implemented.
3288 * java/awt/Panel.java: New class. Placeholder.
3289 * java/awt/PopupMenu.java: New class. Stubbed.
3290 * java/awt/Rectangle.java: New class. Implemented.
3291 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3292 * java/awt/event/ActionEvent.java: Implement paramString().
3293 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3294 * java/awt/event/ComponentEvent.java: Implement paramString().
3295 * java/awt/event/ContainerEvent.java: Implement paramString().
3296 * java/awt/event/FocusEvent.java: Implement paramString().
3297 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3298 * java/awt/event/HierarchyBoundsListener.java: New class.
3299 * java/awt/event/HierarchyEvent.java: New class.
3300 * java/awt/event/HierarchyListener.java: New class.
3301 * java/awt/event/InputMethodEvent.java: Implement paramString().
3302 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3303 exception if !catchExceptions.
3304 * java/awt/event/ItemEvent.java: Implement paramString().
3305 * java/awt/event/KeyEvent.java: Implement paramString().
3306 * java/awt/event/MouseEvent.java: Implement paramString().
3307 * java/awt/event/PaintEvent.java: Implement paramString().
3308 * java/awt/event/TextEvent.java: Implement paramString().
3309 * java/awt/event/WindowEvent.java: Implement paramString().
3311 AWT Peer interfaces:
3312 * java/awt/peer/ButtonPeer.java: New file.
3313 * java/awt/peer/ListPeer.java: New file.
3314 * java/awt/peer/CanvasPeer.java: New file.
3315 * java/awt/peer/MenuBarPeer.java: New file.
3316 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3317 * java/awt/peer/MenuComponentPeer.java: New file.
3318 * java/awt/peer/CheckboxPeer.java: New file.
3319 * java/awt/peer/MenuItemPeer.java: New file.
3320 * java/awt/peer/ChoicePeer.java: New file.
3321 * java/awt/peer/MenuPeer.java: New file.
3322 * java/awt/peer/ComponentPeer.java: Implemented.
3323 * java/awt/peer/PanelPeer.java: New file.
3324 * java/awt/peer/ContainerPeer.java: Implemented.
3325 * java/awt/peer/PopupMenuPeer.java: New file.
3326 * java/awt/peer/DialogPeer.java: New file.
3327 * java/awt/peer/ScrollPanePeer.java: New file.
3328 * java/awt/peer/FileDialogPeer.java: New file.
3329 * java/awt/peer/ScrollbarPeer.java: New file.
3330 * java/awt/peer/FontPeer.java: New file.
3331 * java/awt/peer/TextAreaPeer.java: New file.
3332 * java/awt/peer/FramePeer.java: Implemented.
3333 * java/awt/peer/TextComponentPeer.java: New file.
3334 * java/awt/peer/LabelPeer.java: New file.
3335 * java/awt/peer/TextFieldPeer.java: New file.
3336 * java/awt/peer/LightweightPeer.java: New file.
3337 * java/awt/peer/WindowPeer.java: Implemented.
3339 2000-07-06 Tom Tromey <tromey@cygnus.com>
3341 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3342 Initialize static final String fields.
3344 2000-07-03 Tom Tromey <tromey@cygnus.com>
3346 * java/io/PrintWriter.java (print): Call write(String), not
3347 print(String). See PR libgcj/277.
3348 (print(String)): Use write, not out.write.
3350 2000-06-30 Tom Tromey <tromey@cygnus.com>
3352 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3354 2000-06-27 Andrew Haley <aph@cygnus.com>
3356 * java/io/File.java (createTempFile): Close the FileDescriptor
3357 used to create a temp file. Fixes some of PR 203.
3358 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3359 collection if we run out of file handles.
3361 2000-06-28 Warren Levy <warrenl@cygnus.com>
3363 * gnu/java/security/provider/Gnu.java: New file.
3364 * gnu/java/security/provider/SHA.java: New file.
3365 * gnu/java/security/provider/SHA1PRNG.java: New file.
3366 * Makefile.am: Added the above files.
3367 * Makefile.in: Rebuilt.
3369 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3371 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3373 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3374 (destroyed_flag): Removed.
3375 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3376 (activeCount): Added spec note.
3378 2000-06-27 Warren Levy <warrenl@cygnus.com>
3380 * java/security/Principal.java: New file.
3381 * Makefile.am: Added Principal.java.
3382 * Makefile.in: Rebuilt.
3384 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3386 * java/awt/event/MouseEvent.java: Fixed coordinate space
3389 2000-06-27 Tom Tromey <tromey@cygnus.com>
3391 * java/io/PushbackInputStream.java (read): If there are characters
3392 in the buffer, don't also call super.read().
3393 * java/io/PushbackReader.java (read): If there are characters in
3394 the buffer, don't also call super.read().
3396 * java/lang/Double.java (valueOf): Call parseDouble().
3398 2000-06-26 Warren Levy <warrenl@cygnus.com>
3400 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3401 (newVal): Renamed to newValue.
3402 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3403 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3404 (revokeNow): Renamed to invalidateRefs.
3405 * java/io/OptionalDataException.java: Updated FIXME.
3406 (eof): New placeholder field.
3408 * java/io/WriteAbortedException.java (message): Made transient.
3409 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3410 * java/lang/Throwable.java (stackTrace): Made transient.
3411 * java/net/InetAddress.java: Made Serializable.
3412 * java/security/KeyPair.java: Made Serializable.
3413 * java/security/Provider.java: Replaced with Classpath version that
3414 implements serialization and proper methods.
3415 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3416 (limits): Renamed to choiceLimits.
3418 2000-06-24 Tom Tromey <tromey@cygnus.com>
3420 * java/lang/natDouble.cc (parseDouble): Renamed from
3422 * java/lang/Double.java (parseDouble): Renamed from
3423 doubleValueOf. Now public.
3425 2000-06-23 Andrew Haley <aph@cygnus.com>
3427 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3428 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3430 2000-06-23 Tom Tromey <tromey@cygnus.com>
3432 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3433 * java/lang/natDouble.cc: Always include <alloca.h>.
3434 Fix for PR libgcj/267.
3436 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3438 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3439 comply with classpath VM spec.
3440 (add(Group)): Rename to addGroup().
3441 * java/lang/Thread.java (Thread): Use addThread().
3442 * java/lang/natThread.cc (finish_): Use removeThread().
3444 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3446 * java/lang/ThreadGroup.java: Merged with classpath.
3447 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3448 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3450 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3451 ThreadGroup.root if Thread.currentThread is null. Honour the
3452 ThreadGroup's max priority setting.
3454 2000-06-18 Tom Tromey <tromey@cygnus.com>
3456 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3457 returned class. For PR gcj/260.
3459 2000-06-16 Tom Tromey <tromey@cygnus.com>
3461 Fix for PR libgcj/261:
3462 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3464 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3465 argument. (This is a patch from long ago that somehow went
3468 2000-06-15 Tom Tromey <tromey@cygnus.com>
3470 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3474 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3476 Fix for PR java.lang/258:
3477 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3478 JV_STATE_DONE, to prevent accidental initialization.
3479 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3480 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3481 interface or an abstract class. Remove redundant initializeClass calls.
3482 Remove duplicate if_idt test.
3483 (_Jv_InterfaceAssignableFrom): New function.
3484 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3486 2000-05-31 Tom Tromey <tromey@cygnus.com>
3488 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3489 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3490 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3491 (NUM_OBJECT_METHODS): New define.
3492 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3493 `array_vtable' parameter. Added assertion.
3494 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3497 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3499 * gcj/cni.h: Include <string.h>.
3500 * defineclass.cc: Include <alloca.h>.
3501 * interpret.cc: Ditto.
3502 * gij.cc: Include <stdlib.h>.
3504 2000-05-30 Tom Tromey <tromey@cygnus.com>
3506 * include/name-finder.h: Include <sys/wait.h>.
3507 (_Jv_name_finder::pid): Now of type `pid_t'.
3508 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3509 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3512 2000-05-24 Warren Levy <warrenl@cygnus.com>
3514 * java/io/ObjectOutputStream.java (writeObject): Use component type
3515 when writing arrays.
3518 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3520 Fix for PR libgcj/226:
3521 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3522 since this is an installed header.
3524 Fix for PR libgcj/228:
3525 * java/util/zip/ZipFile (getInputStream): Create inflater with
3528 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3529 with DataFormatException.
3531 2000-05-20 Tom Tromey <tromey@cygnus.com>
3533 * Makefile.in: Rebuilt.
3534 * Makefile.am (hack1): Removed.
3535 (awto_files): Likewise.
3536 (libgcjawt_la_SOURCES): Likewise.
3537 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3538 (libgcjawt_la_DEPENDENCIES): Likewise.
3539 (libgcjawt_la_LIBADD): Likewise.
3540 (libgcjawt_la_LDFLAGS): Likewise.
3541 (libgcjawt_la_LINK): Likewise.
3542 ($(awt_java_source_files:.java=.class)): Likewise.
3543 (libgcj.zip): Don't depend on AWT files.
3544 (MOSTLYCLEANFILES): Don't include AWT files.
3545 ($(awto_files)): Removed.
3546 (nat_headers): Removed AWT files.
3547 (cond_awt_java_source_files): Removed.
3548 (ordinary_java_source_files): Added awt_java_source_files.
3549 * libgcj.spec.in (*lib): Removed -lgcjawt.
3550 * configure: Rebuilt.
3551 * configure.in: Removed --enable-java-awt option.
3553 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3555 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3556 (ZipEntry): Copy the `name' field.
3557 (clone): Implement JDK1.2 method.
3558 (setCompressedSize): ditto.
3561 2000-05-19 Tom Tromey <tromey@cygnus.com>
3563 * java/io/BufferedWriter.java: Merged with Classpath.
3564 * java/io/BufferedOutputStream.java: Merged with Classpath.
3566 2000-05-16 Andrew Haley <aph@cygnus.com>
3568 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3569 build_ia64_frame_state.
3570 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3573 2000-05-15 Warren Levy <warrenl@cygnus.com>
3575 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3576 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3577 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3578 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3579 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3580 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3581 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3582 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3583 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3584 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3585 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3586 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3587 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3588 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3589 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3590 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3591 * gnu/gcj/io/NullOutputStream.java: Removed.
3592 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3593 * gnu/gcj/lang/ArrayHelper.java: Removed.
3594 * gnu/gcj/lang/ClassHelper.java: Removed.
3595 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3597 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3598 * gnu/java/beans/EmptyBeanInfo.java: New file.
3599 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3600 * gnu/java/beans/IntrospectionIncubator.java: New file.
3601 * gnu/java/beans/editors/ColorEditor.java: New file.
3602 * gnu/java/beans/editors/FontEditor.java: New file.
3603 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3604 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3605 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3606 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3607 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3608 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3609 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3610 * gnu/java/beans/editors/StringEditor.java: New file.
3611 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3612 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3613 * gnu/java/io/NullOutputStream.java: New file.
3614 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3615 * gnu/java/lang/ArrayHelper.java: New file.
3616 * gnu/java/lang/ClassHelper.java: New file.
3617 * gnu/java/lang/reflect/TypeSignature.java: New file.
3619 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3620 namespace back to the original Classpath gnu/java namespace.
3621 * Makefile.in: Rebuilt.
3623 * java/beans/Beans.java: Namespace change.
3624 * java/beans/EventSetDescriptor.java: Namespace change.
3625 * java/beans/Introspector.java: Namespace change.
3626 * java/beans/PropertyEditorManager.java: Namespace change.
3627 * java/io/ObjectInputStream.java: Namespace change.
3628 * java/io/ObjectOutputStream.java: Namespace change.
3629 * java/io/ObjectStreamClass.java: Namespace change.
3630 * java/io/ObjectStreamField.java: Namespace change.
3632 2000-04-21 Warren Levy <warrenl@cygnus.com>
3634 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3635 now that compiler patch is available.
3636 Removed unneeded System.loadLibrary.
3637 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3638 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3640 2000-04-19 Andrew Haley <aph@cygnus.com>
3642 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3643 and target classes have been initialized.
3645 2000-04-19 Andrew Haley <aph@cygnus.com>
3647 * java/lang/String.java: implement Serializable, Comparable.
3648 (compareTo (Object)): New method.
3650 2000-04-19 Warren Levy <warrenl@cygnus.com>
3652 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3653 instead of getField to retrieve non-public field.
3654 (getSerialPersistantFields): Ditto.
3656 2000-04-18 Warren Levy <warrenl@cygnus.com>
3658 * mauve-libgcj: Turned off object serialization tests temporarily
3659 due to compiler error.
3661 2000-04-17 Warren Levy <warrenl@cygnus.com>
3663 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3664 to avoid build problem.
3666 * mauve-libgcj: Turned on object serialization tests.
3668 2000-04-17 Tom Tromey <tromey@cygnus.com>
3670 * libgcj.spec.in (*lib): Added -lgcjawt.
3672 2000-04-17 Andrew Haley <aph@cygnus.com>
3674 * Makefile.am: Add new files:
3675 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3677 * Makefile.in: Rebuilt.
3679 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3680 interface that has no implementations.
3681 Check for an attempt to assign an abstract class to an interface.
3683 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3684 if we fail to find MessageDigest.getInstance ("SHA").
3686 * gnu/gcj/io/SimpleSHSStream.java: New file.
3687 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3688 * gnu/gcj/io/shs.cc: New file.
3689 * gnu/gcj/io/shs.h: new file.
3691 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3694 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3695 punctuation from the classname of an array element.
3697 * gcj/javaprims.h: Add SimpleDigestStream.
3699 2000-04-17 Andrew Haley <aph@cygnus.com>
3701 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3702 to getPrivateField for superclasses.
3704 2000-04-14 Andrew Haley <aph@cygnus.com>
3706 * Makefile.am: Add new files:
3707 java/io/ObjectOutputStream$PutField.h,
3708 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3709 java/io/natObjectOutputStream.cc
3710 * Makefile.in: Rebuilt.
3711 * gcj/Makefile.in: Rebuilt.
3712 * include/Makefile.in: Rebuilt.
3713 * java/lang/Class.h (getPrivateField): New method.
3714 (getPrivateMethod): Ditto.
3715 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3716 and java::io::ObjectStreamClass our friends.
3717 * java/lang/natClass.cc (getPrivateField): New method.
3718 (getPrivateMethod): Ditto.
3719 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3720 * gcj/javaprims.h: Add serialization classes.
3721 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3722 (setByteField): Ditto.
3723 (setCharField): Ditto.
3724 (setDoubleField): Ditto.
3725 (setFloatField): Ditto.
3726 (setIntField): Ditto.
3727 (setLongField): Ditto.
3728 (setShortField): Ditto.
3729 (setObjectField): Ditto.
3730 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3732 (getByteField): Ditto.
3733 (getCharField): Ditto.
3734 (getDoubleField): Ditto.
3735 (getFloatField): Ditto.
3736 (getIntField): Ditto.
3737 (getLongField): Ditto.
3738 (getShortField): Ditto.
3739 (getObjectField): Ditto.
3740 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3742 (getSerialPersistantFields): Ditto.
3743 (getDefinedSUID): Ditto.
3744 * java/io/natObjectOutputStream.cc: New file.
3745 * java/io/natObjectInputStream.cc: New file.
3747 2000-04-13 Warren Levy <warrenl@cygnus.com>
3749 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3750 problems. Revert to previous version to reproduce and when fixed.
3752 2000-04-13 Warren Levy <warrenl@cygnus.com>
3754 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3755 * gnu/gcj/io/NullOutputStream.java: New file.
3756 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3757 * java/io/BlockDataException.java: New file.
3758 * java/io/Externalizable.java: New file.
3759 * java/io/InvalidClassException.java: New file.
3760 * java/io/InvalidObjectException.java: New file.
3761 * java/io/NotActiveException.java: New file.
3762 * java/io/NotSerializableException.java: New file.
3763 * java/io/ObjectInput.java: New file.
3764 * java/io/ObjectInputStream.java: New file.
3765 * java/io/ObjectInputValidation.java: New file.
3766 * java/io/ObjectOutput.java: New file.
3767 * java/io/ObjectOutputStream.java: New file.
3768 * java/io/ObjectStreamClass.java: New file.
3769 * java/io/ObjectStreamConstants.java: New file.
3770 * java/io/ObjectStreamField.java: New file.
3771 * java/io/Replaceable.java: New file.
3772 * java/io/Resolvable.java: New file.
3773 * java/io/SerializablePermission.java: New file.
3774 * java/io/WriteAbortedException.java: New file.
3775 * java/security/BasicPermission.java: New file.
3776 * java/security/DigestOutputStream.java: New file.
3777 * java/security/Guard.java: New file.
3778 * java/security/Permission.java: New file.
3779 * java/security/PermissionCollection.java: New file.
3780 * Makefile.am: Added above files.
3781 * Makefile.in: Rebuilt.
3783 * java/beans/Beans.java (instantiate): Activated serialization code.
3784 * java/lang/SecurityManager.java (checkPermission): New method.
3786 2000-04-12 Warren Levy <warrenl@cygnus.com>
3788 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3789 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3790 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3791 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3792 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3793 * gnu/gcj/beans/editors/FontEditor.java: New file.
3794 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3795 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3796 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3797 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3798 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3799 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3800 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3801 * gnu/gcj/beans/editors/StringEditor.java: New file.
3802 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3803 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3804 * gnu/gcj/lang/ArrayHelper.java: New file.
3805 * gnu/gcj/lang/ClassHelper.java: New file.
3806 * java/beans/BeanDescriptor.java: New file.
3807 * java/beans/BeanInfo.java: New file.
3808 * java/beans/Beans.java: New file.
3809 * java/beans/Customizer.java: New file.
3810 * java/beans/DesignMode.java: New file.
3811 * java/beans/EventSetDescriptor.java: New file.
3812 * java/beans/FeatureDescriptor.java: New file.
3813 * java/beans/IndexedPropertyDescriptor.java: New file.
3814 * java/beans/IntrospectionException.java: New file.
3815 * java/beans/Introspector.java: New file.
3816 * java/beans/MethodDescriptor.java: New file.
3817 * java/beans/ParameterDescriptor.java: New file.
3818 * java/beans/PropertyChangeEvent.java: New file.
3819 * java/beans/PropertyChangeListener.java: New file.
3820 * java/beans/PropertyChangeSupport.java: New file.
3821 * java/beans/PropertyDescriptor.java: New file.
3822 * java/beans/PropertyEditor.java: New file.
3823 * java/beans/PropertyEditorManager.java: New file.
3824 * java/beans/PropertyEditorSupport.java: New file.
3825 * java/beans/PropertyVetoException.java: New file.
3826 * java/beans/SimpleBeanInfo.java: New file.
3827 * java/beans/VetoableChangeListener.java: New file.
3828 * java/beans/VetoableChangeSupport.java: New file.
3829 * java/beans/Visibility.java: New file.
3830 * java/beans/beancontext/BeanContext.java: New file.
3831 * java/beans/beancontext/BeanContextChild.java: New file.
3832 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3833 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3834 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3835 * java/beans/beancontext/BeanContextEvent.java: New file.
3836 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3837 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3838 * java/beans/beancontext/BeanContextProxy.java: New file.
3839 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3841 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3842 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3844 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3845 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3847 * java/beans/beancontext/BeanContextServices.java: New file.
3848 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3849 * java/util/AbstractCollection.java: New file.
3850 * java/util/AbstractList.java: New file.
3851 * java/util/Arrays.java: New file.
3852 * Makefile.am: Added above files.
3853 * Makefile.in: Rebuilt.
3855 2000-04-11 Warren Levy <warrenl@cygnus.com>
3857 * java/awt/AWTError.java: New file.
3858 * java/awt/AWTEvent.java: New file.
3859 * java/awt/AWTException.java: New file.
3860 * java/awt/ActiveEvent.java: New file.
3861 * java/awt/Adjustable.java: New file.
3862 * java/awt/BorderLayout.java: New file.
3863 * java/awt/Color.java: New file.
3864 * java/awt/Component.java: New file.
3865 * java/awt/Container.java: New file.
3866 * java/awt/Dimension.java: New file.
3867 * java/awt/Event.java: New file.
3868 * java/awt/Font.java: New file.
3869 * java/awt/Frame.java: New file.
3870 * java/awt/Graphics.java: New file.
3871 * java/awt/IllegalComponentStateException.java: New file.
3872 * java/awt/Image.java: New file.
3873 * java/awt/ItemSelectable.java: New file.
3874 * java/awt/LayoutManager.java: New file.
3875 * java/awt/LayoutManager2.java: New file.
3876 * java/awt/Menu.java: New file.
3877 * java/awt/MenuBar.java: New file.
3878 * java/awt/MenuComponent.java: New file.
3879 * java/awt/MenuContainer.java: New file.
3880 * java/awt/MenuItem.java: New file.
3881 * java/awt/Paint.java: New file.
3882 * java/awt/PaintContext.java: New file.
3883 * java/awt/Point.java: New file.
3884 * java/awt/Rectangle.java: New file.
3885 * java/awt/Shape.java: New file.
3886 * java/awt/TextArea.java: New file.
3887 * java/awt/TextComponent.java: New file.
3888 * java/awt/Toolkit.java: New file.
3889 * java/awt/Transparency.java: New file.
3890 * java/awt/Window.java: New file.
3891 * java/awt/natToolkit.cc: New file.
3892 * java/awt/event/AWTEventListener.java: New file.
3893 * java/awt/event/ActionEvent.java: New file.
3894 * java/awt/event/ActionListener.java: New file.
3895 * java/awt/event/AdjustmentEvent.java: New file.
3896 * java/awt/event/AdjustmentListener.java: New file.
3897 * java/awt/event/ComponentAdapter.java: New file.
3898 * java/awt/event/ComponentEvent.java: New file.
3899 * java/awt/event/ComponentListener.java: New file.
3900 * java/awt/event/ContainerAdapter.java: New file.
3901 * java/awt/event/ContainerEvent.java: New file.
3902 * java/awt/event/ContainerListener.java: New file.
3903 * java/awt/event/FocusAdapter.java: New file.
3904 * java/awt/event/FocusEvent.java: New file.
3905 * java/awt/event/FocusListener.java: New file.
3906 * java/awt/event/InputEvent.java: New file.
3907 * java/awt/event/InputMethodEvent.java: New file.
3908 * java/awt/event/InputMethodListener.java: New file.
3909 * java/awt/event/InvocationEvent.java: New file.
3910 * java/awt/event/ItemEvent.java: New file.
3911 * java/awt/event/ItemListener.java: New file.
3912 * java/awt/event/KeyAdapter.java: New file.
3913 * java/awt/event/KeyEvent.java: New file.
3914 * java/awt/event/KeyListener.java: New file.
3915 * java/awt/event/MouseAdapter.java: New file.
3916 * java/awt/event/MouseEvent.java: New file.
3917 * java/awt/event/MouseListener.java: New file.
3918 * java/awt/event/MouseMotionAdapter.java: New file.
3919 * java/awt/event/MouseMotionListener.java: New file.
3920 * java/awt/event/PaintEvent.java: New file.
3921 * java/awt/event/TextEvent.java: New file.
3922 * java/awt/event/TextListener.java: New file.
3923 * java/awt/event/WindowAdapter.java: New file.
3924 * java/awt/event/WindowEvent.java: New file.
3925 * java/awt/event/WindowListener.java: New file.
3926 * java/awt/geom/Dimension2D.java: New file.
3927 * java/awt/geom/Point2D.java: New file.
3928 * java/awt/peer/ComponentPeer.java: New file.
3929 * java/awt/peer/ContainerPeer.java: New file.
3930 * java/awt/peer/FramePeer.java: New file.
3931 * java/awt/peer/WindowPeer.java: New file.
3932 * java/util/Collection.java: New file.
3933 * java/util/Comparator.java: New file.
3934 * java/util/Iterator.java: New file.
3935 * java/util/List.java: New file.
3936 * java/util/ListIterator.java: New file.
3937 * Makefile.am: Added above files.
3938 * Makefile.in: Rebuilt.
3940 2000-04-10 Warren Levy <warrenl@cygnus.com>
3942 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3943 * java/lang/FirstThread.java: Ditto.
3944 * java/lang/StringBuffer.java: Ditto.
3945 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3947 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3948 Special case handled in java.math.BigInteger.
3949 * java/math/BigInteger.java (divide): Handle the special case when
3950 dividing by 1 and the high bit of the dividend is set.
3951 (setShiftRight): Handle case when count == 0.
3953 2000-04-05 Andrew Haley <aph@cygnus.com>
3955 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3958 2000-04-05 Andrew Haley <aph@cygnus.com>
3960 * sysdep/ia64.c (rse_address_add): Delete.
3961 (IS_NaT_COLLECTION_ADDR): Delete.
3962 (ia64_backtrace_helper): check for null unwind_info.
3964 * sysdep/ia64-frame.h: add calc_caller_bsp.
3966 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3969 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3970 (_Jv_remI): Likewise.
3971 (_Jv_divJ): Likewise.
3972 (_Jv_remJ): Likewise.
3974 * interpret.cc (continue1): Use divide subroutines to guarantee
3975 correct Java standard behaviour.
3976 Floating-point division should not abort; make it so.
3978 2000-03-29 Tom Tromey <tromey@cygnus.com>
3980 * configure: Rebuilt.
3981 * configure.in: Test against `libgcj_sjlj', not
3982 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3983 to be set even when using sjlj.
3985 2000-03-24 Andrew Haley <aph@cygnus.com>
3987 * Makefile.am: Add file addr2name.awk.
3988 * Makefile.in: Rebuilt.
3989 * addr2name.awk: New file.
3990 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3992 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3995 2000-03-22 Andrew Haley <aph@cygnus.com>
3997 * configure.host: Add -funwind-tables for IA64.
3998 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3999 * Makefile.in: Rebuilt.
4000 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4001 * sysdep/ia64.c: New file.
4002 * sysdep/ia64-frame.h: New file.
4003 * configure.in: Add sysdep/ia64.c for ia64.
4004 * configure: Rebuilt.
4006 2000-03-17 Andrew Haley <aph@cygnus.com>
4008 * java/lang/natString.cc: Remove `register' keyword.
4009 interpret.cc: ditto.
4011 2000-03-16 Andrew Haley <aph@cygnus.com>
4013 * configure.host (ia64): Enable interpreter.
4015 2000-03-14 Hans Boehm <boehm@acm.org>
4017 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4019 2000-03-14 Andrew Haley <aph@cygnus.com>
4021 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4024 2000-03-10 Andrew Haley <aph@cygnus.com>
4026 * java/lang/ieeefp.h: Import latest version from fdlibm.
4028 2000-03-14 Andrew Haley <aph@cygnus.com>
4030 * prims.cc (_Jv_ThrowSignal): New function.
4031 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4033 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4034 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4035 * include/ppc-signal.h: New file.
4037 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
4039 * java/lang/Thread.java: Declare `data' as Object, not RawData.
4040 * java/lang/natThread.java (initialize_native): Cast `data' to
4042 * gnu/gcj/RawData.java: Clarify documentation.
4044 From Gregory R. Warnes <warnes@biostat.washington.edu>:
4045 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4046 `jarFile', not `jarFileURL'.
4048 2000-05-15 Andrew Haley <aph@cygnus.com>
4050 * include/ppc-signal.h: New file.
4052 2000-05-11 Tom Tromey <tromey@cygnus.com>
4054 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4055 file headers, don't include `size' in the skip call.
4057 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
4059 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4060 Avoid arrayCopy() call where possible. Update `count' _after_ calling
4062 (replace): Reimplemented. Fix javadoc.
4063 (reverse): Call ensureCapacity_unsynchronized().
4064 (StringBuffer (String)): Use DEFAULT_CAPACITY.
4066 (replace): Calculate length for arraycopy() correctly.
4068 2000-05-09 Tom Tromey <tromey@cygnus.com>
4070 * java/lang/StringBuffer.java (toString): Don't mark buffer as
4072 (insert(int,char[],int,int): New method.
4073 (delete): New method from Classpath.
4074 (deleteCharAt): Likewise.
4075 (substring): Likewise.
4076 (shared): No longer private.
4077 Added JavaDoc comments from Classpath.
4078 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4081 2000-05-07 Tom Tromey <tromey@cygnus.com>
4083 * Makefile.in: Rebuilt.
4084 * Makefile.am (LIBLINK): New macro.
4085 (libgcj_la_LINK): Use it.
4086 (libgcjawt_la_LINK): Likewise.
4088 2000-05-06 Tom Tromey <tromey@cygnus.com>
4090 * Makefile.in: Rebuilt.
4091 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4093 2000-05-05 Tom Tromey <tromey@cygnus.com>
4095 Fix for PR libgcj/220:
4096 * Makefile.in: Rebuilt.
4097 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4098 (jv_convert_LDFLAGS): Likewise.
4099 (libgcj_la_LDFLAGS): Likewise.
4100 (GCJLINK): New macro.
4101 (jv_convert_LINK): Use it.
4102 (gij_LINK): Likewise.
4103 (libgcj_la_LINK): New macro.
4104 (libgcjawt_la_LINK): Likewise.
4106 2000-05-04 Tom Tromey <tromey@cygnus.com>
4108 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4110 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4114 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4116 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4117 (_Jv_IsAssignableFrom): Ditto.
4118 (_Jv_IsInstanceOf): Ditto.
4119 (_Jv_CheckCast): Ditto.
4120 (_Jv_CheckArrayStore): Ditto.
4121 * java/lang/Class.h (_Jv_InitClass): Ditto.
4122 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4127 (_Jv_MonitorExit): Ditto.
4128 * boehm.cc (_Jv_MarkObj): Ditto.
4129 (_Jv_MarkObj): Ditto.
4130 (_Jv_MarkArray): Ditto.
4131 * prims.cc (_Jv_AllocObject): Ditto.
4132 (_Jv_NewObjectArray): Ditto.
4133 (_Jv_NewPrimArray): Ditto.
4134 (_Jv_Malloc): Ditto.
4135 (_Jv_Realloc): Ditto.
4136 (_Jv_MallocUnchecked): Ditto.
4142 2000-05-04 Tom Tromey <tromey@cygnus.com>
4144 * java/util/Locale.java (Locale): Don't explicitly check for
4146 * java/util/Hashtable.java (containsKey): Don't explicitly check
4149 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4151 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4153 * java/text/StringCharacterIterator.java
4154 (StringCharacterIterator): Don't check for null.
4155 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4157 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4158 check for null pointer.
4159 (leaveGroup): Likewise.
4160 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4162 (setData): Likewise.
4163 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4166 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4168 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4169 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4170 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4171 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4172 -rpath for in-gcc builds.
4173 * Makefile.in: Rebuilt.
4175 2000-04-28 Tom Tromey <tromey@cygnus.com>
4177 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4180 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4182 * libjava/java/lang/String.java (toString): Remove `final' hack.
4184 2000-04-05 Tom Tromey <tromey@cygnus.com>
4186 Runtime support for PR gcj/2:
4187 * prims.cc (_Jv_ThrowNullPointerException): New function.
4188 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4190 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4192 * prims.cc (_Jv_NewObjectArray): Fix typo.
4194 2000-04-26 Tom Tromey <tromey@cygnus.com>
4196 * Makefile.in: Rebuilt.
4197 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4199 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4201 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4204 2000-04-22 Anthony Green <green@cygnus.com>
4206 * include/jvm.h (__builtin_expect): Define as unused for now.
4207 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4211 (_Jv_MonitorExit): Ditto.
4212 * boehm.cc (_Jv_MarkObj): Ditto.
4213 (_Jv_MarkObj): Ditto.
4214 (_Jv_MarkArray): Ditto.
4215 (_Jv_AllocBytes): Ditto.
4216 * prims.cc (_Jv_AllocObject): Ditto.
4217 (_Jv_NewObjectArray): Ditto.
4218 (_Jv_NewPrimArray): Ditto.
4219 (_Jv_Malloc): Ditto.
4220 (_Jv_Realloc): Ditto.
4221 (_Jv_MallocUnchecked): Ditto.
4227 * include/Makefile.in: Rebuilt.
4228 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4230 2000-04-21 Tom Tromey <tromey@cygnus.com>
4232 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4233 Yet another new version from Classpath.
4235 Fix for PR libgcj/15:
4236 * java/util/natGregorianCalendar.cc (_REENTRANT,
4237 _POSIX_PTHREAD_SEMANTICS): Don't define.
4238 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4239 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4241 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4243 * configure: Rebuilt.
4244 * configure.in: If using POSIX threads, define _REENTRANT if
4245 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4246 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4248 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4249 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4250 version from Classpath.
4252 Fix for PR libgcj/213:
4253 * Makefile.in: Rebuilt.
4254 * Makefile.am (gij_SOURCES): Added gij.cc.
4255 (EXTRA_gij_SOURCES): Removed.
4256 (gij_LDADD): Removed gij.lo.
4257 (gij_DEPENDENCIES): Likewise.
4258 ($(gij_OBJECTS)): Depend on nat_headers.
4260 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4261 `setURL', not `url.set'.
4263 2000-04-20 Tom Tromey <tromey@cygnus.com>
4265 Fix for PR java.io/204:
4266 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4267 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4270 Fix for PR libgcj/212:
4271 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4272 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4273 * java/lang/Class.h (_Jv_word): Declare.
4275 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4277 2000-04-19 Tom Tromey <tromey@cygnus.com>
4279 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4280 doesn't have a loader.
4282 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4284 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4285 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4287 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4289 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4291 (available): Initialize `where' to prevent bogus compiler warning.
4293 2000-04-12 Tom Tromey <tromey@cygnus.com>
4295 * java/lang/natString.cc (intern): Temporarily disable finalizer
4298 * java/lang/natString.cc (unintern): Added `obj' argument.
4299 (intern): Register finalizer for string.
4300 * java/lang/String.java (unintern): Now static; added obj
4303 2000-04-11 Tom Tromey <tromey@cygnus.com>
4305 * java/util/Vector.java (VectorEnumeration): Now `final'.
4306 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4307 (HashtableEnumeration): Likewise.
4308 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4309 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4311 2000-04-10 Warren Levy <warrenl@cygnus.com>
4313 * java/io/ObjectStreamException.java: New file.
4314 * java/io/OptionalDataException.java: New file.
4315 * java/io/StreamCorruptedException.java: New file.
4316 * java/math/BigDecimal.java: New file.
4317 * java/sql/CallableStatement.java: New file.
4318 * java/sql/Connection.java: New file.
4319 * java/sql/DataTruncation.java: New file.
4320 * java/sql/DatabaseMetaData.java: New file.
4321 * java/sql/Date.java: New file.
4322 * java/sql/Driver.java: New file.
4323 * java/sql/DriverManager.java: New file.
4324 * java/sql/DriverPropertyInfo.java: New file.
4325 * java/sql/PreparedStatement.java: New file.
4326 * java/sql/ResultSet.java: New file.
4327 * java/sql/ResultSetMetaData.java: New file.
4328 * java/sql/SQLException.java: New file.
4329 * java/sql/SQLWarning.java: New file.
4330 * java/sql/Statement.java: New file.
4331 * java/sql/Time.java: New file.
4332 * java/sql/Timestamp.java: New file.
4333 * java/sql/Types.java: New file.
4334 * Makefile.am: Added above new files.
4335 * Makefile.in: Rebuilt.
4337 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4338 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4339 DatagramSocket constructor instead of null.
4341 2000-04-08 Anthony Green <green@cygnus.com>
4343 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4346 2000-04-08 Anthony Green <green@cygnus.com>
4348 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4349 (_Jv_MutexUnlock): Ditto.
4350 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4351 (_Jv_MutexUnlock): Ditto.
4353 2000-04-08 Anthony Green <green@cygnus.com>
4355 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4356 (ensureCapacity_unsynchronized): New private method.
4357 (append): Use ensureCapacity_unsynchronized.
4359 2000-04-08 Tom Tromey <tromey@cygnus.com>
4361 * Makefile.in: Rebuilt.
4362 * Makefile.am (awt_java_source_files): Added new files.
4363 * java/awt/IllegalComponentStateException.java: New file.
4364 * java/awt/ItemSelectable.java: New file.
4365 * java/awt/event/WindowEvent.java: Finished.
4366 * java/awt/event/TextEvent.java: Finished.
4367 * java/awt/event/ContainerEvent.java: New file.
4368 * java/awt/Component.java (getX, getY): New methods.
4369 * java/awt/event/PaintEvent.java: New file.
4370 * java/awt/event/MouseEvent.java: New file.
4371 * java/awt/ActiveEvent.java: New file.
4372 * java/awt/event/KeyEvent.java: Finished.
4373 * java/awt/event/ItemEvent.java: New file.
4374 * java/awt/Adjustable.java: New file.
4375 * java/awt/event/InputMethodEvent.java: New file.
4376 * java/awt/event/InputEvent.java: Finished.
4377 * java/awt/event/FocusEvent.java: New file.
4378 * java/awt/event/MouseMotionAdapter.java: New file.
4379 * java/awt/event/MouseAdapter.java: New file.
4380 * java/awt/event/KeyAdapter.java: New file.
4381 * java/awt/event/FocusAdapter.java: New file.
4382 * java/awt/event/ContainerAdapter.java: New file.
4383 * java/awt/event/ComponentEvent.java: Finished.
4384 * java/awt/event/AdjustmentEvent.java: New file.
4385 * java/awt/event/ComponentAdapter.java: New file.
4386 * java/awt/event/ActionEvent.java: Finished.
4387 * java/awt/event/MouseMotionListener.java: New file.
4388 * java/awt/event/MouseListener.java: New file.
4389 * java/awt/event/ItemListener.java: New file.
4390 * java/awt/event/InputMethodListener.java: New file.
4391 * java/awt/event/ContainerListener.java: New file.
4392 * java/awt/event/FocusListener.java: New file.
4393 * java/awt/event/ComponentListener.java: New file.
4394 * java/awt/event/AWTEventListener.java: New file.
4395 * java/awt/event/AdjustmentListener.java: New file.
4397 2000-04-08 Anthony Green <green@cygnus.com>
4399 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4400 check when we have to.
4402 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4405 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4408 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4409 inline hasMoreElements.
4411 2000-04-05 Tom Tromey <tromey@cygnus.com>
4413 * configure: Rebuilt.
4414 * configure.in: Recognize --enable-java-awt.
4415 (AWT): New conditional.
4416 * Makefile.in: Rebuilt.
4417 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4419 (libgcjawt_la_SOURCES): New macro.
4420 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4421 (libgcjawt_la_DEPENDENCIES): Likewise.
4422 (libgcjawt_la_LIBADD): Likewise.
4423 (libgcjawt_la_LDFLAGS): Likewise.
4424 (libgcj.zip): Depend on cond_java_awt_source_files
4425 (cond_awt_java_source_files): New macro.
4426 (MOSTLYCLEANFILES): Added awto_files.
4427 (awto_files): New macro. Use where javao_files used.
4428 (nat_headers): Use cond_awt_java_source_files.
4430 2000-04-04 Tom Tromey <tromey@cygnus.com>
4432 * Makefile.in: Rebuilt.
4433 * Makefile.am (awt_java_source_files): Added AWTException.java.
4434 * java/awt/AWTException.java: New file.
4436 2000-04-03 Tom Tromey <tromey@cygnus.com>
4438 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4439 commentary from Alex.
4441 * Makefile.in: Rebuilt.
4442 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4445 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4447 * configure: Rebuilt.
4448 * configure.in: Add --disable-jvmpi.
4449 * include/config.h.in: Rebuilt.
4450 * acconfig.h: Add ENABLE_JVMPI.
4452 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4453 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4454 (_Jv_JVMPI_Notify_THREAD_END): New define.
4455 (_Jv_JVMPI_Notify_THREAD_END): New define.
4456 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4457 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4458 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4460 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4463 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4464 (finish_): Generate JVMPI thread end events.
4465 (run_): Generate JVMPI thread start events.
4466 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4467 preloaded JNI library.
4468 Include JVMPI headers if necessary.
4469 (run): Generate JVMPI thread start events.
4471 * boehm.cc: Define GC_disable and GC_enable.
4472 (_Jv_DisableGC): New function.
4473 (_Jv_EnableGC): New function.
4474 (disable_gc_mutex): Declare.
4475 * nogc.cc (_Jv_DisableGC): New function.
4476 (_Jv_EnableGC): New function.
4478 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4479 (_Jv_JVMPI_Interface): Define.
4480 (jvmpiEnableEvent): New function.
4481 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4483 * include/jvmpi.h: New file.
4485 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4487 * Makefile.in: New #defines and friends for Thread.h.
4488 * Makefile.am: Ditto.
4489 * posix-threads.cc: (struct starter): Remove `object'.
4490 (_Jv_CondWait): Use interruptable condition variables and new
4491 recursive mutexes. New return codes on interrupt or non-ownership
4493 (_Jv_CondNotify): Ditto.
4494 (_Jv_CondNotifyAll): Ditto.
4495 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4496 the target thread by signaling its wait condition.
4497 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4498 not the starter struct. Initialize wait_mutex and wait_cond.
4499 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4501 (_Jv_MutexUnlock): Ditto.
4502 (really_start): Set info->data->thread from pthread_self() to work
4503 around a race condition. Destroy wait_mutex and wait_cond when run()
4505 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4506 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4508 startable_flag: New private field.
4509 (Thread): Initialize `startable_flag'.
4510 (toString): Check for null thread group.
4511 * java/lang/natThread.cc: (struct natThread): New fields
4512 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4513 (class locker): Removed.
4514 (initialize_native): Initialize `join_cond' and `join_mutex'.
4515 (interrupt): Now just calls _Jv_ThreadInterrupt().
4516 (join): Simplified. Just wait on the target thread's join condition.
4517 (finish_): Remove join list code. Unset thread group. Signal
4518 potential joiners by notifying the dying threads join_cond.
4519 (start): Check for illegal restarts.
4520 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4522 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4523 #defines and #ifdefs.
4524 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4525 `wait_mutex', `next'.
4526 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4527 directly mapping to pthread_cond_t.
4528 (struct _Jv_Mutex_t): New recursive implementation.
4529 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4530 _Jv_HaveCondDestroy: Never define this for posix-threads.
4531 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4532 (_Jv_CondNotifyAll): Ditto.
4533 (_Jv_MutexLock): Ditto.
4534 (_Jv_MutexUnlock): Ditto.
4535 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4536 (_Jv_MutexDestroy): Ditto.
4537 (_Jv_CondDestroy): Removed.
4538 (_Jv_PthreadGetMutex): Removed.
4539 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4540 error. Add a FIXME about this.
4541 (_Jv_CondNotifyAll): Ditto.
4542 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4543 _JV_NOT_OWNER on other errors. Add FIXME.
4545 2000-03-26 Tom Tromey <tromey@cygnus.com>
4547 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4549 (call): Don't throw exception here.
4551 2000-03-26 Tom Tromey <tromey@cygnus.com>
4553 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4554 * interpret.cc: Use SIZEOF_VOID_P.
4555 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4556 (_Jv_loadLong): Likewise.
4557 (_Jv_storeDouble): Likewise.
4558 * configure: Rebuilt.
4559 * configure.in: Check size of void*.
4561 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4563 2000-03-26 Hans Boehm <boehm@acm.org>
4565 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4566 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4568 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4569 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4570 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4571 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4573 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4574 (FFI_RAW_SIZE): Likewise.
4575 (_Jv_InterpMethod::ncode): Use them.
4576 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4577 STORED): Define differently on a 64 bit machine.
4578 (continue1): Use ffi_java_raw_call when appropriate.
4580 2000-03-24 Warren Levy <warrenl@cygnus.com>
4582 * java/math/BigInteger.java(divide): Handle the special case when
4583 dividing by 1 and the high bit of the dividend is set.
4584 (setShiftRight): Handle case when count == 0.
4586 2000-03-24 Warren Levy <warrenl@cygnus.com>
4588 * java/awt/Font.java(isBold): Fix syntax error.
4590 * java/awt/Frame.java(postEvent): ditto.
4591 * java/awt/Menu.java(postEvent): ditto.
4592 * java/awt/MenuBar.java(postEvent): ditto.
4593 * java/awt/Toolkit.java(init): Included a stub.
4595 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4597 * java/awt/Event.java: Add all the event type constants.
4598 (Event): Implemented constructors.
4599 (controlDown): Implemented.
4600 (metaDown): Implemented.
4601 (paramString): Stubbed.
4602 (shiftDown): Implemented.
4603 (toString): Implemented.
4604 (translate): Implemented.
4606 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4608 * java/lang/natClass.cc (isInstance): Initialize `this'.
4609 (isAssignableFrom): Initialize `this' and `klass'.
4610 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4611 implemented by any loaded class, so return false.
4612 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4613 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4615 2000-03-19 Warren Levy <warrenl@cygnus.com>
4617 * java/awt/Color.java: Specified java.io for Serializable.
4618 * java/awt/Toolkit.java: Imported java.net.URL.
4620 2000-03-19 Warren Levy <warrenl@cygnus.com>
4622 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4624 2000-03-16 Warren Levy <warrenl@cygnus.com>
4626 * java/awt/Color.java: New file.
4627 * java/awt/Graphics.java: New file.
4628 * java/awt/Image.java: New file.
4629 * java/awt/Paint.java: New file.
4630 * java/awt/PaintContext.java: New file.
4631 * java/awt/Transparency.java: New file.
4632 * java/util/Collection.java: New file.
4633 * java/util/Comparator.java: New file.
4634 * java/util/Iterator.java: New file.
4635 * java/util/List.java: New file.
4636 * java/util/ListIterator.java: New file.
4637 * Makefile.am: Added above new files.
4638 * Makefile.in: Rebuilt.
4640 * java/awt/Font.java (PLAIN): New field.
4642 (ITALIC): New field.
4643 (ROMAN_BASELINE): New field.
4644 (CENTER_BASELINE): New field.
4645 (HANGING_BASELINE): New field.
4649 (pointSize): New field.
4650 (Font): Implemented constructor.
4651 (isPlain): Implemented method.
4652 (isBold): Implemented method.
4653 (isItalic): Implemented method.
4654 (getName): Implemented method.
4655 (getStyle): Implemented method.
4656 (getSize): Implemented method.
4657 (getSize2D): Implemented method.
4659 * java/awt/Frame.java (getFont): Stubbed.
4660 (postEvent): Stubbed.
4662 * java/awt/Menu.java (postEvent): Stubbed.
4663 * java/awt/MenuBar.java (getFont): Stubbed.
4664 (postEvent): Stubbed.
4665 * java/awt/Toolkit.java (getImage): Added abstract method.
4667 2000-03-15 Tom Tromey <tromey@cygnus.com>
4669 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4671 * prims.cc (win32_exception_handler): Reformatted.
4673 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4674 (_Jv_HaveMutexDestroy): Likewise.
4676 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4678 * java/io/natFileDescriptorWin32.cc: New file.
4679 * java/io/natFileWin32.cc: New file.
4680 * java/net/natInetAddress.cc: Added conditional inclusion of
4681 Windows / Winsock headers.
4682 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4683 inclusion of Windows / Winsock headers.
4684 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4685 Windows / Winsock headers.
4686 * include/win32-signal.h: New file.
4687 * include/win32-threads.h: New file.
4688 * win32-threads.cc: New file.
4689 * exception.cc (win32_get_restart_frame): New function.
4690 * prims.cc (win32_exception_handler): New function.
4691 (main_init) Performs Winsock initialisation.
4692 (main_init) Installs exeception handler.
4694 2000-03-14 Tom Tromey <tromey@cygnus.com>
4696 * jni.cc (mangled_name): Fixed assertion.
4697 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4698 turned assert into actual failure.
4700 2000-03-09 Warren Levy <warrenl@cygnus.com>
4702 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4703 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4704 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4706 2000-03-09 Warren Levy <warrenl@cygnus.com>
4708 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4709 * java/security/DigestException.java: New file.
4710 * java/security/GeneralSecurityException.java: New file.
4711 * java/security/InvalidAlgorithmParameterException.java: New file.
4712 * java/security/InvalidKeyException.java: New file.
4713 * java/security/InvalidParameterException.java: New file.
4714 * java/security/Key.java: New file.
4715 * java/security/KeyException.java: New file.
4716 * java/security/KeyPair.java: New file.
4717 * java/security/KeyPairGenerator.java: New file.
4718 * java/security/KeyPairGeneratorSpi.java: New file.
4719 * java/security/NoSuchProviderException.java: New file.
4720 * java/security/PrivateKey.java: New file.
4721 * java/security/Provider.java: New file.
4722 * java/security/PublicKey.java: New file.
4723 * java/security/SecureRandom.java: New file.
4724 * java/security/Security.java: New file.
4725 * java/security/Signature.java: New file.
4726 * java/security/SignatureException.java: New file.
4727 * java/security/interfaces/DSAKey.java: New file.
4728 * java/security/interfaces/DSAParams.java: New file.
4729 * java/security/interfaces/DSAPrivateKey.java: New file.
4730 * java/security/interfaces/DSAPublicKey.java: New file.
4731 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4732 * java/security/interfaces/RSAPrivateKey.java: New file.
4733 * java/security/interfaces/RSAPublicKey.java: New file.
4734 * java/security/spec/AlgorithmParameterSpec.java: New file.
4735 * java/security/spec/InvalidKeySpecException.java: New file.
4736 * java/security/spec/InvalidParameterSpecException.java: New file.
4737 * java/security/spec/KeySpec.java: New file.
4738 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4739 * java/security/spec/RSAPrivateKeySpec.java: New file.
4740 * java/security/spec/RSAPublicKeySpec.java: New file.
4741 * Makefile.am: Added above java.security files.
4742 * Makefile.in: Rebuilt.
4744 * java/security/MessageDigest.java: Rewritten.
4745 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4747 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4751 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4753 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4754 _Jv_PrepareConstantTimeTables.
4755 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4756 classes should have an IDT, so don't return if klass is an array
4759 2000-03-08 Tom Tromey <tromey@cygnus.com>
4761 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4762 of `void' to be created.
4764 2000-03-08 Warren Levy <warrenl@cygnus.com>
4766 * java/math/BigInteger.java(signum): Handle zero properly.
4768 2000-03-07 Tom Tromey <tromey@cygnus.com>
4770 * All files: Updated copyright information.
4771 * COPYING: New file.
4772 * COPYING.LIB: Removed.
4773 * LIBGCJ_LICENSE: We now use GPL + special exception.
4775 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4777 * resolve.cc (_Jv_SearchMethodInClass): New function.
4778 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4779 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4781 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4783 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4784 (struct _Jv_ifaces): New declaration.
4785 JV_CLASS: New macro definition.
4786 (getComponentType): Relocate below isArray() for inlining.
4787 (getModifiers): Declare `inline'.
4788 (getSuperclass): Ditto.
4790 (isPrimitive): Ditto.
4791 (_Jv_IsAssignableFrom): New prototype.
4792 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4794 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4795 Check for JV_STATE_DONE before invoking initializeClass().
4796 (_Jv_PrepareConstantTimeTables): New prototype.
4797 (_Jv_GetInterfaces): Ditto.
4798 (_Jv_GenerateITable): Ditto.
4799 (_Jv_GetMethodString): Ditto.
4800 (_Jv_AppendPartialITable): Ditto.
4801 (_Jv_FindIIndex): Ditto.
4802 depth, ancestors, idt: New class fields.
4804 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4805 inline function `_Jv_IsAssignableFrom'. Use that function.
4806 (isInstance): Declare `inline'.
4807 (initializeClass): Get lock on class before checking `state'. Unlock
4808 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4810 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4811 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4812 class->depth and ancestor table.
4813 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4814 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4815 _Jv_IsAssignableFrom.
4816 (_Jv_CheckArrayStore): Ditto.
4817 (_Jv_LookupInterfaceMethodIdx): New function.
4818 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4819 (_Jv_PrepareConstantTimeTables): New function.
4820 (_Jv_IndexOf): Ditto.
4821 (_Jv_GetInterfaces): Ditto.
4822 (_Jv_GenerateITable): Ditto.
4823 (_Jv_GetMethodString): Ditto.
4824 (_Jv_AppendPartialITable): Ditto.
4825 iindex_mutex, iindex_mutex_initialized: New static fields.
4826 (_Jv_FindIIndex): New function.
4828 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4830 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4831 (_Jv_CheckArrayStore): Ditto.
4832 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4833 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4834 Moved to gcj/array.h.
4835 (_Jv_Realloc): New function.
4837 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4839 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4840 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4841 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4842 JvNewDoubleArray): Implementations moved from prims.cc and
4845 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4847 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4849 2000-03-06 Tom Tromey <tromey@cygnus.com>
4851 * jni.cc (MARK_NONE): New define.
4852 (MARK_USER): Likewise.
4853 (MARK_SYSTEM): Likewise.
4854 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4856 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4857 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4858 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4859 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4861 (call): Use MARK_SYSTEM.
4862 (_Jv_GetJNIEnvNewFrame): New function.
4863 (_Jv_LookupJNIMethod): New function.
4864 (_Jv_JNI_PopSystemFrame): New function.
4865 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4867 2000-03-05 Tom Tromey <tromey@cygnus.com>
4869 Fix for PR libgcj/43:
4870 * include/Makefile.in: Rebuilt.
4871 * include/Makefile.am (include_HEADERS): New define.
4873 2000-03-05 Anthony Green <green@redhat.com>
4875 * gcj/javaprims.h ("Java"): Remove FirstThread.
4877 * configure.host: Fix __NO_MATH_INLNES botch.
4879 * Makefile.in: Rebuilt.
4880 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4881 (gnu/gcj/runtime/FirstThread.h): Moved.
4882 (ordinary_java_source_files): Move FirstThread.java.
4883 * prims.cc: Deal with FirstThread movement.
4885 (_Jv_RunMain): Ditto.
4887 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4888 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4890 2000-03-05 Warren Levy <warrenl@cygnus.com>
4892 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4893 Handle null addresses.
4895 2000-03-04 Anthony Green <green@redhat.com>
4897 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4900 2000-03-04 Anthony Green <green@redhat.com>
4902 * configure: Rebuilt.
4903 * configure.in (ZLIBTESTSPEC): New macro.
4904 (GCTESTSPEC): New macro.
4905 (LIBGCJTESTSPEC): New macro.
4906 * libgcj-test.spec.in: New file.
4908 2000-03-02 Tom Tromey <tromey@cygnus.com>
4910 * include/java-interp.h: Don't include MethodInvocation.h.
4911 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4912 * Makefile.in: Rebuilt.
4913 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4914 (ordinary_java_source_files): Don't mention
4915 MethodInvocation.java.
4916 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4917 * interpret.cc (MethodInvocation::continue1): Removed.
4918 (run): Handle exceptions here.
4919 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4921 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4923 (defineClass2): Removed.
4925 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4927 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4929 (hack_call): Removed.
4931 * java/lang/Class.h (Class): Removed hackRunInitializers,
4933 * java/lang/natClass.cc (hackRunInitializers): Removed.
4934 (initializeClass): Catch exceptions here.
4935 Include ExceptionInInitializerError.h.
4936 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4939 * java/lang/Object.h (Object): Don't mention hack12_6.
4940 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4942 * java/lang/Object.java (hack12_6): Removed.
4944 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4945 (start): Use run_, not run__.
4946 * java/lang/Thread.java (run_): Renamed from run__; old run_
4949 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4950 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4951 (_Jv_JNI_DefineClass): Likewise.
4952 (_Jv_JNI_ThrowNew): Likewise.
4953 (_Jv_JNI_AllocObject): Likewise.
4954 (_Jv_JNI_GetAnyMethodID): Likewise.
4955 (_Jv_JNI_CallAnyMethodV): Likewise.
4956 (_Jv_JNI_CallAnyMethodA): Likewise.
4957 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4958 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4959 (_Jv_JNI_GetAnyFieldID): Likewise.
4960 (_Jv_JNI_NewString): Likewise.
4961 (_Jv_JNI_NewStringUTF): Likewise.
4962 (_Jv_JNI_GetStringUTFChars): Likewise.
4963 (_Jv_JNI_NewObjectArray): Likewise.
4964 (_Jv_JNI_NewPrimitiveArray): Likewise.
4965 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4966 (_Jv_JNI_GetStringRegion): Likewise.
4967 (_Jv_JNI_GetStringUTFRegion): Likewise.
4968 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4969 (_Jv_JNI_MonitorEnter): Likewise.
4970 (_Jv_JNI_MonitorExit): Likewise.
4971 (_Jv_JNI_ToReflectedField): Likewise.
4972 (_Jv_JNI_ToReflectedMethod): Likewise.
4973 (_Jv_JNI_RegisterNatives): Likewise.
4974 (_Jv_JNI_AttachCurrentThread): Likewise.
4975 (_Jv_JNI_DestroyJavaVM): Likewise.
4977 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4979 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4980 error caused by the incorrect casting of a long to an int.
4982 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4984 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4985 SIGSEV caused by use of the wrong instance variable.
4987 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4989 * java/io/File.java (File(String, String)): For dirPath, treat an
4990 empty String the same as `null'.
4992 2000-02-26 Anthony Green <green@cygnus.com>
4994 * gnu/gcj/io/MimeTypes.java: Test for null.
4996 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4997 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4999 * java/net/URLConnection.java: Update copyright notice.
5001 2000-02-25 Tom Tromey <tromey@cygnus.com>
5003 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5006 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
5008 * java/net/URLConnection.java (initializeDateFormats): New
5010 (getHeaderFieldDate): Call initializeDateFormats if required.
5011 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5013 Fix for PR libgcj/38.
5015 2000-02-24 Warren Levy <warrenl@cygnus.com>
5017 * java/math/BigInteger.java(ival): Made private.
5021 2000-02-20 Anthony Green <green@cygnus.com>
5023 * Makefile.in: Rebuilt.
5024 * Makefile.am (ordinary_java_source_files): Add
5025 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5027 * scripts/MakeDefaultMimeTypes.java: New file.
5028 * scripts/mime.types: New file.
5029 * scripts/classes.pl: Moved from top level.
5030 * classes.pl: Moved to scripts directory.
5032 * java/net/URLConnection.java: Implement guessContentTypeFromName.
5034 * gnu/gcj/io/MimeTypes.java: New file.
5035 * gnu/gcj/io/DefaultMimeTypes.java: New file.
5037 2000-02-20 Tom Tromey <tromey@cygnus.com>
5039 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5041 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
5043 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5046 2000-02-18 Tom Tromey <tromey@cygnus.com>
5048 * include/jvm.h (_Jv_GetJavaVM): Declare.
5049 * include/java-interp.h (_Jv_GetFirstMethod): New function.
5050 (_Jv_MethodBase::get_method): New method.
5051 (_Jv_JNIMethod::set_function): New method.
5052 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5053 (_Jv_JNI_RegisterNatives): New function.
5054 (_Jv_JNIFunctions): Updated for new functions.
5055 (_Jv_GetJavaVM): New function.
5056 (_Jv_JNI_GetJavaVM): Use it. Now static.
5057 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5058 is already a Java thread but does not have a JNIEnv yet.
5060 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5063 2000-02-17 Tom Tromey <tromey@cygnus.com>
5065 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5068 2000-02-16 Tom Tromey <tromey@cygnus.com>
5070 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5072 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5073 (_Jv_JNI_NewObject): Likewise.
5074 (_Jv_JNI_NewObjectA): Likewise.
5075 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5076 as "return" type to _Jv_CallAnyMethodA.
5077 (_Jv_JNI_CallAnyMethodA): Likewise.
5078 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5080 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5083 2000-02-15 Tom Tromey <tromey@cygnus.com>
5085 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5087 (init_cif): Added `rtype_p' argument.
5088 * include/java-interp.h (class _Jv_MethodBase): Added
5090 (class _Jv_InterpMethod): Removed args_raw_size.
5091 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5092 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5093 class pointer as well as the ordinary arguments.
5095 * jni.cc (mangled_name): Skip leading `(' in signature.
5097 * jni.cc (add_char): Added missing `else'.
5099 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5102 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5106 * java/lang/natRuntime.cc (_load): Include library path with
5109 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5112 * java/lang/natThread.cc (dumpStack): Removed.
5113 * java/lang/Thread.java (dumpStack): Implemented.
5115 2000-02-15 Tom Tromey <tromey@cygnus.com>
5117 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5118 with `lib' for loadLibrary. Fixes PR gcj/150.
5120 2000-02-14 Warren Levy <warrenl@cygnus.com>
5122 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5124 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5128 (modPow): Rewritten to not use the naive, slow, brute force approach.
5129 (isProbablePrime): Implemented.
5130 (testBit): Implemented.
5131 (flipBit): Implemented.
5132 (getLowestSetBit): Implemented.
5134 2000-02-16 Anthony Green <green@redhat.com>
5136 * configure.host: Use the same options for i386 and i486 as we do
5139 2000-02-12 Tom Tromey <tromey@cygnus.com>
5141 * java/io/File.java (createTempFile): Use low bits from counter,
5144 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5146 * THANKS: More thanks.
5148 2000-02-11 Tom Tromey <tromey@cygnus.com>
5150 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5151 astore instruction. From Hans Boehm.
5153 2000-02-11 Warren Levy <warrenl@cygnus.com>
5155 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5156 (BigInteger(String)): New constructor.
5157 (not): Rewritten using version from Kawa's BitOps class.
5158 (valueOf): New private methods from Kawa's BitOps class.
5165 (andNot): Implemented.
5166 (clearBit): Implemented.
5167 (setBit): Implemented.
5168 (bitCount): Implemented.
5169 (toByteArray): Implemented.
5171 2000-02-11 Tom Tromey <tromey@cygnus.com>
5173 * java/io/File.java (nextValue): Now synchronized.
5175 2000-02-10 Tom Tromey <tromey@cygnus.com>
5177 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5178 * java/io/FileDescriptor.java (EXCL): New static field.
5179 * java/io/File.java (tmpdir): New static field.
5180 (createTempFile): New method.
5181 (nextValue): New method.
5182 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5185 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5186 (jboolean): Declare as an attributed int, not a bool.
5187 (_Jv_func): Declare differently for C.
5189 * gnu/gcj/jni/natNativeThread.cc: New file.
5190 * gnu/gcj/jni/NativeThread.java: New file.
5191 * java/lang/Thread.java (data): Now a RawData.
5192 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5194 * Makefile.in: Rebuilt.
5195 * Makefile.am (java/lang/Thread.h): New target.
5196 (ordinary_java_source_files): Added NativeThread.java.
5197 (nat_source_files): Added natNativeThread.cc.
5198 * java/lang/natThread.cc: Include <jni.h>
5199 (struct natThread): Added `jni_env' field.
5200 (_Jv_GetCurrentJNIEnv): New function.
5201 (_Jv_SetCurrentJNIEnv): Likewise.
5202 (initialize_native): Initialize jni_env.
5204 * jni.cc (ThreadGroupClass): New define.
5205 (_Jv_JNI_InvokeFunctions): New structure.
5206 (JNI_GetCreatedJavaVMs): New function.
5207 (the_vm): New global.
5208 (JNI_GetDefaultJavaVMInitArgs): New function.
5209 Include NativeThread.h.
5210 (NativeThreadClass): New define.
5211 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5212 (_Jv_JNI_DestroyJavaVM): New function.
5213 (_Jv_JNI_AttachCurrentThread): New function.
5214 (_Jv_JNI_DetachCurrentThread): New function.
5215 (_Jv_JNI_GetEnv): New function.
5216 (JNI_CreateJavaVM): New function.
5217 (_Jv_JNI_GetJavaVM): New function.
5218 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5219 * include/jni.h (JavaVMAttachArgs): New structure.
5220 (JNI_EDETACHED): New define.
5221 (JNI_EVERSION): Likewise.
5222 (JavaVM): Define properly.
5223 (struct JNIInvokeInterface): New structure.
5224 (class _Jv_JavaVM): New class.
5225 (JNI_OnLoad, JNI_OnUnload): Declare.
5226 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5227 JNI_GetCreatedJavaVMs): Declare.
5228 (JavaVMInitArgs): New typedef.
5229 (JavaVMOption): Likewise.
5230 (JNI_ERR): New define.
5233 2000-02-10 Andrew Haley <aph@cygnus.com>
5235 * interpret.cc: Don't include fdlibm.h.
5236 Replace #if with #ifdef throughout.
5237 Declare extern __ieee754_fmod.
5238 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5240 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5241 Search class hierarchy for superclass vtable.
5243 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5244 off the end of a pointer list.
5246 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5250 2000-02-09 Tom Tromey <tromey@cygnus.com>
5252 * java/lang/natRuntime.cc (_load): Call add_library.
5253 (loadLibraryInternal): Likewise.
5255 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5256 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5257 (Output_iconv::finalize): Likewise.
5259 2000-02-08 Tom Tromey <tromey@cygnus.com>
5261 * java/util/Properties.java (setProperty): New method.
5262 (store): New method.
5264 2000-02-07 Tom Tromey <tromey@cygnus.com>
5266 * java/lang/Runtime.java (_load): Declare.
5267 (load, loadLibrary): Wrote in terms of _load.
5268 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5270 (loadLibrary): Likewise.
5272 (_load): New method.
5273 (loadLibrary, load): Removed.
5275 * jni.cc (ThrowableClass): New define.
5276 (_Jv_JNI_Throw): Check argument.
5277 (_Jv_JNI_ThrowNew): Likewise.
5278 (wrap_value): Don't wrap object if it is NULL.
5279 (_Jv_JNI_DefineClass): Use wrap_value.
5280 (_Jv_JNI_FindClass): Likewise.
5281 (_Jv_JNI_GetSuperclass): Likewise.
5282 (_Jv_JNI_ExceptionOccurred): Likewise.
5283 (_Jv_JNI_AllocObject): Likewise.
5284 (_Jv_JNI_GetObjectClass): Likewise.
5285 (_Jv_JNI_NewString): Likewise.
5286 (_Jv_JNI_NewStringUTF): Likewise.
5287 (_Jv_JNI_NewObjectArray): Likewise.
5288 (_Jv_JNI_GetObjectArrayElement): Likewise.
5289 (_Jv_JNI_NewPrimitiveArray): Likewise.
5290 (_Jv_JNI_ToReflectedField): Likewise.
5291 (_Jv_JNI_ToReflectedMethod): Likewise.
5292 (_Jv_JNI_AllocObject): Check argument.
5293 (_Jv_JNI_NewObjectV): Likewise.
5294 (_Jv_JNI_NewObject): Likewise.
5295 (_Jv_JNI_NewObjectA): Likewise.
5296 (_Jv_JNI_GetObjectClass): Likewise.
5297 (_Jv_JNI_GetField): Likewise.
5298 (_Jv_JNI_SetField): Likewise.
5300 * interpret.cc (PUSHL): Don't use expression statement.
5305 * jni.cc (add_char): Conditional on INTERPRETER.
5306 (mangled_name): Likewise.
5308 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5310 (class _Jv_JNIMethod): Likewise.
5312 2000-02-04 Warren Levy <warrenl@cygnus.com>
5314 * Makefile.am: Added MPN.java and BigInteger.java.
5315 * Makefile.in: Rebuilt.
5316 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5318 * java/math/BigInteger.java: New file. Based primarily on
5319 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5321 2000-02-04 Tom Tromey <tromey@cygnus.com>
5323 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5325 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5326 if the method is native.
5327 * resolve.cc (ncode): Don't handle native methods.
5328 (_Jv_JNIMethod::ncode): New method.
5329 (_Jv_PrepareClass): Handle native methods.
5330 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5331 Include AbstractMethodError.h.
5332 (add_char): New function.
5333 (mangled_name): Likewise.
5334 * include/java-interp.h (class _Jv_JNIMethod): New class.
5335 (class _Jv_MethodBase): New class.
5336 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5337 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5340 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5341 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5342 libraries): New globals.
5343 (add_library): New function.
5344 (_Jv_FindSymbolInExecutable): New function.
5346 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5349 2000-02-04 Andrew Haley <aph@cygnus.com>
5351 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5352 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5353 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5354 printStackTrace to printRawStackTrace.
5356 2000-02-03 Tom Tromey <tromey@cygnus.com>
5358 * java/util/Calendar.java (toString): New method.
5359 * java/util/SimpleTimeZone.java (clone): New method.
5360 (toString): New method.
5361 * java/util/TimeZone.java (clone): New method.
5362 * java/text/SimpleDateFormat.java (clone): New method.
5363 * java/text/NumberFormat.java (clone): New method.
5364 (equals): New method.
5365 * java/text/Format.java (clone): New method.
5366 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5368 (clone): New method.
5369 * java/text/DateFormat.java (clone): New method.
5370 * java/text/Collator.java (clone): New method.
5372 2000-02-03 Tom Tromey <tromey@cygnus.com>
5374 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5377 2000-02-01 Tom Tromey <tromey@cygnus.com>
5379 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5380 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5381 constructing the closure if the function is native.
5382 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5383 a template function, #if'd out, or static.
5384 Include <java-interp.h>.
5386 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5388 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5390 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5391 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5393 (wrap_value): New function.
5394 (_Jv_JNI_CallAnyMethodV): Use it.
5395 (_Jv_JNI_CallAnyMethodA): Likewise.
5396 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5397 (_Jv_JNI_GetStaticField): Likewise.
5399 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5400 (_Jv_JNI_GetStaticField): Likewise.
5402 2000-01-31 Tom Tromey <tromey@cygnus.com>
5404 * prims.cc (_Jv_MallocUnchecked): New function.
5405 (main_init): Call _Jv_JNI_Init.
5406 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5407 (_Jv_JNI_Init): Declare.
5408 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5410 (_Jv_JNI_NewGlobalRef): New function.
5411 (_Jv_JNI_DeleteGlobalRef): New function.
5412 (_Jv_JNI_DeleteLocalRef): New function.
5413 (_Jv_JNI_conversion_call): Initialize and clear local reference
5415 (_Jv_JNI_NewLocalRef): New function.
5416 (struct _Jv_JNI_LocalFrame): New structure.
5417 (_Jv_JNI_PushLocalFrame): New function.
5418 (_Jv_JNI_EnsureLocalCapacity): New function.
5419 (FRAME_SIZE): New define.
5420 (_Jv_JNI_GetStringChars): Mark string, not characters.
5421 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5422 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5423 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5425 (_Jv_JNI_DefineClass): Make return value a local ref.
5426 (_Jv_JNI_FindClass): Likewise.
5427 (_Jv_JNI_GetSuperclass): Likewise.
5428 (_Jv_JNI_ExceptionOccurred): Likewise.
5429 (_Jv_JNI_AllocObject): Likewise.
5430 (_Jv_JNI_GetObjectClass): Likewise.
5431 (_Jv_JNI_CallAnyMethodV): Likewise.
5432 (_Jv_JNI_NewString): Likewise.
5433 (_Jv_JNI_NewStringUTF): Likewise.
5434 (_Jv_JNI_NewObjectArray): Likewise.
5435 (_Jv_JNI_GetObjectArrayElement): Likewise.
5436 (_Jv_JNI_ToReflectedField): Likewise.
5437 (_Jv_JNI_ToReflectedMethod): Likewise.
5438 (_Jv_JNIFunctions): Updated table for new functions.
5439 (_Jv_JNI_Init): New function.
5440 (mark_for_gc): Wrote.
5441 (unmark_for_gc): Wrote.
5442 * include/jni.h (struct JNINativeInterface): Removed name from
5443 PopLocalFrame parameter.
5444 (class _Jv_JNIEnv): Added `locals' field.
5446 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5448 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5451 2000-01-30 Tom Tromey <tromey@cygnus.com>
5453 * include/config.h.in: Rebuilt.
5454 * acconfig.h (HAVE_ICONV): Define.
5455 * configure: Rebuilt.
5456 * configure.in: Check for `iconv' function.
5457 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5458 no specific encoder exists.
5459 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5460 no specific encoder exists.
5461 * Makefile.in: Rebuilt.
5462 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5464 (nat_source_files): Added natIconv.cc.
5465 * gnu/gcj/convert/natIconv.cc: New file.
5466 * gnu/gcj/convert/Input_iconv.java: New file.
5467 * gnu/gcj/convert/Output_iconv.java: New file.
5469 2000-01-28 Tom Tromey <tromey@cygnus.com>
5471 * Makefile.in: Rebuilt.
5472 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5474 2000-01-26 Tom Tromey <tromey@cygnus.com>
5476 * gcj/method.h (JvNumMethods): Moved from Class.h.
5477 (JvGetFirstMethod): Likewise.
5478 * java/lang/Class.h (Object): Updated decl of
5479 _Jv_JNI_ToReflectedField.
5480 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5481 * Makefile.in: Rebuilt.
5482 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5483 argument of _Jv_JNI_ToReflectedField.
5484 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5486 (java/lang/reflect/Method.h): Likewise.
5487 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5489 (jweak): New typedef.
5490 (struct JNINativeInterface): Correctly declare remaining entries.
5491 * jni.cc: Include Class.h, ClassLoader.h.
5492 (_Jv_JNI_FindClass): New function.
5493 (_Jv_JNI_DefineClass): New function.
5494 (_Jv_JNI_conversion_call): New function.
5495 (_Jv_JNI_FindClass): Use current class loader to find class.
5496 (_Jv_JNI_ExceptionCheck): New function.
5497 (_Jv_JNI_FromReflectedField): Now static.
5498 (MethodClass): New define.
5499 (_Jv_JNI_FromReflectedMethod): New function.
5500 (_Jv_JNI_ToReflectedMethod): Likewise.
5502 (_Jv_JNI_IsAssignableFrom): Renamed.
5503 (_Jv_JNI_GetStringRegion): New function.
5504 Include StringIndexOutOfBoundsException.h.
5505 (_Jv_JNI_GetStringUTFRegion): New function.
5506 (_Jv_JNIFunctions): Updated for new functions.
5507 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5508 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5509 (_Jv_JNI_GetStringCritical): New function.
5510 (_Jv_JNI_ReleaseStringCritical): Likewise.
5511 (get_throwable): Removed.
5512 (GCJ_JV_JNIENV_FRIEND): Removed.
5513 (__GCJ_JNI_IMPL__): Define.
5516 * resolve.cc (get_ffi_type_from_signature): Handle case where
5519 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5521 * interpret.cc (run): Don't call println.
5522 Don't include PrintStream.h.
5524 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5525 nameIndex. Use "jint" as type for boffset.
5526 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5528 (Class): Likewise. Also changed type of method_count,
5529 vtable_method_count, size_in_bytes, field_count,
5530 static_field_count, interface_count.
5531 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5534 2000-01-21 Tom Tromey <tromey@cygnus.com>
5536 * java/lang/reflect/natConstructor.cc (newInstance): Use
5538 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5539 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5540 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5543 (invoke): Use _Jv_CallAnyMethodA.
5545 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5546 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5548 (struct _Jv_Method): Added getNextMethod method.
5549 (JvNumMethods): New function.
5550 (JvGetFirstMethod): Likewise.
5551 * gcj/field.h (JvGetFirstStaticField): New function.
5552 (JvNumStaticFields): Likewise.
5553 (getNextField): Renamed from getNextInstanceField.
5554 (struct _Jv_Field): New method getClass.
5555 * jni.cc: Wrote many new functions.
5556 * include/jni.h (JNI_TRUE): Define.
5557 (JNI_FALSE): Likewise.
5558 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5559 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5560 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5561 (jfieldID, jmethodID): Likewise.
5562 (JNI_COMMIT, JNI_ABORT): New defines.
5563 (JNINativeMethod): New struct.
5564 (struct JNINativeInterface): Correctly declared more entries.
5565 (class _Jv_JNIEnv): Added `ex' member.
5566 (JNI_VERSION_1_1): New define.
5567 (JNI_VERSION_1_2): Likewise.
5569 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5570 getNextInstanceField.
5572 2000-01-20 Tom Tromey <tromey@cygnus.com>
5574 * resolve.cc (StringClass): Removed.
5575 * defineclass.cc (StringClass): Removed.
5577 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5581 2000-01-19 Tom Tromey <tromey@cygnus.com>
5583 * interpret.cc (PC_REGISTER_ASM): Removed.
5585 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5586 From Bryce McKinlay.
5588 * All files: Updated copyright to reflect Cygnus purchase.
5590 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5592 * configure: Rebuilt.
5593 * configure.in: Recognize --disable-interpreter.
5595 2000-01-18 Andrew Haley <aph@cygnus.com>
5597 * name-finder.cc (lookup): Check for dladdr function.
5598 acconfig.h (HAVE_DLADDR): Add.
5599 configure.in: Check for HAVE_DLADDR
5601 include/config.h.in: Rebuilt.
5603 2000-01-17 Andrew Haley <aph@cygnus.com>
5605 * prims.cc (_Jv_RunMain): Set the name of this executable.
5607 2000-01-17 Tom Tromey <tromey@cygnus.com>
5609 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5610 when backtrace can't be computed.
5612 * configure: Rebuilt.
5613 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5615 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5616 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5617 (_Jv_FindClassInCache): Likewise.
5618 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5619 (findSystemClass): Try to load class from compiled module.
5621 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5622 (loadLibrary): Likewise.
5623 (lt_preloaded_symbols): Define.
5624 (loadLibraryInternal): New method.
5625 * include/config.h.in: Rebuilt.
5626 * acconfig.h (USE_LTDL): Added.
5627 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5628 (INCLUDES): Added $(INCLTDL).
5629 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5630 (libgcj_la_LIBADD): Likewise.
5631 * aclocal.m4, configure: Rebuilt.
5632 * configure.in: Added libltdl support.
5634 2000-01-15 Tom Tromey <tromey@cygnus.com>
5636 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5638 2000-01-14 Andrew Haley <aph@cygnus.com>
5640 * java/lang/natThrowable.cc: New file.
5642 * java/lang/Throwable.java (fillInStackTrace): Make native.
5643 (printStackTrace): Call native method to do this.
5644 (Throwable): Call fillInStackTrace.
5645 (stackTrace): New variable.
5647 * include/jvm.h: Add _Jv_ThisExecutable functions.
5649 * prims.cc: (_Jv_execName): New variable.
5650 (catch_segv): Call fillInStackTrace.
5652 (_Jv_ThisExecutable): New functions.
5653 (JvRunMain): Set the name of this executable.
5655 * Makefile.am: Add java/lang/natThrowable.cc.
5657 * Makefile.in: Rebuilt.
5659 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5661 * configure.in: Force link with __frame_state_for in
5662 FORCELIBGCCSPEC. Add new checks for backtrace.
5663 * include/config.h.in: Rebuilt.
5665 * name-finder.cc: New file.
5666 * include/name-finder.h: New file.
5668 2000-01-16 Anthony Green <green@cygnus.com>
5670 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5673 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5675 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5677 2000-01-13 Tom Tromey <tromey@cygnus.com>
5679 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5680 not system loader, as initiating loader.
5682 2000-01-11 Tom Tromey <tromey@cygnus.com>
5684 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5685 HP/UX. From David Scott Urban.
5687 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5689 * java/lang/natMath.cc (pow): Cast args to `double', not
5692 (IEEEremainder): Likewise.
5693 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5694 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5696 2000-01-09 Anthony Green <green@cygnus.com>
5698 * java/lang/natString.cc (init): Test for overflow condition
5699 during out of bounds check.
5700 (getChars): Throw StringIndexOutOfBoundsException, not
5701 ArrayIndexOutOfBoundsException.
5703 (regionMatches): Obey case option during string comparison.
5705 * configure.host (ligcj_interpreter): New variable. Enable
5706 interpreter by default on IA-32.
5707 * configure.in: Examine libgcj_interpreter.
5708 * configure: Rebuilt.
5710 2000-01-07 Tom Tromey <tromey@cygnus.com>
5712 * mauve-libgcj: Don't disable ClassTest.
5714 * java/lang/natClass.cc (getClasses): Wrote.
5716 2000-01-06 Tom Tromey <tromey@cygnus.com>
5718 * java/lang/natClass.cc (_getConstructors): Correctly check
5719 whether method name is the init name.
5720 (getMethod): Look at accflags on method in `klass', not `this'.
5722 2000-01-05 Tom Tromey <tromey@cygnus.com>
5724 * java/lang/natClass.cc (getMethod): Compute offset relative to
5725 `klass's methods table, not `this's table.
5727 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5728 In unwrapping/widening case, check whether `k' is null, not
5729 whether it is primitive. Initialize `num' from `argelts', not
5730 `paramelts'. Correct create and pass arguments to ffi_call.
5731 Don't let presence of `this' argument affect index used to look in
5733 (COPY): Set appropriate element in `values' vector.
5735 * java/lang/natClass.cc: Include <gcj/method.h>.
5737 * java/lang/Class.h (_getMethods): Correctly declare as private,
5740 * java/lang/Class.h (_getMethods): Declare.
5741 * java/lang/Class.java (_getMethods): Declare.
5742 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5743 (getDeclaredClasses): Always return empty array.
5744 (_getMethods): New method.
5745 (getMethods): Wrote.
5746 (getDeclaredMethod): Return `rmethod'.
5747 (finit_name): New global.
5748 (getDeclaredMethods): Check for finit_name.
5749 (_getMethods): Likewise.
5750 (getMethod): Only return public methods.
5752 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5753 jboolean and select correct ffi type on that basis.
5754 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5755 Constructor call always has `void' return type.
5757 2000-01-04 Tom Tromey <tromey@cygnus.com>
5759 * java/lang/Class.h (getSignature): Updated.
5760 * java/lang/Class.java (getSignature): Updated.
5761 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5763 (getConstructor): Ensure constructor is public.
5764 (_getConstructors): Check for public-ness of constructor when
5765 `declared' is false, not when it is true.
5767 2000-01-04 Warren Levy <warrenl@cygnus.com>
5769 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5771 (receive): Set the sender's address in the DatagramPacket.
5773 2000-01-04 Tom Tromey <tromey@cygnus.com>
5775 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5776 declaring class as return_type argument to
5777 _Jv_CallNonvirtualMethodA.
5778 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5779 constructor case, create object and use it as `this' argument.
5780 * java/lang/Class.h (_getConstructors): Declare.
5781 (_getFields): Declare.
5782 * java/lang/Class.java (getConstructors): Wrote.
5783 (_getConstructors): New native method.
5784 (getDeclaredConstructors): Wrote.
5785 (_getFields): Declare new native method.
5786 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5788 (getMethod): Work correctly when class is primitive.
5789 (getDeclaredMethods): Likewise. Compute offset using `method',
5791 (getDeclaredMethod): Likewise.
5792 (getConstructor): Wrote.
5793 (ConstructorClass): New define.
5794 (getDeclaredConstructor): Wrote.
5795 (_getConstructors): New method.
5796 (_getFields): New method.
5799 * Makefile.in: Rebuilt.
5800 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5802 * prims.cc: Remove `#pragma implementation'.
5803 * gcj/array.h: Remove `#pragma interface'.
5805 * prims.cc (_Jv_equaln): New function.
5806 * java/lang/Class.java (getSignature): Declare.
5807 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5808 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5810 (getSignature): New method.
5811 (getDeclaredMethod): Wrote.
5813 Include StringBuffer.h.
5814 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5815 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5817 (getSignature): Declare.
5818 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5819 (_Jv_equaln): Declare.
5820 (_Jv_CallNonvirtualMethodA): Declare.
5821 * Makefile.in: Rebuilt.
5822 * Makefile.am (nat_source_files): Added natConstructor.cc.
5823 (java/lang/reflect/Constructor.h): New target.
5824 * java/lang/reflect/natConstructor.cc: New file.
5825 * java/lang/reflect/Constructor.java (newInstance): Now native.
5826 (declaringClass): Renamed from decl_class.
5827 (offset): Renamed from index.
5828 (getType): New native method.
5829 (getModifiers): Now native.
5830 (getParameterTypes): Call getType if required.
5831 (hashCode): Include hash code from declaring class.
5832 (modifiers): Removed.
5833 (toString): Call getType if required.
5834 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5835 * java/lang/reflect/natMethod.cc (hack_call): New method.
5836 Removed `#if 0' around FFI code.
5837 Include <gnu/gcj/RawData.h>.
5838 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5839 IllegalArgumentException when argument object and class disagree.
5840 (_Jv_GetTypesFromSignature): New function.
5842 (ObjectClass): New define.
5843 (_Jv_CallNonvirtualMethodA): New function.
5844 * java/lang/reflect/Method.java (hack_trampoline): New method.
5845 (hack_call): New native method.