1 2001-02-16 Tom Tromey <tromey@cygnus.com>
3 * java/lang/ThreadGroup.java (activeCount): Only include threads
7 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
9 * java/lang/Integer.java (getInteger): Return default argument if
10 property is not set. Don't call decode with null argument.
11 * java/lang/Long.java (getLong): Likewise.
13 * java/io/CharArrayReader.java (CharArrayReader): Throw
14 IllegalArgumentException if constructor arguments are illegal.
15 (ready): Return false if no more characters can be read.
16 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
18 2001-02-17 Mark Wielaard <mark@klomp.org>
20 * java/util/TimerTask.java: New version from Classpath.
22 2001-02-17 Mark Wielaard <mark@klomp.org>
24 Remerge with Classpath
25 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
26 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
27 (readByte): Use convertToByte().
28 (readChar): Use convertToChar().
29 (readInt): Use convertToInt().
30 (readLong): Use convertToLong().
31 (readShort): Use convertToShort().
32 (readUnsignedByte): Use convertToUnsignedByte().
33 (readUnsignedShort): Use convertToUnsignedShort().
34 (readUTF): Use convertToUTF().
36 (convertToBoolean): Resurrected.
37 (convertToByte): Ditto.
38 (convertToChar): Ditto.
39 (convertToInt): Ditto.
40 (convertToLong): Ditto.
41 (convertToShort): Ditto.
42 (convertToUnsignedByte): Ditto.
43 (convertToUnsignedShort): Ditto.
44 (convertToUTF): Ditto.
46 2001-02-17 Mark Wielaard <mark@klomp.org>
50 2001-02-17 Mark Wielaard <mark@klomp.org>
52 * java/io/DataInputStream.java: update copyright notice
53 * java/io/PrintWriter.java: idem
54 * java/io/Reader.java: idem
55 * java/io/StreamTokenizer.java: idem
56 * java/io/StringReader.java: idem
57 * java/lang/reflect/ReflectPermission.java: idem
59 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
61 * java/util/TreeSet.java (clone): Made subclass safe, use
62 super.clone(), not new.
63 * java/util/TreeMap.java (clone): Likewise.
65 * java/util/TreeMap.java (nil): Made non-final.
66 (clone): Create new nil node for copy.
68 * java/util/HashSet.java (clone): Made subclass safe, use
69 super.clone(), not new.
71 2001-02-14 Andrew Haley <aph@redhat.com>
73 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
76 2001-02-15 Anthony Green <green@redhat.com>
78 * defineclass.cc: Don't include alloca.h.
79 (prepare_pool_entry): Convert alloca to __builtin_alloca.
80 * interpret.cc (run_normal): Ditto.
82 * java/lang/natDouble.cc (parseDouble): Ditto.
84 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
86 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
88 * java/util/Collections.java (ReverseComparator): New static class.
89 (reverseOrder): Return static instance of ReverseComparator.
91 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
92 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
93 Rectangle.clone(), not Object.clone().
95 * java/util/HashSet.java (clone): Remove try/catch.
97 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
98 * java/util/Collection.java: Likewise.
99 * java/util/Comparator.java: Likewise.
100 * java/util/Dictionary.java: Likewise.
101 * java/util/Iterator.java: Likewise.
102 * java/util/ListIterator.java: Likewise.
103 * java/util/Map.java: Likewise.
104 * java/util/Set.java: Likewise.
106 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
108 * java/util/TreeMap.java: New file.
109 * java/util/TreeSet.java: New file.
110 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
111 * Makefile.in: Rebuilt.
112 * java/util/HashSet.java (clone): Use constructor instead of calling
114 * java/util/SortedSet.java: Sync with classpath.
115 * java/util/HashMap.java (hash): Use if statement instead of ternary,
118 * java/lang/natClass.cc (getSignature): Don't try to dereference
119 param_types if it is null. Instead, take this to mean "no parameters".
120 * java/lang/TreeMap.java (TreeIterator.next): Throw
121 NoSuchElementException in preference to ConcurrentModificationException.
122 (TreeIterator.remove): Throw IllegalStateException in preference to
123 ConcurrentModificationException.
124 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
125 throw a NoSuchElementException.
126 (SubMap.lastKey): Likewise.
128 2001-02-13 Tom Tromey <tromey@redhat.com>
130 * java/io/PipedReader.java (ready): Throw IOException if pipe
132 * java/io/FilterReader.java (close): Don't clear `in'.
133 * java/io/CharArrayReader.java (mark): Throw IOException if stream
135 (read, ready, reset, skip): Added exception message.
136 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
137 Perform checkStatus check inside synchronized block.
139 2001-02-13 Tom Tromey <tromey@redhat.com>
141 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
143 2001-02-13 Tom Tromey <tromey@redhat.com>
145 Fix for PR libgcj/1351:
146 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
148 Include Thread.h and InterruptedIOException.h.
150 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
152 * java/io/BlockDataException.java: Removed.
153 * java/io/ObjectInputStream.java (readObject): Throw
154 StreamCorruptedException, not BlockDataException.
155 * Makefile.am: Remove BlockDataException.
156 * Makefile.in: Rebuild.
158 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
159 Tom Tromey <tromey@redhat.com>
161 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
164 2001-02-09 Tom Tromey <tromey@redhat.com>
166 * java/util/Timer.java: New version from Classpath.
168 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
170 * java/lang/Double.java (doubleToRawLongBits): Now native.
171 * java/lang/Float.java (floatToRawIntBits): Likewise.
172 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
173 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
175 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
177 * java/io/File.java (java.net): Imported.
178 (getAbsoluteFile): Added.
179 (getCanonicalPath): Likewise.
182 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
184 * java/lang/Byte.java: Remove redundant instanceof and null checks.
185 * java/lang/Integer.java: Likewise.
186 * java/lang/Long.java: Likewise.
187 * java/lang/Short.java: Likewise.
188 * java/lang/Double.java: Likewise.
189 (doubleToRawLongBits): New method.
190 * java/lang/Float.java: As above.
191 (floatToRawIntBits): New method.
193 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
194 IOException if stream closed.
196 2001-02-08 Tom Tromey <tromey@redhat.com>
198 * java/lang/Float.java (parseFloat): New method.
200 2001-02-08 Tom Tromey <tromey@redhat.com>
202 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
203 * java/io/InputStreamReader.java (ready, read): Throw IOException
204 if stream has been closed.
206 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
208 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
209 Change sources.redhat.com and sourceware.cygnus.com references to
212 2001-02-07 Tom Tromey <tromey@redhat.com>
214 Fix for PR libgcj/1906:
215 * java/text/MessageFormat.java (setLocale): Use named class
218 (format(Object,StringBuffer,FieldPosition)): Special case if
219 argument is an Object[].
221 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
223 * java/util/Arrays.java: Removed "cmp" methods.
224 (qsort): Don't use "cmp".
227 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
229 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
230 sort. Fix for PR java/1895.
232 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
234 * configure.host: Use sjlj-exceptions for Alpha.
236 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
238 * libgcj.spec.in: Don't force static libgcc into the executable.
239 * configure.in (FORCELIBGCCSPEC): Removed.
240 * configure: Rebuilt.
242 2001-01-31 Tom Tromey <tromey@redhat.com>
244 * Makefile.in: Rebuilt.
245 * Makefile.am (LTCXXCOMPILE): New macro.
247 2001-01-26 Andrew Haley <aph@redhat.com>
249 (INIT_FPE): Use a direct system call to set the handler.
251 2001-01-27 Richard Henderson <rth@redhat.com>
253 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
255 2001-01-27 Tom Tromey <tromey@redhat.com>
257 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
258 native interface structure.
260 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
262 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
264 (read (byte[], int, int)): Only call readNextBlock() if the block
265 buffer would actually be overrun. Increment blockDataPosition.
266 (callReadMethod): Propagate exceptions from invocation target.
267 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
268 exceptions from invocation target.
270 2001-01-26 Tom Tromey <tromey@redhat.com>
272 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
273 to internal representation.
274 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
275 _Jv_FindClassFromSignature.
277 2001-01-26 Warren Levy <warrenl@redhat.com>
279 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
280 and timezone if they are available on the system.
282 2001-01-24 Tom Tromey <tromey@redhat.com>
284 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
286 2001-01-24 Tom Tromey <tromey@redhat.com>
288 * Makefile.in: Rebuilt.
289 * Makefile.am (c_source_files): Added sf_fabs.c.
290 * java/lang/sf_fabs.c: New file.
292 2001-01-19 Warren Levy <warrenl@redhat.com>
294 * java/text/SimpleDateFormat.java (format): Compute hour for cases
295 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
296 correctly. Adjust properly from 0-23 clock hour.
298 2001-01-17 Mark Wielaard <mark@klomp.org>
300 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
302 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
304 * java/lang/Class.h (isInterface): Move implementation from
305 natClass.cc. Declare inline.
306 (Class): Add default constructor.
307 * java/lang/Object.h: Update comments.
308 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
309 initialize superclass, saving a call if super is already initialized.
311 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
313 * prims.cc (init_prim_class): Deleted.
314 (DECLARE_PRIM_TYPE): Rewritten.
315 * java/lang/Class.h (stdio.h): Include removed.
316 (stddef.h): Included.
317 (java/lang/reflect/Modifier.h): Likewise.
318 (Class): Contructor now takes arguments, initializes fields.
319 (initializePrim): Prototype deleted.
320 * java/lang/natClass.cc (initializePrim): Deleted.
322 2001-01-16 Warren Levy <warrenl@redhat.com>
324 * java/math/BigInteger.java: Update Copyright year.
326 2001-01-16 Hans Boehm <hans_boehm@hp.com>
328 * java/math/BigInteger.java (setShiftRight): Only do negative shift
331 2001-01-14 Mark Wielaard <mark@klomp.org>
332 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
333 (decode): Merge comments with Classpath, don't throw Exception
335 2001-01-12 Tom Tromey <tromey@redhat.com>
337 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
341 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
342 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
343 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
344 * gnu/awt/gtk/GtkLabelPeer.java: New file.
345 * gnu/awt/gtk/GtkButtonPeer.java: New file.
347 * java/lang/natSystem.cc: Include locale.h if it exists.
348 * configure: Rebuilt.
349 * configure.in: Check for locale.h.
351 2001-01-11 Tom Tromey <tromey@redhat.com>
353 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
354 (Cursor(int), getPredefinedCursor): Throw exception if argument
357 2001-01-03 Tom Tromey <tromey@redhat.com>
359 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
360 (getLocationOnScreen): Wrote.
362 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
364 * Makefile.am: Re-enable dependencies.
365 * Makefile.in: Rebuilt.
367 2001-01-10 Warren Levy <warrenl@redhat.com>
369 * java/math/BigDecimal.java (divide): Fixed comment.
371 2001-01-10 Warren Levy <warrenl@redhat.com>
373 Fix for PR libgcj/1596:
374 * java/math/BigDecimal.java (divide): Check newScale for validity.
375 Ensure that BigInteger.pow() is called with a non-negative value.
376 (setScale (int)): New public method.
377 (setScale (int,int)): New public method.
379 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
381 Fix for PR libgcj/1338:
382 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
383 commentChar. Fixed typos in comments.
385 2001-01-08 Warren Levy <warrenl@redhat.com>
387 Fix for PR libgcj/1411:
388 * Makefile.am: Removed java/util/natTimeZone.cc.
389 * Makefile.in: Rebuilt.
390 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
391 missing localized timezone names.
392 * java/lang/System.java (getDefaultTimeZoneId): New private method.
393 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
394 (init_properties): Set user.timezone property.
395 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
396 default timezone names; removed non-standard ones. Use standard
398 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
400 * java/util/TimeZone.java: Add standard ID names per JCL; removed
402 (getDefaultTimeZoneId): Removed.
404 * java/util/natTimeZone.cc: Removed.
406 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
408 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
409 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
410 (_Jv_GetArrayClass): New inline function.
411 (arrayclass): New field.
412 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
413 _Jv_GetArrayElementFromElementType.
414 (_Jv_NewPrimArray): Ditto.
415 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
416 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
417 Set Modifier::ABSTRACT.
418 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
419 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
420 Now synchronized. Array classes are now referenced from
421 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
422 Set array classes' accessibility flags correctly. Optimize so that
423 all array classes share the same IDT.
424 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
425 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
426 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
427 in superclasses from overwriting classes own fields.
428 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
429 Modifier::isAbstract().
430 (null_idt): New static field.
431 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
433 (_Jv_IndexOf): Made inline.
434 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
436 2001-01-08 Tom Tromey <tromey@redhat.com>
438 Fix for PR java/1586:
439 * Makefile.in: Rebuilt.
440 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
442 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
444 * Makefile.am: Use the new "-M -MF" option for generating dependencies
445 from the c++ compiler.
446 * Makefile.in: Rebuilt.
448 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
450 All files with updated copyright.
451 * prims.cc (class _Jv_PrimClass): Removed.
452 (init_prim_class): New function.
453 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
454 `_Jv_PrimClass' in primitive type declarations. Assign to the
455 value returned by `init_prim_class.'
456 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
457 primitive type declarations.
458 (JvPrimClass): Cast to `jclass' removed.
459 * java/lang/Class.h (Class): New constructor.
460 (Class): New copy constructor.
461 (initializePrim): New prototype.
462 (_Jv_PrimClass): Field removed.
463 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
464 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
465 (class java::lang::Object): `finalize' moved up front.
466 * java/lang/natClass.cc
467 (isAssignableFrom): Turned outline.
468 (isInstance): Likewise.
469 (isInterface): Likewise, fixed indentation.
470 (initializePrim): New function.
472 2001-01-07 Anthony Green <green@redhat.com>
474 * Makefile.am (texinfo): Add texinfo target for generating texinfo
476 * Makefile.in: Rebuilt.
478 * scripts/TexinfoDoclet.java: New file.
480 * doc/java-applet.texi, doc/java-lang-reflect.texi,
481 doc/java-awt-color.texi, doc/java-lang.texi,
482 doc/java-awt-datatransfer.texi, doc/java-math.texi,
483 doc/java-awt-event.texi, doc/java-net.texi,
484 doc/java-awt-geom.texi, doc/java-security-spec.texi,
485 doc/java-awt-image.texi, doc/java-security.texi,
486 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
487 doc/java-text.texi, doc/java-beans-beancontext.texi,
488 doc/java-util-jar.texi, doc/java-beans.texi,
489 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
490 doc/java-lang-ref.texi: New files.
492 2001-01-07 Anthony Green <green@redhat.com>
494 * java/net/URLConnection.java (setDoOutput): URLConnection's may
495 be used for both input and output, so don't clear doInput.
497 * java/lang/StringBuffer.java: Fix comments.
499 2001-01-06 Anthony Green <green@redhat.com>
501 * java/beans/PropertyDescriptor.java: Fix comment.
502 * java/io/PushbackReader.java: Fix comment.
503 * java/io/ObjectStreamClass.java: Fix comment.
504 * java/io/DataInputStream.java: Fix comment.
505 * java/io/PipedInputStream.java: Fix comments.
506 * java/io/PipedReader.java: Fix comments.
507 * java/sql/DatabaseMetaData.java: Fix comments.
509 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
511 * java/io/PipedReader: Synchronize on "lock" instead of this.
513 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
515 * java/lang/Thread.java: Update comment.
517 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
518 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
519 * java/io/PipedReader: New implementation based on new
521 * java/io/PipedWriter: Updated to match new PipedReader.
523 2001-01-03 Tom Tromey <tromey@redhat.com>
525 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
526 (getViewportSize): Insets include scrollbar size.
527 (doLayout): Finished.
528 (getScrollPosition): Wrote.
529 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
531 2001-01-02 Tom Tromey <tromey@redhat.com>
533 * java/awt/ScrollPane.java: Wrote.
534 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
537 * java/awt/Panel.java (Panel()): Fixed.
539 * java/awt/Component.java (isShowing): Return false if no peer
540 exists, and true if component is visible and no parent exists.
541 (getLocationOnScreen): Wrote.
542 (getPreferredSize): Removed FIXME comment.
543 (getMinimumSize): Likewise.
544 (getAlignmentX, getAlignmentY): Wrote.
546 (requestFocus): Wrote.
547 (transferFocus): Wrote.
548 (findNextFocusComponent): New method.
551 (enableEvents): Call setEventMask on the peer.
553 * java/awt/Container.java (list): Use super.list() to print self.
554 (findNextFocusComponent): New method.
555 (setLayout): Call invalidate.
556 (findComponentAt): Wrote.
558 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
560 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
561 the correct versions of various linuxthreads functions get linked.
562 * Makefile.in: Rebuilt.
563 * java/lang/natThread.cc (finalize_native): New static function. Call
564 _Jv_ThreadDestroyData.
565 (initialize_native): Register finalizer for "data".
566 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
567 (_Jv_ThreadDestroyData): New prototype.
568 * include/win32-threads.h: Ditto.
569 * include/no-threads.h: Ditto.
570 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
571 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
572 move mutex and condition variable destroy code from:
573 (really_start): ...here.
574 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
575 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
576 (_Jv_ThreadDestroyData): Implemented.
577 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
578 (_Jv_AllocArray): Ditto.
580 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
582 * java/sql/DriverManager.java (getConnection): Don't set user/password
585 2000-12-27 Warren Levy <warrenl@redhat.com>
587 Fix for PR libgcj/1358:
588 * java/lang/System.java: Update Copyright date properly.
589 * java/util/Calendar.java: Fix typo in comment.
590 (set): Set 24-hour clock hour instead of 12-hour clock hour.
591 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
592 initialize times. Spec says to set H:M:S values to zero only if
594 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
595 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
596 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
597 timezones and GMT offsets, being careful to account for units of
598 milliseconds vs. seconds.
600 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
602 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
603 not be assigned to Object.
605 Fix for PR libgcj/1516:
606 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
608 (can_widen): Declared inline. Remove redundant checks for void
609 arguments and char->short conversion. Add special case for boolean
611 (ffi_type): Declared inline.
612 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
614 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
616 * java/sql/SQLWarning.java: Fixed typo in comment.
618 2000-12-26 Tom Tromey <tromey@redhat.com>
620 * java/awt/MenuItem.java (paramString): Now protected.
622 * java/awt/MenuShortcut.java: Implements Serializable.
624 * java/awt/MenuBar.java: Rewrote from scratch.
626 * java/awt/MenuComponent.java (removeNotify): Wrote.
627 Implements Serializable.
629 * java/awt/GridBagConstraints.java (GridBagConstraints): New
632 * java/awt/CheckboxMenuItem.java: Wrote.
634 2000-12-25 Tom Tromey <tromey@redhat.com>
636 * java/awt/MenuContainer.java: Fixed typo.
638 * Makefile.in: Rebuilt.
639 * Makefile.am (awt_java_source_files): Added SystemColor.java.
640 * java/awt/SystemColor.java: New file.
642 * java/awt/Color.java (rgba): Now package-private.
644 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
646 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
649 * java/awt/MenuItem.java (addNotify): New method.
650 (MenuItem(String,MenuShortcut)): New constructor.
651 (setLabel): Notify peer of change.
652 (setEnabled): Likewise.
654 * java/awt/GridLayout.java (toString): New method.
656 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
657 (FlowLayout): Check for LEADING and TRAILING.
658 (setAlignment): Likewise.
659 (layoutContainer): Handle component orientation.
661 * java/awt/Component.java (orientatin): New field.
662 (setComponentOrientation): Wrote.
663 (getComponentOrientation): Wrote.
665 * java/awt/Event.java (Event): Implements Serializable.
666 (consumed): New field for serialization.
667 * java/awt/Dimension.java (Dimension): Implements Serializable.
668 * java/awt/Cursor.java (Cursor): Implements Serializable.
669 * java/awt/Container.java (Container): No longer abstract.
671 * java/awt/Choice.java: Wrote.
672 * java/awt/Checkbox.java: Wrote.
673 * java/awt/ItemSelectable.java: Documented.
674 * java/awt/CheckboxGroup.java: Wrote.
676 * java/awt/CardLayout.java (layoutContainer): Directly use fields
680 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
682 * java/io/FileDescriptor.java: Initialize fd to -1.
683 Remove default constructor.
685 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
687 * java/lang/mprec.h: Change C9X reference to refer to C99.
689 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
691 * java/lang/Throwable.java (trace_enabled): New static field.
692 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
693 trace_enabled not set.
694 * prims.cc (main_init): Turn off trace_enabled while creating
695 default exception objects.
697 2000-12-21 Tom Tromey <tromey@redhat.com>
699 * java/beans/PropertyChangeListener.java: Extends EventListener.
700 * java/beans/VetoableChangeListener.java: Extends EventListener.
702 * java/util/zip/Deflater.java (update, init): Now private.
704 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
706 * java/util/BasicMapEntry.java: Re-added.
707 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
708 (putAll): Test for BasicMapEntry.
709 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
710 (putAll): Test for BasicMapEntry.
711 Change references from `HashMap.Entry' to `Entry' in various places.
712 * Makefile.am: Add BasicMapEntry.java.
713 * Makefile.in: Rebuilt.
715 2000-12-18 Warren Levy <warrenl@redhat.com>
717 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
718 need to set timezone to a valid non-null value. Partial fix for
721 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
723 * java/awt/Window.java (addNotify): Remove peer casting hack now that
725 * java/awt/Button.java (addNotify): Likewise.
726 * java/awt/Label.java (addNotify): Likewise.
727 * java/awt/Panel.java (addNotify): Likewise.
728 * java/awt/Scrollbar.java (addNotify): Likewise.
729 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
730 Remove redundant null checks.
732 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
734 * COPYING: Update to current
735 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
736 to 19yy as example year in copyright notice).
738 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
740 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
741 end-of-stream if avail_in is 0.
743 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
745 * java/util/ArrayList.java (data): Declare transient.
746 (serialPersistantFields): Removed.
747 (readObject): Use defaultReadObject(), not readFields().
748 (writeObject): Use defaultWriteObject(), not writeFields().
750 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
752 * java/util/Hashtable.java (put): Remove `last' variable.
753 Link new entry to head of list.
754 * java/util/HashMap.java (put): Ditto.
756 2000-12-15 Tom Tromey <tromey@redhat.com>
758 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
759 loader to Class.forName.
761 2000-12-14 Tom Tromey <tromey@redhat.com>
763 * java/util/ResourceBundle.java
764 (getBundle(String,Locale,ClassLoader)): New method.
765 (trySomeGetBundle): Added `loader' argument.
766 (partialGetBundle): Likewise.
768 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
769 maximumFractionDigits, maximumIntegerDigits,
770 minimumFractionDigits, minimumIntegerDigits): Now
773 * java/lang/Thread.java (checkAccess): Now final.
775 * java/lang/RuntimePermission.java: Class now final.
777 * java/io/StringWriter.java (StringWriter(int)): Now public.
779 * java/io/SerializablePermission.java (legal_names): Now private.
781 * java/lang/Character.java: Updated UnicodeBlock constants.
782 * scripts/blocks.pl: Special case private use and surrogate
785 2000-12-12 Tom Tromey <tromey@redhat.com>
787 * Makefile.in: Rebuilt.
788 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
790 (GCJCOMPILE): Use it.
793 2000-12-11 Tom Tromey <tromey@redhat.com>
795 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
796 New static final fields.
798 * scripts/classes.pl (scan): Skip lines with leading `*'.
799 Fix for PR libgcj/378.
801 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
803 * configure.in: Remove check for -fuse-divide-subroutine.
804 * configure: Rebuilt.
806 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
808 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
810 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
812 * Makefile.am: Add HashSet.java and java/lang/ref classes.
813 Remove BasicMapEntry.java and Bucket.java.
814 * Makefile.in: Rebuilt.
815 * java/util/HashMap.java: Rewritten.
816 * java/util/HashSet.java: Imported from classpath.
817 * java/util/WeakHashMap.java: Imported from classpath.
818 * java/util/Hashtable.java: Rewritten based on new HashMap code.
819 * java/util/Bucket.java: Deleted.
820 * java/util/BasicMapEntry.java: Deleted.
821 * java/util/Collections.java (search): Use a for-loop, not iterator
823 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
824 of elements in source.
825 (max): Use a for-loop.
827 (reverse): Keep track of positions instead of using Iterator's
828 nextIndex() and previousIndex().
829 (shuffle(List)): Initialize defaultRandom if required using
830 double-check thread safety idiom. Call two-argument shuffle method
832 (defaultRandom): New field.
833 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
834 using previousIndex() and nextIndex().
835 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
836 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
837 * java/util/AbstractMap.java (toString): Use StringBuffer.
838 * java/lang/ref/PhantomReference.java: Imported from classpath.
839 * java/lang/ref/SoftReference.java: Ditto.
840 * java/lang/ref/Reference.java: Ditto.
841 * java/lang/ref/WeakReference.java: Ditto.
842 * java/lang/ref/ReferenceQueue.java: Ditto.
844 2000-12-10 Richard Henderson <rth@redhat.com>
846 * configure.host: Recognize alpha*-*, not alphaev6-*.
848 2000-12-09 Anthony Green <green@redhat.com>
850 * configure.host: Enable interpreter for Alpha.
852 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
854 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
855 (ZIP): Points at fastjar instead of zip.
856 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
857 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
858 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
859 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
860 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
861 ($(x_java_source_files:.java=.class):): Likewise.
862 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
864 (CLEANFILES): libgcj.jar replaces libgcj.zip.
865 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
866 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
867 java/lang/String.h:, java/lang/reflect/Constructor.h:,
868 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
869 gnu/gcj/runtime/VMClassLoader.h:,
870 java/io/ObjectInputStream$$GetField.h:,
871 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
872 (Makefile.in): Rebuilt.
874 2000-12-08 Tom Tromey <tromey@redhat.com>
877 * configure: Rebuilt.
878 * configure.in: Use echo, not `:', to create .d files.
880 2000-12-08 Warren Levy <warrenl@redhat.com>
882 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
883 NullPointerException so proper check of offset can be done.
885 2000-12-08 Warren Levy <warrenl@redhat.com>
887 * java/io/FileInputStream.java (close): Check if the fd is valid.
888 * java/io/RandomAccessFile.java (close): Ditto.
889 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
890 * java/net/PlainSocketImpl.java (close): Ditto.
892 2000-12-06 Tom Tromey <tromey@redhat.com>
894 * java/awt/GridBagConstraints.java: Filled in values for static
897 * java/util/BitSet.java: Updated copyright notice.
899 * Makefile.in: Rebuilt.
900 * Makefile.am (awt_java_source_files): Added new file.
901 * java/awt/GridBagConstraints.java: New file.
903 2000-12-05 Tom Tromey <tromey@redhat.com>
905 * java/text/Collator.java (decomposeCharacter, decmp, strength):
906 Now package-private, not protected.
907 * java/text/DateFormatSymbols.java (equals): Now private.
908 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
909 * java/util/BitSet.java: Class no longer final.
911 2000-12-04 Warren Levy <warrenl@redhat.com>
913 * java/util/TimeZone.java (getAvailableIDs): Activated commented
914 out code dependent on compiler and library changes.
916 2000-12-04 Warren Levy <warrenl@redhat.com>
918 * java/io/FilePermission.java: Made class final per spec.
919 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
920 method name to match spec (fixed typo).
921 * java/util/LinkedList.java: Implements List.
923 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
925 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
926 Edgar Villanueva <edgarvil@home.com>.
928 2000-12-03 Tom Tromey <tromey@redhat.com>
930 * java/awt/geom/Point2D.java: Added protected constructor.
931 (equals): New method.
932 (Float.setLocation(float,float)): New method.
933 * java/awt/geom/Dimension2D.java: Added protected constructor.
934 * java/awt/geom/AffineTransform.java: Made all constants public.
935 (concatenate): Fixed typo in name.
936 * java/awt/event/WindowAdapter.java: Class now abstract.
937 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
938 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
941 * java/awt/AWTError.java: Extend Error, not
942 IllegalStateException.
944 * Makefile.in: Rebuilt.
945 * Makefile.am (awt_java_source_files): Added new file.
946 * java/awt/geom/RoundRectangle2D.java: New file.
948 * Makefile.in: Rebuilt.
949 * Makefile.am (awt_java_source_files): Added new file.
950 * java/awt/FlowLayout.java: New file.
952 * Makefile.in: Rebuilt.
953 * Makefile.am (awt_java_source_files): Added new file.
954 * java/awt/GridLayout.java: New file.
956 2000-12-02 Tom Tromey <tromey@redhat.com>
958 * Makefile.in: Rebuilt.
959 * Makefile.am (awt_java_source_files): Added new files.
960 * java/awt/CardLayout.java: New file.
961 * java/awt/AWTPermission.java: New file.
963 2000-12-01 Tom Tromey <tromey@redhat.com>
965 * java/util/Vector.java (insertElementAt): Unconditionally
966 increment elementCount.
967 (removeRange): Clear unused slots in vector.
969 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
971 * java/lang/natMath.cc: Declare fabsf() function.
972 * java/lang/mprec.h: Don't include math.h.
973 * java/lang/dtoa.c: Include string.h.
974 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
977 From Adam Welc <welc@cs.purdue.edu>:
978 * java/util/LinkedList.java (removeFirst): Update `first' field.
979 Handle the last == first case.
980 (removeLast): Update `last' field. Handle the last == first case.
982 2000-12-01 Warren Levy <warrenl@cygnus.com>
984 * Makefile.am: Added entries for new java.sql modules.
985 * Makefile.in: Rebuilt.
987 2000-12-01 Warren Levy <warrenl@cygnus.com>
989 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
990 that aren't quite 1.2 compatible yet.
992 2000-11-30 Warren Levy <warrenl@cygnus.com>
994 * java/sql/Array.java: New file from classpath.
995 * java/sql/BatchUpdateException.java: Ditto.
996 * java/sql/Blob.java: Ditto.
997 * java/sql/Clob.java: Ditto.
998 * java/sql/Ref.java: Ditto.
999 * java/sql/SQLData.java: Ditto.
1000 * java/sql/SQLInput.java: Ditto.
1001 * java/sql/SQLOutput.java: Ditto.
1002 * java/sql/Struct.java: Ditto.
1003 * java/sql/CallableStatement.java: Merged file from claspath.
1004 * java/sql/Connection.java: Ditto.
1005 * java/sql/DataTruncation.java: Ditto.
1006 * java/sql/DatabaseMetaData.java: Ditto.
1007 * java/sql/DriverManager.java: Ditto.
1008 * java/sql/PreparedStatement.java: Ditto.
1009 * java/sql/ResultSet.java: Ditto.
1010 * java/sql/ResultSetMetaData.java: Ditto.
1011 * java/sql/SQLException.java: Ditto.
1012 * java/sql/SQLWarning.java: Ditto.
1013 * java/sql/Statement.java: Ditto.
1014 * java/sql/Types.java: Ditto.
1016 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
1018 * java/lang/natSystem.cc (init_properties): Set user.language and
1020 * configure.in: Check for setlocale.
1021 * configure: Rebuilt.
1022 * include/config.h.in: Rebuilt.
1024 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1025 the infate() call didn't deliver any output. Throw a ZipException if
1026 the needsDictionary() call returns true.
1027 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1028 * java/io/InputStreamReader: Use the default buffer size for the
1029 contained BufferedInputStream.
1031 2000-11-28 Warren Levy <warrenl@cygnus.com>
1033 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1034 more time zone entries.
1035 * java/text/SimpleDateFormat.java (format): Added case for
1038 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
1040 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1041 directly rather than read() in all cases. Make primitive read
1042 implementations more efficient, as defined in JDK online docs.
1043 (skipBytes): Behave like the JDK's implementation.
1044 * java/io/BufferedReader.java: Merge classpath docs. Check for a
1045 closed stream with checkStatus() whenever an IOException can be
1047 (checkStatus): New private method.
1049 2000-11-27 Warren Levy <warrenl@cygnus.com>
1051 * Makefile.am: Added natTimeZone.cc.
1052 * Makefile.in: Rebuilt.
1053 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1054 * java/text/DateFormatSymbols.java (ampms): Made package private.
1055 (eras): Made package private.
1056 (months): Made package private.
1057 (shortMonths): Made package private.
1058 (shortWeekdays): Made package private.
1059 (weekdays): Made package private.
1060 (formatPrefixes): New private field.
1061 (localPatternCharsDefault): Made private.
1062 (dateFormats): New package private field.
1063 (timeFormats): New package private field.
1064 (formatsForKey): New private method.
1065 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1066 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1067 * java/text/SimpleDateFormat.java: Merged with Classpath.
1068 * java/util/TimeZone.java: Merged with Classpath.
1069 * java/util/natTimeZone.cc: New file.
1071 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1073 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1074 (addElement): Don't increment elementCount twice. Doh.
1075 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1076 array needs to be expanded.
1078 * java/util/Collections.java (UnmodifiableCollection): Implement
1080 (UnmodifiableList): Throw UnsupportedOperationException from
1081 modification methods. Set `l' from the one-parameter constructor.
1082 (UnmodifiableMap): Implement toString().
1083 (SynchronizedCollection): Ditto.
1084 (SynchronizedList): Set `l' from the one-parameter constructor.
1085 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1086 (SynchronizedMap): Implement toString().
1088 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1090 * javax/naming/NameParser.java,
1091 javax/naming/directory/AttributeInUseException.java,
1092 javax/naming/directory/AttributeModificationException.java,
1093 javax/naming/directory/InvalidAttributeIdentifierException.java,
1094 javax/naming/directory/InvalidAttributesException.java,
1095 javax/naming/directory/InvalidAttributeValueException.java,
1096 javax/naming/directory/InvalidSearchControlsException.java,
1097 javax/naming/directory/InvalidSearchFilterException.java,
1098 javax/naming/directory/NoSuchAttributeException.java,
1099 javax/naming/directory/SchemaViolationException.java: New files.
1101 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1103 * javax/naming/InitialContext.java (rebind): Implement.
1104 (unbind): Implement.
1105 (rename): Implement.
1107 (listBindings): Implement.
1108 (destroySubcontext): Implement.
1109 (createSubcontext): Implement.
1110 (lookupLink): Implement.
1111 (getNameParser): Implement.
1112 (composeName): Implement.
1113 (addToEnvironment): Implement.
1115 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1117 * javax/naming/AuthenticationException.java,
1118 javax/naming/AuthenticationNotSupportedException.java,
1119 javax/naming/CannotProceedException.java,
1120 javax/naming/CommunicationException.java,
1121 javax/naming/ConfigurationException.java,
1122 javax/naming/ContextNotEmptyException.java,
1123 javax/naming/InsufficientResourcesException.java,
1124 javax/naming/InterruptedNamingException.java,
1125 javax/naming/InvalidNameException.java,
1126 javax/naming/LimitExceededException.java,
1127 javax/naming/LinkException.java,
1128 javax/naming/LinkLoopException.java,
1129 javax/naming/MalformedLinkException.java,
1130 javax/naming/NameAlreadyBoundException.java,
1131 javax/naming/NameNotFoundException.java,
1132 javax/naming/NamingSecurityException.java,
1133 javax/naming/NoPermissionException.java,
1134 javax/naming/NotContextException.java,
1135 javax/naming/PartialResultException.java,
1136 javax/naming/ReferralException.java,
1137 javax/naming/ServiceUnavailableException.java,
1138 javax/naming/SizeLimitExceededException.java,
1139 javax/naming/TimeLimitExceededException.java: New files.
1141 * javax/naming/Name.java (clone): New method.
1142 (compareTo): New method.
1143 (isEmpty): New method.
1144 (getAll): New method.
1145 (getPrefix): New method.
1146 (getSuffix): New method.
1147 (startsWith): New method.
1148 (endsWith): New method.
1149 (addAll): New method.
1150 (addAll): New method.
1153 (remove): New method.
1155 * javax/naming/Context.java (lookup): New method.
1156 (rebind): New method.
1157 (unbind): New method.
1158 (rename): New method.
1160 (listBindings): New method.
1161 (destroySubcontext): New method.
1162 (createSubcontext): New method.
1163 (lookupLink): New method.
1164 (getNameParser): New method.
1165 (composeName): New method.
1166 (addToEnvironment): New method.
1167 (removeFromEnvironment): New method.
1168 (getEnvironment): New method.
1169 (close): New method.
1170 (getNameInNamespace): New method.
1172 * javax/naming/InitialContext.java (lookup): New method.
1173 (rebind): New method.
1174 (unbind): New method.
1175 (rename): New method.
1177 (listBindings): New method.
1178 (destroySubcontext): New method.
1179 (createSubcontext): New method.
1180 (lookupLink): New method.
1181 (getNameParser): New method.
1182 (composeName): New method.
1183 (addToEnvironment): New method.
1184 (removeFromEnvironment): New method.
1185 (getEnvironment): New method.
1186 (close): New method.
1187 (getNameInNamespace): New method.
1189 2000-11-26 Tom Tromey <tromey@cygnus.com>
1191 * Makefile.in: Rebuilt.
1192 * Makefile.am (core_java_source_files): Added
1193 RuntimePermission.java.
1194 * java/lang/RuntimePermission.java: Imported from Classpath.
1195 * java/lang/Thread.java (getContextClassLoader): Now
1196 synchronized. Added security code.
1197 (setContextClassLoader): Likewise.
1199 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1200 length field of array.
1201 (_Jv_NewPrimArray): Likewise.
1202 * gcj/array.h (__JArray): `length' field now const. Added
1205 2000-11-26 Anthony Green <green@redhat.com>
1207 * javax/naming/spi/NamingManager.java,
1208 javax/naming/spi/ObjectFactory.java,
1209 javax/naming/spi/InitialContextFactory.java,
1210 javax/naming/spi/InitialContextFactoryBuilder.java,
1211 javax/naming/RefAddr.java, javax/naming/Reference.java,
1212 javax/naming/NamingException.java, javax/naming/Context.java,
1213 javax/naming/Referenceable.java,
1214 javax/naming/directory/InitialDirContext.java,
1215 javax/naming/directory/DirContext.java,
1216 javax/naming/directory/Attributes.java,
1217 javax/naming/directory/Attribute.java,
1218 javax/naming/StringRefAddr.java,
1219 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1220 javax/naming/InitialContext.java,
1221 javax/naming/NoInitialContextException.java: New files.
1223 2000-11-25 Anthony Green <green@redhat.com>
1225 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1226 (_Jv_NewPrimArray): Likewise.
1227 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1228 (class JArray): Removed constructor.
1230 * java/lang/Thread.java (context_class_loader): New private data.
1231 (getContextClassLoader): New method.
1232 (setContextClassLoader): New method.
1233 (Thread): Initialize context_class_loader.
1235 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1236 (getResource): Rename to findResource.
1237 (findResource): New method. Used to be getResource.
1238 (getResourceAsStream): Deleted.
1239 (jarFileize): Extracted logic from URLClassLoader constructor into
1240 this new private method.
1241 (addURL): New protected method.
1242 (URLClassLoader): Call jarFileize. Use addElement instead of
1244 (findResources): New method.
1246 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1247 (getResource): Implement correct logic.
1248 (findResource): New method.
1249 (getResources): New method.
1250 (findClass): Create a ClassNotFoundException with the name of the
1251 class rather than nothing at all.
1252 (defineClass) Only throw ClassFormatError.
1254 * java/lang/Class.java (forName): New method.
1255 * java/lang/Class.h (forName): New method.
1256 * java/lang/natClass.cc (forName): New method.
1258 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1260 * java/lang/System.java (setProperties): Only call init_properties()
1261 if properties is null.
1262 (getProperties): Ditto.
1263 (getProperty): Ditto.
1264 (setProperty): Call init_properties if properties are null.
1265 (prop_init): Remove field.
1266 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1267 method. Check for null properties after synchronizing instead of
1268 prop_init flag. Set the properties field last for thread safety.
1270 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1271 test for gcj.dumpobjects property and enable object stream dumping
1273 (dumpElement): No longer native.
1274 (dumpElementln): Ditto.
1275 (setDump): Do not define.
1276 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1277 (dumpElementln): Removed.
1280 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1282 * configure: Rebuilt.
1283 * Makefile.in: Rebuilt.
1284 * Makefile.am (built_java_source_files): Add Configuration.java.
1285 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1286 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1287 Create `gnu' directory in the build tree.
1288 * gnu/classpath/Configuration.java.in: New file.
1290 2000-11-24 Tom Tromey <tromey@cygnus.com>
1292 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1294 (_Jv_NewPrimArray): Likewise.
1296 * gcj/array.h (__JArray): `length' field now const. Added
1298 (class JArray): Added constructor.
1300 2000-11-23 Mark Wielaard <mark@klomp.org>
1302 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1305 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1307 * java/util/Vector.java: Improve exception messages.
1308 (Vector): Check initialCapacity for IllegalArgumentException.
1309 (tromToSize): Don't check for elementCount == elementData.length
1311 (toArray): Don't try to set null marker if target array is the same
1312 length as the vector.
1314 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1316 * Makefile.in: Rebuilt.
1317 * Makefile.am (core_java_source_files): Added Collections.java.
1318 * java/util/List.java: Merged from classpath.
1319 * java/util/Vector.java: Ditto.
1320 * java/util/Collections.java: From classpath.
1321 * java/util/ArrayList.java (addAll(Collection)): Call
1322 addAll(int,Collection) instead of duplicating code.
1323 (indexOf): Clean up int initialization.
1324 (clear): Set cleared array entries to null, to allow garbage
1326 * java/util/List.java: Minor formatting fixes.
1327 * java/util/SimpleTimeZone.java: ditto.
1329 2000-11-18 Tom Tromey <tromey@cygnus.com>
1331 * Makefile.in: Rebuilt.
1332 * Makefile.am (core_java_source_files): Added new files.
1333 * java/lang/reflect/ReflectPermission.java: New class.
1334 * java/io/FileFilter.java: From Classpath
1335 * java/io/FilePermission.java: From Classpath.
1337 2000-11-17 Tom Tromey <tromey@cygnus.com>
1339 * java/lang/reflect/AccessibleObject.java (isAccessible,
1340 setAccessible): Now public.
1342 * java/lang/natString.cc: Include Locale.h.
1343 (toUpperCase): Added `locale' argument. Handle locale
1345 (toLowerCase): Added `locale' argument. Handle locale
1347 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1348 CAPITAL_I): New defines.
1349 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1352 (toUpperCase, toLowerCase): New methods. Variants which accept
1355 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1358 * java/util/PropertyPermission.java: Re-merged from Classpath.
1360 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1362 * java/text/StringCharacterIterator.java: Reindented.
1363 (setText): New method.
1365 2000-11-17 Mark Wielaard <mark@klomp.org>
1367 Merge with Classpath (changes by Bryce McKinlay)
1368 * java/util/jar/*.java: Reformat all to unofficial standard coding
1369 style. No changes of substance.
1371 2000-11-17 Mark Wielaard <mark@klomp.org>
1373 * java/util/zip/*.java: Javadoc updates.
1375 2000-11-17 Tom Tromey <tromey@cygnus.com>
1377 * java/text/CollationKey.java: Implement Comparable.
1378 (compareTo(Object)): New method.
1379 * java/text/Collator.java (compare(Object,Object)): New method.
1380 Implement Comparator.
1382 * java/util/zip/InflaterInputStream.java (available): New method.
1383 (close): New method.
1384 (read, available, skip, fill): Throw exception if stream closed.
1385 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1386 getNextEntry): Throw exception if closed.
1388 2000-11-16 Tom Tromey <tromey@cygnus.com>
1390 * java/io/PushbackReader.java: Merged with Classpath.
1391 * java/util/Arrays.java: Updated from Classpath.
1393 * scripts/blocks.pl: New file.
1394 * java/lang/Character.java (Subset): New class.
1395 (UnicodeBlock): New class.
1397 * java/lang/Math.java (toDegrees, toRadians): New methods.
1399 * java/lang/Float.java: Implement Comparable.
1400 (compareTo): New methods.
1401 * java/lang/Double.java: Implement Comparable.
1402 (compareTo): New methods.
1404 2000-11-16 Warren Levy <warrenl@cygnus.com>
1406 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1408 (listeners): Made transient.
1409 (source): Renamed from 'bean'.
1410 (children): New field for serialization.
1411 (propertyChangeSupportSerializedDataVersion): Ditto.
1412 (serialVersionUID): Ditto.
1413 (writeObject): New serialization method.
1414 (readObject): New serialization method.
1415 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1417 (listeners): Made transient.
1418 (source): Renamed from 'bean'.
1419 (children): New field for serialization.
1420 (vetoableChangeSupportSerializedDataVersion): Ditto.
1421 (serialVersionUID): Ditto.
1422 (writeObject): New serialization method.
1423 (readObject): New serialization method.
1424 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1425 to allow constructor to have a return type (i.e. the class that the
1426 constructor constructs).
1428 2000-11-14 Tom Tromey <tromey@cygnus.com>
1430 * Makefile.in: Rebuilt.
1431 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1434 2000-11-02 Warren Levy <warrenl@cygnus.com>
1436 * java/io/ObjectInputStream.java (readObject): Added code to
1437 conditionally dump out the serialized data.
1438 Handle ENDBLOCKDATA case a bit more gracefully since the current
1439 behavior doesn't seem to work as expected.
1440 (readStreamHeader): Added code for serialized data dumper.
1441 (readNextBlock): Ditto.
1442 (readFields): Ditto.
1443 (dump): New private static field for turning on/off dumper.
1444 (setDump): New native method.
1445 (dumpElement): New native method.
1446 (dumpElementln): New native method.
1447 * java/io/natObjectInputStream.cc (setDump): New method.
1448 (dumpElement): New method.
1449 (dumpElementln): New method.
1451 2000-11-02 Warren Levy <warrenl@cygnus.com>
1453 * java/net/InetAddress.java (addr): Renamed from 'address'.
1454 (address): New field to match Serialized Form doc.
1455 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1456 (family): New serialization field.
1457 (serialVersionUID): New field.
1458 (readObject): New method.
1459 (writeObject): New method.
1460 (getFamily): New native method.
1461 (InetAddress): Set family.
1462 * java/net/natInetAddress.cc (getFamily): New method.
1463 (addr): Renamed from 'address'.
1464 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1465 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1466 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1468 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1470 * java/util/AbstractList.java (SubList): Make it a top-level private
1472 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1474 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1475 * Makefile.in: Rebuilt.
1477 2000-11-02 Tom Tromey <tromey@cygnus.com>
1479 * Makefile.in: Rebuilt.
1480 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1483 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1485 * java/util/AbstractList.java (remove): Comment out modCount increment
1486 to work around compiler bug.
1489 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1491 * java/util/AbstractList.java: Throw messages with
1492 IndexOutOfBoundsExceptions.
1493 (listIterator()): Call listIterator(0).
1494 (size): New field. Initialize to size().
1495 (hasNext): Test position against size, not size().
1496 (remove): Increment knownMod by one instead of resetting it from
1499 (SubList.upMod): Removed.
1500 (SubList.set): Don't call upMod() or update knownMod.
1501 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1502 (SubList.remove): Ditto.
1503 (SubList.addAll): Don't call backingList.size(). Increment size from
1505 (SubList.iterator): New method. Call listIterator(0).
1506 (SubList.listIterator): New method. Restore code to return an anonymous
1507 listIterator implementation (with some changes).
1508 * java/util/AbstractSequentialList.java: Throw messages with
1509 IndexOutOfBoundsExceptions.
1510 (addAll): Add a specnote.
1511 * java/util/ArrayList.java (removeRange): Get the math right.
1512 (addAll): Increment modCount _before_ creating iterator.
1513 * java/util/LinkedList.java: Rewritten, mostly.
1515 2000-11-01 Tom Tromey <tromey@cygnus.com>
1517 * scripts/encodings.pl: Added `ASCII' alias.
1518 * Makefile.in: Rebuilt.
1519 * Makefile.am (convert_source_files): Added new files.
1520 * gnu/gcj/convert/Input_ASCII.java: New file.
1521 * gnu/gcj/convert/Output_ASCII.java: New file.
1522 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1523 out-of-range characters.
1524 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1525 (read): Swap bytes if required. Treat `count' as character count,
1527 (write): Likewise. Also, handle case where iconv fails on a given
1529 (init): Put encoding into exception.
1530 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1531 (static): Call iconv_init. Rebuilt alias list.
1532 (iconv_init): New private method.
1534 2000-11-01 Tom Tromey <tromey@cygnus.com>
1536 * Makefile.in: Rebuilt.
1537 * Makefile.am (install-exec-hook): Only make a single symlink, and
1538 remove the destination before making the link.
1539 * configure: Rebuilt.
1540 * configure.in: Call AC_PROG_LN_S.
1542 2000-10-31 Warren Levy <warrenl@cygnus.com>
1544 * jni.cc: Added include of java/lang/ThreadGroup.h.
1545 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1546 per change of 2000-10-05.
1548 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1550 * java/util/BitSet.java: Updated @specnote.
1552 * java/io/Reader.java: Merge docs from classpath.
1553 (skip): Synchronize on `lock'.
1554 * java/io/FileReader.java: Import correct implementation from
1556 * java/io/StringReader.java: Merge docs from classpath.
1557 (ready): Throw IOException if stream is closed.
1559 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1561 * java/util/AbstractCollection.java (addAll): Use size() instead of
1562 hasNext() in iterator loop.
1564 (contains): Ditto. Simplify loop.
1565 (containsAll): Ditto.
1570 (toString): Ditto. Use string concatenation operators, not
1572 * java/util/AbstractList.java (addAll): Use size() instead of
1573 hasNext() in iterator loop.
1576 (indexOf): Ditto. Don't take null check outside of the loop.
1577 (iterator): Return an AbstractListItr instead of anonymous class.
1578 (lastIndexOf): Use a for loop bounded by size() instead of
1579 hasPrevious() in iterator loop.
1580 (listIterator): Return an AbstractListItr.
1581 (removeRange): Remove bounds checking code and docs.
1582 (AbstractListItr): New inner class. Code moved here from
1584 (SubList.iterator): Removed. Use default implementation from
1585 AbstractList instead.
1586 (SubList.listIterator): As above.
1587 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1588 instead of hasNext() in iterator loop.
1589 (containsValue): Ditto.
1595 (toString): Ditto. Use string concatenation operators, not
1597 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1598 bounded by size() instead of hasNext() in iterator loop.
1599 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1600 part of normal execution flow. Do an explicit null check instead.
1601 * java/util/ArrayList.java (_iSize): Rename to `size'.
1602 (_arData): Rename to `data'.
1603 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1606 (removeRange): Make protected. Don't check bounds.
1607 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1609 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1611 (addAll (int, Collection)): Check lower bounds. Simplify exception
1613 (clone): Clone the data array too.
1614 (indexOf): Inline doesEqual().
1615 (lastIndexOf): Ditto.
1616 (clear): Don't set array data to null.
1617 (set): Check lower bounds. Simplify exception string.
1618 (toArray): Correct comment.
1619 (trimToSize): Don't update modCount, this is not a structural change.
1622 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1624 (toString): Declare `bit' as long, not int.
1625 (data): Made package-private, not private.
1627 2000-10-27 Warren Levy <warrenl@cygnus.com>
1629 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1630 array elements to true.
1632 2000-10-27 Warren Levy <warrenl@cygnus.com>
1634 * Makefile.am: Added locale files from Classpath.
1635 * Makefile.in: Rebuilt.
1636 * gnu/java/locale/Calendar.java: New file.
1637 * gnu/java/locale/Calendar_de.java: New file.
1638 * gnu/java/locale/Calendar_en.java: New file.
1639 * gnu/java/locale/Calendar_nl.java: New file.
1640 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1641 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1642 serialization compatibility.
1643 (scale): Made private.
1644 (serialVersionUID): New field.
1645 * java/math/BigInteger.java (ival): Made transient.
1646 (words): Made transient.
1647 (bitCount): New serialization field.
1649 (firstNonzeroByteNum): Ditto.
1650 (lowestSetBit): Ditto.
1653 (serialVersionUID): New field.
1654 (readObject): New method.
1655 (writeObject): New method.
1656 * java/util/BitSet.java (serialVersionUID): New field.
1657 * java/util/Calendar.java: Replaced with Classpath file.
1658 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1659 of getDefault() for TimeZone or Locale instead of passing nulls.
1660 * java/util/Locale.java (serialVersionUID): New field.
1661 (writeObject): New method.
1662 (readObject): New method.
1663 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1665 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1667 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1668 (core_java_source_files): Put java.lang, java.io, and java.util here.
1669 (ordinary_java_source_files): Order so that core_java_source_files are
1671 (java_source_files): Reorder so that special_java_source_files are
1673 * configure.in: Don't pass -I flag to gcj.
1674 * Makefile.in: Rebuilt.
1675 * configure: Rebuilt.
1677 2000-10-25 Tom Tromey <tromey@cygnus.com>
1679 * Makefile.in: Rebuilt.
1680 * Makefile.am (install-exec-hook): New target.
1682 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1684 * java/util/EventObject.java: Merged from classpath.
1686 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1689 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1691 * java/util/AbstractSet.java (equals): Re-installed original code.
1693 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1695 * Makefile.am: Added rules for libgcjx library.
1696 * Makefile.in: Rebuilt.
1697 * configure.in: Added check for X.
1698 * configure: Rebuilt.
1699 * gnu/awt/LightweightRedirector.java: New file.
1700 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1701 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1702 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1703 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1704 * gnu/awt/j2d/MappedRaster.java: New file.
1705 * gnu/awt/xlib/XCanvasPeer.java: New file.
1706 * gnu/awt/xlib/XEventLoop.java: New file.
1707 * gnu/awt/xlib/XEventQueue.java: New file.
1708 * gnu/awt/xlib/XFontMetrics.java: New file.
1709 * gnu/awt/xlib/XFramePeer.java: New file.
1710 * gnu/awt/xlib/XGraphics.java: New file.
1711 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1712 * gnu/awt/xlib/XPanelPeer.java: New file.
1713 * gnu/awt/xlib/XToolkit.java: New file.
1714 * gnu/gcj/xlib/Clip.java: New file.
1715 * gnu/gcj/xlib/Colormap.java: New file.
1716 * gnu/gcj/xlib/Display.java: New file.
1717 * gnu/gcj/xlib/Drawable.java: New file.
1718 * gnu/gcj/xlib/Font.java: New file.
1719 * gnu/gcj/xlib/GC.java: New file.
1720 * gnu/gcj/xlib/Pixmap.java: New file.
1721 * gnu/gcj/xlib/Screen.java: New file.
1722 * gnu/gcj/xlib/Visual.java: New file.
1723 * gnu/gcj/xlib/WMSizeHints.java: New file.
1724 * gnu/gcj/xlib/Window.java: New file.
1725 * gnu/gcj/xlib/WindowAttributes.java: New file.
1726 * gnu/gcj/xlib/XAnyEvent.java: New file.
1727 * gnu/gcj/xlib/XButtonEvent.java: New file.
1728 * gnu/gcj/xlib/XColor.java: New file.
1729 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1730 * gnu/gcj/xlib/XConnectException.java: New file.
1731 * gnu/gcj/xlib/XEvent.java: New file.
1732 * gnu/gcj/xlib/XException.java: New file.
1733 * gnu/gcj/xlib/XExposeEvent.java: New file.
1734 * gnu/gcj/xlib/XID.java: New file.
1735 * gnu/gcj/xlib/XImage.java: New file.
1736 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1737 * gnu/gcj/xlib/natClip.cc: New file.
1738 * gnu/gcj/xlib/natColormap.cc: New file.
1739 * gnu/gcj/xlib/natDisplay.cc: New file.
1740 * gnu/gcj/xlib/natDrawable.cc: New file.
1741 * gnu/gcj/xlib/natFont.cc: New file.
1742 * gnu/gcj/xlib/natGC.cc: New file.
1743 * gnu/gcj/xlib/natPixmap.cc: New file.
1744 * gnu/gcj/xlib/natScreen.cc: New file.
1745 * gnu/gcj/xlib/natVisual.cc: New file.
1746 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1747 * gnu/gcj/xlib/natWindow.cc: New file.
1748 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1749 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1750 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1751 * gnu/gcj/xlib/natXColor.cc: New file.
1752 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1753 * gnu/gcj/xlib/natXException.cc: New file.
1754 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1755 * gnu/gcj/xlib/natXImage.cc: New file.
1756 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1757 * java/awt/EventDispatchThread.java: Start thead on creation.
1759 2000-10-20 Tom Tromey <tromey@cygnus.com>
1761 From Arno J. Klaassen:
1762 * interpret.cc: Include <stdlib.h> for alloca.
1763 * defineclass.cc: Include <stdlib.h> for alloca.
1765 * Makefile.in: Rebuilt.
1766 * Makefile.am: Include deps.mk.
1767 (GCJCOMPILE): Added -MD, -MT, and -MF.
1768 ($(javao_files)): Don't depend on libgcj.zip.
1769 (all-recursive): New target.
1770 (%.lo:%.cc): Do dependency tracking.
1771 ($(nat_headers)): Don't depend on libgcj.zip.
1772 * configure: Rebuilt.
1773 * configure.in: Make .d files and deps.mk.
1775 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1777 * exception.cc: Don't #include "exception".
1778 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1780 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1781 * Makefile.in: Updated.
1783 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1785 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1786 * java/awt/peer/ComponentPeer.java (disable): Removed.
1789 (minimumSize): Removed.
1790 (preferredSize): Removed.
1793 * java/awt/peer/ListPeer.java (addItem): Removed.
1795 (minimumSize): Removed.
1796 (preferredSize): Removed.
1797 (setMultipleSelections): Removed.
1798 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1799 (remove): Renamed from removeMenu.
1800 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1802 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1803 (remove): Renamed from removeItem.
1804 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1805 (getMinimumSize): Removed.
1806 (getPreferredSize): Removed.
1807 (minimumSize): Removed.
1808 (preferredSize): Removed.
1809 (replaceText): Removed.
1810 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1811 (preferredSize): Removed.
1812 (getMinimumSize): Removed.
1813 (getPreferredSize): Removed.
1814 (setEchoCharacter): Removed.
1816 2000-10-10 Warren Levy <warrenl@cygnus.com>
1818 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1819 * java/sql/Date.java (serialVersionUID): New field.
1820 * java/sql/Time.java (serialVersionUID): New field.
1821 * java/sql/Timestamp.java (serialVersionUID): New field.
1822 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1823 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1824 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1825 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1826 (readObject): New serialization method.
1827 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1828 (serialVersionOnStream): New field.
1829 (readObject): New serialization method.
1830 (getMonetaryDecimalSeparator): New method.
1831 (setMonetaryDecimalSeparator): New method.
1832 * java/text/NumberFormat.java (maxFractionDigits): New field.
1833 (maxIntegerDigits): New field.
1834 (minFractionDigits): New field.
1835 (minIntegerDigits): New field.
1836 (serialVersionOnStream): New field.
1837 (serialVersionUID): New field.
1838 (readObject): New serialization method.
1839 (writeObject): New serialization method.
1840 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1841 (serialVersionOnStream): New field.
1842 (serialVersionUID): New field.
1843 (readObject): New serialization method.
1845 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1847 * configure.in (GCJ): Avoid bogus error message when looking for
1848 (and not finding) gcj in the build tree.
1849 * configure: Rebuilt.
1851 2000-10-09 Tom Tromey <tromey@cygnus.com>
1853 * configure: Rebuilt.
1854 * configure.in: Include sys/types.h when checking for socklen_t.
1855 From Arno J. Klaassen.
1857 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1859 * include/jvm.h: Enable __builtin_expect().
1861 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1862 the main program. Fix for PR libgcj/341.
1864 2000-10-07 Tom Tromey <tromey@cygnus.com>
1866 * java/util/Properties.java: Merged with Classpath version.
1868 2000-10-05 Tom Tromey <tromey@cygnus.com>
1870 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1871 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1872 * java/lang/Class.h (Object): Added `class$' field.
1873 * java/lang/Object.h (Object): Added `class$' field.
1874 * defineclass.cc (ClassClass): Use `class$' form.
1875 (ClassObject): Likewise.
1876 * resolve.cc (ClassObject): Use `class$' form.
1877 (ObjectClass): Likewise.
1878 * interpret.cc (ClassError): Removed.
1879 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1881 (IntegerClass): Likewise.
1882 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1884 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1885 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1886 SerializableClass): Likewise.
1887 Include Serializable.h, Cloneable.h.
1888 * java/lang/natSystem.cc (SystemClass): Removed.
1889 (init_properties): Use `class$' form.
1890 * java/lang/natObject.cc (CloneableClass): Removed.
1891 (clone): Use `class$' form.
1892 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1893 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1894 ConstructorClass): Likewise.
1895 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1896 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1897 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1898 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1900 (ClassClass): Likewise.
1901 * include/jvm.h (StringClass): Use `class$' form.
1902 * prims.cc (ObjectClass): Removed.
1903 (_Jv_RunMain): Use `class$' form.
1904 (_Jv_AllocObject): Likewise.
1905 * jni.cc (ClassClass): Use `class$' form.
1906 (ThrowableClass): Likewise.
1907 (ObjectClass): Likewise.
1908 (MethodClass): Likewise.
1909 (ThreadGroupClass): Likewise.
1910 (NativeThreadClass): Likewise.
1911 * boehm.cc (ObjectClass): Removed.
1912 (ClassClass): Removed.
1913 (_Jv_MarkObj): Use `class$' form.
1914 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1917 2000-10-05 Warren Levy <warrenl@cygnus.com>
1919 * Makefile.am: Removed java/io/Replaceable.java and
1920 java/io/Resolvable.java.
1921 * Makefile.in: Rebuilt.
1922 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1924 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1926 (processResolution): Handle readResolve method via reflection with
1927 removal of Resolvable interface.
1928 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1929 method via reflection with removal of Replaceable interface.
1930 * java/io/Replaceable.java: Removed.
1931 * java/io/Resolvable.java: Removed.
1932 * java/security/Key.java (serialVersionUID): New field.
1933 * java/security/Provider.java (serialVersionUID): New field.
1934 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1936 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1938 * java/sql/DataTruncation.java (serialVersionUID): New field.
1939 * java/sql/SQLException.java (serialVersionUID): New field.
1940 * java/sql/SQLWarning.java (serialVersionUID): New field.
1941 * java/util/Date.java (serialVersionUID): New field.
1942 (millis): Made transient.
1943 (readObject): New method.
1944 (writeObject): New method.
1946 2000-10-05 Tom Tromey <tromey@cygnus.com>
1948 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1950 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1952 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1953 (JvRunMain): Set _Jv_argv and _Jv_argc.
1954 * java/awt/Component.java: Minor fixes.
1955 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1956 * java/awt/Toolkit.java (systemEventQueue): Removed.
1957 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1958 * java/awt/Window.java (getToolkit): Don't call super.
1959 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1960 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1961 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1962 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1963 * gnu/awt/gtk/GtkFramePeer.java: New file.
1964 * gnu/awt/gtk/GtkMainThread.java: New file.
1965 * gnu/awt/gtk/GtkToolkit.java: New file.
1966 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1967 * gnu/awt/gtk/gtkcommon.cc: New file.
1968 * gnu/awt/gtk/gtkcommon.h: New file.
1969 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1970 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1971 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1972 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1973 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1974 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1976 2000-09-30 Tom Tromey <tromey@cygnus.com>
1978 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1979 interrupted before modifying the cv's wait set.
1982 2000-09-30 Hans Boehm <boehm@acm.org>
1983 Bryce McKinlay <bryce@albatross.co.nz>
1985 Implement bitmap descriptor based marking for Boehm GC.
1987 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1988 * configure: Rebuilt.
1989 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1990 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1991 method get_finalizer().
1992 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1993 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1994 (_Jv_AllocObj): Add new jclass parameter.
1995 (_Jv_AllocArray): Ditto.
1996 (_Jv_BuildGCDescr): New prototype.
1997 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1998 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1999 get_finalizer() instead of direct finalizer vtable offset.
2000 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2001 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2002 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2003 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2004 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2005 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2006 (_Jv_DetermineVTableIndex): Ditto.
2007 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2008 calculations to account for new gc_descr field.
2009 * boehm.cc: #include gc_gcj.h.
2010 (obj_kind_x, obj_free_list): `#if 0'-ed away.
2011 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2012 New commentary from HB. Mark the classes vtable.
2013 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2014 (GC_DEFAULT_DESCR): New #define.
2015 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2016 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2017 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2018 scan conservativly if size is less than min_heap_addr. Set vtable
2019 pointer of new object before returning.
2020 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2021 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2022 allocation for obj_kind_x.
2023 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2024 (_Jv_AllocObj): Set vtable on returned object.
2025 (_Jv_AllocArray): Ditto.
2026 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2027 (_Jv_NewPrimArray): Ditto.
2028 (_Jv_AllocObj): Declare as a friend.
2029 (_Jv_AllocArray): Ditto.
2030 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2031 from &ObjectClass into new array class. Remove offset-by-one
2032 adjustments from `method' size calculations to account for gc_descr
2035 2000-09-26 Tom Tromey <tromey@cygnus.com>
2037 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2038 `remove', not `add'.
2040 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2042 * java/lang/natSystem.cc (file_encoding): Added return statement.
2044 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2046 * Makefile.am: Re-work shell commands that exceeded command-line
2048 * Makefile.in: Rebuilt.
2050 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2052 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2053 * java/lang/natDouble.cc: Likewise.
2054 * java/lang/reflect/natMethod.cc: Likewise.
2055 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
2057 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2059 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2061 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2062 * acinclude.m4: Arrange for automake to not bring in a new
2063 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2064 * Makefile.am: Leave it up to automake to subst GCJ.
2065 * aclocal.m4, configure, Makefile.in: Rebuilt.
2067 2000-09-13 Tom Tromey <tromey@cygnus.com>
2069 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2070 (get): Ensure Boolean class is initialized.
2071 * java/lang/reflect/natField.cc (BooleanClass): New define.
2072 (get): Ensure Boolean class is initialized.
2074 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2076 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2077 Initialize with anonymous class.
2078 (compareToIgnoreCase): New method.
2080 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2081 (uncaughtException): Set had_uncaught_exception.
2082 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2083 exit with error status if set.
2084 (_Jv_RunMain): Ditto.
2086 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2088 * configure: Rebuilt with new ../libtool.m4.
2090 2000-09-11 Tom Tromey <tromey@cygnus.com>
2092 * java/lang/reflect/Field.java (toString): Don't rely on
2095 2000-09-08 Tom Tromey <tromey@cygnus.com>
2097 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2098 default decoder use iconv.
2099 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2100 Let default encoder use iconv.
2101 * configure: Rebuilt.
2102 * configure.in: Check for nl_langinfo and <langinfo.h>.
2103 * java/lang/natSystem.cc (file_encoding): New function.
2104 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2106 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2108 * acinclude.m4: Simplify the tests for CC and CXX.
2109 * aclocal.m4, configure: Rebuilt.
2111 * acinclude.m4: Include libtool macros from the source tree.
2112 * aclocal.m4, configure: Rebuilt.
2114 2000-09-08 Warren Levy <warrenl@cygnus.com>
2116 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2117 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2118 * java/io/File.java (writeObject): Added.
2119 (readObject): Added.
2120 (serialVersionUID): Added.
2121 * java/io/ObjectOutputStream.java (writeObject): Initialized
2122 fieldsAlreadyWritten before recursion rather than after.
2123 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2124 * java/io/OptionalDataException.java (serialVersionUID): Added.
2125 (OptionalDataException): Made package private.
2126 * java/io/SyncFailedException.java (SyncFailedException): Removed
2127 default constructor to match spec.
2128 * java/lang/Boolean.java (serialVersionUID): Added.
2129 * java/lang/Byte.java (serialVersionUID): Added.
2130 * java/lang/Character.java (serialVersionUID): Added.
2131 * java/lang/Double.java (serialVersionUID): Added.
2132 * java/lang/Float.java (serialVersionUID): Added.
2133 * java/lang/Integer.java (serialVersionUID): Added.
2134 * java/lang/Long.java (serialVersionUID): Added.
2135 * java/lang/Number.java (serialVersionUID): Added.
2136 * java/lang/Short.java (serialVersionUID): Added.
2137 * java/lang/String.java (serialVersionUID): Added.
2138 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2140 * java/lang/reflect/InvocationTargetException.java
2141 (serialVersionUID): Added.
2142 * java/net/URL.java (handler): Made transient.
2143 (hashCode): Added field for serialization, per spec. and use
2144 cached value if available.
2145 (serialVersionUID): Added.
2146 (URL): Initialize hashCode.
2147 (set): Adjust hashCode.
2148 (readObject): New Method to initialize the protocol handler when
2150 (writeObject): New method.
2151 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2152 * java/text/Collator.java: Removed 'implements Serializable'.
2153 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2154 * java/util/Properties.java (serialVersionUID): Added.
2155 * java/util/Random.java (serialVersionUID): Added.
2156 (seed): Made private.
2157 (nextNextGaussian): Made private.
2158 (haveNextNextGaussian): Made private.
2159 * java/util/Stack.java (serialVersionUID): Added.
2160 * java/util/TimeZone.java (serialVersionUID): Added.
2161 * java/util/Vector.java (serialVersionUID): Added.
2163 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2165 * Makefile.am (Thread.h): Don't be friends with native threads
2167 * Makefile.in: Rebuilt.
2168 * java/lang/Thread.java (interrupt_flag): Make package-private.
2170 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2172 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2173 to avoid long long division.
2175 2000-09-06 Tom Tromey <tromey@cygnus.com>
2177 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2179 * java/lang/reflect/Method.java (toString): Use `getName' for
2182 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2183 `args' if method takes no parameters.
2185 Fix for PR java.lang/339:
2186 * java/lang/natPosixProcess.cc (fail): New function.
2187 (cleanup): New function.
2188 (startProcess): Use them. Create pipe so child can communicate
2189 exec failure back to parent.
2191 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2193 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2195 (send): Undo last patch. Remove the label only.
2197 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2199 * java/net/natInetAdress.cc: Ditto.
2201 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2203 2000-09-05 Tom Tromey <tromey@cygnus.com>
2205 * doc/cni.sgml: Updated from master copy.
2207 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2209 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2211 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2213 * java/lang/fdlibm.h: #undef __P if previously defined.
2214 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2215 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2219 2000-09-04 Tom Tromey <tromey@cygnus.com>
2221 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2224 2000-09-04 Anthony Green <green@redhat.com>
2226 Fix for PR java.io/203:
2227 * java/io/File.java (createTempFile): Obey directory argument.
2228 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2229 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2230 variable to set java.io.tmpdir on non-WIN32 systems.
2232 2000-09-04 Anthony Green <green@redhat.com>
2234 * java/io/File.java (deleteOnExit): New method.
2235 * gnu/gcj/runtime/FileDeleter.java: New class.
2236 * java/lang/natRuntime.cc (exit): Call
2237 FileDeleter.deleteOnExitNow()
2238 * Makefile.am: Add FileDeleter.java.
2239 * Makefile.in: Rebuilt.
2241 2000-09-02 Tom Tromey <tromey@cygnus.com>
2243 * Makefile.in: Rebuilt.
2244 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2245 environment variable.
2247 2000-09-01 Andrew Haley <aph@redhat.com>
2249 * java/io/StreamTokenizer.java: Don't throw a
2250 NumberFormatException if a field is numeric as far as the
2251 StreamTokenizer is concerned but not as far as Double.valueOf() is
2252 concerned: return a zero instead.
2254 2000-08-30 Tom Tromey <tromey@cygnus.com>
2256 * Makefile.in: Rebuilt.
2257 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2259 2000-08-28 Tom Tromey <tromey@cygnus.com>
2261 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2262 gnu/gcj/awt/ComponentDataBlitOp.java,
2263 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2264 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2265 java/awt/color/ICC_ColorSpace.java,
2266 java/awt/color/ICC_Profile.java,
2267 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2268 java/awt/image/ComponentColorModel.java,
2269 java/awt/image/ComponentSampleModel.java,
2270 java/awt/image/DataBuffer.java,
2271 java/awt/image/DataBufferByte.java,
2272 java/awt/image/DataBufferInt.java,
2273 java/awt/image/DataBufferUShort.java,
2274 java/awt/image/DirectColorModel.java,
2275 java/awt/image/IndexColorModel.java,
2276 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2277 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2278 java/awt/image/SinglePixelPackedSampleModel.java,
2279 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2280 Removed Latin-1 copyright symbols.
2281 * java/util/zip/ZipFile.java: Indentation fixes.
2283 2000-08-27 Mark Wielaard <mark@klomp.org>
2285 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2286 constructor, close can delete the file, finalize calls close.
2287 * java/util/jar/JarFile.java: Constructor that takes mode now
2290 2000-08-27 Anthony Green <green@redhat.com>
2292 * java/util/ArrayList.java, java/util/Timer.java,
2293 java/util/LinkedList.java, java/util/TimerTask.java,
2294 java/util/HashMap.java, java/util/AbstractMap.java,
2295 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2296 java/util/SortedSet.java: Imported from GNU Classpath.
2297 * Makefile.in: Rebuilt.
2298 * Makefile.am: Added new files.
2300 2000-08-26 Anthony Green <green@redhat.com>
2302 * Makefile.in: Rebuilt.
2303 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2306 * prims.cc: Include ClassLoader.h.
2307 (_Jv_RunMain): When executing jar files, classpath must be the jar
2308 file only. Lose our reference to the system ClassLoader in order
2309 to get a new one with the correct classpath.
2310 * java/lang/natSystem.cc (init_properties): When executing a jar
2311 file, only use the jar file for java.class.path.
2313 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2314 for bytecode archives.
2316 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2317 exists, but not Main-Class.
2319 2000-08-23 Mark Wielaard <mark@klomp.org>
2321 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2322 return -1 when fill() has no more data for the Inflater.
2324 2000-08-23 Mark Wielaard <mark@klomp.org>
2326 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2327 write(String) already does.
2329 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2331 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2332 to `alive_flag', call `init'.
2333 (init): New native method.
2334 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2337 2000-08-21 Mark Wielaard <mark@klomp.org>
2339 * Makefile.in: Rebuilt.
2340 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2342 (java/lang/reflect/Field.h): Likewise.
2343 (java/lang/reflect/Method.h): Likewise.
2344 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2347 2000-08-21 Tom Tromey <tromey@cygnus.com>
2349 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2352 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2354 * java/lang/natSystem.cc (init_properties): Change sourceware
2355 reference to sources.redhat.com.
2357 * include/java-props.h: Add _Jv_Jar_Class_Path.
2358 * prims.cc: Ditto. Set it from `gij -jar file' option.
2360 * java/lang/natSystem.cc (init_properties): Set java.class.path
2362 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2364 * java/util/PropertyPermission.java: Import from GNU Classpath.
2365 * Makefile.in: Rebuilt.
2366 * Makefile.am: Add java/util/PropertyPermission.java.
2367 * java/lang/System.java: Add setProperty method.
2369 * gij.cc (main): Add -jar option to execute jar files.
2370 (help): Describe -jar option.
2371 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2372 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2373 * gnu/gcj/runtime/FirstThread.java (main): New method.
2375 * java/util/jar/Attributes.java: Correct comment spelling.
2377 2000-08-20 Mark Wielaard <mark@klomp.org>
2379 * java/util/zip/Adler32.java: Make private variables really private
2380 * java/util/zip/CRC32.java: Make private variables really private
2381 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2383 * java/util/zip/InflaterInputStream.java: skip() could skip to
2385 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2386 * java/util/zip/ZipFile.java: size() new 1.2 method
2387 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2388 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2391 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2393 * java/util/jar/JarFile.java: Don't call
2394 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2397 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2399 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2400 Read the entire contents of the class file, not just what is
2403 * java/net/JarURLConnection.java: getEntry doesn't take any
2404 arguments. Return null if element is null.
2406 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2407 size from the archive, not the inflated size.
2409 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2410 java.util.zip.ZipFile.getEntry.
2412 * gij.cc (help): Change sourceware reference to
2415 2000-08-19 Tom Tromey <tromey@cygnus.com>
2417 * java/util/zip/ZipInputStream.java (createZipEntry):
2420 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2422 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2423 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2424 java/util/jar/JarInputStream.java,
2425 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2426 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2427 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2428 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2429 java/security/cert/Certificate.java,
2430 java/security/cert/CertificateEncodingException.java,
2431 java/security/cert/CertificateException.java,
2432 java/security/cert/CertificateExpiredException.java,
2433 java/security/cert/CertificateFactory.java,
2434 java/security/cert/CertificateFactorySpi.java,
2435 java/security/cert/CertificateNotYetValidException.java,
2436 java/security/cert/CertificateParsingException.java,
2437 java/security/cert/X509CRL.java,
2438 java/security/cert/X509CRLEntry.java,
2439 java/security/cert/X509Certificate.java,
2440 java/security/cert/X509Extension.java: Imported from Classpath.
2441 * java/util/Hashtable.java: Imported from Classpath.
2443 * java/util/zip/ZipInputStream.java: Create stub for
2446 * gcj/javaprims.h: Updated class list.
2448 * Makefile.in, gcj/Makefile.in: Rebuilt.
2449 * Makefile.am (ordinary_java_source_files): Add these new classes.
2451 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2453 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2454 * gnu/gcj/awt/GLightweightPeer.java: New file.
2455 * java/awt/BorderLayout.java: Implemented all methods.
2456 * java/awt/Button.java (actionListener, actionCommand): Renamed
2457 and modifier change.
2458 (addNotify): Call super.
2459 (dispatchEventImpl): New method.
2460 (getListeners): New method.
2461 (label): Made package-private, not private.
2462 * java/awt/Canvas.java: Implemented class body.
2463 * java/awt/Color.java (brighter): New method.
2464 (darker): New method.
2465 (hashCode): New method.
2466 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2467 (getGraphicsConfiguration): Delegate to
2468 getGraphicsConfigurationImpl().
2469 (getGraphicsConfigurationImpl): New method.
2470 (getToolkit): Only return value from peer if not null.
2471 (isDisplayable): Check with parent.
2472 (isShowing): No parent implies not showing.
2473 (getForeground): Check parent property if local is null.
2474 (getBackground): Likewise.
2475 (getFont): Likewise.
2476 (setForeground): Inform peer.
2477 (setBackground): Likewise
2478 (setLocale): Invalidate component.
2479 (getColorModel): Implemented.
2480 (setLocation): Invalidate, or ignore if no change.
2481 (setSize): Invalidate, or ignore if no change.
2482 (setBounds): Invalidate, or ignore if no change.
2483 (isOpaque): By default, heavyweight implies opaque.
2484 (isLightweight): Implemented.
2485 (getMaximumSize): Implemented.
2486 (doLayout): Implemented, NOP.
2487 (validate): Implemented, NOP.
2488 (invalidate): Only propagate to parent if parent was valid.
2489 (getGraphics): Implemented.
2490 (getFontMetrics): Implemented.
2491 (update): Implemented.
2492 (paintAll): Implemented.
2493 (repaint): Implemented all repaint methods.
2494 (print): Implemented.
2495 (printAll): Implemented.
2496 (createImage): Implemented.
2497 (dispatchEvent): Give the peer a chance to handle the event.
2498 (dispatchEventImpl): Dispatch paint events.
2499 (enableEvents): Lightweights enable events on parent component.
2500 (coalesceEvents): Coalesce paint events, and select event type
2502 (coalescePaintEvents): New method.
2503 (processEvent): Fix unfortunate ordering of statements, and call
2504 correct method for MOUSE_CLICKED.
2505 (processPaintEvent): New method.
2506 (addNotify): Allow container to notify children before event
2507 mask is set in peer.
2508 (addNotifyContainerChildren): New method.
2509 (removeNotify): Visibility should not change on removeNotify.
2510 (paramString): Implemented.
2511 (list): Implemented two of the list methods.
2512 * Container (myInsets): Removed, insets are managed by peer.
2513 (getInsets): Query peer.
2514 (addImpl): Fix reparenting, enable events for lightweights,
2515 initialize component array.
2516 (validate): Call doLayout in validateTree() instead.
2517 (validateTree): Do nothing if already valid. Call beginValidate(),
2518 endValidate() on peer. Call validateTree() instead of validate()
2519 for children that are containers. Mark valid after validation of
2521 (setFont): Partial implementation.
2522 (paint): Implemented.
2523 (visitChildren): New method.
2524 (visitChild): New method.
2525 (update): Implemented.
2526 (print): Implemented.
2527 (paintComponents): Implemented.
2528 (printComponents): Consider translation and clipping.
2529 (getComponentAt): Ignore invisible children. Return this if no
2531 (addNotify): Call super.
2532 (addNotifyContainerChildren): New method.
2533 (paramString): Implemented.
2534 (list): Implemented.
2535 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2537 (invokeLater): Likewise.
2538 (isDispatchThread): Likewise.
2539 * java/awt/FontMetrics (getLeading): Formula change.
2540 (getDescent): Consider leading also.
2541 (getMaxAscent): Default to getAscent().
2542 (getMaxDescent): Default to getDescent.
2543 (getMaxAdvance): Return value signifying unknown.
2544 (charWidth): Both methods implemented.
2545 (charsWidth): Implemented.
2546 (bytesWidth): Implemented.
2547 (getWidths): Implemented.
2548 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2550 (Frame): Rearragend constuctor chaining to disallow null being
2551 passed as a graphics configuration.
2552 (getTitle): Return empty string if null.
2554 (getIconImage): New method.
2555 (setIconImage): New method.
2556 (finalize): New method.
2557 (setMenuBar): Notify peer.
2558 (isResizable): New method.
2559 (setResizable): New method.
2560 (getState): New method.
2562 (remove): Implemented.
2563 (removeNotify): New method.
2564 (getFrames): New method.
2565 * java/awt/Graphics.java: Implemented body of class.
2566 * java/awt/Graphics2D.java: New file.
2567 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2568 * java/awt/Image.java: Implemented body of class.
2569 * java/awt/Panel.java (Panel): Call correct super constructor.
2570 (addNotify): Implemented.
2571 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2572 * java/awt/RenderingHints.java: New file.
2573 * java/awt/Toolkit.java (createComponent): Implemented.
2574 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2575 * java/awt/Window.java (Window): Two new constructors. Reordered
2576 constructor chaining.
2577 (getGraphicsConfigurationImpl): New method.
2578 (finalize): Call super.
2579 (addNotify): Call super.
2580 (pack): Do layout stuff.
2581 (show): Ensure that peer exists and that component is valid.
2582 (dispose): Dispose owned children.
2583 (getOwner): Simplify code, casting null pointers is valid.
2584 (getGraphicsConfiguration): Ask peer if local value is null.
2585 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2587 * java/awt/image/BufferedImage.java: New file.
2588 * java/awt/image/RasterOp.java: New file.
2589 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2590 More powerfull replacement for getColorModel().
2591 (getColorModel) Removed.
2592 (setEventMask) New method.
2593 * Makefile.am: Added new files.
2594 * Makefile.in: Rebuilt.
2596 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2598 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2599 (finit_leg_name): New global.
2600 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2601 `$finit$'. This is a backward compatibility hack.
2602 (java::lang::Class::_getMethods): Likewise.
2604 2000-08-15 Andrew Haley <aph@cygnus.com>
2606 * include/jvm.h (_Jv_HashCode): New hash code.
2608 2000-08-15 Tom Tromey <tromey@cygnus.com>
2610 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2612 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2614 * THANKS: More thanks.
2616 2000-08-10 Tom Tromey <tromey@cygnus.com>
2618 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2620 (connect): Likewise.
2622 (getOption): Likewise.
2623 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2624 case when errno not set.
2627 (receive): Likewise.
2628 (mcastGrp): Likewise.
2629 (setOption): Likewise.
2630 (getOption): Likewise.
2632 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2633 John Stracke <francis@ecal.com>
2635 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2636 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2638 (disconnect): Don't unset connected flag.
2639 (getHeaderField (String)): Call connect() if not connected.
2640 (getHeaderField (int)): Ditto.
2641 (getHeaderFieldKey): Ditto.
2642 (getHttpHeaders): Don't call connect().
2643 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2644 gotResponseVals): New fields.
2645 (getResponseCode): Call getResponseVals() conditionally.
2646 (getResponseMessage): Ditto.
2647 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2649 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2651 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2652 * Makefile.in: Rebuilt.
2653 * java/awt/Color.java (getTransparency): New method.
2654 * java/awt/Component.java: Various updates.
2655 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2656 after dealing with children.
2657 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2658 * java/awt/Window.java: Various new methods and updates.
2659 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2661 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2662 * java/awt/event/WindowEvent.java (paramString): Ditto.
2663 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2665 * java/awt/geom/Point2D.java (clone): Ditto.
2666 * java/awt/geom/RectangularShape.java (clone): Ditto.
2667 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2668 isAlphaPremultiplied): Make package-private, not private.
2670 2000-08-08 Tom Tromey <tromey@cygnus.com>
2672 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2673 surrogate characters.
2674 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2676 (write): Correct handling of surrogate characters.
2678 2000-08-07 Tom Tromey <tromey@cygnus.com>
2680 * java/lang/reflect/Method.java (hashCode): Use getName().
2681 (toString): Likewise.
2682 * java/lang/reflect/natMethod.cc (getType): Initialize
2685 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2687 * java/lang/reflect/Field.java (toString): Correct formatting.
2690 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2692 (receive): Streamlined.
2694 2000-08-05 Tom Tromey <tromey@cygnus.com>
2696 * java/io/PrintWriter.java: Merged comments from Classpath.
2697 (printlnUnsynchronized): Removed.
2698 (println()): Print the separator.
2699 (println): Call println(), not printlnUnsynchronized.
2700 (out): Now protected, to match spec.
2702 2000-08-04 Tom Tromey <tromey@cygnus.com>
2704 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2705 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2708 2000-08-03 Warren Levy <warrenl@cygnus.com>
2710 * java/io/ObjectInputStream.java (readFields): Turn off
2711 readDataFromBlock while reading via GetField.
2712 (GetField$1.get(String, Object)): Pass Class of default value to
2714 (getField): Allow for null default values.
2716 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2717 (PutField$1.put): Fixed calls of checkType in most of the put
2718 methods to pass the correct parameter.
2719 (PutField$1.put(String, Object)): Allow for null value arg.
2720 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2723 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2724 typo in spec'ed field name.
2725 (getSerialPersistentFields): Changed spelling of method to match
2726 the correct spelling of the spec'ed field name.
2728 2000-08-03 Tom Tromey <tromey@cygnus.com>
2730 * Makefile.in: Rebuilt.
2731 * Makefile.am (awt_java_source_files): Added new files.
2733 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2735 * Makefile.am: Add new AWT stubs.
2736 * java/awt/Canvas.java: New placeholder class.
2737 * java/awt/Checkbox.java: Ditto.
2738 * java/awt/CheckboxMenuItem.java: Ditto.
2739 * java/awt/Choice.java: Ditto.
2740 * java/awt/Dialog.java: Ditto.
2741 * java/awt/FileDialog.java: Ditto.
2742 * java/awt/List.java: Ditto.
2743 * java/awt/ScrollPane.java: Ditto.
2744 * java/awt/TextField.java: Ditto.
2745 * java/awt/datatransfer/Clipboard.java: Ditto.
2746 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2747 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2748 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2749 Some commented out. Partially implemented.
2750 * java/awt/natToolkit.cc: Removed file.
2752 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2754 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2755 Fixes "make -j" builds.
2756 * Makefile.in: Rebuild.
2758 2000-08-02 Tom Tromey <tromey@cygnus.com>
2760 * Makefile.in: Rebuilt.
2761 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2762 * java/net/natPlainSocketImpl.cc: Include posix.h.
2763 (accept): Use _Jv_select.
2764 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2765 (receive): Use _Jv_select.
2766 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2767 (available): Use _Jv_select.
2768 * java/lang/natSystem.cc: Include posix.h.
2769 (currentTimeMillis): Use _Jv_gettimeofday.
2770 * include/posix.h: New file.
2771 * posix.cc: New file.
2773 * scripts/encodings.pl: New file.
2774 * Makefile.in: Rebuilt.
2775 * Makefile.am (convert_source_files): Added IOConverter.java.
2776 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2778 (getDefaultDecodingClass): Canonicalize default encoding name.
2779 (getEncoder): Likewise.
2780 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2782 (getDefaultDecodingClass): Canonicalize default encoding name.
2783 (getDecoder): Likewise.
2784 * gnu/gcj/convert/IOConverter.java: New file.
2786 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2788 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2789 to match C declaration in ffi.h.
2790 * Makefile.am: Add java/awt/Button.java.
2791 * Makefile.in: Rebuilt.
2793 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2795 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2796 cast of the second argument to `ffi_raw_call' changed to match
2799 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2801 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2802 argument to `ffi_raw_call' changed to match prototype.
2804 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2806 * java/awt/Component.java (toString): Implemented.
2807 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2808 dispatchEvent() to dispatch the event.
2809 (removeImpl): Ditto.
2811 2000-07-30 Anthony Green <green@redhat.com>
2813 * java/awt/Component.java: Add treeLock object.
2814 (getTreeLock): Implement.
2815 (isShowing): Implement.
2817 2000-07-30 Tom Tromey <tromey@cygnus.com>
2819 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2821 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2823 * java/awt/Window.java (addNotify): Wrote.
2824 (addWindowListener): Wrote.
2826 (getWarningString): Wrote.
2827 (processEvent): Wrote.
2828 (processWindowEvent): Wrote.
2829 (removeWindowListener): Wrote.
2830 (show): Call validate(), setVisible().
2834 * java/awt/Toolkit.java (createWindow): Declare.
2836 * java/awt/Frame.java (addNotify): Use getToolkit to find
2839 * java/awt/Component.java (invalidate): Wrote.
2841 (getToolkit): Wrote.
2843 * java/awt/Container.java (addContainerListener): Removed
2845 (removeContainerListener): Likewise.
2847 (add(Component)): Use it.
2848 (add(String,Component)): Likewise.
2849 (add(Component,int)): Likewise.
2850 (add(Component,Object)): Likewise.
2851 (add(Component,Object,int)): Likewise.
2853 (getAlignmentX): Wrote.
2854 (getAlignmentY): Wrote.
2855 (getComponentAt): Wrote.
2856 (getMaximumSize): Wrote.
2857 (invalidate): Wrote.
2858 (list(PrintStream,int)): Wrote.
2859 (list(PrintWriter,int)): Wrote.
2860 (getMinimumSize): Wrote.
2861 (getPreferredSize): Wrote.
2862 (printComponents): Wrote.
2863 (processContainerEvent): Look at containerListener, not
2865 (remove): Added event processing and peer destruction.
2866 (removeAll): Use remove.
2867 (removeNotify): Wrote.
2869 (validateTree): Wrote.
2871 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2872 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2873 * java/awt/Container.java (addNotify): Don't create Container
2875 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2877 2000-07-30 Tom Tromey <tromey@cygnus.com>
2879 * java/awt/Container.java (remove(int)): Wrote.
2880 (remove(Component)): Wrote.
2881 (add(Component)): Wrote.
2882 (add(Component,int)): Wrote.
2884 (addNotify): Set our own peer.
2885 * java/awt/Scrollbar.java (listeners): Changed type.
2886 (Scrollbar): Don't initialize listeners.
2888 (setValue): Call setValues.
2889 (setMinimum): Likewise.
2890 (setMaxPriority): Likewise.
2891 (setVisibleAmount): Likewise.
2893 (setUnitIncrement): Forward to peer.
2894 (setLineIncrement): Call setUnitIncrement.
2895 (setPageIncrement): Call setBlockIncrement.
2896 (setBlockIncrement): Forward to peer.
2897 (addAdjustmentListener): Rewrote.
2898 (removeAdjustmentListener): Rewrote.
2899 (processAdjustmentEvent): Rewrote.
2900 (paramString): Wrote.
2901 * Makefile.in: Rebuilt.
2902 * Makefile.am (awt_java_source_files): Added Button.java.
2903 * java/awt/Button.java: New file.
2904 * java/awt/Toolkit.java (createLabel): Declare.
2905 (createButton): Likewise.
2906 (createScrollbar): Likewise.
2907 (createContainer): Likewise.
2908 * java/awt/Label.java (addNotify): Wrote.
2909 (setAlignment): Call setAlignment in the peer.
2910 (setText): Call setText in the peer.
2912 2000-07-28 Warren Levy <warrenl@cygnus.com>
2914 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2915 NotSerializableException with just the class name.
2917 2000-07-26 Andrew Haley <aph@cygnus.com>
2919 * interpret.cc (continue1): Insert missing break into switch.
2921 2000-07-28 Warren Levy <warrenl@cygnus.com>
2923 * java/io/ObjectStreamException.java: Made constructors protected.
2925 2000-07-27 Tom Tromey <tromey@cygnus.com>
2927 * java/io/OutputStreamWriter.java (close): Only flush if not
2930 2000-07-27 Warren Levy <warrenl@cygnus.com>
2932 * mauve-libgcj: Activated serialization tests.
2933 * gcj/field.h (getModifiers): Mask off unknown flags.
2934 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2935 spurious bits don't cause discrepancies.
2936 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2937 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2938 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2939 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2940 * java/lang/Throwable.java (serialVersionUID): New field.
2941 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2942 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2944 * java/lang/reflect/natMethod.cc: Ditto.
2945 * java/security/Key.java (serialVersionUID): Removed field for now.
2946 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2947 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2949 2000-07-22 Tom Tromey <tromey@cygnus.com>
2951 * java/awt/geom/RectangularShape.java (getPathIterator):
2954 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2956 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2957 stub libjava/java/awt/ColorModel.java which was located in the
2959 * libjava/java/awt/image/ComponentColorModel.java: New file.
2960 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2961 * libjava/java/awt/image/DataBuffer.java: New file.
2962 * libjava/java/awt/image/DataBufferByte.java: New file.
2963 * libjava/java/awt/image/DataBufferInt.java: New file.
2964 * libjava/java/awt/image/DataBufferUShort.java: New file.
2965 * libjava/java/awt/image/DirectColorModel.java: New file.
2966 * libjava/java/awt/image/PackedColorModel.java: New file.
2967 * libjava/java/awt/image/Raster.java: New file.
2968 * libjava/java/awt/image/SampleModel.java: New file.
2969 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2971 * libjava/java/awt/image/IndexColorModel.java: New file.
2972 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2973 java.awt.ColorModel stub.
2975 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2976 * gnu/gcj/util/Buffers.java: New file, utility class.
2978 * libjava/Makefile.am: Updated to include new files.
2979 * libjava/Makefile.in: Rebuilt.
2981 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2983 * java/io/StreamTokenizer.java: Merged with classpath.
2985 2000-07-20 Tom Tromey <tromey@cygnus.com>
2987 * Makefile.in: Rebuilt.
2988 * Makefile.am (awt_java_source_files): Updated for new files.
2989 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2990 * java/awt/Label.java: New file.
2991 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2992 (createIntersection, createUnion, getBounds2D): New methods.
2993 * java/awt/Scrollbar.java: New file.
2994 * java/awt/Shape.java: Updated to 1.2.
2995 * java/awt/geom/AffineTransform.java: New file.
2996 * java/awt/geom/Ellipse2D.java: New file.
2997 * java/awt/geom/NoninvertibleTransformException.java: New file.
2998 * java/awt/geom/PathIterator.java: New file.
2999 * java/awt/geom/Rectangle2D.java: New file.
3000 * java/awt/geom/RectangularShape.java: New file.
3001 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3002 * java/awt/geom/IllegalPathStateException.java: New file.
3004 * scripts/showval.java: New file.
3006 * scripts/classes.pl (scan): Print inner classes properly.
3007 * gcj/javaprims.h: Updated class list.
3009 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3010 initialize String fields for interpreted classes. Fixes bug
3011 reported by Hans Boehm.
3013 * java/io/File.java (getParentFile): New method, from Classpath
3014 via Oskar Liljeblad.
3016 * java/util/Vector.java (remove(Object)): Implemented.
3018 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
3020 * java/lang/natThrowable.cc (fillInStackTrace): Check for
3021 zero return from backtrace().
3023 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
3025 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3027 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3028 before calling notifyAll().
3030 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
3032 Add missing files from last check-in:
3033 * java/awt/image/ImageConsumer.java: New file.
3034 * java/awt/image/ImageProducer.java: New file.
3035 * java/awt/image/ImageObserver.java: New file.
3037 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3039 Merged implementation of java.applet from classpath:
3040 * java/applet/Applet.java: New file.
3041 * java/applet/AppletContext.java: New file.
3042 * java/applet/AppletStub.java: New file.
3043 * java/applet/AudioClip.java: New file.
3045 * Makefile.am: Added new java.applet classes.
3046 * Makefile.in: Rebuilt.
3048 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
3051 * java/util/ResourceBundle.java (getLocale): stub.
3052 * Makefile.am: Added new AWT classes.
3053 * Makefile.in: Rebuilt.
3054 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3055 constructors. Fix toString() and paramString().
3056 * java/awt/AWTEventMulticaster.java: New class. Implemented.
3057 * java/awt/CheckboxGroup.java: New class.
3058 * java/awt/ColorModel.java: New class.
3059 * java/awt/Component.java: Added stubs for most methods. Implemented
3061 * java/awt/Container.java: ditto.
3062 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3063 * java/awt/Cursor.java: ditto.
3064 * java/awt/Event.java: Fix paramString().
3065 * java/awt/EventQueue.java: New class. Implemented.
3066 * java/awt/Font.java: Added additional stub methods. Implemented
3068 * java/awt/FontMetrics.java: New class. Stubbed.
3069 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3071 * java/awt/Insets.java: New class. Implemented.
3072 * java/awt/Menu.java: Add new methods. Partially implemented.
3073 * java/awt/MenuItem.java: Add new methods and fields. Partially
3075 * java/awt/MenuShortcut.java: New class. Implemented.
3076 * java/awt/Panel.java: New class. Placeholder.
3077 * java/awt/PopupMenu.java: New class. Stubbed.
3078 * java/awt/Rectangle.java: New class. Implemented.
3079 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3080 * java/awt/event/ActionEvent.java: Implement paramString().
3081 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3082 * java/awt/event/ComponentEvent.java: Implement paramString().
3083 * java/awt/event/ContainerEvent.java: Implement paramString().
3084 * java/awt/event/FocusEvent.java: Implement paramString().
3085 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3086 * java/awt/event/HierarchyBoundsListener.java: New class.
3087 * java/awt/event/HierarchyEvent.java: New class.
3088 * java/awt/event/HierarchyListener.java: New class.
3089 * java/awt/event/InputMethodEvent.java: Implement paramString().
3090 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3091 exception if !catchExceptions.
3092 * java/awt/event/ItemEvent.java: Implement paramString().
3093 * java/awt/event/KeyEvent.java: Implement paramString().
3094 * java/awt/event/MouseEvent.java: Implement paramString().
3095 * java/awt/event/PaintEvent.java: Implement paramString().
3096 * java/awt/event/TextEvent.java: Implement paramString().
3097 * java/awt/event/WindowEvent.java: Implement paramString().
3099 AWT Peer interfaces:
3100 * java/awt/peer/ButtonPeer.java: New file.
3101 * java/awt/peer/ListPeer.java: New file.
3102 * java/awt/peer/CanvasPeer.java: New file.
3103 * java/awt/peer/MenuBarPeer.java: New file.
3104 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3105 * java/awt/peer/MenuComponentPeer.java: New file.
3106 * java/awt/peer/CheckboxPeer.java: New file.
3107 * java/awt/peer/MenuItemPeer.java: New file.
3108 * java/awt/peer/ChoicePeer.java: New file.
3109 * java/awt/peer/MenuPeer.java: New file.
3110 * java/awt/peer/ComponentPeer.java: Implemented.
3111 * java/awt/peer/PanelPeer.java: New file.
3112 * java/awt/peer/ContainerPeer.java: Implemented.
3113 * java/awt/peer/PopupMenuPeer.java: New file.
3114 * java/awt/peer/DialogPeer.java: New file.
3115 * java/awt/peer/ScrollPanePeer.java: New file.
3116 * java/awt/peer/FileDialogPeer.java: New file.
3117 * java/awt/peer/ScrollbarPeer.java: New file.
3118 * java/awt/peer/FontPeer.java: New file.
3119 * java/awt/peer/TextAreaPeer.java: New file.
3120 * java/awt/peer/FramePeer.java: Implemented.
3121 * java/awt/peer/TextComponentPeer.java: New file.
3122 * java/awt/peer/LabelPeer.java: New file.
3123 * java/awt/peer/TextFieldPeer.java: New file.
3124 * java/awt/peer/LightweightPeer.java: New file.
3125 * java/awt/peer/WindowPeer.java: Implemented.
3127 2000-07-06 Tom Tromey <tromey@cygnus.com>
3129 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3130 Initialize static final String fields.
3132 2000-07-03 Tom Tromey <tromey@cygnus.com>
3134 * java/io/PrintWriter.java (print): Call write(String), not
3135 print(String). See PR libgcj/277.
3136 (print(String)): Use write, not out.write.
3138 2000-06-30 Tom Tromey <tromey@cygnus.com>
3140 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3142 2000-06-27 Andrew Haley <aph@cygnus.com>
3144 * java/io/File.java (createTempFile): Close the FileDescriptor
3145 used to create a temp file. Fixes some of PR 203.
3146 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3147 collection if we run out of file handles.
3149 2000-06-28 Warren Levy <warrenl@cygnus.com>
3151 * gnu/java/security/provider/Gnu.java: New file.
3152 * gnu/java/security/provider/SHA.java: New file.
3153 * gnu/java/security/provider/SHA1PRNG.java: New file.
3154 * Makefile.am: Added the above files.
3155 * Makefile.in: Rebuilt.
3157 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3159 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3161 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3162 (destroyed_flag): Removed.
3163 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3164 (activeCount): Added spec note.
3166 2000-06-27 Warren Levy <warrenl@cygnus.com>
3168 * java/security/Principal.java: New file.
3169 * Makefile.am: Added Principal.java.
3170 * Makefile.in: Rebuilt.
3172 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3174 * java/awt/event/MouseEvent.java: Fixed coordinate space
3177 2000-06-27 Tom Tromey <tromey@cygnus.com>
3179 * java/io/PushbackInputStream.java (read): If there are characters
3180 in the buffer, don't also call super.read().
3181 * java/io/PushbackReader.java (read): If there are characters in
3182 the buffer, don't also call super.read().
3184 * java/lang/Double.java (valueOf): Call parseDouble().
3186 2000-06-26 Warren Levy <warrenl@cygnus.com>
3188 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3189 (newVal): Renamed to newValue.
3190 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3191 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3192 (revokeNow): Renamed to invalidateRefs.
3193 * java/io/OptionalDataException.java: Updated FIXME.
3194 (eof): New placeholder field.
3196 * java/io/WriteAbortedException.java (message): Made transient.
3197 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3198 * java/lang/Throwable.java (stackTrace): Made transient.
3199 * java/net/InetAddress.java: Made Serializable.
3200 * java/security/KeyPair.java: Made Serializable.
3201 * java/security/Provider.java: Replaced with Classpath version that
3202 implements serialization and proper methods.
3203 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3204 (limits): Renamed to choiceLimits.
3206 2000-06-24 Tom Tromey <tromey@cygnus.com>
3208 * java/lang/natDouble.cc (parseDouble): Renamed from
3210 * java/lang/Double.java (parseDouble): Renamed from
3211 doubleValueOf. Now public.
3213 2000-06-23 Andrew Haley <aph@cygnus.com>
3215 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3216 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3218 2000-06-23 Tom Tromey <tromey@cygnus.com>
3220 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3221 * java/lang/natDouble.cc: Always include <alloca.h>.
3222 Fix for PR libgcj/267.
3224 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3226 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3227 comply with classpath VM spec.
3228 (add(Group)): Rename to addGroup().
3229 * java/lang/Thread.java (Thread): Use addThread().
3230 * java/lang/natThread.cc (finish_): Use removeThread().
3232 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3234 * java/lang/ThreadGroup.java: Merged with classpath.
3235 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3236 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3238 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3239 ThreadGroup.root if Thread.currentThread is null. Honour the
3240 ThreadGroup's max priority setting.
3242 2000-06-18 Tom Tromey <tromey@cygnus.com>
3244 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3245 returned class. For PR gcj/260.
3247 2000-06-16 Tom Tromey <tromey@cygnus.com>
3249 Fix for PR libgcj/261:
3250 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3252 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3253 argument. (This is a patch from long ago that somehow went
3256 2000-06-15 Tom Tromey <tromey@cygnus.com>
3258 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3262 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3264 Fix for PR java.lang/258:
3265 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3266 JV_STATE_DONE, to prevent accidental initialization.
3267 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3268 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3269 interface or an abstract class. Remove redundant initializeClass calls.
3270 Remove duplicate if_idt test.
3271 (_Jv_InterfaceAssignableFrom): New function.
3272 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3274 2000-05-31 Tom Tromey <tromey@cygnus.com>
3276 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3277 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3278 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3279 (NUM_OBJECT_METHODS): New define.
3280 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3281 `array_vtable' parameter. Added assertion.
3282 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3285 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3287 * gcj/cni.h: Include <string.h>.
3288 * defineclass.cc: Include <alloca.h>.
3289 * interpret.cc: Ditto.
3290 * gij.cc: Include <stdlib.h>.
3292 2000-05-30 Tom Tromey <tromey@cygnus.com>
3294 * include/name-finder.h: Include <sys/wait.h>.
3295 (_Jv_name_finder::pid): Now of type `pid_t'.
3296 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3297 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3300 2000-05-24 Warren Levy <warrenl@cygnus.com>
3302 * java/io/ObjectOutputStream.java (writeObject): Use component type
3303 when writing arrays.
3306 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3308 Fix for PR libgcj/226:
3309 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3310 since this is an installed header.
3312 Fix for PR libgcj/228:
3313 * java/util/zip/ZipFile (getInputStream): Create inflater with
3316 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3317 with DataFormatException.
3319 2000-05-20 Tom Tromey <tromey@cygnus.com>
3321 * Makefile.in: Rebuilt.
3322 * Makefile.am (hack1): Removed.
3323 (awto_files): Likewise.
3324 (libgcjawt_la_SOURCES): Likewise.
3325 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3326 (libgcjawt_la_DEPENDENCIES): Likewise.
3327 (libgcjawt_la_LIBADD): Likewise.
3328 (libgcjawt_la_LDFLAGS): Likewise.
3329 (libgcjawt_la_LINK): Likewise.
3330 ($(awt_java_source_files:.java=.class)): Likewise.
3331 (libgcj.zip): Don't depend on AWT files.
3332 (MOSTLYCLEANFILES): Don't include AWT files.
3333 ($(awto_files)): Removed.
3334 (nat_headers): Removed AWT files.
3335 (cond_awt_java_source_files): Removed.
3336 (ordinary_java_source_files): Added awt_java_source_files.
3337 * libgcj.spec.in (*lib): Removed -lgcjawt.
3338 * configure: Rebuilt.
3339 * configure.in: Removed --enable-java-awt option.
3341 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3343 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3344 (ZipEntry): Copy the `name' field.
3345 (clone): Implement JDK1.2 method.
3346 (setCompressedSize): ditto.
3349 2000-05-19 Tom Tromey <tromey@cygnus.com>
3351 * java/io/BufferedWriter.java: Merged with Classpath.
3352 * java/io/BufferedOutputStream.java: Merged with Classpath.
3354 2000-05-16 Andrew Haley <aph@cygnus.com>
3356 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3357 build_ia64_frame_state.
3358 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3361 2000-05-15 Warren Levy <warrenl@cygnus.com>
3363 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3364 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3365 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3366 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3367 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3368 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3369 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3370 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3371 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3372 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3373 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3374 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3375 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3376 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3377 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3378 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3379 * gnu/gcj/io/NullOutputStream.java: Removed.
3380 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3381 * gnu/gcj/lang/ArrayHelper.java: Removed.
3382 * gnu/gcj/lang/ClassHelper.java: Removed.
3383 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3385 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3386 * gnu/java/beans/EmptyBeanInfo.java: New file.
3387 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3388 * gnu/java/beans/IntrospectionIncubator.java: New file.
3389 * gnu/java/beans/editors/ColorEditor.java: New file.
3390 * gnu/java/beans/editors/FontEditor.java: New file.
3391 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3392 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3393 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3394 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3395 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3396 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3397 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3398 * gnu/java/beans/editors/StringEditor.java: New file.
3399 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3400 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3401 * gnu/java/io/NullOutputStream.java: New file.
3402 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3403 * gnu/java/lang/ArrayHelper.java: New file.
3404 * gnu/java/lang/ClassHelper.java: New file.
3405 * gnu/java/lang/reflect/TypeSignature.java: New file.
3407 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3408 namespace back to the original Classpath gnu/java namespace.
3409 * Makefile.in: Rebuilt.
3411 * java/beans/Beans.java: Namespace change.
3412 * java/beans/EventSetDescriptor.java: Namespace change.
3413 * java/beans/Introspector.java: Namespace change.
3414 * java/beans/PropertyEditorManager.java: Namespace change.
3415 * java/io/ObjectInputStream.java: Namespace change.
3416 * java/io/ObjectOutputStream.java: Namespace change.
3417 * java/io/ObjectStreamClass.java: Namespace change.
3418 * java/io/ObjectStreamField.java: Namespace change.
3420 2000-04-21 Warren Levy <warrenl@cygnus.com>
3422 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3423 now that compiler patch is available.
3424 Removed unneeded System.loadLibrary.
3425 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3426 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3428 2000-04-19 Andrew Haley <aph@cygnus.com>
3430 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3431 and target classes have been initialized.
3433 2000-04-19 Andrew Haley <aph@cygnus.com>
3435 * java/lang/String.java: implement Serializable, Comparable.
3436 (compareTo (Object)): New method.
3438 2000-04-19 Warren Levy <warrenl@cygnus.com>
3440 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3441 instead of getField to retrieve non-public field.
3442 (getSerialPersistantFields): Ditto.
3444 2000-04-18 Warren Levy <warrenl@cygnus.com>
3446 * mauve-libgcj: Turned off object serialization tests temporarily
3447 due to compiler error.
3449 2000-04-17 Warren Levy <warrenl@cygnus.com>
3451 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3452 to avoid build problem.
3454 * mauve-libgcj: Turned on object serialization tests.
3456 2000-04-17 Tom Tromey <tromey@cygnus.com>
3458 * libgcj.spec.in (*lib): Added -lgcjawt.
3460 2000-04-17 Andrew Haley <aph@cygnus.com>
3462 * Makefile.am: Add new files:
3463 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3465 * Makefile.in: Rebuilt.
3467 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3468 interface that has no implementations.
3469 Check for an attempt to assign an abstract class to an interface.
3471 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3472 if we fail to find MessageDigest.getInstance ("SHA").
3474 * gnu/gcj/io/SimpleSHSStream.java: New file.
3475 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3476 * gnu/gcj/io/shs.cc: New file.
3477 * gnu/gcj/io/shs.h: new file.
3479 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3482 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3483 punctuation from the classname of an array element.
3485 * gcj/javaprims.h: Add SimpleDigestStream.
3487 2000-04-17 Andrew Haley <aph@cygnus.com>
3489 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3490 to getPrivateField for superclasses.
3492 2000-04-14 Andrew Haley <aph@cygnus.com>
3494 * Makefile.am: Add new files:
3495 java/io/ObjectOutputStream$PutField.h,
3496 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3497 java/io/natObjectOutputStream.cc
3498 * Makefile.in: Rebuilt.
3499 * gcj/Makefile.in: Rebuilt.
3500 * include/Makefile.in: Rebuilt.
3501 * java/lang/Class.h (getPrivateField): New method.
3502 (getPrivateMethod): Ditto.
3503 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3504 and java::io::ObjectStreamClass our friends.
3505 * java/lang/natClass.cc (getPrivateField): New method.
3506 (getPrivateMethod): Ditto.
3507 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3508 * gcj/javaprims.h: Add serialization classes.
3509 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3510 (setByteField): Ditto.
3511 (setCharField): Ditto.
3512 (setDoubleField): Ditto.
3513 (setFloatField): Ditto.
3514 (setIntField): Ditto.
3515 (setLongField): Ditto.
3516 (setShortField): Ditto.
3517 (setObjectField): Ditto.
3518 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3520 (getByteField): Ditto.
3521 (getCharField): Ditto.
3522 (getDoubleField): Ditto.
3523 (getFloatField): Ditto.
3524 (getIntField): Ditto.
3525 (getLongField): Ditto.
3526 (getShortField): Ditto.
3527 (getObjectField): Ditto.
3528 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3530 (getSerialPersistantFields): Ditto.
3531 (getDefinedSUID): Ditto.
3532 * java/io/natObjectOutputStream.cc: New file.
3533 * java/io/natObjectInputStream.cc: New file.
3535 2000-04-13 Warren Levy <warrenl@cygnus.com>
3537 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3538 problems. Revert to previous version to reproduce and when fixed.
3540 2000-04-13 Warren Levy <warrenl@cygnus.com>
3542 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3543 * gnu/gcj/io/NullOutputStream.java: New file.
3544 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3545 * java/io/BlockDataException.java: New file.
3546 * java/io/Externalizable.java: New file.
3547 * java/io/InvalidClassException.java: New file.
3548 * java/io/InvalidObjectException.java: New file.
3549 * java/io/NotActiveException.java: New file.
3550 * java/io/NotSerializableException.java: New file.
3551 * java/io/ObjectInput.java: New file.
3552 * java/io/ObjectInputStream.java: New file.
3553 * java/io/ObjectInputValidation.java: New file.
3554 * java/io/ObjectOutput.java: New file.
3555 * java/io/ObjectOutputStream.java: New file.
3556 * java/io/ObjectStreamClass.java: New file.
3557 * java/io/ObjectStreamConstants.java: New file.
3558 * java/io/ObjectStreamField.java: New file.
3559 * java/io/Replaceable.java: New file.
3560 * java/io/Resolvable.java: New file.
3561 * java/io/SerializablePermission.java: New file.
3562 * java/io/WriteAbortedException.java: New file.
3563 * java/security/BasicPermission.java: New file.
3564 * java/security/DigestOutputStream.java: New file.
3565 * java/security/Guard.java: New file.
3566 * java/security/Permission.java: New file.
3567 * java/security/PermissionCollection.java: New file.
3568 * Makefile.am: Added above files.
3569 * Makefile.in: Rebuilt.
3571 * java/beans/Beans.java (instantiate): Activated serialization code.
3572 * java/lang/SecurityManager.java (checkPermission): New method.
3574 2000-04-12 Warren Levy <warrenl@cygnus.com>
3576 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3577 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3578 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3579 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3580 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3581 * gnu/gcj/beans/editors/FontEditor.java: New file.
3582 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3583 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3584 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3585 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3586 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3587 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3588 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3589 * gnu/gcj/beans/editors/StringEditor.java: New file.
3590 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3591 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3592 * gnu/gcj/lang/ArrayHelper.java: New file.
3593 * gnu/gcj/lang/ClassHelper.java: New file.
3594 * java/beans/BeanDescriptor.java: New file.
3595 * java/beans/BeanInfo.java: New file.
3596 * java/beans/Beans.java: New file.
3597 * java/beans/Customizer.java: New file.
3598 * java/beans/DesignMode.java: New file.
3599 * java/beans/EventSetDescriptor.java: New file.
3600 * java/beans/FeatureDescriptor.java: New file.
3601 * java/beans/IndexedPropertyDescriptor.java: New file.
3602 * java/beans/IntrospectionException.java: New file.
3603 * java/beans/Introspector.java: New file.
3604 * java/beans/MethodDescriptor.java: New file.
3605 * java/beans/ParameterDescriptor.java: New file.
3606 * java/beans/PropertyChangeEvent.java: New file.
3607 * java/beans/PropertyChangeListener.java: New file.
3608 * java/beans/PropertyChangeSupport.java: New file.
3609 * java/beans/PropertyDescriptor.java: New file.
3610 * java/beans/PropertyEditor.java: New file.
3611 * java/beans/PropertyEditorManager.java: New file.
3612 * java/beans/PropertyEditorSupport.java: New file.
3613 * java/beans/PropertyVetoException.java: New file.
3614 * java/beans/SimpleBeanInfo.java: New file.
3615 * java/beans/VetoableChangeListener.java: New file.
3616 * java/beans/VetoableChangeSupport.java: New file.
3617 * java/beans/Visibility.java: New file.
3618 * java/beans/beancontext/BeanContext.java: New file.
3619 * java/beans/beancontext/BeanContextChild.java: New file.
3620 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3621 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3622 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3623 * java/beans/beancontext/BeanContextEvent.java: New file.
3624 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3625 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3626 * java/beans/beancontext/BeanContextProxy.java: New file.
3627 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3629 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3630 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3632 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3633 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3635 * java/beans/beancontext/BeanContextServices.java: New file.
3636 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3637 * java/util/AbstractCollection.java: New file.
3638 * java/util/AbstractList.java: New file.
3639 * java/util/Arrays.java: New file.
3640 * Makefile.am: Added above files.
3641 * Makefile.in: Rebuilt.
3643 2000-04-11 Warren Levy <warrenl@cygnus.com>
3645 * java/awt/AWTError.java: New file.
3646 * java/awt/AWTEvent.java: New file.
3647 * java/awt/AWTException.java: New file.
3648 * java/awt/ActiveEvent.java: New file.
3649 * java/awt/Adjustable.java: New file.
3650 * java/awt/BorderLayout.java: New file.
3651 * java/awt/Color.java: New file.
3652 * java/awt/Component.java: New file.
3653 * java/awt/Container.java: New file.
3654 * java/awt/Dimension.java: New file.
3655 * java/awt/Event.java: New file.
3656 * java/awt/Font.java: New file.
3657 * java/awt/Frame.java: New file.
3658 * java/awt/Graphics.java: New file.
3659 * java/awt/IllegalComponentStateException.java: New file.
3660 * java/awt/Image.java: New file.
3661 * java/awt/ItemSelectable.java: New file.
3662 * java/awt/LayoutManager.java: New file.
3663 * java/awt/LayoutManager2.java: New file.
3664 * java/awt/Menu.java: New file.
3665 * java/awt/MenuBar.java: New file.
3666 * java/awt/MenuComponent.java: New file.
3667 * java/awt/MenuContainer.java: New file.
3668 * java/awt/MenuItem.java: New file.
3669 * java/awt/Paint.java: New file.
3670 * java/awt/PaintContext.java: New file.
3671 * java/awt/Point.java: New file.
3672 * java/awt/Rectangle.java: New file.
3673 * java/awt/Shape.java: New file.
3674 * java/awt/TextArea.java: New file.
3675 * java/awt/TextComponent.java: New file.
3676 * java/awt/Toolkit.java: New file.
3677 * java/awt/Transparency.java: New file.
3678 * java/awt/Window.java: New file.
3679 * java/awt/natToolkit.cc: New file.
3680 * java/awt/event/AWTEventListener.java: New file.
3681 * java/awt/event/ActionEvent.java: New file.
3682 * java/awt/event/ActionListener.java: New file.
3683 * java/awt/event/AdjustmentEvent.java: New file.
3684 * java/awt/event/AdjustmentListener.java: New file.
3685 * java/awt/event/ComponentAdapter.java: New file.
3686 * java/awt/event/ComponentEvent.java: New file.
3687 * java/awt/event/ComponentListener.java: New file.
3688 * java/awt/event/ContainerAdapter.java: New file.
3689 * java/awt/event/ContainerEvent.java: New file.
3690 * java/awt/event/ContainerListener.java: New file.
3691 * java/awt/event/FocusAdapter.java: New file.
3692 * java/awt/event/FocusEvent.java: New file.
3693 * java/awt/event/FocusListener.java: New file.
3694 * java/awt/event/InputEvent.java: New file.
3695 * java/awt/event/InputMethodEvent.java: New file.
3696 * java/awt/event/InputMethodListener.java: New file.
3697 * java/awt/event/InvocationEvent.java: New file.
3698 * java/awt/event/ItemEvent.java: New file.
3699 * java/awt/event/ItemListener.java: New file.
3700 * java/awt/event/KeyAdapter.java: New file.
3701 * java/awt/event/KeyEvent.java: New file.
3702 * java/awt/event/KeyListener.java: New file.
3703 * java/awt/event/MouseAdapter.java: New file.
3704 * java/awt/event/MouseEvent.java: New file.
3705 * java/awt/event/MouseListener.java: New file.
3706 * java/awt/event/MouseMotionAdapter.java: New file.
3707 * java/awt/event/MouseMotionListener.java: New file.
3708 * java/awt/event/PaintEvent.java: New file.
3709 * java/awt/event/TextEvent.java: New file.
3710 * java/awt/event/TextListener.java: New file.
3711 * java/awt/event/WindowAdapter.java: New file.
3712 * java/awt/event/WindowEvent.java: New file.
3713 * java/awt/event/WindowListener.java: New file.
3714 * java/awt/geom/Dimension2D.java: New file.
3715 * java/awt/geom/Point2D.java: New file.
3716 * java/awt/peer/ComponentPeer.java: New file.
3717 * java/awt/peer/ContainerPeer.java: New file.
3718 * java/awt/peer/FramePeer.java: New file.
3719 * java/awt/peer/WindowPeer.java: New file.
3720 * java/util/Collection.java: New file.
3721 * java/util/Comparator.java: New file.
3722 * java/util/Iterator.java: New file.
3723 * java/util/List.java: New file.
3724 * java/util/ListIterator.java: New file.
3725 * Makefile.am: Added above files.
3726 * Makefile.in: Rebuilt.
3728 2000-04-10 Warren Levy <warrenl@cygnus.com>
3730 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3731 * java/lang/FirstThread.java: Ditto.
3732 * java/lang/StringBuffer.java: Ditto.
3733 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3735 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3736 Special case handled in java.math.BigInteger.
3737 * java/math/BigInteger.java (divide): Handle the special case when
3738 dividing by 1 and the high bit of the dividend is set.
3739 (setShiftRight): Handle case when count == 0.
3741 2000-04-05 Andrew Haley <aph@cygnus.com>
3743 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3746 2000-04-05 Andrew Haley <aph@cygnus.com>
3748 * sysdep/ia64.c (rse_address_add): Delete.
3749 (IS_NaT_COLLECTION_ADDR): Delete.
3750 (ia64_backtrace_helper): check for null unwind_info.
3752 * sysdep/ia64-frame.h: add calc_caller_bsp.
3754 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3757 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3758 (_Jv_remI): Likewise.
3759 (_Jv_divJ): Likewise.
3760 (_Jv_remJ): Likewise.
3762 * interpret.cc (continue1): Use divide subroutines to guarantee
3763 correct Java standard behaviour.
3764 Floating-point division should not abort; make it so.
3766 2000-03-29 Tom Tromey <tromey@cygnus.com>
3768 * configure: Rebuilt.
3769 * configure.in: Test against `libgcj_sjlj', not
3770 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3771 to be set even when using sjlj.
3773 2000-03-24 Andrew Haley <aph@cygnus.com>
3775 * Makefile.am: Add file addr2name.awk.
3776 * Makefile.in: Rebuilt.
3777 * addr2name.awk: New file.
3778 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3780 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3783 2000-03-22 Andrew Haley <aph@cygnus.com>
3785 * configure.host: Add -funwind-tables for IA64.
3786 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3787 * Makefile.in: Rebuilt.
3788 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3789 * sysdep/ia64.c: New file.
3790 * sysdep/ia64-frame.h: New file.
3791 * configure.in: Add sysdep/ia64.c for ia64.
3792 * configure: Rebuilt.
3794 2000-03-17 Andrew Haley <aph@cygnus.com>
3796 * java/lang/natString.cc: Remove `register' keyword.
3797 interpret.cc: ditto.
3799 2000-03-16 Andrew Haley <aph@cygnus.com>
3801 * configure.host (ia64): Enable interpreter.
3803 2000-03-14 Hans Boehm <boehm@acm.org>
3805 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3807 2000-03-14 Andrew Haley <aph@cygnus.com>
3809 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3812 2000-03-10 Andrew Haley <aph@cygnus.com>
3814 * java/lang/ieeefp.h: Import latest version from fdlibm.
3816 2000-03-14 Andrew Haley <aph@cygnus.com>
3818 * prims.cc (_Jv_ThrowSignal): New function.
3819 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3821 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3822 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3823 * include/ppc-signal.h: New file.
3825 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3827 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3828 * java/lang/natThread.java (initialize_native): Cast `data' to
3830 * gnu/gcj/RawData.java: Clarify documentation.
3832 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3833 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3834 `jarFile', not `jarFileURL'.
3836 2000-05-15 Andrew Haley <aph@cygnus.com>
3838 * include/ppc-signal.h: New file.
3840 2000-05-11 Tom Tromey <tromey@cygnus.com>
3842 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3843 file headers, don't include `size' in the skip call.
3845 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3847 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3848 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3850 (replace): Reimplemented. Fix javadoc.
3851 (reverse): Call ensureCapacity_unsynchronized().
3852 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3854 (replace): Calculate length for arraycopy() correctly.
3856 2000-05-09 Tom Tromey <tromey@cygnus.com>
3858 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3860 (insert(int,char[],int,int): New method.
3861 (delete): New method from Classpath.
3862 (deleteCharAt): Likewise.
3863 (substring): Likewise.
3864 (shared): No longer private.
3865 Added JavaDoc comments from Classpath.
3866 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3869 2000-05-07 Tom Tromey <tromey@cygnus.com>
3871 * Makefile.in: Rebuilt.
3872 * Makefile.am (LIBLINK): New macro.
3873 (libgcj_la_LINK): Use it.
3874 (libgcjawt_la_LINK): Likewise.
3876 2000-05-06 Tom Tromey <tromey@cygnus.com>
3878 * Makefile.in: Rebuilt.
3879 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3881 2000-05-05 Tom Tromey <tromey@cygnus.com>
3883 Fix for PR libgcj/220:
3884 * Makefile.in: Rebuilt.
3885 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3886 (jv_convert_LDFLAGS): Likewise.
3887 (libgcj_la_LDFLAGS): Likewise.
3888 (GCJLINK): New macro.
3889 (jv_convert_LINK): Use it.
3890 (gij_LINK): Likewise.
3891 (libgcj_la_LINK): New macro.
3892 (libgcjawt_la_LINK): Likewise.
3894 2000-05-04 Tom Tromey <tromey@cygnus.com>
3896 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3898 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3902 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3904 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3905 (_Jv_IsAssignableFrom): Ditto.
3906 (_Jv_IsInstanceOf): Ditto.
3907 (_Jv_CheckCast): Ditto.
3908 (_Jv_CheckArrayStore): Ditto.
3909 * java/lang/Class.h (_Jv_InitClass): Ditto.
3910 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3915 (_Jv_MonitorExit): Ditto.
3916 * boehm.cc (_Jv_MarkObj): Ditto.
3917 (_Jv_MarkObj): Ditto.
3918 (_Jv_MarkArray): Ditto.
3919 * prims.cc (_Jv_AllocObject): Ditto.
3920 (_Jv_NewObjectArray): Ditto.
3921 (_Jv_NewPrimArray): Ditto.
3922 (_Jv_Malloc): Ditto.
3923 (_Jv_Realloc): Ditto.
3924 (_Jv_MallocUnchecked): Ditto.
3930 2000-05-04 Tom Tromey <tromey@cygnus.com>
3932 * java/util/Locale.java (Locale): Don't explicitly check for
3934 * java/util/Hashtable.java (containsKey): Don't explicitly check
3937 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3939 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3941 * java/text/StringCharacterIterator.java
3942 (StringCharacterIterator): Don't check for null.
3943 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3945 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3946 check for null pointer.
3947 (leaveGroup): Likewise.
3948 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3950 (setData): Likewise.
3951 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3954 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3956 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3957 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3958 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3959 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3960 -rpath for in-gcc builds.
3961 * Makefile.in: Rebuilt.
3963 2000-04-28 Tom Tromey <tromey@cygnus.com>
3965 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3968 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3970 * libjava/java/lang/String.java (toString): Remove `final' hack.
3972 2000-04-05 Tom Tromey <tromey@cygnus.com>
3974 Runtime support for PR gcj/2:
3975 * prims.cc (_Jv_ThrowNullPointerException): New function.
3976 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3978 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3980 * prims.cc (_Jv_NewObjectArray): Fix typo.
3982 2000-04-26 Tom Tromey <tromey@cygnus.com>
3984 * Makefile.in: Rebuilt.
3985 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3987 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3989 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3992 2000-04-22 Anthony Green <green@cygnus.com>
3994 * include/jvm.h (__builtin_expect): Define as unused for now.
3995 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3999 (_Jv_MonitorExit): Ditto.
4000 * boehm.cc (_Jv_MarkObj): Ditto.
4001 (_Jv_MarkObj): Ditto.
4002 (_Jv_MarkArray): Ditto.
4003 (_Jv_AllocBytes): Ditto.
4004 * prims.cc (_Jv_AllocObject): Ditto.
4005 (_Jv_NewObjectArray): Ditto.
4006 (_Jv_NewPrimArray): Ditto.
4007 (_Jv_Malloc): Ditto.
4008 (_Jv_Realloc): Ditto.
4009 (_Jv_MallocUnchecked): Ditto.
4015 * include/Makefile.in: Rebuilt.
4016 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4018 2000-04-21 Tom Tromey <tromey@cygnus.com>
4020 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4021 Yet another new version from Classpath.
4023 Fix for PR libgcj/15:
4024 * java/util/natGregorianCalendar.cc (_REENTRANT,
4025 _POSIX_PTHREAD_SEMANTICS): Don't define.
4026 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4027 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4029 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4031 * configure: Rebuilt.
4032 * configure.in: If using POSIX threads, define _REENTRANT if
4033 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
4034 GETHOSTBYNAME_R_NEEDS_REENTRANT.
4036 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4037 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4038 version from Classpath.
4040 Fix for PR libgcj/213:
4041 * Makefile.in: Rebuilt.
4042 * Makefile.am (gij_SOURCES): Added gij.cc.
4043 (EXTRA_gij_SOURCES): Removed.
4044 (gij_LDADD): Removed gij.lo.
4045 (gij_DEPENDENCIES): Likewise.
4046 ($(gij_OBJECTS)): Depend on nat_headers.
4048 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4049 `setURL', not `url.set'.
4051 2000-04-20 Tom Tromey <tromey@cygnus.com>
4053 Fix for PR java.io/204:
4054 * java/io/PipedInputStream.java, java/io/PipedReader.java,
4055 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4058 Fix for PR libgcj/212:
4059 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4060 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4061 * java/lang/Class.h (_Jv_word): Declare.
4063 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4065 2000-04-19 Tom Tromey <tromey@cygnus.com>
4067 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4068 doesn't have a loader.
4070 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4072 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4073 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4075 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4077 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4079 (available): Initialize `where' to prevent bogus compiler warning.
4081 2000-04-12 Tom Tromey <tromey@cygnus.com>
4083 * java/lang/natString.cc (intern): Temporarily disable finalizer
4086 * java/lang/natString.cc (unintern): Added `obj' argument.
4087 (intern): Register finalizer for string.
4088 * java/lang/String.java (unintern): Now static; added obj
4091 2000-04-11 Tom Tromey <tromey@cygnus.com>
4093 * java/util/Vector.java (VectorEnumeration): Now `final'.
4094 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4095 (HashtableEnumeration): Likewise.
4096 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4097 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4099 2000-04-10 Warren Levy <warrenl@cygnus.com>
4101 * java/io/ObjectStreamException.java: New file.
4102 * java/io/OptionalDataException.java: New file.
4103 * java/io/StreamCorruptedException.java: New file.
4104 * java/math/BigDecimal.java: New file.
4105 * java/sql/CallableStatement.java: New file.
4106 * java/sql/Connection.java: New file.
4107 * java/sql/DataTruncation.java: New file.
4108 * java/sql/DatabaseMetaData.java: New file.
4109 * java/sql/Date.java: New file.
4110 * java/sql/Driver.java: New file.
4111 * java/sql/DriverManager.java: New file.
4112 * java/sql/DriverPropertyInfo.java: New file.
4113 * java/sql/PreparedStatement.java: New file.
4114 * java/sql/ResultSet.java: New file.
4115 * java/sql/ResultSetMetaData.java: New file.
4116 * java/sql/SQLException.java: New file.
4117 * java/sql/SQLWarning.java: New file.
4118 * java/sql/Statement.java: New file.
4119 * java/sql/Time.java: New file.
4120 * java/sql/Timestamp.java: New file.
4121 * java/sql/Types.java: New file.
4122 * Makefile.am: Added above new files.
4123 * Makefile.in: Rebuilt.
4125 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4126 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4127 DatagramSocket constructor instead of null.
4129 2000-04-08 Anthony Green <green@cygnus.com>
4131 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4134 2000-04-08 Anthony Green <green@cygnus.com>
4136 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4137 (_Jv_MutexUnlock): Ditto.
4138 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4139 (_Jv_MutexUnlock): Ditto.
4141 2000-04-08 Anthony Green <green@cygnus.com>
4143 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4144 (ensureCapacity_unsynchronized): New private method.
4145 (append): Use ensureCapacity_unsynchronized.
4147 2000-04-08 Tom Tromey <tromey@cygnus.com>
4149 * Makefile.in: Rebuilt.
4150 * Makefile.am (awt_java_source_files): Added new files.
4151 * java/awt/IllegalComponentStateException.java: New file.
4152 * java/awt/ItemSelectable.java: New file.
4153 * java/awt/event/WindowEvent.java: Finished.
4154 * java/awt/event/TextEvent.java: Finished.
4155 * java/awt/event/ContainerEvent.java: New file.
4156 * java/awt/Component.java (getX, getY): New methods.
4157 * java/awt/event/PaintEvent.java: New file.
4158 * java/awt/event/MouseEvent.java: New file.
4159 * java/awt/ActiveEvent.java: New file.
4160 * java/awt/event/KeyEvent.java: Finished.
4161 * java/awt/event/ItemEvent.java: New file.
4162 * java/awt/Adjustable.java: New file.
4163 * java/awt/event/InputMethodEvent.java: New file.
4164 * java/awt/event/InputEvent.java: Finished.
4165 * java/awt/event/FocusEvent.java: New file.
4166 * java/awt/event/MouseMotionAdapter.java: New file.
4167 * java/awt/event/MouseAdapter.java: New file.
4168 * java/awt/event/KeyAdapter.java: New file.
4169 * java/awt/event/FocusAdapter.java: New file.
4170 * java/awt/event/ContainerAdapter.java: New file.
4171 * java/awt/event/ComponentEvent.java: Finished.
4172 * java/awt/event/AdjustmentEvent.java: New file.
4173 * java/awt/event/ComponentAdapter.java: New file.
4174 * java/awt/event/ActionEvent.java: Finished.
4175 * java/awt/event/MouseMotionListener.java: New file.
4176 * java/awt/event/MouseListener.java: New file.
4177 * java/awt/event/ItemListener.java: New file.
4178 * java/awt/event/InputMethodListener.java: New file.
4179 * java/awt/event/ContainerListener.java: New file.
4180 * java/awt/event/FocusListener.java: New file.
4181 * java/awt/event/ComponentListener.java: New file.
4182 * java/awt/event/AWTEventListener.java: New file.
4183 * java/awt/event/AdjustmentListener.java: New file.
4185 2000-04-08 Anthony Green <green@cygnus.com>
4187 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4188 check when we have to.
4190 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4193 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4196 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4197 inline hasMoreElements.
4199 2000-04-05 Tom Tromey <tromey@cygnus.com>
4201 * configure: Rebuilt.
4202 * configure.in: Recognize --enable-java-awt.
4203 (AWT): New conditional.
4204 * Makefile.in: Rebuilt.
4205 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4207 (libgcjawt_la_SOURCES): New macro.
4208 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4209 (libgcjawt_la_DEPENDENCIES): Likewise.
4210 (libgcjawt_la_LIBADD): Likewise.
4211 (libgcjawt_la_LDFLAGS): Likewise.
4212 (libgcj.zip): Depend on cond_java_awt_source_files
4213 (cond_awt_java_source_files): New macro.
4214 (MOSTLYCLEANFILES): Added awto_files.
4215 (awto_files): New macro. Use where javao_files used.
4216 (nat_headers): Use cond_awt_java_source_files.
4218 2000-04-04 Tom Tromey <tromey@cygnus.com>
4220 * Makefile.in: Rebuilt.
4221 * Makefile.am (awt_java_source_files): Added AWTException.java.
4222 * java/awt/AWTException.java: New file.
4224 2000-04-03 Tom Tromey <tromey@cygnus.com>
4226 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4227 commentary from Alex.
4229 * Makefile.in: Rebuilt.
4230 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4233 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4235 * configure: Rebuilt.
4236 * configure.in: Add --disable-jvmpi.
4237 * include/config.h.in: Rebuilt.
4238 * acconfig.h: Add ENABLE_JVMPI.
4240 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4241 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4242 (_Jv_JVMPI_Notify_THREAD_END): New define.
4243 (_Jv_JVMPI_Notify_THREAD_END): New define.
4244 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4245 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4246 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4248 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4251 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4252 (finish_): Generate JVMPI thread end events.
4253 (run_): Generate JVMPI thread start events.
4254 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4255 preloaded JNI library.
4256 Include JVMPI headers if necessary.
4257 (run): Generate JVMPI thread start events.
4259 * boehm.cc: Define GC_disable and GC_enable.
4260 (_Jv_DisableGC): New function.
4261 (_Jv_EnableGC): New function.
4262 (disable_gc_mutex): Declare.
4263 * nogc.cc (_Jv_DisableGC): New function.
4264 (_Jv_EnableGC): New function.
4266 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4267 (_Jv_JVMPI_Interface): Define.
4268 (jvmpiEnableEvent): New function.
4269 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4271 * include/jvmpi.h: New file.
4273 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4275 * Makefile.in: New #defines and friends for Thread.h.
4276 * Makefile.am: Ditto.
4277 * posix-threads.cc: (struct starter): Remove `object'.
4278 (_Jv_CondWait): Use interruptable condition variables and new
4279 recursive mutexes. New return codes on interrupt or non-ownership
4281 (_Jv_CondNotify): Ditto.
4282 (_Jv_CondNotifyAll): Ditto.
4283 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4284 the target thread by signaling its wait condition.
4285 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4286 not the starter struct. Initialize wait_mutex and wait_cond.
4287 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4289 (_Jv_MutexUnlock): Ditto.
4290 (really_start): Set info->data->thread from pthread_self() to work
4291 around a race condition. Destroy wait_mutex and wait_cond when run()
4293 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4294 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4296 startable_flag: New private field.
4297 (Thread): Initialize `startable_flag'.
4298 (toString): Check for null thread group.
4299 * java/lang/natThread.cc: (struct natThread): New fields
4300 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4301 (class locker): Removed.
4302 (initialize_native): Initialize `join_cond' and `join_mutex'.
4303 (interrupt): Now just calls _Jv_ThreadInterrupt().
4304 (join): Simplified. Just wait on the target thread's join condition.
4305 (finish_): Remove join list code. Unset thread group. Signal
4306 potential joiners by notifying the dying threads join_cond.
4307 (start): Check for illegal restarts.
4308 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4310 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4311 #defines and #ifdefs.
4312 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4313 `wait_mutex', `next'.
4314 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4315 directly mapping to pthread_cond_t.
4316 (struct _Jv_Mutex_t): New recursive implementation.
4317 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4318 _Jv_HaveCondDestroy: Never define this for posix-threads.
4319 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4320 (_Jv_CondNotifyAll): Ditto.
4321 (_Jv_MutexLock): Ditto.
4322 (_Jv_MutexUnlock): Ditto.
4323 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4324 (_Jv_MutexDestroy): Ditto.
4325 (_Jv_CondDestroy): Removed.
4326 (_Jv_PthreadGetMutex): Removed.
4327 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4328 error. Add a FIXME about this.
4329 (_Jv_CondNotifyAll): Ditto.
4330 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4331 _JV_NOT_OWNER on other errors. Add FIXME.
4333 2000-03-26 Tom Tromey <tromey@cygnus.com>
4335 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4337 (call): Don't throw exception here.
4339 2000-03-26 Tom Tromey <tromey@cygnus.com>
4341 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4342 * interpret.cc: Use SIZEOF_VOID_P.
4343 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4344 (_Jv_loadLong): Likewise.
4345 (_Jv_storeDouble): Likewise.
4346 * configure: Rebuilt.
4347 * configure.in: Check size of void*.
4349 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4351 2000-03-26 Hans Boehm <boehm@acm.org>
4353 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4354 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4356 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4357 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4358 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4359 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4361 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4362 (FFI_RAW_SIZE): Likewise.
4363 (_Jv_InterpMethod::ncode): Use them.
4364 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4365 STORED): Define differently on a 64 bit machine.
4366 (continue1): Use ffi_java_raw_call when appropriate.
4368 2000-03-24 Warren Levy <warrenl@cygnus.com>
4370 * java/math/BigInteger.java(divide): Handle the special case when
4371 dividing by 1 and the high bit of the dividend is set.
4372 (setShiftRight): Handle case when count == 0.
4374 2000-03-24 Warren Levy <warrenl@cygnus.com>
4376 * java/awt/Font.java(isBold): Fix syntax error.
4378 * java/awt/Frame.java(postEvent): ditto.
4379 * java/awt/Menu.java(postEvent): ditto.
4380 * java/awt/MenuBar.java(postEvent): ditto.
4381 * java/awt/Toolkit.java(init): Included a stub.
4383 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4385 * java/awt/Event.java: Add all the event type constants.
4386 (Event): Implemented constructors.
4387 (controlDown): Implemented.
4388 (metaDown): Implemented.
4389 (paramString): Stubbed.
4390 (shiftDown): Implemented.
4391 (toString): Implemented.
4392 (translate): Implemented.
4394 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4396 * java/lang/natClass.cc (isInstance): Initialize `this'.
4397 (isAssignableFrom): Initialize `this' and `klass'.
4398 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4399 implemented by any loaded class, so return false.
4400 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4401 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4403 2000-03-19 Warren Levy <warrenl@cygnus.com>
4405 * java/awt/Color.java: Specified java.io for Serializable.
4406 * java/awt/Toolkit.java: Imported java.net.URL.
4408 2000-03-19 Warren Levy <warrenl@cygnus.com>
4410 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4412 2000-03-16 Warren Levy <warrenl@cygnus.com>
4414 * java/awt/Color.java: New file.
4415 * java/awt/Graphics.java: New file.
4416 * java/awt/Image.java: New file.
4417 * java/awt/Paint.java: New file.
4418 * java/awt/PaintContext.java: New file.
4419 * java/awt/Transparency.java: New file.
4420 * java/util/Collection.java: New file.
4421 * java/util/Comparator.java: New file.
4422 * java/util/Iterator.java: New file.
4423 * java/util/List.java: New file.
4424 * java/util/ListIterator.java: New file.
4425 * Makefile.am: Added above new files.
4426 * Makefile.in: Rebuilt.
4428 * java/awt/Font.java (PLAIN): New field.
4430 (ITALIC): New field.
4431 (ROMAN_BASELINE): New field.
4432 (CENTER_BASELINE): New field.
4433 (HANGING_BASELINE): New field.
4437 (pointSize): New field.
4438 (Font): Implemented constructor.
4439 (isPlain): Implemented method.
4440 (isBold): Implemented method.
4441 (isItalic): Implemented method.
4442 (getName): Implemented method.
4443 (getStyle): Implemented method.
4444 (getSize): Implemented method.
4445 (getSize2D): Implemented method.
4447 * java/awt/Frame.java (getFont): Stubbed.
4448 (postEvent): Stubbed.
4450 * java/awt/Menu.java (postEvent): Stubbed.
4451 * java/awt/MenuBar.java (getFont): Stubbed.
4452 (postEvent): Stubbed.
4453 * java/awt/Toolkit.java (getImage): Added abstract method.
4455 2000-03-15 Tom Tromey <tromey@cygnus.com>
4457 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4459 * prims.cc (win32_exception_handler): Reformatted.
4461 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4462 (_Jv_HaveMutexDestroy): Likewise.
4464 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4466 * java/io/natFileDescriptorWin32.cc: New file.
4467 * java/io/natFileWin32.cc: New file.
4468 * java/net/natInetAddress.cc: Added conditional inclusion of
4469 Windows / Winsock headers.
4470 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4471 inclusion of Windows / Winsock headers.
4472 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4473 Windows / Winsock headers.
4474 * include/win32-signal.h: New file.
4475 * include/win32-threads.h: New file.
4476 * win32-threads.cc: New file.
4477 * exception.cc (win32_get_restart_frame): New function.
4478 * prims.cc (win32_exception_handler): New function.
4479 (main_init) Performs Winsock initialisation.
4480 (main_init) Installs exeception handler.
4482 2000-03-14 Tom Tromey <tromey@cygnus.com>
4484 * jni.cc (mangled_name): Fixed assertion.
4485 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4486 turned assert into actual failure.
4488 2000-03-09 Warren Levy <warrenl@cygnus.com>
4490 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4491 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4492 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4494 2000-03-09 Warren Levy <warrenl@cygnus.com>
4496 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4497 * java/security/DigestException.java: New file.
4498 * java/security/GeneralSecurityException.java: New file.
4499 * java/security/InvalidAlgorithmParameterException.java: New file.
4500 * java/security/InvalidKeyException.java: New file.
4501 * java/security/InvalidParameterException.java: New file.
4502 * java/security/Key.java: New file.
4503 * java/security/KeyException.java: New file.
4504 * java/security/KeyPair.java: New file.
4505 * java/security/KeyPairGenerator.java: New file.
4506 * java/security/KeyPairGeneratorSpi.java: New file.
4507 * java/security/NoSuchProviderException.java: New file.
4508 * java/security/PrivateKey.java: New file.
4509 * java/security/Provider.java: New file.
4510 * java/security/PublicKey.java: New file.
4511 * java/security/SecureRandom.java: New file.
4512 * java/security/Security.java: New file.
4513 * java/security/Signature.java: New file.
4514 * java/security/SignatureException.java: New file.
4515 * java/security/interfaces/DSAKey.java: New file.
4516 * java/security/interfaces/DSAParams.java: New file.
4517 * java/security/interfaces/DSAPrivateKey.java: New file.
4518 * java/security/interfaces/DSAPublicKey.java: New file.
4519 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4520 * java/security/interfaces/RSAPrivateKey.java: New file.
4521 * java/security/interfaces/RSAPublicKey.java: New file.
4522 * java/security/spec/AlgorithmParameterSpec.java: New file.
4523 * java/security/spec/InvalidKeySpecException.java: New file.
4524 * java/security/spec/InvalidParameterSpecException.java: New file.
4525 * java/security/spec/KeySpec.java: New file.
4526 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4527 * java/security/spec/RSAPrivateKeySpec.java: New file.
4528 * java/security/spec/RSAPublicKeySpec.java: New file.
4529 * Makefile.am: Added above java.security files.
4530 * Makefile.in: Rebuilt.
4532 * java/security/MessageDigest.java: Rewritten.
4533 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4535 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4539 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4541 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4542 _Jv_PrepareConstantTimeTables.
4543 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4544 classes should have an IDT, so don't return if klass is an array
4547 2000-03-08 Tom Tromey <tromey@cygnus.com>
4549 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4550 of `void' to be created.
4552 2000-03-08 Warren Levy <warrenl@cygnus.com>
4554 * java/math/BigInteger.java(signum): Handle zero properly.
4556 2000-03-07 Tom Tromey <tromey@cygnus.com>
4558 * All files: Updated copyright information.
4559 * COPYING: New file.
4560 * COPYING.LIB: Removed.
4561 * LIBGCJ_LICENSE: We now use GPL + special exception.
4563 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4565 * resolve.cc (_Jv_SearchMethodInClass): New function.
4566 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4567 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4569 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4571 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4572 (struct _Jv_ifaces): New declaration.
4573 JV_CLASS: New macro definition.
4574 (getComponentType): Relocate below isArray() for inlining.
4575 (getModifiers): Declare `inline'.
4576 (getSuperclass): Ditto.
4578 (isPrimitive): Ditto.
4579 (_Jv_IsAssignableFrom): New prototype.
4580 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4582 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4583 Check for JV_STATE_DONE before invoking initializeClass().
4584 (_Jv_PrepareConstantTimeTables): New prototype.
4585 (_Jv_GetInterfaces): Ditto.
4586 (_Jv_GenerateITable): Ditto.
4587 (_Jv_GetMethodString): Ditto.
4588 (_Jv_AppendPartialITable): Ditto.
4589 (_Jv_FindIIndex): Ditto.
4590 depth, ancestors, idt: New class fields.
4592 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4593 inline function `_Jv_IsAssignableFrom'. Use that function.
4594 (isInstance): Declare `inline'.
4595 (initializeClass): Get lock on class before checking `state'. Unlock
4596 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4598 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4599 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4600 class->depth and ancestor table.
4601 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4602 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4603 _Jv_IsAssignableFrom.
4604 (_Jv_CheckArrayStore): Ditto.
4605 (_Jv_LookupInterfaceMethodIdx): New function.
4606 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4607 (_Jv_PrepareConstantTimeTables): New function.
4608 (_Jv_IndexOf): Ditto.
4609 (_Jv_GetInterfaces): Ditto.
4610 (_Jv_GenerateITable): Ditto.
4611 (_Jv_GetMethodString): Ditto.
4612 (_Jv_AppendPartialITable): Ditto.
4613 iindex_mutex, iindex_mutex_initialized: New static fields.
4614 (_Jv_FindIIndex): New function.
4616 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4618 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4619 (_Jv_CheckArrayStore): Ditto.
4620 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4621 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4622 Moved to gcj/array.h.
4623 (_Jv_Realloc): New function.
4625 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4627 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4628 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4629 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4630 JvNewDoubleArray): Implementations moved from prims.cc and
4633 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4635 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4637 2000-03-06 Tom Tromey <tromey@cygnus.com>
4639 * jni.cc (MARK_NONE): New define.
4640 (MARK_USER): Likewise.
4641 (MARK_SYSTEM): Likewise.
4642 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4644 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4645 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4646 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4647 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4649 (call): Use MARK_SYSTEM.
4650 (_Jv_GetJNIEnvNewFrame): New function.
4651 (_Jv_LookupJNIMethod): New function.
4652 (_Jv_JNI_PopSystemFrame): New function.
4653 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4655 2000-03-05 Tom Tromey <tromey@cygnus.com>
4657 Fix for PR libgcj/43:
4658 * include/Makefile.in: Rebuilt.
4659 * include/Makefile.am (include_HEADERS): New define.
4661 2000-03-05 Anthony Green <green@redhat.com>
4663 * gcj/javaprims.h ("Java"): Remove FirstThread.
4665 * configure.host: Fix __NO_MATH_INLNES botch.
4667 * Makefile.in: Rebuilt.
4668 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4669 (gnu/gcj/runtime/FirstThread.h): Moved.
4670 (ordinary_java_source_files): Move FirstThread.java.
4671 * prims.cc: Deal with FirstThread movement.
4673 (_Jv_RunMain): Ditto.
4675 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4676 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4678 2000-03-05 Warren Levy <warrenl@cygnus.com>
4680 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4681 Handle null addresses.
4683 2000-03-04 Anthony Green <green@redhat.com>
4685 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4688 2000-03-04 Anthony Green <green@redhat.com>
4690 * configure: Rebuilt.
4691 * configure.in (ZLIBTESTSPEC): New macro.
4692 (GCTESTSPEC): New macro.
4693 (LIBGCJTESTSPEC): New macro.
4694 * libgcj-test.spec.in: New file.
4696 2000-03-02 Tom Tromey <tromey@cygnus.com>
4698 * include/java-interp.h: Don't include MethodInvocation.h.
4699 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4700 * Makefile.in: Rebuilt.
4701 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4702 (ordinary_java_source_files): Don't mention
4703 MethodInvocation.java.
4704 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4705 * interpret.cc (MethodInvocation::continue1): Removed.
4706 (run): Handle exceptions here.
4707 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4709 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4711 (defineClass2): Removed.
4713 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4715 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4717 (hack_call): Removed.
4719 * java/lang/Class.h (Class): Removed hackRunInitializers,
4721 * java/lang/natClass.cc (hackRunInitializers): Removed.
4722 (initializeClass): Catch exceptions here.
4723 Include ExceptionInInitializerError.h.
4724 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4727 * java/lang/Object.h (Object): Don't mention hack12_6.
4728 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4730 * java/lang/Object.java (hack12_6): Removed.
4732 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4733 (start): Use run_, not run__.
4734 * java/lang/Thread.java (run_): Renamed from run__; old run_
4737 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4738 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4739 (_Jv_JNI_DefineClass): Likewise.
4740 (_Jv_JNI_ThrowNew): Likewise.
4741 (_Jv_JNI_AllocObject): Likewise.
4742 (_Jv_JNI_GetAnyMethodID): Likewise.
4743 (_Jv_JNI_CallAnyMethodV): Likewise.
4744 (_Jv_JNI_CallAnyMethodA): Likewise.
4745 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4746 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4747 (_Jv_JNI_GetAnyFieldID): Likewise.
4748 (_Jv_JNI_NewString): Likewise.
4749 (_Jv_JNI_NewStringUTF): Likewise.
4750 (_Jv_JNI_GetStringUTFChars): Likewise.
4751 (_Jv_JNI_NewObjectArray): Likewise.
4752 (_Jv_JNI_NewPrimitiveArray): Likewise.
4753 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4754 (_Jv_JNI_GetStringRegion): Likewise.
4755 (_Jv_JNI_GetStringUTFRegion): Likewise.
4756 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4757 (_Jv_JNI_MonitorEnter): Likewise.
4758 (_Jv_JNI_MonitorExit): Likewise.
4759 (_Jv_JNI_ToReflectedField): Likewise.
4760 (_Jv_JNI_ToReflectedMethod): Likewise.
4761 (_Jv_JNI_RegisterNatives): Likewise.
4762 (_Jv_JNI_AttachCurrentThread): Likewise.
4763 (_Jv_JNI_DestroyJavaVM): Likewise.
4765 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4767 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4768 error caused by the incorrect casting of a long to an int.
4770 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4772 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4773 SIGSEV caused by use of the wrong instance variable.
4775 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4777 * java/io/File.java (File(String, String)): For dirPath, treat an
4778 empty String the same as `null'.
4780 2000-02-26 Anthony Green <green@cygnus.com>
4782 * gnu/gcj/io/MimeTypes.java: Test for null.
4784 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4785 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4787 * java/net/URLConnection.java: Update copyright notice.
4789 2000-02-25 Tom Tromey <tromey@cygnus.com>
4791 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4794 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4796 * java/net/URLConnection.java (initializeDateFormats): New
4798 (getHeaderFieldDate): Call initializeDateFormats if required.
4799 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4801 Fix for PR libgcj/38.
4803 2000-02-24 Warren Levy <warrenl@cygnus.com>
4805 * java/math/BigInteger.java(ival): Made private.
4809 2000-02-20 Anthony Green <green@cygnus.com>
4811 * Makefile.in: Rebuilt.
4812 * Makefile.am (ordinary_java_source_files): Add
4813 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4815 * scripts/MakeDefaultMimeTypes.java: New file.
4816 * scripts/mime.types: New file.
4817 * scripts/classes.pl: Moved from top level.
4818 * classes.pl: Moved to scripts directory.
4820 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4822 * gnu/gcj/io/MimeTypes.java: New file.
4823 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4825 2000-02-20 Tom Tromey <tromey@cygnus.com>
4827 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4829 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4831 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4834 2000-02-18 Tom Tromey <tromey@cygnus.com>
4836 * include/jvm.h (_Jv_GetJavaVM): Declare.
4837 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4838 (_Jv_MethodBase::get_method): New method.
4839 (_Jv_JNIMethod::set_function): New method.
4840 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4841 (_Jv_JNI_RegisterNatives): New function.
4842 (_Jv_JNIFunctions): Updated for new functions.
4843 (_Jv_GetJavaVM): New function.
4844 (_Jv_JNI_GetJavaVM): Use it. Now static.
4845 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4846 is already a Java thread but does not have a JNIEnv yet.
4848 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4851 2000-02-17 Tom Tromey <tromey@cygnus.com>
4853 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4856 2000-02-16 Tom Tromey <tromey@cygnus.com>
4858 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4860 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4861 (_Jv_JNI_NewObject): Likewise.
4862 (_Jv_JNI_NewObjectA): Likewise.
4863 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4864 as "return" type to _Jv_CallAnyMethodA.
4865 (_Jv_JNI_CallAnyMethodA): Likewise.
4866 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4868 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4871 2000-02-15 Tom Tromey <tromey@cygnus.com>
4873 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4875 (init_cif): Added `rtype_p' argument.
4876 * include/java-interp.h (class _Jv_MethodBase): Added
4878 (class _Jv_InterpMethod): Removed args_raw_size.
4879 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4880 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4881 class pointer as well as the ordinary arguments.
4883 * jni.cc (mangled_name): Skip leading `(' in signature.
4885 * jni.cc (add_char): Added missing `else'.
4887 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4890 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4894 * java/lang/natRuntime.cc (_load): Include library path with
4897 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4900 * java/lang/natThread.cc (dumpStack): Removed.
4901 * java/lang/Thread.java (dumpStack): Implemented.
4903 2000-02-15 Tom Tromey <tromey@cygnus.com>
4905 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4906 with `lib' for loadLibrary. Fixes PR gcj/150.
4908 2000-02-14 Warren Levy <warrenl@cygnus.com>
4910 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4912 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4916 (modPow): Rewritten to not use the naive, slow, brute force approach.
4917 (isProbablePrime): Implemented.
4918 (testBit): Implemented.
4919 (flipBit): Implemented.
4920 (getLowestSetBit): Implemented.
4922 2000-02-16 Anthony Green <green@redhat.com>
4924 * configure.host: Use the same options for i386 and i486 as we do
4927 2000-02-12 Tom Tromey <tromey@cygnus.com>
4929 * java/io/File.java (createTempFile): Use low bits from counter,
4932 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4934 * THANKS: More thanks.
4936 2000-02-11 Tom Tromey <tromey@cygnus.com>
4938 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4939 astore instruction. From Hans Boehm.
4941 2000-02-11 Warren Levy <warrenl@cygnus.com>
4943 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4944 (BigInteger(String)): New constructor.
4945 (not): Rewritten using version from Kawa's BitOps class.
4946 (valueOf): New private methods from Kawa's BitOps class.
4953 (andNot): Implemented.
4954 (clearBit): Implemented.
4955 (setBit): Implemented.
4956 (bitCount): Implemented.
4957 (toByteArray): Implemented.
4959 2000-02-11 Tom Tromey <tromey@cygnus.com>
4961 * java/io/File.java (nextValue): Now synchronized.
4963 2000-02-10 Tom Tromey <tromey@cygnus.com>
4965 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4966 * java/io/FileDescriptor.java (EXCL): New static field.
4967 * java/io/File.java (tmpdir): New static field.
4968 (createTempFile): New method.
4969 (nextValue): New method.
4970 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4973 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4974 (jboolean): Declare as an attributed int, not a bool.
4975 (_Jv_func): Declare differently for C.
4977 * gnu/gcj/jni/natNativeThread.cc: New file.
4978 * gnu/gcj/jni/NativeThread.java: New file.
4979 * java/lang/Thread.java (data): Now a RawData.
4980 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4982 * Makefile.in: Rebuilt.
4983 * Makefile.am (java/lang/Thread.h): New target.
4984 (ordinary_java_source_files): Added NativeThread.java.
4985 (nat_source_files): Added natNativeThread.cc.
4986 * java/lang/natThread.cc: Include <jni.h>
4987 (struct natThread): Added `jni_env' field.
4988 (_Jv_GetCurrentJNIEnv): New function.
4989 (_Jv_SetCurrentJNIEnv): Likewise.
4990 (initialize_native): Initialize jni_env.
4992 * jni.cc (ThreadGroupClass): New define.
4993 (_Jv_JNI_InvokeFunctions): New structure.
4994 (JNI_GetCreatedJavaVMs): New function.
4995 (the_vm): New global.
4996 (JNI_GetDefaultJavaVMInitArgs): New function.
4997 Include NativeThread.h.
4998 (NativeThreadClass): New define.
4999 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5000 (_Jv_JNI_DestroyJavaVM): New function.
5001 (_Jv_JNI_AttachCurrentThread): New function.
5002 (_Jv_JNI_DetachCurrentThread): New function.
5003 (_Jv_JNI_GetEnv): New function.
5004 (JNI_CreateJavaVM): New function.
5005 (_Jv_JNI_GetJavaVM): New function.
5006 (_Jv_JNIFunctions): Added entry for GetJavaVM.
5007 * include/jni.h (JavaVMAttachArgs): New structure.
5008 (JNI_EDETACHED): New define.
5009 (JNI_EVERSION): Likewise.
5010 (JavaVM): Define properly.
5011 (struct JNIInvokeInterface): New structure.
5012 (class _Jv_JavaVM): New class.
5013 (JNI_OnLoad, JNI_OnUnload): Declare.
5014 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5015 JNI_GetCreatedJavaVMs): Declare.
5016 (JavaVMInitArgs): New typedef.
5017 (JavaVMOption): Likewise.
5018 (JNI_ERR): New define.
5021 2000-02-10 Andrew Haley <aph@cygnus.com>
5023 * interpret.cc: Don't include fdlibm.h.
5024 Replace #if with #ifdef throughout.
5025 Declare extern __ieee754_fmod.
5026 (continue1): Remove op_getfield, op_getstatic, op_putfield,
5028 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5029 Search class hierarchy for superclass vtable.
5031 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5032 off the end of a pointer list.
5034 * java/lang/natThread.cc (stop): Don't abort, throw an exception
5038 2000-02-09 Tom Tromey <tromey@cygnus.com>
5040 * java/lang/natRuntime.cc (_load): Call add_library.
5041 (loadLibraryInternal): Likewise.
5043 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5044 iconv_close when handle is not NULL. Thanks to Andrew Haley.
5045 (Output_iconv::finalize): Likewise.
5047 2000-02-08 Tom Tromey <tromey@cygnus.com>
5049 * java/util/Properties.java (setProperty): New method.
5050 (store): New method.
5052 2000-02-07 Tom Tromey <tromey@cygnus.com>
5054 * java/lang/Runtime.java (_load): Declare.
5055 (load, loadLibrary): Wrote in terms of _load.
5056 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5058 (loadLibrary): Likewise.
5060 (_load): New method.
5061 (loadLibrary, load): Removed.
5063 * jni.cc (ThrowableClass): New define.
5064 (_Jv_JNI_Throw): Check argument.
5065 (_Jv_JNI_ThrowNew): Likewise.
5066 (wrap_value): Don't wrap object if it is NULL.
5067 (_Jv_JNI_DefineClass): Use wrap_value.
5068 (_Jv_JNI_FindClass): Likewise.
5069 (_Jv_JNI_GetSuperclass): Likewise.
5070 (_Jv_JNI_ExceptionOccurred): Likewise.
5071 (_Jv_JNI_AllocObject): Likewise.
5072 (_Jv_JNI_GetObjectClass): Likewise.
5073 (_Jv_JNI_NewString): Likewise.
5074 (_Jv_JNI_NewStringUTF): Likewise.
5075 (_Jv_JNI_NewObjectArray): Likewise.
5076 (_Jv_JNI_GetObjectArrayElement): Likewise.
5077 (_Jv_JNI_NewPrimitiveArray): Likewise.
5078 (_Jv_JNI_ToReflectedField): Likewise.
5079 (_Jv_JNI_ToReflectedMethod): Likewise.
5080 (_Jv_JNI_AllocObject): Check argument.
5081 (_Jv_JNI_NewObjectV): Likewise.
5082 (_Jv_JNI_NewObject): Likewise.
5083 (_Jv_JNI_NewObjectA): Likewise.
5084 (_Jv_JNI_GetObjectClass): Likewise.
5085 (_Jv_JNI_GetField): Likewise.
5086 (_Jv_JNI_SetField): Likewise.
5088 * interpret.cc (PUSHL): Don't use expression statement.
5093 * jni.cc (add_char): Conditional on INTERPRETER.
5094 (mangled_name): Likewise.
5096 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5098 (class _Jv_JNIMethod): Likewise.
5100 2000-02-04 Warren Levy <warrenl@cygnus.com>
5102 * Makefile.am: Added MPN.java and BigInteger.java.
5103 * Makefile.in: Rebuilt.
5104 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5106 * java/math/BigInteger.java: New file. Based primarily on
5107 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5109 2000-02-04 Tom Tromey <tromey@cygnus.com>
5111 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5113 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5114 if the method is native.
5115 * resolve.cc (ncode): Don't handle native methods.
5116 (_Jv_JNIMethod::ncode): New method.
5117 (_Jv_PrepareClass): Handle native methods.
5118 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5119 Include AbstractMethodError.h.
5120 (add_char): New function.
5121 (mangled_name): Likewise.
5122 * include/java-interp.h (class _Jv_JNIMethod): New class.
5123 (class _Jv_MethodBase): New class.
5124 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5125 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5128 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5129 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5130 libraries): New globals.
5131 (add_library): New function.
5132 (_Jv_FindSymbolInExecutable): New function.
5134 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5137 2000-02-04 Andrew Haley <aph@cygnus.com>
5139 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5140 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5141 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5142 printStackTrace to printRawStackTrace.
5144 2000-02-03 Tom Tromey <tromey@cygnus.com>
5146 * java/util/Calendar.java (toString): New method.
5147 * java/util/SimpleTimeZone.java (clone): New method.
5148 (toString): New method.
5149 * java/util/TimeZone.java (clone): New method.
5150 * java/text/SimpleDateFormat.java (clone): New method.
5151 * java/text/NumberFormat.java (clone): New method.
5152 (equals): New method.
5153 * java/text/Format.java (clone): New method.
5154 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5156 (clone): New method.
5157 * java/text/DateFormat.java (clone): New method.
5158 * java/text/Collator.java (clone): New method.
5160 2000-02-03 Tom Tromey <tromey@cygnus.com>
5162 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5165 2000-02-01 Tom Tromey <tromey@cygnus.com>
5167 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5168 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5169 constructing the closure if the function is native.
5170 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5171 a template function, #if'd out, or static.
5172 Include <java-interp.h>.
5174 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5176 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5178 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5179 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5181 (wrap_value): New function.
5182 (_Jv_JNI_CallAnyMethodV): Use it.
5183 (_Jv_JNI_CallAnyMethodA): Likewise.
5184 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5185 (_Jv_JNI_GetStaticField): Likewise.
5187 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5188 (_Jv_JNI_GetStaticField): Likewise.
5190 2000-01-31 Tom Tromey <tromey@cygnus.com>
5192 * prims.cc (_Jv_MallocUnchecked): New function.
5193 (main_init): Call _Jv_JNI_Init.
5194 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5195 (_Jv_JNI_Init): Declare.
5196 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5198 (_Jv_JNI_NewGlobalRef): New function.
5199 (_Jv_JNI_DeleteGlobalRef): New function.
5200 (_Jv_JNI_DeleteLocalRef): New function.
5201 (_Jv_JNI_conversion_call): Initialize and clear local reference
5203 (_Jv_JNI_NewLocalRef): New function.
5204 (struct _Jv_JNI_LocalFrame): New structure.
5205 (_Jv_JNI_PushLocalFrame): New function.
5206 (_Jv_JNI_EnsureLocalCapacity): New function.
5207 (FRAME_SIZE): New define.
5208 (_Jv_JNI_GetStringChars): Mark string, not characters.
5209 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5210 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5211 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5213 (_Jv_JNI_DefineClass): Make return value a local ref.
5214 (_Jv_JNI_FindClass): Likewise.
5215 (_Jv_JNI_GetSuperclass): Likewise.
5216 (_Jv_JNI_ExceptionOccurred): Likewise.
5217 (_Jv_JNI_AllocObject): Likewise.
5218 (_Jv_JNI_GetObjectClass): Likewise.
5219 (_Jv_JNI_CallAnyMethodV): Likewise.
5220 (_Jv_JNI_NewString): Likewise.
5221 (_Jv_JNI_NewStringUTF): Likewise.
5222 (_Jv_JNI_NewObjectArray): Likewise.
5223 (_Jv_JNI_GetObjectArrayElement): Likewise.
5224 (_Jv_JNI_ToReflectedField): Likewise.
5225 (_Jv_JNI_ToReflectedMethod): Likewise.
5226 (_Jv_JNIFunctions): Updated table for new functions.
5227 (_Jv_JNI_Init): New function.
5228 (mark_for_gc): Wrote.
5229 (unmark_for_gc): Wrote.
5230 * include/jni.h (struct JNINativeInterface): Removed name from
5231 PopLocalFrame parameter.
5232 (class _Jv_JNIEnv): Added `locals' field.
5234 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5236 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5239 2000-01-30 Tom Tromey <tromey@cygnus.com>
5241 * include/config.h.in: Rebuilt.
5242 * acconfig.h (HAVE_ICONV): Define.
5243 * configure: Rebuilt.
5244 * configure.in: Check for `iconv' function.
5245 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5246 no specific encoder exists.
5247 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5248 no specific encoder exists.
5249 * Makefile.in: Rebuilt.
5250 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5252 (nat_source_files): Added natIconv.cc.
5253 * gnu/gcj/convert/natIconv.cc: New file.
5254 * gnu/gcj/convert/Input_iconv.java: New file.
5255 * gnu/gcj/convert/Output_iconv.java: New file.
5257 2000-01-28 Tom Tromey <tromey@cygnus.com>
5259 * Makefile.in: Rebuilt.
5260 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5262 2000-01-26 Tom Tromey <tromey@cygnus.com>
5264 * gcj/method.h (JvNumMethods): Moved from Class.h.
5265 (JvGetFirstMethod): Likewise.
5266 * java/lang/Class.h (Object): Updated decl of
5267 _Jv_JNI_ToReflectedField.
5268 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5269 * Makefile.in: Rebuilt.
5270 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5271 argument of _Jv_JNI_ToReflectedField.
5272 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5274 (java/lang/reflect/Method.h): Likewise.
5275 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5277 (jweak): New typedef.
5278 (struct JNINativeInterface): Correctly declare remaining entries.
5279 * jni.cc: Include Class.h, ClassLoader.h.
5280 (_Jv_JNI_FindClass): New function.
5281 (_Jv_JNI_DefineClass): New function.
5282 (_Jv_JNI_conversion_call): New function.
5283 (_Jv_JNI_FindClass): Use current class loader to find class.
5284 (_Jv_JNI_ExceptionCheck): New function.
5285 (_Jv_JNI_FromReflectedField): Now static.
5286 (MethodClass): New define.
5287 (_Jv_JNI_FromReflectedMethod): New function.
5288 (_Jv_JNI_ToReflectedMethod): Likewise.
5290 (_Jv_JNI_IsAssignableFrom): Renamed.
5291 (_Jv_JNI_GetStringRegion): New function.
5292 Include StringIndexOutOfBoundsException.h.
5293 (_Jv_JNI_GetStringUTFRegion): New function.
5294 (_Jv_JNIFunctions): Updated for new functions.
5295 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5296 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5297 (_Jv_JNI_GetStringCritical): New function.
5298 (_Jv_JNI_ReleaseStringCritical): Likewise.
5299 (get_throwable): Removed.
5300 (GCJ_JV_JNIENV_FRIEND): Removed.
5301 (__GCJ_JNI_IMPL__): Define.
5304 * resolve.cc (get_ffi_type_from_signature): Handle case where
5307 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5309 * interpret.cc (run): Don't call println.
5310 Don't include PrintStream.h.
5312 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5313 nameIndex. Use "jint" as type for boffset.
5314 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5316 (Class): Likewise. Also changed type of method_count,
5317 vtable_method_count, size_in_bytes, field_count,
5318 static_field_count, interface_count.
5319 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5322 2000-01-21 Tom Tromey <tromey@cygnus.com>
5324 * java/lang/reflect/natConstructor.cc (newInstance): Use
5326 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5327 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5328 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5331 (invoke): Use _Jv_CallAnyMethodA.
5333 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5334 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5336 (struct _Jv_Method): Added getNextMethod method.
5337 (JvNumMethods): New function.
5338 (JvGetFirstMethod): Likewise.
5339 * gcj/field.h (JvGetFirstStaticField): New function.
5340 (JvNumStaticFields): Likewise.
5341 (getNextField): Renamed from getNextInstanceField.
5342 (struct _Jv_Field): New method getClass.
5343 * jni.cc: Wrote many new functions.
5344 * include/jni.h (JNI_TRUE): Define.
5345 (JNI_FALSE): Likewise.
5346 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5347 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5348 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5349 (jfieldID, jmethodID): Likewise.
5350 (JNI_COMMIT, JNI_ABORT): New defines.
5351 (JNINativeMethod): New struct.
5352 (struct JNINativeInterface): Correctly declared more entries.
5353 (class _Jv_JNIEnv): Added `ex' member.
5354 (JNI_VERSION_1_1): New define.
5355 (JNI_VERSION_1_2): Likewise.
5357 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5358 getNextInstanceField.
5360 2000-01-20 Tom Tromey <tromey@cygnus.com>
5362 * resolve.cc (StringClass): Removed.
5363 * defineclass.cc (StringClass): Removed.
5365 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5369 2000-01-19 Tom Tromey <tromey@cygnus.com>
5371 * interpret.cc (PC_REGISTER_ASM): Removed.
5373 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5374 From Bryce McKinlay.
5376 * All files: Updated copyright to reflect Cygnus purchase.
5378 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5380 * configure: Rebuilt.
5381 * configure.in: Recognize --disable-interpreter.
5383 2000-01-18 Andrew Haley <aph@cygnus.com>
5385 * name-finder.cc (lookup): Check for dladdr function.
5386 acconfig.h (HAVE_DLADDR): Add.
5387 configure.in: Check for HAVE_DLADDR
5389 include/config.h.in: Rebuilt.
5391 2000-01-17 Andrew Haley <aph@cygnus.com>
5393 * prims.cc (_Jv_RunMain): Set the name of this executable.
5395 2000-01-17 Tom Tromey <tromey@cygnus.com>
5397 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5398 when backtrace can't be computed.
5400 * configure: Rebuilt.
5401 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5403 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5404 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5405 (_Jv_FindClassInCache): Likewise.
5406 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5407 (findSystemClass): Try to load class from compiled module.
5409 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5410 (loadLibrary): Likewise.
5411 (lt_preloaded_symbols): Define.
5412 (loadLibraryInternal): New method.
5413 * include/config.h.in: Rebuilt.
5414 * acconfig.h (USE_LTDL): Added.
5415 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5416 (INCLUDES): Added $(INCLTDL).
5417 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5418 (libgcj_la_LIBADD): Likewise.
5419 * aclocal.m4, configure: Rebuilt.
5420 * configure.in: Added libltdl support.
5422 2000-01-15 Tom Tromey <tromey@cygnus.com>
5424 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5426 2000-01-14 Andrew Haley <aph@cygnus.com>
5428 * java/lang/natThrowable.cc: New file.
5430 * java/lang/Throwable.java (fillInStackTrace): Make native.
5431 (printStackTrace): Call native method to do this.
5432 (Throwable): Call fillInStackTrace.
5433 (stackTrace): New variable.
5435 * include/jvm.h: Add _Jv_ThisExecutable functions.
5437 * prims.cc: (_Jv_execName): New variable.
5438 (catch_segv): Call fillInStackTrace.
5440 (_Jv_ThisExecutable): New functions.
5441 (JvRunMain): Set the name of this executable.
5443 * Makefile.am: Add java/lang/natThrowable.cc.
5445 * Makefile.in: Rebuilt.
5447 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5449 * configure.in: Force link with __frame_state_for in
5450 FORCELIBGCCSPEC. Add new checks for backtrace.
5451 * include/config.h.in: Rebuilt.
5453 * name-finder.cc: New file.
5454 * include/name-finder.h: New file.
5456 2000-01-16 Anthony Green <green@cygnus.com>
5458 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5461 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5463 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5465 2000-01-13 Tom Tromey <tromey@cygnus.com>
5467 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5468 not system loader, as initiating loader.
5470 2000-01-11 Tom Tromey <tromey@cygnus.com>
5472 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5473 HP/UX. From David Scott Urban.
5475 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5477 * java/lang/natMath.cc (pow): Cast args to `double', not
5480 (IEEEremainder): Likewise.
5481 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5482 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5484 2000-01-09 Anthony Green <green@cygnus.com>
5486 * java/lang/natString.cc (init): Test for overflow condition
5487 during out of bounds check.
5488 (getChars): Throw StringIndexOutOfBoundsException, not
5489 ArrayIndexOutOfBoundsException.
5491 (regionMatches): Obey case option during string comparison.
5493 * configure.host (ligcj_interpreter): New variable. Enable
5494 interpreter by default on IA-32.
5495 * configure.in: Examine libgcj_interpreter.
5496 * configure: Rebuilt.
5498 2000-01-07 Tom Tromey <tromey@cygnus.com>
5500 * mauve-libgcj: Don't disable ClassTest.
5502 * java/lang/natClass.cc (getClasses): Wrote.
5504 2000-01-06 Tom Tromey <tromey@cygnus.com>
5506 * java/lang/natClass.cc (_getConstructors): Correctly check
5507 whether method name is the init name.
5508 (getMethod): Look at accflags on method in `klass', not `this'.
5510 2000-01-05 Tom Tromey <tromey@cygnus.com>
5512 * java/lang/natClass.cc (getMethod): Compute offset relative to
5513 `klass's methods table, not `this's table.
5515 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5516 In unwrapping/widening case, check whether `k' is null, not
5517 whether it is primitive. Initialize `num' from `argelts', not
5518 `paramelts'. Correct create and pass arguments to ffi_call.
5519 Don't let presence of `this' argument affect index used to look in
5521 (COPY): Set appropriate element in `values' vector.
5523 * java/lang/natClass.cc: Include <gcj/method.h>.
5525 * java/lang/Class.h (_getMethods): Correctly declare as private,
5528 * java/lang/Class.h (_getMethods): Declare.
5529 * java/lang/Class.java (_getMethods): Declare.
5530 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5531 (getDeclaredClasses): Always return empty array.
5532 (_getMethods): New method.
5533 (getMethods): Wrote.
5534 (getDeclaredMethod): Return `rmethod'.
5535 (finit_name): New global.
5536 (getDeclaredMethods): Check for finit_name.
5537 (_getMethods): Likewise.
5538 (getMethod): Only return public methods.
5540 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5541 jboolean and select correct ffi type on that basis.
5542 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5543 Constructor call always has `void' return type.
5545 2000-01-04 Tom Tromey <tromey@cygnus.com>
5547 * java/lang/Class.h (getSignature): Updated.
5548 * java/lang/Class.java (getSignature): Updated.
5549 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5551 (getConstructor): Ensure constructor is public.
5552 (_getConstructors): Check for public-ness of constructor when
5553 `declared' is false, not when it is true.
5555 2000-01-04 Warren Levy <warrenl@cygnus.com>
5557 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5559 (receive): Set the sender's address in the DatagramPacket.
5561 2000-01-04 Tom Tromey <tromey@cygnus.com>
5563 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5564 declaring class as return_type argument to
5565 _Jv_CallNonvirtualMethodA.
5566 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5567 constructor case, create object and use it as `this' argument.
5568 * java/lang/Class.h (_getConstructors): Declare.
5569 (_getFields): Declare.
5570 * java/lang/Class.java (getConstructors): Wrote.
5571 (_getConstructors): New native method.
5572 (getDeclaredConstructors): Wrote.
5573 (_getFields): Declare new native method.
5574 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5576 (getMethod): Work correctly when class is primitive.
5577 (getDeclaredMethods): Likewise. Compute offset using `method',
5579 (getDeclaredMethod): Likewise.
5580 (getConstructor): Wrote.
5581 (ConstructorClass): New define.
5582 (getDeclaredConstructor): Wrote.
5583 (_getConstructors): New method.
5584 (_getFields): New method.
5587 * Makefile.in: Rebuilt.
5588 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5590 * prims.cc: Remove `#pragma implementation'.
5591 * gcj/array.h: Remove `#pragma interface'.
5593 * prims.cc (_Jv_equaln): New function.
5594 * java/lang/Class.java (getSignature): Declare.
5595 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5596 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5598 (getSignature): New method.
5599 (getDeclaredMethod): Wrote.
5601 Include StringBuffer.h.
5602 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5603 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5605 (getSignature): Declare.
5606 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5607 (_Jv_equaln): Declare.
5608 (_Jv_CallNonvirtualMethodA): Declare.
5609 * Makefile.in: Rebuilt.
5610 * Makefile.am (nat_source_files): Added natConstructor.cc.
5611 (java/lang/reflect/Constructor.h): New target.
5612 * java/lang/reflect/natConstructor.cc: New file.
5613 * java/lang/reflect/Constructor.java (newInstance): Now native.
5614 (declaringClass): Renamed from decl_class.
5615 (offset): Renamed from index.
5616 (getType): New native method.
5617 (getModifiers): Now native.
5618 (getParameterTypes): Call getType if required.
5619 (hashCode): Include hash code from declaring class.
5620 (modifiers): Removed.
5621 (toString): Call getType if required.
5622 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5623 * java/lang/reflect/natMethod.cc (hack_call): New method.
5624 Removed `#if 0' around FFI code.
5625 Include <gnu/gcj/RawData.h>.
5626 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5627 IllegalArgumentException when argument object and class disagree.
5628 (_Jv_GetTypesFromSignature): New function.
5630 (ObjectClass): New define.
5631 (_Jv_CallNonvirtualMethodA): New function.
5632 * java/lang/reflect/Method.java (hack_trampoline): New method.
5633 (hack_call): New native method.