1 2001-03-18 Mark Wielaard <mark@klomp.org>
3 * java/lang/natClass.cc (_Jv_CheckCast): add class names to exception
5 2001-03-18 Mark Wielaard <mark@klomp.org>
7 * gnu/gcj/runtime/FirstThread.java (main): replace / with . in
10 2001-03-17 Tom Tromey <tromey@redhat.com>
12 * java/lang/natString.cc (rehash): Don't bother with memset;
13 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
15 (UNMASK_PTR): New macro.
16 (intern): Unmask pointer before returning it. Register finalizer
18 (unintern): Handle case where
19 (MASK_PTR): New macro.
20 (PTR_MAKSED): Likewise.
21 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
23 2001-03-01 Andrew Haley <aph@redhat.com>
25 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
26 stackTrace buffer to a correctly aligned pointer array.
28 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
30 * java/lang/Runtime.java (_exit): Declare new package-private native.
31 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
32 without a security manager check.
33 (exit): Call _exit after security check.
34 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
36 * java/lang/System.java (setSecurityManager): If a security manager
37 is already in place, call checkPermission.
38 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
39 throws an exception, try to deal with it gracefully.
40 * java/lang/ExceptionInInitializerError.java (printStackTrace):
41 Only try to print the subordinate stack trace if "exception" is set.
42 Print our class name first.
45 2001-03-08 Tom Tromey <tromey@redhat.com>
47 * java/io/ObjectStreamClass.java (setUID): Don't write interface
48 info for array classes.
52 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
54 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
57 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
59 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
60 instead of the new JDK1.2 API. This is simpler and makes
61 back-porting the classes to JDK1.1 trivial.
62 (readObject): likewise.
65 2001-03-01 Per Bothner <per@bothner.com>
67 Changes merged from Kawa's gnu.math.
68 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
69 (rshift(int[],int[],int,int): Removed - not needed.
70 (gcd): Use rshift0 rather than rshift.
71 * java/math/BigInteger.java (setShiftRight): Likewise.
72 (divide): Simplify by using rshift0.
73 (divide): Zero-extend results if high-order bit set.
75 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
77 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
80 2001-02-23 Per Bothner <per@bothner.com>
82 Change to sometimes include class name in ClassFormatError message.
83 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
84 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
85 boolean instead of throwing ClassFormatError on failure.
86 (throw_class_format_error): Change static function to method.
87 (_Jv_ClassReader): New inline methods verify_identifier,
88 two overloads of verify_classname, verify_field_signature, and
89 verify_method_signature
90 * include/java-interp.h: Update declarations to return bool.
91 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
92 ClassFormatError since _Jv_VerifyClassName now returns bool.
94 2001-02-23 Per Bothner <per@bothner.com>
96 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
97 c++filt to select java-style output.
99 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
101 Fix for PR java/2040:
102 * java/util/HashMap.java (HashMap): Don't throw exception for
103 loadFactor > 1. Add exception messages.
104 * java/util/Hashtable.java (Hashtable): Likewise.
106 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
108 Disable libgcjx by default.
109 * configure.in: Add support for --enable-java-awt configure option.
110 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
111 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
112 * Makefile.in: Rebuilt.
113 * configure: Rebuilt.
115 2001-02-20 Tom Tromey <tromey@redhat.com>
117 * java/io/PipedWriter.java (flush): Throw exception if stream
119 * java/io/OutputStreamWriter.java (write): Throw exception if
121 (writeChars): Don't throw exception if stream closed.
122 * java/io/CharArrayWriter.java (closed): New field.
124 (flush): Throw exception if stream closed.
125 (reset): Synchronize on correct lock. Allow stream to be
127 (toCharArray, toString, writeTo): Synchronize.
128 (write): Throwe exception if stream closed.
129 * java/io/BufferedWriter.java (close): Clear `buffer'.
130 (flush): Throw IOException if stream is closed.
133 2001-02-16 Tom Tromey <tromey@cygnus.com>
135 * java/lang/ThreadGroup.java (activeCount): Only include threads
137 (enumerate): Likewise.
140 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
142 * java/lang/Integer.java (getInteger): Return default argument if
143 property is not set. Don't call decode with null argument.
144 * java/lang/Long.java (getLong): Likewise.
146 * java/io/CharArrayReader.java (CharArrayReader): Throw
147 IllegalArgumentException if constructor arguments are illegal.
148 (ready): Return false if no more characters can be read.
149 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
152 2001-02-17 Mark Wielaard <mark@klomp.org>
154 * java/util/TimerTask.java: New version from Classpath.
156 2001-02-17 Mark Wielaard <mark@klomp.org>
158 Remerge with Classpath
159 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
160 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
161 (readByte): Use convertToByte().
162 (readChar): Use convertToChar().
163 (readInt): Use convertToInt().
164 (readLong): Use convertToLong().
165 (readShort): Use convertToShort().
166 (readUnsignedByte): Use convertToUnsignedByte().
167 (readUnsignedShort): Use convertToUnsignedShort().
168 (readUTF): Use convertToUTF().
170 (convertToBoolean): Resurrected.
171 (convertToByte): Ditto.
172 (convertToChar): Ditto.
173 (convertToInt): Ditto.
174 (convertToLong): Ditto.
175 (convertToShort): Ditto.
176 (convertToUnsignedByte): Ditto.
177 (convertToUnsignedShort): Ditto.
178 (convertToUTF): Ditto.
180 2001-02-17 Mark Wielaard <mark@klomp.org>
184 2001-02-17 Mark Wielaard <mark@klomp.org>
186 * java/io/DataInputStream.java: update copyright notice
187 * java/io/PrintWriter.java: idem
188 * java/io/Reader.java: idem
189 * java/io/StreamTokenizer.java: idem
190 * java/io/StringReader.java: idem
191 * java/lang/reflect/ReflectPermission.java: idem
193 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
195 * java/util/TreeSet.java (clone): Made subclass safe, use
196 super.clone(), not new.
197 * java/util/TreeMap.java (clone): Likewise.
199 * java/util/TreeMap.java (nil): Made non-final.
200 (clone): Create new nil node for copy.
202 * java/util/HashSet.java (clone): Made subclass safe, use
203 super.clone(), not new.
205 2001-02-14 Andrew Haley <aph@redhat.com>
207 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
210 2001-02-15 Anthony Green <green@redhat.com>
212 * defineclass.cc: Don't include alloca.h.
213 (prepare_pool_entry): Convert alloca to __builtin_alloca.
214 * interpret.cc (run_normal): Ditto.
216 * java/lang/natDouble.cc (parseDouble): Ditto.
218 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
220 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
222 * java/util/Collections.java (ReverseComparator): New static class.
223 (reverseOrder): Return static instance of ReverseComparator.
225 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
226 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
227 Rectangle.clone(), not Object.clone().
229 * java/util/HashSet.java (clone): Remove try/catch.
231 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
232 * java/util/Collection.java: Likewise.
233 * java/util/Comparator.java: Likewise.
234 * java/util/Dictionary.java: Likewise.
235 * java/util/Iterator.java: Likewise.
236 * java/util/ListIterator.java: Likewise.
237 * java/util/Map.java: Likewise.
238 * java/util/Set.java: Likewise.
240 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
242 * java/util/TreeMap.java: New file.
243 * java/util/TreeSet.java: New file.
244 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
245 * Makefile.in: Rebuilt.
246 * java/util/HashSet.java (clone): Use constructor instead of calling
248 * java/util/SortedSet.java: Sync with classpath.
249 * java/util/HashMap.java (hash): Use if statement instead of ternary,
252 * java/lang/natClass.cc (getSignature): Don't try to dereference
253 param_types if it is null. Instead, take this to mean "no parameters".
254 * java/lang/TreeMap.java (TreeIterator.next): Throw
255 NoSuchElementException in preference to ConcurrentModificationException.
256 (TreeIterator.remove): Throw IllegalStateException in preference to
257 ConcurrentModificationException.
258 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
259 throw a NoSuchElementException.
260 (SubMap.lastKey): Likewise.
262 2001-02-13 Tom Tromey <tromey@redhat.com>
264 * java/io/PipedReader.java (ready): Throw IOException if pipe
266 * java/io/FilterReader.java (close): Don't clear `in'.
267 * java/io/CharArrayReader.java (mark): Throw IOException if stream
269 (read, ready, reset, skip): Added exception message.
270 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
271 Perform checkStatus check inside synchronized block.
273 2001-02-13 Tom Tromey <tromey@redhat.com>
275 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
277 2001-02-13 Tom Tromey <tromey@redhat.com>
279 Fix for PR libgcj/1351:
280 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
282 Include Thread.h and InterruptedIOException.h.
284 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
286 * java/io/BlockDataException.java: Removed.
287 * java/io/ObjectInputStream.java (readObject): Throw
288 StreamCorruptedException, not BlockDataException.
289 * Makefile.am: Remove BlockDataException.
290 * Makefile.in: Rebuild.
292 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
293 Tom Tromey <tromey@redhat.com>
295 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
298 2001-02-09 Tom Tromey <tromey@redhat.com>
300 * java/util/Timer.java: New version from Classpath.
302 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
304 * java/lang/Double.java (doubleToRawLongBits): Now native.
305 * java/lang/Float.java (floatToRawIntBits): Likewise.
306 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
307 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
309 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
311 * java/io/File.java (java.net): Imported.
312 (getAbsoluteFile): Added.
313 (getCanonicalPath): Likewise.
316 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
318 * java/lang/Byte.java: Remove redundant instanceof and null checks.
319 * java/lang/Integer.java: Likewise.
320 * java/lang/Long.java: Likewise.
321 * java/lang/Short.java: Likewise.
322 * java/lang/Double.java: Likewise.
323 (doubleToRawLongBits): New method.
324 * java/lang/Float.java: As above.
325 (floatToRawIntBits): New method.
327 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
328 IOException if stream closed.
330 2001-02-08 Tom Tromey <tromey@redhat.com>
332 * java/lang/Float.java (parseFloat): New method.
334 2001-02-08 Tom Tromey <tromey@redhat.com>
336 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
337 * java/io/InputStreamReader.java (ready, read): Throw IOException
338 if stream has been closed.
340 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
342 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
343 Change sources.redhat.com and sourceware.cygnus.com references to
346 2001-02-07 Tom Tromey <tromey@redhat.com>
348 Fix for PR libgcj/1906:
349 * java/text/MessageFormat.java (setLocale): Use named class
352 (format(Object,StringBuffer,FieldPosition)): Special case if
353 argument is an Object[].
355 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
357 * java/util/Arrays.java: Removed "cmp" methods.
358 (qsort): Don't use "cmp".
361 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
363 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
364 sort. Fix for PR java/1895.
366 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
368 * configure.host: Use sjlj-exceptions for Alpha.
370 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
372 * libgcj.spec.in: Don't force static libgcc into the executable.
373 * configure.in (FORCELIBGCCSPEC): Removed.
374 * configure: Rebuilt.
376 2001-01-31 Tom Tromey <tromey@redhat.com>
378 * Makefile.in: Rebuilt.
379 * Makefile.am (LTCXXCOMPILE): New macro.
381 2001-01-26 Andrew Haley <aph@redhat.com>
383 (INIT_FPE): Use a direct system call to set the handler.
385 2001-01-27 Richard Henderson <rth@redhat.com>
387 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
389 2001-01-27 Tom Tromey <tromey@redhat.com>
391 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
392 native interface structure.
394 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
396 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
398 (read (byte[], int, int)): Only call readNextBlock() if the block
399 buffer would actually be overrun. Increment blockDataPosition.
400 (callReadMethod): Propagate exceptions from invocation target.
401 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
402 exceptions from invocation target.
404 2001-01-26 Tom Tromey <tromey@redhat.com>
406 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
407 to internal representation.
408 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
409 _Jv_FindClassFromSignature.
411 2001-01-26 Warren Levy <warrenl@redhat.com>
413 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
414 and timezone if they are available on the system.
416 2001-01-24 Tom Tromey <tromey@redhat.com>
418 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
420 2001-01-24 Tom Tromey <tromey@redhat.com>
422 * Makefile.in: Rebuilt.
423 * Makefile.am (c_source_files): Added sf_fabs.c.
424 * java/lang/sf_fabs.c: New file.
426 2001-01-19 Warren Levy <warrenl@redhat.com>
428 * java/text/SimpleDateFormat.java (format): Compute hour for cases
429 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
430 correctly. Adjust properly from 0-23 clock hour.
432 2001-01-17 Mark Wielaard <mark@klomp.org>
434 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
436 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
438 * java/lang/Class.h (isInterface): Move implementation from
439 natClass.cc. Declare inline.
440 (Class): Add default constructor.
441 * java/lang/Object.h: Update comments.
442 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
443 initialize superclass, saving a call if super is already initialized.
445 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
447 * prims.cc (init_prim_class): Deleted.
448 (DECLARE_PRIM_TYPE): Rewritten.
449 * java/lang/Class.h (stdio.h): Include removed.
450 (stddef.h): Included.
451 (java/lang/reflect/Modifier.h): Likewise.
452 (Class): Contructor now takes arguments, initializes fields.
453 (initializePrim): Prototype deleted.
454 * java/lang/natClass.cc (initializePrim): Deleted.
456 2001-01-16 Warren Levy <warrenl@redhat.com>
458 * java/math/BigInteger.java: Update Copyright year.
460 2001-01-16 Hans Boehm <hans_boehm@hp.com>
462 * java/math/BigInteger.java (setShiftRight): Only do negative shift
465 2001-01-14 Mark Wielaard <mark@klomp.org>
466 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
467 (decode): Merge comments with Classpath, don't throw Exception
469 2001-01-12 Tom Tromey <tromey@redhat.com>
471 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
475 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
476 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
477 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
478 * gnu/awt/gtk/GtkLabelPeer.java: New file.
479 * gnu/awt/gtk/GtkButtonPeer.java: New file.
481 * java/lang/natSystem.cc: Include locale.h if it exists.
482 * configure: Rebuilt.
483 * configure.in: Check for locale.h.
485 2001-01-11 Tom Tromey <tromey@redhat.com>
487 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
488 (Cursor(int), getPredefinedCursor): Throw exception if argument
491 2001-01-03 Tom Tromey <tromey@redhat.com>
493 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
494 (getLocationOnScreen): Wrote.
496 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
498 * Makefile.am: Re-enable dependencies.
499 * Makefile.in: Rebuilt.
501 2001-01-10 Warren Levy <warrenl@redhat.com>
503 * java/math/BigDecimal.java (divide): Fixed comment.
505 2001-01-10 Warren Levy <warrenl@redhat.com>
507 Fix for PR libgcj/1596:
508 * java/math/BigDecimal.java (divide): Check newScale for validity.
509 Ensure that BigInteger.pow() is called with a non-negative value.
510 (setScale (int)): New public method.
511 (setScale (int,int)): New public method.
513 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
515 Fix for PR libgcj/1338:
516 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
517 commentChar. Fixed typos in comments.
519 2001-01-08 Warren Levy <warrenl@redhat.com>
521 Fix for PR libgcj/1411:
522 * Makefile.am: Removed java/util/natTimeZone.cc.
523 * Makefile.in: Rebuilt.
524 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
525 missing localized timezone names.
526 * java/lang/System.java (getDefaultTimeZoneId): New private method.
527 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
528 (init_properties): Set user.timezone property.
529 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
530 default timezone names; removed non-standard ones. Use standard
532 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
534 * java/util/TimeZone.java: Add standard ID names per JCL; removed
536 (getDefaultTimeZoneId): Removed.
538 * java/util/natTimeZone.cc: Removed.
540 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
542 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
543 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
544 (_Jv_GetArrayClass): New inline function.
545 (arrayclass): New field.
546 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
547 _Jv_GetArrayElementFromElementType.
548 (_Jv_NewPrimArray): Ditto.
549 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
550 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
551 Set Modifier::ABSTRACT.
552 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
553 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
554 Now synchronized. Array classes are now referenced from
555 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
556 Set array classes' accessibility flags correctly. Optimize so that
557 all array classes share the same IDT.
558 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
559 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
560 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
561 in superclasses from overwriting classes own fields.
562 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
563 Modifier::isAbstract().
564 (null_idt): New static field.
565 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
567 (_Jv_IndexOf): Made inline.
568 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
570 2001-01-08 Tom Tromey <tromey@redhat.com>
572 Fix for PR java/1586:
573 * Makefile.in: Rebuilt.
574 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
576 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
578 * Makefile.am: Use the new "-M -MF" option for generating dependencies
579 from the c++ compiler.
580 * Makefile.in: Rebuilt.
582 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
584 All files with updated copyright.
585 * prims.cc (class _Jv_PrimClass): Removed.
586 (init_prim_class): New function.
587 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
588 `_Jv_PrimClass' in primitive type declarations. Assign to the
589 value returned by `init_prim_class.'
590 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
591 primitive type declarations.
592 (JvPrimClass): Cast to `jclass' removed.
593 * java/lang/Class.h (Class): New constructor.
594 (Class): New copy constructor.
595 (initializePrim): New prototype.
596 (_Jv_PrimClass): Field removed.
597 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
598 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
599 (class java::lang::Object): `finalize' moved up front.
600 * java/lang/natClass.cc
601 (isAssignableFrom): Turned outline.
602 (isInstance): Likewise.
603 (isInterface): Likewise, fixed indentation.
604 (initializePrim): New function.
606 2001-01-07 Anthony Green <green@redhat.com>
608 * Makefile.am (texinfo): Add texinfo target for generating texinfo
610 * Makefile.in: Rebuilt.
612 * scripts/TexinfoDoclet.java: New file.
614 * doc/java-applet.texi, doc/java-lang-reflect.texi,
615 doc/java-awt-color.texi, doc/java-lang.texi,
616 doc/java-awt-datatransfer.texi, doc/java-math.texi,
617 doc/java-awt-event.texi, doc/java-net.texi,
618 doc/java-awt-geom.texi, doc/java-security-spec.texi,
619 doc/java-awt-image.texi, doc/java-security.texi,
620 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
621 doc/java-text.texi, doc/java-beans-beancontext.texi,
622 doc/java-util-jar.texi, doc/java-beans.texi,
623 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
624 doc/java-lang-ref.texi: New files.
626 2001-01-07 Anthony Green <green@redhat.com>
628 * java/net/URLConnection.java (setDoOutput): URLConnection's may
629 be used for both input and output, so don't clear doInput.
631 * java/lang/StringBuffer.java: Fix comments.
633 2001-01-06 Anthony Green <green@redhat.com>
635 * java/beans/PropertyDescriptor.java: Fix comment.
636 * java/io/PushbackReader.java: Fix comment.
637 * java/io/ObjectStreamClass.java: Fix comment.
638 * java/io/DataInputStream.java: Fix comment.
639 * java/io/PipedInputStream.java: Fix comments.
640 * java/io/PipedReader.java: Fix comments.
641 * java/sql/DatabaseMetaData.java: Fix comments.
643 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
645 * java/io/PipedReader: Synchronize on "lock" instead of this.
647 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
649 * java/lang/Thread.java: Update comment.
651 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
652 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
653 * java/io/PipedReader: New implementation based on new
655 * java/io/PipedWriter: Updated to match new PipedReader.
657 2001-01-03 Tom Tromey <tromey@redhat.com>
659 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
660 (getViewportSize): Insets include scrollbar size.
661 (doLayout): Finished.
662 (getScrollPosition): Wrote.
663 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
665 2001-01-02 Tom Tromey <tromey@redhat.com>
667 * java/awt/ScrollPane.java: Wrote.
668 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
671 * java/awt/Panel.java (Panel()): Fixed.
673 * java/awt/Component.java (isShowing): Return false if no peer
674 exists, and true if component is visible and no parent exists.
675 (getLocationOnScreen): Wrote.
676 (getPreferredSize): Removed FIXME comment.
677 (getMinimumSize): Likewise.
678 (getAlignmentX, getAlignmentY): Wrote.
680 (requestFocus): Wrote.
681 (transferFocus): Wrote.
682 (findNextFocusComponent): New method.
685 (enableEvents): Call setEventMask on the peer.
687 * java/awt/Container.java (list): Use super.list() to print self.
688 (findNextFocusComponent): New method.
689 (setLayout): Call invalidate.
690 (findComponentAt): Wrote.
692 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
694 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
695 the correct versions of various linuxthreads functions get linked.
696 * Makefile.in: Rebuilt.
697 * java/lang/natThread.cc (finalize_native): New static function. Call
698 _Jv_ThreadDestroyData.
699 (initialize_native): Register finalizer for "data".
700 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
701 (_Jv_ThreadDestroyData): New prototype.
702 * include/win32-threads.h: Ditto.
703 * include/no-threads.h: Ditto.
704 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
705 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
706 move mutex and condition variable destroy code from:
707 (really_start): ...here.
708 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
709 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
710 (_Jv_ThreadDestroyData): Implemented.
711 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
712 (_Jv_AllocArray): Ditto.
714 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
716 * java/sql/DriverManager.java (getConnection): Don't set user/password
719 2000-12-27 Warren Levy <warrenl@redhat.com>
721 Fix for PR libgcj/1358:
722 * java/lang/System.java: Update Copyright date properly.
723 * java/util/Calendar.java: Fix typo in comment.
724 (set): Set 24-hour clock hour instead of 12-hour clock hour.
725 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
726 initialize times. Spec says to set H:M:S values to zero only if
728 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
729 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
730 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
731 timezones and GMT offsets, being careful to account for units of
732 milliseconds vs. seconds.
734 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
736 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
737 not be assigned to Object.
739 Fix for PR libgcj/1516:
740 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
742 (can_widen): Declared inline. Remove redundant checks for void
743 arguments and char->short conversion. Add special case for boolean
745 (ffi_type): Declared inline.
746 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
748 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
750 * java/sql/SQLWarning.java: Fixed typo in comment.
752 2000-12-26 Tom Tromey <tromey@redhat.com>
754 * java/awt/MenuItem.java (paramString): Now protected.
756 * java/awt/MenuShortcut.java: Implements Serializable.
758 * java/awt/MenuBar.java: Rewrote from scratch.
760 * java/awt/MenuComponent.java (removeNotify): Wrote.
761 Implements Serializable.
763 * java/awt/GridBagConstraints.java (GridBagConstraints): New
766 * java/awt/CheckboxMenuItem.java: Wrote.
768 2000-12-25 Tom Tromey <tromey@redhat.com>
770 * java/awt/MenuContainer.java: Fixed typo.
772 * Makefile.in: Rebuilt.
773 * Makefile.am (awt_java_source_files): Added SystemColor.java.
774 * java/awt/SystemColor.java: New file.
776 * java/awt/Color.java (rgba): Now package-private.
778 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
780 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
783 * java/awt/MenuItem.java (addNotify): New method.
784 (MenuItem(String,MenuShortcut)): New constructor.
785 (setLabel): Notify peer of change.
786 (setEnabled): Likewise.
788 * java/awt/GridLayout.java (toString): New method.
790 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
791 (FlowLayout): Check for LEADING and TRAILING.
792 (setAlignment): Likewise.
793 (layoutContainer): Handle component orientation.
795 * java/awt/Component.java (orientatin): New field.
796 (setComponentOrientation): Wrote.
797 (getComponentOrientation): Wrote.
799 * java/awt/Event.java (Event): Implements Serializable.
800 (consumed): New field for serialization.
801 * java/awt/Dimension.java (Dimension): Implements Serializable.
802 * java/awt/Cursor.java (Cursor): Implements Serializable.
803 * java/awt/Container.java (Container): No longer abstract.
805 * java/awt/Choice.java: Wrote.
806 * java/awt/Checkbox.java: Wrote.
807 * java/awt/ItemSelectable.java: Documented.
808 * java/awt/CheckboxGroup.java: Wrote.
810 * java/awt/CardLayout.java (layoutContainer): Directly use fields
814 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
816 * java/io/FileDescriptor.java: Initialize fd to -1.
817 Remove default constructor.
819 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
821 * java/lang/mprec.h: Change C9X reference to refer to C99.
823 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
825 * java/lang/Throwable.java (trace_enabled): New static field.
826 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
827 trace_enabled not set.
828 * prims.cc (main_init): Turn off trace_enabled while creating
829 default exception objects.
831 2000-12-21 Tom Tromey <tromey@redhat.com>
833 * java/beans/PropertyChangeListener.java: Extends EventListener.
834 * java/beans/VetoableChangeListener.java: Extends EventListener.
836 * java/util/zip/Deflater.java (update, init): Now private.
838 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
840 * java/util/BasicMapEntry.java: Re-added.
841 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
842 (putAll): Test for BasicMapEntry.
843 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
844 (putAll): Test for BasicMapEntry.
845 Change references from `HashMap.Entry' to `Entry' in various places.
846 * Makefile.am: Add BasicMapEntry.java.
847 * Makefile.in: Rebuilt.
849 2000-12-18 Warren Levy <warrenl@redhat.com>
851 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
852 need to set timezone to a valid non-null value. Partial fix for
855 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
857 * java/awt/Window.java (addNotify): Remove peer casting hack now that
859 * java/awt/Button.java (addNotify): Likewise.
860 * java/awt/Label.java (addNotify): Likewise.
861 * java/awt/Panel.java (addNotify): Likewise.
862 * java/awt/Scrollbar.java (addNotify): Likewise.
863 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
864 Remove redundant null checks.
866 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
868 * COPYING: Update to current
869 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
870 to 19yy as example year in copyright notice).
872 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
874 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
875 end-of-stream if avail_in is 0.
877 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
879 * java/util/ArrayList.java (data): Declare transient.
880 (serialPersistantFields): Removed.
881 (readObject): Use defaultReadObject(), not readFields().
882 (writeObject): Use defaultWriteObject(), not writeFields().
884 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
886 * java/util/Hashtable.java (put): Remove `last' variable.
887 Link new entry to head of list.
888 * java/util/HashMap.java (put): Ditto.
890 2000-12-15 Tom Tromey <tromey@redhat.com>
892 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
893 loader to Class.forName.
895 2000-12-14 Tom Tromey <tromey@redhat.com>
897 * java/util/ResourceBundle.java
898 (getBundle(String,Locale,ClassLoader)): New method.
899 (trySomeGetBundle): Added `loader' argument.
900 (partialGetBundle): Likewise.
902 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
903 maximumFractionDigits, maximumIntegerDigits,
904 minimumFractionDigits, minimumIntegerDigits): Now
907 * java/lang/Thread.java (checkAccess): Now final.
909 * java/lang/RuntimePermission.java: Class now final.
911 * java/io/StringWriter.java (StringWriter(int)): Now public.
913 * java/io/SerializablePermission.java (legal_names): Now private.
915 * java/lang/Character.java: Updated UnicodeBlock constants.
916 * scripts/blocks.pl: Special case private use and surrogate
919 2000-12-12 Tom Tromey <tromey@redhat.com>
921 * Makefile.in: Rebuilt.
922 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
924 (GCJCOMPILE): Use it.
927 2000-12-11 Tom Tromey <tromey@redhat.com>
929 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
930 New static final fields.
932 * scripts/classes.pl (scan): Skip lines with leading `*'.
933 Fix for PR libgcj/378.
935 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
937 * configure.in: Remove check for -fuse-divide-subroutine.
938 * configure: Rebuilt.
940 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
942 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
944 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
946 * Makefile.am: Add HashSet.java and java/lang/ref classes.
947 Remove BasicMapEntry.java and Bucket.java.
948 * Makefile.in: Rebuilt.
949 * java/util/HashMap.java: Rewritten.
950 * java/util/HashSet.java: Imported from classpath.
951 * java/util/WeakHashMap.java: Imported from classpath.
952 * java/util/Hashtable.java: Rewritten based on new HashMap code.
953 * java/util/Bucket.java: Deleted.
954 * java/util/BasicMapEntry.java: Deleted.
955 * java/util/Collections.java (search): Use a for-loop, not iterator
957 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
958 of elements in source.
959 (max): Use a for-loop.
961 (reverse): Keep track of positions instead of using Iterator's
962 nextIndex() and previousIndex().
963 (shuffle(List)): Initialize defaultRandom if required using
964 double-check thread safety idiom. Call two-argument shuffle method
966 (defaultRandom): New field.
967 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
968 using previousIndex() and nextIndex().
969 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
970 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
971 * java/util/AbstractMap.java (toString): Use StringBuffer.
972 * java/lang/ref/PhantomReference.java: Imported from classpath.
973 * java/lang/ref/SoftReference.java: Ditto.
974 * java/lang/ref/Reference.java: Ditto.
975 * java/lang/ref/WeakReference.java: Ditto.
976 * java/lang/ref/ReferenceQueue.java: Ditto.
978 2000-12-10 Richard Henderson <rth@redhat.com>
980 * configure.host: Recognize alpha*-*, not alphaev6-*.
982 2000-12-09 Anthony Green <green@redhat.com>
984 * configure.host: Enable interpreter for Alpha.
986 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
988 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
989 (ZIP): Points at fastjar instead of zip.
990 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
991 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
992 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
993 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
994 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
995 ($(x_java_source_files:.java=.class):): Likewise.
996 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
998 (CLEANFILES): libgcj.jar replaces libgcj.zip.
999 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1000 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1001 java/lang/String.h:, java/lang/reflect/Constructor.h:,
1002 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1003 gnu/gcj/runtime/VMClassLoader.h:,
1004 java/io/ObjectInputStream$$GetField.h:,
1005 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1006 (Makefile.in): Rebuilt.
1008 2000-12-08 Tom Tromey <tromey@redhat.com>
1011 * configure: Rebuilt.
1012 * configure.in: Use echo, not `:', to create .d files.
1014 2000-12-08 Warren Levy <warrenl@redhat.com>
1016 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1017 NullPointerException so proper check of offset can be done.
1019 2000-12-08 Warren Levy <warrenl@redhat.com>
1021 * java/io/FileInputStream.java (close): Check if the fd is valid.
1022 * java/io/RandomAccessFile.java (close): Ditto.
1023 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1024 * java/net/PlainSocketImpl.java (close): Ditto.
1026 2000-12-06 Tom Tromey <tromey@redhat.com>
1028 * java/awt/GridBagConstraints.java: Filled in values for static
1031 * java/util/BitSet.java: Updated copyright notice.
1033 * Makefile.in: Rebuilt.
1034 * Makefile.am (awt_java_source_files): Added new file.
1035 * java/awt/GridBagConstraints.java: New file.
1037 2000-12-05 Tom Tromey <tromey@redhat.com>
1039 * java/text/Collator.java (decomposeCharacter, decmp, strength):
1040 Now package-private, not protected.
1041 * java/text/DateFormatSymbols.java (equals): Now private.
1042 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1043 * java/util/BitSet.java: Class no longer final.
1045 2000-12-04 Warren Levy <warrenl@redhat.com>
1047 * java/util/TimeZone.java (getAvailableIDs): Activated commented
1048 out code dependent on compiler and library changes.
1050 2000-12-04 Warren Levy <warrenl@redhat.com>
1052 * java/io/FilePermission.java: Made class final per spec.
1053 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1054 method name to match spec (fixed typo).
1055 * java/util/LinkedList.java: Implements List.
1057 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
1059 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1060 Edgar Villanueva <edgarvil@home.com>.
1062 2000-12-03 Tom Tromey <tromey@redhat.com>
1064 * java/awt/geom/Point2D.java: Added protected constructor.
1065 (equals): New method.
1066 (Float.setLocation(float,float)): New method.
1067 * java/awt/geom/Dimension2D.java: Added protected constructor.
1068 * java/awt/geom/AffineTransform.java: Made all constants public.
1069 (concatenate): Fixed typo in name.
1070 * java/awt/event/WindowAdapter.java: Class now abstract.
1071 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1072 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1075 * java/awt/AWTError.java: Extend Error, not
1076 IllegalStateException.
1078 * Makefile.in: Rebuilt.
1079 * Makefile.am (awt_java_source_files): Added new file.
1080 * java/awt/geom/RoundRectangle2D.java: New file.
1082 * Makefile.in: Rebuilt.
1083 * Makefile.am (awt_java_source_files): Added new file.
1084 * java/awt/FlowLayout.java: New file.
1086 * Makefile.in: Rebuilt.
1087 * Makefile.am (awt_java_source_files): Added new file.
1088 * java/awt/GridLayout.java: New file.
1090 2000-12-02 Tom Tromey <tromey@redhat.com>
1092 * Makefile.in: Rebuilt.
1093 * Makefile.am (awt_java_source_files): Added new files.
1094 * java/awt/CardLayout.java: New file.
1095 * java/awt/AWTPermission.java: New file.
1097 2000-12-01 Tom Tromey <tromey@redhat.com>
1099 * java/util/Vector.java (insertElementAt): Unconditionally
1100 increment elementCount.
1101 (removeRange): Clear unused slots in vector.
1103 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
1105 * java/lang/natMath.cc: Declare fabsf() function.
1106 * java/lang/mprec.h: Don't include math.h.
1107 * java/lang/dtoa.c: Include string.h.
1108 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1111 From Adam Welc <welc@cs.purdue.edu>:
1112 * java/util/LinkedList.java (removeFirst): Update `first' field.
1113 Handle the last == first case.
1114 (removeLast): Update `last' field. Handle the last == first case.
1116 2000-12-01 Warren Levy <warrenl@cygnus.com>
1118 * Makefile.am: Added entries for new java.sql modules.
1119 * Makefile.in: Rebuilt.
1121 2000-12-01 Warren Levy <warrenl@cygnus.com>
1123 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1124 that aren't quite 1.2 compatible yet.
1126 2000-11-30 Warren Levy <warrenl@cygnus.com>
1128 * java/sql/Array.java: New file from classpath.
1129 * java/sql/BatchUpdateException.java: Ditto.
1130 * java/sql/Blob.java: Ditto.
1131 * java/sql/Clob.java: Ditto.
1132 * java/sql/Ref.java: Ditto.
1133 * java/sql/SQLData.java: Ditto.
1134 * java/sql/SQLInput.java: Ditto.
1135 * java/sql/SQLOutput.java: Ditto.
1136 * java/sql/Struct.java: Ditto.
1137 * java/sql/CallableStatement.java: Merged file from claspath.
1138 * java/sql/Connection.java: Ditto.
1139 * java/sql/DataTruncation.java: Ditto.
1140 * java/sql/DatabaseMetaData.java: Ditto.
1141 * java/sql/DriverManager.java: Ditto.
1142 * java/sql/PreparedStatement.java: Ditto.
1143 * java/sql/ResultSet.java: Ditto.
1144 * java/sql/ResultSetMetaData.java: Ditto.
1145 * java/sql/SQLException.java: Ditto.
1146 * java/sql/SQLWarning.java: Ditto.
1147 * java/sql/Statement.java: Ditto.
1148 * java/sql/Types.java: Ditto.
1150 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1152 * java/lang/natSystem.cc (init_properties): Set user.language and
1154 * configure.in: Check for setlocale.
1155 * configure: Rebuilt.
1156 * include/config.h.in: Rebuilt.
1158 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1159 the infate() call didn't deliver any output. Throw a ZipException if
1160 the needsDictionary() call returns true.
1161 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1162 * java/io/InputStreamReader: Use the default buffer size for the
1163 contained BufferedInputStream.
1165 2000-11-28 Warren Levy <warrenl@cygnus.com>
1167 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1168 more time zone entries.
1169 * java/text/SimpleDateFormat.java (format): Added case for
1172 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1174 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1175 directly rather than read() in all cases. Make primitive read
1176 implementations more efficient, as defined in JDK online docs.
1177 (skipBytes): Behave like the JDK's implementation.
1178 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1179 closed stream with checkStatus() whenever an IOException can be
1181 (checkStatus): New private method.
1183 2000-11-27 Warren Levy <warrenl@cygnus.com>
1185 * Makefile.am: Added natTimeZone.cc.
1186 * Makefile.in: Rebuilt.
1187 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1188 * java/text/DateFormatSymbols.java (ampms): Made package private.
1189 (eras): Made package private.
1190 (months): Made package private.
1191 (shortMonths): Made package private.
1192 (shortWeekdays): Made package private.
1193 (weekdays): Made package private.
1194 (formatPrefixes): New private field.
1195 (localPatternCharsDefault): Made private.
1196 (dateFormats): New package private field.
1197 (timeFormats): New package private field.
1198 (formatsForKey): New private method.
1199 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1200 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1201 * java/text/SimpleDateFormat.java: Merged with Classpath.
1202 * java/util/TimeZone.java: Merged with Classpath.
1203 * java/util/natTimeZone.cc: New file.
1205 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1207 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1208 (addElement): Don't increment elementCount twice. Doh.
1209 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1210 array needs to be expanded.
1212 * java/util/Collections.java (UnmodifiableCollection): Implement
1214 (UnmodifiableList): Throw UnsupportedOperationException from
1215 modification methods. Set `l' from the one-parameter constructor.
1216 (UnmodifiableMap): Implement toString().
1217 (SynchronizedCollection): Ditto.
1218 (SynchronizedList): Set `l' from the one-parameter constructor.
1219 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1220 (SynchronizedMap): Implement toString().
1222 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1224 * javax/naming/NameParser.java,
1225 javax/naming/directory/AttributeInUseException.java,
1226 javax/naming/directory/AttributeModificationException.java,
1227 javax/naming/directory/InvalidAttributeIdentifierException.java,
1228 javax/naming/directory/InvalidAttributesException.java,
1229 javax/naming/directory/InvalidAttributeValueException.java,
1230 javax/naming/directory/InvalidSearchControlsException.java,
1231 javax/naming/directory/InvalidSearchFilterException.java,
1232 javax/naming/directory/NoSuchAttributeException.java,
1233 javax/naming/directory/SchemaViolationException.java: New files.
1235 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1237 * javax/naming/InitialContext.java (rebind): Implement.
1238 (unbind): Implement.
1239 (rename): Implement.
1241 (listBindings): Implement.
1242 (destroySubcontext): Implement.
1243 (createSubcontext): Implement.
1244 (lookupLink): Implement.
1245 (getNameParser): Implement.
1246 (composeName): Implement.
1247 (addToEnvironment): Implement.
1249 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1251 * javax/naming/AuthenticationException.java,
1252 javax/naming/AuthenticationNotSupportedException.java,
1253 javax/naming/CannotProceedException.java,
1254 javax/naming/CommunicationException.java,
1255 javax/naming/ConfigurationException.java,
1256 javax/naming/ContextNotEmptyException.java,
1257 javax/naming/InsufficientResourcesException.java,
1258 javax/naming/InterruptedNamingException.java,
1259 javax/naming/InvalidNameException.java,
1260 javax/naming/LimitExceededException.java,
1261 javax/naming/LinkException.java,
1262 javax/naming/LinkLoopException.java,
1263 javax/naming/MalformedLinkException.java,
1264 javax/naming/NameAlreadyBoundException.java,
1265 javax/naming/NameNotFoundException.java,
1266 javax/naming/NamingSecurityException.java,
1267 javax/naming/NoPermissionException.java,
1268 javax/naming/NotContextException.java,
1269 javax/naming/PartialResultException.java,
1270 javax/naming/ReferralException.java,
1271 javax/naming/ServiceUnavailableException.java,
1272 javax/naming/SizeLimitExceededException.java,
1273 javax/naming/TimeLimitExceededException.java: New files.
1275 * javax/naming/Name.java (clone): New method.
1276 (compareTo): New method.
1277 (isEmpty): New method.
1278 (getAll): New method.
1279 (getPrefix): New method.
1280 (getSuffix): New method.
1281 (startsWith): New method.
1282 (endsWith): New method.
1283 (addAll): New method.
1284 (addAll): New method.
1287 (remove): New method.
1289 * javax/naming/Context.java (lookup): New method.
1290 (rebind): New method.
1291 (unbind): New method.
1292 (rename): New method.
1294 (listBindings): New method.
1295 (destroySubcontext): New method.
1296 (createSubcontext): New method.
1297 (lookupLink): New method.
1298 (getNameParser): New method.
1299 (composeName): New method.
1300 (addToEnvironment): New method.
1301 (removeFromEnvironment): New method.
1302 (getEnvironment): New method.
1303 (close): New method.
1304 (getNameInNamespace): New method.
1306 * javax/naming/InitialContext.java (lookup): New method.
1307 (rebind): New method.
1308 (unbind): New method.
1309 (rename): New method.
1311 (listBindings): New method.
1312 (destroySubcontext): New method.
1313 (createSubcontext): New method.
1314 (lookupLink): New method.
1315 (getNameParser): New method.
1316 (composeName): New method.
1317 (addToEnvironment): New method.
1318 (removeFromEnvironment): New method.
1319 (getEnvironment): New method.
1320 (close): New method.
1321 (getNameInNamespace): New method.
1323 2000-11-26 Tom Tromey <tromey@cygnus.com>
1325 * Makefile.in: Rebuilt.
1326 * Makefile.am (core_java_source_files): Added
1327 RuntimePermission.java.
1328 * java/lang/RuntimePermission.java: Imported from Classpath.
1329 * java/lang/Thread.java (getContextClassLoader): Now
1330 synchronized. Added security code.
1331 (setContextClassLoader): Likewise.
1333 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1334 length field of array.
1335 (_Jv_NewPrimArray): Likewise.
1336 * gcj/array.h (__JArray): `length' field now const. Added
1339 2000-11-26 Anthony Green <green@redhat.com>
1341 * javax/naming/spi/NamingManager.java,
1342 javax/naming/spi/ObjectFactory.java,
1343 javax/naming/spi/InitialContextFactory.java,
1344 javax/naming/spi/InitialContextFactoryBuilder.java,
1345 javax/naming/RefAddr.java, javax/naming/Reference.java,
1346 javax/naming/NamingException.java, javax/naming/Context.java,
1347 javax/naming/Referenceable.java,
1348 javax/naming/directory/InitialDirContext.java,
1349 javax/naming/directory/DirContext.java,
1350 javax/naming/directory/Attributes.java,
1351 javax/naming/directory/Attribute.java,
1352 javax/naming/StringRefAddr.java,
1353 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1354 javax/naming/InitialContext.java,
1355 javax/naming/NoInitialContextException.java: New files.
1357 2000-11-25 Anthony Green <green@redhat.com>
1359 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1360 (_Jv_NewPrimArray): Likewise.
1361 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1362 (class JArray): Removed constructor.
1364 * java/lang/Thread.java (context_class_loader): New private data.
1365 (getContextClassLoader): New method.
1366 (setContextClassLoader): New method.
1367 (Thread): Initialize context_class_loader.
1369 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1370 (getResource): Rename to findResource.
1371 (findResource): New method. Used to be getResource.
1372 (getResourceAsStream): Deleted.
1373 (jarFileize): Extracted logic from URLClassLoader constructor into
1374 this new private method.
1375 (addURL): New protected method.
1376 (URLClassLoader): Call jarFileize. Use addElement instead of
1378 (findResources): New method.
1380 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1381 (getResource): Implement correct logic.
1382 (findResource): New method.
1383 (getResources): New method.
1384 (findClass): Create a ClassNotFoundException with the name of the
1385 class rather than nothing at all.
1386 (defineClass) Only throw ClassFormatError.
1388 * java/lang/Class.java (forName): New method.
1389 * java/lang/Class.h (forName): New method.
1390 * java/lang/natClass.cc (forName): New method.
1392 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1394 * java/lang/System.java (setProperties): Only call init_properties()
1395 if properties is null.
1396 (getProperties): Ditto.
1397 (getProperty): Ditto.
1398 (setProperty): Call init_properties if properties are null.
1399 (prop_init): Remove field.
1400 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1401 method. Check for null properties after synchronizing instead of
1402 prop_init flag. Set the properties field last for thread safety.
1404 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1405 test for gcj.dumpobjects property and enable object stream dumping
1407 (dumpElement): No longer native.
1408 (dumpElementln): Ditto.
1409 (setDump): Do not define.
1410 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1411 (dumpElementln): Removed.
1414 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1416 * configure: Rebuilt.
1417 * Makefile.in: Rebuilt.
1418 * Makefile.am (built_java_source_files): Add Configuration.java.
1419 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1420 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1421 Create `gnu' directory in the build tree.
1422 * gnu/classpath/Configuration.java.in: New file.
1424 2000-11-24 Tom Tromey <tromey@cygnus.com>
1426 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1428 (_Jv_NewPrimArray): Likewise.
1430 * gcj/array.h (__JArray): `length' field now const. Added
1432 (class JArray): Added constructor.
1434 2000-11-23 Mark Wielaard <mark@klomp.org>
1436 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1439 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1441 * java/util/Vector.java: Improve exception messages.
1442 (Vector): Check initialCapacity for IllegalArgumentException.
1443 (tromToSize): Don't check for elementCount == elementData.length
1445 (toArray): Don't try to set null marker if target array is the same
1446 length as the vector.
1448 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1450 * Makefile.in: Rebuilt.
1451 * Makefile.am (core_java_source_files): Added Collections.java.
1452 * java/util/List.java: Merged from classpath.
1453 * java/util/Vector.java: Ditto.
1454 * java/util/Collections.java: From classpath.
1455 * java/util/ArrayList.java (addAll(Collection)): Call
1456 addAll(int,Collection) instead of duplicating code.
1457 (indexOf): Clean up int initialization.
1458 (clear): Set cleared array entries to null, to allow garbage
1460 * java/util/List.java: Minor formatting fixes.
1461 * java/util/SimpleTimeZone.java: ditto.
1463 2000-11-18 Tom Tromey <tromey@cygnus.com>
1465 * Makefile.in: Rebuilt.
1466 * Makefile.am (core_java_source_files): Added new files.
1467 * java/lang/reflect/ReflectPermission.java: New class.
1468 * java/io/FileFilter.java: From Classpath
1469 * java/io/FilePermission.java: From Classpath.
1471 2000-11-17 Tom Tromey <tromey@cygnus.com>
1473 * java/lang/reflect/AccessibleObject.java (isAccessible,
1474 setAccessible): Now public.
1476 * java/lang/natString.cc: Include Locale.h.
1477 (toUpperCase): Added `locale' argument. Handle locale
1479 (toLowerCase): Added `locale' argument. Handle locale
1481 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1482 CAPITAL_I): New defines.
1483 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1486 (toUpperCase, toLowerCase): New methods. Variants which accept
1489 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1492 * java/util/PropertyPermission.java: Re-merged from Classpath.
1494 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1496 * java/text/StringCharacterIterator.java: Reindented.
1497 (setText): New method.
1499 2000-11-17 Mark Wielaard <mark@klomp.org>
1501 Merge with Classpath (changes by Bryce McKinlay)
1502 * java/util/jar/*.java: Reformat all to unofficial standard coding
1503 style. No changes of substance.
1505 2000-11-17 Mark Wielaard <mark@klomp.org>
1507 * java/util/zip/*.java: Javadoc updates.
1509 2000-11-17 Tom Tromey <tromey@cygnus.com>
1511 * java/text/CollationKey.java: Implement Comparable.
1512 (compareTo(Object)): New method.
1513 * java/text/Collator.java (compare(Object,Object)): New method.
1514 Implement Comparator.
1516 * java/util/zip/InflaterInputStream.java (available): New method.
1517 (close): New method.
1518 (read, available, skip, fill): Throw exception if stream closed.
1519 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1520 getNextEntry): Throw exception if closed.
1522 2000-11-16 Tom Tromey <tromey@cygnus.com>
1524 * java/io/PushbackReader.java: Merged with Classpath.
1525 * java/util/Arrays.java: Updated from Classpath.
1527 * scripts/blocks.pl: New file.
1528 * java/lang/Character.java (Subset): New class.
1529 (UnicodeBlock): New class.
1531 * java/lang/Math.java (toDegrees, toRadians): New methods.
1533 * java/lang/Float.java: Implement Comparable.
1534 (compareTo): New methods.
1535 * java/lang/Double.java: Implement Comparable.
1536 (compareTo): New methods.
1538 2000-11-16 Warren Levy <warrenl@cygnus.com>
1540 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1542 (listeners): Made transient.
1543 (source): Renamed from 'bean'.
1544 (children): New field for serialization.
1545 (propertyChangeSupportSerializedDataVersion): Ditto.
1546 (serialVersionUID): Ditto.
1547 (writeObject): New serialization method.
1548 (readObject): New serialization method.
1549 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1551 (listeners): Made transient.
1552 (source): Renamed from 'bean'.
1553 (children): New field for serialization.
1554 (vetoableChangeSupportSerializedDataVersion): Ditto.
1555 (serialVersionUID): Ditto.
1556 (writeObject): New serialization method.
1557 (readObject): New serialization method.
1558 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1559 to allow constructor to have a return type (i.e. the class that the
1560 constructor constructs).
1562 2000-11-14 Tom Tromey <tromey@cygnus.com>
1564 * Makefile.in: Rebuilt.
1565 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1568 2000-11-02 Warren Levy <warrenl@cygnus.com>
1570 * java/io/ObjectInputStream.java (readObject): Added code to
1571 conditionally dump out the serialized data.
1572 Handle ENDBLOCKDATA case a bit more gracefully since the current
1573 behavior doesn't seem to work as expected.
1574 (readStreamHeader): Added code for serialized data dumper.
1575 (readNextBlock): Ditto.
1576 (readFields): Ditto.
1577 (dump): New private static field for turning on/off dumper.
1578 (setDump): New native method.
1579 (dumpElement): New native method.
1580 (dumpElementln): New native method.
1581 * java/io/natObjectInputStream.cc (setDump): New method.
1582 (dumpElement): New method.
1583 (dumpElementln): New method.
1585 2000-11-02 Warren Levy <warrenl@cygnus.com>
1587 * java/net/InetAddress.java (addr): Renamed from 'address'.
1588 (address): New field to match Serialized Form doc.
1589 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1590 (family): New serialization field.
1591 (serialVersionUID): New field.
1592 (readObject): New method.
1593 (writeObject): New method.
1594 (getFamily): New native method.
1595 (InetAddress): Set family.
1596 * java/net/natInetAddress.cc (getFamily): New method.
1597 (addr): Renamed from 'address'.
1598 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1599 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1600 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1602 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1604 * java/util/AbstractList.java (SubList): Make it a top-level private
1606 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1608 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1609 * Makefile.in: Rebuilt.
1611 2000-11-02 Tom Tromey <tromey@cygnus.com>
1613 * Makefile.in: Rebuilt.
1614 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1617 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1619 * java/util/AbstractList.java (remove): Comment out modCount increment
1620 to work around compiler bug.
1623 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1625 * java/util/AbstractList.java: Throw messages with
1626 IndexOutOfBoundsExceptions.
1627 (listIterator()): Call listIterator(0).
1628 (size): New field. Initialize to size().
1629 (hasNext): Test position against size, not size().
1630 (remove): Increment knownMod by one instead of resetting it from
1633 (SubList.upMod): Removed.
1634 (SubList.set): Don't call upMod() or update knownMod.
1635 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1636 (SubList.remove): Ditto.
1637 (SubList.addAll): Don't call backingList.size(). Increment size from
1639 (SubList.iterator): New method. Call listIterator(0).
1640 (SubList.listIterator): New method. Restore code to return an anonymous
1641 listIterator implementation (with some changes).
1642 * java/util/AbstractSequentialList.java: Throw messages with
1643 IndexOutOfBoundsExceptions.
1644 (addAll): Add a specnote.
1645 * java/util/ArrayList.java (removeRange): Get the math right.
1646 (addAll): Increment modCount _before_ creating iterator.
1647 * java/util/LinkedList.java: Rewritten, mostly.
1649 2000-11-01 Tom Tromey <tromey@cygnus.com>
1651 * scripts/encodings.pl: Added `ASCII' alias.
1652 * Makefile.in: Rebuilt.
1653 * Makefile.am (convert_source_files): Added new files.
1654 * gnu/gcj/convert/Input_ASCII.java: New file.
1655 * gnu/gcj/convert/Output_ASCII.java: New file.
1656 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1657 out-of-range characters.
1658 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1659 (read): Swap bytes if required. Treat `count' as character count,
1661 (write): Likewise. Also, handle case where iconv fails on a given
1663 (init): Put encoding into exception.
1664 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1665 (static): Call iconv_init. Rebuilt alias list.
1666 (iconv_init): New private method.
1668 2000-11-01 Tom Tromey <tromey@cygnus.com>
1670 * Makefile.in: Rebuilt.
1671 * Makefile.am (install-exec-hook): Only make a single symlink, and
1672 remove the destination before making the link.
1673 * configure: Rebuilt.
1674 * configure.in: Call AC_PROG_LN_S.
1676 2000-10-31 Warren Levy <warrenl@cygnus.com>
1678 * jni.cc: Added include of java/lang/ThreadGroup.h.
1679 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1680 per change of 2000-10-05.
1682 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1684 * java/util/BitSet.java: Updated @specnote.
1686 * java/io/Reader.java: Merge docs from classpath.
1687 (skip): Synchronize on `lock'.
1688 * java/io/FileReader.java: Import correct implementation from
1690 * java/io/StringReader.java: Merge docs from classpath.
1691 (ready): Throw IOException if stream is closed.
1693 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1695 * java/util/AbstractCollection.java (addAll): Use size() instead of
1696 hasNext() in iterator loop.
1698 (contains): Ditto. Simplify loop.
1699 (containsAll): Ditto.
1704 (toString): Ditto. Use string concatenation operators, not
1706 * java/util/AbstractList.java (addAll): Use size() instead of
1707 hasNext() in iterator loop.
1710 (indexOf): Ditto. Don't take null check outside of the loop.
1711 (iterator): Return an AbstractListItr instead of anonymous class.
1712 (lastIndexOf): Use a for loop bounded by size() instead of
1713 hasPrevious() in iterator loop.
1714 (listIterator): Return an AbstractListItr.
1715 (removeRange): Remove bounds checking code and docs.
1716 (AbstractListItr): New inner class. Code moved here from
1718 (SubList.iterator): Removed. Use default implementation from
1719 AbstractList instead.
1720 (SubList.listIterator): As above.
1721 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1722 instead of hasNext() in iterator loop.
1723 (containsValue): Ditto.
1729 (toString): Ditto. Use string concatenation operators, not
1731 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1732 bounded by size() instead of hasNext() in iterator loop.
1733 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1734 part of normal execution flow. Do an explicit null check instead.
1735 * java/util/ArrayList.java (_iSize): Rename to `size'.
1736 (_arData): Rename to `data'.
1737 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1740 (removeRange): Make protected. Don't check bounds.
1741 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1743 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1745 (addAll (int, Collection)): Check lower bounds. Simplify exception
1747 (clone): Clone the data array too.
1748 (indexOf): Inline doesEqual().
1749 (lastIndexOf): Ditto.
1750 (clear): Don't set array data to null.
1751 (set): Check lower bounds. Simplify exception string.
1752 (toArray): Correct comment.
1753 (trimToSize): Don't update modCount, this is not a structural change.
1756 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1758 (toString): Declare `bit' as long, not int.
1759 (data): Made package-private, not private.
1761 2000-10-27 Warren Levy <warrenl@cygnus.com>
1763 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1764 array elements to true.
1766 2000-10-27 Warren Levy <warrenl@cygnus.com>
1768 * Makefile.am: Added locale files from Classpath.
1769 * Makefile.in: Rebuilt.
1770 * gnu/java/locale/Calendar.java: New file.
1771 * gnu/java/locale/Calendar_de.java: New file.
1772 * gnu/java/locale/Calendar_en.java: New file.
1773 * gnu/java/locale/Calendar_nl.java: New file.
1774 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1775 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1776 serialization compatibility.
1777 (scale): Made private.
1778 (serialVersionUID): New field.
1779 * java/math/BigInteger.java (ival): Made transient.
1780 (words): Made transient.
1781 (bitCount): New serialization field.
1783 (firstNonzeroByteNum): Ditto.
1784 (lowestSetBit): Ditto.
1787 (serialVersionUID): New field.
1788 (readObject): New method.
1789 (writeObject): New method.
1790 * java/util/BitSet.java (serialVersionUID): New field.
1791 * java/util/Calendar.java: Replaced with Classpath file.
1792 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1793 of getDefault() for TimeZone or Locale instead of passing nulls.
1794 * java/util/Locale.java (serialVersionUID): New field.
1795 (writeObject): New method.
1796 (readObject): New method.
1797 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1799 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1801 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1802 (core_java_source_files): Put java.lang, java.io, and java.util here.
1803 (ordinary_java_source_files): Order so that core_java_source_files are
1805 (java_source_files): Reorder so that special_java_source_files are
1807 * configure.in: Don't pass -I flag to gcj.
1808 * Makefile.in: Rebuilt.
1809 * configure: Rebuilt.
1811 2000-10-25 Tom Tromey <tromey@cygnus.com>
1813 * Makefile.in: Rebuilt.
1814 * Makefile.am (install-exec-hook): New target.
1816 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1818 * java/util/EventObject.java: Merged from classpath.
1820 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1823 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1825 * java/util/AbstractSet.java (equals): Re-installed original code.
1827 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1829 * Makefile.am: Added rules for libgcjx library.
1830 * Makefile.in: Rebuilt.
1831 * configure.in: Added check for X.
1832 * configure: Rebuilt.
1833 * gnu/awt/LightweightRedirector.java: New file.
1834 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1835 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1836 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1837 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1838 * gnu/awt/j2d/MappedRaster.java: New file.
1839 * gnu/awt/xlib/XCanvasPeer.java: New file.
1840 * gnu/awt/xlib/XEventLoop.java: New file.
1841 * gnu/awt/xlib/XEventQueue.java: New file.
1842 * gnu/awt/xlib/XFontMetrics.java: New file.
1843 * gnu/awt/xlib/XFramePeer.java: New file.
1844 * gnu/awt/xlib/XGraphics.java: New file.
1845 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1846 * gnu/awt/xlib/XPanelPeer.java: New file.
1847 * gnu/awt/xlib/XToolkit.java: New file.
1848 * gnu/gcj/xlib/Clip.java: New file.
1849 * gnu/gcj/xlib/Colormap.java: New file.
1850 * gnu/gcj/xlib/Display.java: New file.
1851 * gnu/gcj/xlib/Drawable.java: New file.
1852 * gnu/gcj/xlib/Font.java: New file.
1853 * gnu/gcj/xlib/GC.java: New file.
1854 * gnu/gcj/xlib/Pixmap.java: New file.
1855 * gnu/gcj/xlib/Screen.java: New file.
1856 * gnu/gcj/xlib/Visual.java: New file.
1857 * gnu/gcj/xlib/WMSizeHints.java: New file.
1858 * gnu/gcj/xlib/Window.java: New file.
1859 * gnu/gcj/xlib/WindowAttributes.java: New file.
1860 * gnu/gcj/xlib/XAnyEvent.java: New file.
1861 * gnu/gcj/xlib/XButtonEvent.java: New file.
1862 * gnu/gcj/xlib/XColor.java: New file.
1863 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1864 * gnu/gcj/xlib/XConnectException.java: New file.
1865 * gnu/gcj/xlib/XEvent.java: New file.
1866 * gnu/gcj/xlib/XException.java: New file.
1867 * gnu/gcj/xlib/XExposeEvent.java: New file.
1868 * gnu/gcj/xlib/XID.java: New file.
1869 * gnu/gcj/xlib/XImage.java: New file.
1870 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1871 * gnu/gcj/xlib/natClip.cc: New file.
1872 * gnu/gcj/xlib/natColormap.cc: New file.
1873 * gnu/gcj/xlib/natDisplay.cc: New file.
1874 * gnu/gcj/xlib/natDrawable.cc: New file.
1875 * gnu/gcj/xlib/natFont.cc: New file.
1876 * gnu/gcj/xlib/natGC.cc: New file.
1877 * gnu/gcj/xlib/natPixmap.cc: New file.
1878 * gnu/gcj/xlib/natScreen.cc: New file.
1879 * gnu/gcj/xlib/natVisual.cc: New file.
1880 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1881 * gnu/gcj/xlib/natWindow.cc: New file.
1882 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1883 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1884 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1885 * gnu/gcj/xlib/natXColor.cc: New file.
1886 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1887 * gnu/gcj/xlib/natXException.cc: New file.
1888 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1889 * gnu/gcj/xlib/natXImage.cc: New file.
1890 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1891 * java/awt/EventDispatchThread.java: Start thead on creation.
1893 2000-10-20 Tom Tromey <tromey@cygnus.com>
1895 From Arno J. Klaassen:
1896 * interpret.cc: Include <stdlib.h> for alloca.
1897 * defineclass.cc: Include <stdlib.h> for alloca.
1899 * Makefile.in: Rebuilt.
1900 * Makefile.am: Include deps.mk.
1901 (GCJCOMPILE): Added -MD, -MT, and -MF.
1902 ($(javao_files)): Don't depend on libgcj.zip.
1903 (all-recursive): New target.
1904 (%.lo:%.cc): Do dependency tracking.
1905 ($(nat_headers)): Don't depend on libgcj.zip.
1906 * configure: Rebuilt.
1907 * configure.in: Make .d files and deps.mk.
1909 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1911 * exception.cc: Don't #include "exception".
1912 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1914 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1915 * Makefile.in: Updated.
1917 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1919 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1920 * java/awt/peer/ComponentPeer.java (disable): Removed.
1923 (minimumSize): Removed.
1924 (preferredSize): Removed.
1927 * java/awt/peer/ListPeer.java (addItem): Removed.
1929 (minimumSize): Removed.
1930 (preferredSize): Removed.
1931 (setMultipleSelections): Removed.
1932 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1933 (remove): Renamed from removeMenu.
1934 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1936 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1937 (remove): Renamed from removeItem.
1938 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1939 (getMinimumSize): Removed.
1940 (getPreferredSize): Removed.
1941 (minimumSize): Removed.
1942 (preferredSize): Removed.
1943 (replaceText): Removed.
1944 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1945 (preferredSize): Removed.
1946 (getMinimumSize): Removed.
1947 (getPreferredSize): Removed.
1948 (setEchoCharacter): Removed.
1950 2000-10-10 Warren Levy <warrenl@cygnus.com>
1952 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1953 * java/sql/Date.java (serialVersionUID): New field.
1954 * java/sql/Time.java (serialVersionUID): New field.
1955 * java/sql/Timestamp.java (serialVersionUID): New field.
1956 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1957 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1958 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1959 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1960 (readObject): New serialization method.
1961 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1962 (serialVersionOnStream): New field.
1963 (readObject): New serialization method.
1964 (getMonetaryDecimalSeparator): New method.
1965 (setMonetaryDecimalSeparator): New method.
1966 * java/text/NumberFormat.java (maxFractionDigits): New field.
1967 (maxIntegerDigits): New field.
1968 (minFractionDigits): New field.
1969 (minIntegerDigits): New field.
1970 (serialVersionOnStream): New field.
1971 (serialVersionUID): New field.
1972 (readObject): New serialization method.
1973 (writeObject): New serialization method.
1974 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1975 (serialVersionOnStream): New field.
1976 (serialVersionUID): New field.
1977 (readObject): New serialization method.
1979 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1981 * configure.in (GCJ): Avoid bogus error message when looking for
1982 (and not finding) gcj in the build tree.
1983 * configure: Rebuilt.
1985 2000-10-09 Tom Tromey <tromey@cygnus.com>
1987 * configure: Rebuilt.
1988 * configure.in: Include sys/types.h when checking for socklen_t.
1989 From Arno J. Klaassen.
1991 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1993 * include/jvm.h: Enable __builtin_expect().
1995 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1996 the main program. Fix for PR libgcj/341.
1998 2000-10-07 Tom Tromey <tromey@cygnus.com>
2000 * java/util/Properties.java: Merged with Classpath version.
2002 2000-10-05 Tom Tromey <tromey@cygnus.com>
2004 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2005 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2006 * java/lang/Class.h (Object): Added `class$' field.
2007 * java/lang/Object.h (Object): Added `class$' field.
2008 * defineclass.cc (ClassClass): Use `class$' form.
2009 (ClassObject): Likewise.
2010 * resolve.cc (ClassObject): Use `class$' form.
2011 (ObjectClass): Likewise.
2012 * interpret.cc (ClassError): Removed.
2013 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2015 (IntegerClass): Likewise.
2016 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2018 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2019 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2020 SerializableClass): Likewise.
2021 Include Serializable.h, Cloneable.h.
2022 * java/lang/natSystem.cc (SystemClass): Removed.
2023 (init_properties): Use `class$' form.
2024 * java/lang/natObject.cc (CloneableClass): Removed.
2025 (clone): Use `class$' form.
2026 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2027 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2028 ConstructorClass): Likewise.
2029 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2030 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2031 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2032 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2034 (ClassClass): Likewise.
2035 * include/jvm.h (StringClass): Use `class$' form.
2036 * prims.cc (ObjectClass): Removed.
2037 (_Jv_RunMain): Use `class$' form.
2038 (_Jv_AllocObject): Likewise.
2039 * jni.cc (ClassClass): Use `class$' form.
2040 (ThrowableClass): Likewise.
2041 (ObjectClass): Likewise.
2042 (MethodClass): Likewise.
2043 (ThreadGroupClass): Likewise.
2044 (NativeThreadClass): Likewise.
2045 * boehm.cc (ObjectClass): Removed.
2046 (ClassClass): Removed.
2047 (_Jv_MarkObj): Use `class$' form.
2048 * gcj/field.h (JvFieldIsRef): Use `class$' form.
2051 2000-10-05 Warren Levy <warrenl@cygnus.com>
2053 * Makefile.am: Removed java/io/Replaceable.java and
2054 java/io/Resolvable.java.
2055 * Makefile.in: Rebuilt.
2056 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2058 * java/io/ObjectInputStream.java (processResolution): Fixed typo
2060 (processResolution): Handle readResolve method via reflection with
2061 removal of Resolvable interface.
2062 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2063 method via reflection with removal of Replaceable interface.
2064 * java/io/Replaceable.java: Removed.
2065 * java/io/Resolvable.java: Removed.
2066 * java/security/Key.java (serialVersionUID): New field.
2067 * java/security/Provider.java (serialVersionUID): New field.
2068 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2070 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2072 * java/sql/DataTruncation.java (serialVersionUID): New field.
2073 * java/sql/SQLException.java (serialVersionUID): New field.
2074 * java/sql/SQLWarning.java (serialVersionUID): New field.
2075 * java/util/Date.java (serialVersionUID): New field.
2076 (millis): Made transient.
2077 (readObject): New method.
2078 (writeObject): New method.
2080 2000-10-05 Tom Tromey <tromey@cygnus.com>
2082 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2084 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
2086 * prims.cc (_Jv_argv, _Jv_argc): New fields.
2087 (JvRunMain): Set _Jv_argv and _Jv_argc.
2088 * java/awt/Component.java: Minor fixes.
2089 * java/awt/Image.java (UndefinedProperty): Initialize final field.
2090 * java/awt/Toolkit.java (systemEventQueue): Removed.
2091 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2092 * java/awt/Window.java (getToolkit): Don't call super.
2093 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2094 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2095 * gnu/awt/gtk/GtkComponentPeer.java: New file.
2096 * gnu/awt/gtk/GtkContainerPeer.java: New file.
2097 * gnu/awt/gtk/GtkFramePeer.java: New file.
2098 * gnu/awt/gtk/GtkMainThread.java: New file.
2099 * gnu/awt/gtk/GtkToolkit.java: New file.
2100 * gnu/awt/gtk/GtkWindowPeer.java: New file.
2101 * gnu/awt/gtk/gtkcommon.cc: New file.
2102 * gnu/awt/gtk/gtkcommon.h: New file.
2103 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2104 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2105 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2106 * gnu/awt/gtk/natGtkMainThread.cc: New file.
2107 * gnu/awt/gtk/natGtkToolkit.cc: New file.
2108 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2110 2000-09-30 Tom Tromey <tromey@cygnus.com>
2112 * posix-threads.cc (_Jv_CondWait): Check to see if we are
2113 interrupted before modifying the cv's wait set.
2116 2000-09-30 Hans Boehm <boehm@acm.org>
2117 Bryce McKinlay <bryce@albatross.co.nz>
2119 Implement bitmap descriptor based marking for Boehm GC.
2121 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2122 * configure: Rebuilt.
2123 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2124 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2125 method get_finalizer().
2126 (struct _Jv_ArrayVTable): Ditto. Declare method array with
2127 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2128 (_Jv_AllocObj): Add new jclass parameter.
2129 (_Jv_AllocArray): Ditto.
2130 (_Jv_BuildGCDescr): New prototype.
2131 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2132 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2133 get_finalizer() instead of direct finalizer vtable offset.
2134 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2135 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2136 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2137 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2138 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2139 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2140 (_Jv_DetermineVTableIndex): Ditto.
2141 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2142 calculations to account for new gc_descr field.
2143 * boehm.cc: #include gc_gcj.h.
2144 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2145 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2146 New commentary from HB. Mark the classes vtable.
2147 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2148 (GC_DEFAULT_DESCR): New #define.
2149 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2150 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2151 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2152 scan conservativly if size is less than min_heap_addr. Set vtable
2153 pointer of new object before returning.
2154 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2155 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2156 allocation for obj_kind_x.
2157 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2158 (_Jv_AllocObj): Set vtable on returned object.
2159 (_Jv_AllocArray): Ditto.
2160 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2161 (_Jv_NewPrimArray): Ditto.
2162 (_Jv_AllocObj): Declare as a friend.
2163 (_Jv_AllocArray): Ditto.
2164 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2165 from &ObjectClass into new array class. Remove offset-by-one
2166 adjustments from `method' size calculations to account for gc_descr
2169 2000-09-26 Tom Tromey <tromey@cygnus.com>
2171 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2172 `remove', not `add'.
2174 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2176 * java/lang/natSystem.cc (file_encoding): Added return statement.
2178 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2180 * Makefile.am: Re-work shell commands that exceeded command-line
2182 * Makefile.in: Rebuilt.
2184 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2186 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2187 * java/lang/natDouble.cc: Likewise.
2188 * java/lang/reflect/natMethod.cc: Likewise.
2189 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2191 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2193 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2195 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2196 * acinclude.m4: Arrange for automake to not bring in a new
2197 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2198 * Makefile.am: Leave it up to automake to subst GCJ.
2199 * aclocal.m4, configure, Makefile.in: Rebuilt.
2201 2000-09-13 Tom Tromey <tromey@cygnus.com>
2203 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2204 (get): Ensure Boolean class is initialized.
2205 * java/lang/reflect/natField.cc (BooleanClass): New define.
2206 (get): Ensure Boolean class is initialized.
2208 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2210 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2211 Initialize with anonymous class.
2212 (compareToIgnoreCase): New method.
2214 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2215 (uncaughtException): Set had_uncaught_exception.
2216 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2217 exit with error status if set.
2218 (_Jv_RunMain): Ditto.
2220 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2222 * configure: Rebuilt with new ../libtool.m4.
2224 2000-09-11 Tom Tromey <tromey@cygnus.com>
2226 * java/lang/reflect/Field.java (toString): Don't rely on
2229 2000-09-08 Tom Tromey <tromey@cygnus.com>
2231 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2232 default decoder use iconv.
2233 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2234 Let default encoder use iconv.
2235 * configure: Rebuilt.
2236 * configure.in: Check for nl_langinfo and <langinfo.h>.
2237 * java/lang/natSystem.cc (file_encoding): New function.
2238 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2240 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2242 * acinclude.m4: Simplify the tests for CC and CXX.
2243 * aclocal.m4, configure: Rebuilt.
2245 * acinclude.m4: Include libtool macros from the source tree.
2246 * aclocal.m4, configure: Rebuilt.
2248 2000-09-08 Warren Levy <warrenl@cygnus.com>
2250 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2251 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2252 * java/io/File.java (writeObject): Added.
2253 (readObject): Added.
2254 (serialVersionUID): Added.
2255 * java/io/ObjectOutputStream.java (writeObject): Initialized
2256 fieldsAlreadyWritten before recursion rather than after.
2257 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2258 * java/io/OptionalDataException.java (serialVersionUID): Added.
2259 (OptionalDataException): Made package private.
2260 * java/io/SyncFailedException.java (SyncFailedException): Removed
2261 default constructor to match spec.
2262 * java/lang/Boolean.java (serialVersionUID): Added.
2263 * java/lang/Byte.java (serialVersionUID): Added.
2264 * java/lang/Character.java (serialVersionUID): Added.
2265 * java/lang/Double.java (serialVersionUID): Added.
2266 * java/lang/Float.java (serialVersionUID): Added.
2267 * java/lang/Integer.java (serialVersionUID): Added.
2268 * java/lang/Long.java (serialVersionUID): Added.
2269 * java/lang/Number.java (serialVersionUID): Added.
2270 * java/lang/Short.java (serialVersionUID): Added.
2271 * java/lang/String.java (serialVersionUID): Added.
2272 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2274 * java/lang/reflect/InvocationTargetException.java
2275 (serialVersionUID): Added.
2276 * java/net/URL.java (handler): Made transient.
2277 (hashCode): Added field for serialization, per spec. and use
2278 cached value if available.
2279 (serialVersionUID): Added.
2280 (URL): Initialize hashCode.
2281 (set): Adjust hashCode.
2282 (readObject): New Method to initialize the protocol handler when
2284 (writeObject): New method.
2285 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2286 * java/text/Collator.java: Removed 'implements Serializable'.
2287 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2288 * java/util/Properties.java (serialVersionUID): Added.
2289 * java/util/Random.java (serialVersionUID): Added.
2290 (seed): Made private.
2291 (nextNextGaussian): Made private.
2292 (haveNextNextGaussian): Made private.
2293 * java/util/Stack.java (serialVersionUID): Added.
2294 * java/util/TimeZone.java (serialVersionUID): Added.
2295 * java/util/Vector.java (serialVersionUID): Added.
2297 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2299 * Makefile.am (Thread.h): Don't be friends with native threads
2301 * Makefile.in: Rebuilt.
2302 * java/lang/Thread.java (interrupt_flag): Make package-private.
2304 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2306 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2307 to avoid long long division.
2309 2000-09-06 Tom Tromey <tromey@cygnus.com>
2311 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2313 * java/lang/reflect/Method.java (toString): Use `getName' for
2316 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2317 `args' if method takes no parameters.
2319 Fix for PR java.lang/339:
2320 * java/lang/natPosixProcess.cc (fail): New function.
2321 (cleanup): New function.
2322 (startProcess): Use them. Create pipe so child can communicate
2323 exec failure back to parent.
2325 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2327 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2329 (send): Undo last patch. Remove the label only.
2331 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2333 * java/net/natInetAdress.cc: Ditto.
2335 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2337 2000-09-05 Tom Tromey <tromey@cygnus.com>
2339 * doc/cni.sgml: Updated from master copy.
2341 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2343 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2345 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2347 * java/lang/fdlibm.h: #undef __P if previously defined.
2348 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2349 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2353 2000-09-04 Tom Tromey <tromey@cygnus.com>
2355 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2358 2000-09-04 Anthony Green <green@redhat.com>
2360 Fix for PR java.io/203:
2361 * java/io/File.java (createTempFile): Obey directory argument.
2362 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2363 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2364 variable to set java.io.tmpdir on non-WIN32 systems.
2366 2000-09-04 Anthony Green <green@redhat.com>
2368 * java/io/File.java (deleteOnExit): New method.
2369 * gnu/gcj/runtime/FileDeleter.java: New class.
2370 * java/lang/natRuntime.cc (exit): Call
2371 FileDeleter.deleteOnExitNow()
2372 * Makefile.am: Add FileDeleter.java.
2373 * Makefile.in: Rebuilt.
2375 2000-09-02 Tom Tromey <tromey@cygnus.com>
2377 * Makefile.in: Rebuilt.
2378 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2379 environment variable.
2381 2000-09-01 Andrew Haley <aph@redhat.com>
2383 * java/io/StreamTokenizer.java: Don't throw a
2384 NumberFormatException if a field is numeric as far as the
2385 StreamTokenizer is concerned but not as far as Double.valueOf() is
2386 concerned: return a zero instead.
2388 2000-08-30 Tom Tromey <tromey@cygnus.com>
2390 * Makefile.in: Rebuilt.
2391 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2393 2000-08-28 Tom Tromey <tromey@cygnus.com>
2395 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2396 gnu/gcj/awt/ComponentDataBlitOp.java,
2397 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2398 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2399 java/awt/color/ICC_ColorSpace.java,
2400 java/awt/color/ICC_Profile.java,
2401 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2402 java/awt/image/ComponentColorModel.java,
2403 java/awt/image/ComponentSampleModel.java,
2404 java/awt/image/DataBuffer.java,
2405 java/awt/image/DataBufferByte.java,
2406 java/awt/image/DataBufferInt.java,
2407 java/awt/image/DataBufferUShort.java,
2408 java/awt/image/DirectColorModel.java,
2409 java/awt/image/IndexColorModel.java,
2410 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2411 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2412 java/awt/image/SinglePixelPackedSampleModel.java,
2413 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2414 Removed Latin-1 copyright symbols.
2415 * java/util/zip/ZipFile.java: Indentation fixes.
2417 2000-08-27 Mark Wielaard <mark@klomp.org>
2419 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2420 constructor, close can delete the file, finalize calls close.
2421 * java/util/jar/JarFile.java: Constructor that takes mode now
2424 2000-08-27 Anthony Green <green@redhat.com>
2426 * java/util/ArrayList.java, java/util/Timer.java,
2427 java/util/LinkedList.java, java/util/TimerTask.java,
2428 java/util/HashMap.java, java/util/AbstractMap.java,
2429 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2430 java/util/SortedSet.java: Imported from GNU Classpath.
2431 * Makefile.in: Rebuilt.
2432 * Makefile.am: Added new files.
2434 2000-08-26 Anthony Green <green@redhat.com>
2436 * Makefile.in: Rebuilt.
2437 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2440 * prims.cc: Include ClassLoader.h.
2441 (_Jv_RunMain): When executing jar files, classpath must be the jar
2442 file only. Lose our reference to the system ClassLoader in order
2443 to get a new one with the correct classpath.
2444 * java/lang/natSystem.cc (init_properties): When executing a jar
2445 file, only use the jar file for java.class.path.
2447 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2448 for bytecode archives.
2450 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2451 exists, but not Main-Class.
2453 2000-08-23 Mark Wielaard <mark@klomp.org>
2455 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2456 return -1 when fill() has no more data for the Inflater.
2458 2000-08-23 Mark Wielaard <mark@klomp.org>
2460 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2461 write(String) already does.
2463 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2465 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2466 to `alive_flag', call `init'.
2467 (init): New native method.
2468 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2471 2000-08-21 Mark Wielaard <mark@klomp.org>
2473 * Makefile.in: Rebuilt.
2474 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2476 (java/lang/reflect/Field.h): Likewise.
2477 (java/lang/reflect/Method.h): Likewise.
2478 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2481 2000-08-21 Tom Tromey <tromey@cygnus.com>
2483 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2486 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2488 * java/lang/natSystem.cc (init_properties): Change sourceware
2489 reference to sources.redhat.com.
2491 * include/java-props.h: Add _Jv_Jar_Class_Path.
2492 * prims.cc: Ditto. Set it from `gij -jar file' option.
2494 * java/lang/natSystem.cc (init_properties): Set java.class.path
2496 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2498 * java/util/PropertyPermission.java: Import from GNU Classpath.
2499 * Makefile.in: Rebuilt.
2500 * Makefile.am: Add java/util/PropertyPermission.java.
2501 * java/lang/System.java: Add setProperty method.
2503 * gij.cc (main): Add -jar option to execute jar files.
2504 (help): Describe -jar option.
2505 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2506 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2507 * gnu/gcj/runtime/FirstThread.java (main): New method.
2509 * java/util/jar/Attributes.java: Correct comment spelling.
2511 2000-08-20 Mark Wielaard <mark@klomp.org>
2513 * java/util/zip/Adler32.java: Make private variables really private
2514 * java/util/zip/CRC32.java: Make private variables really private
2515 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2517 * java/util/zip/InflaterInputStream.java: skip() could skip to
2519 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2520 * java/util/zip/ZipFile.java: size() new 1.2 method
2521 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2522 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2525 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2527 * java/util/jar/JarFile.java: Don't call
2528 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2531 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2533 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2534 Read the entire contents of the class file, not just what is
2537 * java/net/JarURLConnection.java: getEntry doesn't take any
2538 arguments. Return null if element is null.
2540 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2541 size from the archive, not the inflated size.
2543 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2544 java.util.zip.ZipFile.getEntry.
2546 * gij.cc (help): Change sourceware reference to
2549 2000-08-19 Tom Tromey <tromey@cygnus.com>
2551 * java/util/zip/ZipInputStream.java (createZipEntry):
2554 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2556 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2557 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2558 java/util/jar/JarInputStream.java,
2559 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2560 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2561 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2562 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2563 java/security/cert/Certificate.java,
2564 java/security/cert/CertificateEncodingException.java,
2565 java/security/cert/CertificateException.java,
2566 java/security/cert/CertificateExpiredException.java,
2567 java/security/cert/CertificateFactory.java,
2568 java/security/cert/CertificateFactorySpi.java,
2569 java/security/cert/CertificateNotYetValidException.java,
2570 java/security/cert/CertificateParsingException.java,
2571 java/security/cert/X509CRL.java,
2572 java/security/cert/X509CRLEntry.java,
2573 java/security/cert/X509Certificate.java,
2574 java/security/cert/X509Extension.java: Imported from Classpath.
2575 * java/util/Hashtable.java: Imported from Classpath.
2577 * java/util/zip/ZipInputStream.java: Create stub for
2580 * gcj/javaprims.h: Updated class list.
2582 * Makefile.in, gcj/Makefile.in: Rebuilt.
2583 * Makefile.am (ordinary_java_source_files): Add these new classes.
2585 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2587 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2588 * gnu/gcj/awt/GLightweightPeer.java: New file.
2589 * java/awt/BorderLayout.java: Implemented all methods.
2590 * java/awt/Button.java (actionListener, actionCommand): Renamed
2591 and modifier change.
2592 (addNotify): Call super.
2593 (dispatchEventImpl): New method.
2594 (getListeners): New method.
2595 (label): Made package-private, not private.
2596 * java/awt/Canvas.java: Implemented class body.
2597 * java/awt/Color.java (brighter): New method.
2598 (darker): New method.
2599 (hashCode): New method.
2600 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2601 (getGraphicsConfiguration): Delegate to
2602 getGraphicsConfigurationImpl().
2603 (getGraphicsConfigurationImpl): New method.
2604 (getToolkit): Only return value from peer if not null.
2605 (isDisplayable): Check with parent.
2606 (isShowing): No parent implies not showing.
2607 (getForeground): Check parent property if local is null.
2608 (getBackground): Likewise.
2609 (getFont): Likewise.
2610 (setForeground): Inform peer.
2611 (setBackground): Likewise
2612 (setLocale): Invalidate component.
2613 (getColorModel): Implemented.
2614 (setLocation): Invalidate, or ignore if no change.
2615 (setSize): Invalidate, or ignore if no change.
2616 (setBounds): Invalidate, or ignore if no change.
2617 (isOpaque): By default, heavyweight implies opaque.
2618 (isLightweight): Implemented.
2619 (getMaximumSize): Implemented.
2620 (doLayout): Implemented, NOP.
2621 (validate): Implemented, NOP.
2622 (invalidate): Only propagate to parent if parent was valid.
2623 (getGraphics): Implemented.
2624 (getFontMetrics): Implemented.
2625 (update): Implemented.
2626 (paintAll): Implemented.
2627 (repaint): Implemented all repaint methods.
2628 (print): Implemented.
2629 (printAll): Implemented.
2630 (createImage): Implemented.
2631 (dispatchEvent): Give the peer a chance to handle the event.
2632 (dispatchEventImpl): Dispatch paint events.
2633 (enableEvents): Lightweights enable events on parent component.
2634 (coalesceEvents): Coalesce paint events, and select event type
2636 (coalescePaintEvents): New method.
2637 (processEvent): Fix unfortunate ordering of statements, and call
2638 correct method for MOUSE_CLICKED.
2639 (processPaintEvent): New method.
2640 (addNotify): Allow container to notify children before event
2641 mask is set in peer.
2642 (addNotifyContainerChildren): New method.
2643 (removeNotify): Visibility should not change on removeNotify.
2644 (paramString): Implemented.
2645 (list): Implemented two of the list methods.
2646 * Container (myInsets): Removed, insets are managed by peer.
2647 (getInsets): Query peer.
2648 (addImpl): Fix reparenting, enable events for lightweights,
2649 initialize component array.
2650 (validate): Call doLayout in validateTree() instead.
2651 (validateTree): Do nothing if already valid. Call beginValidate(),
2652 endValidate() on peer. Call validateTree() instead of validate()
2653 for children that are containers. Mark valid after validation of
2655 (setFont): Partial implementation.
2656 (paint): Implemented.
2657 (visitChildren): New method.
2658 (visitChild): New method.
2659 (update): Implemented.
2660 (print): Implemented.
2661 (paintComponents): Implemented.
2662 (printComponents): Consider translation and clipping.
2663 (getComponentAt): Ignore invisible children. Return this if no
2665 (addNotify): Call super.
2666 (addNotifyContainerChildren): New method.
2667 (paramString): Implemented.
2668 (list): Implemented.
2669 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2671 (invokeLater): Likewise.
2672 (isDispatchThread): Likewise.
2673 * java/awt/FontMetrics (getLeading): Formula change.
2674 (getDescent): Consider leading also.
2675 (getMaxAscent): Default to getAscent().
2676 (getMaxDescent): Default to getDescent.
2677 (getMaxAdvance): Return value signifying unknown.
2678 (charWidth): Both methods implemented.
2679 (charsWidth): Implemented.
2680 (bytesWidth): Implemented.
2681 (getWidths): Implemented.
2682 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2684 (Frame): Rearragend constuctor chaining to disallow null being
2685 passed as a graphics configuration.
2686 (getTitle): Return empty string if null.
2688 (getIconImage): New method.
2689 (setIconImage): New method.
2690 (finalize): New method.
2691 (setMenuBar): Notify peer.
2692 (isResizable): New method.
2693 (setResizable): New method.
2694 (getState): New method.
2696 (remove): Implemented.
2697 (removeNotify): New method.
2698 (getFrames): New method.
2699 * java/awt/Graphics.java: Implemented body of class.
2700 * java/awt/Graphics2D.java: New file.
2701 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2702 * java/awt/Image.java: Implemented body of class.
2703 * java/awt/Panel.java (Panel): Call correct super constructor.
2704 (addNotify): Implemented.
2705 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2706 * java/awt/RenderingHints.java: New file.
2707 * java/awt/Toolkit.java (createComponent): Implemented.
2708 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2709 * java/awt/Window.java (Window): Two new constructors. Reordered
2710 constructor chaining.
2711 (getGraphicsConfigurationImpl): New method.
2712 (finalize): Call super.
2713 (addNotify): Call super.
2714 (pack): Do layout stuff.
2715 (show): Ensure that peer exists and that component is valid.
2716 (dispose): Dispose owned children.
2717 (getOwner): Simplify code, casting null pointers is valid.
2718 (getGraphicsConfiguration): Ask peer if local value is null.
2719 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2721 * java/awt/image/BufferedImage.java: New file.
2722 * java/awt/image/RasterOp.java: New file.
2723 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2724 More powerfull replacement for getColorModel().
2725 (getColorModel) Removed.
2726 (setEventMask) New method.
2727 * Makefile.am: Added new files.
2728 * Makefile.in: Rebuilt.
2730 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2732 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2733 (finit_leg_name): New global.
2734 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2735 `$finit$'. This is a backward compatibility hack.
2736 (java::lang::Class::_getMethods): Likewise.
2738 2000-08-15 Andrew Haley <aph@cygnus.com>
2740 * include/jvm.h (_Jv_HashCode): New hash code.
2742 2000-08-15 Tom Tromey <tromey@cygnus.com>
2744 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2746 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2748 * THANKS: More thanks.
2750 2000-08-10 Tom Tromey <tromey@cygnus.com>
2752 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2754 (connect): Likewise.
2756 (getOption): Likewise.
2757 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2758 case when errno not set.
2761 (receive): Likewise.
2762 (mcastGrp): Likewise.
2763 (setOption): Likewise.
2764 (getOption): Likewise.
2766 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2767 John Stracke <francis@ecal.com>
2769 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2770 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2772 (disconnect): Don't unset connected flag.
2773 (getHeaderField (String)): Call connect() if not connected.
2774 (getHeaderField (int)): Ditto.
2775 (getHeaderFieldKey): Ditto.
2776 (getHttpHeaders): Don't call connect().
2777 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2778 gotResponseVals): New fields.
2779 (getResponseCode): Call getResponseVals() conditionally.
2780 (getResponseMessage): Ditto.
2781 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2783 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2785 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2786 * Makefile.in: Rebuilt.
2787 * java/awt/Color.java (getTransparency): New method.
2788 * java/awt/Component.java: Various updates.
2789 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2790 after dealing with children.
2791 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2792 * java/awt/Window.java: Various new methods and updates.
2793 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2795 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2796 * java/awt/event/WindowEvent.java (paramString): Ditto.
2797 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2799 * java/awt/geom/Point2D.java (clone): Ditto.
2800 * java/awt/geom/RectangularShape.java (clone): Ditto.
2801 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2802 isAlphaPremultiplied): Make package-private, not private.
2804 2000-08-08 Tom Tromey <tromey@cygnus.com>
2806 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2807 surrogate characters.
2808 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2810 (write): Correct handling of surrogate characters.
2812 2000-08-07 Tom Tromey <tromey@cygnus.com>
2814 * java/lang/reflect/Method.java (hashCode): Use getName().
2815 (toString): Likewise.
2816 * java/lang/reflect/natMethod.cc (getType): Initialize
2819 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2821 * java/lang/reflect/Field.java (toString): Correct formatting.
2824 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2826 (receive): Streamlined.
2828 2000-08-05 Tom Tromey <tromey@cygnus.com>
2830 * java/io/PrintWriter.java: Merged comments from Classpath.
2831 (printlnUnsynchronized): Removed.
2832 (println()): Print the separator.
2833 (println): Call println(), not printlnUnsynchronized.
2834 (out): Now protected, to match spec.
2836 2000-08-04 Tom Tromey <tromey@cygnus.com>
2838 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2839 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2842 2000-08-03 Warren Levy <warrenl@cygnus.com>
2844 * java/io/ObjectInputStream.java (readFields): Turn off
2845 readDataFromBlock while reading via GetField.
2846 (GetField$1.get(String, Object)): Pass Class of default value to
2848 (getField): Allow for null default values.
2850 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2851 (PutField$1.put): Fixed calls of checkType in most of the put
2852 methods to pass the correct parameter.
2853 (PutField$1.put(String, Object)): Allow for null value arg.
2854 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2857 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2858 typo in spec'ed field name.
2859 (getSerialPersistentFields): Changed spelling of method to match
2860 the correct spelling of the spec'ed field name.
2862 2000-08-03 Tom Tromey <tromey@cygnus.com>
2864 * Makefile.in: Rebuilt.
2865 * Makefile.am (awt_java_source_files): Added new files.
2867 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2869 * Makefile.am: Add new AWT stubs.
2870 * java/awt/Canvas.java: New placeholder class.
2871 * java/awt/Checkbox.java: Ditto.
2872 * java/awt/CheckboxMenuItem.java: Ditto.
2873 * java/awt/Choice.java: Ditto.
2874 * java/awt/Dialog.java: Ditto.
2875 * java/awt/FileDialog.java: Ditto.
2876 * java/awt/List.java: Ditto.
2877 * java/awt/ScrollPane.java: Ditto.
2878 * java/awt/TextField.java: Ditto.
2879 * java/awt/datatransfer/Clipboard.java: Ditto.
2880 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2881 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2882 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2883 Some commented out. Partially implemented.
2884 * java/awt/natToolkit.cc: Removed file.
2886 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2888 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2889 Fixes "make -j" builds.
2890 * Makefile.in: Rebuild.
2892 2000-08-02 Tom Tromey <tromey@cygnus.com>
2894 * Makefile.in: Rebuilt.
2895 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2896 * java/net/natPlainSocketImpl.cc: Include posix.h.
2897 (accept): Use _Jv_select.
2898 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2899 (receive): Use _Jv_select.
2900 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2901 (available): Use _Jv_select.
2902 * java/lang/natSystem.cc: Include posix.h.
2903 (currentTimeMillis): Use _Jv_gettimeofday.
2904 * include/posix.h: New file.
2905 * posix.cc: New file.
2907 * scripts/encodings.pl: New file.
2908 * Makefile.in: Rebuilt.
2909 * Makefile.am (convert_source_files): Added IOConverter.java.
2910 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2912 (getDefaultDecodingClass): Canonicalize default encoding name.
2913 (getEncoder): Likewise.
2914 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2916 (getDefaultDecodingClass): Canonicalize default encoding name.
2917 (getDecoder): Likewise.
2918 * gnu/gcj/convert/IOConverter.java: New file.
2920 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2922 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2923 to match C declaration in ffi.h.
2924 * Makefile.am: Add java/awt/Button.java.
2925 * Makefile.in: Rebuilt.
2927 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2929 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2930 cast of the second argument to `ffi_raw_call' changed to match
2933 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2935 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2936 argument to `ffi_raw_call' changed to match prototype.
2938 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2940 * java/awt/Component.java (toString): Implemented.
2941 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2942 dispatchEvent() to dispatch the event.
2943 (removeImpl): Ditto.
2945 2000-07-30 Anthony Green <green@redhat.com>
2947 * java/awt/Component.java: Add treeLock object.
2948 (getTreeLock): Implement.
2949 (isShowing): Implement.
2951 2000-07-30 Tom Tromey <tromey@cygnus.com>
2953 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2955 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2957 * java/awt/Window.java (addNotify): Wrote.
2958 (addWindowListener): Wrote.
2960 (getWarningString): Wrote.
2961 (processEvent): Wrote.
2962 (processWindowEvent): Wrote.
2963 (removeWindowListener): Wrote.
2964 (show): Call validate(), setVisible().
2968 * java/awt/Toolkit.java (createWindow): Declare.
2970 * java/awt/Frame.java (addNotify): Use getToolkit to find
2973 * java/awt/Component.java (invalidate): Wrote.
2975 (getToolkit): Wrote.
2977 * java/awt/Container.java (addContainerListener): Removed
2979 (removeContainerListener): Likewise.
2981 (add(Component)): Use it.
2982 (add(String,Component)): Likewise.
2983 (add(Component,int)): Likewise.
2984 (add(Component,Object)): Likewise.
2985 (add(Component,Object,int)): Likewise.
2987 (getAlignmentX): Wrote.
2988 (getAlignmentY): Wrote.
2989 (getComponentAt): Wrote.
2990 (getMaximumSize): Wrote.
2991 (invalidate): Wrote.
2992 (list(PrintStream,int)): Wrote.
2993 (list(PrintWriter,int)): Wrote.
2994 (getMinimumSize): Wrote.
2995 (getPreferredSize): Wrote.
2996 (printComponents): Wrote.
2997 (processContainerEvent): Look at containerListener, not
2999 (remove): Added event processing and peer destruction.
3000 (removeAll): Use remove.
3001 (removeNotify): Wrote.
3003 (validateTree): Wrote.
3005 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3006 * java/awt/Label.java (addNotify): Do nothing if peer exists.
3007 * java/awt/Container.java (addNotify): Don't create Container
3009 * java/awt/Button.java (addNotify): Do nothing if peer exists.
3011 2000-07-30 Tom Tromey <tromey@cygnus.com>
3013 * java/awt/Container.java (remove(int)): Wrote.
3014 (remove(Component)): Wrote.
3015 (add(Component)): Wrote.
3016 (add(Component,int)): Wrote.
3018 (addNotify): Set our own peer.
3019 * java/awt/Scrollbar.java (listeners): Changed type.
3020 (Scrollbar): Don't initialize listeners.
3022 (setValue): Call setValues.
3023 (setMinimum): Likewise.
3024 (setMaxPriority): Likewise.
3025 (setVisibleAmount): Likewise.
3027 (setUnitIncrement): Forward to peer.
3028 (setLineIncrement): Call setUnitIncrement.
3029 (setPageIncrement): Call setBlockIncrement.
3030 (setBlockIncrement): Forward to peer.
3031 (addAdjustmentListener): Rewrote.
3032 (removeAdjustmentListener): Rewrote.
3033 (processAdjustmentEvent): Rewrote.
3034 (paramString): Wrote.
3035 * Makefile.in: Rebuilt.
3036 * Makefile.am (awt_java_source_files): Added Button.java.
3037 * java/awt/Button.java: New file.
3038 * java/awt/Toolkit.java (createLabel): Declare.
3039 (createButton): Likewise.
3040 (createScrollbar): Likewise.
3041 (createContainer): Likewise.
3042 * java/awt/Label.java (addNotify): Wrote.
3043 (setAlignment): Call setAlignment in the peer.
3044 (setText): Call setText in the peer.
3046 2000-07-28 Warren Levy <warrenl@cygnus.com>
3048 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3049 NotSerializableException with just the class name.
3051 2000-07-26 Andrew Haley <aph@cygnus.com>
3053 * interpret.cc (continue1): Insert missing break into switch.
3055 2000-07-28 Warren Levy <warrenl@cygnus.com>
3057 * java/io/ObjectStreamException.java: Made constructors protected.
3059 2000-07-27 Tom Tromey <tromey@cygnus.com>
3061 * java/io/OutputStreamWriter.java (close): Only flush if not
3064 2000-07-27 Warren Levy <warrenl@cygnus.com>
3066 * mauve-libgcj: Activated serialization tests.
3067 * gcj/field.h (getModifiers): Mask off unknown flags.
3068 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3069 spurious bits don't cause discrepancies.
3070 * java/io/ObjectOutputStream.java: Fixed typo in comment.
3071 * java/io/ObjectStreamClass.java: Fixed typos in comments.
3072 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3073 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3074 * java/lang/Throwable.java (serialVersionUID): New field.
3075 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3076 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3078 * java/lang/reflect/natMethod.cc: Ditto.
3079 * java/security/Key.java (serialVersionUID): Removed field for now.
3080 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3081 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3083 2000-07-22 Tom Tromey <tromey@cygnus.com>
3085 * java/awt/geom/RectangularShape.java (getPathIterator):
3088 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3090 * libjava/java/awt/image/ColorModel.java: New file, replaces the
3091 stub libjava/java/awt/ColorModel.java which was located in the
3093 * libjava/java/awt/image/ComponentColorModel.java: New file.
3094 * libjava/java/awt/image/ComponentSampleModel.java: New file.
3095 * libjava/java/awt/image/DataBuffer.java: New file.
3096 * libjava/java/awt/image/DataBufferByte.java: New file.
3097 * libjava/java/awt/image/DataBufferInt.java: New file.
3098 * libjava/java/awt/image/DataBufferUShort.java: New file.
3099 * libjava/java/awt/image/DirectColorModel.java: New file.
3100 * libjava/java/awt/image/PackedColorModel.java: New file.
3101 * libjava/java/awt/image/Raster.java: New file.
3102 * libjava/java/awt/image/SampleModel.java: New file.
3103 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3105 * libjava/java/awt/image/IndexColorModel.java: New file.
3106 * libjava/java/awt/image/ImageConsumer.java: Removed import of
3107 java.awt.ColorModel stub.
3109 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3110 * gnu/gcj/util/Buffers.java: New file, utility class.
3112 * libjava/Makefile.am: Updated to include new files.
3113 * libjava/Makefile.in: Rebuilt.
3115 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
3117 * java/io/StreamTokenizer.java: Merged with classpath.
3119 2000-07-20 Tom Tromey <tromey@cygnus.com>
3121 * Makefile.in: Rebuilt.
3122 * Makefile.am (awt_java_source_files): Updated for new files.
3123 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3124 * java/awt/Label.java: New file.
3125 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3126 (createIntersection, createUnion, getBounds2D): New methods.
3127 * java/awt/Scrollbar.java: New file.
3128 * java/awt/Shape.java: Updated to 1.2.
3129 * java/awt/geom/AffineTransform.java: New file.
3130 * java/awt/geom/Ellipse2D.java: New file.
3131 * java/awt/geom/NoninvertibleTransformException.java: New file.
3132 * java/awt/geom/PathIterator.java: New file.
3133 * java/awt/geom/Rectangle2D.java: New file.
3134 * java/awt/geom/RectangularShape.java: New file.
3135 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3136 * java/awt/geom/IllegalPathStateException.java: New file.
3138 * scripts/showval.java: New file.
3140 * scripts/classes.pl (scan): Print inner classes properly.
3141 * gcj/javaprims.h: Updated class list.
3143 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3144 initialize String fields for interpreted classes. Fixes bug
3145 reported by Hans Boehm.
3147 * java/io/File.java (getParentFile): New method, from Classpath
3148 via Oskar Liljeblad.
3150 * java/util/Vector.java (remove(Object)): Implemented.
3152 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3154 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3155 zero return from backtrace().
3157 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3159 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3161 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3162 before calling notifyAll().
3164 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3166 Add missing files from last check-in:
3167 * java/awt/image/ImageConsumer.java: New file.
3168 * java/awt/image/ImageProducer.java: New file.
3169 * java/awt/image/ImageObserver.java: New file.
3171 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3173 Merged implementation of java.applet from classpath:
3174 * java/applet/Applet.java: New file.
3175 * java/applet/AppletContext.java: New file.
3176 * java/applet/AppletStub.java: New file.
3177 * java/applet/AudioClip.java: New file.
3179 * Makefile.am: Added new java.applet classes.
3180 * Makefile.in: Rebuilt.
3182 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3185 * java/util/ResourceBundle.java (getLocale): stub.
3186 * Makefile.am: Added new AWT classes.
3187 * Makefile.in: Rebuilt.
3188 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3189 constructors. Fix toString() and paramString().
3190 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3191 * java/awt/CheckboxGroup.java: New class.
3192 * java/awt/ColorModel.java: New class.
3193 * java/awt/Component.java: Added stubs for most methods. Implemented
3195 * java/awt/Container.java: ditto.
3196 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3197 * java/awt/Cursor.java: ditto.
3198 * java/awt/Event.java: Fix paramString().
3199 * java/awt/EventQueue.java: New class. Implemented.
3200 * java/awt/Font.java: Added additional stub methods. Implemented
3202 * java/awt/FontMetrics.java: New class. Stubbed.
3203 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3205 * java/awt/Insets.java: New class. Implemented.
3206 * java/awt/Menu.java: Add new methods. Partially implemented.
3207 * java/awt/MenuItem.java: Add new methods and fields. Partially
3209 * java/awt/MenuShortcut.java: New class. Implemented.
3210 * java/awt/Panel.java: New class. Placeholder.
3211 * java/awt/PopupMenu.java: New class. Stubbed.
3212 * java/awt/Rectangle.java: New class. Implemented.
3213 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3214 * java/awt/event/ActionEvent.java: Implement paramString().
3215 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3216 * java/awt/event/ComponentEvent.java: Implement paramString().
3217 * java/awt/event/ContainerEvent.java: Implement paramString().
3218 * java/awt/event/FocusEvent.java: Implement paramString().
3219 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3220 * java/awt/event/HierarchyBoundsListener.java: New class.
3221 * java/awt/event/HierarchyEvent.java: New class.
3222 * java/awt/event/HierarchyListener.java: New class.
3223 * java/awt/event/InputMethodEvent.java: Implement paramString().
3224 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3225 exception if !catchExceptions.
3226 * java/awt/event/ItemEvent.java: Implement paramString().
3227 * java/awt/event/KeyEvent.java: Implement paramString().
3228 * java/awt/event/MouseEvent.java: Implement paramString().
3229 * java/awt/event/PaintEvent.java: Implement paramString().
3230 * java/awt/event/TextEvent.java: Implement paramString().
3231 * java/awt/event/WindowEvent.java: Implement paramString().
3233 AWT Peer interfaces:
3234 * java/awt/peer/ButtonPeer.java: New file.
3235 * java/awt/peer/ListPeer.java: New file.
3236 * java/awt/peer/CanvasPeer.java: New file.
3237 * java/awt/peer/MenuBarPeer.java: New file.
3238 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3239 * java/awt/peer/MenuComponentPeer.java: New file.
3240 * java/awt/peer/CheckboxPeer.java: New file.
3241 * java/awt/peer/MenuItemPeer.java: New file.
3242 * java/awt/peer/ChoicePeer.java: New file.
3243 * java/awt/peer/MenuPeer.java: New file.
3244 * java/awt/peer/ComponentPeer.java: Implemented.
3245 * java/awt/peer/PanelPeer.java: New file.
3246 * java/awt/peer/ContainerPeer.java: Implemented.
3247 * java/awt/peer/PopupMenuPeer.java: New file.
3248 * java/awt/peer/DialogPeer.java: New file.
3249 * java/awt/peer/ScrollPanePeer.java: New file.
3250 * java/awt/peer/FileDialogPeer.java: New file.
3251 * java/awt/peer/ScrollbarPeer.java: New file.
3252 * java/awt/peer/FontPeer.java: New file.
3253 * java/awt/peer/TextAreaPeer.java: New file.
3254 * java/awt/peer/FramePeer.java: Implemented.
3255 * java/awt/peer/TextComponentPeer.java: New file.
3256 * java/awt/peer/LabelPeer.java: New file.
3257 * java/awt/peer/TextFieldPeer.java: New file.
3258 * java/awt/peer/LightweightPeer.java: New file.
3259 * java/awt/peer/WindowPeer.java: Implemented.
3261 2000-07-06 Tom Tromey <tromey@cygnus.com>
3263 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3264 Initialize static final String fields.
3266 2000-07-03 Tom Tromey <tromey@cygnus.com>
3268 * java/io/PrintWriter.java (print): Call write(String), not
3269 print(String). See PR libgcj/277.
3270 (print(String)): Use write, not out.write.
3272 2000-06-30 Tom Tromey <tromey@cygnus.com>
3274 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3276 2000-06-27 Andrew Haley <aph@cygnus.com>
3278 * java/io/File.java (createTempFile): Close the FileDescriptor
3279 used to create a temp file. Fixes some of PR 203.
3280 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3281 collection if we run out of file handles.
3283 2000-06-28 Warren Levy <warrenl@cygnus.com>
3285 * gnu/java/security/provider/Gnu.java: New file.
3286 * gnu/java/security/provider/SHA.java: New file.
3287 * gnu/java/security/provider/SHA1PRNG.java: New file.
3288 * Makefile.am: Added the above files.
3289 * Makefile.in: Rebuilt.
3291 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3293 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3295 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3296 (destroyed_flag): Removed.
3297 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3298 (activeCount): Added spec note.
3300 2000-06-27 Warren Levy <warrenl@cygnus.com>
3302 * java/security/Principal.java: New file.
3303 * Makefile.am: Added Principal.java.
3304 * Makefile.in: Rebuilt.
3306 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3308 * java/awt/event/MouseEvent.java: Fixed coordinate space
3311 2000-06-27 Tom Tromey <tromey@cygnus.com>
3313 * java/io/PushbackInputStream.java (read): If there are characters
3314 in the buffer, don't also call super.read().
3315 * java/io/PushbackReader.java (read): If there are characters in
3316 the buffer, don't also call super.read().
3318 * java/lang/Double.java (valueOf): Call parseDouble().
3320 2000-06-26 Warren Levy <warrenl@cygnus.com>
3322 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3323 (newVal): Renamed to newValue.
3324 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3325 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3326 (revokeNow): Renamed to invalidateRefs.
3327 * java/io/OptionalDataException.java: Updated FIXME.
3328 (eof): New placeholder field.
3330 * java/io/WriteAbortedException.java (message): Made transient.
3331 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3332 * java/lang/Throwable.java (stackTrace): Made transient.
3333 * java/net/InetAddress.java: Made Serializable.
3334 * java/security/KeyPair.java: Made Serializable.
3335 * java/security/Provider.java: Replaced with Classpath version that
3336 implements serialization and proper methods.
3337 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3338 (limits): Renamed to choiceLimits.
3340 2000-06-24 Tom Tromey <tromey@cygnus.com>
3342 * java/lang/natDouble.cc (parseDouble): Renamed from
3344 * java/lang/Double.java (parseDouble): Renamed from
3345 doubleValueOf. Now public.
3347 2000-06-23 Andrew Haley <aph@cygnus.com>
3349 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3350 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3352 2000-06-23 Tom Tromey <tromey@cygnus.com>
3354 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3355 * java/lang/natDouble.cc: Always include <alloca.h>.
3356 Fix for PR libgcj/267.
3358 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3360 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3361 comply with classpath VM spec.
3362 (add(Group)): Rename to addGroup().
3363 * java/lang/Thread.java (Thread): Use addThread().
3364 * java/lang/natThread.cc (finish_): Use removeThread().
3366 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3368 * java/lang/ThreadGroup.java: Merged with classpath.
3369 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3370 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3372 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3373 ThreadGroup.root if Thread.currentThread is null. Honour the
3374 ThreadGroup's max priority setting.
3376 2000-06-18 Tom Tromey <tromey@cygnus.com>
3378 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3379 returned class. For PR gcj/260.
3381 2000-06-16 Tom Tromey <tromey@cygnus.com>
3383 Fix for PR libgcj/261:
3384 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3386 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3387 argument. (This is a patch from long ago that somehow went
3390 2000-06-15 Tom Tromey <tromey@cygnus.com>
3392 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3396 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3398 Fix for PR java.lang/258:
3399 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3400 JV_STATE_DONE, to prevent accidental initialization.
3401 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3402 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3403 interface or an abstract class. Remove redundant initializeClass calls.
3404 Remove duplicate if_idt test.
3405 (_Jv_InterfaceAssignableFrom): New function.
3406 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3408 2000-05-31 Tom Tromey <tromey@cygnus.com>
3410 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3411 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3412 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3413 (NUM_OBJECT_METHODS): New define.
3414 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3415 `array_vtable' parameter. Added assertion.
3416 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3419 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3421 * gcj/cni.h: Include <string.h>.
3422 * defineclass.cc: Include <alloca.h>.
3423 * interpret.cc: Ditto.
3424 * gij.cc: Include <stdlib.h>.
3426 2000-05-30 Tom Tromey <tromey@cygnus.com>
3428 * include/name-finder.h: Include <sys/wait.h>.
3429 (_Jv_name_finder::pid): Now of type `pid_t'.
3430 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3431 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3434 2000-05-24 Warren Levy <warrenl@cygnus.com>
3436 * java/io/ObjectOutputStream.java (writeObject): Use component type
3437 when writing arrays.
3440 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3442 Fix for PR libgcj/226:
3443 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3444 since this is an installed header.
3446 Fix for PR libgcj/228:
3447 * java/util/zip/ZipFile (getInputStream): Create inflater with
3450 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3451 with DataFormatException.
3453 2000-05-20 Tom Tromey <tromey@cygnus.com>
3455 * Makefile.in: Rebuilt.
3456 * Makefile.am (hack1): Removed.
3457 (awto_files): Likewise.
3458 (libgcjawt_la_SOURCES): Likewise.
3459 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3460 (libgcjawt_la_DEPENDENCIES): Likewise.
3461 (libgcjawt_la_LIBADD): Likewise.
3462 (libgcjawt_la_LDFLAGS): Likewise.
3463 (libgcjawt_la_LINK): Likewise.
3464 ($(awt_java_source_files:.java=.class)): Likewise.
3465 (libgcj.zip): Don't depend on AWT files.
3466 (MOSTLYCLEANFILES): Don't include AWT files.
3467 ($(awto_files)): Removed.
3468 (nat_headers): Removed AWT files.
3469 (cond_awt_java_source_files): Removed.
3470 (ordinary_java_source_files): Added awt_java_source_files.
3471 * libgcj.spec.in (*lib): Removed -lgcjawt.
3472 * configure: Rebuilt.
3473 * configure.in: Removed --enable-java-awt option.
3475 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3477 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3478 (ZipEntry): Copy the `name' field.
3479 (clone): Implement JDK1.2 method.
3480 (setCompressedSize): ditto.
3483 2000-05-19 Tom Tromey <tromey@cygnus.com>
3485 * java/io/BufferedWriter.java: Merged with Classpath.
3486 * java/io/BufferedOutputStream.java: Merged with Classpath.
3488 2000-05-16 Andrew Haley <aph@cygnus.com>
3490 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3491 build_ia64_frame_state.
3492 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3495 2000-05-15 Warren Levy <warrenl@cygnus.com>
3497 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3498 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3499 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3500 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3501 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3502 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3503 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3504 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3505 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3506 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3507 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3508 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3509 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3510 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3511 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3512 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3513 * gnu/gcj/io/NullOutputStream.java: Removed.
3514 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3515 * gnu/gcj/lang/ArrayHelper.java: Removed.
3516 * gnu/gcj/lang/ClassHelper.java: Removed.
3517 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3519 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3520 * gnu/java/beans/EmptyBeanInfo.java: New file.
3521 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3522 * gnu/java/beans/IntrospectionIncubator.java: New file.
3523 * gnu/java/beans/editors/ColorEditor.java: New file.
3524 * gnu/java/beans/editors/FontEditor.java: New file.
3525 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3526 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3527 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3528 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3529 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3530 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3531 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3532 * gnu/java/beans/editors/StringEditor.java: New file.
3533 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3534 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3535 * gnu/java/io/NullOutputStream.java: New file.
3536 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3537 * gnu/java/lang/ArrayHelper.java: New file.
3538 * gnu/java/lang/ClassHelper.java: New file.
3539 * gnu/java/lang/reflect/TypeSignature.java: New file.
3541 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3542 namespace back to the original Classpath gnu/java namespace.
3543 * Makefile.in: Rebuilt.
3545 * java/beans/Beans.java: Namespace change.
3546 * java/beans/EventSetDescriptor.java: Namespace change.
3547 * java/beans/Introspector.java: Namespace change.
3548 * java/beans/PropertyEditorManager.java: Namespace change.
3549 * java/io/ObjectInputStream.java: Namespace change.
3550 * java/io/ObjectOutputStream.java: Namespace change.
3551 * java/io/ObjectStreamClass.java: Namespace change.
3552 * java/io/ObjectStreamField.java: Namespace change.
3554 2000-04-21 Warren Levy <warrenl@cygnus.com>
3556 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3557 now that compiler patch is available.
3558 Removed unneeded System.loadLibrary.
3559 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3560 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3562 2000-04-19 Andrew Haley <aph@cygnus.com>
3564 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3565 and target classes have been initialized.
3567 2000-04-19 Andrew Haley <aph@cygnus.com>
3569 * java/lang/String.java: implement Serializable, Comparable.
3570 (compareTo (Object)): New method.
3572 2000-04-19 Warren Levy <warrenl@cygnus.com>
3574 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3575 instead of getField to retrieve non-public field.
3576 (getSerialPersistantFields): Ditto.
3578 2000-04-18 Warren Levy <warrenl@cygnus.com>
3580 * mauve-libgcj: Turned off object serialization tests temporarily
3581 due to compiler error.
3583 2000-04-17 Warren Levy <warrenl@cygnus.com>
3585 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3586 to avoid build problem.
3588 * mauve-libgcj: Turned on object serialization tests.
3590 2000-04-17 Tom Tromey <tromey@cygnus.com>
3592 * libgcj.spec.in (*lib): Added -lgcjawt.
3594 2000-04-17 Andrew Haley <aph@cygnus.com>
3596 * Makefile.am: Add new files:
3597 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3599 * Makefile.in: Rebuilt.
3601 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3602 interface that has no implementations.
3603 Check for an attempt to assign an abstract class to an interface.
3605 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3606 if we fail to find MessageDigest.getInstance ("SHA").
3608 * gnu/gcj/io/SimpleSHSStream.java: New file.
3609 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3610 * gnu/gcj/io/shs.cc: New file.
3611 * gnu/gcj/io/shs.h: new file.
3613 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3616 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3617 punctuation from the classname of an array element.
3619 * gcj/javaprims.h: Add SimpleDigestStream.
3621 2000-04-17 Andrew Haley <aph@cygnus.com>
3623 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3624 to getPrivateField for superclasses.
3626 2000-04-14 Andrew Haley <aph@cygnus.com>
3628 * Makefile.am: Add new files:
3629 java/io/ObjectOutputStream$PutField.h,
3630 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3631 java/io/natObjectOutputStream.cc
3632 * Makefile.in: Rebuilt.
3633 * gcj/Makefile.in: Rebuilt.
3634 * include/Makefile.in: Rebuilt.
3635 * java/lang/Class.h (getPrivateField): New method.
3636 (getPrivateMethod): Ditto.
3637 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3638 and java::io::ObjectStreamClass our friends.
3639 * java/lang/natClass.cc (getPrivateField): New method.
3640 (getPrivateMethod): Ditto.
3641 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3642 * gcj/javaprims.h: Add serialization classes.
3643 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3644 (setByteField): Ditto.
3645 (setCharField): Ditto.
3646 (setDoubleField): Ditto.
3647 (setFloatField): Ditto.
3648 (setIntField): Ditto.
3649 (setLongField): Ditto.
3650 (setShortField): Ditto.
3651 (setObjectField): Ditto.
3652 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3654 (getByteField): Ditto.
3655 (getCharField): Ditto.
3656 (getDoubleField): Ditto.
3657 (getFloatField): Ditto.
3658 (getIntField): Ditto.
3659 (getLongField): Ditto.
3660 (getShortField): Ditto.
3661 (getObjectField): Ditto.
3662 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3664 (getSerialPersistantFields): Ditto.
3665 (getDefinedSUID): Ditto.
3666 * java/io/natObjectOutputStream.cc: New file.
3667 * java/io/natObjectInputStream.cc: New file.
3669 2000-04-13 Warren Levy <warrenl@cygnus.com>
3671 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3672 problems. Revert to previous version to reproduce and when fixed.
3674 2000-04-13 Warren Levy <warrenl@cygnus.com>
3676 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3677 * gnu/gcj/io/NullOutputStream.java: New file.
3678 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3679 * java/io/BlockDataException.java: New file.
3680 * java/io/Externalizable.java: New file.
3681 * java/io/InvalidClassException.java: New file.
3682 * java/io/InvalidObjectException.java: New file.
3683 * java/io/NotActiveException.java: New file.
3684 * java/io/NotSerializableException.java: New file.
3685 * java/io/ObjectInput.java: New file.
3686 * java/io/ObjectInputStream.java: New file.
3687 * java/io/ObjectInputValidation.java: New file.
3688 * java/io/ObjectOutput.java: New file.
3689 * java/io/ObjectOutputStream.java: New file.
3690 * java/io/ObjectStreamClass.java: New file.
3691 * java/io/ObjectStreamConstants.java: New file.
3692 * java/io/ObjectStreamField.java: New file.
3693 * java/io/Replaceable.java: New file.
3694 * java/io/Resolvable.java: New file.
3695 * java/io/SerializablePermission.java: New file.
3696 * java/io/WriteAbortedException.java: New file.
3697 * java/security/BasicPermission.java: New file.
3698 * java/security/DigestOutputStream.java: New file.
3699 * java/security/Guard.java: New file.
3700 * java/security/Permission.java: New file.
3701 * java/security/PermissionCollection.java: New file.
3702 * Makefile.am: Added above files.
3703 * Makefile.in: Rebuilt.
3705 * java/beans/Beans.java (instantiate): Activated serialization code.
3706 * java/lang/SecurityManager.java (checkPermission): New method.
3708 2000-04-12 Warren Levy <warrenl@cygnus.com>
3710 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3711 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3712 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3713 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3714 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3715 * gnu/gcj/beans/editors/FontEditor.java: New file.
3716 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3717 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3718 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3719 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3720 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3721 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3722 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3723 * gnu/gcj/beans/editors/StringEditor.java: New file.
3724 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3725 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3726 * gnu/gcj/lang/ArrayHelper.java: New file.
3727 * gnu/gcj/lang/ClassHelper.java: New file.
3728 * java/beans/BeanDescriptor.java: New file.
3729 * java/beans/BeanInfo.java: New file.
3730 * java/beans/Beans.java: New file.
3731 * java/beans/Customizer.java: New file.
3732 * java/beans/DesignMode.java: New file.
3733 * java/beans/EventSetDescriptor.java: New file.
3734 * java/beans/FeatureDescriptor.java: New file.
3735 * java/beans/IndexedPropertyDescriptor.java: New file.
3736 * java/beans/IntrospectionException.java: New file.
3737 * java/beans/Introspector.java: New file.
3738 * java/beans/MethodDescriptor.java: New file.
3739 * java/beans/ParameterDescriptor.java: New file.
3740 * java/beans/PropertyChangeEvent.java: New file.
3741 * java/beans/PropertyChangeListener.java: New file.
3742 * java/beans/PropertyChangeSupport.java: New file.
3743 * java/beans/PropertyDescriptor.java: New file.
3744 * java/beans/PropertyEditor.java: New file.
3745 * java/beans/PropertyEditorManager.java: New file.
3746 * java/beans/PropertyEditorSupport.java: New file.
3747 * java/beans/PropertyVetoException.java: New file.
3748 * java/beans/SimpleBeanInfo.java: New file.
3749 * java/beans/VetoableChangeListener.java: New file.
3750 * java/beans/VetoableChangeSupport.java: New file.
3751 * java/beans/Visibility.java: New file.
3752 * java/beans/beancontext/BeanContext.java: New file.
3753 * java/beans/beancontext/BeanContextChild.java: New file.
3754 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3755 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3756 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3757 * java/beans/beancontext/BeanContextEvent.java: New file.
3758 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3759 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3760 * java/beans/beancontext/BeanContextProxy.java: New file.
3761 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3763 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3764 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3766 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3767 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3769 * java/beans/beancontext/BeanContextServices.java: New file.
3770 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3771 * java/util/AbstractCollection.java: New file.
3772 * java/util/AbstractList.java: New file.
3773 * java/util/Arrays.java: New file.
3774 * Makefile.am: Added above files.
3775 * Makefile.in: Rebuilt.
3777 2000-04-11 Warren Levy <warrenl@cygnus.com>
3779 * java/awt/AWTError.java: New file.
3780 * java/awt/AWTEvent.java: New file.
3781 * java/awt/AWTException.java: New file.
3782 * java/awt/ActiveEvent.java: New file.
3783 * java/awt/Adjustable.java: New file.
3784 * java/awt/BorderLayout.java: New file.
3785 * java/awt/Color.java: New file.
3786 * java/awt/Component.java: New file.
3787 * java/awt/Container.java: New file.
3788 * java/awt/Dimension.java: New file.
3789 * java/awt/Event.java: New file.
3790 * java/awt/Font.java: New file.
3791 * java/awt/Frame.java: New file.
3792 * java/awt/Graphics.java: New file.
3793 * java/awt/IllegalComponentStateException.java: New file.
3794 * java/awt/Image.java: New file.
3795 * java/awt/ItemSelectable.java: New file.
3796 * java/awt/LayoutManager.java: New file.
3797 * java/awt/LayoutManager2.java: New file.
3798 * java/awt/Menu.java: New file.
3799 * java/awt/MenuBar.java: New file.
3800 * java/awt/MenuComponent.java: New file.
3801 * java/awt/MenuContainer.java: New file.
3802 * java/awt/MenuItem.java: New file.
3803 * java/awt/Paint.java: New file.
3804 * java/awt/PaintContext.java: New file.
3805 * java/awt/Point.java: New file.
3806 * java/awt/Rectangle.java: New file.
3807 * java/awt/Shape.java: New file.
3808 * java/awt/TextArea.java: New file.
3809 * java/awt/TextComponent.java: New file.
3810 * java/awt/Toolkit.java: New file.
3811 * java/awt/Transparency.java: New file.
3812 * java/awt/Window.java: New file.
3813 * java/awt/natToolkit.cc: New file.
3814 * java/awt/event/AWTEventListener.java: New file.
3815 * java/awt/event/ActionEvent.java: New file.
3816 * java/awt/event/ActionListener.java: New file.
3817 * java/awt/event/AdjustmentEvent.java: New file.
3818 * java/awt/event/AdjustmentListener.java: New file.
3819 * java/awt/event/ComponentAdapter.java: New file.
3820 * java/awt/event/ComponentEvent.java: New file.
3821 * java/awt/event/ComponentListener.java: New file.
3822 * java/awt/event/ContainerAdapter.java: New file.
3823 * java/awt/event/ContainerEvent.java: New file.
3824 * java/awt/event/ContainerListener.java: New file.
3825 * java/awt/event/FocusAdapter.java: New file.
3826 * java/awt/event/FocusEvent.java: New file.
3827 * java/awt/event/FocusListener.java: New file.
3828 * java/awt/event/InputEvent.java: New file.
3829 * java/awt/event/InputMethodEvent.java: New file.
3830 * java/awt/event/InputMethodListener.java: New file.
3831 * java/awt/event/InvocationEvent.java: New file.
3832 * java/awt/event/ItemEvent.java: New file.
3833 * java/awt/event/ItemListener.java: New file.
3834 * java/awt/event/KeyAdapter.java: New file.
3835 * java/awt/event/KeyEvent.java: New file.
3836 * java/awt/event/KeyListener.java: New file.
3837 * java/awt/event/MouseAdapter.java: New file.
3838 * java/awt/event/MouseEvent.java: New file.
3839 * java/awt/event/MouseListener.java: New file.
3840 * java/awt/event/MouseMotionAdapter.java: New file.
3841 * java/awt/event/MouseMotionListener.java: New file.
3842 * java/awt/event/PaintEvent.java: New file.
3843 * java/awt/event/TextEvent.java: New file.
3844 * java/awt/event/TextListener.java: New file.
3845 * java/awt/event/WindowAdapter.java: New file.
3846 * java/awt/event/WindowEvent.java: New file.
3847 * java/awt/event/WindowListener.java: New file.
3848 * java/awt/geom/Dimension2D.java: New file.
3849 * java/awt/geom/Point2D.java: New file.
3850 * java/awt/peer/ComponentPeer.java: New file.
3851 * java/awt/peer/ContainerPeer.java: New file.
3852 * java/awt/peer/FramePeer.java: New file.
3853 * java/awt/peer/WindowPeer.java: New file.
3854 * java/util/Collection.java: New file.
3855 * java/util/Comparator.java: New file.
3856 * java/util/Iterator.java: New file.
3857 * java/util/List.java: New file.
3858 * java/util/ListIterator.java: New file.
3859 * Makefile.am: Added above files.
3860 * Makefile.in: Rebuilt.
3862 2000-04-10 Warren Levy <warrenl@cygnus.com>
3864 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3865 * java/lang/FirstThread.java: Ditto.
3866 * java/lang/StringBuffer.java: Ditto.
3867 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3869 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3870 Special case handled in java.math.BigInteger.
3871 * java/math/BigInteger.java (divide): Handle the special case when
3872 dividing by 1 and the high bit of the dividend is set.
3873 (setShiftRight): Handle case when count == 0.
3875 2000-04-05 Andrew Haley <aph@cygnus.com>
3877 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3880 2000-04-05 Andrew Haley <aph@cygnus.com>
3882 * sysdep/ia64.c (rse_address_add): Delete.
3883 (IS_NaT_COLLECTION_ADDR): Delete.
3884 (ia64_backtrace_helper): check for null unwind_info.
3886 * sysdep/ia64-frame.h: add calc_caller_bsp.
3888 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3891 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3892 (_Jv_remI): Likewise.
3893 (_Jv_divJ): Likewise.
3894 (_Jv_remJ): Likewise.
3896 * interpret.cc (continue1): Use divide subroutines to guarantee
3897 correct Java standard behaviour.
3898 Floating-point division should not abort; make it so.
3900 2000-03-29 Tom Tromey <tromey@cygnus.com>
3902 * configure: Rebuilt.
3903 * configure.in: Test against `libgcj_sjlj', not
3904 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3905 to be set even when using sjlj.
3907 2000-03-24 Andrew Haley <aph@cygnus.com>
3909 * Makefile.am: Add file addr2name.awk.
3910 * Makefile.in: Rebuilt.
3911 * addr2name.awk: New file.
3912 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3914 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3917 2000-03-22 Andrew Haley <aph@cygnus.com>
3919 * configure.host: Add -funwind-tables for IA64.
3920 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3921 * Makefile.in: Rebuilt.
3922 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3923 * sysdep/ia64.c: New file.
3924 * sysdep/ia64-frame.h: New file.
3925 * configure.in: Add sysdep/ia64.c for ia64.
3926 * configure: Rebuilt.
3928 2000-03-17 Andrew Haley <aph@cygnus.com>
3930 * java/lang/natString.cc: Remove `register' keyword.
3931 interpret.cc: ditto.
3933 2000-03-16 Andrew Haley <aph@cygnus.com>
3935 * configure.host (ia64): Enable interpreter.
3937 2000-03-14 Hans Boehm <boehm@acm.org>
3939 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3941 2000-03-14 Andrew Haley <aph@cygnus.com>
3943 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3946 2000-03-10 Andrew Haley <aph@cygnus.com>
3948 * java/lang/ieeefp.h: Import latest version from fdlibm.
3950 2000-03-14 Andrew Haley <aph@cygnus.com>
3952 * prims.cc (_Jv_ThrowSignal): New function.
3953 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3955 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3956 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3957 * include/ppc-signal.h: New file.
3959 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3961 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3962 * java/lang/natThread.java (initialize_native): Cast `data' to
3964 * gnu/gcj/RawData.java: Clarify documentation.
3966 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3967 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3968 `jarFile', not `jarFileURL'.
3970 2000-05-15 Andrew Haley <aph@cygnus.com>
3972 * include/ppc-signal.h: New file.
3974 2000-05-11 Tom Tromey <tromey@cygnus.com>
3976 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3977 file headers, don't include `size' in the skip call.
3979 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3981 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3982 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3984 (replace): Reimplemented. Fix javadoc.
3985 (reverse): Call ensureCapacity_unsynchronized().
3986 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3988 (replace): Calculate length for arraycopy() correctly.
3990 2000-05-09 Tom Tromey <tromey@cygnus.com>
3992 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3994 (insert(int,char[],int,int): New method.
3995 (delete): New method from Classpath.
3996 (deleteCharAt): Likewise.
3997 (substring): Likewise.
3998 (shared): No longer private.
3999 Added JavaDoc comments from Classpath.
4000 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4003 2000-05-07 Tom Tromey <tromey@cygnus.com>
4005 * Makefile.in: Rebuilt.
4006 * Makefile.am (LIBLINK): New macro.
4007 (libgcj_la_LINK): Use it.
4008 (libgcjawt_la_LINK): Likewise.
4010 2000-05-06 Tom Tromey <tromey@cygnus.com>
4012 * Makefile.in: Rebuilt.
4013 * Makefile.am (libgcj.zip): Don't pass -L to javac.
4015 2000-05-05 Tom Tromey <tromey@cygnus.com>
4017 Fix for PR libgcj/220:
4018 * Makefile.in: Rebuilt.
4019 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4020 (jv_convert_LDFLAGS): Likewise.
4021 (libgcj_la_LDFLAGS): Likewise.
4022 (GCJLINK): New macro.
4023 (jv_convert_LINK): Use it.
4024 (gij_LINK): Likewise.
4025 (libgcj_la_LINK): New macro.
4026 (libgcjawt_la_LINK): Likewise.
4028 2000-05-04 Tom Tromey <tromey@cygnus.com>
4030 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4032 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
4036 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
4038 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4039 (_Jv_IsAssignableFrom): Ditto.
4040 (_Jv_IsInstanceOf): Ditto.
4041 (_Jv_CheckCast): Ditto.
4042 (_Jv_CheckArrayStore): Ditto.
4043 * java/lang/Class.h (_Jv_InitClass): Ditto.
4044 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4049 (_Jv_MonitorExit): Ditto.
4050 * boehm.cc (_Jv_MarkObj): Ditto.
4051 (_Jv_MarkObj): Ditto.
4052 (_Jv_MarkArray): Ditto.
4053 * prims.cc (_Jv_AllocObject): Ditto.
4054 (_Jv_NewObjectArray): Ditto.
4055 (_Jv_NewPrimArray): Ditto.
4056 (_Jv_Malloc): Ditto.
4057 (_Jv_Realloc): Ditto.
4058 (_Jv_MallocUnchecked): Ditto.
4064 2000-05-04 Tom Tromey <tromey@cygnus.com>
4066 * java/util/Locale.java (Locale): Don't explicitly check for
4068 * java/util/Hashtable.java (containsKey): Don't explicitly check
4071 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4073 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4075 * java/text/StringCharacterIterator.java
4076 (StringCharacterIterator): Don't check for null.
4077 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4079 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4080 check for null pointer.
4081 (leaveGroup): Likewise.
4082 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4084 (setData): Likewise.
4085 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4088 2000-04-28 Jakub Jelinek <jakub@redhat.com>
4090 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4091 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4092 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4093 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4094 -rpath for in-gcc builds.
4095 * Makefile.in: Rebuilt.
4097 2000-04-28 Tom Tromey <tromey@cygnus.com>
4099 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4102 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
4104 * libjava/java/lang/String.java (toString): Remove `final' hack.
4106 2000-04-05 Tom Tromey <tromey@cygnus.com>
4108 Runtime support for PR gcj/2:
4109 * prims.cc (_Jv_ThrowNullPointerException): New function.
4110 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4112 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
4114 * prims.cc (_Jv_NewObjectArray): Fix typo.
4116 2000-04-26 Tom Tromey <tromey@cygnus.com>
4118 * Makefile.in: Rebuilt.
4119 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4121 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
4123 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4126 2000-04-22 Anthony Green <green@cygnus.com>
4128 * include/jvm.h (__builtin_expect): Define as unused for now.
4129 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4133 (_Jv_MonitorExit): Ditto.
4134 * boehm.cc (_Jv_MarkObj): Ditto.
4135 (_Jv_MarkObj): Ditto.
4136 (_Jv_MarkArray): Ditto.
4137 (_Jv_AllocBytes): Ditto.
4138 * prims.cc (_Jv_AllocObject): Ditto.
4139 (_Jv_NewObjectArray): Ditto.
4140 (_Jv_NewPrimArray): Ditto.
4141 (_Jv_Malloc): Ditto.
4142 (_Jv_Realloc): Ditto.
4143 (_Jv_MallocUnchecked): Ditto.
4149 * include/Makefile.in: Rebuilt.
4150 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4152 2000-04-21 Tom Tromey <tromey@cygnus.com>
4154 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4155 Yet another new version from Classpath.
4157 Fix for PR libgcj/15:
4158 * java/util/natGregorianCalendar.cc (_REENTRANT,
4159 _POSIX_PTHREAD_SEMANTICS): Don't define.
4160 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4161 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4163 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4165 * configure: Rebuilt.
4166 * configure.in: If using POSIX threads, define _REENTRANT if
4167 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4168 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4170 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4171 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4172 version from Classpath.
4174 Fix for PR libgcj/213:
4175 * Makefile.in: Rebuilt.
4176 * Makefile.am (gij_SOURCES): Added gij.cc.
4177 (EXTRA_gij_SOURCES): Removed.
4178 (gij_LDADD): Removed gij.lo.
4179 (gij_DEPENDENCIES): Likewise.
4180 ($(gij_OBJECTS)): Depend on nat_headers.
4182 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4183 `setURL', not `url.set'.
4185 2000-04-20 Tom Tromey <tromey@cygnus.com>
4187 Fix for PR java.io/204:
4188 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4189 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4192 Fix for PR libgcj/212:
4193 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4194 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4195 * java/lang/Class.h (_Jv_word): Declare.
4197 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4199 2000-04-19 Tom Tromey <tromey@cygnus.com>
4201 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4202 doesn't have a loader.
4204 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4206 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4207 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4209 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4211 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4213 (available): Initialize `where' to prevent bogus compiler warning.
4215 2000-04-12 Tom Tromey <tromey@cygnus.com>
4217 * java/lang/natString.cc (intern): Temporarily disable finalizer
4220 * java/lang/natString.cc (unintern): Added `obj' argument.
4221 (intern): Register finalizer for string.
4222 * java/lang/String.java (unintern): Now static; added obj
4225 2000-04-11 Tom Tromey <tromey@cygnus.com>
4227 * java/util/Vector.java (VectorEnumeration): Now `final'.
4228 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4229 (HashtableEnumeration): Likewise.
4230 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4231 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4233 2000-04-10 Warren Levy <warrenl@cygnus.com>
4235 * java/io/ObjectStreamException.java: New file.
4236 * java/io/OptionalDataException.java: New file.
4237 * java/io/StreamCorruptedException.java: New file.
4238 * java/math/BigDecimal.java: New file.
4239 * java/sql/CallableStatement.java: New file.
4240 * java/sql/Connection.java: New file.
4241 * java/sql/DataTruncation.java: New file.
4242 * java/sql/DatabaseMetaData.java: New file.
4243 * java/sql/Date.java: New file.
4244 * java/sql/Driver.java: New file.
4245 * java/sql/DriverManager.java: New file.
4246 * java/sql/DriverPropertyInfo.java: New file.
4247 * java/sql/PreparedStatement.java: New file.
4248 * java/sql/ResultSet.java: New file.
4249 * java/sql/ResultSetMetaData.java: New file.
4250 * java/sql/SQLException.java: New file.
4251 * java/sql/SQLWarning.java: New file.
4252 * java/sql/Statement.java: New file.
4253 * java/sql/Time.java: New file.
4254 * java/sql/Timestamp.java: New file.
4255 * java/sql/Types.java: New file.
4256 * Makefile.am: Added above new files.
4257 * Makefile.in: Rebuilt.
4259 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4260 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4261 DatagramSocket constructor instead of null.
4263 2000-04-08 Anthony Green <green@cygnus.com>
4265 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4268 2000-04-08 Anthony Green <green@cygnus.com>
4270 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4271 (_Jv_MutexUnlock): Ditto.
4272 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4273 (_Jv_MutexUnlock): Ditto.
4275 2000-04-08 Anthony Green <green@cygnus.com>
4277 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4278 (ensureCapacity_unsynchronized): New private method.
4279 (append): Use ensureCapacity_unsynchronized.
4281 2000-04-08 Tom Tromey <tromey@cygnus.com>
4283 * Makefile.in: Rebuilt.
4284 * Makefile.am (awt_java_source_files): Added new files.
4285 * java/awt/IllegalComponentStateException.java: New file.
4286 * java/awt/ItemSelectable.java: New file.
4287 * java/awt/event/WindowEvent.java: Finished.
4288 * java/awt/event/TextEvent.java: Finished.
4289 * java/awt/event/ContainerEvent.java: New file.
4290 * java/awt/Component.java (getX, getY): New methods.
4291 * java/awt/event/PaintEvent.java: New file.
4292 * java/awt/event/MouseEvent.java: New file.
4293 * java/awt/ActiveEvent.java: New file.
4294 * java/awt/event/KeyEvent.java: Finished.
4295 * java/awt/event/ItemEvent.java: New file.
4296 * java/awt/Adjustable.java: New file.
4297 * java/awt/event/InputMethodEvent.java: New file.
4298 * java/awt/event/InputEvent.java: Finished.
4299 * java/awt/event/FocusEvent.java: New file.
4300 * java/awt/event/MouseMotionAdapter.java: New file.
4301 * java/awt/event/MouseAdapter.java: New file.
4302 * java/awt/event/KeyAdapter.java: New file.
4303 * java/awt/event/FocusAdapter.java: New file.
4304 * java/awt/event/ContainerAdapter.java: New file.
4305 * java/awt/event/ComponentEvent.java: Finished.
4306 * java/awt/event/AdjustmentEvent.java: New file.
4307 * java/awt/event/ComponentAdapter.java: New file.
4308 * java/awt/event/ActionEvent.java: Finished.
4309 * java/awt/event/MouseMotionListener.java: New file.
4310 * java/awt/event/MouseListener.java: New file.
4311 * java/awt/event/ItemListener.java: New file.
4312 * java/awt/event/InputMethodListener.java: New file.
4313 * java/awt/event/ContainerListener.java: New file.
4314 * java/awt/event/FocusListener.java: New file.
4315 * java/awt/event/ComponentListener.java: New file.
4316 * java/awt/event/AWTEventListener.java: New file.
4317 * java/awt/event/AdjustmentListener.java: New file.
4319 2000-04-08 Anthony Green <green@cygnus.com>
4321 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4322 check when we have to.
4324 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4327 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4330 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4331 inline hasMoreElements.
4333 2000-04-05 Tom Tromey <tromey@cygnus.com>
4335 * configure: Rebuilt.
4336 * configure.in: Recognize --enable-java-awt.
4337 (AWT): New conditional.
4338 * Makefile.in: Rebuilt.
4339 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4341 (libgcjawt_la_SOURCES): New macro.
4342 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4343 (libgcjawt_la_DEPENDENCIES): Likewise.
4344 (libgcjawt_la_LIBADD): Likewise.
4345 (libgcjawt_la_LDFLAGS): Likewise.
4346 (libgcj.zip): Depend on cond_java_awt_source_files
4347 (cond_awt_java_source_files): New macro.
4348 (MOSTLYCLEANFILES): Added awto_files.
4349 (awto_files): New macro. Use where javao_files used.
4350 (nat_headers): Use cond_awt_java_source_files.
4352 2000-04-04 Tom Tromey <tromey@cygnus.com>
4354 * Makefile.in: Rebuilt.
4355 * Makefile.am (awt_java_source_files): Added AWTException.java.
4356 * java/awt/AWTException.java: New file.
4358 2000-04-03 Tom Tromey <tromey@cygnus.com>
4360 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4361 commentary from Alex.
4363 * Makefile.in: Rebuilt.
4364 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4367 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4369 * configure: Rebuilt.
4370 * configure.in: Add --disable-jvmpi.
4371 * include/config.h.in: Rebuilt.
4372 * acconfig.h: Add ENABLE_JVMPI.
4374 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4375 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4376 (_Jv_JVMPI_Notify_THREAD_END): New define.
4377 (_Jv_JVMPI_Notify_THREAD_END): New define.
4378 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4379 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4380 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4382 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4385 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4386 (finish_): Generate JVMPI thread end events.
4387 (run_): Generate JVMPI thread start events.
4388 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4389 preloaded JNI library.
4390 Include JVMPI headers if necessary.
4391 (run): Generate JVMPI thread start events.
4393 * boehm.cc: Define GC_disable and GC_enable.
4394 (_Jv_DisableGC): New function.
4395 (_Jv_EnableGC): New function.
4396 (disable_gc_mutex): Declare.
4397 * nogc.cc (_Jv_DisableGC): New function.
4398 (_Jv_EnableGC): New function.
4400 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4401 (_Jv_JVMPI_Interface): Define.
4402 (jvmpiEnableEvent): New function.
4403 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4405 * include/jvmpi.h: New file.
4407 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4409 * Makefile.in: New #defines and friends for Thread.h.
4410 * Makefile.am: Ditto.
4411 * posix-threads.cc: (struct starter): Remove `object'.
4412 (_Jv_CondWait): Use interruptable condition variables and new
4413 recursive mutexes. New return codes on interrupt or non-ownership
4415 (_Jv_CondNotify): Ditto.
4416 (_Jv_CondNotifyAll): Ditto.
4417 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4418 the target thread by signaling its wait condition.
4419 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4420 not the starter struct. Initialize wait_mutex and wait_cond.
4421 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4423 (_Jv_MutexUnlock): Ditto.
4424 (really_start): Set info->data->thread from pthread_self() to work
4425 around a race condition. Destroy wait_mutex and wait_cond when run()
4427 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4428 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4430 startable_flag: New private field.
4431 (Thread): Initialize `startable_flag'.
4432 (toString): Check for null thread group.
4433 * java/lang/natThread.cc: (struct natThread): New fields
4434 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4435 (class locker): Removed.
4436 (initialize_native): Initialize `join_cond' and `join_mutex'.
4437 (interrupt): Now just calls _Jv_ThreadInterrupt().
4438 (join): Simplified. Just wait on the target thread's join condition.
4439 (finish_): Remove join list code. Unset thread group. Signal
4440 potential joiners by notifying the dying threads join_cond.
4441 (start): Check for illegal restarts.
4442 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4444 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4445 #defines and #ifdefs.
4446 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4447 `wait_mutex', `next'.
4448 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4449 directly mapping to pthread_cond_t.
4450 (struct _Jv_Mutex_t): New recursive implementation.
4451 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4452 _Jv_HaveCondDestroy: Never define this for posix-threads.
4453 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4454 (_Jv_CondNotifyAll): Ditto.
4455 (_Jv_MutexLock): Ditto.
4456 (_Jv_MutexUnlock): Ditto.
4457 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4458 (_Jv_MutexDestroy): Ditto.
4459 (_Jv_CondDestroy): Removed.
4460 (_Jv_PthreadGetMutex): Removed.
4461 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4462 error. Add a FIXME about this.
4463 (_Jv_CondNotifyAll): Ditto.
4464 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4465 _JV_NOT_OWNER on other errors. Add FIXME.
4467 2000-03-26 Tom Tromey <tromey@cygnus.com>
4469 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4471 (call): Don't throw exception here.
4473 2000-03-26 Tom Tromey <tromey@cygnus.com>
4475 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4476 * interpret.cc: Use SIZEOF_VOID_P.
4477 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4478 (_Jv_loadLong): Likewise.
4479 (_Jv_storeDouble): Likewise.
4480 * configure: Rebuilt.
4481 * configure.in: Check size of void*.
4483 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4485 2000-03-26 Hans Boehm <boehm@acm.org>
4487 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4488 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4490 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4491 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4492 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4493 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4495 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4496 (FFI_RAW_SIZE): Likewise.
4497 (_Jv_InterpMethod::ncode): Use them.
4498 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4499 STORED): Define differently on a 64 bit machine.
4500 (continue1): Use ffi_java_raw_call when appropriate.
4502 2000-03-24 Warren Levy <warrenl@cygnus.com>
4504 * java/math/BigInteger.java(divide): Handle the special case when
4505 dividing by 1 and the high bit of the dividend is set.
4506 (setShiftRight): Handle case when count == 0.
4508 2000-03-24 Warren Levy <warrenl@cygnus.com>
4510 * java/awt/Font.java(isBold): Fix syntax error.
4512 * java/awt/Frame.java(postEvent): ditto.
4513 * java/awt/Menu.java(postEvent): ditto.
4514 * java/awt/MenuBar.java(postEvent): ditto.
4515 * java/awt/Toolkit.java(init): Included a stub.
4517 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4519 * java/awt/Event.java: Add all the event type constants.
4520 (Event): Implemented constructors.
4521 (controlDown): Implemented.
4522 (metaDown): Implemented.
4523 (paramString): Stubbed.
4524 (shiftDown): Implemented.
4525 (toString): Implemented.
4526 (translate): Implemented.
4528 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4530 * java/lang/natClass.cc (isInstance): Initialize `this'.
4531 (isAssignableFrom): Initialize `this' and `klass'.
4532 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4533 implemented by any loaded class, so return false.
4534 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4535 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4537 2000-03-19 Warren Levy <warrenl@cygnus.com>
4539 * java/awt/Color.java: Specified java.io for Serializable.
4540 * java/awt/Toolkit.java: Imported java.net.URL.
4542 2000-03-19 Warren Levy <warrenl@cygnus.com>
4544 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4546 2000-03-16 Warren Levy <warrenl@cygnus.com>
4548 * java/awt/Color.java: New file.
4549 * java/awt/Graphics.java: New file.
4550 * java/awt/Image.java: New file.
4551 * java/awt/Paint.java: New file.
4552 * java/awt/PaintContext.java: New file.
4553 * java/awt/Transparency.java: New file.
4554 * java/util/Collection.java: New file.
4555 * java/util/Comparator.java: New file.
4556 * java/util/Iterator.java: New file.
4557 * java/util/List.java: New file.
4558 * java/util/ListIterator.java: New file.
4559 * Makefile.am: Added above new files.
4560 * Makefile.in: Rebuilt.
4562 * java/awt/Font.java (PLAIN): New field.
4564 (ITALIC): New field.
4565 (ROMAN_BASELINE): New field.
4566 (CENTER_BASELINE): New field.
4567 (HANGING_BASELINE): New field.
4571 (pointSize): New field.
4572 (Font): Implemented constructor.
4573 (isPlain): Implemented method.
4574 (isBold): Implemented method.
4575 (isItalic): Implemented method.
4576 (getName): Implemented method.
4577 (getStyle): Implemented method.
4578 (getSize): Implemented method.
4579 (getSize2D): Implemented method.
4581 * java/awt/Frame.java (getFont): Stubbed.
4582 (postEvent): Stubbed.
4584 * java/awt/Menu.java (postEvent): Stubbed.
4585 * java/awt/MenuBar.java (getFont): Stubbed.
4586 (postEvent): Stubbed.
4587 * java/awt/Toolkit.java (getImage): Added abstract method.
4589 2000-03-15 Tom Tromey <tromey@cygnus.com>
4591 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4593 * prims.cc (win32_exception_handler): Reformatted.
4595 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4596 (_Jv_HaveMutexDestroy): Likewise.
4598 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4600 * java/io/natFileDescriptorWin32.cc: New file.
4601 * java/io/natFileWin32.cc: New file.
4602 * java/net/natInetAddress.cc: Added conditional inclusion of
4603 Windows / Winsock headers.
4604 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4605 inclusion of Windows / Winsock headers.
4606 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4607 Windows / Winsock headers.
4608 * include/win32-signal.h: New file.
4609 * include/win32-threads.h: New file.
4610 * win32-threads.cc: New file.
4611 * exception.cc (win32_get_restart_frame): New function.
4612 * prims.cc (win32_exception_handler): New function.
4613 (main_init) Performs Winsock initialisation.
4614 (main_init) Installs exeception handler.
4616 2000-03-14 Tom Tromey <tromey@cygnus.com>
4618 * jni.cc (mangled_name): Fixed assertion.
4619 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4620 turned assert into actual failure.
4622 2000-03-09 Warren Levy <warrenl@cygnus.com>
4624 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4625 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4626 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4628 2000-03-09 Warren Levy <warrenl@cygnus.com>
4630 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4631 * java/security/DigestException.java: New file.
4632 * java/security/GeneralSecurityException.java: New file.
4633 * java/security/InvalidAlgorithmParameterException.java: New file.
4634 * java/security/InvalidKeyException.java: New file.
4635 * java/security/InvalidParameterException.java: New file.
4636 * java/security/Key.java: New file.
4637 * java/security/KeyException.java: New file.
4638 * java/security/KeyPair.java: New file.
4639 * java/security/KeyPairGenerator.java: New file.
4640 * java/security/KeyPairGeneratorSpi.java: New file.
4641 * java/security/NoSuchProviderException.java: New file.
4642 * java/security/PrivateKey.java: New file.
4643 * java/security/Provider.java: New file.
4644 * java/security/PublicKey.java: New file.
4645 * java/security/SecureRandom.java: New file.
4646 * java/security/Security.java: New file.
4647 * java/security/Signature.java: New file.
4648 * java/security/SignatureException.java: New file.
4649 * java/security/interfaces/DSAKey.java: New file.
4650 * java/security/interfaces/DSAParams.java: New file.
4651 * java/security/interfaces/DSAPrivateKey.java: New file.
4652 * java/security/interfaces/DSAPublicKey.java: New file.
4653 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4654 * java/security/interfaces/RSAPrivateKey.java: New file.
4655 * java/security/interfaces/RSAPublicKey.java: New file.
4656 * java/security/spec/AlgorithmParameterSpec.java: New file.
4657 * java/security/spec/InvalidKeySpecException.java: New file.
4658 * java/security/spec/InvalidParameterSpecException.java: New file.
4659 * java/security/spec/KeySpec.java: New file.
4660 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4661 * java/security/spec/RSAPrivateKeySpec.java: New file.
4662 * java/security/spec/RSAPublicKeySpec.java: New file.
4663 * Makefile.am: Added above java.security files.
4664 * Makefile.in: Rebuilt.
4666 * java/security/MessageDigest.java: Rewritten.
4667 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4669 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4673 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4675 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4676 _Jv_PrepareConstantTimeTables.
4677 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4678 classes should have an IDT, so don't return if klass is an array
4681 2000-03-08 Tom Tromey <tromey@cygnus.com>
4683 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4684 of `void' to be created.
4686 2000-03-08 Warren Levy <warrenl@cygnus.com>
4688 * java/math/BigInteger.java(signum): Handle zero properly.
4690 2000-03-07 Tom Tromey <tromey@cygnus.com>
4692 * All files: Updated copyright information.
4693 * COPYING: New file.
4694 * COPYING.LIB: Removed.
4695 * LIBGCJ_LICENSE: We now use GPL + special exception.
4697 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4699 * resolve.cc (_Jv_SearchMethodInClass): New function.
4700 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4701 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4703 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4705 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4706 (struct _Jv_ifaces): New declaration.
4707 JV_CLASS: New macro definition.
4708 (getComponentType): Relocate below isArray() for inlining.
4709 (getModifiers): Declare `inline'.
4710 (getSuperclass): Ditto.
4712 (isPrimitive): Ditto.
4713 (_Jv_IsAssignableFrom): New prototype.
4714 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4716 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4717 Check for JV_STATE_DONE before invoking initializeClass().
4718 (_Jv_PrepareConstantTimeTables): New prototype.
4719 (_Jv_GetInterfaces): Ditto.
4720 (_Jv_GenerateITable): Ditto.
4721 (_Jv_GetMethodString): Ditto.
4722 (_Jv_AppendPartialITable): Ditto.
4723 (_Jv_FindIIndex): Ditto.
4724 depth, ancestors, idt: New class fields.
4726 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4727 inline function `_Jv_IsAssignableFrom'. Use that function.
4728 (isInstance): Declare `inline'.
4729 (initializeClass): Get lock on class before checking `state'. Unlock
4730 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4732 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4733 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4734 class->depth and ancestor table.
4735 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4736 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4737 _Jv_IsAssignableFrom.
4738 (_Jv_CheckArrayStore): Ditto.
4739 (_Jv_LookupInterfaceMethodIdx): New function.
4740 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4741 (_Jv_PrepareConstantTimeTables): New function.
4742 (_Jv_IndexOf): Ditto.
4743 (_Jv_GetInterfaces): Ditto.
4744 (_Jv_GenerateITable): Ditto.
4745 (_Jv_GetMethodString): Ditto.
4746 (_Jv_AppendPartialITable): Ditto.
4747 iindex_mutex, iindex_mutex_initialized: New static fields.
4748 (_Jv_FindIIndex): New function.
4750 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4752 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4753 (_Jv_CheckArrayStore): Ditto.
4754 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4755 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4756 Moved to gcj/array.h.
4757 (_Jv_Realloc): New function.
4759 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4761 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4762 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4763 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4764 JvNewDoubleArray): Implementations moved from prims.cc and
4767 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4769 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4771 2000-03-06 Tom Tromey <tromey@cygnus.com>
4773 * jni.cc (MARK_NONE): New define.
4774 (MARK_USER): Likewise.
4775 (MARK_SYSTEM): Likewise.
4776 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4778 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4779 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4780 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4781 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4783 (call): Use MARK_SYSTEM.
4784 (_Jv_GetJNIEnvNewFrame): New function.
4785 (_Jv_LookupJNIMethod): New function.
4786 (_Jv_JNI_PopSystemFrame): New function.
4787 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4789 2000-03-05 Tom Tromey <tromey@cygnus.com>
4791 Fix for PR libgcj/43:
4792 * include/Makefile.in: Rebuilt.
4793 * include/Makefile.am (include_HEADERS): New define.
4795 2000-03-05 Anthony Green <green@redhat.com>
4797 * gcj/javaprims.h ("Java"): Remove FirstThread.
4799 * configure.host: Fix __NO_MATH_INLNES botch.
4801 * Makefile.in: Rebuilt.
4802 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4803 (gnu/gcj/runtime/FirstThread.h): Moved.
4804 (ordinary_java_source_files): Move FirstThread.java.
4805 * prims.cc: Deal with FirstThread movement.
4807 (_Jv_RunMain): Ditto.
4809 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4810 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4812 2000-03-05 Warren Levy <warrenl@cygnus.com>
4814 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4815 Handle null addresses.
4817 2000-03-04 Anthony Green <green@redhat.com>
4819 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4822 2000-03-04 Anthony Green <green@redhat.com>
4824 * configure: Rebuilt.
4825 * configure.in (ZLIBTESTSPEC): New macro.
4826 (GCTESTSPEC): New macro.
4827 (LIBGCJTESTSPEC): New macro.
4828 * libgcj-test.spec.in: New file.
4830 2000-03-02 Tom Tromey <tromey@cygnus.com>
4832 * include/java-interp.h: Don't include MethodInvocation.h.
4833 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4834 * Makefile.in: Rebuilt.
4835 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4836 (ordinary_java_source_files): Don't mention
4837 MethodInvocation.java.
4838 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4839 * interpret.cc (MethodInvocation::continue1): Removed.
4840 (run): Handle exceptions here.
4841 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4843 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4845 (defineClass2): Removed.
4847 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4849 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4851 (hack_call): Removed.
4853 * java/lang/Class.h (Class): Removed hackRunInitializers,
4855 * java/lang/natClass.cc (hackRunInitializers): Removed.
4856 (initializeClass): Catch exceptions here.
4857 Include ExceptionInInitializerError.h.
4858 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4861 * java/lang/Object.h (Object): Don't mention hack12_6.
4862 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4864 * java/lang/Object.java (hack12_6): Removed.
4866 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4867 (start): Use run_, not run__.
4868 * java/lang/Thread.java (run_): Renamed from run__; old run_
4871 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4872 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4873 (_Jv_JNI_DefineClass): Likewise.
4874 (_Jv_JNI_ThrowNew): Likewise.
4875 (_Jv_JNI_AllocObject): Likewise.
4876 (_Jv_JNI_GetAnyMethodID): Likewise.
4877 (_Jv_JNI_CallAnyMethodV): Likewise.
4878 (_Jv_JNI_CallAnyMethodA): Likewise.
4879 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4880 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4881 (_Jv_JNI_GetAnyFieldID): Likewise.
4882 (_Jv_JNI_NewString): Likewise.
4883 (_Jv_JNI_NewStringUTF): Likewise.
4884 (_Jv_JNI_GetStringUTFChars): Likewise.
4885 (_Jv_JNI_NewObjectArray): Likewise.
4886 (_Jv_JNI_NewPrimitiveArray): Likewise.
4887 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4888 (_Jv_JNI_GetStringRegion): Likewise.
4889 (_Jv_JNI_GetStringUTFRegion): Likewise.
4890 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4891 (_Jv_JNI_MonitorEnter): Likewise.
4892 (_Jv_JNI_MonitorExit): Likewise.
4893 (_Jv_JNI_ToReflectedField): Likewise.
4894 (_Jv_JNI_ToReflectedMethod): Likewise.
4895 (_Jv_JNI_RegisterNatives): Likewise.
4896 (_Jv_JNI_AttachCurrentThread): Likewise.
4897 (_Jv_JNI_DestroyJavaVM): Likewise.
4899 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4901 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4902 error caused by the incorrect casting of a long to an int.
4904 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4906 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4907 SIGSEV caused by use of the wrong instance variable.
4909 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4911 * java/io/File.java (File(String, String)): For dirPath, treat an
4912 empty String the same as `null'.
4914 2000-02-26 Anthony Green <green@cygnus.com>
4916 * gnu/gcj/io/MimeTypes.java: Test for null.
4918 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4919 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4921 * java/net/URLConnection.java: Update copyright notice.
4923 2000-02-25 Tom Tromey <tromey@cygnus.com>
4925 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4928 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4930 * java/net/URLConnection.java (initializeDateFormats): New
4932 (getHeaderFieldDate): Call initializeDateFormats if required.
4933 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4935 Fix for PR libgcj/38.
4937 2000-02-24 Warren Levy <warrenl@cygnus.com>
4939 * java/math/BigInteger.java(ival): Made private.
4943 2000-02-20 Anthony Green <green@cygnus.com>
4945 * Makefile.in: Rebuilt.
4946 * Makefile.am (ordinary_java_source_files): Add
4947 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4949 * scripts/MakeDefaultMimeTypes.java: New file.
4950 * scripts/mime.types: New file.
4951 * scripts/classes.pl: Moved from top level.
4952 * classes.pl: Moved to scripts directory.
4954 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4956 * gnu/gcj/io/MimeTypes.java: New file.
4957 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4959 2000-02-20 Tom Tromey <tromey@cygnus.com>
4961 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4963 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4965 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4968 2000-02-18 Tom Tromey <tromey@cygnus.com>
4970 * include/jvm.h (_Jv_GetJavaVM): Declare.
4971 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4972 (_Jv_MethodBase::get_method): New method.
4973 (_Jv_JNIMethod::set_function): New method.
4974 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4975 (_Jv_JNI_RegisterNatives): New function.
4976 (_Jv_JNIFunctions): Updated for new functions.
4977 (_Jv_GetJavaVM): New function.
4978 (_Jv_JNI_GetJavaVM): Use it. Now static.
4979 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4980 is already a Java thread but does not have a JNIEnv yet.
4982 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4985 2000-02-17 Tom Tromey <tromey@cygnus.com>
4987 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4990 2000-02-16 Tom Tromey <tromey@cygnus.com>
4992 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4994 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4995 (_Jv_JNI_NewObject): Likewise.
4996 (_Jv_JNI_NewObjectA): Likewise.
4997 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4998 as "return" type to _Jv_CallAnyMethodA.
4999 (_Jv_JNI_CallAnyMethodA): Likewise.
5000 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5002 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5005 2000-02-15 Tom Tromey <tromey@cygnus.com>
5007 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
5009 (init_cif): Added `rtype_p' argument.
5010 * include/java-interp.h (class _Jv_MethodBase): Added
5012 (class _Jv_InterpMethod): Removed args_raw_size.
5013 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5014 * jni.cc (call): Pass JNIEnv and (for static methods only) the
5015 class pointer as well as the ordinary arguments.
5017 * jni.cc (mangled_name): Skip leading `(' in signature.
5019 * jni.cc (add_char): Added missing `else'.
5021 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5024 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
5028 * java/lang/natRuntime.cc (_load): Include library path with
5031 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5034 * java/lang/natThread.cc (dumpStack): Removed.
5035 * java/lang/Thread.java (dumpStack): Implemented.
5037 2000-02-15 Tom Tromey <tromey@cygnus.com>
5039 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5040 with `lib' for loadLibrary. Fixes PR gcj/150.
5042 2000-02-14 Warren Levy <warrenl@cygnus.com>
5044 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5046 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5050 (modPow): Rewritten to not use the naive, slow, brute force approach.
5051 (isProbablePrime): Implemented.
5052 (testBit): Implemented.
5053 (flipBit): Implemented.
5054 (getLowestSetBit): Implemented.
5056 2000-02-16 Anthony Green <green@redhat.com>
5058 * configure.host: Use the same options for i386 and i486 as we do
5061 2000-02-12 Tom Tromey <tromey@cygnus.com>
5063 * java/io/File.java (createTempFile): Use low bits from counter,
5066 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5068 * THANKS: More thanks.
5070 2000-02-11 Tom Tromey <tromey@cygnus.com>
5072 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5073 astore instruction. From Hans Boehm.
5075 2000-02-11 Warren Levy <warrenl@cygnus.com>
5077 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5078 (BigInteger(String)): New constructor.
5079 (not): Rewritten using version from Kawa's BitOps class.
5080 (valueOf): New private methods from Kawa's BitOps class.
5087 (andNot): Implemented.
5088 (clearBit): Implemented.
5089 (setBit): Implemented.
5090 (bitCount): Implemented.
5091 (toByteArray): Implemented.
5093 2000-02-11 Tom Tromey <tromey@cygnus.com>
5095 * java/io/File.java (nextValue): Now synchronized.
5097 2000-02-10 Tom Tromey <tromey@cygnus.com>
5099 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5100 * java/io/FileDescriptor.java (EXCL): New static field.
5101 * java/io/File.java (tmpdir): New static field.
5102 (createTempFile): New method.
5103 (nextValue): New method.
5104 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5107 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5108 (jboolean): Declare as an attributed int, not a bool.
5109 (_Jv_func): Declare differently for C.
5111 * gnu/gcj/jni/natNativeThread.cc: New file.
5112 * gnu/gcj/jni/NativeThread.java: New file.
5113 * java/lang/Thread.java (data): Now a RawData.
5114 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5116 * Makefile.in: Rebuilt.
5117 * Makefile.am (java/lang/Thread.h): New target.
5118 (ordinary_java_source_files): Added NativeThread.java.
5119 (nat_source_files): Added natNativeThread.cc.
5120 * java/lang/natThread.cc: Include <jni.h>
5121 (struct natThread): Added `jni_env' field.
5122 (_Jv_GetCurrentJNIEnv): New function.
5123 (_Jv_SetCurrentJNIEnv): Likewise.
5124 (initialize_native): Initialize jni_env.
5126 * jni.cc (ThreadGroupClass): New define.
5127 (_Jv_JNI_InvokeFunctions): New structure.
5128 (JNI_GetCreatedJavaVMs): New function.
5129 (the_vm): New global.
5130 (JNI_GetDefaultJavaVMInitArgs): New function.
5131 Include NativeThread.h.
5132 (NativeThreadClass): New define.
5133 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5134 (_Jv_JNI_DestroyJavaVM): New function.
5135 (_Jv_JNI_AttachCurrentThread): New function.
5136 (_Jv_JNI_DetachCurrentThread): New function.
5137 (_Jv_JNI_GetEnv): New function.
5138 (JNI_CreateJavaVM): New function.
5139 (_Jv_JNI_GetJavaVM): New function.
5140 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5141 * include/jni.h (JavaVMAttachArgs): New structure.
5142 (JNI_EDETACHED): New define.
5143 (JNI_EVERSION): Likewise.
5144 (JavaVM): Define properly.
5145 (struct JNIInvokeInterface): New structure.
5146 (class _Jv_JavaVM): New class.
5147 (JNI_OnLoad, JNI_OnUnload): Declare.
5148 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5149 JNI_GetCreatedJavaVMs): Declare.
5150 (JavaVMInitArgs): New typedef.
5151 (JavaVMOption): Likewise.
5152 (JNI_ERR): New define.
5155 2000-02-10 Andrew Haley <aph@cygnus.com>
5157 * interpret.cc: Don't include fdlibm.h.
5158 Replace #if with #ifdef throughout.
5159 Declare extern __ieee754_fmod.
5160 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5162 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5163 Search class hierarchy for superclass vtable.
5165 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5166 off the end of a pointer list.
5168 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5172 2000-02-09 Tom Tromey <tromey@cygnus.com>
5174 * java/lang/natRuntime.cc (_load): Call add_library.
5175 (loadLibraryInternal): Likewise.
5177 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5178 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5179 (Output_iconv::finalize): Likewise.
5181 2000-02-08 Tom Tromey <tromey@cygnus.com>
5183 * java/util/Properties.java (setProperty): New method.
5184 (store): New method.
5186 2000-02-07 Tom Tromey <tromey@cygnus.com>
5188 * java/lang/Runtime.java (_load): Declare.
5189 (load, loadLibrary): Wrote in terms of _load.
5190 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5192 (loadLibrary): Likewise.
5194 (_load): New method.
5195 (loadLibrary, load): Removed.
5197 * jni.cc (ThrowableClass): New define.
5198 (_Jv_JNI_Throw): Check argument.
5199 (_Jv_JNI_ThrowNew): Likewise.
5200 (wrap_value): Don't wrap object if it is NULL.
5201 (_Jv_JNI_DefineClass): Use wrap_value.
5202 (_Jv_JNI_FindClass): Likewise.
5203 (_Jv_JNI_GetSuperclass): Likewise.
5204 (_Jv_JNI_ExceptionOccurred): Likewise.
5205 (_Jv_JNI_AllocObject): Likewise.
5206 (_Jv_JNI_GetObjectClass): Likewise.
5207 (_Jv_JNI_NewString): Likewise.
5208 (_Jv_JNI_NewStringUTF): Likewise.
5209 (_Jv_JNI_NewObjectArray): Likewise.
5210 (_Jv_JNI_GetObjectArrayElement): Likewise.
5211 (_Jv_JNI_NewPrimitiveArray): Likewise.
5212 (_Jv_JNI_ToReflectedField): Likewise.
5213 (_Jv_JNI_ToReflectedMethod): Likewise.
5214 (_Jv_JNI_AllocObject): Check argument.
5215 (_Jv_JNI_NewObjectV): Likewise.
5216 (_Jv_JNI_NewObject): Likewise.
5217 (_Jv_JNI_NewObjectA): Likewise.
5218 (_Jv_JNI_GetObjectClass): Likewise.
5219 (_Jv_JNI_GetField): Likewise.
5220 (_Jv_JNI_SetField): Likewise.
5222 * interpret.cc (PUSHL): Don't use expression statement.
5227 * jni.cc (add_char): Conditional on INTERPRETER.
5228 (mangled_name): Likewise.
5230 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5232 (class _Jv_JNIMethod): Likewise.
5234 2000-02-04 Warren Levy <warrenl@cygnus.com>
5236 * Makefile.am: Added MPN.java and BigInteger.java.
5237 * Makefile.in: Rebuilt.
5238 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5240 * java/math/BigInteger.java: New file. Based primarily on
5241 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5243 2000-02-04 Tom Tromey <tromey@cygnus.com>
5245 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5247 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5248 if the method is native.
5249 * resolve.cc (ncode): Don't handle native methods.
5250 (_Jv_JNIMethod::ncode): New method.
5251 (_Jv_PrepareClass): Handle native methods.
5252 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5253 Include AbstractMethodError.h.
5254 (add_char): New function.
5255 (mangled_name): Likewise.
5256 * include/java-interp.h (class _Jv_JNIMethod): New class.
5257 (class _Jv_MethodBase): New class.
5258 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5259 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5262 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5263 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5264 libraries): New globals.
5265 (add_library): New function.
5266 (_Jv_FindSymbolInExecutable): New function.
5268 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5271 2000-02-04 Andrew Haley <aph@cygnus.com>
5273 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5274 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5275 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5276 printStackTrace to printRawStackTrace.
5278 2000-02-03 Tom Tromey <tromey@cygnus.com>
5280 * java/util/Calendar.java (toString): New method.
5281 * java/util/SimpleTimeZone.java (clone): New method.
5282 (toString): New method.
5283 * java/util/TimeZone.java (clone): New method.
5284 * java/text/SimpleDateFormat.java (clone): New method.
5285 * java/text/NumberFormat.java (clone): New method.
5286 (equals): New method.
5287 * java/text/Format.java (clone): New method.
5288 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5290 (clone): New method.
5291 * java/text/DateFormat.java (clone): New method.
5292 * java/text/Collator.java (clone): New method.
5294 2000-02-03 Tom Tromey <tromey@cygnus.com>
5296 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5299 2000-02-01 Tom Tromey <tromey@cygnus.com>
5301 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5302 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5303 constructing the closure if the function is native.
5304 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5305 a template function, #if'd out, or static.
5306 Include <java-interp.h>.
5308 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5310 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5312 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5313 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5315 (wrap_value): New function.
5316 (_Jv_JNI_CallAnyMethodV): Use it.
5317 (_Jv_JNI_CallAnyMethodA): Likewise.
5318 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5319 (_Jv_JNI_GetStaticField): Likewise.
5321 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5322 (_Jv_JNI_GetStaticField): Likewise.
5324 2000-01-31 Tom Tromey <tromey@cygnus.com>
5326 * prims.cc (_Jv_MallocUnchecked): New function.
5327 (main_init): Call _Jv_JNI_Init.
5328 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5329 (_Jv_JNI_Init): Declare.
5330 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5332 (_Jv_JNI_NewGlobalRef): New function.
5333 (_Jv_JNI_DeleteGlobalRef): New function.
5334 (_Jv_JNI_DeleteLocalRef): New function.
5335 (_Jv_JNI_conversion_call): Initialize and clear local reference
5337 (_Jv_JNI_NewLocalRef): New function.
5338 (struct _Jv_JNI_LocalFrame): New structure.
5339 (_Jv_JNI_PushLocalFrame): New function.
5340 (_Jv_JNI_EnsureLocalCapacity): New function.
5341 (FRAME_SIZE): New define.
5342 (_Jv_JNI_GetStringChars): Mark string, not characters.
5343 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5344 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5345 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5347 (_Jv_JNI_DefineClass): Make return value a local ref.
5348 (_Jv_JNI_FindClass): Likewise.
5349 (_Jv_JNI_GetSuperclass): Likewise.
5350 (_Jv_JNI_ExceptionOccurred): Likewise.
5351 (_Jv_JNI_AllocObject): Likewise.
5352 (_Jv_JNI_GetObjectClass): Likewise.
5353 (_Jv_JNI_CallAnyMethodV): Likewise.
5354 (_Jv_JNI_NewString): Likewise.
5355 (_Jv_JNI_NewStringUTF): Likewise.
5356 (_Jv_JNI_NewObjectArray): Likewise.
5357 (_Jv_JNI_GetObjectArrayElement): Likewise.
5358 (_Jv_JNI_ToReflectedField): Likewise.
5359 (_Jv_JNI_ToReflectedMethod): Likewise.
5360 (_Jv_JNIFunctions): Updated table for new functions.
5361 (_Jv_JNI_Init): New function.
5362 (mark_for_gc): Wrote.
5363 (unmark_for_gc): Wrote.
5364 * include/jni.h (struct JNINativeInterface): Removed name from
5365 PopLocalFrame parameter.
5366 (class _Jv_JNIEnv): Added `locals' field.
5368 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5370 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5373 2000-01-30 Tom Tromey <tromey@cygnus.com>
5375 * include/config.h.in: Rebuilt.
5376 * acconfig.h (HAVE_ICONV): Define.
5377 * configure: Rebuilt.
5378 * configure.in: Check for `iconv' function.
5379 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5380 no specific encoder exists.
5381 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5382 no specific encoder exists.
5383 * Makefile.in: Rebuilt.
5384 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5386 (nat_source_files): Added natIconv.cc.
5387 * gnu/gcj/convert/natIconv.cc: New file.
5388 * gnu/gcj/convert/Input_iconv.java: New file.
5389 * gnu/gcj/convert/Output_iconv.java: New file.
5391 2000-01-28 Tom Tromey <tromey@cygnus.com>
5393 * Makefile.in: Rebuilt.
5394 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5396 2000-01-26 Tom Tromey <tromey@cygnus.com>
5398 * gcj/method.h (JvNumMethods): Moved from Class.h.
5399 (JvGetFirstMethod): Likewise.
5400 * java/lang/Class.h (Object): Updated decl of
5401 _Jv_JNI_ToReflectedField.
5402 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5403 * Makefile.in: Rebuilt.
5404 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5405 argument of _Jv_JNI_ToReflectedField.
5406 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5408 (java/lang/reflect/Method.h): Likewise.
5409 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5411 (jweak): New typedef.
5412 (struct JNINativeInterface): Correctly declare remaining entries.
5413 * jni.cc: Include Class.h, ClassLoader.h.
5414 (_Jv_JNI_FindClass): New function.
5415 (_Jv_JNI_DefineClass): New function.
5416 (_Jv_JNI_conversion_call): New function.
5417 (_Jv_JNI_FindClass): Use current class loader to find class.
5418 (_Jv_JNI_ExceptionCheck): New function.
5419 (_Jv_JNI_FromReflectedField): Now static.
5420 (MethodClass): New define.
5421 (_Jv_JNI_FromReflectedMethod): New function.
5422 (_Jv_JNI_ToReflectedMethod): Likewise.
5424 (_Jv_JNI_IsAssignableFrom): Renamed.
5425 (_Jv_JNI_GetStringRegion): New function.
5426 Include StringIndexOutOfBoundsException.h.
5427 (_Jv_JNI_GetStringUTFRegion): New function.
5428 (_Jv_JNIFunctions): Updated for new functions.
5429 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5430 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5431 (_Jv_JNI_GetStringCritical): New function.
5432 (_Jv_JNI_ReleaseStringCritical): Likewise.
5433 (get_throwable): Removed.
5434 (GCJ_JV_JNIENV_FRIEND): Removed.
5435 (__GCJ_JNI_IMPL__): Define.
5438 * resolve.cc (get_ffi_type_from_signature): Handle case where
5441 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5443 * interpret.cc (run): Don't call println.
5444 Don't include PrintStream.h.
5446 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5447 nameIndex. Use "jint" as type for boffset.
5448 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5450 (Class): Likewise. Also changed type of method_count,
5451 vtable_method_count, size_in_bytes, field_count,
5452 static_field_count, interface_count.
5453 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5456 2000-01-21 Tom Tromey <tromey@cygnus.com>
5458 * java/lang/reflect/natConstructor.cc (newInstance): Use
5460 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5461 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5462 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5465 (invoke): Use _Jv_CallAnyMethodA.
5467 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5468 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5470 (struct _Jv_Method): Added getNextMethod method.
5471 (JvNumMethods): New function.
5472 (JvGetFirstMethod): Likewise.
5473 * gcj/field.h (JvGetFirstStaticField): New function.
5474 (JvNumStaticFields): Likewise.
5475 (getNextField): Renamed from getNextInstanceField.
5476 (struct _Jv_Field): New method getClass.
5477 * jni.cc: Wrote many new functions.
5478 * include/jni.h (JNI_TRUE): Define.
5479 (JNI_FALSE): Likewise.
5480 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5481 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5482 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5483 (jfieldID, jmethodID): Likewise.
5484 (JNI_COMMIT, JNI_ABORT): New defines.
5485 (JNINativeMethod): New struct.
5486 (struct JNINativeInterface): Correctly declared more entries.
5487 (class _Jv_JNIEnv): Added `ex' member.
5488 (JNI_VERSION_1_1): New define.
5489 (JNI_VERSION_1_2): Likewise.
5491 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5492 getNextInstanceField.
5494 2000-01-20 Tom Tromey <tromey@cygnus.com>
5496 * resolve.cc (StringClass): Removed.
5497 * defineclass.cc (StringClass): Removed.
5499 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5503 2000-01-19 Tom Tromey <tromey@cygnus.com>
5505 * interpret.cc (PC_REGISTER_ASM): Removed.
5507 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5508 From Bryce McKinlay.
5510 * All files: Updated copyright to reflect Cygnus purchase.
5512 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5514 * configure: Rebuilt.
5515 * configure.in: Recognize --disable-interpreter.
5517 2000-01-18 Andrew Haley <aph@cygnus.com>
5519 * name-finder.cc (lookup): Check for dladdr function.
5520 acconfig.h (HAVE_DLADDR): Add.
5521 configure.in: Check for HAVE_DLADDR
5523 include/config.h.in: Rebuilt.
5525 2000-01-17 Andrew Haley <aph@cygnus.com>
5527 * prims.cc (_Jv_RunMain): Set the name of this executable.
5529 2000-01-17 Tom Tromey <tromey@cygnus.com>
5531 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5532 when backtrace can't be computed.
5534 * configure: Rebuilt.
5535 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5537 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5538 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5539 (_Jv_FindClassInCache): Likewise.
5540 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5541 (findSystemClass): Try to load class from compiled module.
5543 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5544 (loadLibrary): Likewise.
5545 (lt_preloaded_symbols): Define.
5546 (loadLibraryInternal): New method.
5547 * include/config.h.in: Rebuilt.
5548 * acconfig.h (USE_LTDL): Added.
5549 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5550 (INCLUDES): Added $(INCLTDL).
5551 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5552 (libgcj_la_LIBADD): Likewise.
5553 * aclocal.m4, configure: Rebuilt.
5554 * configure.in: Added libltdl support.
5556 2000-01-15 Tom Tromey <tromey@cygnus.com>
5558 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5560 2000-01-14 Andrew Haley <aph@cygnus.com>
5562 * java/lang/natThrowable.cc: New file.
5564 * java/lang/Throwable.java (fillInStackTrace): Make native.
5565 (printStackTrace): Call native method to do this.
5566 (Throwable): Call fillInStackTrace.
5567 (stackTrace): New variable.
5569 * include/jvm.h: Add _Jv_ThisExecutable functions.
5571 * prims.cc: (_Jv_execName): New variable.
5572 (catch_segv): Call fillInStackTrace.
5574 (_Jv_ThisExecutable): New functions.
5575 (JvRunMain): Set the name of this executable.
5577 * Makefile.am: Add java/lang/natThrowable.cc.
5579 * Makefile.in: Rebuilt.
5581 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5583 * configure.in: Force link with __frame_state_for in
5584 FORCELIBGCCSPEC. Add new checks for backtrace.
5585 * include/config.h.in: Rebuilt.
5587 * name-finder.cc: New file.
5588 * include/name-finder.h: New file.
5590 2000-01-16 Anthony Green <green@cygnus.com>
5592 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5595 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5597 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5599 2000-01-13 Tom Tromey <tromey@cygnus.com>
5601 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5602 not system loader, as initiating loader.
5604 2000-01-11 Tom Tromey <tromey@cygnus.com>
5606 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5607 HP/UX. From David Scott Urban.
5609 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5611 * java/lang/natMath.cc (pow): Cast args to `double', not
5614 (IEEEremainder): Likewise.
5615 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5616 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5618 2000-01-09 Anthony Green <green@cygnus.com>
5620 * java/lang/natString.cc (init): Test for overflow condition
5621 during out of bounds check.
5622 (getChars): Throw StringIndexOutOfBoundsException, not
5623 ArrayIndexOutOfBoundsException.
5625 (regionMatches): Obey case option during string comparison.
5627 * configure.host (ligcj_interpreter): New variable. Enable
5628 interpreter by default on IA-32.
5629 * configure.in: Examine libgcj_interpreter.
5630 * configure: Rebuilt.
5632 2000-01-07 Tom Tromey <tromey@cygnus.com>
5634 * mauve-libgcj: Don't disable ClassTest.
5636 * java/lang/natClass.cc (getClasses): Wrote.
5638 2000-01-06 Tom Tromey <tromey@cygnus.com>
5640 * java/lang/natClass.cc (_getConstructors): Correctly check
5641 whether method name is the init name.
5642 (getMethod): Look at accflags on method in `klass', not `this'.
5644 2000-01-05 Tom Tromey <tromey@cygnus.com>
5646 * java/lang/natClass.cc (getMethod): Compute offset relative to
5647 `klass's methods table, not `this's table.
5649 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5650 In unwrapping/widening case, check whether `k' is null, not
5651 whether it is primitive. Initialize `num' from `argelts', not
5652 `paramelts'. Correct create and pass arguments to ffi_call.
5653 Don't let presence of `this' argument affect index used to look in
5655 (COPY): Set appropriate element in `values' vector.
5657 * java/lang/natClass.cc: Include <gcj/method.h>.
5659 * java/lang/Class.h (_getMethods): Correctly declare as private,
5662 * java/lang/Class.h (_getMethods): Declare.
5663 * java/lang/Class.java (_getMethods): Declare.
5664 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5665 (getDeclaredClasses): Always return empty array.
5666 (_getMethods): New method.
5667 (getMethods): Wrote.
5668 (getDeclaredMethod): Return `rmethod'.
5669 (finit_name): New global.
5670 (getDeclaredMethods): Check for finit_name.
5671 (_getMethods): Likewise.
5672 (getMethod): Only return public methods.
5674 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5675 jboolean and select correct ffi type on that basis.
5676 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5677 Constructor call always has `void' return type.
5679 2000-01-04 Tom Tromey <tromey@cygnus.com>
5681 * java/lang/Class.h (getSignature): Updated.
5682 * java/lang/Class.java (getSignature): Updated.
5683 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5685 (getConstructor): Ensure constructor is public.
5686 (_getConstructors): Check for public-ness of constructor when
5687 `declared' is false, not when it is true.
5689 2000-01-04 Warren Levy <warrenl@cygnus.com>
5691 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5693 (receive): Set the sender's address in the DatagramPacket.
5695 2000-01-04 Tom Tromey <tromey@cygnus.com>
5697 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5698 declaring class as return_type argument to
5699 _Jv_CallNonvirtualMethodA.
5700 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5701 constructor case, create object and use it as `this' argument.
5702 * java/lang/Class.h (_getConstructors): Declare.
5703 (_getFields): Declare.
5704 * java/lang/Class.java (getConstructors): Wrote.
5705 (_getConstructors): New native method.
5706 (getDeclaredConstructors): Wrote.
5707 (_getFields): Declare new native method.
5708 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5710 (getMethod): Work correctly when class is primitive.
5711 (getDeclaredMethods): Likewise. Compute offset using `method',
5713 (getDeclaredMethod): Likewise.
5714 (getConstructor): Wrote.
5715 (ConstructorClass): New define.
5716 (getDeclaredConstructor): Wrote.
5717 (_getConstructors): New method.
5718 (_getFields): New method.
5721 * Makefile.in: Rebuilt.
5722 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5724 * prims.cc: Remove `#pragma implementation'.
5725 * gcj/array.h: Remove `#pragma interface'.
5727 * prims.cc (_Jv_equaln): New function.
5728 * java/lang/Class.java (getSignature): Declare.
5729 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5730 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5732 (getSignature): New method.
5733 (getDeclaredMethod): Wrote.
5735 Include StringBuffer.h.
5736 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5737 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5739 (getSignature): Declare.
5740 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5741 (_Jv_equaln): Declare.
5742 (_Jv_CallNonvirtualMethodA): Declare.
5743 * Makefile.in: Rebuilt.
5744 * Makefile.am (nat_source_files): Added natConstructor.cc.
5745 (java/lang/reflect/Constructor.h): New target.
5746 * java/lang/reflect/natConstructor.cc: New file.
5747 * java/lang/reflect/Constructor.java (newInstance): Now native.
5748 (declaringClass): Renamed from decl_class.
5749 (offset): Renamed from index.
5750 (getType): New native method.
5751 (getModifiers): Now native.
5752 (getParameterTypes): Call getType if required.
5753 (hashCode): Include hash code from declaring class.
5754 (modifiers): Removed.
5755 (toString): Call getType if required.
5756 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5757 * java/lang/reflect/natMethod.cc (hack_call): New method.
5758 Removed `#if 0' around FFI code.
5759 Include <gnu/gcj/RawData.h>.
5760 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5761 IllegalArgumentException when argument object and class disagree.
5762 (_Jv_GetTypesFromSignature): New function.
5764 (ObjectClass): New define.
5765 (_Jv_CallNonvirtualMethodA): New function.
5766 * java/lang/reflect/Method.java (hack_trampoline): New method.
5767 (hack_call): New native method.