1 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/util/TreeSet.java (clone): Made subclass safe, use
4 super.clone(), not new.
5 * java/util/TreeMap.java (clone): Likewise.
7 * java/util/TreeMap.java (nil): Made non-final.
8 (clone): Create new nil node for copy.
10 * java/util/HashSet.java (clone): Made subclass safe, use
11 super.clone(), not new.
13 2001-02-14 Andrew Haley <aph@redhat.com>
15 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
18 2001-02-15 Anthony Green <green@redhat.com>
20 * defineclass.cc: Don't include alloca.h.
21 (prepare_pool_entry): Convert alloca to __builtin_alloca.
22 * interpret.cc (run_normal): Ditto.
24 * java/lang/natDouble.cc (parseDouble): Ditto.
26 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
28 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
30 * java/util/Collections.java (ReverseComparator): New static class.
31 (reverseOrder): Return static instance of ReverseComparator.
33 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
34 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
35 Rectangle.clone(), not Object.clone().
37 * java/util/HashSet.java (clone): Remove try/catch.
39 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
40 * java/util/Collection.java: Likewise.
41 * java/util/Comparator.java: Likewise.
42 * java/util/Dictionary.java: Likewise.
43 * java/util/Iterator.java: Likewise.
44 * java/util/ListIterator.java: Likewise.
45 * java/util/Map.java: Likewise.
46 * java/util/Set.java: Likewise.
48 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
50 * java/util/TreeMap.java: New file.
51 * java/util/TreeSet.java: New file.
52 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
53 * Makefile.in: Rebuilt.
54 * java/util/HashSet.java (clone): Use constructor instead of calling
56 * java/util/SortedSet.java: Sync with classpath.
57 * java/util/HashMap.java (hash): Use if statement instead of ternary,
60 * java/lang/natClass.cc (getSignature): Don't try to dereference
61 param_types if it is null. Instead, take this to mean "no parameters".
62 * java/lang/TreeMap.java (TreeIterator.next): Throw
63 NoSuchElementException in preference to ConcurrentModificationException.
64 (TreeIterator.remove): Throw IllegalStateException in preference to
65 ConcurrentModificationException.
66 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
67 throw a NoSuchElementException.
68 (SubMap.lastKey): Likewise.
70 2001-02-13 Tom Tromey <tromey@redhat.com>
72 * java/io/PipedReader.java (ready): Throw IOException if pipe
74 * java/io/FilterReader.java (close): Don't clear `in'.
75 * java/io/CharArrayReader.java (mark): Throw IOException if stream
77 (read, ready, reset, skip): Added exception message.
78 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
79 Perform checkStatus check inside synchronized block.
81 2001-02-13 Tom Tromey <tromey@redhat.com>
83 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
85 2001-02-13 Tom Tromey <tromey@redhat.com>
87 Fix for PR libgcj/1351:
88 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
90 Include Thread.h and InterruptedIOException.h.
92 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
94 * java/io/BlockDataException.java: Removed.
95 * java/io/ObjectInputStream.java (readObject): Throw
96 StreamCorruptedException, not BlockDataException.
97 * Makefile.am: Remove BlockDataException.
98 * Makefile.in: Rebuild.
100 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
101 Tom Tromey <tromey@redhat.com>
103 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
106 2001-02-09 Tom Tromey <tromey@redhat.com>
108 * java/util/Timer.java: New version from Classpath.
110 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
112 * java/lang/Double.java (doubleToRawLongBits): Now native.
113 * java/lang/Float.java (floatToRawIntBits): Likewise.
114 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
115 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
117 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
119 * java/io/File.java (java.net): Imported.
120 (getAbsoluteFile): Added.
121 (getCanonicalPath): Likewise.
124 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
126 * java/lang/Byte.java: Remove redundant instanceof and null checks.
127 * java/lang/Integer.java: Likewise.
128 * java/lang/Long.java: Likewise.
129 * java/lang/Short.java: Likewise.
130 * java/lang/Double.java: Likewise.
131 (doubleToRawLongBits): New method.
132 * java/lang/Float.java: As above.
133 (floatToRawIntBits): New method.
135 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
136 IOException if stream closed.
138 2001-02-08 Tom Tromey <tromey@redhat.com>
140 * java/lang/Float.java (parseFloat): New method.
142 2001-02-08 Tom Tromey <tromey@redhat.com>
144 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
145 * java/io/InputStreamReader.java (ready, read): Throw IOException
146 if stream has been closed.
148 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
150 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
151 Change sources.redhat.com and sourceware.cygnus.com references to
154 2001-02-07 Tom Tromey <tromey@redhat.com>
156 Fix for PR libgcj/1906:
157 * java/text/MessageFormat.java (setLocale): Use named class
160 (format(Object,StringBuffer,FieldPosition)): Special case if
161 argument is an Object[].
163 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
165 * java/util/Arrays.java: Removed "cmp" methods.
166 (qsort): Don't use "cmp".
169 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
171 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
172 sort. Fix for PR java/1895.
174 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
176 * configure.host: Use sjlj-exceptions for Alpha.
178 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
180 * libgcj.spec.in: Don't force static libgcc into the executable.
181 * configure.in (FORCELIBGCCSPEC): Removed.
182 * configure: Rebuilt.
184 2001-01-31 Tom Tromey <tromey@redhat.com>
186 * Makefile.in: Rebuilt.
187 * Makefile.am (LTCXXCOMPILE): New macro.
189 2001-01-26 Andrew Haley <aph@redhat.com>
191 (INIT_FPE): Use a direct system call to set the handler.
193 2001-01-27 Richard Henderson <rth@redhat.com>
195 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
197 2001-01-27 Tom Tromey <tromey@redhat.com>
199 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
200 native interface structure.
202 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
204 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
206 (read (byte[], int, int)): Only call readNextBlock() if the block
207 buffer would actually be overrun. Increment blockDataPosition.
208 (callReadMethod): Propagate exceptions from invocation target.
209 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
210 exceptions from invocation target.
212 2001-01-26 Tom Tromey <tromey@redhat.com>
214 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
215 to internal representation.
216 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
217 _Jv_FindClassFromSignature.
219 2001-01-26 Warren Levy <warrenl@redhat.com>
221 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
222 and timezone if they are available on the system.
224 2001-01-24 Tom Tromey <tromey@redhat.com>
226 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
228 2001-01-24 Tom Tromey <tromey@redhat.com>
230 * Makefile.in: Rebuilt.
231 * Makefile.am (c_source_files): Added sf_fabs.c.
232 * java/lang/sf_fabs.c: New file.
234 2001-01-19 Warren Levy <warrenl@redhat.com>
236 * java/text/SimpleDateFormat.java (format): Compute hour for cases
237 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
238 correctly. Adjust properly from 0-23 clock hour.
240 2001-01-17 Mark Wielaard <mark@klomp.org>
242 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
244 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
246 * java/lang/Class.h (isInterface): Move implementation from
247 natClass.cc. Declare inline.
248 (Class): Add default constructor.
249 * java/lang/Object.h: Update comments.
250 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
251 initialize superclass, saving a call if super is already initialized.
253 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
255 * prims.cc (init_prim_class): Deleted.
256 (DECLARE_PRIM_TYPE): Rewritten.
257 * java/lang/Class.h (stdio.h): Include removed.
258 (stddef.h): Included.
259 (java/lang/reflect/Modifier.h): Likewise.
260 (Class): Contructor now takes arguments, initializes fields.
261 (initializePrim): Prototype deleted.
262 * java/lang/natClass.cc (initializePrim): Deleted.
264 2001-01-16 Warren Levy <warrenl@redhat.com>
266 * java/math/BigInteger.java: Update Copyright year.
268 2001-01-16 Hans Boehm <hans_boehm@hp.com>
270 * java/math/BigInteger.java (setShiftRight): Only do negative shift
273 2001-01-14 Mark Wielaard <mark@klomp.org>
274 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
275 (decode): Merge comments with Classpath, don't throw Exception
277 2001-01-12 Tom Tromey <tromey@redhat.com>
279 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
283 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
284 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
285 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
286 * gnu/awt/gtk/GtkLabelPeer.java: New file.
287 * gnu/awt/gtk/GtkButtonPeer.java: New file.
289 * java/lang/natSystem.cc: Include locale.h if it exists.
290 * configure: Rebuilt.
291 * configure.in: Check for locale.h.
293 2001-01-11 Tom Tromey <tromey@redhat.com>
295 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
296 (Cursor(int), getPredefinedCursor): Throw exception if argument
299 2001-01-03 Tom Tromey <tromey@redhat.com>
301 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
302 (getLocationOnScreen): Wrote.
304 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
306 * Makefile.am: Re-enable dependencies.
307 * Makefile.in: Rebuilt.
309 2001-01-10 Warren Levy <warrenl@redhat.com>
311 * java/math/BigDecimal.java (divide): Fixed comment.
313 2001-01-10 Warren Levy <warrenl@redhat.com>
315 Fix for PR libgcj/1596:
316 * java/math/BigDecimal.java (divide): Check newScale for validity.
317 Ensure that BigInteger.pow() is called with a non-negative value.
318 (setScale (int)): New public method.
319 (setScale (int,int)): New public method.
321 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
323 Fix for PR libgcj/1338:
324 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
325 commentChar. Fixed typos in comments.
327 2001-01-08 Warren Levy <warrenl@redhat.com>
329 Fix for PR libgcj/1411:
330 * Makefile.am: Removed java/util/natTimeZone.cc.
331 * Makefile.in: Rebuilt.
332 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
333 missing localized timezone names.
334 * java/lang/System.java (getDefaultTimeZoneId): New private method.
335 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
336 (init_properties): Set user.timezone property.
337 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
338 default timezone names; removed non-standard ones. Use standard
340 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
342 * java/util/TimeZone.java: Add standard ID names per JCL; removed
344 (getDefaultTimeZoneId): Removed.
346 * java/util/natTimeZone.cc: Removed.
348 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
350 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
351 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
352 (_Jv_GetArrayClass): New inline function.
353 (arrayclass): New field.
354 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
355 _Jv_GetArrayElementFromElementType.
356 (_Jv_NewPrimArray): Ditto.
357 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
358 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
359 Set Modifier::ABSTRACT.
360 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
361 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
362 Now synchronized. Array classes are now referenced from
363 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
364 Set array classes' accessibility flags correctly. Optimize so that
365 all array classes share the same IDT.
366 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
367 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
368 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
369 in superclasses from overwriting classes own fields.
370 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
371 Modifier::isAbstract().
372 (null_idt): New static field.
373 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
375 (_Jv_IndexOf): Made inline.
376 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
378 2001-01-08 Tom Tromey <tromey@redhat.com>
380 Fix for PR java/1586:
381 * Makefile.in: Rebuilt.
382 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
384 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
386 * Makefile.am: Use the new "-M -MF" option for generating dependencies
387 from the c++ compiler.
388 * Makefile.in: Rebuilt.
390 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
392 All files with updated copyright.
393 * prims.cc (class _Jv_PrimClass): Removed.
394 (init_prim_class): New function.
395 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
396 `_Jv_PrimClass' in primitive type declarations. Assign to the
397 value returned by `init_prim_class.'
398 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
399 primitive type declarations.
400 (JvPrimClass): Cast to `jclass' removed.
401 * java/lang/Class.h (Class): New constructor.
402 (Class): New copy constructor.
403 (initializePrim): New prototype.
404 (_Jv_PrimClass): Field removed.
405 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
406 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
407 (class java::lang::Object): `finalize' moved up front.
408 * java/lang/natClass.cc
409 (isAssignableFrom): Turned outline.
410 (isInstance): Likewise.
411 (isInterface): Likewise, fixed indentation.
412 (initializePrim): New function.
414 2001-01-07 Anthony Green <green@redhat.com>
416 * Makefile.am (texinfo): Add texinfo target for generating texinfo
418 * Makefile.in: Rebuilt.
420 * scripts/TexinfoDoclet.java: New file.
422 * doc/java-applet.texi, doc/java-lang-reflect.texi,
423 doc/java-awt-color.texi, doc/java-lang.texi,
424 doc/java-awt-datatransfer.texi, doc/java-math.texi,
425 doc/java-awt-event.texi, doc/java-net.texi,
426 doc/java-awt-geom.texi, doc/java-security-spec.texi,
427 doc/java-awt-image.texi, doc/java-security.texi,
428 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
429 doc/java-text.texi, doc/java-beans-beancontext.texi,
430 doc/java-util-jar.texi, doc/java-beans.texi,
431 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
432 doc/java-lang-ref.texi: New files.
434 2001-01-07 Anthony Green <green@redhat.com>
436 * java/net/URLConnection.java (setDoOutput): URLConnection's may
437 be used for both input and output, so don't clear doInput.
439 * java/lang/StringBuffer.java: Fix comments.
441 2001-01-06 Anthony Green <green@redhat.com>
443 * java/beans/PropertyDescriptor.java: Fix comment.
444 * java/io/PushbackReader.java: Fix comment.
445 * java/io/ObjectStreamClass.java: Fix comment.
446 * java/io/DataInputStream.java: Fix comment.
447 * java/io/PipedInputStream.java: Fix comments.
448 * java/io/PipedReader.java: Fix comments.
449 * java/sql/DatabaseMetaData.java: Fix comments.
451 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
453 * java/io/PipedReader: Synchronize on "lock" instead of this.
455 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
457 * java/lang/Thread.java: Update comment.
459 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
460 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
461 * java/io/PipedReader: New implementation based on new
463 * java/io/PipedWriter: Updated to match new PipedReader.
465 2001-01-03 Tom Tromey <tromey@redhat.com>
467 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
468 (getViewportSize): Insets include scrollbar size.
469 (doLayout): Finished.
470 (getScrollPosition): Wrote.
471 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
473 2001-01-02 Tom Tromey <tromey@redhat.com>
475 * java/awt/ScrollPane.java: Wrote.
476 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
479 * java/awt/Panel.java (Panel()): Fixed.
481 * java/awt/Component.java (isShowing): Return false if no peer
482 exists, and true if component is visible and no parent exists.
483 (getLocationOnScreen): Wrote.
484 (getPreferredSize): Removed FIXME comment.
485 (getMinimumSize): Likewise.
486 (getAlignmentX, getAlignmentY): Wrote.
488 (requestFocus): Wrote.
489 (transferFocus): Wrote.
490 (findNextFocusComponent): New method.
493 (enableEvents): Call setEventMask on the peer.
495 * java/awt/Container.java (list): Use super.list() to print self.
496 (findNextFocusComponent): New method.
497 (setLayout): Call invalidate.
498 (findComponentAt): Wrote.
500 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
502 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
503 the correct versions of various linuxthreads functions get linked.
504 * Makefile.in: Rebuilt.
505 * java/lang/natThread.cc (finalize_native): New static function. Call
506 _Jv_ThreadDestroyData.
507 (initialize_native): Register finalizer for "data".
508 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
509 (_Jv_ThreadDestroyData): New prototype.
510 * include/win32-threads.h: Ditto.
511 * include/no-threads.h: Ditto.
512 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
513 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
514 move mutex and condition variable destroy code from:
515 (really_start): ...here.
516 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
517 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
518 (_Jv_ThreadDestroyData): Implemented.
519 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
520 (_Jv_AllocArray): Ditto.
522 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
524 * java/sql/DriverManager.java (getConnection): Don't set user/password
527 2000-12-27 Warren Levy <warrenl@redhat.com>
529 Fix for PR libgcj/1358:
530 * java/lang/System.java: Update Copyright date properly.
531 * java/util/Calendar.java: Fix typo in comment.
532 (set): Set 24-hour clock hour instead of 12-hour clock hour.
533 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
534 initialize times. Spec says to set H:M:S values to zero only if
536 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
537 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
538 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
539 timezones and GMT offsets, being careful to account for units of
540 milliseconds vs. seconds.
542 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
544 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
545 not be assigned to Object.
547 Fix for PR libgcj/1516:
548 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
550 (can_widen): Declared inline. Remove redundant checks for void
551 arguments and char->short conversion. Add special case for boolean
553 (ffi_type): Declared inline.
554 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
556 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
558 * java/sql/SQLWarning.java: Fixed typo in comment.
560 2000-12-26 Tom Tromey <tromey@redhat.com>
562 * java/awt/MenuItem.java (paramString): Now protected.
564 * java/awt/MenuShortcut.java: Implements Serializable.
566 * java/awt/MenuBar.java: Rewrote from scratch.
568 * java/awt/MenuComponent.java (removeNotify): Wrote.
569 Implements Serializable.
571 * java/awt/GridBagConstraints.java (GridBagConstraints): New
574 * java/awt/CheckboxMenuItem.java: Wrote.
576 2000-12-25 Tom Tromey <tromey@redhat.com>
578 * java/awt/MenuContainer.java: Fixed typo.
580 * Makefile.in: Rebuilt.
581 * Makefile.am (awt_java_source_files): Added SystemColor.java.
582 * java/awt/SystemColor.java: New file.
584 * java/awt/Color.java (rgba): Now package-private.
586 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
588 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
591 * java/awt/MenuItem.java (addNotify): New method.
592 (MenuItem(String,MenuShortcut)): New constructor.
593 (setLabel): Notify peer of change.
594 (setEnabled): Likewise.
596 * java/awt/GridLayout.java (toString): New method.
598 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
599 (FlowLayout): Check for LEADING and TRAILING.
600 (setAlignment): Likewise.
601 (layoutContainer): Handle component orientation.
603 * java/awt/Component.java (orientatin): New field.
604 (setComponentOrientation): Wrote.
605 (getComponentOrientation): Wrote.
607 * java/awt/Event.java (Event): Implements Serializable.
608 (consumed): New field for serialization.
609 * java/awt/Dimension.java (Dimension): Implements Serializable.
610 * java/awt/Cursor.java (Cursor): Implements Serializable.
611 * java/awt/Container.java (Container): No longer abstract.
613 * java/awt/Choice.java: Wrote.
614 * java/awt/Checkbox.java: Wrote.
615 * java/awt/ItemSelectable.java: Documented.
616 * java/awt/CheckboxGroup.java: Wrote.
618 * java/awt/CardLayout.java (layoutContainer): Directly use fields
622 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
624 * java/io/FileDescriptor.java: Initialize fd to -1.
625 Remove default constructor.
627 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
629 * java/lang/mprec.h: Change C9X reference to refer to C99.
631 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
633 * java/lang/Throwable.java (trace_enabled): New static field.
634 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
635 trace_enabled not set.
636 * prims.cc (main_init): Turn off trace_enabled while creating
637 default exception objects.
639 2000-12-21 Tom Tromey <tromey@redhat.com>
641 * java/beans/PropertyChangeListener.java: Extends EventListener.
642 * java/beans/VetoableChangeListener.java: Extends EventListener.
644 * java/util/zip/Deflater.java (update, init): Now private.
646 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
648 * java/util/BasicMapEntry.java: Re-added.
649 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
650 (putAll): Test for BasicMapEntry.
651 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
652 (putAll): Test for BasicMapEntry.
653 Change references from `HashMap.Entry' to `Entry' in various places.
654 * Makefile.am: Add BasicMapEntry.java.
655 * Makefile.in: Rebuilt.
657 2000-12-18 Warren Levy <warrenl@redhat.com>
659 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
660 need to set timezone to a valid non-null value. Partial fix for
663 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
665 * java/awt/Window.java (addNotify): Remove peer casting hack now that
667 * java/awt/Button.java (addNotify): Likewise.
668 * java/awt/Label.java (addNotify): Likewise.
669 * java/awt/Panel.java (addNotify): Likewise.
670 * java/awt/Scrollbar.java (addNotify): Likewise.
671 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
672 Remove redundant null checks.
674 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
676 * COPYING: Update to current
677 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
678 to 19yy as example year in copyright notice).
680 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
682 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
683 end-of-stream if avail_in is 0.
685 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
687 * java/util/ArrayList.java (data): Declare transient.
688 (serialPersistantFields): Removed.
689 (readObject): Use defaultReadObject(), not readFields().
690 (writeObject): Use defaultWriteObject(), not writeFields().
692 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
694 * java/util/Hashtable.java (put): Remove `last' variable.
695 Link new entry to head of list.
696 * java/util/HashMap.java (put): Ditto.
698 2000-12-15 Tom Tromey <tromey@redhat.com>
700 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
701 loader to Class.forName.
703 2000-12-14 Tom Tromey <tromey@redhat.com>
705 * java/util/ResourceBundle.java
706 (getBundle(String,Locale,ClassLoader)): New method.
707 (trySomeGetBundle): Added `loader' argument.
708 (partialGetBundle): Likewise.
710 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
711 maximumFractionDigits, maximumIntegerDigits,
712 minimumFractionDigits, minimumIntegerDigits): Now
715 * java/lang/Thread.java (checkAccess): Now final.
717 * java/lang/RuntimePermission.java: Class now final.
719 * java/io/StringWriter.java (StringWriter(int)): Now public.
721 * java/io/SerializablePermission.java (legal_names): Now private.
723 * java/lang/Character.java: Updated UnicodeBlock constants.
724 * scripts/blocks.pl: Special case private use and surrogate
727 2000-12-12 Tom Tromey <tromey@redhat.com>
729 * Makefile.in: Rebuilt.
730 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
732 (GCJCOMPILE): Use it.
735 2000-12-11 Tom Tromey <tromey@redhat.com>
737 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
738 New static final fields.
740 * scripts/classes.pl (scan): Skip lines with leading `*'.
741 Fix for PR libgcj/378.
743 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
745 * configure.in: Remove check for -fuse-divide-subroutine.
746 * configure: Rebuilt.
748 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
750 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
752 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
754 * Makefile.am: Add HashSet.java and java/lang/ref classes.
755 Remove BasicMapEntry.java and Bucket.java.
756 * Makefile.in: Rebuilt.
757 * java/util/HashMap.java: Rewritten.
758 * java/util/HashSet.java: Imported from classpath.
759 * java/util/WeakHashMap.java: Imported from classpath.
760 * java/util/Hashtable.java: Rewritten based on new HashMap code.
761 * java/util/Bucket.java: Deleted.
762 * java/util/BasicMapEntry.java: Deleted.
763 * java/util/Collections.java (search): Use a for-loop, not iterator
765 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
766 of elements in source.
767 (max): Use a for-loop.
769 (reverse): Keep track of positions instead of using Iterator's
770 nextIndex() and previousIndex().
771 (shuffle(List)): Initialize defaultRandom if required using
772 double-check thread safety idiom. Call two-argument shuffle method
774 (defaultRandom): New field.
775 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
776 using previousIndex() and nextIndex().
777 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
778 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
779 * java/util/AbstractMap.java (toString): Use StringBuffer.
780 * java/lang/ref/PhantomReference.java: Imported from classpath.
781 * java/lang/ref/SoftReference.java: Ditto.
782 * java/lang/ref/Reference.java: Ditto.
783 * java/lang/ref/WeakReference.java: Ditto.
784 * java/lang/ref/ReferenceQueue.java: Ditto.
786 2000-12-10 Richard Henderson <rth@redhat.com>
788 * configure.host: Recognize alpha*-*, not alphaev6-*.
790 2000-12-09 Anthony Green <green@redhat.com>
792 * configure.host: Enable interpreter for Alpha.
794 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
796 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
797 (ZIP): Points at fastjar instead of zip.
798 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
799 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
800 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
801 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
802 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
803 ($(x_java_source_files:.java=.class):): Likewise.
804 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
806 (CLEANFILES): libgcj.jar replaces libgcj.zip.
807 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
808 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
809 java/lang/String.h:, java/lang/reflect/Constructor.h:,
810 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
811 gnu/gcj/runtime/VMClassLoader.h:,
812 java/io/ObjectInputStream$$GetField.h:,
813 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
814 (Makefile.in): Rebuilt.
816 2000-12-08 Tom Tromey <tromey@redhat.com>
819 * configure: Rebuilt.
820 * configure.in: Use echo, not `:', to create .d files.
822 2000-12-08 Warren Levy <warrenl@redhat.com>
824 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
825 NullPointerException so proper check of offset can be done.
827 2000-12-08 Warren Levy <warrenl@redhat.com>
829 * java/io/FileInputStream.java (close): Check if the fd is valid.
830 * java/io/RandomAccessFile.java (close): Ditto.
831 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
832 * java/net/PlainSocketImpl.java (close): Ditto.
834 2000-12-06 Tom Tromey <tromey@redhat.com>
836 * java/awt/GridBagConstraints.java: Filled in values for static
839 * java/util/BitSet.java: Updated copyright notice.
841 * Makefile.in: Rebuilt.
842 * Makefile.am (awt_java_source_files): Added new file.
843 * java/awt/GridBagConstraints.java: New file.
845 2000-12-05 Tom Tromey <tromey@redhat.com>
847 * java/text/Collator.java (decomposeCharacter, decmp, strength):
848 Now package-private, not protected.
849 * java/text/DateFormatSymbols.java (equals): Now private.
850 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
851 * java/util/BitSet.java: Class no longer final.
853 2000-12-04 Warren Levy <warrenl@redhat.com>
855 * java/util/TimeZone.java (getAvailableIDs): Activated commented
856 out code dependent on compiler and library changes.
858 2000-12-04 Warren Levy <warrenl@redhat.com>
860 * java/io/FilePermission.java: Made class final per spec.
861 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
862 method name to match spec (fixed typo).
863 * java/util/LinkedList.java: Implements List.
865 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
867 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
868 Edgar Villanueva <edgarvil@home.com>.
870 2000-12-03 Tom Tromey <tromey@redhat.com>
872 * java/awt/geom/Point2D.java: Added protected constructor.
873 (equals): New method.
874 (Float.setLocation(float,float)): New method.
875 * java/awt/geom/Dimension2D.java: Added protected constructor.
876 * java/awt/geom/AffineTransform.java: Made all constants public.
877 (concatenate): Fixed typo in name.
878 * java/awt/event/WindowAdapter.java: Class now abstract.
879 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
880 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
883 * java/awt/AWTError.java: Extend Error, not
884 IllegalStateException.
886 * Makefile.in: Rebuilt.
887 * Makefile.am (awt_java_source_files): Added new file.
888 * java/awt/geom/RoundRectangle2D.java: New file.
890 * Makefile.in: Rebuilt.
891 * Makefile.am (awt_java_source_files): Added new file.
892 * java/awt/FlowLayout.java: New file.
894 * Makefile.in: Rebuilt.
895 * Makefile.am (awt_java_source_files): Added new file.
896 * java/awt/GridLayout.java: New file.
898 2000-12-02 Tom Tromey <tromey@redhat.com>
900 * Makefile.in: Rebuilt.
901 * Makefile.am (awt_java_source_files): Added new files.
902 * java/awt/CardLayout.java: New file.
903 * java/awt/AWTPermission.java: New file.
905 2000-12-01 Tom Tromey <tromey@redhat.com>
907 * java/util/Vector.java (insertElementAt): Unconditionally
908 increment elementCount.
909 (removeRange): Clear unused slots in vector.
911 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
913 * java/lang/natMath.cc: Declare fabsf() function.
914 * java/lang/mprec.h: Don't include math.h.
915 * java/lang/dtoa.c: Include string.h.
916 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
919 From Adam Welc <welc@cs.purdue.edu>:
920 * java/util/LinkedList.java (removeFirst): Update `first' field.
921 Handle the last == first case.
922 (removeLast): Update `last' field. Handle the last == first case.
924 2000-12-01 Warren Levy <warrenl@cygnus.com>
926 * Makefile.am: Added entries for new java.sql modules.
927 * Makefile.in: Rebuilt.
929 2000-12-01 Warren Levy <warrenl@cygnus.com>
931 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
932 that aren't quite 1.2 compatible yet.
934 2000-11-30 Warren Levy <warrenl@cygnus.com>
936 * java/sql/Array.java: New file from classpath.
937 * java/sql/BatchUpdateException.java: Ditto.
938 * java/sql/Blob.java: Ditto.
939 * java/sql/Clob.java: Ditto.
940 * java/sql/Ref.java: Ditto.
941 * java/sql/SQLData.java: Ditto.
942 * java/sql/SQLInput.java: Ditto.
943 * java/sql/SQLOutput.java: Ditto.
944 * java/sql/Struct.java: Ditto.
945 * java/sql/CallableStatement.java: Merged file from claspath.
946 * java/sql/Connection.java: Ditto.
947 * java/sql/DataTruncation.java: Ditto.
948 * java/sql/DatabaseMetaData.java: Ditto.
949 * java/sql/DriverManager.java: Ditto.
950 * java/sql/PreparedStatement.java: Ditto.
951 * java/sql/ResultSet.java: Ditto.
952 * java/sql/ResultSetMetaData.java: Ditto.
953 * java/sql/SQLException.java: Ditto.
954 * java/sql/SQLWarning.java: Ditto.
955 * java/sql/Statement.java: Ditto.
956 * java/sql/Types.java: Ditto.
958 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
960 * java/lang/natSystem.cc (init_properties): Set user.language and
962 * configure.in: Check for setlocale.
963 * configure: Rebuilt.
964 * include/config.h.in: Rebuilt.
966 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
967 the infate() call didn't deliver any output. Throw a ZipException if
968 the needsDictionary() call returns true.
969 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
970 * java/io/InputStreamReader: Use the default buffer size for the
971 contained BufferedInputStream.
973 2000-11-28 Warren Levy <warrenl@cygnus.com>
975 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
976 more time zone entries.
977 * java/text/SimpleDateFormat.java (format): Added case for
980 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
982 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
983 directly rather than read() in all cases. Make primitive read
984 implementations more efficient, as defined in JDK online docs.
985 (skipBytes): Behave like the JDK's implementation.
986 * java/io/BufferedReader.java: Merge classpath docs. Check for a
987 closed stream with checkStatus() whenever an IOException can be
989 (checkStatus): New private method.
991 2000-11-27 Warren Levy <warrenl@cygnus.com>
993 * Makefile.am: Added natTimeZone.cc.
994 * Makefile.in: Rebuilt.
995 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
996 * java/text/DateFormatSymbols.java (ampms): Made package private.
997 (eras): Made package private.
998 (months): Made package private.
999 (shortMonths): Made package private.
1000 (shortWeekdays): Made package private.
1001 (weekdays): Made package private.
1002 (formatPrefixes): New private field.
1003 (localPatternCharsDefault): Made private.
1004 (dateFormats): New package private field.
1005 (timeFormats): New package private field.
1006 (formatsForKey): New private method.
1007 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1008 (DateFormatSymbols(DateFormatSymbols)): Ditto.
1009 * java/text/SimpleDateFormat.java: Merged with Classpath.
1010 * java/util/TimeZone.java: Merged with Classpath.
1011 * java/util/natTimeZone.cc: New file.
1013 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
1015 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1016 (addElement): Don't increment elementCount twice. Doh.
1017 * java/util/ArrayList.java (add): Only call ensureCapacity if the
1018 array needs to be expanded.
1020 * java/util/Collections.java (UnmodifiableCollection): Implement
1022 (UnmodifiableList): Throw UnsupportedOperationException from
1023 modification methods. Set `l' from the one-parameter constructor.
1024 (UnmodifiableMap): Implement toString().
1025 (SynchronizedCollection): Ditto.
1026 (SynchronizedList): Set `l' from the one-parameter constructor.
1027 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1028 (SynchronizedMap): Implement toString().
1030 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
1032 * javax/naming/NameParser.java,
1033 javax/naming/directory/AttributeInUseException.java,
1034 javax/naming/directory/AttributeModificationException.java,
1035 javax/naming/directory/InvalidAttributeIdentifierException.java,
1036 javax/naming/directory/InvalidAttributesException.java,
1037 javax/naming/directory/InvalidAttributeValueException.java,
1038 javax/naming/directory/InvalidSearchControlsException.java,
1039 javax/naming/directory/InvalidSearchFilterException.java,
1040 javax/naming/directory/NoSuchAttributeException.java,
1041 javax/naming/directory/SchemaViolationException.java: New files.
1043 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
1045 * javax/naming/InitialContext.java (rebind): Implement.
1046 (unbind): Implement.
1047 (rename): Implement.
1049 (listBindings): Implement.
1050 (destroySubcontext): Implement.
1051 (createSubcontext): Implement.
1052 (lookupLink): Implement.
1053 (getNameParser): Implement.
1054 (composeName): Implement.
1055 (addToEnvironment): Implement.
1057 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
1059 * javax/naming/AuthenticationException.java,
1060 javax/naming/AuthenticationNotSupportedException.java,
1061 javax/naming/CannotProceedException.java,
1062 javax/naming/CommunicationException.java,
1063 javax/naming/ConfigurationException.java,
1064 javax/naming/ContextNotEmptyException.java,
1065 javax/naming/InsufficientResourcesException.java,
1066 javax/naming/InterruptedNamingException.java,
1067 javax/naming/InvalidNameException.java,
1068 javax/naming/LimitExceededException.java,
1069 javax/naming/LinkException.java,
1070 javax/naming/LinkLoopException.java,
1071 javax/naming/MalformedLinkException.java,
1072 javax/naming/NameAlreadyBoundException.java,
1073 javax/naming/NameNotFoundException.java,
1074 javax/naming/NamingSecurityException.java,
1075 javax/naming/NoPermissionException.java,
1076 javax/naming/NotContextException.java,
1077 javax/naming/PartialResultException.java,
1078 javax/naming/ReferralException.java,
1079 javax/naming/ServiceUnavailableException.java,
1080 javax/naming/SizeLimitExceededException.java,
1081 javax/naming/TimeLimitExceededException.java: New files.
1083 * javax/naming/Name.java (clone): New method.
1084 (compareTo): New method.
1085 (isEmpty): New method.
1086 (getAll): New method.
1087 (getPrefix): New method.
1088 (getSuffix): New method.
1089 (startsWith): New method.
1090 (endsWith): New method.
1091 (addAll): New method.
1092 (addAll): New method.
1095 (remove): New method.
1097 * javax/naming/Context.java (lookup): New method.
1098 (rebind): New method.
1099 (unbind): New method.
1100 (rename): New method.
1102 (listBindings): New method.
1103 (destroySubcontext): New method.
1104 (createSubcontext): New method.
1105 (lookupLink): New method.
1106 (getNameParser): New method.
1107 (composeName): New method.
1108 (addToEnvironment): New method.
1109 (removeFromEnvironment): New method.
1110 (getEnvironment): New method.
1111 (close): New method.
1112 (getNameInNamespace): New method.
1114 * javax/naming/InitialContext.java (lookup): New method.
1115 (rebind): New method.
1116 (unbind): New method.
1117 (rename): New method.
1119 (listBindings): New method.
1120 (destroySubcontext): New method.
1121 (createSubcontext): New method.
1122 (lookupLink): New method.
1123 (getNameParser): New method.
1124 (composeName): New method.
1125 (addToEnvironment): New method.
1126 (removeFromEnvironment): New method.
1127 (getEnvironment): New method.
1128 (close): New method.
1129 (getNameInNamespace): New method.
1131 2000-11-26 Tom Tromey <tromey@cygnus.com>
1133 * Makefile.in: Rebuilt.
1134 * Makefile.am (core_java_source_files): Added
1135 RuntimePermission.java.
1136 * java/lang/RuntimePermission.java: Imported from Classpath.
1137 * java/lang/Thread.java (getContextClassLoader): Now
1138 synchronized. Added security code.
1139 (setContextClassLoader): Likewise.
1141 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1142 length field of array.
1143 (_Jv_NewPrimArray): Likewise.
1144 * gcj/array.h (__JArray): `length' field now const. Added
1147 2000-11-26 Anthony Green <green@redhat.com>
1149 * javax/naming/spi/NamingManager.java,
1150 javax/naming/spi/ObjectFactory.java,
1151 javax/naming/spi/InitialContextFactory.java,
1152 javax/naming/spi/InitialContextFactoryBuilder.java,
1153 javax/naming/RefAddr.java, javax/naming/Reference.java,
1154 javax/naming/NamingException.java, javax/naming/Context.java,
1155 javax/naming/Referenceable.java,
1156 javax/naming/directory/InitialDirContext.java,
1157 javax/naming/directory/DirContext.java,
1158 javax/naming/directory/Attributes.java,
1159 javax/naming/directory/Attribute.java,
1160 javax/naming/StringRefAddr.java,
1161 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1162 javax/naming/InitialContext.java,
1163 javax/naming/NoInitialContextException.java: New files.
1165 2000-11-25 Anthony Green <green@redhat.com>
1167 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1168 (_Jv_NewPrimArray): Likewise.
1169 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1170 (class JArray): Removed constructor.
1172 * java/lang/Thread.java (context_class_loader): New private data.
1173 (getContextClassLoader): New method.
1174 (setContextClassLoader): New method.
1175 (Thread): Initialize context_class_loader.
1177 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1178 (getResource): Rename to findResource.
1179 (findResource): New method. Used to be getResource.
1180 (getResourceAsStream): Deleted.
1181 (jarFileize): Extracted logic from URLClassLoader constructor into
1182 this new private method.
1183 (addURL): New protected method.
1184 (URLClassLoader): Call jarFileize. Use addElement instead of
1186 (findResources): New method.
1188 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1189 (getResource): Implement correct logic.
1190 (findResource): New method.
1191 (getResources): New method.
1192 (findClass): Create a ClassNotFoundException with the name of the
1193 class rather than nothing at all.
1194 (defineClass) Only throw ClassFormatError.
1196 * java/lang/Class.java (forName): New method.
1197 * java/lang/Class.h (forName): New method.
1198 * java/lang/natClass.cc (forName): New method.
1200 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1202 * java/lang/System.java (setProperties): Only call init_properties()
1203 if properties is null.
1204 (getProperties): Ditto.
1205 (getProperty): Ditto.
1206 (setProperty): Call init_properties if properties are null.
1207 (prop_init): Remove field.
1208 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1209 method. Check for null properties after synchronizing instead of
1210 prop_init flag. Set the properties field last for thread safety.
1212 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1213 test for gcj.dumpobjects property and enable object stream dumping
1215 (dumpElement): No longer native.
1216 (dumpElementln): Ditto.
1217 (setDump): Do not define.
1218 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1219 (dumpElementln): Removed.
1222 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1224 * configure: Rebuilt.
1225 * Makefile.in: Rebuilt.
1226 * Makefile.am (built_java_source_files): Add Configuration.java.
1227 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1228 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1229 Create `gnu' directory in the build tree.
1230 * gnu/classpath/Configuration.java.in: New file.
1232 2000-11-24 Tom Tromey <tromey@cygnus.com>
1234 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1236 (_Jv_NewPrimArray): Likewise.
1238 * gcj/array.h (__JArray): `length' field now const. Added
1240 (class JArray): Added constructor.
1242 2000-11-23 Mark Wielaard <mark@klomp.org>
1244 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1247 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1249 * java/util/Vector.java: Improve exception messages.
1250 (Vector): Check initialCapacity for IllegalArgumentException.
1251 (tromToSize): Don't check for elementCount == elementData.length
1253 (toArray): Don't try to set null marker if target array is the same
1254 length as the vector.
1256 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1258 * Makefile.in: Rebuilt.
1259 * Makefile.am (core_java_source_files): Added Collections.java.
1260 * java/util/List.java: Merged from classpath.
1261 * java/util/Vector.java: Ditto.
1262 * java/util/Collections.java: From classpath.
1263 * java/util/ArrayList.java (addAll(Collection)): Call
1264 addAll(int,Collection) instead of duplicating code.
1265 (indexOf): Clean up int initialization.
1266 (clear): Set cleared array entries to null, to allow garbage
1268 * java/util/List.java: Minor formatting fixes.
1269 * java/util/SimpleTimeZone.java: ditto.
1271 2000-11-18 Tom Tromey <tromey@cygnus.com>
1273 * Makefile.in: Rebuilt.
1274 * Makefile.am (core_java_source_files): Added new files.
1275 * java/lang/reflect/ReflectPermission.java: New class.
1276 * java/io/FileFilter.java: From Classpath
1277 * java/io/FilePermission.java: From Classpath.
1279 2000-11-17 Tom Tromey <tromey@cygnus.com>
1281 * java/lang/reflect/AccessibleObject.java (isAccessible,
1282 setAccessible): Now public.
1284 * java/lang/natString.cc: Include Locale.h.
1285 (toUpperCase): Added `locale' argument. Handle locale
1287 (toLowerCase): Added `locale' argument. Handle locale
1289 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1290 CAPITAL_I): New defines.
1291 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1294 (toUpperCase, toLowerCase): New methods. Variants which accept
1297 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1300 * java/util/PropertyPermission.java: Re-merged from Classpath.
1302 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1304 * java/text/StringCharacterIterator.java: Reindented.
1305 (setText): New method.
1307 2000-11-17 Mark Wielaard <mark@klomp.org>
1309 Merge with Classpath (changes by Bryce McKinlay)
1310 * java/util/jar/*.java: Reformat all to unofficial standard coding
1311 style. No changes of substance.
1313 2000-11-17 Mark Wielaard <mark@klomp.org>
1315 * java/util/zip/*.java: Javadoc updates.
1317 2000-11-17 Tom Tromey <tromey@cygnus.com>
1319 * java/text/CollationKey.java: Implement Comparable.
1320 (compareTo(Object)): New method.
1321 * java/text/Collator.java (compare(Object,Object)): New method.
1322 Implement Comparator.
1324 * java/util/zip/InflaterInputStream.java (available): New method.
1325 (close): New method.
1326 (read, available, skip, fill): Throw exception if stream closed.
1327 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1328 getNextEntry): Throw exception if closed.
1330 2000-11-16 Tom Tromey <tromey@cygnus.com>
1332 * java/io/PushbackReader.java: Merged with Classpath.
1333 * java/util/Arrays.java: Updated from Classpath.
1335 * scripts/blocks.pl: New file.
1336 * java/lang/Character.java (Subset): New class.
1337 (UnicodeBlock): New class.
1339 * java/lang/Math.java (toDegrees, toRadians): New methods.
1341 * java/lang/Float.java: Implement Comparable.
1342 (compareTo): New methods.
1343 * java/lang/Double.java: Implement Comparable.
1344 (compareTo): New methods.
1346 2000-11-16 Warren Levy <warrenl@cygnus.com>
1348 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1350 (listeners): Made transient.
1351 (source): Renamed from 'bean'.
1352 (children): New field for serialization.
1353 (propertyChangeSupportSerializedDataVersion): Ditto.
1354 (serialVersionUID): Ditto.
1355 (writeObject): New serialization method.
1356 (readObject): New serialization method.
1357 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1359 (listeners): Made transient.
1360 (source): Renamed from 'bean'.
1361 (children): New field for serialization.
1362 (vetoableChangeSupportSerializedDataVersion): Ditto.
1363 (serialVersionUID): Ditto.
1364 (writeObject): New serialization method.
1365 (readObject): New serialization method.
1366 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1367 to allow constructor to have a return type (i.e. the class that the
1368 constructor constructs).
1370 2000-11-14 Tom Tromey <tromey@cygnus.com>
1372 * Makefile.in: Rebuilt.
1373 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1376 2000-11-02 Warren Levy <warrenl@cygnus.com>
1378 * java/io/ObjectInputStream.java (readObject): Added code to
1379 conditionally dump out the serialized data.
1380 Handle ENDBLOCKDATA case a bit more gracefully since the current
1381 behavior doesn't seem to work as expected.
1382 (readStreamHeader): Added code for serialized data dumper.
1383 (readNextBlock): Ditto.
1384 (readFields): Ditto.
1385 (dump): New private static field for turning on/off dumper.
1386 (setDump): New native method.
1387 (dumpElement): New native method.
1388 (dumpElementln): New native method.
1389 * java/io/natObjectInputStream.cc (setDump): New method.
1390 (dumpElement): New method.
1391 (dumpElementln): New method.
1393 2000-11-02 Warren Levy <warrenl@cygnus.com>
1395 * java/net/InetAddress.java (addr): Renamed from 'address'.
1396 (address): New field to match Serialized Form doc.
1397 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1398 (family): New serialization field.
1399 (serialVersionUID): New field.
1400 (readObject): New method.
1401 (writeObject): New method.
1402 (getFamily): New native method.
1403 (InetAddress): Set family.
1404 * java/net/natInetAddress.cc (getFamily): New method.
1405 (addr): Renamed from 'address'.
1406 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1407 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1408 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1410 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1412 * java/util/AbstractList.java (SubList): Make it a top-level private
1414 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1416 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1417 * Makefile.in: Rebuilt.
1419 2000-11-02 Tom Tromey <tromey@cygnus.com>
1421 * Makefile.in: Rebuilt.
1422 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1425 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1427 * java/util/AbstractList.java (remove): Comment out modCount increment
1428 to work around compiler bug.
1431 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1433 * java/util/AbstractList.java: Throw messages with
1434 IndexOutOfBoundsExceptions.
1435 (listIterator()): Call listIterator(0).
1436 (size): New field. Initialize to size().
1437 (hasNext): Test position against size, not size().
1438 (remove): Increment knownMod by one instead of resetting it from
1441 (SubList.upMod): Removed.
1442 (SubList.set): Don't call upMod() or update knownMod.
1443 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1444 (SubList.remove): Ditto.
1445 (SubList.addAll): Don't call backingList.size(). Increment size from
1447 (SubList.iterator): New method. Call listIterator(0).
1448 (SubList.listIterator): New method. Restore code to return an anonymous
1449 listIterator implementation (with some changes).
1450 * java/util/AbstractSequentialList.java: Throw messages with
1451 IndexOutOfBoundsExceptions.
1452 (addAll): Add a specnote.
1453 * java/util/ArrayList.java (removeRange): Get the math right.
1454 (addAll): Increment modCount _before_ creating iterator.
1455 * java/util/LinkedList.java: Rewritten, mostly.
1457 2000-11-01 Tom Tromey <tromey@cygnus.com>
1459 * scripts/encodings.pl: Added `ASCII' alias.
1460 * Makefile.in: Rebuilt.
1461 * Makefile.am (convert_source_files): Added new files.
1462 * gnu/gcj/convert/Input_ASCII.java: New file.
1463 * gnu/gcj/convert/Output_ASCII.java: New file.
1464 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1465 out-of-range characters.
1466 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1467 (read): Swap bytes if required. Treat `count' as character count,
1469 (write): Likewise. Also, handle case where iconv fails on a given
1471 (init): Put encoding into exception.
1472 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1473 (static): Call iconv_init. Rebuilt alias list.
1474 (iconv_init): New private method.
1476 2000-11-01 Tom Tromey <tromey@cygnus.com>
1478 * Makefile.in: Rebuilt.
1479 * Makefile.am (install-exec-hook): Only make a single symlink, and
1480 remove the destination before making the link.
1481 * configure: Rebuilt.
1482 * configure.in: Call AC_PROG_LN_S.
1484 2000-10-31 Warren Levy <warrenl@cygnus.com>
1486 * jni.cc: Added include of java/lang/ThreadGroup.h.
1487 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1488 per change of 2000-10-05.
1490 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1492 * java/util/BitSet.java: Updated @specnote.
1494 * java/io/Reader.java: Merge docs from classpath.
1495 (skip): Synchronize on `lock'.
1496 * java/io/FileReader.java: Import correct implementation from
1498 * java/io/StringReader.java: Merge docs from classpath.
1499 (ready): Throw IOException if stream is closed.
1501 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1503 * java/util/AbstractCollection.java (addAll): Use size() instead of
1504 hasNext() in iterator loop.
1506 (contains): Ditto. Simplify loop.
1507 (containsAll): Ditto.
1512 (toString): Ditto. Use string concatenation operators, not
1514 * java/util/AbstractList.java (addAll): Use size() instead of
1515 hasNext() in iterator loop.
1518 (indexOf): Ditto. Don't take null check outside of the loop.
1519 (iterator): Return an AbstractListItr instead of anonymous class.
1520 (lastIndexOf): Use a for loop bounded by size() instead of
1521 hasPrevious() in iterator loop.
1522 (listIterator): Return an AbstractListItr.
1523 (removeRange): Remove bounds checking code and docs.
1524 (AbstractListItr): New inner class. Code moved here from
1526 (SubList.iterator): Removed. Use default implementation from
1527 AbstractList instead.
1528 (SubList.listIterator): As above.
1529 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1530 instead of hasNext() in iterator loop.
1531 (containsValue): Ditto.
1537 (toString): Ditto. Use string concatenation operators, not
1539 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1540 bounded by size() instead of hasNext() in iterator loop.
1541 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1542 part of normal execution flow. Do an explicit null check instead.
1543 * java/util/ArrayList.java (_iSize): Rename to `size'.
1544 (_arData): Rename to `data'.
1545 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1548 (removeRange): Make protected. Don't check bounds.
1549 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1551 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1553 (addAll (int, Collection)): Check lower bounds. Simplify exception
1555 (clone): Clone the data array too.
1556 (indexOf): Inline doesEqual().
1557 (lastIndexOf): Ditto.
1558 (clear): Don't set array data to null.
1559 (set): Check lower bounds. Simplify exception string.
1560 (toArray): Correct comment.
1561 (trimToSize): Don't update modCount, this is not a structural change.
1564 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1566 (toString): Declare `bit' as long, not int.
1567 (data): Made package-private, not private.
1569 2000-10-27 Warren Levy <warrenl@cygnus.com>
1571 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1572 array elements to true.
1574 2000-10-27 Warren Levy <warrenl@cygnus.com>
1576 * Makefile.am: Added locale files from Classpath.
1577 * Makefile.in: Rebuilt.
1578 * gnu/java/locale/Calendar.java: New file.
1579 * gnu/java/locale/Calendar_de.java: New file.
1580 * gnu/java/locale/Calendar_en.java: New file.
1581 * gnu/java/locale/Calendar_nl.java: New file.
1582 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1583 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1584 serialization compatibility.
1585 (scale): Made private.
1586 (serialVersionUID): New field.
1587 * java/math/BigInteger.java (ival): Made transient.
1588 (words): Made transient.
1589 (bitCount): New serialization field.
1591 (firstNonzeroByteNum): Ditto.
1592 (lowestSetBit): Ditto.
1595 (serialVersionUID): New field.
1596 (readObject): New method.
1597 (writeObject): New method.
1598 * java/util/BitSet.java (serialVersionUID): New field.
1599 * java/util/Calendar.java: Replaced with Classpath file.
1600 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1601 of getDefault() for TimeZone or Locale instead of passing nulls.
1602 * java/util/Locale.java (serialVersionUID): New field.
1603 (writeObject): New method.
1604 (readObject): New method.
1605 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1607 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1609 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1610 (core_java_source_files): Put java.lang, java.io, and java.util here.
1611 (ordinary_java_source_files): Order so that core_java_source_files are
1613 (java_source_files): Reorder so that special_java_source_files are
1615 * configure.in: Don't pass -I flag to gcj.
1616 * Makefile.in: Rebuilt.
1617 * configure: Rebuilt.
1619 2000-10-25 Tom Tromey <tromey@cygnus.com>
1621 * Makefile.in: Rebuilt.
1622 * Makefile.am (install-exec-hook): New target.
1624 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1626 * java/util/EventObject.java: Merged from classpath.
1628 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1631 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1633 * java/util/AbstractSet.java (equals): Re-installed original code.
1635 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1637 * Makefile.am: Added rules for libgcjx library.
1638 * Makefile.in: Rebuilt.
1639 * configure.in: Added check for X.
1640 * configure: Rebuilt.
1641 * gnu/awt/LightweightRedirector.java: New file.
1642 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1643 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1644 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1645 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1646 * gnu/awt/j2d/MappedRaster.java: New file.
1647 * gnu/awt/xlib/XCanvasPeer.java: New file.
1648 * gnu/awt/xlib/XEventLoop.java: New file.
1649 * gnu/awt/xlib/XEventQueue.java: New file.
1650 * gnu/awt/xlib/XFontMetrics.java: New file.
1651 * gnu/awt/xlib/XFramePeer.java: New file.
1652 * gnu/awt/xlib/XGraphics.java: New file.
1653 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1654 * gnu/awt/xlib/XPanelPeer.java: New file.
1655 * gnu/awt/xlib/XToolkit.java: New file.
1656 * gnu/gcj/xlib/Clip.java: New file.
1657 * gnu/gcj/xlib/Colormap.java: New file.
1658 * gnu/gcj/xlib/Display.java: New file.
1659 * gnu/gcj/xlib/Drawable.java: New file.
1660 * gnu/gcj/xlib/Font.java: New file.
1661 * gnu/gcj/xlib/GC.java: New file.
1662 * gnu/gcj/xlib/Pixmap.java: New file.
1663 * gnu/gcj/xlib/Screen.java: New file.
1664 * gnu/gcj/xlib/Visual.java: New file.
1665 * gnu/gcj/xlib/WMSizeHints.java: New file.
1666 * gnu/gcj/xlib/Window.java: New file.
1667 * gnu/gcj/xlib/WindowAttributes.java: New file.
1668 * gnu/gcj/xlib/XAnyEvent.java: New file.
1669 * gnu/gcj/xlib/XButtonEvent.java: New file.
1670 * gnu/gcj/xlib/XColor.java: New file.
1671 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1672 * gnu/gcj/xlib/XConnectException.java: New file.
1673 * gnu/gcj/xlib/XEvent.java: New file.
1674 * gnu/gcj/xlib/XException.java: New file.
1675 * gnu/gcj/xlib/XExposeEvent.java: New file.
1676 * gnu/gcj/xlib/XID.java: New file.
1677 * gnu/gcj/xlib/XImage.java: New file.
1678 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1679 * gnu/gcj/xlib/natClip.cc: New file.
1680 * gnu/gcj/xlib/natColormap.cc: New file.
1681 * gnu/gcj/xlib/natDisplay.cc: New file.
1682 * gnu/gcj/xlib/natDrawable.cc: New file.
1683 * gnu/gcj/xlib/natFont.cc: New file.
1684 * gnu/gcj/xlib/natGC.cc: New file.
1685 * gnu/gcj/xlib/natPixmap.cc: New file.
1686 * gnu/gcj/xlib/natScreen.cc: New file.
1687 * gnu/gcj/xlib/natVisual.cc: New file.
1688 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1689 * gnu/gcj/xlib/natWindow.cc: New file.
1690 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1691 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1692 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1693 * gnu/gcj/xlib/natXColor.cc: New file.
1694 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1695 * gnu/gcj/xlib/natXException.cc: New file.
1696 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1697 * gnu/gcj/xlib/natXImage.cc: New file.
1698 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1699 * java/awt/EventDispatchThread.java: Start thead on creation.
1701 2000-10-20 Tom Tromey <tromey@cygnus.com>
1703 From Arno J. Klaassen:
1704 * interpret.cc: Include <stdlib.h> for alloca.
1705 * defineclass.cc: Include <stdlib.h> for alloca.
1707 * Makefile.in: Rebuilt.
1708 * Makefile.am: Include deps.mk.
1709 (GCJCOMPILE): Added -MD, -MT, and -MF.
1710 ($(javao_files)): Don't depend on libgcj.zip.
1711 (all-recursive): New target.
1712 (%.lo:%.cc): Do dependency tracking.
1713 ($(nat_headers)): Don't depend on libgcj.zip.
1714 * configure: Rebuilt.
1715 * configure.in: Make .d files and deps.mk.
1717 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1719 * exception.cc: Don't #include "exception".
1720 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1722 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1723 * Makefile.in: Updated.
1725 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1727 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1728 * java/awt/peer/ComponentPeer.java (disable): Removed.
1731 (minimumSize): Removed.
1732 (preferredSize): Removed.
1735 * java/awt/peer/ListPeer.java (addItem): Removed.
1737 (minimumSize): Removed.
1738 (preferredSize): Removed.
1739 (setMultipleSelections): Removed.
1740 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1741 (remove): Renamed from removeMenu.
1742 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1744 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1745 (remove): Renamed from removeItem.
1746 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1747 (getMinimumSize): Removed.
1748 (getPreferredSize): Removed.
1749 (minimumSize): Removed.
1750 (preferredSize): Removed.
1751 (replaceText): Removed.
1752 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1753 (preferredSize): Removed.
1754 (getMinimumSize): Removed.
1755 (getPreferredSize): Removed.
1756 (setEchoCharacter): Removed.
1758 2000-10-10 Warren Levy <warrenl@cygnus.com>
1760 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1761 * java/sql/Date.java (serialVersionUID): New field.
1762 * java/sql/Time.java (serialVersionUID): New field.
1763 * java/sql/Timestamp.java (serialVersionUID): New field.
1764 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1765 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1766 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1767 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1768 (readObject): New serialization method.
1769 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1770 (serialVersionOnStream): New field.
1771 (readObject): New serialization method.
1772 (getMonetaryDecimalSeparator): New method.
1773 (setMonetaryDecimalSeparator): New method.
1774 * java/text/NumberFormat.java (maxFractionDigits): New field.
1775 (maxIntegerDigits): New field.
1776 (minFractionDigits): New field.
1777 (minIntegerDigits): New field.
1778 (serialVersionOnStream): New field.
1779 (serialVersionUID): New field.
1780 (readObject): New serialization method.
1781 (writeObject): New serialization method.
1782 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1783 (serialVersionOnStream): New field.
1784 (serialVersionUID): New field.
1785 (readObject): New serialization method.
1787 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1789 * configure.in (GCJ): Avoid bogus error message when looking for
1790 (and not finding) gcj in the build tree.
1791 * configure: Rebuilt.
1793 2000-10-09 Tom Tromey <tromey@cygnus.com>
1795 * configure: Rebuilt.
1796 * configure.in: Include sys/types.h when checking for socklen_t.
1797 From Arno J. Klaassen.
1799 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1801 * include/jvm.h: Enable __builtin_expect().
1803 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1804 the main program. Fix for PR libgcj/341.
1806 2000-10-07 Tom Tromey <tromey@cygnus.com>
1808 * java/util/Properties.java: Merged with Classpath version.
1810 2000-10-05 Tom Tromey <tromey@cygnus.com>
1812 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1813 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1814 * java/lang/Class.h (Object): Added `class$' field.
1815 * java/lang/Object.h (Object): Added `class$' field.
1816 * defineclass.cc (ClassClass): Use `class$' form.
1817 (ClassObject): Likewise.
1818 * resolve.cc (ClassObject): Use `class$' form.
1819 (ObjectClass): Likewise.
1820 * interpret.cc (ClassError): Removed.
1821 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1823 (IntegerClass): Likewise.
1824 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1826 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1827 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1828 SerializableClass): Likewise.
1829 Include Serializable.h, Cloneable.h.
1830 * java/lang/natSystem.cc (SystemClass): Removed.
1831 (init_properties): Use `class$' form.
1832 * java/lang/natObject.cc (CloneableClass): Removed.
1833 (clone): Use `class$' form.
1834 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1835 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1836 ConstructorClass): Likewise.
1837 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1838 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1839 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1840 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1842 (ClassClass): Likewise.
1843 * include/jvm.h (StringClass): Use `class$' form.
1844 * prims.cc (ObjectClass): Removed.
1845 (_Jv_RunMain): Use `class$' form.
1846 (_Jv_AllocObject): Likewise.
1847 * jni.cc (ClassClass): Use `class$' form.
1848 (ThrowableClass): Likewise.
1849 (ObjectClass): Likewise.
1850 (MethodClass): Likewise.
1851 (ThreadGroupClass): Likewise.
1852 (NativeThreadClass): Likewise.
1853 * boehm.cc (ObjectClass): Removed.
1854 (ClassClass): Removed.
1855 (_Jv_MarkObj): Use `class$' form.
1856 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1859 2000-10-05 Warren Levy <warrenl@cygnus.com>
1861 * Makefile.am: Removed java/io/Replaceable.java and
1862 java/io/Resolvable.java.
1863 * Makefile.in: Rebuilt.
1864 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1866 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1868 (processResolution): Handle readResolve method via reflection with
1869 removal of Resolvable interface.
1870 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1871 method via reflection with removal of Replaceable interface.
1872 * java/io/Replaceable.java: Removed.
1873 * java/io/Resolvable.java: Removed.
1874 * java/security/Key.java (serialVersionUID): New field.
1875 * java/security/Provider.java (serialVersionUID): New field.
1876 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1878 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1880 * java/sql/DataTruncation.java (serialVersionUID): New field.
1881 * java/sql/SQLException.java (serialVersionUID): New field.
1882 * java/sql/SQLWarning.java (serialVersionUID): New field.
1883 * java/util/Date.java (serialVersionUID): New field.
1884 (millis): Made transient.
1885 (readObject): New method.
1886 (writeObject): New method.
1888 2000-10-05 Tom Tromey <tromey@cygnus.com>
1890 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1892 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1894 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1895 (JvRunMain): Set _Jv_argv and _Jv_argc.
1896 * java/awt/Component.java: Minor fixes.
1897 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1898 * java/awt/Toolkit.java (systemEventQueue): Removed.
1899 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1900 * java/awt/Window.java (getToolkit): Don't call super.
1901 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1902 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1903 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1904 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1905 * gnu/awt/gtk/GtkFramePeer.java: New file.
1906 * gnu/awt/gtk/GtkMainThread.java: New file.
1907 * gnu/awt/gtk/GtkToolkit.java: New file.
1908 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1909 * gnu/awt/gtk/gtkcommon.cc: New file.
1910 * gnu/awt/gtk/gtkcommon.h: New file.
1911 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1912 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1913 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1914 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1915 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1916 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1918 2000-09-30 Tom Tromey <tromey@cygnus.com>
1920 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1921 interrupted before modifying the cv's wait set.
1924 2000-09-30 Hans Boehm <boehm@acm.org>
1925 Bryce McKinlay <bryce@albatross.co.nz>
1927 Implement bitmap descriptor based marking for Boehm GC.
1929 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1930 * configure: Rebuilt.
1931 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1932 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1933 method get_finalizer().
1934 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1935 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1936 (_Jv_AllocObj): Add new jclass parameter.
1937 (_Jv_AllocArray): Ditto.
1938 (_Jv_BuildGCDescr): New prototype.
1939 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1940 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1941 get_finalizer() instead of direct finalizer vtable offset.
1942 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1943 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1944 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1945 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1946 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1947 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1948 (_Jv_DetermineVTableIndex): Ditto.
1949 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1950 calculations to account for new gc_descr field.
1951 * boehm.cc: #include gc_gcj.h.
1952 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1953 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1954 New commentary from HB. Mark the classes vtable.
1955 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1956 (GC_DEFAULT_DESCR): New #define.
1957 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1958 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1959 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1960 scan conservativly if size is less than min_heap_addr. Set vtable
1961 pointer of new object before returning.
1962 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1963 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1964 allocation for obj_kind_x.
1965 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1966 (_Jv_AllocObj): Set vtable on returned object.
1967 (_Jv_AllocArray): Ditto.
1968 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1969 (_Jv_NewPrimArray): Ditto.
1970 (_Jv_AllocObj): Declare as a friend.
1971 (_Jv_AllocArray): Ditto.
1972 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1973 from &ObjectClass into new array class. Remove offset-by-one
1974 adjustments from `method' size calculations to account for gc_descr
1977 2000-09-26 Tom Tromey <tromey@cygnus.com>
1979 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1980 `remove', not `add'.
1982 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1984 * java/lang/natSystem.cc (file_encoding): Added return statement.
1986 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1988 * Makefile.am: Re-work shell commands that exceeded command-line
1990 * Makefile.in: Rebuilt.
1992 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1994 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1995 * java/lang/natDouble.cc: Likewise.
1996 * java/lang/reflect/natMethod.cc: Likewise.
1997 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1999 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
2001 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2003 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
2004 * acinclude.m4: Arrange for automake to not bring in a new
2005 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
2006 * Makefile.am: Leave it up to automake to subst GCJ.
2007 * aclocal.m4, configure, Makefile.in: Rebuilt.
2009 2000-09-13 Tom Tromey <tromey@cygnus.com>
2011 * java/lang/reflect/natArray.cc (BooleanClass): New define.
2012 (get): Ensure Boolean class is initialized.
2013 * java/lang/reflect/natField.cc (BooleanClass): New define.
2014 (get): Ensure Boolean class is initialized.
2016 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
2018 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2019 Initialize with anonymous class.
2020 (compareToIgnoreCase): New method.
2022 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2023 (uncaughtException): Set had_uncaught_exception.
2024 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2025 exit with error status if set.
2026 (_Jv_RunMain): Ditto.
2028 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
2030 * configure: Rebuilt with new ../libtool.m4.
2032 2000-09-11 Tom Tromey <tromey@cygnus.com>
2034 * java/lang/reflect/Field.java (toString): Don't rely on
2037 2000-09-08 Tom Tromey <tromey@cygnus.com>
2039 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2040 default decoder use iconv.
2041 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2042 Let default encoder use iconv.
2043 * configure: Rebuilt.
2044 * configure.in: Check for nl_langinfo and <langinfo.h>.
2045 * java/lang/natSystem.cc (file_encoding): New function.
2046 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2048 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
2050 * acinclude.m4: Simplify the tests for CC and CXX.
2051 * aclocal.m4, configure: Rebuilt.
2053 * acinclude.m4: Include libtool macros from the source tree.
2054 * aclocal.m4, configure: Rebuilt.
2056 2000-09-08 Warren Levy <warrenl@cygnus.com>
2058 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2059 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2060 * java/io/File.java (writeObject): Added.
2061 (readObject): Added.
2062 (serialVersionUID): Added.
2063 * java/io/ObjectOutputStream.java (writeObject): Initialized
2064 fieldsAlreadyWritten before recursion rather than after.
2065 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2066 * java/io/OptionalDataException.java (serialVersionUID): Added.
2067 (OptionalDataException): Made package private.
2068 * java/io/SyncFailedException.java (SyncFailedException): Removed
2069 default constructor to match spec.
2070 * java/lang/Boolean.java (serialVersionUID): Added.
2071 * java/lang/Byte.java (serialVersionUID): Added.
2072 * java/lang/Character.java (serialVersionUID): Added.
2073 * java/lang/Double.java (serialVersionUID): Added.
2074 * java/lang/Float.java (serialVersionUID): Added.
2075 * java/lang/Integer.java (serialVersionUID): Added.
2076 * java/lang/Long.java (serialVersionUID): Added.
2077 * java/lang/Number.java (serialVersionUID): Added.
2078 * java/lang/Short.java (serialVersionUID): Added.
2079 * java/lang/String.java (serialVersionUID): Added.
2080 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2082 * java/lang/reflect/InvocationTargetException.java
2083 (serialVersionUID): Added.
2084 * java/net/URL.java (handler): Made transient.
2085 (hashCode): Added field for serialization, per spec. and use
2086 cached value if available.
2087 (serialVersionUID): Added.
2088 (URL): Initialize hashCode.
2089 (set): Adjust hashCode.
2090 (readObject): New Method to initialize the protocol handler when
2092 (writeObject): New method.
2093 * java/text/BreakIterator.java: Removed 'implements Serializable'.
2094 * java/text/Collator.java: Removed 'implements Serializable'.
2095 * java/util/GregorianCalendar.java (serialVersionUID): Added.
2096 * java/util/Properties.java (serialVersionUID): Added.
2097 * java/util/Random.java (serialVersionUID): Added.
2098 (seed): Made private.
2099 (nextNextGaussian): Made private.
2100 (haveNextNextGaussian): Made private.
2101 * java/util/Stack.java (serialVersionUID): Added.
2102 * java/util/TimeZone.java (serialVersionUID): Added.
2103 * java/util/Vector.java (serialVersionUID): Added.
2105 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2107 * Makefile.am (Thread.h): Don't be friends with native threads
2109 * Makefile.in: Rebuilt.
2110 * java/lang/Thread.java (interrupt_flag): Make package-private.
2112 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2114 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2115 to avoid long long division.
2117 2000-09-06 Tom Tromey <tromey@cygnus.com>
2119 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2121 * java/lang/reflect/Method.java (toString): Use `getName' for
2124 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2125 `args' if method takes no parameters.
2127 Fix for PR java.lang/339:
2128 * java/lang/natPosixProcess.cc (fail): New function.
2129 (cleanup): New function.
2130 (startProcess): Use them. Create pipe so child can communicate
2131 exec failure back to parent.
2133 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2135 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2137 (send): Undo last patch. Remove the label only.
2139 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2141 * java/net/natInetAdress.cc: Ditto.
2143 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2145 2000-09-05 Tom Tromey <tromey@cygnus.com>
2147 * doc/cni.sgml: Updated from master copy.
2149 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2151 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2153 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2155 * java/lang/fdlibm.h: #undef __P if previously defined.
2156 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2157 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2161 2000-09-04 Tom Tromey <tromey@cygnus.com>
2163 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2166 2000-09-04 Anthony Green <green@redhat.com>
2168 Fix for PR java.io/203:
2169 * java/io/File.java (createTempFile): Obey directory argument.
2170 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2171 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2172 variable to set java.io.tmpdir on non-WIN32 systems.
2174 2000-09-04 Anthony Green <green@redhat.com>
2176 * java/io/File.java (deleteOnExit): New method.
2177 * gnu/gcj/runtime/FileDeleter.java: New class.
2178 * java/lang/natRuntime.cc (exit): Call
2179 FileDeleter.deleteOnExitNow()
2180 * Makefile.am: Add FileDeleter.java.
2181 * Makefile.in: Rebuilt.
2183 2000-09-02 Tom Tromey <tromey@cygnus.com>
2185 * Makefile.in: Rebuilt.
2186 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2187 environment variable.
2189 2000-09-01 Andrew Haley <aph@redhat.com>
2191 * java/io/StreamTokenizer.java: Don't throw a
2192 NumberFormatException if a field is numeric as far as the
2193 StreamTokenizer is concerned but not as far as Double.valueOf() is
2194 concerned: return a zero instead.
2196 2000-08-30 Tom Tromey <tromey@cygnus.com>
2198 * Makefile.in: Rebuilt.
2199 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2201 2000-08-28 Tom Tromey <tromey@cygnus.com>
2203 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2204 gnu/gcj/awt/ComponentDataBlitOp.java,
2205 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2206 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2207 java/awt/color/ICC_ColorSpace.java,
2208 java/awt/color/ICC_Profile.java,
2209 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2210 java/awt/image/ComponentColorModel.java,
2211 java/awt/image/ComponentSampleModel.java,
2212 java/awt/image/DataBuffer.java,
2213 java/awt/image/DataBufferByte.java,
2214 java/awt/image/DataBufferInt.java,
2215 java/awt/image/DataBufferUShort.java,
2216 java/awt/image/DirectColorModel.java,
2217 java/awt/image/IndexColorModel.java,
2218 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2219 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2220 java/awt/image/SinglePixelPackedSampleModel.java,
2221 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2222 Removed Latin-1 copyright symbols.
2223 * java/util/zip/ZipFile.java: Indentation fixes.
2225 2000-08-27 Mark Wielaard <mark@klomp.org>
2227 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2228 constructor, close can delete the file, finalize calls close.
2229 * java/util/jar/JarFile.java: Constructor that takes mode now
2232 2000-08-27 Anthony Green <green@redhat.com>
2234 * java/util/ArrayList.java, java/util/Timer.java,
2235 java/util/LinkedList.java, java/util/TimerTask.java,
2236 java/util/HashMap.java, java/util/AbstractMap.java,
2237 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2238 java/util/SortedSet.java: Imported from GNU Classpath.
2239 * Makefile.in: Rebuilt.
2240 * Makefile.am: Added new files.
2242 2000-08-26 Anthony Green <green@redhat.com>
2244 * Makefile.in: Rebuilt.
2245 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2248 * prims.cc: Include ClassLoader.h.
2249 (_Jv_RunMain): When executing jar files, classpath must be the jar
2250 file only. Lose our reference to the system ClassLoader in order
2251 to get a new one with the correct classpath.
2252 * java/lang/natSystem.cc (init_properties): When executing a jar
2253 file, only use the jar file for java.class.path.
2255 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2256 for bytecode archives.
2258 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2259 exists, but not Main-Class.
2261 2000-08-23 Mark Wielaard <mark@klomp.org>
2263 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2264 return -1 when fill() has no more data for the Inflater.
2266 2000-08-23 Mark Wielaard <mark@klomp.org>
2268 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2269 write(String) already does.
2271 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2273 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2274 to `alive_flag', call `init'.
2275 (init): New native method.
2276 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2279 2000-08-21 Mark Wielaard <mark@klomp.org>
2281 * Makefile.in: Rebuilt.
2282 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2284 (java/lang/reflect/Field.h): Likewise.
2285 (java/lang/reflect/Method.h): Likewise.
2286 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2289 2000-08-21 Tom Tromey <tromey@cygnus.com>
2291 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2294 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2296 * java/lang/natSystem.cc (init_properties): Change sourceware
2297 reference to sources.redhat.com.
2299 * include/java-props.h: Add _Jv_Jar_Class_Path.
2300 * prims.cc: Ditto. Set it from `gij -jar file' option.
2302 * java/lang/natSystem.cc (init_properties): Set java.class.path
2304 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2306 * java/util/PropertyPermission.java: Import from GNU Classpath.
2307 * Makefile.in: Rebuilt.
2308 * Makefile.am: Add java/util/PropertyPermission.java.
2309 * java/lang/System.java: Add setProperty method.
2311 * gij.cc (main): Add -jar option to execute jar files.
2312 (help): Describe -jar option.
2313 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2314 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2315 * gnu/gcj/runtime/FirstThread.java (main): New method.
2317 * java/util/jar/Attributes.java: Correct comment spelling.
2319 2000-08-20 Mark Wielaard <mark@klomp.org>
2321 * java/util/zip/Adler32.java: Make private variables really private
2322 * java/util/zip/CRC32.java: Make private variables really private
2323 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2325 * java/util/zip/InflaterInputStream.java: skip() could skip to
2327 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2328 * java/util/zip/ZipFile.java: size() new 1.2 method
2329 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2330 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2333 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2335 * java/util/jar/JarFile.java: Don't call
2336 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2339 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2341 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2342 Read the entire contents of the class file, not just what is
2345 * java/net/JarURLConnection.java: getEntry doesn't take any
2346 arguments. Return null if element is null.
2348 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2349 size from the archive, not the inflated size.
2351 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2352 java.util.zip.ZipFile.getEntry.
2354 * gij.cc (help): Change sourceware reference to
2357 2000-08-19 Tom Tromey <tromey@cygnus.com>
2359 * java/util/zip/ZipInputStream.java (createZipEntry):
2362 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2364 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2365 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2366 java/util/jar/JarInputStream.java,
2367 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2368 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2369 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2370 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2371 java/security/cert/Certificate.java,
2372 java/security/cert/CertificateEncodingException.java,
2373 java/security/cert/CertificateException.java,
2374 java/security/cert/CertificateExpiredException.java,
2375 java/security/cert/CertificateFactory.java,
2376 java/security/cert/CertificateFactorySpi.java,
2377 java/security/cert/CertificateNotYetValidException.java,
2378 java/security/cert/CertificateParsingException.java,
2379 java/security/cert/X509CRL.java,
2380 java/security/cert/X509CRLEntry.java,
2381 java/security/cert/X509Certificate.java,
2382 java/security/cert/X509Extension.java: Imported from Classpath.
2383 * java/util/Hashtable.java: Imported from Classpath.
2385 * java/util/zip/ZipInputStream.java: Create stub for
2388 * gcj/javaprims.h: Updated class list.
2390 * Makefile.in, gcj/Makefile.in: Rebuilt.
2391 * Makefile.am (ordinary_java_source_files): Add these new classes.
2393 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2395 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2396 * gnu/gcj/awt/GLightweightPeer.java: New file.
2397 * java/awt/BorderLayout.java: Implemented all methods.
2398 * java/awt/Button.java (actionListener, actionCommand): Renamed
2399 and modifier change.
2400 (addNotify): Call super.
2401 (dispatchEventImpl): New method.
2402 (getListeners): New method.
2403 (label): Made package-private, not private.
2404 * java/awt/Canvas.java: Implemented class body.
2405 * java/awt/Color.java (brighter): New method.
2406 (darker): New method.
2407 (hashCode): New method.
2408 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2409 (getGraphicsConfiguration): Delegate to
2410 getGraphicsConfigurationImpl().
2411 (getGraphicsConfigurationImpl): New method.
2412 (getToolkit): Only return value from peer if not null.
2413 (isDisplayable): Check with parent.
2414 (isShowing): No parent implies not showing.
2415 (getForeground): Check parent property if local is null.
2416 (getBackground): Likewise.
2417 (getFont): Likewise.
2418 (setForeground): Inform peer.
2419 (setBackground): Likewise
2420 (setLocale): Invalidate component.
2421 (getColorModel): Implemented.
2422 (setLocation): Invalidate, or ignore if no change.
2423 (setSize): Invalidate, or ignore if no change.
2424 (setBounds): Invalidate, or ignore if no change.
2425 (isOpaque): By default, heavyweight implies opaque.
2426 (isLightweight): Implemented.
2427 (getMaximumSize): Implemented.
2428 (doLayout): Implemented, NOP.
2429 (validate): Implemented, NOP.
2430 (invalidate): Only propagate to parent if parent was valid.
2431 (getGraphics): Implemented.
2432 (getFontMetrics): Implemented.
2433 (update): Implemented.
2434 (paintAll): Implemented.
2435 (repaint): Implemented all repaint methods.
2436 (print): Implemented.
2437 (printAll): Implemented.
2438 (createImage): Implemented.
2439 (dispatchEvent): Give the peer a chance to handle the event.
2440 (dispatchEventImpl): Dispatch paint events.
2441 (enableEvents): Lightweights enable events on parent component.
2442 (coalesceEvents): Coalesce paint events, and select event type
2444 (coalescePaintEvents): New method.
2445 (processEvent): Fix unfortunate ordering of statements, and call
2446 correct method for MOUSE_CLICKED.
2447 (processPaintEvent): New method.
2448 (addNotify): Allow container to notify children before event
2449 mask is set in peer.
2450 (addNotifyContainerChildren): New method.
2451 (removeNotify): Visibility should not change on removeNotify.
2452 (paramString): Implemented.
2453 (list): Implemented two of the list methods.
2454 * Container (myInsets): Removed, insets are managed by peer.
2455 (getInsets): Query peer.
2456 (addImpl): Fix reparenting, enable events for lightweights,
2457 initialize component array.
2458 (validate): Call doLayout in validateTree() instead.
2459 (validateTree): Do nothing if already valid. Call beginValidate(),
2460 endValidate() on peer. Call validateTree() instead of validate()
2461 for children that are containers. Mark valid after validation of
2463 (setFont): Partial implementation.
2464 (paint): Implemented.
2465 (visitChildren): New method.
2466 (visitChild): New method.
2467 (update): Implemented.
2468 (print): Implemented.
2469 (paintComponents): Implemented.
2470 (printComponents): Consider translation and clipping.
2471 (getComponentAt): Ignore invisible children. Return this if no
2473 (addNotify): Call super.
2474 (addNotifyContainerChildren): New method.
2475 (paramString): Implemented.
2476 (list): Implemented.
2477 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2479 (invokeLater): Likewise.
2480 (isDispatchThread): Likewise.
2481 * java/awt/FontMetrics (getLeading): Formula change.
2482 (getDescent): Consider leading also.
2483 (getMaxAscent): Default to getAscent().
2484 (getMaxDescent): Default to getDescent.
2485 (getMaxAdvance): Return value signifying unknown.
2486 (charWidth): Both methods implemented.
2487 (charsWidth): Implemented.
2488 (bytesWidth): Implemented.
2489 (getWidths): Implemented.
2490 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2492 (Frame): Rearragend constuctor chaining to disallow null being
2493 passed as a graphics configuration.
2494 (getTitle): Return empty string if null.
2496 (getIconImage): New method.
2497 (setIconImage): New method.
2498 (finalize): New method.
2499 (setMenuBar): Notify peer.
2500 (isResizable): New method.
2501 (setResizable): New method.
2502 (getState): New method.
2504 (remove): Implemented.
2505 (removeNotify): New method.
2506 (getFrames): New method.
2507 * java/awt/Graphics.java: Implemented body of class.
2508 * java/awt/Graphics2D.java: New file.
2509 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2510 * java/awt/Image.java: Implemented body of class.
2511 * java/awt/Panel.java (Panel): Call correct super constructor.
2512 (addNotify): Implemented.
2513 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2514 * java/awt/RenderingHints.java: New file.
2515 * java/awt/Toolkit.java (createComponent): Implemented.
2516 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2517 * java/awt/Window.java (Window): Two new constructors. Reordered
2518 constructor chaining.
2519 (getGraphicsConfigurationImpl): New method.
2520 (finalize): Call super.
2521 (addNotify): Call super.
2522 (pack): Do layout stuff.
2523 (show): Ensure that peer exists and that component is valid.
2524 (dispose): Dispose owned children.
2525 (getOwner): Simplify code, casting null pointers is valid.
2526 (getGraphicsConfiguration): Ask peer if local value is null.
2527 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2529 * java/awt/image/BufferedImage.java: New file.
2530 * java/awt/image/RasterOp.java: New file.
2531 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2532 More powerfull replacement for getColorModel().
2533 (getColorModel) Removed.
2534 (setEventMask) New method.
2535 * Makefile.am: Added new files.
2536 * Makefile.in: Rebuilt.
2538 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2540 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2541 (finit_leg_name): New global.
2542 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2543 `$finit$'. This is a backward compatibility hack.
2544 (java::lang::Class::_getMethods): Likewise.
2546 2000-08-15 Andrew Haley <aph@cygnus.com>
2548 * include/jvm.h (_Jv_HashCode): New hash code.
2550 2000-08-15 Tom Tromey <tromey@cygnus.com>
2552 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2554 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2556 * THANKS: More thanks.
2558 2000-08-10 Tom Tromey <tromey@cygnus.com>
2560 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2562 (connect): Likewise.
2564 (getOption): Likewise.
2565 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2566 case when errno not set.
2569 (receive): Likewise.
2570 (mcastGrp): Likewise.
2571 (setOption): Likewise.
2572 (getOption): Likewise.
2574 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2575 John Stracke <francis@ecal.com>
2577 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2578 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2580 (disconnect): Don't unset connected flag.
2581 (getHeaderField (String)): Call connect() if not connected.
2582 (getHeaderField (int)): Ditto.
2583 (getHeaderFieldKey): Ditto.
2584 (getHttpHeaders): Don't call connect().
2585 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2586 gotResponseVals): New fields.
2587 (getResponseCode): Call getResponseVals() conditionally.
2588 (getResponseMessage): Ditto.
2589 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2591 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2593 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2594 * Makefile.in: Rebuilt.
2595 * java/awt/Color.java (getTransparency): New method.
2596 * java/awt/Component.java: Various updates.
2597 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2598 after dealing with children.
2599 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2600 * java/awt/Window.java: Various new methods and updates.
2601 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2603 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2604 * java/awt/event/WindowEvent.java (paramString): Ditto.
2605 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2607 * java/awt/geom/Point2D.java (clone): Ditto.
2608 * java/awt/geom/RectangularShape.java (clone): Ditto.
2609 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2610 isAlphaPremultiplied): Make package-private, not private.
2612 2000-08-08 Tom Tromey <tromey@cygnus.com>
2614 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2615 surrogate characters.
2616 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2618 (write): Correct handling of surrogate characters.
2620 2000-08-07 Tom Tromey <tromey@cygnus.com>
2622 * java/lang/reflect/Method.java (hashCode): Use getName().
2623 (toString): Likewise.
2624 * java/lang/reflect/natMethod.cc (getType): Initialize
2627 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2629 * java/lang/reflect/Field.java (toString): Correct formatting.
2632 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2634 (receive): Streamlined.
2636 2000-08-05 Tom Tromey <tromey@cygnus.com>
2638 * java/io/PrintWriter.java: Merged comments from Classpath.
2639 (printlnUnsynchronized): Removed.
2640 (println()): Print the separator.
2641 (println): Call println(), not printlnUnsynchronized.
2642 (out): Now protected, to match spec.
2644 2000-08-04 Tom Tromey <tromey@cygnus.com>
2646 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2647 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2650 2000-08-03 Warren Levy <warrenl@cygnus.com>
2652 * java/io/ObjectInputStream.java (readFields): Turn off
2653 readDataFromBlock while reading via GetField.
2654 (GetField$1.get(String, Object)): Pass Class of default value to
2656 (getField): Allow for null default values.
2658 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2659 (PutField$1.put): Fixed calls of checkType in most of the put
2660 methods to pass the correct parameter.
2661 (PutField$1.put(String, Object)): Allow for null value arg.
2662 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2665 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2666 typo in spec'ed field name.
2667 (getSerialPersistentFields): Changed spelling of method to match
2668 the correct spelling of the spec'ed field name.
2670 2000-08-03 Tom Tromey <tromey@cygnus.com>
2672 * Makefile.in: Rebuilt.
2673 * Makefile.am (awt_java_source_files): Added new files.
2675 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2677 * Makefile.am: Add new AWT stubs.
2678 * java/awt/Canvas.java: New placeholder class.
2679 * java/awt/Checkbox.java: Ditto.
2680 * java/awt/CheckboxMenuItem.java: Ditto.
2681 * java/awt/Choice.java: Ditto.
2682 * java/awt/Dialog.java: Ditto.
2683 * java/awt/FileDialog.java: Ditto.
2684 * java/awt/List.java: Ditto.
2685 * java/awt/ScrollPane.java: Ditto.
2686 * java/awt/TextField.java: Ditto.
2687 * java/awt/datatransfer/Clipboard.java: Ditto.
2688 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2689 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2690 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2691 Some commented out. Partially implemented.
2692 * java/awt/natToolkit.cc: Removed file.
2694 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2696 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2697 Fixes "make -j" builds.
2698 * Makefile.in: Rebuild.
2700 2000-08-02 Tom Tromey <tromey@cygnus.com>
2702 * Makefile.in: Rebuilt.
2703 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2704 * java/net/natPlainSocketImpl.cc: Include posix.h.
2705 (accept): Use _Jv_select.
2706 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2707 (receive): Use _Jv_select.
2708 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2709 (available): Use _Jv_select.
2710 * java/lang/natSystem.cc: Include posix.h.
2711 (currentTimeMillis): Use _Jv_gettimeofday.
2712 * include/posix.h: New file.
2713 * posix.cc: New file.
2715 * scripts/encodings.pl: New file.
2716 * Makefile.in: Rebuilt.
2717 * Makefile.am (convert_source_files): Added IOConverter.java.
2718 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2720 (getDefaultDecodingClass): Canonicalize default encoding name.
2721 (getEncoder): Likewise.
2722 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2724 (getDefaultDecodingClass): Canonicalize default encoding name.
2725 (getDecoder): Likewise.
2726 * gnu/gcj/convert/IOConverter.java: New file.
2728 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2730 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2731 to match C declaration in ffi.h.
2732 * Makefile.am: Add java/awt/Button.java.
2733 * Makefile.in: Rebuilt.
2735 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2737 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2738 cast of the second argument to `ffi_raw_call' changed to match
2741 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2743 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2744 argument to `ffi_raw_call' changed to match prototype.
2746 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2748 * java/awt/Component.java (toString): Implemented.
2749 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2750 dispatchEvent() to dispatch the event.
2751 (removeImpl): Ditto.
2753 2000-07-30 Anthony Green <green@redhat.com>
2755 * java/awt/Component.java: Add treeLock object.
2756 (getTreeLock): Implement.
2757 (isShowing): Implement.
2759 2000-07-30 Tom Tromey <tromey@cygnus.com>
2761 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2763 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2765 * java/awt/Window.java (addNotify): Wrote.
2766 (addWindowListener): Wrote.
2768 (getWarningString): Wrote.
2769 (processEvent): Wrote.
2770 (processWindowEvent): Wrote.
2771 (removeWindowListener): Wrote.
2772 (show): Call validate(), setVisible().
2776 * java/awt/Toolkit.java (createWindow): Declare.
2778 * java/awt/Frame.java (addNotify): Use getToolkit to find
2781 * java/awt/Component.java (invalidate): Wrote.
2783 (getToolkit): Wrote.
2785 * java/awt/Container.java (addContainerListener): Removed
2787 (removeContainerListener): Likewise.
2789 (add(Component)): Use it.
2790 (add(String,Component)): Likewise.
2791 (add(Component,int)): Likewise.
2792 (add(Component,Object)): Likewise.
2793 (add(Component,Object,int)): Likewise.
2795 (getAlignmentX): Wrote.
2796 (getAlignmentY): Wrote.
2797 (getComponentAt): Wrote.
2798 (getMaximumSize): Wrote.
2799 (invalidate): Wrote.
2800 (list(PrintStream,int)): Wrote.
2801 (list(PrintWriter,int)): Wrote.
2802 (getMinimumSize): Wrote.
2803 (getPreferredSize): Wrote.
2804 (printComponents): Wrote.
2805 (processContainerEvent): Look at containerListener, not
2807 (remove): Added event processing and peer destruction.
2808 (removeAll): Use remove.
2809 (removeNotify): Wrote.
2811 (validateTree): Wrote.
2813 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2814 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2815 * java/awt/Container.java (addNotify): Don't create Container
2817 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2819 2000-07-30 Tom Tromey <tromey@cygnus.com>
2821 * java/awt/Container.java (remove(int)): Wrote.
2822 (remove(Component)): Wrote.
2823 (add(Component)): Wrote.
2824 (add(Component,int)): Wrote.
2826 (addNotify): Set our own peer.
2827 * java/awt/Scrollbar.java (listeners): Changed type.
2828 (Scrollbar): Don't initialize listeners.
2830 (setValue): Call setValues.
2831 (setMinimum): Likewise.
2832 (setMaxPriority): Likewise.
2833 (setVisibleAmount): Likewise.
2835 (setUnitIncrement): Forward to peer.
2836 (setLineIncrement): Call setUnitIncrement.
2837 (setPageIncrement): Call setBlockIncrement.
2838 (setBlockIncrement): Forward to peer.
2839 (addAdjustmentListener): Rewrote.
2840 (removeAdjustmentListener): Rewrote.
2841 (processAdjustmentEvent): Rewrote.
2842 (paramString): Wrote.
2843 * Makefile.in: Rebuilt.
2844 * Makefile.am (awt_java_source_files): Added Button.java.
2845 * java/awt/Button.java: New file.
2846 * java/awt/Toolkit.java (createLabel): Declare.
2847 (createButton): Likewise.
2848 (createScrollbar): Likewise.
2849 (createContainer): Likewise.
2850 * java/awt/Label.java (addNotify): Wrote.
2851 (setAlignment): Call setAlignment in the peer.
2852 (setText): Call setText in the peer.
2854 2000-07-28 Warren Levy <warrenl@cygnus.com>
2856 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2857 NotSerializableException with just the class name.
2859 2000-07-26 Andrew Haley <aph@cygnus.com>
2861 * interpret.cc (continue1): Insert missing break into switch.
2863 2000-07-28 Warren Levy <warrenl@cygnus.com>
2865 * java/io/ObjectStreamException.java: Made constructors protected.
2867 2000-07-27 Tom Tromey <tromey@cygnus.com>
2869 * java/io/OutputStreamWriter.java (close): Only flush if not
2872 2000-07-27 Warren Levy <warrenl@cygnus.com>
2874 * mauve-libgcj: Activated serialization tests.
2875 * gcj/field.h (getModifiers): Mask off unknown flags.
2876 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2877 spurious bits don't cause discrepancies.
2878 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2879 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2880 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2881 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2882 * java/lang/Throwable.java (serialVersionUID): New field.
2883 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2884 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2886 * java/lang/reflect/natMethod.cc: Ditto.
2887 * java/security/Key.java (serialVersionUID): Removed field for now.
2888 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2889 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2891 2000-07-22 Tom Tromey <tromey@cygnus.com>
2893 * java/awt/geom/RectangularShape.java (getPathIterator):
2896 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2898 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2899 stub libjava/java/awt/ColorModel.java which was located in the
2901 * libjava/java/awt/image/ComponentColorModel.java: New file.
2902 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2903 * libjava/java/awt/image/DataBuffer.java: New file.
2904 * libjava/java/awt/image/DataBufferByte.java: New file.
2905 * libjava/java/awt/image/DataBufferInt.java: New file.
2906 * libjava/java/awt/image/DataBufferUShort.java: New file.
2907 * libjava/java/awt/image/DirectColorModel.java: New file.
2908 * libjava/java/awt/image/PackedColorModel.java: New file.
2909 * libjava/java/awt/image/Raster.java: New file.
2910 * libjava/java/awt/image/SampleModel.java: New file.
2911 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2913 * libjava/java/awt/image/IndexColorModel.java: New file.
2914 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2915 java.awt.ColorModel stub.
2917 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2918 * gnu/gcj/util/Buffers.java: New file, utility class.
2920 * libjava/Makefile.am: Updated to include new files.
2921 * libjava/Makefile.in: Rebuilt.
2923 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2925 * java/io/StreamTokenizer.java: Merged with classpath.
2927 2000-07-20 Tom Tromey <tromey@cygnus.com>
2929 * Makefile.in: Rebuilt.
2930 * Makefile.am (awt_java_source_files): Updated for new files.
2931 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2932 * java/awt/Label.java: New file.
2933 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2934 (createIntersection, createUnion, getBounds2D): New methods.
2935 * java/awt/Scrollbar.java: New file.
2936 * java/awt/Shape.java: Updated to 1.2.
2937 * java/awt/geom/AffineTransform.java: New file.
2938 * java/awt/geom/Ellipse2D.java: New file.
2939 * java/awt/geom/NoninvertibleTransformException.java: New file.
2940 * java/awt/geom/PathIterator.java: New file.
2941 * java/awt/geom/Rectangle2D.java: New file.
2942 * java/awt/geom/RectangularShape.java: New file.
2943 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2944 * java/awt/geom/IllegalPathStateException.java: New file.
2946 * scripts/showval.java: New file.
2948 * scripts/classes.pl (scan): Print inner classes properly.
2949 * gcj/javaprims.h: Updated class list.
2951 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2952 initialize String fields for interpreted classes. Fixes bug
2953 reported by Hans Boehm.
2955 * java/io/File.java (getParentFile): New method, from Classpath
2956 via Oskar Liljeblad.
2958 * java/util/Vector.java (remove(Object)): Implemented.
2960 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2962 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2963 zero return from backtrace().
2965 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2967 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2969 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2970 before calling notifyAll().
2972 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2974 Add missing files from last check-in:
2975 * java/awt/image/ImageConsumer.java: New file.
2976 * java/awt/image/ImageProducer.java: New file.
2977 * java/awt/image/ImageObserver.java: New file.
2979 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2981 Merged implementation of java.applet from classpath:
2982 * java/applet/Applet.java: New file.
2983 * java/applet/AppletContext.java: New file.
2984 * java/applet/AppletStub.java: New file.
2985 * java/applet/AudioClip.java: New file.
2987 * Makefile.am: Added new java.applet classes.
2988 * Makefile.in: Rebuilt.
2990 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2993 * java/util/ResourceBundle.java (getLocale): stub.
2994 * Makefile.am: Added new AWT classes.
2995 * Makefile.in: Rebuilt.
2996 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2997 constructors. Fix toString() and paramString().
2998 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2999 * java/awt/CheckboxGroup.java: New class.
3000 * java/awt/ColorModel.java: New class.
3001 * java/awt/Component.java: Added stubs for most methods. Implemented
3003 * java/awt/Container.java: ditto.
3004 * java/awt/ComponentOrientation.java: New class. Partly implemented.
3005 * java/awt/Cursor.java: ditto.
3006 * java/awt/Event.java: Fix paramString().
3007 * java/awt/EventQueue.java: New class. Implemented.
3008 * java/awt/Font.java: Added additional stub methods. Implemented
3010 * java/awt/FontMetrics.java: New class. Stubbed.
3011 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3013 * java/awt/Insets.java: New class. Implemented.
3014 * java/awt/Menu.java: Add new methods. Partially implemented.
3015 * java/awt/MenuItem.java: Add new methods and fields. Partially
3017 * java/awt/MenuShortcut.java: New class. Implemented.
3018 * java/awt/Panel.java: New class. Placeholder.
3019 * java/awt/PopupMenu.java: New class. Stubbed.
3020 * java/awt/Rectangle.java: New class. Implemented.
3021 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3022 * java/awt/event/ActionEvent.java: Implement paramString().
3023 * java/awt/event/AdjustmentEvent.java: Implement paramString().
3024 * java/awt/event/ComponentEvent.java: Implement paramString().
3025 * java/awt/event/ContainerEvent.java: Implement paramString().
3026 * java/awt/event/FocusEvent.java: Implement paramString().
3027 * java/awt/event/HierarchyBoundsAdapter.java: New class.
3028 * java/awt/event/HierarchyBoundsListener.java: New class.
3029 * java/awt/event/HierarchyEvent.java: New class.
3030 * java/awt/event/HierarchyListener.java: New class.
3031 * java/awt/event/InputMethodEvent.java: Implement paramString().
3032 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3033 exception if !catchExceptions.
3034 * java/awt/event/ItemEvent.java: Implement paramString().
3035 * java/awt/event/KeyEvent.java: Implement paramString().
3036 * java/awt/event/MouseEvent.java: Implement paramString().
3037 * java/awt/event/PaintEvent.java: Implement paramString().
3038 * java/awt/event/TextEvent.java: Implement paramString().
3039 * java/awt/event/WindowEvent.java: Implement paramString().
3041 AWT Peer interfaces:
3042 * java/awt/peer/ButtonPeer.java: New file.
3043 * java/awt/peer/ListPeer.java: New file.
3044 * java/awt/peer/CanvasPeer.java: New file.
3045 * java/awt/peer/MenuBarPeer.java: New file.
3046 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3047 * java/awt/peer/MenuComponentPeer.java: New file.
3048 * java/awt/peer/CheckboxPeer.java: New file.
3049 * java/awt/peer/MenuItemPeer.java: New file.
3050 * java/awt/peer/ChoicePeer.java: New file.
3051 * java/awt/peer/MenuPeer.java: New file.
3052 * java/awt/peer/ComponentPeer.java: Implemented.
3053 * java/awt/peer/PanelPeer.java: New file.
3054 * java/awt/peer/ContainerPeer.java: Implemented.
3055 * java/awt/peer/PopupMenuPeer.java: New file.
3056 * java/awt/peer/DialogPeer.java: New file.
3057 * java/awt/peer/ScrollPanePeer.java: New file.
3058 * java/awt/peer/FileDialogPeer.java: New file.
3059 * java/awt/peer/ScrollbarPeer.java: New file.
3060 * java/awt/peer/FontPeer.java: New file.
3061 * java/awt/peer/TextAreaPeer.java: New file.
3062 * java/awt/peer/FramePeer.java: Implemented.
3063 * java/awt/peer/TextComponentPeer.java: New file.
3064 * java/awt/peer/LabelPeer.java: New file.
3065 * java/awt/peer/TextFieldPeer.java: New file.
3066 * java/awt/peer/LightweightPeer.java: New file.
3067 * java/awt/peer/WindowPeer.java: Implemented.
3069 2000-07-06 Tom Tromey <tromey@cygnus.com>
3071 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3072 Initialize static final String fields.
3074 2000-07-03 Tom Tromey <tromey@cygnus.com>
3076 * java/io/PrintWriter.java (print): Call write(String), not
3077 print(String). See PR libgcj/277.
3078 (print(String)): Use write, not out.write.
3080 2000-06-30 Tom Tromey <tromey@cygnus.com>
3082 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
3084 2000-06-27 Andrew Haley <aph@cygnus.com>
3086 * java/io/File.java (createTempFile): Close the FileDescriptor
3087 used to create a temp file. Fixes some of PR 203.
3088 * java/io/natFileDescriptorPosix.cc (open): Call garbage
3089 collection if we run out of file handles.
3091 2000-06-28 Warren Levy <warrenl@cygnus.com>
3093 * gnu/java/security/provider/Gnu.java: New file.
3094 * gnu/java/security/provider/SHA.java: New file.
3095 * gnu/java/security/provider/SHA1PRNG.java: New file.
3096 * Makefile.am: Added the above files.
3097 * Makefile.in: Rebuilt.
3099 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3101 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3103 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3104 (destroyed_flag): Removed.
3105 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3106 (activeCount): Added spec note.
3108 2000-06-27 Warren Levy <warrenl@cygnus.com>
3110 * java/security/Principal.java: New file.
3111 * Makefile.am: Added Principal.java.
3112 * Makefile.in: Rebuilt.
3114 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3116 * java/awt/event/MouseEvent.java: Fixed coordinate space
3119 2000-06-27 Tom Tromey <tromey@cygnus.com>
3121 * java/io/PushbackInputStream.java (read): If there are characters
3122 in the buffer, don't also call super.read().
3123 * java/io/PushbackReader.java (read): If there are characters in
3124 the buffer, don't also call super.read().
3126 * java/lang/Double.java (valueOf): Call parseDouble().
3128 2000-06-26 Warren Levy <warrenl@cygnus.com>
3130 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3131 (newVal): Renamed to newValue.
3132 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3133 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3134 (revokeNow): Renamed to invalidateRefs.
3135 * java/io/OptionalDataException.java: Updated FIXME.
3136 (eof): New placeholder field.
3138 * java/io/WriteAbortedException.java (message): Made transient.
3139 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3140 * java/lang/Throwable.java (stackTrace): Made transient.
3141 * java/net/InetAddress.java: Made Serializable.
3142 * java/security/KeyPair.java: Made Serializable.
3143 * java/security/Provider.java: Replaced with Classpath version that
3144 implements serialization and proper methods.
3145 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3146 (limits): Renamed to choiceLimits.
3148 2000-06-24 Tom Tromey <tromey@cygnus.com>
3150 * java/lang/natDouble.cc (parseDouble): Renamed from
3152 * java/lang/Double.java (parseDouble): Renamed from
3153 doubleValueOf. Now public.
3155 2000-06-23 Andrew Haley <aph@cygnus.com>
3157 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3158 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3160 2000-06-23 Tom Tromey <tromey@cygnus.com>
3162 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3163 * java/lang/natDouble.cc: Always include <alloca.h>.
3164 Fix for PR libgcj/267.
3166 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3168 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3169 comply with classpath VM spec.
3170 (add(Group)): Rename to addGroup().
3171 * java/lang/Thread.java (Thread): Use addThread().
3172 * java/lang/natThread.cc (finish_): Use removeThread().
3174 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3176 * java/lang/ThreadGroup.java: Merged with classpath.
3177 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3178 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3180 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3181 ThreadGroup.root if Thread.currentThread is null. Honour the
3182 ThreadGroup's max priority setting.
3184 2000-06-18 Tom Tromey <tromey@cygnus.com>
3186 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3187 returned class. For PR gcj/260.
3189 2000-06-16 Tom Tromey <tromey@cygnus.com>
3191 Fix for PR libgcj/261:
3192 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3194 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3195 argument. (This is a patch from long ago that somehow went
3198 2000-06-15 Tom Tromey <tromey@cygnus.com>
3200 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3204 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3206 Fix for PR java.lang/258:
3207 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3208 JV_STATE_DONE, to prevent accidental initialization.
3209 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3210 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3211 interface or an abstract class. Remove redundant initializeClass calls.
3212 Remove duplicate if_idt test.
3213 (_Jv_InterfaceAssignableFrom): New function.
3214 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3216 2000-05-31 Tom Tromey <tromey@cygnus.com>
3218 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3219 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3220 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3221 (NUM_OBJECT_METHODS): New define.
3222 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3223 `array_vtable' parameter. Added assertion.
3224 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3227 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3229 * gcj/cni.h: Include <string.h>.
3230 * defineclass.cc: Include <alloca.h>.
3231 * interpret.cc: Ditto.
3232 * gij.cc: Include <stdlib.h>.
3234 2000-05-30 Tom Tromey <tromey@cygnus.com>
3236 * include/name-finder.h: Include <sys/wait.h>.
3237 (_Jv_name_finder::pid): Now of type `pid_t'.
3238 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3239 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3242 2000-05-24 Warren Levy <warrenl@cygnus.com>
3244 * java/io/ObjectOutputStream.java (writeObject): Use component type
3245 when writing arrays.
3248 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3250 Fix for PR libgcj/226:
3251 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3252 since this is an installed header.
3254 Fix for PR libgcj/228:
3255 * java/util/zip/ZipFile (getInputStream): Create inflater with
3258 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3259 with DataFormatException.
3261 2000-05-20 Tom Tromey <tromey@cygnus.com>
3263 * Makefile.in: Rebuilt.
3264 * Makefile.am (hack1): Removed.
3265 (awto_files): Likewise.
3266 (libgcjawt_la_SOURCES): Likewise.
3267 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3268 (libgcjawt_la_DEPENDENCIES): Likewise.
3269 (libgcjawt_la_LIBADD): Likewise.
3270 (libgcjawt_la_LDFLAGS): Likewise.
3271 (libgcjawt_la_LINK): Likewise.
3272 ($(awt_java_source_files:.java=.class)): Likewise.
3273 (libgcj.zip): Don't depend on AWT files.
3274 (MOSTLYCLEANFILES): Don't include AWT files.
3275 ($(awto_files)): Removed.
3276 (nat_headers): Removed AWT files.
3277 (cond_awt_java_source_files): Removed.
3278 (ordinary_java_source_files): Added awt_java_source_files.
3279 * libgcj.spec.in (*lib): Removed -lgcjawt.
3280 * configure: Rebuilt.
3281 * configure.in: Removed --enable-java-awt option.
3283 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3285 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3286 (ZipEntry): Copy the `name' field.
3287 (clone): Implement JDK1.2 method.
3288 (setCompressedSize): ditto.
3291 2000-05-19 Tom Tromey <tromey@cygnus.com>
3293 * java/io/BufferedWriter.java: Merged with Classpath.
3294 * java/io/BufferedOutputStream.java: Merged with Classpath.
3296 2000-05-16 Andrew Haley <aph@cygnus.com>
3298 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3299 build_ia64_frame_state.
3300 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3303 2000-05-15 Warren Levy <warrenl@cygnus.com>
3305 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3306 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3307 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3308 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3309 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3310 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3311 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3312 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3313 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3314 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3315 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3316 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3317 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3318 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3319 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3320 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3321 * gnu/gcj/io/NullOutputStream.java: Removed.
3322 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3323 * gnu/gcj/lang/ArrayHelper.java: Removed.
3324 * gnu/gcj/lang/ClassHelper.java: Removed.
3325 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3327 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3328 * gnu/java/beans/EmptyBeanInfo.java: New file.
3329 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3330 * gnu/java/beans/IntrospectionIncubator.java: New file.
3331 * gnu/java/beans/editors/ColorEditor.java: New file.
3332 * gnu/java/beans/editors/FontEditor.java: New file.
3333 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3334 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3335 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3336 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3337 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3338 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3339 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3340 * gnu/java/beans/editors/StringEditor.java: New file.
3341 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3342 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3343 * gnu/java/io/NullOutputStream.java: New file.
3344 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3345 * gnu/java/lang/ArrayHelper.java: New file.
3346 * gnu/java/lang/ClassHelper.java: New file.
3347 * gnu/java/lang/reflect/TypeSignature.java: New file.
3349 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3350 namespace back to the original Classpath gnu/java namespace.
3351 * Makefile.in: Rebuilt.
3353 * java/beans/Beans.java: Namespace change.
3354 * java/beans/EventSetDescriptor.java: Namespace change.
3355 * java/beans/Introspector.java: Namespace change.
3356 * java/beans/PropertyEditorManager.java: Namespace change.
3357 * java/io/ObjectInputStream.java: Namespace change.
3358 * java/io/ObjectOutputStream.java: Namespace change.
3359 * java/io/ObjectStreamClass.java: Namespace change.
3360 * java/io/ObjectStreamField.java: Namespace change.
3362 2000-04-21 Warren Levy <warrenl@cygnus.com>
3364 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3365 now that compiler patch is available.
3366 Removed unneeded System.loadLibrary.
3367 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3368 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3370 2000-04-19 Andrew Haley <aph@cygnus.com>
3372 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3373 and target classes have been initialized.
3375 2000-04-19 Andrew Haley <aph@cygnus.com>
3377 * java/lang/String.java: implement Serializable, Comparable.
3378 (compareTo (Object)): New method.
3380 2000-04-19 Warren Levy <warrenl@cygnus.com>
3382 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3383 instead of getField to retrieve non-public field.
3384 (getSerialPersistantFields): Ditto.
3386 2000-04-18 Warren Levy <warrenl@cygnus.com>
3388 * mauve-libgcj: Turned off object serialization tests temporarily
3389 due to compiler error.
3391 2000-04-17 Warren Levy <warrenl@cygnus.com>
3393 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3394 to avoid build problem.
3396 * mauve-libgcj: Turned on object serialization tests.
3398 2000-04-17 Tom Tromey <tromey@cygnus.com>
3400 * libgcj.spec.in (*lib): Added -lgcjawt.
3402 2000-04-17 Andrew Haley <aph@cygnus.com>
3404 * Makefile.am: Add new files:
3405 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3407 * Makefile.in: Rebuilt.
3409 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3410 interface that has no implementations.
3411 Check for an attempt to assign an abstract class to an interface.
3413 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3414 if we fail to find MessageDigest.getInstance ("SHA").
3416 * gnu/gcj/io/SimpleSHSStream.java: New file.
3417 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3418 * gnu/gcj/io/shs.cc: New file.
3419 * gnu/gcj/io/shs.h: new file.
3421 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3424 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3425 punctuation from the classname of an array element.
3427 * gcj/javaprims.h: Add SimpleDigestStream.
3429 2000-04-17 Andrew Haley <aph@cygnus.com>
3431 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3432 to getPrivateField for superclasses.
3434 2000-04-14 Andrew Haley <aph@cygnus.com>
3436 * Makefile.am: Add new files:
3437 java/io/ObjectOutputStream$PutField.h,
3438 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3439 java/io/natObjectOutputStream.cc
3440 * Makefile.in: Rebuilt.
3441 * gcj/Makefile.in: Rebuilt.
3442 * include/Makefile.in: Rebuilt.
3443 * java/lang/Class.h (getPrivateField): New method.
3444 (getPrivateMethod): Ditto.
3445 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3446 and java::io::ObjectStreamClass our friends.
3447 * java/lang/natClass.cc (getPrivateField): New method.
3448 (getPrivateMethod): Ditto.
3449 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3450 * gcj/javaprims.h: Add serialization classes.
3451 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3452 (setByteField): Ditto.
3453 (setCharField): Ditto.
3454 (setDoubleField): Ditto.
3455 (setFloatField): Ditto.
3456 (setIntField): Ditto.
3457 (setLongField): Ditto.
3458 (setShortField): Ditto.
3459 (setObjectField): Ditto.
3460 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3462 (getByteField): Ditto.
3463 (getCharField): Ditto.
3464 (getDoubleField): Ditto.
3465 (getFloatField): Ditto.
3466 (getIntField): Ditto.
3467 (getLongField): Ditto.
3468 (getShortField): Ditto.
3469 (getObjectField): Ditto.
3470 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3472 (getSerialPersistantFields): Ditto.
3473 (getDefinedSUID): Ditto.
3474 * java/io/natObjectOutputStream.cc: New file.
3475 * java/io/natObjectInputStream.cc: New file.
3477 2000-04-13 Warren Levy <warrenl@cygnus.com>
3479 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3480 problems. Revert to previous version to reproduce and when fixed.
3482 2000-04-13 Warren Levy <warrenl@cygnus.com>
3484 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3485 * gnu/gcj/io/NullOutputStream.java: New file.
3486 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3487 * java/io/BlockDataException.java: New file.
3488 * java/io/Externalizable.java: New file.
3489 * java/io/InvalidClassException.java: New file.
3490 * java/io/InvalidObjectException.java: New file.
3491 * java/io/NotActiveException.java: New file.
3492 * java/io/NotSerializableException.java: New file.
3493 * java/io/ObjectInput.java: New file.
3494 * java/io/ObjectInputStream.java: New file.
3495 * java/io/ObjectInputValidation.java: New file.
3496 * java/io/ObjectOutput.java: New file.
3497 * java/io/ObjectOutputStream.java: New file.
3498 * java/io/ObjectStreamClass.java: New file.
3499 * java/io/ObjectStreamConstants.java: New file.
3500 * java/io/ObjectStreamField.java: New file.
3501 * java/io/Replaceable.java: New file.
3502 * java/io/Resolvable.java: New file.
3503 * java/io/SerializablePermission.java: New file.
3504 * java/io/WriteAbortedException.java: New file.
3505 * java/security/BasicPermission.java: New file.
3506 * java/security/DigestOutputStream.java: New file.
3507 * java/security/Guard.java: New file.
3508 * java/security/Permission.java: New file.
3509 * java/security/PermissionCollection.java: New file.
3510 * Makefile.am: Added above files.
3511 * Makefile.in: Rebuilt.
3513 * java/beans/Beans.java (instantiate): Activated serialization code.
3514 * java/lang/SecurityManager.java (checkPermission): New method.
3516 2000-04-12 Warren Levy <warrenl@cygnus.com>
3518 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3519 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3520 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3521 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3522 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3523 * gnu/gcj/beans/editors/FontEditor.java: New file.
3524 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3525 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3526 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3527 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3528 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3529 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3530 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3531 * gnu/gcj/beans/editors/StringEditor.java: New file.
3532 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3533 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3534 * gnu/gcj/lang/ArrayHelper.java: New file.
3535 * gnu/gcj/lang/ClassHelper.java: New file.
3536 * java/beans/BeanDescriptor.java: New file.
3537 * java/beans/BeanInfo.java: New file.
3538 * java/beans/Beans.java: New file.
3539 * java/beans/Customizer.java: New file.
3540 * java/beans/DesignMode.java: New file.
3541 * java/beans/EventSetDescriptor.java: New file.
3542 * java/beans/FeatureDescriptor.java: New file.
3543 * java/beans/IndexedPropertyDescriptor.java: New file.
3544 * java/beans/IntrospectionException.java: New file.
3545 * java/beans/Introspector.java: New file.
3546 * java/beans/MethodDescriptor.java: New file.
3547 * java/beans/ParameterDescriptor.java: New file.
3548 * java/beans/PropertyChangeEvent.java: New file.
3549 * java/beans/PropertyChangeListener.java: New file.
3550 * java/beans/PropertyChangeSupport.java: New file.
3551 * java/beans/PropertyDescriptor.java: New file.
3552 * java/beans/PropertyEditor.java: New file.
3553 * java/beans/PropertyEditorManager.java: New file.
3554 * java/beans/PropertyEditorSupport.java: New file.
3555 * java/beans/PropertyVetoException.java: New file.
3556 * java/beans/SimpleBeanInfo.java: New file.
3557 * java/beans/VetoableChangeListener.java: New file.
3558 * java/beans/VetoableChangeSupport.java: New file.
3559 * java/beans/Visibility.java: New file.
3560 * java/beans/beancontext/BeanContext.java: New file.
3561 * java/beans/beancontext/BeanContextChild.java: New file.
3562 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3563 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3564 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3565 * java/beans/beancontext/BeanContextEvent.java: New file.
3566 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3567 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3568 * java/beans/beancontext/BeanContextProxy.java: New file.
3569 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3571 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3572 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3574 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3575 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3577 * java/beans/beancontext/BeanContextServices.java: New file.
3578 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3579 * java/util/AbstractCollection.java: New file.
3580 * java/util/AbstractList.java: New file.
3581 * java/util/Arrays.java: New file.
3582 * Makefile.am: Added above files.
3583 * Makefile.in: Rebuilt.
3585 2000-04-11 Warren Levy <warrenl@cygnus.com>
3587 * java/awt/AWTError.java: New file.
3588 * java/awt/AWTEvent.java: New file.
3589 * java/awt/AWTException.java: New file.
3590 * java/awt/ActiveEvent.java: New file.
3591 * java/awt/Adjustable.java: New file.
3592 * java/awt/BorderLayout.java: New file.
3593 * java/awt/Color.java: New file.
3594 * java/awt/Component.java: New file.
3595 * java/awt/Container.java: New file.
3596 * java/awt/Dimension.java: New file.
3597 * java/awt/Event.java: New file.
3598 * java/awt/Font.java: New file.
3599 * java/awt/Frame.java: New file.
3600 * java/awt/Graphics.java: New file.
3601 * java/awt/IllegalComponentStateException.java: New file.
3602 * java/awt/Image.java: New file.
3603 * java/awt/ItemSelectable.java: New file.
3604 * java/awt/LayoutManager.java: New file.
3605 * java/awt/LayoutManager2.java: New file.
3606 * java/awt/Menu.java: New file.
3607 * java/awt/MenuBar.java: New file.
3608 * java/awt/MenuComponent.java: New file.
3609 * java/awt/MenuContainer.java: New file.
3610 * java/awt/MenuItem.java: New file.
3611 * java/awt/Paint.java: New file.
3612 * java/awt/PaintContext.java: New file.
3613 * java/awt/Point.java: New file.
3614 * java/awt/Rectangle.java: New file.
3615 * java/awt/Shape.java: New file.
3616 * java/awt/TextArea.java: New file.
3617 * java/awt/TextComponent.java: New file.
3618 * java/awt/Toolkit.java: New file.
3619 * java/awt/Transparency.java: New file.
3620 * java/awt/Window.java: New file.
3621 * java/awt/natToolkit.cc: New file.
3622 * java/awt/event/AWTEventListener.java: New file.
3623 * java/awt/event/ActionEvent.java: New file.
3624 * java/awt/event/ActionListener.java: New file.
3625 * java/awt/event/AdjustmentEvent.java: New file.
3626 * java/awt/event/AdjustmentListener.java: New file.
3627 * java/awt/event/ComponentAdapter.java: New file.
3628 * java/awt/event/ComponentEvent.java: New file.
3629 * java/awt/event/ComponentListener.java: New file.
3630 * java/awt/event/ContainerAdapter.java: New file.
3631 * java/awt/event/ContainerEvent.java: New file.
3632 * java/awt/event/ContainerListener.java: New file.
3633 * java/awt/event/FocusAdapter.java: New file.
3634 * java/awt/event/FocusEvent.java: New file.
3635 * java/awt/event/FocusListener.java: New file.
3636 * java/awt/event/InputEvent.java: New file.
3637 * java/awt/event/InputMethodEvent.java: New file.
3638 * java/awt/event/InputMethodListener.java: New file.
3639 * java/awt/event/InvocationEvent.java: New file.
3640 * java/awt/event/ItemEvent.java: New file.
3641 * java/awt/event/ItemListener.java: New file.
3642 * java/awt/event/KeyAdapter.java: New file.
3643 * java/awt/event/KeyEvent.java: New file.
3644 * java/awt/event/KeyListener.java: New file.
3645 * java/awt/event/MouseAdapter.java: New file.
3646 * java/awt/event/MouseEvent.java: New file.
3647 * java/awt/event/MouseListener.java: New file.
3648 * java/awt/event/MouseMotionAdapter.java: New file.
3649 * java/awt/event/MouseMotionListener.java: New file.
3650 * java/awt/event/PaintEvent.java: New file.
3651 * java/awt/event/TextEvent.java: New file.
3652 * java/awt/event/TextListener.java: New file.
3653 * java/awt/event/WindowAdapter.java: New file.
3654 * java/awt/event/WindowEvent.java: New file.
3655 * java/awt/event/WindowListener.java: New file.
3656 * java/awt/geom/Dimension2D.java: New file.
3657 * java/awt/geom/Point2D.java: New file.
3658 * java/awt/peer/ComponentPeer.java: New file.
3659 * java/awt/peer/ContainerPeer.java: New file.
3660 * java/awt/peer/FramePeer.java: New file.
3661 * java/awt/peer/WindowPeer.java: New file.
3662 * java/util/Collection.java: New file.
3663 * java/util/Comparator.java: New file.
3664 * java/util/Iterator.java: New file.
3665 * java/util/List.java: New file.
3666 * java/util/ListIterator.java: New file.
3667 * Makefile.am: Added above files.
3668 * Makefile.in: Rebuilt.
3670 2000-04-10 Warren Levy <warrenl@cygnus.com>
3672 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3673 * java/lang/FirstThread.java: Ditto.
3674 * java/lang/StringBuffer.java: Ditto.
3675 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3677 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3678 Special case handled in java.math.BigInteger.
3679 * java/math/BigInteger.java (divide): Handle the special case when
3680 dividing by 1 and the high bit of the dividend is set.
3681 (setShiftRight): Handle case when count == 0.
3683 2000-04-05 Andrew Haley <aph@cygnus.com>
3685 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3688 2000-04-05 Andrew Haley <aph@cygnus.com>
3690 * sysdep/ia64.c (rse_address_add): Delete.
3691 (IS_NaT_COLLECTION_ADDR): Delete.
3692 (ia64_backtrace_helper): check for null unwind_info.
3694 * sysdep/ia64-frame.h: add calc_caller_bsp.
3696 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3699 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3700 (_Jv_remI): Likewise.
3701 (_Jv_divJ): Likewise.
3702 (_Jv_remJ): Likewise.
3704 * interpret.cc (continue1): Use divide subroutines to guarantee
3705 correct Java standard behaviour.
3706 Floating-point division should not abort; make it so.
3708 2000-03-29 Tom Tromey <tromey@cygnus.com>
3710 * configure: Rebuilt.
3711 * configure.in: Test against `libgcj_sjlj', not
3712 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3713 to be set even when using sjlj.
3715 2000-03-24 Andrew Haley <aph@cygnus.com>
3717 * Makefile.am: Add file addr2name.awk.
3718 * Makefile.in: Rebuilt.
3719 * addr2name.awk: New file.
3720 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3722 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3725 2000-03-22 Andrew Haley <aph@cygnus.com>
3727 * configure.host: Add -funwind-tables for IA64.
3728 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3729 * Makefile.in: Rebuilt.
3730 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3731 * sysdep/ia64.c: New file.
3732 * sysdep/ia64-frame.h: New file.
3733 * configure.in: Add sysdep/ia64.c for ia64.
3734 * configure: Rebuilt.
3736 2000-03-17 Andrew Haley <aph@cygnus.com>
3738 * java/lang/natString.cc: Remove `register' keyword.
3739 interpret.cc: ditto.
3741 2000-03-16 Andrew Haley <aph@cygnus.com>
3743 * configure.host (ia64): Enable interpreter.
3745 2000-03-14 Hans Boehm <boehm@acm.org>
3747 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3749 2000-03-14 Andrew Haley <aph@cygnus.com>
3751 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3754 2000-03-10 Andrew Haley <aph@cygnus.com>
3756 * java/lang/ieeefp.h: Import latest version from fdlibm.
3758 2000-03-14 Andrew Haley <aph@cygnus.com>
3760 * prims.cc (_Jv_ThrowSignal): New function.
3761 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3763 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3764 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3765 * include/ppc-signal.h: New file.
3767 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3769 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3770 * java/lang/natThread.java (initialize_native): Cast `data' to
3772 * gnu/gcj/RawData.java: Clarify documentation.
3774 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3775 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3776 `jarFile', not `jarFileURL'.
3778 2000-05-15 Andrew Haley <aph@cygnus.com>
3780 * include/ppc-signal.h: New file.
3782 2000-05-11 Tom Tromey <tromey@cygnus.com>
3784 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3785 file headers, don't include `size' in the skip call.
3787 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3789 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3790 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3792 (replace): Reimplemented. Fix javadoc.
3793 (reverse): Call ensureCapacity_unsynchronized().
3794 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3796 (replace): Calculate length for arraycopy() correctly.
3798 2000-05-09 Tom Tromey <tromey@cygnus.com>
3800 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3802 (insert(int,char[],int,int): New method.
3803 (delete): New method from Classpath.
3804 (deleteCharAt): Likewise.
3805 (substring): Likewise.
3806 (shared): No longer private.
3807 Added JavaDoc comments from Classpath.
3808 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3811 2000-05-07 Tom Tromey <tromey@cygnus.com>
3813 * Makefile.in: Rebuilt.
3814 * Makefile.am (LIBLINK): New macro.
3815 (libgcj_la_LINK): Use it.
3816 (libgcjawt_la_LINK): Likewise.
3818 2000-05-06 Tom Tromey <tromey@cygnus.com>
3820 * Makefile.in: Rebuilt.
3821 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3823 2000-05-05 Tom Tromey <tromey@cygnus.com>
3825 Fix for PR libgcj/220:
3826 * Makefile.in: Rebuilt.
3827 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3828 (jv_convert_LDFLAGS): Likewise.
3829 (libgcj_la_LDFLAGS): Likewise.
3830 (GCJLINK): New macro.
3831 (jv_convert_LINK): Use it.
3832 (gij_LINK): Likewise.
3833 (libgcj_la_LINK): New macro.
3834 (libgcjawt_la_LINK): Likewise.
3836 2000-05-04 Tom Tromey <tromey@cygnus.com>
3838 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3840 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3844 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3846 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3847 (_Jv_IsAssignableFrom): Ditto.
3848 (_Jv_IsInstanceOf): Ditto.
3849 (_Jv_CheckCast): Ditto.
3850 (_Jv_CheckArrayStore): Ditto.
3851 * java/lang/Class.h (_Jv_InitClass): Ditto.
3852 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3857 (_Jv_MonitorExit): Ditto.
3858 * boehm.cc (_Jv_MarkObj): Ditto.
3859 (_Jv_MarkObj): Ditto.
3860 (_Jv_MarkArray): Ditto.
3861 * prims.cc (_Jv_AllocObject): Ditto.
3862 (_Jv_NewObjectArray): Ditto.
3863 (_Jv_NewPrimArray): Ditto.
3864 (_Jv_Malloc): Ditto.
3865 (_Jv_Realloc): Ditto.
3866 (_Jv_MallocUnchecked): Ditto.
3872 2000-05-04 Tom Tromey <tromey@cygnus.com>
3874 * java/util/Locale.java (Locale): Don't explicitly check for
3876 * java/util/Hashtable.java (containsKey): Don't explicitly check
3879 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3881 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3883 * java/text/StringCharacterIterator.java
3884 (StringCharacterIterator): Don't check for null.
3885 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3887 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3888 check for null pointer.
3889 (leaveGroup): Likewise.
3890 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3892 (setData): Likewise.
3893 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3896 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3898 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3899 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3900 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3901 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3902 -rpath for in-gcc builds.
3903 * Makefile.in: Rebuilt.
3905 2000-04-28 Tom Tromey <tromey@cygnus.com>
3907 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3910 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3912 * libjava/java/lang/String.java (toString): Remove `final' hack.
3914 2000-04-05 Tom Tromey <tromey@cygnus.com>
3916 Runtime support for PR gcj/2:
3917 * prims.cc (_Jv_ThrowNullPointerException): New function.
3918 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3920 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3922 * prims.cc (_Jv_NewObjectArray): Fix typo.
3924 2000-04-26 Tom Tromey <tromey@cygnus.com>
3926 * Makefile.in: Rebuilt.
3927 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3929 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3931 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3934 2000-04-22 Anthony Green <green@cygnus.com>
3936 * include/jvm.h (__builtin_expect): Define as unused for now.
3937 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3941 (_Jv_MonitorExit): Ditto.
3942 * boehm.cc (_Jv_MarkObj): Ditto.
3943 (_Jv_MarkObj): Ditto.
3944 (_Jv_MarkArray): Ditto.
3945 (_Jv_AllocBytes): Ditto.
3946 * prims.cc (_Jv_AllocObject): Ditto.
3947 (_Jv_NewObjectArray): Ditto.
3948 (_Jv_NewPrimArray): Ditto.
3949 (_Jv_Malloc): Ditto.
3950 (_Jv_Realloc): Ditto.
3951 (_Jv_MallocUnchecked): Ditto.
3957 * include/Makefile.in: Rebuilt.
3958 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3960 2000-04-21 Tom Tromey <tromey@cygnus.com>
3962 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3963 Yet another new version from Classpath.
3965 Fix for PR libgcj/15:
3966 * java/util/natGregorianCalendar.cc (_REENTRANT,
3967 _POSIX_PTHREAD_SEMANTICS): Don't define.
3968 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3969 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3971 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3973 * configure: Rebuilt.
3974 * configure.in: If using POSIX threads, define _REENTRANT if
3975 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3976 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3978 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3979 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3980 version from Classpath.
3982 Fix for PR libgcj/213:
3983 * Makefile.in: Rebuilt.
3984 * Makefile.am (gij_SOURCES): Added gij.cc.
3985 (EXTRA_gij_SOURCES): Removed.
3986 (gij_LDADD): Removed gij.lo.
3987 (gij_DEPENDENCIES): Likewise.
3988 ($(gij_OBJECTS)): Depend on nat_headers.
3990 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3991 `setURL', not `url.set'.
3993 2000-04-20 Tom Tromey <tromey@cygnus.com>
3995 Fix for PR java.io/204:
3996 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3997 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4000 Fix for PR libgcj/212:
4001 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4002 * include/jvm.h (_Jv_word, _Jv_word2): Define.
4003 * java/lang/Class.h (_Jv_word): Declare.
4005 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4007 2000-04-19 Tom Tromey <tromey@cygnus.com>
4009 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4010 doesn't have a loader.
4012 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
4014 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4015 MAYBE_MARK to ptr_t, for compatibility with new GC version.
4017 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
4019 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4021 (available): Initialize `where' to prevent bogus compiler warning.
4023 2000-04-12 Tom Tromey <tromey@cygnus.com>
4025 * java/lang/natString.cc (intern): Temporarily disable finalizer
4028 * java/lang/natString.cc (unintern): Added `obj' argument.
4029 (intern): Register finalizer for string.
4030 * java/lang/String.java (unintern): Now static; added obj
4033 2000-04-11 Tom Tromey <tromey@cygnus.com>
4035 * java/util/Vector.java (VectorEnumeration): Now `final'.
4036 * java/util/Hashtable.java (HashtableEntry): Now `final'.
4037 (HashtableEnumeration): Likewise.
4038 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4039 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4041 2000-04-10 Warren Levy <warrenl@cygnus.com>
4043 * java/io/ObjectStreamException.java: New file.
4044 * java/io/OptionalDataException.java: New file.
4045 * java/io/StreamCorruptedException.java: New file.
4046 * java/math/BigDecimal.java: New file.
4047 * java/sql/CallableStatement.java: New file.
4048 * java/sql/Connection.java: New file.
4049 * java/sql/DataTruncation.java: New file.
4050 * java/sql/DatabaseMetaData.java: New file.
4051 * java/sql/Date.java: New file.
4052 * java/sql/Driver.java: New file.
4053 * java/sql/DriverManager.java: New file.
4054 * java/sql/DriverPropertyInfo.java: New file.
4055 * java/sql/PreparedStatement.java: New file.
4056 * java/sql/ResultSet.java: New file.
4057 * java/sql/ResultSetMetaData.java: New file.
4058 * java/sql/SQLException.java: New file.
4059 * java/sql/SQLWarning.java: New file.
4060 * java/sql/Statement.java: New file.
4061 * java/sql/Time.java: New file.
4062 * java/sql/Timestamp.java: New file.
4063 * java/sql/Types.java: New file.
4064 * Makefile.am: Added above new files.
4065 * Makefile.in: Rebuilt.
4067 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4068 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4069 DatagramSocket constructor instead of null.
4071 2000-04-08 Anthony Green <green@cygnus.com>
4073 * include/posix-threads.h (_Jv_MutexUnlock): Replace
4076 2000-04-08 Anthony Green <green@cygnus.com>
4078 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4079 (_Jv_MutexUnlock): Ditto.
4080 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4081 (_Jv_MutexUnlock): Ditto.
4083 2000-04-08 Anthony Green <green@cygnus.com>
4085 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4086 (ensureCapacity_unsynchronized): New private method.
4087 (append): Use ensureCapacity_unsynchronized.
4089 2000-04-08 Tom Tromey <tromey@cygnus.com>
4091 * Makefile.in: Rebuilt.
4092 * Makefile.am (awt_java_source_files): Added new files.
4093 * java/awt/IllegalComponentStateException.java: New file.
4094 * java/awt/ItemSelectable.java: New file.
4095 * java/awt/event/WindowEvent.java: Finished.
4096 * java/awt/event/TextEvent.java: Finished.
4097 * java/awt/event/ContainerEvent.java: New file.
4098 * java/awt/Component.java (getX, getY): New methods.
4099 * java/awt/event/PaintEvent.java: New file.
4100 * java/awt/event/MouseEvent.java: New file.
4101 * java/awt/ActiveEvent.java: New file.
4102 * java/awt/event/KeyEvent.java: Finished.
4103 * java/awt/event/ItemEvent.java: New file.
4104 * java/awt/Adjustable.java: New file.
4105 * java/awt/event/InputMethodEvent.java: New file.
4106 * java/awt/event/InputEvent.java: Finished.
4107 * java/awt/event/FocusEvent.java: New file.
4108 * java/awt/event/MouseMotionAdapter.java: New file.
4109 * java/awt/event/MouseAdapter.java: New file.
4110 * java/awt/event/KeyAdapter.java: New file.
4111 * java/awt/event/FocusAdapter.java: New file.
4112 * java/awt/event/ContainerAdapter.java: New file.
4113 * java/awt/event/ComponentEvent.java: Finished.
4114 * java/awt/event/AdjustmentEvent.java: New file.
4115 * java/awt/event/ComponentAdapter.java: New file.
4116 * java/awt/event/ActionEvent.java: Finished.
4117 * java/awt/event/MouseMotionListener.java: New file.
4118 * java/awt/event/MouseListener.java: New file.
4119 * java/awt/event/ItemListener.java: New file.
4120 * java/awt/event/InputMethodListener.java: New file.
4121 * java/awt/event/ContainerListener.java: New file.
4122 * java/awt/event/FocusListener.java: New file.
4123 * java/awt/event/ComponentListener.java: New file.
4124 * java/awt/event/AWTEventListener.java: New file.
4125 * java/awt/event/AdjustmentListener.java: New file.
4127 2000-04-08 Anthony Green <green@cygnus.com>
4129 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4130 check when we have to.
4132 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4135 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4138 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4139 inline hasMoreElements.
4141 2000-04-05 Tom Tromey <tromey@cygnus.com>
4143 * configure: Rebuilt.
4144 * configure.in: Recognize --enable-java-awt.
4145 (AWT): New conditional.
4146 * Makefile.in: Rebuilt.
4147 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4149 (libgcjawt_la_SOURCES): New macro.
4150 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4151 (libgcjawt_la_DEPENDENCIES): Likewise.
4152 (libgcjawt_la_LIBADD): Likewise.
4153 (libgcjawt_la_LDFLAGS): Likewise.
4154 (libgcj.zip): Depend on cond_java_awt_source_files
4155 (cond_awt_java_source_files): New macro.
4156 (MOSTLYCLEANFILES): Added awto_files.
4157 (awto_files): New macro. Use where javao_files used.
4158 (nat_headers): Use cond_awt_java_source_files.
4160 2000-04-04 Tom Tromey <tromey@cygnus.com>
4162 * Makefile.in: Rebuilt.
4163 * Makefile.am (awt_java_source_files): Added AWTException.java.
4164 * java/awt/AWTException.java: New file.
4166 2000-04-03 Tom Tromey <tromey@cygnus.com>
4168 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4169 commentary from Alex.
4171 * Makefile.in: Rebuilt.
4172 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4175 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4177 * configure: Rebuilt.
4178 * configure.in: Add --disable-jvmpi.
4179 * include/config.h.in: Rebuilt.
4180 * acconfig.h: Add ENABLE_JVMPI.
4182 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4183 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4184 (_Jv_JVMPI_Notify_THREAD_END): New define.
4185 (_Jv_JVMPI_Notify_THREAD_END): New define.
4186 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4187 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4188 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4190 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4193 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4194 (finish_): Generate JVMPI thread end events.
4195 (run_): Generate JVMPI thread start events.
4196 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4197 preloaded JNI library.
4198 Include JVMPI headers if necessary.
4199 (run): Generate JVMPI thread start events.
4201 * boehm.cc: Define GC_disable and GC_enable.
4202 (_Jv_DisableGC): New function.
4203 (_Jv_EnableGC): New function.
4204 (disable_gc_mutex): Declare.
4205 * nogc.cc (_Jv_DisableGC): New function.
4206 (_Jv_EnableGC): New function.
4208 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4209 (_Jv_JVMPI_Interface): Define.
4210 (jvmpiEnableEvent): New function.
4211 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4213 * include/jvmpi.h: New file.
4215 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4217 * Makefile.in: New #defines and friends for Thread.h.
4218 * Makefile.am: Ditto.
4219 * posix-threads.cc: (struct starter): Remove `object'.
4220 (_Jv_CondWait): Use interruptable condition variables and new
4221 recursive mutexes. New return codes on interrupt or non-ownership
4223 (_Jv_CondNotify): Ditto.
4224 (_Jv_CondNotifyAll): Ditto.
4225 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4226 the target thread by signaling its wait condition.
4227 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4228 not the starter struct. Initialize wait_mutex and wait_cond.
4229 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4231 (_Jv_MutexUnlock): Ditto.
4232 (really_start): Set info->data->thread from pthread_self() to work
4233 around a race condition. Destroy wait_mutex and wait_cond when run()
4235 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4236 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4238 startable_flag: New private field.
4239 (Thread): Initialize `startable_flag'.
4240 (toString): Check for null thread group.
4241 * java/lang/natThread.cc: (struct natThread): New fields
4242 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4243 (class locker): Removed.
4244 (initialize_native): Initialize `join_cond' and `join_mutex'.
4245 (interrupt): Now just calls _Jv_ThreadInterrupt().
4246 (join): Simplified. Just wait on the target thread's join condition.
4247 (finish_): Remove join list code. Unset thread group. Signal
4248 potential joiners by notifying the dying threads join_cond.
4249 (start): Check for illegal restarts.
4250 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4252 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4253 #defines and #ifdefs.
4254 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4255 `wait_mutex', `next'.
4256 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4257 directly mapping to pthread_cond_t.
4258 (struct _Jv_Mutex_t): New recursive implementation.
4259 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4260 _Jv_HaveCondDestroy: Never define this for posix-threads.
4261 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4262 (_Jv_CondNotifyAll): Ditto.
4263 (_Jv_MutexLock): Ditto.
4264 (_Jv_MutexUnlock): Ditto.
4265 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4266 (_Jv_MutexDestroy): Ditto.
4267 (_Jv_CondDestroy): Removed.
4268 (_Jv_PthreadGetMutex): Removed.
4269 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4270 error. Add a FIXME about this.
4271 (_Jv_CondNotifyAll): Ditto.
4272 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4273 _JV_NOT_OWNER on other errors. Add FIXME.
4275 2000-03-26 Tom Tromey <tromey@cygnus.com>
4277 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4279 (call): Don't throw exception here.
4281 2000-03-26 Tom Tromey <tromey@cygnus.com>
4283 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4284 * interpret.cc: Use SIZEOF_VOID_P.
4285 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4286 (_Jv_loadLong): Likewise.
4287 (_Jv_storeDouble): Likewise.
4288 * configure: Rebuilt.
4289 * configure.in: Check size of void*.
4291 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4293 2000-03-26 Hans Boehm <boehm@acm.org>
4295 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4296 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4298 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4299 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4300 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4301 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4303 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4304 (FFI_RAW_SIZE): Likewise.
4305 (_Jv_InterpMethod::ncode): Use them.
4306 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4307 STORED): Define differently on a 64 bit machine.
4308 (continue1): Use ffi_java_raw_call when appropriate.
4310 2000-03-24 Warren Levy <warrenl@cygnus.com>
4312 * java/math/BigInteger.java(divide): Handle the special case when
4313 dividing by 1 and the high bit of the dividend is set.
4314 (setShiftRight): Handle case when count == 0.
4316 2000-03-24 Warren Levy <warrenl@cygnus.com>
4318 * java/awt/Font.java(isBold): Fix syntax error.
4320 * java/awt/Frame.java(postEvent): ditto.
4321 * java/awt/Menu.java(postEvent): ditto.
4322 * java/awt/MenuBar.java(postEvent): ditto.
4323 * java/awt/Toolkit.java(init): Included a stub.
4325 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4327 * java/awt/Event.java: Add all the event type constants.
4328 (Event): Implemented constructors.
4329 (controlDown): Implemented.
4330 (metaDown): Implemented.
4331 (paramString): Stubbed.
4332 (shiftDown): Implemented.
4333 (toString): Implemented.
4334 (translate): Implemented.
4336 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4338 * java/lang/natClass.cc (isInstance): Initialize `this'.
4339 (isAssignableFrom): Initialize `this' and `klass'.
4340 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4341 implemented by any loaded class, so return false.
4342 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4343 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4345 2000-03-19 Warren Levy <warrenl@cygnus.com>
4347 * java/awt/Color.java: Specified java.io for Serializable.
4348 * java/awt/Toolkit.java: Imported java.net.URL.
4350 2000-03-19 Warren Levy <warrenl@cygnus.com>
4352 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4354 2000-03-16 Warren Levy <warrenl@cygnus.com>
4356 * java/awt/Color.java: New file.
4357 * java/awt/Graphics.java: New file.
4358 * java/awt/Image.java: New file.
4359 * java/awt/Paint.java: New file.
4360 * java/awt/PaintContext.java: New file.
4361 * java/awt/Transparency.java: New file.
4362 * java/util/Collection.java: New file.
4363 * java/util/Comparator.java: New file.
4364 * java/util/Iterator.java: New file.
4365 * java/util/List.java: New file.
4366 * java/util/ListIterator.java: New file.
4367 * Makefile.am: Added above new files.
4368 * Makefile.in: Rebuilt.
4370 * java/awt/Font.java (PLAIN): New field.
4372 (ITALIC): New field.
4373 (ROMAN_BASELINE): New field.
4374 (CENTER_BASELINE): New field.
4375 (HANGING_BASELINE): New field.
4379 (pointSize): New field.
4380 (Font): Implemented constructor.
4381 (isPlain): Implemented method.
4382 (isBold): Implemented method.
4383 (isItalic): Implemented method.
4384 (getName): Implemented method.
4385 (getStyle): Implemented method.
4386 (getSize): Implemented method.
4387 (getSize2D): Implemented method.
4389 * java/awt/Frame.java (getFont): Stubbed.
4390 (postEvent): Stubbed.
4392 * java/awt/Menu.java (postEvent): Stubbed.
4393 * java/awt/MenuBar.java (getFont): Stubbed.
4394 (postEvent): Stubbed.
4395 * java/awt/Toolkit.java (getImage): Added abstract method.
4397 2000-03-15 Tom Tromey <tromey@cygnus.com>
4399 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4401 * prims.cc (win32_exception_handler): Reformatted.
4403 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4404 (_Jv_HaveMutexDestroy): Likewise.
4406 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4408 * java/io/natFileDescriptorWin32.cc: New file.
4409 * java/io/natFileWin32.cc: New file.
4410 * java/net/natInetAddress.cc: Added conditional inclusion of
4411 Windows / Winsock headers.
4412 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4413 inclusion of Windows / Winsock headers.
4414 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4415 Windows / Winsock headers.
4416 * include/win32-signal.h: New file.
4417 * include/win32-threads.h: New file.
4418 * win32-threads.cc: New file.
4419 * exception.cc (win32_get_restart_frame): New function.
4420 * prims.cc (win32_exception_handler): New function.
4421 (main_init) Performs Winsock initialisation.
4422 (main_init) Installs exeception handler.
4424 2000-03-14 Tom Tromey <tromey@cygnus.com>
4426 * jni.cc (mangled_name): Fixed assertion.
4427 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4428 turned assert into actual failure.
4430 2000-03-09 Warren Levy <warrenl@cygnus.com>
4432 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4433 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4434 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4436 2000-03-09 Warren Levy <warrenl@cygnus.com>
4438 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4439 * java/security/DigestException.java: New file.
4440 * java/security/GeneralSecurityException.java: New file.
4441 * java/security/InvalidAlgorithmParameterException.java: New file.
4442 * java/security/InvalidKeyException.java: New file.
4443 * java/security/InvalidParameterException.java: New file.
4444 * java/security/Key.java: New file.
4445 * java/security/KeyException.java: New file.
4446 * java/security/KeyPair.java: New file.
4447 * java/security/KeyPairGenerator.java: New file.
4448 * java/security/KeyPairGeneratorSpi.java: New file.
4449 * java/security/NoSuchProviderException.java: New file.
4450 * java/security/PrivateKey.java: New file.
4451 * java/security/Provider.java: New file.
4452 * java/security/PublicKey.java: New file.
4453 * java/security/SecureRandom.java: New file.
4454 * java/security/Security.java: New file.
4455 * java/security/Signature.java: New file.
4456 * java/security/SignatureException.java: New file.
4457 * java/security/interfaces/DSAKey.java: New file.
4458 * java/security/interfaces/DSAParams.java: New file.
4459 * java/security/interfaces/DSAPrivateKey.java: New file.
4460 * java/security/interfaces/DSAPublicKey.java: New file.
4461 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4462 * java/security/interfaces/RSAPrivateKey.java: New file.
4463 * java/security/interfaces/RSAPublicKey.java: New file.
4464 * java/security/spec/AlgorithmParameterSpec.java: New file.
4465 * java/security/spec/InvalidKeySpecException.java: New file.
4466 * java/security/spec/InvalidParameterSpecException.java: New file.
4467 * java/security/spec/KeySpec.java: New file.
4468 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4469 * java/security/spec/RSAPrivateKeySpec.java: New file.
4470 * java/security/spec/RSAPublicKeySpec.java: New file.
4471 * Makefile.am: Added above java.security files.
4472 * Makefile.in: Rebuilt.
4474 * java/security/MessageDigest.java: Rewritten.
4475 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4477 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4481 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4483 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4484 _Jv_PrepareConstantTimeTables.
4485 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4486 classes should have an IDT, so don't return if klass is an array
4489 2000-03-08 Tom Tromey <tromey@cygnus.com>
4491 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4492 of `void' to be created.
4494 2000-03-08 Warren Levy <warrenl@cygnus.com>
4496 * java/math/BigInteger.java(signum): Handle zero properly.
4498 2000-03-07 Tom Tromey <tromey@cygnus.com>
4500 * All files: Updated copyright information.
4501 * COPYING: New file.
4502 * COPYING.LIB: Removed.
4503 * LIBGCJ_LICENSE: We now use GPL + special exception.
4505 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4507 * resolve.cc (_Jv_SearchMethodInClass): New function.
4508 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4509 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4511 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4513 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4514 (struct _Jv_ifaces): New declaration.
4515 JV_CLASS: New macro definition.
4516 (getComponentType): Relocate below isArray() for inlining.
4517 (getModifiers): Declare `inline'.
4518 (getSuperclass): Ditto.
4520 (isPrimitive): Ditto.
4521 (_Jv_IsAssignableFrom): New prototype.
4522 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4524 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4525 Check for JV_STATE_DONE before invoking initializeClass().
4526 (_Jv_PrepareConstantTimeTables): New prototype.
4527 (_Jv_GetInterfaces): Ditto.
4528 (_Jv_GenerateITable): Ditto.
4529 (_Jv_GetMethodString): Ditto.
4530 (_Jv_AppendPartialITable): Ditto.
4531 (_Jv_FindIIndex): Ditto.
4532 depth, ancestors, idt: New class fields.
4534 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4535 inline function `_Jv_IsAssignableFrom'. Use that function.
4536 (isInstance): Declare `inline'.
4537 (initializeClass): Get lock on class before checking `state'. Unlock
4538 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4540 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4541 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4542 class->depth and ancestor table.
4543 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4544 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4545 _Jv_IsAssignableFrom.
4546 (_Jv_CheckArrayStore): Ditto.
4547 (_Jv_LookupInterfaceMethodIdx): New function.
4548 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4549 (_Jv_PrepareConstantTimeTables): New function.
4550 (_Jv_IndexOf): Ditto.
4551 (_Jv_GetInterfaces): Ditto.
4552 (_Jv_GenerateITable): Ditto.
4553 (_Jv_GetMethodString): Ditto.
4554 (_Jv_AppendPartialITable): Ditto.
4555 iindex_mutex, iindex_mutex_initialized: New static fields.
4556 (_Jv_FindIIndex): New function.
4558 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4560 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4561 (_Jv_CheckArrayStore): Ditto.
4562 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4563 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4564 Moved to gcj/array.h.
4565 (_Jv_Realloc): New function.
4567 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4569 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4570 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4571 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4572 JvNewDoubleArray): Implementations moved from prims.cc and
4575 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4577 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4579 2000-03-06 Tom Tromey <tromey@cygnus.com>
4581 * jni.cc (MARK_NONE): New define.
4582 (MARK_USER): Likewise.
4583 (MARK_SYSTEM): Likewise.
4584 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4586 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4587 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4588 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4589 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4591 (call): Use MARK_SYSTEM.
4592 (_Jv_GetJNIEnvNewFrame): New function.
4593 (_Jv_LookupJNIMethod): New function.
4594 (_Jv_JNI_PopSystemFrame): New function.
4595 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4597 2000-03-05 Tom Tromey <tromey@cygnus.com>
4599 Fix for PR libgcj/43:
4600 * include/Makefile.in: Rebuilt.
4601 * include/Makefile.am (include_HEADERS): New define.
4603 2000-03-05 Anthony Green <green@redhat.com>
4605 * gcj/javaprims.h ("Java"): Remove FirstThread.
4607 * configure.host: Fix __NO_MATH_INLNES botch.
4609 * Makefile.in: Rebuilt.
4610 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4611 (gnu/gcj/runtime/FirstThread.h): Moved.
4612 (ordinary_java_source_files): Move FirstThread.java.
4613 * prims.cc: Deal with FirstThread movement.
4615 (_Jv_RunMain): Ditto.
4617 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4618 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4620 2000-03-05 Warren Levy <warrenl@cygnus.com>
4622 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4623 Handle null addresses.
4625 2000-03-04 Anthony Green <green@redhat.com>
4627 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4630 2000-03-04 Anthony Green <green@redhat.com>
4632 * configure: Rebuilt.
4633 * configure.in (ZLIBTESTSPEC): New macro.
4634 (GCTESTSPEC): New macro.
4635 (LIBGCJTESTSPEC): New macro.
4636 * libgcj-test.spec.in: New file.
4638 2000-03-02 Tom Tromey <tromey@cygnus.com>
4640 * include/java-interp.h: Don't include MethodInvocation.h.
4641 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4642 * Makefile.in: Rebuilt.
4643 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4644 (ordinary_java_source_files): Don't mention
4645 MethodInvocation.java.
4646 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4647 * interpret.cc (MethodInvocation::continue1): Removed.
4648 (run): Handle exceptions here.
4649 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4651 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4653 (defineClass2): Removed.
4655 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4657 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4659 (hack_call): Removed.
4661 * java/lang/Class.h (Class): Removed hackRunInitializers,
4663 * java/lang/natClass.cc (hackRunInitializers): Removed.
4664 (initializeClass): Catch exceptions here.
4665 Include ExceptionInInitializerError.h.
4666 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4669 * java/lang/Object.h (Object): Don't mention hack12_6.
4670 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4672 * java/lang/Object.java (hack12_6): Removed.
4674 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4675 (start): Use run_, not run__.
4676 * java/lang/Thread.java (run_): Renamed from run__; old run_
4679 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4680 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4681 (_Jv_JNI_DefineClass): Likewise.
4682 (_Jv_JNI_ThrowNew): Likewise.
4683 (_Jv_JNI_AllocObject): Likewise.
4684 (_Jv_JNI_GetAnyMethodID): Likewise.
4685 (_Jv_JNI_CallAnyMethodV): Likewise.
4686 (_Jv_JNI_CallAnyMethodA): Likewise.
4687 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4688 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4689 (_Jv_JNI_GetAnyFieldID): Likewise.
4690 (_Jv_JNI_NewString): Likewise.
4691 (_Jv_JNI_NewStringUTF): Likewise.
4692 (_Jv_JNI_GetStringUTFChars): Likewise.
4693 (_Jv_JNI_NewObjectArray): Likewise.
4694 (_Jv_JNI_NewPrimitiveArray): Likewise.
4695 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4696 (_Jv_JNI_GetStringRegion): Likewise.
4697 (_Jv_JNI_GetStringUTFRegion): Likewise.
4698 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4699 (_Jv_JNI_MonitorEnter): Likewise.
4700 (_Jv_JNI_MonitorExit): Likewise.
4701 (_Jv_JNI_ToReflectedField): Likewise.
4702 (_Jv_JNI_ToReflectedMethod): Likewise.
4703 (_Jv_JNI_RegisterNatives): Likewise.
4704 (_Jv_JNI_AttachCurrentThread): Likewise.
4705 (_Jv_JNI_DestroyJavaVM): Likewise.
4707 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4709 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4710 error caused by the incorrect casting of a long to an int.
4712 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4714 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4715 SIGSEV caused by use of the wrong instance variable.
4717 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4719 * java/io/File.java (File(String, String)): For dirPath, treat an
4720 empty String the same as `null'.
4722 2000-02-26 Anthony Green <green@cygnus.com>
4724 * gnu/gcj/io/MimeTypes.java: Test for null.
4726 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4727 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4729 * java/net/URLConnection.java: Update copyright notice.
4731 2000-02-25 Tom Tromey <tromey@cygnus.com>
4733 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4736 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4738 * java/net/URLConnection.java (initializeDateFormats): New
4740 (getHeaderFieldDate): Call initializeDateFormats if required.
4741 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4743 Fix for PR libgcj/38.
4745 2000-02-24 Warren Levy <warrenl@cygnus.com>
4747 * java/math/BigInteger.java(ival): Made private.
4751 2000-02-20 Anthony Green <green@cygnus.com>
4753 * Makefile.in: Rebuilt.
4754 * Makefile.am (ordinary_java_source_files): Add
4755 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4757 * scripts/MakeDefaultMimeTypes.java: New file.
4758 * scripts/mime.types: New file.
4759 * scripts/classes.pl: Moved from top level.
4760 * classes.pl: Moved to scripts directory.
4762 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4764 * gnu/gcj/io/MimeTypes.java: New file.
4765 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4767 2000-02-20 Tom Tromey <tromey@cygnus.com>
4769 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4771 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4773 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4776 2000-02-18 Tom Tromey <tromey@cygnus.com>
4778 * include/jvm.h (_Jv_GetJavaVM): Declare.
4779 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4780 (_Jv_MethodBase::get_method): New method.
4781 (_Jv_JNIMethod::set_function): New method.
4782 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4783 (_Jv_JNI_RegisterNatives): New function.
4784 (_Jv_JNIFunctions): Updated for new functions.
4785 (_Jv_GetJavaVM): New function.
4786 (_Jv_JNI_GetJavaVM): Use it. Now static.
4787 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4788 is already a Java thread but does not have a JNIEnv yet.
4790 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4793 2000-02-17 Tom Tromey <tromey@cygnus.com>
4795 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4798 2000-02-16 Tom Tromey <tromey@cygnus.com>
4800 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4802 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4803 (_Jv_JNI_NewObject): Likewise.
4804 (_Jv_JNI_NewObjectA): Likewise.
4805 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4806 as "return" type to _Jv_CallAnyMethodA.
4807 (_Jv_JNI_CallAnyMethodA): Likewise.
4808 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4810 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4813 2000-02-15 Tom Tromey <tromey@cygnus.com>
4815 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4817 (init_cif): Added `rtype_p' argument.
4818 * include/java-interp.h (class _Jv_MethodBase): Added
4820 (class _Jv_InterpMethod): Removed args_raw_size.
4821 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4822 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4823 class pointer as well as the ordinary arguments.
4825 * jni.cc (mangled_name): Skip leading `(' in signature.
4827 * jni.cc (add_char): Added missing `else'.
4829 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4832 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4836 * java/lang/natRuntime.cc (_load): Include library path with
4839 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4842 * java/lang/natThread.cc (dumpStack): Removed.
4843 * java/lang/Thread.java (dumpStack): Implemented.
4845 2000-02-15 Tom Tromey <tromey@cygnus.com>
4847 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4848 with `lib' for loadLibrary. Fixes PR gcj/150.
4850 2000-02-14 Warren Levy <warrenl@cygnus.com>
4852 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4854 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4858 (modPow): Rewritten to not use the naive, slow, brute force approach.
4859 (isProbablePrime): Implemented.
4860 (testBit): Implemented.
4861 (flipBit): Implemented.
4862 (getLowestSetBit): Implemented.
4864 2000-02-16 Anthony Green <green@redhat.com>
4866 * configure.host: Use the same options for i386 and i486 as we do
4869 2000-02-12 Tom Tromey <tromey@cygnus.com>
4871 * java/io/File.java (createTempFile): Use low bits from counter,
4874 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4876 * THANKS: More thanks.
4878 2000-02-11 Tom Tromey <tromey@cygnus.com>
4880 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4881 astore instruction. From Hans Boehm.
4883 2000-02-11 Warren Levy <warrenl@cygnus.com>
4885 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4886 (BigInteger(String)): New constructor.
4887 (not): Rewritten using version from Kawa's BitOps class.
4888 (valueOf): New private methods from Kawa's BitOps class.
4895 (andNot): Implemented.
4896 (clearBit): Implemented.
4897 (setBit): Implemented.
4898 (bitCount): Implemented.
4899 (toByteArray): Implemented.
4901 2000-02-11 Tom Tromey <tromey@cygnus.com>
4903 * java/io/File.java (nextValue): Now synchronized.
4905 2000-02-10 Tom Tromey <tromey@cygnus.com>
4907 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4908 * java/io/FileDescriptor.java (EXCL): New static field.
4909 * java/io/File.java (tmpdir): New static field.
4910 (createTempFile): New method.
4911 (nextValue): New method.
4912 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4915 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4916 (jboolean): Declare as an attributed int, not a bool.
4917 (_Jv_func): Declare differently for C.
4919 * gnu/gcj/jni/natNativeThread.cc: New file.
4920 * gnu/gcj/jni/NativeThread.java: New file.
4921 * java/lang/Thread.java (data): Now a RawData.
4922 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4924 * Makefile.in: Rebuilt.
4925 * Makefile.am (java/lang/Thread.h): New target.
4926 (ordinary_java_source_files): Added NativeThread.java.
4927 (nat_source_files): Added natNativeThread.cc.
4928 * java/lang/natThread.cc: Include <jni.h>
4929 (struct natThread): Added `jni_env' field.
4930 (_Jv_GetCurrentJNIEnv): New function.
4931 (_Jv_SetCurrentJNIEnv): Likewise.
4932 (initialize_native): Initialize jni_env.
4934 * jni.cc (ThreadGroupClass): New define.
4935 (_Jv_JNI_InvokeFunctions): New structure.
4936 (JNI_GetCreatedJavaVMs): New function.
4937 (the_vm): New global.
4938 (JNI_GetDefaultJavaVMInitArgs): New function.
4939 Include NativeThread.h.
4940 (NativeThreadClass): New define.
4941 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4942 (_Jv_JNI_DestroyJavaVM): New function.
4943 (_Jv_JNI_AttachCurrentThread): New function.
4944 (_Jv_JNI_DetachCurrentThread): New function.
4945 (_Jv_JNI_GetEnv): New function.
4946 (JNI_CreateJavaVM): New function.
4947 (_Jv_JNI_GetJavaVM): New function.
4948 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4949 * include/jni.h (JavaVMAttachArgs): New structure.
4950 (JNI_EDETACHED): New define.
4951 (JNI_EVERSION): Likewise.
4952 (JavaVM): Define properly.
4953 (struct JNIInvokeInterface): New structure.
4954 (class _Jv_JavaVM): New class.
4955 (JNI_OnLoad, JNI_OnUnload): Declare.
4956 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4957 JNI_GetCreatedJavaVMs): Declare.
4958 (JavaVMInitArgs): New typedef.
4959 (JavaVMOption): Likewise.
4960 (JNI_ERR): New define.
4963 2000-02-10 Andrew Haley <aph@cygnus.com>
4965 * interpret.cc: Don't include fdlibm.h.
4966 Replace #if with #ifdef throughout.
4967 Declare extern __ieee754_fmod.
4968 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4970 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4971 Search class hierarchy for superclass vtable.
4973 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4974 off the end of a pointer list.
4976 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4980 2000-02-09 Tom Tromey <tromey@cygnus.com>
4982 * java/lang/natRuntime.cc (_load): Call add_library.
4983 (loadLibraryInternal): Likewise.
4985 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4986 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4987 (Output_iconv::finalize): Likewise.
4989 2000-02-08 Tom Tromey <tromey@cygnus.com>
4991 * java/util/Properties.java (setProperty): New method.
4992 (store): New method.
4994 2000-02-07 Tom Tromey <tromey@cygnus.com>
4996 * java/lang/Runtime.java (_load): Declare.
4997 (load, loadLibrary): Wrote in terms of _load.
4998 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5000 (loadLibrary): Likewise.
5002 (_load): New method.
5003 (loadLibrary, load): Removed.
5005 * jni.cc (ThrowableClass): New define.
5006 (_Jv_JNI_Throw): Check argument.
5007 (_Jv_JNI_ThrowNew): Likewise.
5008 (wrap_value): Don't wrap object if it is NULL.
5009 (_Jv_JNI_DefineClass): Use wrap_value.
5010 (_Jv_JNI_FindClass): Likewise.
5011 (_Jv_JNI_GetSuperclass): Likewise.
5012 (_Jv_JNI_ExceptionOccurred): Likewise.
5013 (_Jv_JNI_AllocObject): Likewise.
5014 (_Jv_JNI_GetObjectClass): Likewise.
5015 (_Jv_JNI_NewString): Likewise.
5016 (_Jv_JNI_NewStringUTF): Likewise.
5017 (_Jv_JNI_NewObjectArray): Likewise.
5018 (_Jv_JNI_GetObjectArrayElement): Likewise.
5019 (_Jv_JNI_NewPrimitiveArray): Likewise.
5020 (_Jv_JNI_ToReflectedField): Likewise.
5021 (_Jv_JNI_ToReflectedMethod): Likewise.
5022 (_Jv_JNI_AllocObject): Check argument.
5023 (_Jv_JNI_NewObjectV): Likewise.
5024 (_Jv_JNI_NewObject): Likewise.
5025 (_Jv_JNI_NewObjectA): Likewise.
5026 (_Jv_JNI_GetObjectClass): Likewise.
5027 (_Jv_JNI_GetField): Likewise.
5028 (_Jv_JNI_SetField): Likewise.
5030 * interpret.cc (PUSHL): Don't use expression statement.
5035 * jni.cc (add_char): Conditional on INTERPRETER.
5036 (mangled_name): Likewise.
5038 * include/java-interp.h (class _Jv_MethodBase): Conditional on
5040 (class _Jv_JNIMethod): Likewise.
5042 2000-02-04 Warren Levy <warrenl@cygnus.com>
5044 * Makefile.am: Added MPN.java and BigInteger.java.
5045 * Makefile.in: Rebuilt.
5046 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
5048 * java/math/BigInteger.java: New file. Based primarily on
5049 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5051 2000-02-04 Tom Tromey <tromey@cygnus.com>
5053 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5055 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
5056 if the method is native.
5057 * resolve.cc (ncode): Don't handle native methods.
5058 (_Jv_JNIMethod::ncode): New method.
5059 (_Jv_PrepareClass): Handle native methods.
5060 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5061 Include AbstractMethodError.h.
5062 (add_char): New function.
5063 (mangled_name): Likewise.
5064 * include/java-interp.h (class _Jv_JNIMethod): New class.
5065 (class _Jv_MethodBase): New class.
5066 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5067 (_Jv_InterpClass): Changed `interpreted_methods' field to type
5070 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5071 * java/lang/natRuntime.cc (libraries_size, libraries_count,
5072 libraries): New globals.
5073 (add_library): New function.
5074 (_Jv_FindSymbolInExecutable): New function.
5076 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5079 2000-02-04 Andrew Haley <aph@cygnus.com>
5081 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5082 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5083 * java/lang/natThrowable.cc (printRawStackTrace): Rename
5084 printStackTrace to printRawStackTrace.
5086 2000-02-03 Tom Tromey <tromey@cygnus.com>
5088 * java/util/Calendar.java (toString): New method.
5089 * java/util/SimpleTimeZone.java (clone): New method.
5090 (toString): New method.
5091 * java/util/TimeZone.java (clone): New method.
5092 * java/text/SimpleDateFormat.java (clone): New method.
5093 * java/text/NumberFormat.java (clone): New method.
5094 (equals): New method.
5095 * java/text/Format.java (clone): New method.
5096 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5098 (clone): New method.
5099 * java/text/DateFormat.java (clone): New method.
5100 * java/text/Collator.java (clone): New method.
5102 2000-02-03 Tom Tromey <tromey@cygnus.com>
5104 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5107 2000-02-01 Tom Tromey <tromey@cygnus.com>
5109 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5110 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5111 constructing the closure if the function is native.
5112 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5113 a template function, #if'd out, or static.
5114 Include <java-interp.h>.
5116 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5118 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5120 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5121 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5123 (wrap_value): New function.
5124 (_Jv_JNI_CallAnyMethodV): Use it.
5125 (_Jv_JNI_CallAnyMethodA): Likewise.
5126 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5127 (_Jv_JNI_GetStaticField): Likewise.
5129 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5130 (_Jv_JNI_GetStaticField): Likewise.
5132 2000-01-31 Tom Tromey <tromey@cygnus.com>
5134 * prims.cc (_Jv_MallocUnchecked): New function.
5135 (main_init): Call _Jv_JNI_Init.
5136 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5137 (_Jv_JNI_Init): Declare.
5138 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5140 (_Jv_JNI_NewGlobalRef): New function.
5141 (_Jv_JNI_DeleteGlobalRef): New function.
5142 (_Jv_JNI_DeleteLocalRef): New function.
5143 (_Jv_JNI_conversion_call): Initialize and clear local reference
5145 (_Jv_JNI_NewLocalRef): New function.
5146 (struct _Jv_JNI_LocalFrame): New structure.
5147 (_Jv_JNI_PushLocalFrame): New function.
5148 (_Jv_JNI_EnsureLocalCapacity): New function.
5149 (FRAME_SIZE): New define.
5150 (_Jv_JNI_GetStringChars): Mark string, not characters.
5151 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5152 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5153 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5155 (_Jv_JNI_DefineClass): Make return value a local ref.
5156 (_Jv_JNI_FindClass): Likewise.
5157 (_Jv_JNI_GetSuperclass): Likewise.
5158 (_Jv_JNI_ExceptionOccurred): Likewise.
5159 (_Jv_JNI_AllocObject): Likewise.
5160 (_Jv_JNI_GetObjectClass): Likewise.
5161 (_Jv_JNI_CallAnyMethodV): Likewise.
5162 (_Jv_JNI_NewString): Likewise.
5163 (_Jv_JNI_NewStringUTF): Likewise.
5164 (_Jv_JNI_NewObjectArray): Likewise.
5165 (_Jv_JNI_GetObjectArrayElement): Likewise.
5166 (_Jv_JNI_ToReflectedField): Likewise.
5167 (_Jv_JNI_ToReflectedMethod): Likewise.
5168 (_Jv_JNIFunctions): Updated table for new functions.
5169 (_Jv_JNI_Init): New function.
5170 (mark_for_gc): Wrote.
5171 (unmark_for_gc): Wrote.
5172 * include/jni.h (struct JNINativeInterface): Removed name from
5173 PopLocalFrame parameter.
5174 (class _Jv_JNIEnv): Added `locals' field.
5176 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5178 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5181 2000-01-30 Tom Tromey <tromey@cygnus.com>
5183 * include/config.h.in: Rebuilt.
5184 * acconfig.h (HAVE_ICONV): Define.
5185 * configure: Rebuilt.
5186 * configure.in: Check for `iconv' function.
5187 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5188 no specific encoder exists.
5189 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5190 no specific encoder exists.
5191 * Makefile.in: Rebuilt.
5192 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5194 (nat_source_files): Added natIconv.cc.
5195 * gnu/gcj/convert/natIconv.cc: New file.
5196 * gnu/gcj/convert/Input_iconv.java: New file.
5197 * gnu/gcj/convert/Output_iconv.java: New file.
5199 2000-01-28 Tom Tromey <tromey@cygnus.com>
5201 * Makefile.in: Rebuilt.
5202 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5204 2000-01-26 Tom Tromey <tromey@cygnus.com>
5206 * gcj/method.h (JvNumMethods): Moved from Class.h.
5207 (JvGetFirstMethod): Likewise.
5208 * java/lang/Class.h (Object): Updated decl of
5209 _Jv_JNI_ToReflectedField.
5210 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5211 * Makefile.in: Rebuilt.
5212 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5213 argument of _Jv_JNI_ToReflectedField.
5214 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5216 (java/lang/reflect/Method.h): Likewise.
5217 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5219 (jweak): New typedef.
5220 (struct JNINativeInterface): Correctly declare remaining entries.
5221 * jni.cc: Include Class.h, ClassLoader.h.
5222 (_Jv_JNI_FindClass): New function.
5223 (_Jv_JNI_DefineClass): New function.
5224 (_Jv_JNI_conversion_call): New function.
5225 (_Jv_JNI_FindClass): Use current class loader to find class.
5226 (_Jv_JNI_ExceptionCheck): New function.
5227 (_Jv_JNI_FromReflectedField): Now static.
5228 (MethodClass): New define.
5229 (_Jv_JNI_FromReflectedMethod): New function.
5230 (_Jv_JNI_ToReflectedMethod): Likewise.
5232 (_Jv_JNI_IsAssignableFrom): Renamed.
5233 (_Jv_JNI_GetStringRegion): New function.
5234 Include StringIndexOutOfBoundsException.h.
5235 (_Jv_JNI_GetStringUTFRegion): New function.
5236 (_Jv_JNIFunctions): Updated for new functions.
5237 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5238 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5239 (_Jv_JNI_GetStringCritical): New function.
5240 (_Jv_JNI_ReleaseStringCritical): Likewise.
5241 (get_throwable): Removed.
5242 (GCJ_JV_JNIENV_FRIEND): Removed.
5243 (__GCJ_JNI_IMPL__): Define.
5246 * resolve.cc (get_ffi_type_from_signature): Handle case where
5249 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5251 * interpret.cc (run): Don't call println.
5252 Don't include PrintStream.h.
5254 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5255 nameIndex. Use "jint" as type for boffset.
5256 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5258 (Class): Likewise. Also changed type of method_count,
5259 vtable_method_count, size_in_bytes, field_count,
5260 static_field_count, interface_count.
5261 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5264 2000-01-21 Tom Tromey <tromey@cygnus.com>
5266 * java/lang/reflect/natConstructor.cc (newInstance): Use
5268 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5269 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5270 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5273 (invoke): Use _Jv_CallAnyMethodA.
5275 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5276 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5278 (struct _Jv_Method): Added getNextMethod method.
5279 (JvNumMethods): New function.
5280 (JvGetFirstMethod): Likewise.
5281 * gcj/field.h (JvGetFirstStaticField): New function.
5282 (JvNumStaticFields): Likewise.
5283 (getNextField): Renamed from getNextInstanceField.
5284 (struct _Jv_Field): New method getClass.
5285 * jni.cc: Wrote many new functions.
5286 * include/jni.h (JNI_TRUE): Define.
5287 (JNI_FALSE): Likewise.
5288 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5289 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5290 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5291 (jfieldID, jmethodID): Likewise.
5292 (JNI_COMMIT, JNI_ABORT): New defines.
5293 (JNINativeMethod): New struct.
5294 (struct JNINativeInterface): Correctly declared more entries.
5295 (class _Jv_JNIEnv): Added `ex' member.
5296 (JNI_VERSION_1_1): New define.
5297 (JNI_VERSION_1_2): Likewise.
5299 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5300 getNextInstanceField.
5302 2000-01-20 Tom Tromey <tromey@cygnus.com>
5304 * resolve.cc (StringClass): Removed.
5305 * defineclass.cc (StringClass): Removed.
5307 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5311 2000-01-19 Tom Tromey <tromey@cygnus.com>
5313 * interpret.cc (PC_REGISTER_ASM): Removed.
5315 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5316 From Bryce McKinlay.
5318 * All files: Updated copyright to reflect Cygnus purchase.
5320 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5322 * configure: Rebuilt.
5323 * configure.in: Recognize --disable-interpreter.
5325 2000-01-18 Andrew Haley <aph@cygnus.com>
5327 * name-finder.cc (lookup): Check for dladdr function.
5328 acconfig.h (HAVE_DLADDR): Add.
5329 configure.in: Check for HAVE_DLADDR
5331 include/config.h.in: Rebuilt.
5333 2000-01-17 Andrew Haley <aph@cygnus.com>
5335 * prims.cc (_Jv_RunMain): Set the name of this executable.
5337 2000-01-17 Tom Tromey <tromey@cygnus.com>
5339 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5340 when backtrace can't be computed.
5342 * configure: Rebuilt.
5343 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5345 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5346 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5347 (_Jv_FindClassInCache): Likewise.
5348 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5349 (findSystemClass): Try to load class from compiled module.
5351 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5352 (loadLibrary): Likewise.
5353 (lt_preloaded_symbols): Define.
5354 (loadLibraryInternal): New method.
5355 * include/config.h.in: Rebuilt.
5356 * acconfig.h (USE_LTDL): Added.
5357 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5358 (INCLUDES): Added $(INCLTDL).
5359 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5360 (libgcj_la_LIBADD): Likewise.
5361 * aclocal.m4, configure: Rebuilt.
5362 * configure.in: Added libltdl support.
5364 2000-01-15 Tom Tromey <tromey@cygnus.com>
5366 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5368 2000-01-14 Andrew Haley <aph@cygnus.com>
5370 * java/lang/natThrowable.cc: New file.
5372 * java/lang/Throwable.java (fillInStackTrace): Make native.
5373 (printStackTrace): Call native method to do this.
5374 (Throwable): Call fillInStackTrace.
5375 (stackTrace): New variable.
5377 * include/jvm.h: Add _Jv_ThisExecutable functions.
5379 * prims.cc: (_Jv_execName): New variable.
5380 (catch_segv): Call fillInStackTrace.
5382 (_Jv_ThisExecutable): New functions.
5383 (JvRunMain): Set the name of this executable.
5385 * Makefile.am: Add java/lang/natThrowable.cc.
5387 * Makefile.in: Rebuilt.
5389 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5391 * configure.in: Force link with __frame_state_for in
5392 FORCELIBGCCSPEC. Add new checks for backtrace.
5393 * include/config.h.in: Rebuilt.
5395 * name-finder.cc: New file.
5396 * include/name-finder.h: New file.
5398 2000-01-16 Anthony Green <green@cygnus.com>
5400 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5403 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5405 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5407 2000-01-13 Tom Tromey <tromey@cygnus.com>
5409 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5410 not system loader, as initiating loader.
5412 2000-01-11 Tom Tromey <tromey@cygnus.com>
5414 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5415 HP/UX. From David Scott Urban.
5417 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5419 * java/lang/natMath.cc (pow): Cast args to `double', not
5422 (IEEEremainder): Likewise.
5423 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5424 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5426 2000-01-09 Anthony Green <green@cygnus.com>
5428 * java/lang/natString.cc (init): Test for overflow condition
5429 during out of bounds check.
5430 (getChars): Throw StringIndexOutOfBoundsException, not
5431 ArrayIndexOutOfBoundsException.
5433 (regionMatches): Obey case option during string comparison.
5435 * configure.host (ligcj_interpreter): New variable. Enable
5436 interpreter by default on IA-32.
5437 * configure.in: Examine libgcj_interpreter.
5438 * configure: Rebuilt.
5440 2000-01-07 Tom Tromey <tromey@cygnus.com>
5442 * mauve-libgcj: Don't disable ClassTest.
5444 * java/lang/natClass.cc (getClasses): Wrote.
5446 2000-01-06 Tom Tromey <tromey@cygnus.com>
5448 * java/lang/natClass.cc (_getConstructors): Correctly check
5449 whether method name is the init name.
5450 (getMethod): Look at accflags on method in `klass', not `this'.
5452 2000-01-05 Tom Tromey <tromey@cygnus.com>
5454 * java/lang/natClass.cc (getMethod): Compute offset relative to
5455 `klass's methods table, not `this's table.
5457 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5458 In unwrapping/widening case, check whether `k' is null, not
5459 whether it is primitive. Initialize `num' from `argelts', not
5460 `paramelts'. Correct create and pass arguments to ffi_call.
5461 Don't let presence of `this' argument affect index used to look in
5463 (COPY): Set appropriate element in `values' vector.
5465 * java/lang/natClass.cc: Include <gcj/method.h>.
5467 * java/lang/Class.h (_getMethods): Correctly declare as private,
5470 * java/lang/Class.h (_getMethods): Declare.
5471 * java/lang/Class.java (_getMethods): Declare.
5472 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5473 (getDeclaredClasses): Always return empty array.
5474 (_getMethods): New method.
5475 (getMethods): Wrote.
5476 (getDeclaredMethod): Return `rmethod'.
5477 (finit_name): New global.
5478 (getDeclaredMethods): Check for finit_name.
5479 (_getMethods): Likewise.
5480 (getMethod): Only return public methods.
5482 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5483 jboolean and select correct ffi type on that basis.
5484 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5485 Constructor call always has `void' return type.
5487 2000-01-04 Tom Tromey <tromey@cygnus.com>
5489 * java/lang/Class.h (getSignature): Updated.
5490 * java/lang/Class.java (getSignature): Updated.
5491 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5493 (getConstructor): Ensure constructor is public.
5494 (_getConstructors): Check for public-ness of constructor when
5495 `declared' is false, not when it is true.
5497 2000-01-04 Warren Levy <warrenl@cygnus.com>
5499 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5501 (receive): Set the sender's address in the DatagramPacket.
5503 2000-01-04 Tom Tromey <tromey@cygnus.com>
5505 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5506 declaring class as return_type argument to
5507 _Jv_CallNonvirtualMethodA.
5508 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5509 constructor case, create object and use it as `this' argument.
5510 * java/lang/Class.h (_getConstructors): Declare.
5511 (_getFields): Declare.
5512 * java/lang/Class.java (getConstructors): Wrote.
5513 (_getConstructors): New native method.
5514 (getDeclaredConstructors): Wrote.
5515 (_getFields): Declare new native method.
5516 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5518 (getMethod): Work correctly when class is primitive.
5519 (getDeclaredMethods): Likewise. Compute offset using `method',
5521 (getDeclaredMethod): Likewise.
5522 (getConstructor): Wrote.
5523 (ConstructorClass): New define.
5524 (getDeclaredConstructor): Wrote.
5525 (_getConstructors): New method.
5526 (_getFields): New method.
5529 * Makefile.in: Rebuilt.
5530 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5532 * prims.cc: Remove `#pragma implementation'.
5533 * gcj/array.h: Remove `#pragma interface'.
5535 * prims.cc (_Jv_equaln): New function.
5536 * java/lang/Class.java (getSignature): Declare.
5537 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5538 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5540 (getSignature): New method.
5541 (getDeclaredMethod): Wrote.
5543 Include StringBuffer.h.
5544 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5545 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5547 (getSignature): Declare.
5548 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5549 (_Jv_equaln): Declare.
5550 (_Jv_CallNonvirtualMethodA): Declare.
5551 * Makefile.in: Rebuilt.
5552 * Makefile.am (nat_source_files): Added natConstructor.cc.
5553 (java/lang/reflect/Constructor.h): New target.
5554 * java/lang/reflect/natConstructor.cc: New file.
5555 * java/lang/reflect/Constructor.java (newInstance): Now native.
5556 (declaringClass): Renamed from decl_class.
5557 (offset): Renamed from index.
5558 (getType): New native method.
5559 (getModifiers): Now native.
5560 (getParameterTypes): Call getType if required.
5561 (hashCode): Include hash code from declaring class.
5562 (modifiers): Removed.
5563 (toString): Call getType if required.
5564 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5565 * java/lang/reflect/natMethod.cc (hack_call): New method.
5566 Removed `#if 0' around FFI code.
5567 Include <gnu/gcj/RawData.h>.
5568 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5569 IllegalArgumentException when argument object and class disagree.
5570 (_Jv_GetTypesFromSignature): New function.
5572 (ObjectClass): New define.
5573 (_Jv_CallNonvirtualMethodA): New function.
5574 * java/lang/reflect/Method.java (hack_trampoline): New method.
5575 (hack_call): New native method.