1 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
3 * libgcj.spec.in: Don't force static libgcc into the executable.
4 * configure.in (FORCELIBGCCSPEC): Removed.
7 2001-01-31 Tom Tromey <tromey@redhat.com>
9 * Makefile.in: Rebuilt.
10 * Makefile.am (LTCXXCOMPILE): New macro.
12 2001-01-26 Andrew Haley <aph@redhat.com>
14 (INIT_FPE): Use a direct system call to set the handler.
16 2001-01-27 Richard Henderson <rth@redhat.com>
18 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
20 2001-01-27 Tom Tromey <tromey@redhat.com>
22 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
23 native interface structure.
25 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
27 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
29 (read (byte[], int, int)): Only call readNextBlock() if the block
30 buffer would actually be overrun. Increment blockDataPosition.
31 (callReadMethod): Propagate exceptions from invocation target.
32 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
33 exceptions from invocation target.
35 2001-01-26 Tom Tromey <tromey@redhat.com>
37 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
38 to internal representation.
39 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
40 _Jv_FindClassFromSignature.
42 2001-01-26 Warren Levy <warrenl@redhat.com>
44 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
45 and timezone if they are available on the system.
47 2001-01-24 Tom Tromey <tromey@redhat.com>
49 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
51 2001-01-24 Tom Tromey <tromey@redhat.com>
53 * Makefile.in: Rebuilt.
54 * Makefile.am (c_source_files): Added sf_fabs.c.
55 * java/lang/sf_fabs.c: New file.
57 2001-01-19 Warren Levy <warrenl@redhat.com>
59 * java/text/SimpleDateFormat.java (format): Compute hour for cases
60 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
61 correctly. Adjust properly from 0-23 clock hour.
63 2001-01-17 Mark Wielaard <mark@klomp.org>
65 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
67 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
69 * java/lang/Class.h (isInterface): Move implementation from
70 natClass.cc. Declare inline.
71 (Class): Add default constructor.
72 * java/lang/Object.h: Update comments.
73 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
74 initialize superclass, saving a call if super is already initialized.
76 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
78 * prims.cc (init_prim_class): Deleted.
79 (DECLARE_PRIM_TYPE): Rewritten.
80 * java/lang/Class.h (stdio.h): Include removed.
82 (java/lang/reflect/Modifier.h): Likewise.
83 (Class): Contructor now takes arguments, initializes fields.
84 (initializePrim): Prototype deleted.
85 * java/lang/natClass.cc (initializePrim): Deleted.
87 2001-01-16 Warren Levy <warrenl@redhat.com>
89 * java/math/BigInteger.java: Update Copyright year.
91 2001-01-16 Hans Boehm <hans_boehm@hp.com>
93 * java/math/BigInteger.java (setShiftRight): Only do negative shift
96 2001-01-14 Mark Wielaard <mark@klomp.org>
97 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
98 (decode): Merge comments with Classpath, don't throw Exception
100 2001-01-12 Tom Tromey <tromey@redhat.com>
102 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
106 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
107 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
108 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
109 * gnu/awt/gtk/GtkLabelPeer.java: New file.
110 * gnu/awt/gtk/GtkButtonPeer.java: New file.
112 * java/lang/natSystem.cc: Include locale.h if it exists.
113 * configure: Rebuilt.
114 * configure.in: Check for locale.h.
116 2001-01-11 Tom Tromey <tromey@redhat.com>
118 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
119 (Cursor(int), getPredefinedCursor): Throw exception if argument
122 2001-01-03 Tom Tromey <tromey@redhat.com>
124 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
125 (getLocationOnScreen): Wrote.
127 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
129 * Makefile.am: Re-enable dependencies.
130 * Makefile.in: Rebuilt.
132 2001-01-10 Warren Levy <warrenl@redhat.com>
134 * java/math/BigDecimal.java (divide): Fixed comment.
136 2001-01-10 Warren Levy <warrenl@redhat.com>
138 Fix for PR libgcj/1596:
139 * java/math/BigDecimal.java (divide): Check newScale for validity.
140 Ensure that BigInteger.pow() is called with a non-negative value.
141 (setScale (int)): New public method.
142 (setScale (int,int)): New public method.
144 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
146 Fix for PR libgcj/1338:
147 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
148 commentChar. Fixed typos in comments.
150 2001-01-08 Warren Levy <warrenl@redhat.com>
152 Fix for PR libgcj/1411:
153 * Makefile.am: Removed java/util/natTimeZone.cc.
154 * Makefile.in: Rebuilt.
155 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
156 missing localized timezone names.
157 * java/lang/System.java (getDefaultTimeZoneId): New private method.
158 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
159 (init_properties): Set user.timezone property.
160 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
161 default timezone names; removed non-standard ones. Use standard
163 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
165 * java/util/TimeZone.java: Add standard ID names per JCL; removed
167 (getDefaultTimeZoneId): Removed.
169 * java/util/natTimeZone.cc: Removed.
171 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
173 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
174 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
175 (_Jv_GetArrayClass): New inline function.
176 (arrayclass): New field.
177 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
178 _Jv_GetArrayElementFromElementType.
179 (_Jv_NewPrimArray): Ditto.
180 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
181 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
182 Set Modifier::ABSTRACT.
183 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
184 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
185 Now synchronized. Array classes are now referenced from
186 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
187 Set array classes' accessibility flags correctly. Optimize so that
188 all array classes share the same IDT.
189 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
190 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
191 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
192 in superclasses from overwriting classes own fields.
193 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
194 Modifier::isAbstract().
195 (null_idt): New static field.
196 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
198 (_Jv_IndexOf): Made inline.
199 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
201 2001-01-08 Tom Tromey <tromey@redhat.com>
203 Fix for PR java/1586:
204 * Makefile.in: Rebuilt.
205 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
207 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
209 * Makefile.am: Use the new "-M -MF" option for generating dependencies
210 from the c++ compiler.
211 * Makefile.in: Rebuilt.
213 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
215 All files with updated copyright.
216 * prims.cc (class _Jv_PrimClass): Removed.
217 (init_prim_class): New function.
218 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
219 `_Jv_PrimClass' in primitive type declarations. Assign to the
220 value returned by `init_prim_class.'
221 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
222 primitive type declarations.
223 (JvPrimClass): Cast to `jclass' removed.
224 * java/lang/Class.h (Class): New constructor.
225 (Class): New copy constructor.
226 (initializePrim): New prototype.
227 (_Jv_PrimClass): Field removed.
228 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
229 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
230 (class java::lang::Object): `finalize' moved up front.
231 * java/lang/natClass.cc
232 (isAssignableFrom): Turned outline.
233 (isInstance): Likewise.
234 (isInterface): Likewise, fixed indentation.
235 (initializePrim): New function.
237 2001-01-07 Anthony Green <green@redhat.com>
239 * Makefile.am (texinfo): Add texinfo target for generating texinfo
241 * Makefile.in: Rebuilt.
243 * scripts/TexinfoDoclet.java: New file.
245 * doc/java-applet.texi, doc/java-lang-reflect.texi,
246 doc/java-awt-color.texi, doc/java-lang.texi,
247 doc/java-awt-datatransfer.texi, doc/java-math.texi,
248 doc/java-awt-event.texi, doc/java-net.texi,
249 doc/java-awt-geom.texi, doc/java-security-spec.texi,
250 doc/java-awt-image.texi, doc/java-security.texi,
251 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
252 doc/java-text.texi, doc/java-beans-beancontext.texi,
253 doc/java-util-jar.texi, doc/java-beans.texi,
254 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
255 doc/java-lang-ref.texi: New files.
257 2001-01-07 Anthony Green <green@redhat.com>
259 * java/net/URLConnection.java (setDoOutput): URLConnection's may
260 be used for both input and output, so don't clear doInput.
262 * java/lang/StringBuffer.java: Fix comments.
264 2001-01-06 Anthony Green <green@redhat.com>
266 * java/beans/PropertyDescriptor.java: Fix comment.
267 * java/io/PushbackReader.java: Fix comment.
268 * java/io/ObjectStreamClass.java: Fix comment.
269 * java/io/DataInputStream.java: Fix comment.
270 * java/io/PipedInputStream.java: Fix comments.
271 * java/io/PipedReader.java: Fix comments.
272 * java/sql/DatabaseMetaData.java: Fix comments.
274 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
276 * java/io/PipedReader: Synchronize on "lock" instead of this.
278 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
280 * java/lang/Thread.java: Update comment.
282 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
283 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
284 * java/io/PipedReader: New implementation based on new
286 * java/io/PipedWriter: Updated to match new PipedReader.
288 2001-01-03 Tom Tromey <tromey@redhat.com>
290 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
291 (getViewportSize): Insets include scrollbar size.
292 (doLayout): Finished.
293 (getScrollPosition): Wrote.
294 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
296 2001-01-02 Tom Tromey <tromey@redhat.com>
298 * java/awt/ScrollPane.java: Wrote.
299 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
302 * java/awt/Panel.java (Panel()): Fixed.
304 * java/awt/Component.java (isShowing): Return false if no peer
305 exists, and true if component is visible and no parent exists.
306 (getLocationOnScreen): Wrote.
307 (getPreferredSize): Removed FIXME comment.
308 (getMinimumSize): Likewise.
309 (getAlignmentX, getAlignmentY): Wrote.
311 (requestFocus): Wrote.
312 (transferFocus): Wrote.
313 (findNextFocusComponent): New method.
316 (enableEvents): Call setEventMask on the peer.
318 * java/awt/Container.java (list): Use super.list() to print self.
319 (findNextFocusComponent): New method.
320 (setLayout): Call invalidate.
321 (findComponentAt): Wrote.
323 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
325 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
326 the correct versions of various linuxthreads functions get linked.
327 * Makefile.in: Rebuilt.
328 * java/lang/natThread.cc (finalize_native): New static function. Call
329 _Jv_ThreadDestroyData.
330 (initialize_native): Register finalizer for "data".
331 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
332 (_Jv_ThreadDestroyData): New prototype.
333 * include/win32-threads.h: Ditto.
334 * include/no-threads.h: Ditto.
335 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
336 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
337 move mutex and condition variable destroy code from:
338 (really_start): ...here.
339 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
340 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
341 (_Jv_ThreadDestroyData): Implemented.
342 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
343 (_Jv_AllocArray): Ditto.
345 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
347 * java/sql/DriverManager.java (getConnection): Don't set user/password
350 2000-12-27 Warren Levy <warrenl@redhat.com>
352 Fix for PR libgcj/1358:
353 * java/lang/System.java: Update Copyright date properly.
354 * java/util/Calendar.java: Fix typo in comment.
355 (set): Set 24-hour clock hour instead of 12-hour clock hour.
356 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
357 initialize times. Spec says to set H:M:S values to zero only if
359 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
360 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
361 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
362 timezones and GMT offsets, being careful to account for units of
363 milliseconds vs. seconds.
365 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
367 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
368 not be assigned to Object.
370 Fix for PR libgcj/1516:
371 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
373 (can_widen): Declared inline. Remove redundant checks for void
374 arguments and char->short conversion. Add special case for boolean
376 (ffi_type): Declared inline.
377 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
379 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
381 * java/sql/SQLWarning.java: Fixed typo in comment.
383 2000-12-26 Tom Tromey <tromey@redhat.com>
385 * java/awt/MenuItem.java (paramString): Now protected.
387 * java/awt/MenuShortcut.java: Implements Serializable.
389 * java/awt/MenuBar.java: Rewrote from scratch.
391 * java/awt/MenuComponent.java (removeNotify): Wrote.
392 Implements Serializable.
394 * java/awt/GridBagConstraints.java (GridBagConstraints): New
397 * java/awt/CheckboxMenuItem.java: Wrote.
399 2000-12-25 Tom Tromey <tromey@redhat.com>
401 * java/awt/MenuContainer.java: Fixed typo.
403 * Makefile.in: Rebuilt.
404 * Makefile.am (awt_java_source_files): Added SystemColor.java.
405 * java/awt/SystemColor.java: New file.
407 * java/awt/Color.java (rgba): Now package-private.
409 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
411 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
414 * java/awt/MenuItem.java (addNotify): New method.
415 (MenuItem(String,MenuShortcut)): New constructor.
416 (setLabel): Notify peer of change.
417 (setEnabled): Likewise.
419 * java/awt/GridLayout.java (toString): New method.
421 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
422 (FlowLayout): Check for LEADING and TRAILING.
423 (setAlignment): Likewise.
424 (layoutContainer): Handle component orientation.
426 * java/awt/Component.java (orientatin): New field.
427 (setComponentOrientation): Wrote.
428 (getComponentOrientation): Wrote.
430 * java/awt/Event.java (Event): Implements Serializable.
431 (consumed): New field for serialization.
432 * java/awt/Dimension.java (Dimension): Implements Serializable.
433 * java/awt/Cursor.java (Cursor): Implements Serializable.
434 * java/awt/Container.java (Container): No longer abstract.
436 * java/awt/Choice.java: Wrote.
437 * java/awt/Checkbox.java: Wrote.
438 * java/awt/ItemSelectable.java: Documented.
439 * java/awt/CheckboxGroup.java: Wrote.
441 * java/awt/CardLayout.java (layoutContainer): Directly use fields
445 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
447 * java/io/FileDescriptor.java: Initialize fd to -1.
448 Remove default constructor.
450 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
452 * java/lang/mprec.h: Change C9X reference to refer to C99.
454 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
456 * java/lang/Throwable.java (trace_enabled): New static field.
457 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
458 trace_enabled not set.
459 * prims.cc (main_init): Turn off trace_enabled while creating
460 default exception objects.
462 2000-12-21 Tom Tromey <tromey@redhat.com>
464 * java/beans/PropertyChangeListener.java: Extends EventListener.
465 * java/beans/VetoableChangeListener.java: Extends EventListener.
467 * java/util/zip/Deflater.java (update, init): Now private.
469 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
471 * java/util/BasicMapEntry.java: Re-added.
472 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
473 (putAll): Test for BasicMapEntry.
474 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
475 (putAll): Test for BasicMapEntry.
476 Change references from `HashMap.Entry' to `Entry' in various places.
477 * Makefile.am: Add BasicMapEntry.java.
478 * Makefile.in: Rebuilt.
480 2000-12-18 Warren Levy <warrenl@redhat.com>
482 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
483 need to set timezone to a valid non-null value. Partial fix for
486 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
488 * java/awt/Window.java (addNotify): Remove peer casting hack now that
490 * java/awt/Button.java (addNotify): Likewise.
491 * java/awt/Label.java (addNotify): Likewise.
492 * java/awt/Panel.java (addNotify): Likewise.
493 * java/awt/Scrollbar.java (addNotify): Likewise.
494 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
495 Remove redundant null checks.
497 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
499 * COPYING: Update to current
500 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
501 to 19yy as example year in copyright notice).
503 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
505 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
506 end-of-stream if avail_in is 0.
508 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
510 * java/util/ArrayList.java (data): Declare transient.
511 (serialPersistantFields): Removed.
512 (readObject): Use defaultReadObject(), not readFields().
513 (writeObject): Use defaultWriteObject(), not writeFields().
515 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
517 * java/util/Hashtable.java (put): Remove `last' variable.
518 Link new entry to head of list.
519 * java/util/HashMap.java (put): Ditto.
521 2000-12-15 Tom Tromey <tromey@redhat.com>
523 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
524 loader to Class.forName.
526 2000-12-14 Tom Tromey <tromey@redhat.com>
528 * java/util/ResourceBundle.java
529 (getBundle(String,Locale,ClassLoader)): New method.
530 (trySomeGetBundle): Added `loader' argument.
531 (partialGetBundle): Likewise.
533 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
534 maximumFractionDigits, maximumIntegerDigits,
535 minimumFractionDigits, minimumIntegerDigits): Now
538 * java/lang/Thread.java (checkAccess): Now final.
540 * java/lang/RuntimePermission.java: Class now final.
542 * java/io/StringWriter.java (StringWriter(int)): Now public.
544 * java/io/SerializablePermission.java (legal_names): Now private.
546 * java/lang/Character.java: Updated UnicodeBlock constants.
547 * scripts/blocks.pl: Special case private use and surrogate
550 2000-12-12 Tom Tromey <tromey@redhat.com>
552 * Makefile.in: Rebuilt.
553 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
555 (GCJCOMPILE): Use it.
558 2000-12-11 Tom Tromey <tromey@redhat.com>
560 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
561 New static final fields.
563 * scripts/classes.pl (scan): Skip lines with leading `*'.
564 Fix for PR libgcj/378.
566 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
568 * configure.in: Remove check for -fuse-divide-subroutine.
569 * configure: Rebuilt.
571 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
573 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
575 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
577 * Makefile.am: Add HashSet.java and java/lang/ref classes.
578 Remove BasicMapEntry.java and Bucket.java.
579 * Makefile.in: Rebuilt.
580 * java/util/HashMap.java: Rewritten.
581 * java/util/HashSet.java: Imported from classpath.
582 * java/util/WeakHashMap.java: Imported from classpath.
583 * java/util/Hashtable.java: Rewritten based on new HashMap code.
584 * java/util/Bucket.java: Deleted.
585 * java/util/BasicMapEntry.java: Deleted.
586 * java/util/Collections.java (search): Use a for-loop, not iterator
588 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
589 of elements in source.
590 (max): Use a for-loop.
592 (reverse): Keep track of positions instead of using Iterator's
593 nextIndex() and previousIndex().
594 (shuffle(List)): Initialize defaultRandom if required using
595 double-check thread safety idiom. Call two-argument shuffle method
597 (defaultRandom): New field.
598 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
599 using previousIndex() and nextIndex().
600 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
601 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
602 * java/util/AbstractMap.java (toString): Use StringBuffer.
603 * java/lang/ref/PhantomReference.java: Imported from classpath.
604 * java/lang/ref/SoftReference.java: Ditto.
605 * java/lang/ref/Reference.java: Ditto.
606 * java/lang/ref/WeakReference.java: Ditto.
607 * java/lang/ref/ReferenceQueue.java: Ditto.
609 2000-12-10 Richard Henderson <rth@redhat.com>
611 * configure.host: Recognize alpha*-*, not alphaev6-*.
613 2000-12-09 Anthony Green <green@redhat.com>
615 * configure.host: Enable interpreter for Alpha.
617 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
619 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
620 (ZIP): Points at fastjar instead of zip.
621 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
622 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
623 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
624 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
625 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
626 ($(x_java_source_files:.java=.class):): Likewise.
627 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
629 (CLEANFILES): libgcj.jar replaces libgcj.zip.
630 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
631 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
632 java/lang/String.h:, java/lang/reflect/Constructor.h:,
633 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
634 gnu/gcj/runtime/VMClassLoader.h:,
635 java/io/ObjectInputStream$$GetField.h:,
636 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
637 (Makefile.in): Rebuilt.
639 2000-12-08 Tom Tromey <tromey@redhat.com>
642 * configure: Rebuilt.
643 * configure.in: Use echo, not `:', to create .d files.
645 2000-12-08 Warren Levy <warrenl@redhat.com>
647 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
648 NullPointerException so proper check of offset can be done.
650 2000-12-08 Warren Levy <warrenl@redhat.com>
652 * java/io/FileInputStream.java (close): Check if the fd is valid.
653 * java/io/RandomAccessFile.java (close): Ditto.
654 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
655 * java/net/PlainSocketImpl.java (close): Ditto.
657 2000-12-06 Tom Tromey <tromey@redhat.com>
659 * java/awt/GridBagConstraints.java: Filled in values for static
662 * java/util/BitSet.java: Updated copyright notice.
664 * Makefile.in: Rebuilt.
665 * Makefile.am (awt_java_source_files): Added new file.
666 * java/awt/GridBagConstraints.java: New file.
668 2000-12-05 Tom Tromey <tromey@redhat.com>
670 * java/text/Collator.java (decomposeCharacter, decmp, strength):
671 Now package-private, not protected.
672 * java/text/DateFormatSymbols.java (equals): Now private.
673 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
674 * java/util/BitSet.java: Class no longer final.
676 2000-12-04 Warren Levy <warrenl@redhat.com>
678 * java/util/TimeZone.java (getAvailableIDs): Activated commented
679 out code dependent on compiler and library changes.
681 2000-12-04 Warren Levy <warrenl@redhat.com>
683 * java/io/FilePermission.java: Made class final per spec.
684 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
685 method name to match spec (fixed typo).
686 * java/util/LinkedList.java: Implements List.
688 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
690 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
691 Edgar Villanueva <edgarvil@home.com>.
693 2000-12-03 Tom Tromey <tromey@redhat.com>
695 * java/awt/geom/Point2D.java: Added protected constructor.
696 (equals): New method.
697 (Float.setLocation(float,float)): New method.
698 * java/awt/geom/Dimension2D.java: Added protected constructor.
699 * java/awt/geom/AffineTransform.java: Made all constants public.
700 (concatenate): Fixed typo in name.
701 * java/awt/event/WindowAdapter.java: Class now abstract.
702 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
703 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
706 * java/awt/AWTError.java: Extend Error, not
707 IllegalStateException.
709 * Makefile.in: Rebuilt.
710 * Makefile.am (awt_java_source_files): Added new file.
711 * java/awt/geom/RoundRectangle2D.java: New file.
713 * Makefile.in: Rebuilt.
714 * Makefile.am (awt_java_source_files): Added new file.
715 * java/awt/FlowLayout.java: New file.
717 * Makefile.in: Rebuilt.
718 * Makefile.am (awt_java_source_files): Added new file.
719 * java/awt/GridLayout.java: New file.
721 2000-12-02 Tom Tromey <tromey@redhat.com>
723 * Makefile.in: Rebuilt.
724 * Makefile.am (awt_java_source_files): Added new files.
725 * java/awt/CardLayout.java: New file.
726 * java/awt/AWTPermission.java: New file.
728 2000-12-01 Tom Tromey <tromey@redhat.com>
730 * java/util/Vector.java (insertElementAt): Unconditionally
731 increment elementCount.
732 (removeRange): Clear unused slots in vector.
734 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
736 * java/lang/natMath.cc: Declare fabsf() function.
737 * java/lang/mprec.h: Don't include math.h.
738 * java/lang/dtoa.c: Include string.h.
739 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
742 From Adam Welc <welc@cs.purdue.edu>:
743 * java/util/LinkedList.java (removeFirst): Update `first' field.
744 Handle the last == first case.
745 (removeLast): Update `last' field. Handle the last == first case.
747 2000-12-01 Warren Levy <warrenl@cygnus.com>
749 * Makefile.am: Added entries for new java.sql modules.
750 * Makefile.in: Rebuilt.
752 2000-12-01 Warren Levy <warrenl@cygnus.com>
754 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
755 that aren't quite 1.2 compatible yet.
757 2000-11-30 Warren Levy <warrenl@cygnus.com>
759 * java/sql/Array.java: New file from classpath.
760 * java/sql/BatchUpdateException.java: Ditto.
761 * java/sql/Blob.java: Ditto.
762 * java/sql/Clob.java: Ditto.
763 * java/sql/Ref.java: Ditto.
764 * java/sql/SQLData.java: Ditto.
765 * java/sql/SQLInput.java: Ditto.
766 * java/sql/SQLOutput.java: Ditto.
767 * java/sql/Struct.java: Ditto.
768 * java/sql/CallableStatement.java: Merged file from claspath.
769 * java/sql/Connection.java: Ditto.
770 * java/sql/DataTruncation.java: Ditto.
771 * java/sql/DatabaseMetaData.java: Ditto.
772 * java/sql/DriverManager.java: Ditto.
773 * java/sql/PreparedStatement.java: Ditto.
774 * java/sql/ResultSet.java: Ditto.
775 * java/sql/ResultSetMetaData.java: Ditto.
776 * java/sql/SQLException.java: Ditto.
777 * java/sql/SQLWarning.java: Ditto.
778 * java/sql/Statement.java: Ditto.
779 * java/sql/Types.java: Ditto.
781 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
783 * java/lang/natSystem.cc (init_properties): Set user.language and
785 * configure.in: Check for setlocale.
786 * configure: Rebuilt.
787 * include/config.h.in: Rebuilt.
789 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
790 the infate() call didn't deliver any output. Throw a ZipException if
791 the needsDictionary() call returns true.
792 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
793 * java/io/InputStreamReader: Use the default buffer size for the
794 contained BufferedInputStream.
796 2000-11-28 Warren Levy <warrenl@cygnus.com>
798 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
799 more time zone entries.
800 * java/text/SimpleDateFormat.java (format): Added case for
803 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
805 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
806 directly rather than read() in all cases. Make primitive read
807 implementations more efficient, as defined in JDK online docs.
808 (skipBytes): Behave like the JDK's implementation.
809 * java/io/BufferedReader.java: Merge classpath docs. Check for a
810 closed stream with checkStatus() whenever an IOException can be
812 (checkStatus): New private method.
814 2000-11-27 Warren Levy <warrenl@cygnus.com>
816 * Makefile.am: Added natTimeZone.cc.
817 * Makefile.in: Rebuilt.
818 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
819 * java/text/DateFormatSymbols.java (ampms): Made package private.
820 (eras): Made package private.
821 (months): Made package private.
822 (shortMonths): Made package private.
823 (shortWeekdays): Made package private.
824 (weekdays): Made package private.
825 (formatPrefixes): New private field.
826 (localPatternCharsDefault): Made private.
827 (dateFormats): New package private field.
828 (timeFormats): New package private field.
829 (formatsForKey): New private method.
830 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
831 (DateFormatSymbols(DateFormatSymbols)): Ditto.
832 * java/text/SimpleDateFormat.java: Merged with Classpath.
833 * java/util/TimeZone.java: Merged with Classpath.
834 * java/util/natTimeZone.cc: New file.
836 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
838 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
839 (addElement): Don't increment elementCount twice. Doh.
840 * java/util/ArrayList.java (add): Only call ensureCapacity if the
841 array needs to be expanded.
843 * java/util/Collections.java (UnmodifiableCollection): Implement
845 (UnmodifiableList): Throw UnsupportedOperationException from
846 modification methods. Set `l' from the one-parameter constructor.
847 (UnmodifiableMap): Implement toString().
848 (SynchronizedCollection): Ditto.
849 (SynchronizedList): Set `l' from the one-parameter constructor.
850 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
851 (SynchronizedMap): Implement toString().
853 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
855 * javax/naming/NameParser.java,
856 javax/naming/directory/AttributeInUseException.java,
857 javax/naming/directory/AttributeModificationException.java,
858 javax/naming/directory/InvalidAttributeIdentifierException.java,
859 javax/naming/directory/InvalidAttributesException.java,
860 javax/naming/directory/InvalidAttributeValueException.java,
861 javax/naming/directory/InvalidSearchControlsException.java,
862 javax/naming/directory/InvalidSearchFilterException.java,
863 javax/naming/directory/NoSuchAttributeException.java,
864 javax/naming/directory/SchemaViolationException.java: New files.
866 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
868 * javax/naming/InitialContext.java (rebind): Implement.
872 (listBindings): Implement.
873 (destroySubcontext): Implement.
874 (createSubcontext): Implement.
875 (lookupLink): Implement.
876 (getNameParser): Implement.
877 (composeName): Implement.
878 (addToEnvironment): Implement.
880 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
882 * javax/naming/AuthenticationException.java,
883 javax/naming/AuthenticationNotSupportedException.java,
884 javax/naming/CannotProceedException.java,
885 javax/naming/CommunicationException.java,
886 javax/naming/ConfigurationException.java,
887 javax/naming/ContextNotEmptyException.java,
888 javax/naming/InsufficientResourcesException.java,
889 javax/naming/InterruptedNamingException.java,
890 javax/naming/InvalidNameException.java,
891 javax/naming/LimitExceededException.java,
892 javax/naming/LinkException.java,
893 javax/naming/LinkLoopException.java,
894 javax/naming/MalformedLinkException.java,
895 javax/naming/NameAlreadyBoundException.java,
896 javax/naming/NameNotFoundException.java,
897 javax/naming/NamingSecurityException.java,
898 javax/naming/NoPermissionException.java,
899 javax/naming/NotContextException.java,
900 javax/naming/PartialResultException.java,
901 javax/naming/ReferralException.java,
902 javax/naming/ServiceUnavailableException.java,
903 javax/naming/SizeLimitExceededException.java,
904 javax/naming/TimeLimitExceededException.java: New files.
906 * javax/naming/Name.java (clone): New method.
907 (compareTo): New method.
908 (isEmpty): New method.
909 (getAll): New method.
910 (getPrefix): New method.
911 (getSuffix): New method.
912 (startsWith): New method.
913 (endsWith): New method.
914 (addAll): New method.
915 (addAll): New method.
918 (remove): New method.
920 * javax/naming/Context.java (lookup): New method.
921 (rebind): New method.
922 (unbind): New method.
923 (rename): New method.
925 (listBindings): New method.
926 (destroySubcontext): New method.
927 (createSubcontext): New method.
928 (lookupLink): New method.
929 (getNameParser): New method.
930 (composeName): New method.
931 (addToEnvironment): New method.
932 (removeFromEnvironment): New method.
933 (getEnvironment): New method.
935 (getNameInNamespace): New method.
937 * javax/naming/InitialContext.java (lookup): New method.
938 (rebind): New method.
939 (unbind): New method.
940 (rename): New method.
942 (listBindings): New method.
943 (destroySubcontext): New method.
944 (createSubcontext): New method.
945 (lookupLink): New method.
946 (getNameParser): New method.
947 (composeName): New method.
948 (addToEnvironment): New method.
949 (removeFromEnvironment): New method.
950 (getEnvironment): New method.
952 (getNameInNamespace): New method.
954 2000-11-26 Tom Tromey <tromey@cygnus.com>
956 * Makefile.in: Rebuilt.
957 * Makefile.am (core_java_source_files): Added
958 RuntimePermission.java.
959 * java/lang/RuntimePermission.java: Imported from Classpath.
960 * java/lang/Thread.java (getContextClassLoader): Now
961 synchronized. Added security code.
962 (setContextClassLoader): Likewise.
964 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
965 length field of array.
966 (_Jv_NewPrimArray): Likewise.
967 * gcj/array.h (__JArray): `length' field now const. Added
970 2000-11-26 Anthony Green <green@redhat.com>
972 * javax/naming/spi/NamingManager.java,
973 javax/naming/spi/ObjectFactory.java,
974 javax/naming/spi/InitialContextFactory.java,
975 javax/naming/spi/InitialContextFactoryBuilder.java,
976 javax/naming/RefAddr.java, javax/naming/Reference.java,
977 javax/naming/NamingException.java, javax/naming/Context.java,
978 javax/naming/Referenceable.java,
979 javax/naming/directory/InitialDirContext.java,
980 javax/naming/directory/DirContext.java,
981 javax/naming/directory/Attributes.java,
982 javax/naming/directory/Attribute.java,
983 javax/naming/StringRefAddr.java,
984 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
985 javax/naming/InitialContext.java,
986 javax/naming/NoInitialContextException.java: New files.
988 2000-11-25 Anthony Green <green@redhat.com>
990 * prims.cc (_Jv_NewObjectArray): Undo placement change.
991 (_Jv_NewPrimArray): Likewise.
992 * gcj/array.h (__JArray): Undo const change. Removed constructor.
993 (class JArray): Removed constructor.
995 * java/lang/Thread.java (context_class_loader): New private data.
996 (getContextClassLoader): New method.
997 (setContextClassLoader): New method.
998 (Thread): Initialize context_class_loader.
1000 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1001 (getResource): Rename to findResource.
1002 (findResource): New method. Used to be getResource.
1003 (getResourceAsStream): Deleted.
1004 (jarFileize): Extracted logic from URLClassLoader constructor into
1005 this new private method.
1006 (addURL): New protected method.
1007 (URLClassLoader): Call jarFileize. Use addElement instead of
1009 (findResources): New method.
1011 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1012 (getResource): Implement correct logic.
1013 (findResource): New method.
1014 (getResources): New method.
1015 (findClass): Create a ClassNotFoundException with the name of the
1016 class rather than nothing at all.
1017 (defineClass) Only throw ClassFormatError.
1019 * java/lang/Class.java (forName): New method.
1020 * java/lang/Class.h (forName): New method.
1021 * java/lang/natClass.cc (forName): New method.
1023 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1025 * java/lang/System.java (setProperties): Only call init_properties()
1026 if properties is null.
1027 (getProperties): Ditto.
1028 (getProperty): Ditto.
1029 (setProperty): Call init_properties if properties are null.
1030 (prop_init): Remove field.
1031 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1032 method. Check for null properties after synchronizing instead of
1033 prop_init flag. Set the properties field last for thread safety.
1035 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1036 test for gcj.dumpobjects property and enable object stream dumping
1038 (dumpElement): No longer native.
1039 (dumpElementln): Ditto.
1040 (setDump): Do not define.
1041 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1042 (dumpElementln): Removed.
1045 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1047 * configure: Rebuilt.
1048 * Makefile.in: Rebuilt.
1049 * Makefile.am (built_java_source_files): Add Configuration.java.
1050 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1051 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1052 Create `gnu' directory in the build tree.
1053 * gnu/classpath/Configuration.java.in: New file.
1055 2000-11-24 Tom Tromey <tromey@cygnus.com>
1057 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1059 (_Jv_NewPrimArray): Likewise.
1061 * gcj/array.h (__JArray): `length' field now const. Added
1063 (class JArray): Added constructor.
1065 2000-11-23 Mark Wielaard <mark@klomp.org>
1067 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1070 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1072 * java/util/Vector.java: Improve exception messages.
1073 (Vector): Check initialCapacity for IllegalArgumentException.
1074 (tromToSize): Don't check for elementCount == elementData.length
1076 (toArray): Don't try to set null marker if target array is the same
1077 length as the vector.
1079 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1081 * Makefile.in: Rebuilt.
1082 * Makefile.am (core_java_source_files): Added Collections.java.
1083 * java/util/List.java: Merged from classpath.
1084 * java/util/Vector.java: Ditto.
1085 * java/util/Collections.java: From classpath.
1086 * java/util/ArrayList.java (addAll(Collection)): Call
1087 addAll(int,Collection) instead of duplicating code.
1088 (indexOf): Clean up int initialization.
1089 (clear): Set cleared array entries to null, to allow garbage
1091 * java/util/List.java: Minor formatting fixes.
1092 * java/util/SimpleTimeZone.java: ditto.
1094 2000-11-18 Tom Tromey <tromey@cygnus.com>
1096 * Makefile.in: Rebuilt.
1097 * Makefile.am (core_java_source_files): Added new files.
1098 * java/lang/reflect/ReflectPermission.java: New class.
1099 * java/io/FileFilter.java: From Classpath
1100 * java/io/FilePermission.java: From Classpath.
1102 2000-11-17 Tom Tromey <tromey@cygnus.com>
1104 * java/lang/reflect/AccessibleObject.java (isAccessible,
1105 setAccessible): Now public.
1107 * java/lang/natString.cc: Include Locale.h.
1108 (toUpperCase): Added `locale' argument. Handle locale
1110 (toLowerCase): Added `locale' argument. Handle locale
1112 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1113 CAPITAL_I): New defines.
1114 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1117 (toUpperCase, toLowerCase): New methods. Variants which accept
1120 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1123 * java/util/PropertyPermission.java: Re-merged from Classpath.
1125 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1127 * java/text/StringCharacterIterator.java: Reindented.
1128 (setText): New method.
1130 2000-11-17 Mark Wielaard <mark@klomp.org>
1132 Merge with Classpath (changes by Bryce McKinlay)
1133 * java/util/jar/*.java: Reformat all to unofficial standard coding
1134 style. No changes of substance.
1136 2000-11-17 Mark Wielaard <mark@klomp.org>
1138 * java/util/zip/*.java: Javadoc updates.
1140 2000-11-17 Tom Tromey <tromey@cygnus.com>
1142 * java/text/CollationKey.java: Implement Comparable.
1143 (compareTo(Object)): New method.
1144 * java/text/Collator.java (compare(Object,Object)): New method.
1145 Implement Comparator.
1147 * java/util/zip/InflaterInputStream.java (available): New method.
1148 (close): New method.
1149 (read, available, skip, fill): Throw exception if stream closed.
1150 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1151 getNextEntry): Throw exception if closed.
1153 2000-11-16 Tom Tromey <tromey@cygnus.com>
1155 * java/io/PushbackReader.java: Merged with Classpath.
1156 * java/util/Arrays.java: Updated from Classpath.
1158 * scripts/blocks.pl: New file.
1159 * java/lang/Character.java (Subset): New class.
1160 (UnicodeBlock): New class.
1162 * java/lang/Math.java (toDegrees, toRadians): New methods.
1164 * java/lang/Float.java: Implement Comparable.
1165 (compareTo): New methods.
1166 * java/lang/Double.java: Implement Comparable.
1167 (compareTo): New methods.
1169 2000-11-16 Warren Levy <warrenl@cygnus.com>
1171 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1173 (listeners): Made transient.
1174 (source): Renamed from 'bean'.
1175 (children): New field for serialization.
1176 (propertyChangeSupportSerializedDataVersion): Ditto.
1177 (serialVersionUID): Ditto.
1178 (writeObject): New serialization method.
1179 (readObject): New serialization method.
1180 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1182 (listeners): Made transient.
1183 (source): Renamed from 'bean'.
1184 (children): New field for serialization.
1185 (vetoableChangeSupportSerializedDataVersion): Ditto.
1186 (serialVersionUID): Ditto.
1187 (writeObject): New serialization method.
1188 (readObject): New serialization method.
1189 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1190 to allow constructor to have a return type (i.e. the class that the
1191 constructor constructs).
1193 2000-11-14 Tom Tromey <tromey@cygnus.com>
1195 * Makefile.in: Rebuilt.
1196 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1199 2000-11-02 Warren Levy <warrenl@cygnus.com>
1201 * java/io/ObjectInputStream.java (readObject): Added code to
1202 conditionally dump out the serialized data.
1203 Handle ENDBLOCKDATA case a bit more gracefully since the current
1204 behavior doesn't seem to work as expected.
1205 (readStreamHeader): Added code for serialized data dumper.
1206 (readNextBlock): Ditto.
1207 (readFields): Ditto.
1208 (dump): New private static field for turning on/off dumper.
1209 (setDump): New native method.
1210 (dumpElement): New native method.
1211 (dumpElementln): New native method.
1212 * java/io/natObjectInputStream.cc (setDump): New method.
1213 (dumpElement): New method.
1214 (dumpElementln): New method.
1216 2000-11-02 Warren Levy <warrenl@cygnus.com>
1218 * java/net/InetAddress.java (addr): Renamed from 'address'.
1219 (address): New field to match Serialized Form doc.
1220 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1221 (family): New serialization field.
1222 (serialVersionUID): New field.
1223 (readObject): New method.
1224 (writeObject): New method.
1225 (getFamily): New native method.
1226 (InetAddress): Set family.
1227 * java/net/natInetAddress.cc (getFamily): New method.
1228 (addr): Renamed from 'address'.
1229 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1230 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1231 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1233 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1235 * java/util/AbstractList.java (SubList): Make it a top-level private
1237 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1239 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1240 * Makefile.in: Rebuilt.
1242 2000-11-02 Tom Tromey <tromey@cygnus.com>
1244 * Makefile.in: Rebuilt.
1245 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1248 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1250 * java/util/AbstractList.java (remove): Comment out modCount increment
1251 to work around compiler bug.
1254 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1256 * java/util/AbstractList.java: Throw messages with
1257 IndexOutOfBoundsExceptions.
1258 (listIterator()): Call listIterator(0).
1259 (size): New field. Initialize to size().
1260 (hasNext): Test position against size, not size().
1261 (remove): Increment knownMod by one instead of resetting it from
1264 (SubList.upMod): Removed.
1265 (SubList.set): Don't call upMod() or update knownMod.
1266 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1267 (SubList.remove): Ditto.
1268 (SubList.addAll): Don't call backingList.size(). Increment size from
1270 (SubList.iterator): New method. Call listIterator(0).
1271 (SubList.listIterator): New method. Restore code to return an anonymous
1272 listIterator implementation (with some changes).
1273 * java/util/AbstractSequentialList.java: Throw messages with
1274 IndexOutOfBoundsExceptions.
1275 (addAll): Add a specnote.
1276 * java/util/ArrayList.java (removeRange): Get the math right.
1277 (addAll): Increment modCount _before_ creating iterator.
1278 * java/util/LinkedList.java: Rewritten, mostly.
1280 2000-11-01 Tom Tromey <tromey@cygnus.com>
1282 * scripts/encodings.pl: Added `ASCII' alias.
1283 * Makefile.in: Rebuilt.
1284 * Makefile.am (convert_source_files): Added new files.
1285 * gnu/gcj/convert/Input_ASCII.java: New file.
1286 * gnu/gcj/convert/Output_ASCII.java: New file.
1287 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1288 out-of-range characters.
1289 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1290 (read): Swap bytes if required. Treat `count' as character count,
1292 (write): Likewise. Also, handle case where iconv fails on a given
1294 (init): Put encoding into exception.
1295 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1296 (static): Call iconv_init. Rebuilt alias list.
1297 (iconv_init): New private method.
1299 2000-11-01 Tom Tromey <tromey@cygnus.com>
1301 * Makefile.in: Rebuilt.
1302 * Makefile.am (install-exec-hook): Only make a single symlink, and
1303 remove the destination before making the link.
1304 * configure: Rebuilt.
1305 * configure.in: Call AC_PROG_LN_S.
1307 2000-10-31 Warren Levy <warrenl@cygnus.com>
1309 * jni.cc: Added include of java/lang/ThreadGroup.h.
1310 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1311 per change of 2000-10-05.
1313 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1315 * java/util/BitSet.java: Updated @specnote.
1317 * java/io/Reader.java: Merge docs from classpath.
1318 (skip): Synchronize on `lock'.
1319 * java/io/FileReader.java: Import correct implementation from
1321 * java/io/StringReader.java: Merge docs from classpath.
1322 (ready): Throw IOException if stream is closed.
1324 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1326 * java/util/AbstractCollection.java (addAll): Use size() instead of
1327 hasNext() in iterator loop.
1329 (contains): Ditto. Simplify loop.
1330 (containsAll): Ditto.
1335 (toString): Ditto. Use string concatenation operators, not
1337 * java/util/AbstractList.java (addAll): Use size() instead of
1338 hasNext() in iterator loop.
1341 (indexOf): Ditto. Don't take null check outside of the loop.
1342 (iterator): Return an AbstractListItr instead of anonymous class.
1343 (lastIndexOf): Use a for loop bounded by size() instead of
1344 hasPrevious() in iterator loop.
1345 (listIterator): Return an AbstractListItr.
1346 (removeRange): Remove bounds checking code and docs.
1347 (AbstractListItr): New inner class. Code moved here from
1349 (SubList.iterator): Removed. Use default implementation from
1350 AbstractList instead.
1351 (SubList.listIterator): As above.
1352 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1353 instead of hasNext() in iterator loop.
1354 (containsValue): Ditto.
1360 (toString): Ditto. Use string concatenation operators, not
1362 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1363 bounded by size() instead of hasNext() in iterator loop.
1364 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1365 part of normal execution flow. Do an explicit null check instead.
1366 * java/util/ArrayList.java (_iSize): Rename to `size'.
1367 (_arData): Rename to `data'.
1368 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1371 (removeRange): Make protected. Don't check bounds.
1372 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1374 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1376 (addAll (int, Collection)): Check lower bounds. Simplify exception
1378 (clone): Clone the data array too.
1379 (indexOf): Inline doesEqual().
1380 (lastIndexOf): Ditto.
1381 (clear): Don't set array data to null.
1382 (set): Check lower bounds. Simplify exception string.
1383 (toArray): Correct comment.
1384 (trimToSize): Don't update modCount, this is not a structural change.
1387 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1389 (toString): Declare `bit' as long, not int.
1390 (data): Made package-private, not private.
1392 2000-10-27 Warren Levy <warrenl@cygnus.com>
1394 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1395 array elements to true.
1397 2000-10-27 Warren Levy <warrenl@cygnus.com>
1399 * Makefile.am: Added locale files from Classpath.
1400 * Makefile.in: Rebuilt.
1401 * gnu/java/locale/Calendar.java: New file.
1402 * gnu/java/locale/Calendar_de.java: New file.
1403 * gnu/java/locale/Calendar_en.java: New file.
1404 * gnu/java/locale/Calendar_nl.java: New file.
1405 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1406 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1407 serialization compatibility.
1408 (scale): Made private.
1409 (serialVersionUID): New field.
1410 * java/math/BigInteger.java (ival): Made transient.
1411 (words): Made transient.
1412 (bitCount): New serialization field.
1414 (firstNonzeroByteNum): Ditto.
1415 (lowestSetBit): Ditto.
1418 (serialVersionUID): New field.
1419 (readObject): New method.
1420 (writeObject): New method.
1421 * java/util/BitSet.java (serialVersionUID): New field.
1422 * java/util/Calendar.java: Replaced with Classpath file.
1423 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1424 of getDefault() for TimeZone or Locale instead of passing nulls.
1425 * java/util/Locale.java (serialVersionUID): New field.
1426 (writeObject): New method.
1427 (readObject): New method.
1428 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1430 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1432 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1433 (core_java_source_files): Put java.lang, java.io, and java.util here.
1434 (ordinary_java_source_files): Order so that core_java_source_files are
1436 (java_source_files): Reorder so that special_java_source_files are
1438 * configure.in: Don't pass -I flag to gcj.
1439 * Makefile.in: Rebuilt.
1440 * configure: Rebuilt.
1442 2000-10-25 Tom Tromey <tromey@cygnus.com>
1444 * Makefile.in: Rebuilt.
1445 * Makefile.am (install-exec-hook): New target.
1447 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1449 * java/util/EventObject.java: Merged from classpath.
1451 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1454 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1456 * java/util/AbstractSet.java (equals): Re-installed original code.
1458 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1460 * Makefile.am: Added rules for libgcjx library.
1461 * Makefile.in: Rebuilt.
1462 * configure.in: Added check for X.
1463 * configure: Rebuilt.
1464 * gnu/awt/LightweightRedirector.java: New file.
1465 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1466 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1467 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1468 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1469 * gnu/awt/j2d/MappedRaster.java: New file.
1470 * gnu/awt/xlib/XCanvasPeer.java: New file.
1471 * gnu/awt/xlib/XEventLoop.java: New file.
1472 * gnu/awt/xlib/XEventQueue.java: New file.
1473 * gnu/awt/xlib/XFontMetrics.java: New file.
1474 * gnu/awt/xlib/XFramePeer.java: New file.
1475 * gnu/awt/xlib/XGraphics.java: New file.
1476 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1477 * gnu/awt/xlib/XPanelPeer.java: New file.
1478 * gnu/awt/xlib/XToolkit.java: New file.
1479 * gnu/gcj/xlib/Clip.java: New file.
1480 * gnu/gcj/xlib/Colormap.java: New file.
1481 * gnu/gcj/xlib/Display.java: New file.
1482 * gnu/gcj/xlib/Drawable.java: New file.
1483 * gnu/gcj/xlib/Font.java: New file.
1484 * gnu/gcj/xlib/GC.java: New file.
1485 * gnu/gcj/xlib/Pixmap.java: New file.
1486 * gnu/gcj/xlib/Screen.java: New file.
1487 * gnu/gcj/xlib/Visual.java: New file.
1488 * gnu/gcj/xlib/WMSizeHints.java: New file.
1489 * gnu/gcj/xlib/Window.java: New file.
1490 * gnu/gcj/xlib/WindowAttributes.java: New file.
1491 * gnu/gcj/xlib/XAnyEvent.java: New file.
1492 * gnu/gcj/xlib/XButtonEvent.java: New file.
1493 * gnu/gcj/xlib/XColor.java: New file.
1494 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1495 * gnu/gcj/xlib/XConnectException.java: New file.
1496 * gnu/gcj/xlib/XEvent.java: New file.
1497 * gnu/gcj/xlib/XException.java: New file.
1498 * gnu/gcj/xlib/XExposeEvent.java: New file.
1499 * gnu/gcj/xlib/XID.java: New file.
1500 * gnu/gcj/xlib/XImage.java: New file.
1501 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1502 * gnu/gcj/xlib/natClip.cc: New file.
1503 * gnu/gcj/xlib/natColormap.cc: New file.
1504 * gnu/gcj/xlib/natDisplay.cc: New file.
1505 * gnu/gcj/xlib/natDrawable.cc: New file.
1506 * gnu/gcj/xlib/natFont.cc: New file.
1507 * gnu/gcj/xlib/natGC.cc: New file.
1508 * gnu/gcj/xlib/natPixmap.cc: New file.
1509 * gnu/gcj/xlib/natScreen.cc: New file.
1510 * gnu/gcj/xlib/natVisual.cc: New file.
1511 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1512 * gnu/gcj/xlib/natWindow.cc: New file.
1513 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1514 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1515 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1516 * gnu/gcj/xlib/natXColor.cc: New file.
1517 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1518 * gnu/gcj/xlib/natXException.cc: New file.
1519 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1520 * gnu/gcj/xlib/natXImage.cc: New file.
1521 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1522 * java/awt/EventDispatchThread.java: Start thead on creation.
1524 2000-10-20 Tom Tromey <tromey@cygnus.com>
1526 From Arno J. Klaassen:
1527 * interpret.cc: Include <stdlib.h> for alloca.
1528 * defineclass.cc: Include <stdlib.h> for alloca.
1530 * Makefile.in: Rebuilt.
1531 * Makefile.am: Include deps.mk.
1532 (GCJCOMPILE): Added -MD, -MT, and -MF.
1533 ($(javao_files)): Don't depend on libgcj.zip.
1534 (all-recursive): New target.
1535 (%.lo:%.cc): Do dependency tracking.
1536 ($(nat_headers)): Don't depend on libgcj.zip.
1537 * configure: Rebuilt.
1538 * configure.in: Make .d files and deps.mk.
1540 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1542 * exception.cc: Don't #include "exception".
1543 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1545 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1546 * Makefile.in: Updated.
1548 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1550 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1551 * java/awt/peer/ComponentPeer.java (disable): Removed.
1554 (minimumSize): Removed.
1555 (preferredSize): Removed.
1558 * java/awt/peer/ListPeer.java (addItem): Removed.
1560 (minimumSize): Removed.
1561 (preferredSize): Removed.
1562 (setMultipleSelections): Removed.
1563 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1564 (remove): Renamed from removeMenu.
1565 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1567 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1568 (remove): Renamed from removeItem.
1569 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1570 (getMinimumSize): Removed.
1571 (getPreferredSize): Removed.
1572 (minimumSize): Removed.
1573 (preferredSize): Removed.
1574 (replaceText): Removed.
1575 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1576 (preferredSize): Removed.
1577 (getMinimumSize): Removed.
1578 (getPreferredSize): Removed.
1579 (setEchoCharacter): Removed.
1581 2000-10-10 Warren Levy <warrenl@cygnus.com>
1583 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1584 * java/sql/Date.java (serialVersionUID): New field.
1585 * java/sql/Time.java (serialVersionUID): New field.
1586 * java/sql/Timestamp.java (serialVersionUID): New field.
1587 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1588 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1589 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1590 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1591 (readObject): New serialization method.
1592 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1593 (serialVersionOnStream): New field.
1594 (readObject): New serialization method.
1595 (getMonetaryDecimalSeparator): New method.
1596 (setMonetaryDecimalSeparator): New method.
1597 * java/text/NumberFormat.java (maxFractionDigits): New field.
1598 (maxIntegerDigits): New field.
1599 (minFractionDigits): New field.
1600 (minIntegerDigits): New field.
1601 (serialVersionOnStream): New field.
1602 (serialVersionUID): New field.
1603 (readObject): New serialization method.
1604 (writeObject): New serialization method.
1605 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1606 (serialVersionOnStream): New field.
1607 (serialVersionUID): New field.
1608 (readObject): New serialization method.
1610 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1612 * configure.in (GCJ): Avoid bogus error message when looking for
1613 (and not finding) gcj in the build tree.
1614 * configure: Rebuilt.
1616 2000-10-09 Tom Tromey <tromey@cygnus.com>
1618 * configure: Rebuilt.
1619 * configure.in: Include sys/types.h when checking for socklen_t.
1620 From Arno J. Klaassen.
1622 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1624 * include/jvm.h: Enable __builtin_expect().
1626 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1627 the main program. Fix for PR libgcj/341.
1629 2000-10-07 Tom Tromey <tromey@cygnus.com>
1631 * java/util/Properties.java: Merged with Classpath version.
1633 2000-10-05 Tom Tromey <tromey@cygnus.com>
1635 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1636 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1637 * java/lang/Class.h (Object): Added `class$' field.
1638 * java/lang/Object.h (Object): Added `class$' field.
1639 * defineclass.cc (ClassClass): Use `class$' form.
1640 (ClassObject): Likewise.
1641 * resolve.cc (ClassObject): Use `class$' form.
1642 (ObjectClass): Likewise.
1643 * interpret.cc (ClassError): Removed.
1644 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1646 (IntegerClass): Likewise.
1647 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1649 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1650 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1651 SerializableClass): Likewise.
1652 Include Serializable.h, Cloneable.h.
1653 * java/lang/natSystem.cc (SystemClass): Removed.
1654 (init_properties): Use `class$' form.
1655 * java/lang/natObject.cc (CloneableClass): Removed.
1656 (clone): Use `class$' form.
1657 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1658 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1659 ConstructorClass): Likewise.
1660 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1661 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1662 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1663 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1665 (ClassClass): Likewise.
1666 * include/jvm.h (StringClass): Use `class$' form.
1667 * prims.cc (ObjectClass): Removed.
1668 (_Jv_RunMain): Use `class$' form.
1669 (_Jv_AllocObject): Likewise.
1670 * jni.cc (ClassClass): Use `class$' form.
1671 (ThrowableClass): Likewise.
1672 (ObjectClass): Likewise.
1673 (MethodClass): Likewise.
1674 (ThreadGroupClass): Likewise.
1675 (NativeThreadClass): Likewise.
1676 * boehm.cc (ObjectClass): Removed.
1677 (ClassClass): Removed.
1678 (_Jv_MarkObj): Use `class$' form.
1679 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1682 2000-10-05 Warren Levy <warrenl@cygnus.com>
1684 * Makefile.am: Removed java/io/Replaceable.java and
1685 java/io/Resolvable.java.
1686 * Makefile.in: Rebuilt.
1687 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1689 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1691 (processResolution): Handle readResolve method via reflection with
1692 removal of Resolvable interface.
1693 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1694 method via reflection with removal of Replaceable interface.
1695 * java/io/Replaceable.java: Removed.
1696 * java/io/Resolvable.java: Removed.
1697 * java/security/Key.java (serialVersionUID): New field.
1698 * java/security/Provider.java (serialVersionUID): New field.
1699 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1701 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1703 * java/sql/DataTruncation.java (serialVersionUID): New field.
1704 * java/sql/SQLException.java (serialVersionUID): New field.
1705 * java/sql/SQLWarning.java (serialVersionUID): New field.
1706 * java/util/Date.java (serialVersionUID): New field.
1707 (millis): Made transient.
1708 (readObject): New method.
1709 (writeObject): New method.
1711 2000-10-05 Tom Tromey <tromey@cygnus.com>
1713 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1715 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1717 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1718 (JvRunMain): Set _Jv_argv and _Jv_argc.
1719 * java/awt/Component.java: Minor fixes.
1720 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1721 * java/awt/Toolkit.java (systemEventQueue): Removed.
1722 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1723 * java/awt/Window.java (getToolkit): Don't call super.
1724 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1725 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1726 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1727 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1728 * gnu/awt/gtk/GtkFramePeer.java: New file.
1729 * gnu/awt/gtk/GtkMainThread.java: New file.
1730 * gnu/awt/gtk/GtkToolkit.java: New file.
1731 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1732 * gnu/awt/gtk/gtkcommon.cc: New file.
1733 * gnu/awt/gtk/gtkcommon.h: New file.
1734 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1735 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1736 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1737 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1738 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1739 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1741 2000-09-30 Tom Tromey <tromey@cygnus.com>
1743 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1744 interrupted before modifying the cv's wait set.
1747 2000-09-30 Hans Boehm <boehm@acm.org>
1748 Bryce McKinlay <bryce@albatross.co.nz>
1750 Implement bitmap descriptor based marking for Boehm GC.
1752 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1753 * configure: Rebuilt.
1754 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1755 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1756 method get_finalizer().
1757 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1758 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1759 (_Jv_AllocObj): Add new jclass parameter.
1760 (_Jv_AllocArray): Ditto.
1761 (_Jv_BuildGCDescr): New prototype.
1762 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1763 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1764 get_finalizer() instead of direct finalizer vtable offset.
1765 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1766 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1767 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1768 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1769 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1770 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1771 (_Jv_DetermineVTableIndex): Ditto.
1772 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1773 calculations to account for new gc_descr field.
1774 * boehm.cc: #include gc_gcj.h.
1775 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1776 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1777 New commentary from HB. Mark the classes vtable.
1778 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1779 (GC_DEFAULT_DESCR): New #define.
1780 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1781 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1782 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1783 scan conservativly if size is less than min_heap_addr. Set vtable
1784 pointer of new object before returning.
1785 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1786 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1787 allocation for obj_kind_x.
1788 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1789 (_Jv_AllocObj): Set vtable on returned object.
1790 (_Jv_AllocArray): Ditto.
1791 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1792 (_Jv_NewPrimArray): Ditto.
1793 (_Jv_AllocObj): Declare as a friend.
1794 (_Jv_AllocArray): Ditto.
1795 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1796 from &ObjectClass into new array class. Remove offset-by-one
1797 adjustments from `method' size calculations to account for gc_descr
1800 2000-09-26 Tom Tromey <tromey@cygnus.com>
1802 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1803 `remove', not `add'.
1805 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1807 * java/lang/natSystem.cc (file_encoding): Added return statement.
1809 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1811 * Makefile.am: Re-work shell commands that exceeded command-line
1813 * Makefile.in: Rebuilt.
1815 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1817 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1818 * java/lang/natDouble.cc: Likewise.
1819 * java/lang/reflect/natMethod.cc: Likewise.
1820 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1822 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1824 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1826 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1827 * acinclude.m4: Arrange for automake to not bring in a new
1828 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1829 * Makefile.am: Leave it up to automake to subst GCJ.
1830 * aclocal.m4, configure, Makefile.in: Rebuilt.
1832 2000-09-13 Tom Tromey <tromey@cygnus.com>
1834 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1835 (get): Ensure Boolean class is initialized.
1836 * java/lang/reflect/natField.cc (BooleanClass): New define.
1837 (get): Ensure Boolean class is initialized.
1839 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1841 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1842 Initialize with anonymous class.
1843 (compareToIgnoreCase): New method.
1845 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1846 (uncaughtException): Set had_uncaught_exception.
1847 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1848 exit with error status if set.
1849 (_Jv_RunMain): Ditto.
1851 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1853 * configure: Rebuilt with new ../libtool.m4.
1855 2000-09-11 Tom Tromey <tromey@cygnus.com>
1857 * java/lang/reflect/Field.java (toString): Don't rely on
1860 2000-09-08 Tom Tromey <tromey@cygnus.com>
1862 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1863 default decoder use iconv.
1864 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1865 Let default encoder use iconv.
1866 * configure: Rebuilt.
1867 * configure.in: Check for nl_langinfo and <langinfo.h>.
1868 * java/lang/natSystem.cc (file_encoding): New function.
1869 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1871 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1873 * acinclude.m4: Simplify the tests for CC and CXX.
1874 * aclocal.m4, configure: Rebuilt.
1876 * acinclude.m4: Include libtool macros from the source tree.
1877 * aclocal.m4, configure: Rebuilt.
1879 2000-09-08 Warren Levy <warrenl@cygnus.com>
1881 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1882 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1883 * java/io/File.java (writeObject): Added.
1884 (readObject): Added.
1885 (serialVersionUID): Added.
1886 * java/io/ObjectOutputStream.java (writeObject): Initialized
1887 fieldsAlreadyWritten before recursion rather than after.
1888 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1889 * java/io/OptionalDataException.java (serialVersionUID): Added.
1890 (OptionalDataException): Made package private.
1891 * java/io/SyncFailedException.java (SyncFailedException): Removed
1892 default constructor to match spec.
1893 * java/lang/Boolean.java (serialVersionUID): Added.
1894 * java/lang/Byte.java (serialVersionUID): Added.
1895 * java/lang/Character.java (serialVersionUID): Added.
1896 * java/lang/Double.java (serialVersionUID): Added.
1897 * java/lang/Float.java (serialVersionUID): Added.
1898 * java/lang/Integer.java (serialVersionUID): Added.
1899 * java/lang/Long.java (serialVersionUID): Added.
1900 * java/lang/Number.java (serialVersionUID): Added.
1901 * java/lang/Short.java (serialVersionUID): Added.
1902 * java/lang/String.java (serialVersionUID): Added.
1903 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1905 * java/lang/reflect/InvocationTargetException.java
1906 (serialVersionUID): Added.
1907 * java/net/URL.java (handler): Made transient.
1908 (hashCode): Added field for serialization, per spec. and use
1909 cached value if available.
1910 (serialVersionUID): Added.
1911 (URL): Initialize hashCode.
1912 (set): Adjust hashCode.
1913 (readObject): New Method to initialize the protocol handler when
1915 (writeObject): New method.
1916 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1917 * java/text/Collator.java: Removed 'implements Serializable'.
1918 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1919 * java/util/Properties.java (serialVersionUID): Added.
1920 * java/util/Random.java (serialVersionUID): Added.
1921 (seed): Made private.
1922 (nextNextGaussian): Made private.
1923 (haveNextNextGaussian): Made private.
1924 * java/util/Stack.java (serialVersionUID): Added.
1925 * java/util/TimeZone.java (serialVersionUID): Added.
1926 * java/util/Vector.java (serialVersionUID): Added.
1928 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1930 * Makefile.am (Thread.h): Don't be friends with native threads
1932 * Makefile.in: Rebuilt.
1933 * java/lang/Thread.java (interrupt_flag): Make package-private.
1935 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
1937 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1938 to avoid long long division.
1940 2000-09-06 Tom Tromey <tromey@cygnus.com>
1942 * java/lang/reflect/Constructor.java (toString): Use `getName' for
1944 * java/lang/reflect/Method.java (toString): Use `getName' for
1947 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1948 `args' if method takes no parameters.
1950 Fix for PR java.lang/339:
1951 * java/lang/natPosixProcess.cc (fail): New function.
1952 (cleanup): New function.
1953 (startProcess): Use them. Create pipe so child can communicate
1954 exec failure back to parent.
1956 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1958 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1960 (send): Undo last patch. Remove the label only.
1962 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
1964 * java/net/natInetAdress.cc: Ditto.
1966 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1968 2000-09-05 Tom Tromey <tromey@cygnus.com>
1970 * doc/cni.sgml: Updated from master copy.
1972 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1974 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
1976 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
1978 * java/lang/fdlibm.h: #undef __P if previously defined.
1979 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
1980 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
1984 2000-09-04 Tom Tromey <tromey@cygnus.com>
1986 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
1989 2000-09-04 Anthony Green <green@redhat.com>
1991 Fix for PR java.io/203:
1992 * java/io/File.java (createTempFile): Obey directory argument.
1993 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
1994 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
1995 variable to set java.io.tmpdir on non-WIN32 systems.
1997 2000-09-04 Anthony Green <green@redhat.com>
1999 * java/io/File.java (deleteOnExit): New method.
2000 * gnu/gcj/runtime/FileDeleter.java: New class.
2001 * java/lang/natRuntime.cc (exit): Call
2002 FileDeleter.deleteOnExitNow()
2003 * Makefile.am: Add FileDeleter.java.
2004 * Makefile.in: Rebuilt.
2006 2000-09-02 Tom Tromey <tromey@cygnus.com>
2008 * Makefile.in: Rebuilt.
2009 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2010 environment variable.
2012 2000-09-01 Andrew Haley <aph@redhat.com>
2014 * java/io/StreamTokenizer.java: Don't throw a
2015 NumberFormatException if a field is numeric as far as the
2016 StreamTokenizer is concerned but not as far as Double.valueOf() is
2017 concerned: return a zero instead.
2019 2000-08-30 Tom Tromey <tromey@cygnus.com>
2021 * Makefile.in: Rebuilt.
2022 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2024 2000-08-28 Tom Tromey <tromey@cygnus.com>
2026 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2027 gnu/gcj/awt/ComponentDataBlitOp.java,
2028 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2029 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2030 java/awt/color/ICC_ColorSpace.java,
2031 java/awt/color/ICC_Profile.java,
2032 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2033 java/awt/image/ComponentColorModel.java,
2034 java/awt/image/ComponentSampleModel.java,
2035 java/awt/image/DataBuffer.java,
2036 java/awt/image/DataBufferByte.java,
2037 java/awt/image/DataBufferInt.java,
2038 java/awt/image/DataBufferUShort.java,
2039 java/awt/image/DirectColorModel.java,
2040 java/awt/image/IndexColorModel.java,
2041 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2042 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2043 java/awt/image/SinglePixelPackedSampleModel.java,
2044 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2045 Removed Latin-1 copyright symbols.
2046 * java/util/zip/ZipFile.java: Indentation fixes.
2048 2000-08-27 Mark Wielaard <mark@klomp.org>
2050 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2051 constructor, close can delete the file, finalize calls close.
2052 * java/util/jar/JarFile.java: Constructor that takes mode now
2055 2000-08-27 Anthony Green <green@redhat.com>
2057 * java/util/ArrayList.java, java/util/Timer.java,
2058 java/util/LinkedList.java, java/util/TimerTask.java,
2059 java/util/HashMap.java, java/util/AbstractMap.java,
2060 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2061 java/util/SortedSet.java: Imported from GNU Classpath.
2062 * Makefile.in: Rebuilt.
2063 * Makefile.am: Added new files.
2065 2000-08-26 Anthony Green <green@redhat.com>
2067 * Makefile.in: Rebuilt.
2068 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2071 * prims.cc: Include ClassLoader.h.
2072 (_Jv_RunMain): When executing jar files, classpath must be the jar
2073 file only. Lose our reference to the system ClassLoader in order
2074 to get a new one with the correct classpath.
2075 * java/lang/natSystem.cc (init_properties): When executing a jar
2076 file, only use the jar file for java.class.path.
2078 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2079 for bytecode archives.
2081 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2082 exists, but not Main-Class.
2084 2000-08-23 Mark Wielaard <mark@klomp.org>
2086 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2087 return -1 when fill() has no more data for the Inflater.
2089 2000-08-23 Mark Wielaard <mark@klomp.org>
2091 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2092 write(String) already does.
2094 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2096 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2097 to `alive_flag', call `init'.
2098 (init): New native method.
2099 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2102 2000-08-21 Mark Wielaard <mark@klomp.org>
2104 * Makefile.in: Rebuilt.
2105 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2107 (java/lang/reflect/Field.h): Likewise.
2108 (java/lang/reflect/Method.h): Likewise.
2109 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2112 2000-08-21 Tom Tromey <tromey@cygnus.com>
2114 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2117 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2119 * java/lang/natSystem.cc (init_properties): Change sourceware
2120 reference to sources.redhat.com.
2122 * include/java-props.h: Add _Jv_Jar_Class_Path.
2123 * prims.cc: Ditto. Set it from `gij -jar file' option.
2125 * java/lang/natSystem.cc (init_properties): Set java.class.path
2127 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2129 * java/util/PropertyPermission.java: Import from GNU Classpath.
2130 * Makefile.in: Rebuilt.
2131 * Makefile.am: Add java/util/PropertyPermission.java.
2132 * java/lang/System.java: Add setProperty method.
2134 * gij.cc (main): Add -jar option to execute jar files.
2135 (help): Describe -jar option.
2136 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2137 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2138 * gnu/gcj/runtime/FirstThread.java (main): New method.
2140 * java/util/jar/Attributes.java: Correct comment spelling.
2142 2000-08-20 Mark Wielaard <mark@klomp.org>
2144 * java/util/zip/Adler32.java: Make private variables really private
2145 * java/util/zip/CRC32.java: Make private variables really private
2146 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2148 * java/util/zip/InflaterInputStream.java: skip() could skip to
2150 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2151 * java/util/zip/ZipFile.java: size() new 1.2 method
2152 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2153 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2156 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2158 * java/util/jar/JarFile.java: Don't call
2159 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2162 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2164 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2165 Read the entire contents of the class file, not just what is
2168 * java/net/JarURLConnection.java: getEntry doesn't take any
2169 arguments. Return null if element is null.
2171 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2172 size from the archive, not the inflated size.
2174 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2175 java.util.zip.ZipFile.getEntry.
2177 * gij.cc (help): Change sourceware reference to
2180 2000-08-19 Tom Tromey <tromey@cygnus.com>
2182 * java/util/zip/ZipInputStream.java (createZipEntry):
2185 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2187 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2188 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2189 java/util/jar/JarInputStream.java,
2190 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2191 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2192 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2193 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2194 java/security/cert/Certificate.java,
2195 java/security/cert/CertificateEncodingException.java,
2196 java/security/cert/CertificateException.java,
2197 java/security/cert/CertificateExpiredException.java,
2198 java/security/cert/CertificateFactory.java,
2199 java/security/cert/CertificateFactorySpi.java,
2200 java/security/cert/CertificateNotYetValidException.java,
2201 java/security/cert/CertificateParsingException.java,
2202 java/security/cert/X509CRL.java,
2203 java/security/cert/X509CRLEntry.java,
2204 java/security/cert/X509Certificate.java,
2205 java/security/cert/X509Extension.java: Imported from Classpath.
2206 * java/util/Hashtable.java: Imported from Classpath.
2208 * java/util/zip/ZipInputStream.java: Create stub for
2211 * gcj/javaprims.h: Updated class list.
2213 * Makefile.in, gcj/Makefile.in: Rebuilt.
2214 * Makefile.am (ordinary_java_source_files): Add these new classes.
2216 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2218 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2219 * gnu/gcj/awt/GLightweightPeer.java: New file.
2220 * java/awt/BorderLayout.java: Implemented all methods.
2221 * java/awt/Button.java (actionListener, actionCommand): Renamed
2222 and modifier change.
2223 (addNotify): Call super.
2224 (dispatchEventImpl): New method.
2225 (getListeners): New method.
2226 (label): Made package-private, not private.
2227 * java/awt/Canvas.java: Implemented class body.
2228 * java/awt/Color.java (brighter): New method.
2229 (darker): New method.
2230 (hashCode): New method.
2231 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2232 (getGraphicsConfiguration): Delegate to
2233 getGraphicsConfigurationImpl().
2234 (getGraphicsConfigurationImpl): New method.
2235 (getToolkit): Only return value from peer if not null.
2236 (isDisplayable): Check with parent.
2237 (isShowing): No parent implies not showing.
2238 (getForeground): Check parent property if local is null.
2239 (getBackground): Likewise.
2240 (getFont): Likewise.
2241 (setForeground): Inform peer.
2242 (setBackground): Likewise
2243 (setLocale): Invalidate component.
2244 (getColorModel): Implemented.
2245 (setLocation): Invalidate, or ignore if no change.
2246 (setSize): Invalidate, or ignore if no change.
2247 (setBounds): Invalidate, or ignore if no change.
2248 (isOpaque): By default, heavyweight implies opaque.
2249 (isLightweight): Implemented.
2250 (getMaximumSize): Implemented.
2251 (doLayout): Implemented, NOP.
2252 (validate): Implemented, NOP.
2253 (invalidate): Only propagate to parent if parent was valid.
2254 (getGraphics): Implemented.
2255 (getFontMetrics): Implemented.
2256 (update): Implemented.
2257 (paintAll): Implemented.
2258 (repaint): Implemented all repaint methods.
2259 (print): Implemented.
2260 (printAll): Implemented.
2261 (createImage): Implemented.
2262 (dispatchEvent): Give the peer a chance to handle the event.
2263 (dispatchEventImpl): Dispatch paint events.
2264 (enableEvents): Lightweights enable events on parent component.
2265 (coalesceEvents): Coalesce paint events, and select event type
2267 (coalescePaintEvents): New method.
2268 (processEvent): Fix unfortunate ordering of statements, and call
2269 correct method for MOUSE_CLICKED.
2270 (processPaintEvent): New method.
2271 (addNotify): Allow container to notify children before event
2272 mask is set in peer.
2273 (addNotifyContainerChildren): New method.
2274 (removeNotify): Visibility should not change on removeNotify.
2275 (paramString): Implemented.
2276 (list): Implemented two of the list methods.
2277 * Container (myInsets): Removed, insets are managed by peer.
2278 (getInsets): Query peer.
2279 (addImpl): Fix reparenting, enable events for lightweights,
2280 initialize component array.
2281 (validate): Call doLayout in validateTree() instead.
2282 (validateTree): Do nothing if already valid. Call beginValidate(),
2283 endValidate() on peer. Call validateTree() instead of validate()
2284 for children that are containers. Mark valid after validation of
2286 (setFont): Partial implementation.
2287 (paint): Implemented.
2288 (visitChildren): New method.
2289 (visitChild): New method.
2290 (update): Implemented.
2291 (print): Implemented.
2292 (paintComponents): Implemented.
2293 (printComponents): Consider translation and clipping.
2294 (getComponentAt): Ignore invisible children. Return this if no
2296 (addNotify): Call super.
2297 (addNotifyContainerChildren): New method.
2298 (paramString): Implemented.
2299 (list): Implemented.
2300 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2302 (invokeLater): Likewise.
2303 (isDispatchThread): Likewise.
2304 * java/awt/FontMetrics (getLeading): Formula change.
2305 (getDescent): Consider leading also.
2306 (getMaxAscent): Default to getAscent().
2307 (getMaxDescent): Default to getDescent.
2308 (getMaxAdvance): Return value signifying unknown.
2309 (charWidth): Both methods implemented.
2310 (charsWidth): Implemented.
2311 (bytesWidth): Implemented.
2312 (getWidths): Implemented.
2313 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2315 (Frame): Rearragend constuctor chaining to disallow null being
2316 passed as a graphics configuration.
2317 (getTitle): Return empty string if null.
2319 (getIconImage): New method.
2320 (setIconImage): New method.
2321 (finalize): New method.
2322 (setMenuBar): Notify peer.
2323 (isResizable): New method.
2324 (setResizable): New method.
2325 (getState): New method.
2327 (remove): Implemented.
2328 (removeNotify): New method.
2329 (getFrames): New method.
2330 * java/awt/Graphics.java: Implemented body of class.
2331 * java/awt/Graphics2D.java: New file.
2332 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2333 * java/awt/Image.java: Implemented body of class.
2334 * java/awt/Panel.java (Panel): Call correct super constructor.
2335 (addNotify): Implemented.
2336 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2337 * java/awt/RenderingHints.java: New file.
2338 * java/awt/Toolkit.java (createComponent): Implemented.
2339 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2340 * java/awt/Window.java (Window): Two new constructors. Reordered
2341 constructor chaining.
2342 (getGraphicsConfigurationImpl): New method.
2343 (finalize): Call super.
2344 (addNotify): Call super.
2345 (pack): Do layout stuff.
2346 (show): Ensure that peer exists and that component is valid.
2347 (dispose): Dispose owned children.
2348 (getOwner): Simplify code, casting null pointers is valid.
2349 (getGraphicsConfiguration): Ask peer if local value is null.
2350 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2352 * java/awt/image/BufferedImage.java: New file.
2353 * java/awt/image/RasterOp.java: New file.
2354 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2355 More powerfull replacement for getColorModel().
2356 (getColorModel) Removed.
2357 (setEventMask) New method.
2358 * Makefile.am: Added new files.
2359 * Makefile.in: Rebuilt.
2361 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2363 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2364 (finit_leg_name): New global.
2365 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2366 `$finit$'. This is a backward compatibility hack.
2367 (java::lang::Class::_getMethods): Likewise.
2369 2000-08-15 Andrew Haley <aph@cygnus.com>
2371 * include/jvm.h (_Jv_HashCode): New hash code.
2373 2000-08-15 Tom Tromey <tromey@cygnus.com>
2375 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2377 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2379 * THANKS: More thanks.
2381 2000-08-10 Tom Tromey <tromey@cygnus.com>
2383 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2385 (connect): Likewise.
2387 (getOption): Likewise.
2388 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2389 case when errno not set.
2392 (receive): Likewise.
2393 (mcastGrp): Likewise.
2394 (setOption): Likewise.
2395 (getOption): Likewise.
2397 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2398 John Stracke <francis@ecal.com>
2400 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2401 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2403 (disconnect): Don't unset connected flag.
2404 (getHeaderField (String)): Call connect() if not connected.
2405 (getHeaderField (int)): Ditto.
2406 (getHeaderFieldKey): Ditto.
2407 (getHttpHeaders): Don't call connect().
2408 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2409 gotResponseVals): New fields.
2410 (getResponseCode): Call getResponseVals() conditionally.
2411 (getResponseMessage): Ditto.
2412 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2414 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2416 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2417 * Makefile.in: Rebuilt.
2418 * java/awt/Color.java (getTransparency): New method.
2419 * java/awt/Component.java: Various updates.
2420 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2421 after dealing with children.
2422 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2423 * java/awt/Window.java: Various new methods and updates.
2424 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2426 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2427 * java/awt/event/WindowEvent.java (paramString): Ditto.
2428 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2430 * java/awt/geom/Point2D.java (clone): Ditto.
2431 * java/awt/geom/RectangularShape.java (clone): Ditto.
2432 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2433 isAlphaPremultiplied): Make package-private, not private.
2435 2000-08-08 Tom Tromey <tromey@cygnus.com>
2437 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2438 surrogate characters.
2439 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2441 (write): Correct handling of surrogate characters.
2443 2000-08-07 Tom Tromey <tromey@cygnus.com>
2445 * java/lang/reflect/Method.java (hashCode): Use getName().
2446 (toString): Likewise.
2447 * java/lang/reflect/natMethod.cc (getType): Initialize
2450 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2452 * java/lang/reflect/Field.java (toString): Correct formatting.
2455 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2457 (receive): Streamlined.
2459 2000-08-05 Tom Tromey <tromey@cygnus.com>
2461 * java/io/PrintWriter.java: Merged comments from Classpath.
2462 (printlnUnsynchronized): Removed.
2463 (println()): Print the separator.
2464 (println): Call println(), not printlnUnsynchronized.
2465 (out): Now protected, to match spec.
2467 2000-08-04 Tom Tromey <tromey@cygnus.com>
2469 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2470 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2473 2000-08-03 Warren Levy <warrenl@cygnus.com>
2475 * java/io/ObjectInputStream.java (readFields): Turn off
2476 readDataFromBlock while reading via GetField.
2477 (GetField$1.get(String, Object)): Pass Class of default value to
2479 (getField): Allow for null default values.
2481 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2482 (PutField$1.put): Fixed calls of checkType in most of the put
2483 methods to pass the correct parameter.
2484 (PutField$1.put(String, Object)): Allow for null value arg.
2485 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2488 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2489 typo in spec'ed field name.
2490 (getSerialPersistentFields): Changed spelling of method to match
2491 the correct spelling of the spec'ed field name.
2493 2000-08-03 Tom Tromey <tromey@cygnus.com>
2495 * Makefile.in: Rebuilt.
2496 * Makefile.am (awt_java_source_files): Added new files.
2498 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2500 * Makefile.am: Add new AWT stubs.
2501 * java/awt/Canvas.java: New placeholder class.
2502 * java/awt/Checkbox.java: Ditto.
2503 * java/awt/CheckboxMenuItem.java: Ditto.
2504 * java/awt/Choice.java: Ditto.
2505 * java/awt/Dialog.java: Ditto.
2506 * java/awt/FileDialog.java: Ditto.
2507 * java/awt/List.java: Ditto.
2508 * java/awt/ScrollPane.java: Ditto.
2509 * java/awt/TextField.java: Ditto.
2510 * java/awt/datatransfer/Clipboard.java: Ditto.
2511 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2512 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2513 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2514 Some commented out. Partially implemented.
2515 * java/awt/natToolkit.cc: Removed file.
2517 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2519 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2520 Fixes "make -j" builds.
2521 * Makefile.in: Rebuild.
2523 2000-08-02 Tom Tromey <tromey@cygnus.com>
2525 * Makefile.in: Rebuilt.
2526 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2527 * java/net/natPlainSocketImpl.cc: Include posix.h.
2528 (accept): Use _Jv_select.
2529 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2530 (receive): Use _Jv_select.
2531 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2532 (available): Use _Jv_select.
2533 * java/lang/natSystem.cc: Include posix.h.
2534 (currentTimeMillis): Use _Jv_gettimeofday.
2535 * include/posix.h: New file.
2536 * posix.cc: New file.
2538 * scripts/encodings.pl: New file.
2539 * Makefile.in: Rebuilt.
2540 * Makefile.am (convert_source_files): Added IOConverter.java.
2541 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2543 (getDefaultDecodingClass): Canonicalize default encoding name.
2544 (getEncoder): Likewise.
2545 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2547 (getDefaultDecodingClass): Canonicalize default encoding name.
2548 (getDecoder): Likewise.
2549 * gnu/gcj/convert/IOConverter.java: New file.
2551 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2553 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2554 to match C declaration in ffi.h.
2555 * Makefile.am: Add java/awt/Button.java.
2556 * Makefile.in: Rebuilt.
2558 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2560 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2561 cast of the second argument to `ffi_raw_call' changed to match
2564 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2566 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2567 argument to `ffi_raw_call' changed to match prototype.
2569 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2571 * java/awt/Component.java (toString): Implemented.
2572 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2573 dispatchEvent() to dispatch the event.
2574 (removeImpl): Ditto.
2576 2000-07-30 Anthony Green <green@redhat.com>
2578 * java/awt/Component.java: Add treeLock object.
2579 (getTreeLock): Implement.
2580 (isShowing): Implement.
2582 2000-07-30 Tom Tromey <tromey@cygnus.com>
2584 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2586 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2588 * java/awt/Window.java (addNotify): Wrote.
2589 (addWindowListener): Wrote.
2591 (getWarningString): Wrote.
2592 (processEvent): Wrote.
2593 (processWindowEvent): Wrote.
2594 (removeWindowListener): Wrote.
2595 (show): Call validate(), setVisible().
2599 * java/awt/Toolkit.java (createWindow): Declare.
2601 * java/awt/Frame.java (addNotify): Use getToolkit to find
2604 * java/awt/Component.java (invalidate): Wrote.
2606 (getToolkit): Wrote.
2608 * java/awt/Container.java (addContainerListener): Removed
2610 (removeContainerListener): Likewise.
2612 (add(Component)): Use it.
2613 (add(String,Component)): Likewise.
2614 (add(Component,int)): Likewise.
2615 (add(Component,Object)): Likewise.
2616 (add(Component,Object,int)): Likewise.
2618 (getAlignmentX): Wrote.
2619 (getAlignmentY): Wrote.
2620 (getComponentAt): Wrote.
2621 (getMaximumSize): Wrote.
2622 (invalidate): Wrote.
2623 (list(PrintStream,int)): Wrote.
2624 (list(PrintWriter,int)): Wrote.
2625 (getMinimumSize): Wrote.
2626 (getPreferredSize): Wrote.
2627 (printComponents): Wrote.
2628 (processContainerEvent): Look at containerListener, not
2630 (remove): Added event processing and peer destruction.
2631 (removeAll): Use remove.
2632 (removeNotify): Wrote.
2634 (validateTree): Wrote.
2636 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2637 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2638 * java/awt/Container.java (addNotify): Don't create Container
2640 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2642 2000-07-30 Tom Tromey <tromey@cygnus.com>
2644 * java/awt/Container.java (remove(int)): Wrote.
2645 (remove(Component)): Wrote.
2646 (add(Component)): Wrote.
2647 (add(Component,int)): Wrote.
2649 (addNotify): Set our own peer.
2650 * java/awt/Scrollbar.java (listeners): Changed type.
2651 (Scrollbar): Don't initialize listeners.
2653 (setValue): Call setValues.
2654 (setMinimum): Likewise.
2655 (setMaxPriority): Likewise.
2656 (setVisibleAmount): Likewise.
2658 (setUnitIncrement): Forward to peer.
2659 (setLineIncrement): Call setUnitIncrement.
2660 (setPageIncrement): Call setBlockIncrement.
2661 (setBlockIncrement): Forward to peer.
2662 (addAdjustmentListener): Rewrote.
2663 (removeAdjustmentListener): Rewrote.
2664 (processAdjustmentEvent): Rewrote.
2665 (paramString): Wrote.
2666 * Makefile.in: Rebuilt.
2667 * Makefile.am (awt_java_source_files): Added Button.java.
2668 * java/awt/Button.java: New file.
2669 * java/awt/Toolkit.java (createLabel): Declare.
2670 (createButton): Likewise.
2671 (createScrollbar): Likewise.
2672 (createContainer): Likewise.
2673 * java/awt/Label.java (addNotify): Wrote.
2674 (setAlignment): Call setAlignment in the peer.
2675 (setText): Call setText in the peer.
2677 2000-07-28 Warren Levy <warrenl@cygnus.com>
2679 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2680 NotSerializableException with just the class name.
2682 2000-07-26 Andrew Haley <aph@cygnus.com>
2684 * interpret.cc (continue1): Insert missing break into switch.
2686 2000-07-28 Warren Levy <warrenl@cygnus.com>
2688 * java/io/ObjectStreamException.java: Made constructors protected.
2690 2000-07-27 Tom Tromey <tromey@cygnus.com>
2692 * java/io/OutputStreamWriter.java (close): Only flush if not
2695 2000-07-27 Warren Levy <warrenl@cygnus.com>
2697 * mauve-libgcj: Activated serialization tests.
2698 * gcj/field.h (getModifiers): Mask off unknown flags.
2699 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2700 spurious bits don't cause discrepancies.
2701 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2702 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2703 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2704 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2705 * java/lang/Throwable.java (serialVersionUID): New field.
2706 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2707 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2709 * java/lang/reflect/natMethod.cc: Ditto.
2710 * java/security/Key.java (serialVersionUID): Removed field for now.
2711 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2712 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2714 2000-07-22 Tom Tromey <tromey@cygnus.com>
2716 * java/awt/geom/RectangularShape.java (getPathIterator):
2719 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2721 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2722 stub libjava/java/awt/ColorModel.java which was located in the
2724 * libjava/java/awt/image/ComponentColorModel.java: New file.
2725 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2726 * libjava/java/awt/image/DataBuffer.java: New file.
2727 * libjava/java/awt/image/DataBufferByte.java: New file.
2728 * libjava/java/awt/image/DataBufferInt.java: New file.
2729 * libjava/java/awt/image/DataBufferUShort.java: New file.
2730 * libjava/java/awt/image/DirectColorModel.java: New file.
2731 * libjava/java/awt/image/PackedColorModel.java: New file.
2732 * libjava/java/awt/image/Raster.java: New file.
2733 * libjava/java/awt/image/SampleModel.java: New file.
2734 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2736 * libjava/java/awt/image/IndexColorModel.java: New file.
2737 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2738 java.awt.ColorModel stub.
2740 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2741 * gnu/gcj/util/Buffers.java: New file, utility class.
2743 * libjava/Makefile.am: Updated to include new files.
2744 * libjava/Makefile.in: Rebuilt.
2746 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2748 * java/io/StreamTokenizer.java: Merged with classpath.
2750 2000-07-20 Tom Tromey <tromey@cygnus.com>
2752 * Makefile.in: Rebuilt.
2753 * Makefile.am (awt_java_source_files): Updated for new files.
2754 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2755 * java/awt/Label.java: New file.
2756 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2757 (createIntersection, createUnion, getBounds2D): New methods.
2758 * java/awt/Scrollbar.java: New file.
2759 * java/awt/Shape.java: Updated to 1.2.
2760 * java/awt/geom/AffineTransform.java: New file.
2761 * java/awt/geom/Ellipse2D.java: New file.
2762 * java/awt/geom/NoninvertibleTransformException.java: New file.
2763 * java/awt/geom/PathIterator.java: New file.
2764 * java/awt/geom/Rectangle2D.java: New file.
2765 * java/awt/geom/RectangularShape.java: New file.
2766 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2767 * java/awt/geom/IllegalPathStateException.java: New file.
2769 * scripts/showval.java: New file.
2771 * scripts/classes.pl (scan): Print inner classes properly.
2772 * gcj/javaprims.h: Updated class list.
2774 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2775 initialize String fields for interpreted classes. Fixes bug
2776 reported by Hans Boehm.
2778 * java/io/File.java (getParentFile): New method, from Classpath
2779 via Oskar Liljeblad.
2781 * java/util/Vector.java (remove(Object)): Implemented.
2783 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2785 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2786 zero return from backtrace().
2788 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2790 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2792 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2793 before calling notifyAll().
2795 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2797 Add missing files from last check-in:
2798 * java/awt/image/ImageConsumer.java: New file.
2799 * java/awt/image/ImageProducer.java: New file.
2800 * java/awt/image/ImageObserver.java: New file.
2802 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2804 Merged implementation of java.applet from classpath:
2805 * java/applet/Applet.java: New file.
2806 * java/applet/AppletContext.java: New file.
2807 * java/applet/AppletStub.java: New file.
2808 * java/applet/AudioClip.java: New file.
2810 * Makefile.am: Added new java.applet classes.
2811 * Makefile.in: Rebuilt.
2813 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2816 * java/util/ResourceBundle.java (getLocale): stub.
2817 * Makefile.am: Added new AWT classes.
2818 * Makefile.in: Rebuilt.
2819 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2820 constructors. Fix toString() and paramString().
2821 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2822 * java/awt/CheckboxGroup.java: New class.
2823 * java/awt/ColorModel.java: New class.
2824 * java/awt/Component.java: Added stubs for most methods. Implemented
2826 * java/awt/Container.java: ditto.
2827 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2828 * java/awt/Cursor.java: ditto.
2829 * java/awt/Event.java: Fix paramString().
2830 * java/awt/EventQueue.java: New class. Implemented.
2831 * java/awt/Font.java: Added additional stub methods. Implemented
2833 * java/awt/FontMetrics.java: New class. Stubbed.
2834 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2836 * java/awt/Insets.java: New class. Implemented.
2837 * java/awt/Menu.java: Add new methods. Partially implemented.
2838 * java/awt/MenuItem.java: Add new methods and fields. Partially
2840 * java/awt/MenuShortcut.java: New class. Implemented.
2841 * java/awt/Panel.java: New class. Placeholder.
2842 * java/awt/PopupMenu.java: New class. Stubbed.
2843 * java/awt/Rectangle.java: New class. Implemented.
2844 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2845 * java/awt/event/ActionEvent.java: Implement paramString().
2846 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2847 * java/awt/event/ComponentEvent.java: Implement paramString().
2848 * java/awt/event/ContainerEvent.java: Implement paramString().
2849 * java/awt/event/FocusEvent.java: Implement paramString().
2850 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2851 * java/awt/event/HierarchyBoundsListener.java: New class.
2852 * java/awt/event/HierarchyEvent.java: New class.
2853 * java/awt/event/HierarchyListener.java: New class.
2854 * java/awt/event/InputMethodEvent.java: Implement paramString().
2855 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2856 exception if !catchExceptions.
2857 * java/awt/event/ItemEvent.java: Implement paramString().
2858 * java/awt/event/KeyEvent.java: Implement paramString().
2859 * java/awt/event/MouseEvent.java: Implement paramString().
2860 * java/awt/event/PaintEvent.java: Implement paramString().
2861 * java/awt/event/TextEvent.java: Implement paramString().
2862 * java/awt/event/WindowEvent.java: Implement paramString().
2864 AWT Peer interfaces:
2865 * java/awt/peer/ButtonPeer.java: New file.
2866 * java/awt/peer/ListPeer.java: New file.
2867 * java/awt/peer/CanvasPeer.java: New file.
2868 * java/awt/peer/MenuBarPeer.java: New file.
2869 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2870 * java/awt/peer/MenuComponentPeer.java: New file.
2871 * java/awt/peer/CheckboxPeer.java: New file.
2872 * java/awt/peer/MenuItemPeer.java: New file.
2873 * java/awt/peer/ChoicePeer.java: New file.
2874 * java/awt/peer/MenuPeer.java: New file.
2875 * java/awt/peer/ComponentPeer.java: Implemented.
2876 * java/awt/peer/PanelPeer.java: New file.
2877 * java/awt/peer/ContainerPeer.java: Implemented.
2878 * java/awt/peer/PopupMenuPeer.java: New file.
2879 * java/awt/peer/DialogPeer.java: New file.
2880 * java/awt/peer/ScrollPanePeer.java: New file.
2881 * java/awt/peer/FileDialogPeer.java: New file.
2882 * java/awt/peer/ScrollbarPeer.java: New file.
2883 * java/awt/peer/FontPeer.java: New file.
2884 * java/awt/peer/TextAreaPeer.java: New file.
2885 * java/awt/peer/FramePeer.java: Implemented.
2886 * java/awt/peer/TextComponentPeer.java: New file.
2887 * java/awt/peer/LabelPeer.java: New file.
2888 * java/awt/peer/TextFieldPeer.java: New file.
2889 * java/awt/peer/LightweightPeer.java: New file.
2890 * java/awt/peer/WindowPeer.java: Implemented.
2892 2000-07-06 Tom Tromey <tromey@cygnus.com>
2894 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2895 Initialize static final String fields.
2897 2000-07-03 Tom Tromey <tromey@cygnus.com>
2899 * java/io/PrintWriter.java (print): Call write(String), not
2900 print(String). See PR libgcj/277.
2901 (print(String)): Use write, not out.write.
2903 2000-06-30 Tom Tromey <tromey@cygnus.com>
2905 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2907 2000-06-27 Andrew Haley <aph@cygnus.com>
2909 * java/io/File.java (createTempFile): Close the FileDescriptor
2910 used to create a temp file. Fixes some of PR 203.
2911 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2912 collection if we run out of file handles.
2914 2000-06-28 Warren Levy <warrenl@cygnus.com>
2916 * gnu/java/security/provider/Gnu.java: New file.
2917 * gnu/java/security/provider/SHA.java: New file.
2918 * gnu/java/security/provider/SHA1PRNG.java: New file.
2919 * Makefile.am: Added the above files.
2920 * Makefile.in: Rebuilt.
2922 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2924 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2926 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2927 (destroyed_flag): Removed.
2928 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2929 (activeCount): Added spec note.
2931 2000-06-27 Warren Levy <warrenl@cygnus.com>
2933 * java/security/Principal.java: New file.
2934 * Makefile.am: Added Principal.java.
2935 * Makefile.in: Rebuilt.
2937 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2939 * java/awt/event/MouseEvent.java: Fixed coordinate space
2942 2000-06-27 Tom Tromey <tromey@cygnus.com>
2944 * java/io/PushbackInputStream.java (read): If there are characters
2945 in the buffer, don't also call super.read().
2946 * java/io/PushbackReader.java (read): If there are characters in
2947 the buffer, don't also call super.read().
2949 * java/lang/Double.java (valueOf): Call parseDouble().
2951 2000-06-26 Warren Levy <warrenl@cygnus.com>
2953 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2954 (newVal): Renamed to newValue.
2955 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2956 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2957 (revokeNow): Renamed to invalidateRefs.
2958 * java/io/OptionalDataException.java: Updated FIXME.
2959 (eof): New placeholder field.
2961 * java/io/WriteAbortedException.java (message): Made transient.
2962 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2963 * java/lang/Throwable.java (stackTrace): Made transient.
2964 * java/net/InetAddress.java: Made Serializable.
2965 * java/security/KeyPair.java: Made Serializable.
2966 * java/security/Provider.java: Replaced with Classpath version that
2967 implements serialization and proper methods.
2968 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2969 (limits): Renamed to choiceLimits.
2971 2000-06-24 Tom Tromey <tromey@cygnus.com>
2973 * java/lang/natDouble.cc (parseDouble): Renamed from
2975 * java/lang/Double.java (parseDouble): Renamed from
2976 doubleValueOf. Now public.
2978 2000-06-23 Andrew Haley <aph@cygnus.com>
2980 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
2981 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
2983 2000-06-23 Tom Tromey <tromey@cygnus.com>
2985 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
2986 * java/lang/natDouble.cc: Always include <alloca.h>.
2987 Fix for PR libgcj/267.
2989 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
2991 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
2992 comply with classpath VM spec.
2993 (add(Group)): Rename to addGroup().
2994 * java/lang/Thread.java (Thread): Use addThread().
2995 * java/lang/natThread.cc (finish_): Use removeThread().
2997 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
2999 * java/lang/ThreadGroup.java: Merged with classpath.
3000 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3001 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3003 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3004 ThreadGroup.root if Thread.currentThread is null. Honour the
3005 ThreadGroup's max priority setting.
3007 2000-06-18 Tom Tromey <tromey@cygnus.com>
3009 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3010 returned class. For PR gcj/260.
3012 2000-06-16 Tom Tromey <tromey@cygnus.com>
3014 Fix for PR libgcj/261:
3015 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3017 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3018 argument. (This is a patch from long ago that somehow went
3021 2000-06-15 Tom Tromey <tromey@cygnus.com>
3023 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3027 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3029 Fix for PR java.lang/258:
3030 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3031 JV_STATE_DONE, to prevent accidental initialization.
3032 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3033 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3034 interface or an abstract class. Remove redundant initializeClass calls.
3035 Remove duplicate if_idt test.
3036 (_Jv_InterfaceAssignableFrom): New function.
3037 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3039 2000-05-31 Tom Tromey <tromey@cygnus.com>
3041 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3042 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3043 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3044 (NUM_OBJECT_METHODS): New define.
3045 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3046 `array_vtable' parameter. Added assertion.
3047 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3050 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3052 * gcj/cni.h: Include <string.h>.
3053 * defineclass.cc: Include <alloca.h>.
3054 * interpret.cc: Ditto.
3055 * gij.cc: Include <stdlib.h>.
3057 2000-05-30 Tom Tromey <tromey@cygnus.com>
3059 * include/name-finder.h: Include <sys/wait.h>.
3060 (_Jv_name_finder::pid): Now of type `pid_t'.
3061 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3062 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3065 2000-05-24 Warren Levy <warrenl@cygnus.com>
3067 * java/io/ObjectOutputStream.java (writeObject): Use component type
3068 when writing arrays.
3071 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3073 Fix for PR libgcj/226:
3074 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3075 since this is an installed header.
3077 Fix for PR libgcj/228:
3078 * java/util/zip/ZipFile (getInputStream): Create inflater with
3081 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3082 with DataFormatException.
3084 2000-05-20 Tom Tromey <tromey@cygnus.com>
3086 * Makefile.in: Rebuilt.
3087 * Makefile.am (hack1): Removed.
3088 (awto_files): Likewise.
3089 (libgcjawt_la_SOURCES): Likewise.
3090 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3091 (libgcjawt_la_DEPENDENCIES): Likewise.
3092 (libgcjawt_la_LIBADD): Likewise.
3093 (libgcjawt_la_LDFLAGS): Likewise.
3094 (libgcjawt_la_LINK): Likewise.
3095 ($(awt_java_source_files:.java=.class)): Likewise.
3096 (libgcj.zip): Don't depend on AWT files.
3097 (MOSTLYCLEANFILES): Don't include AWT files.
3098 ($(awto_files)): Removed.
3099 (nat_headers): Removed AWT files.
3100 (cond_awt_java_source_files): Removed.
3101 (ordinary_java_source_files): Added awt_java_source_files.
3102 * libgcj.spec.in (*lib): Removed -lgcjawt.
3103 * configure: Rebuilt.
3104 * configure.in: Removed --enable-java-awt option.
3106 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3108 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3109 (ZipEntry): Copy the `name' field.
3110 (clone): Implement JDK1.2 method.
3111 (setCompressedSize): ditto.
3114 2000-05-19 Tom Tromey <tromey@cygnus.com>
3116 * java/io/BufferedWriter.java: Merged with Classpath.
3117 * java/io/BufferedOutputStream.java: Merged with Classpath.
3119 2000-05-16 Andrew Haley <aph@cygnus.com>
3121 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3122 build_ia64_frame_state.
3123 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3126 2000-05-15 Warren Levy <warrenl@cygnus.com>
3128 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3129 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3130 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3131 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3132 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3133 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3134 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3135 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3136 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3137 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3138 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3139 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3140 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3141 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3142 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3143 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3144 * gnu/gcj/io/NullOutputStream.java: Removed.
3145 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3146 * gnu/gcj/lang/ArrayHelper.java: Removed.
3147 * gnu/gcj/lang/ClassHelper.java: Removed.
3148 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3150 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3151 * gnu/java/beans/EmptyBeanInfo.java: New file.
3152 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3153 * gnu/java/beans/IntrospectionIncubator.java: New file.
3154 * gnu/java/beans/editors/ColorEditor.java: New file.
3155 * gnu/java/beans/editors/FontEditor.java: New file.
3156 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3157 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3158 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3159 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3160 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3161 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3162 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3163 * gnu/java/beans/editors/StringEditor.java: New file.
3164 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3165 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3166 * gnu/java/io/NullOutputStream.java: New file.
3167 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3168 * gnu/java/lang/ArrayHelper.java: New file.
3169 * gnu/java/lang/ClassHelper.java: New file.
3170 * gnu/java/lang/reflect/TypeSignature.java: New file.
3172 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3173 namespace back to the original Classpath gnu/java namespace.
3174 * Makefile.in: Rebuilt.
3176 * java/beans/Beans.java: Namespace change.
3177 * java/beans/EventSetDescriptor.java: Namespace change.
3178 * java/beans/Introspector.java: Namespace change.
3179 * java/beans/PropertyEditorManager.java: Namespace change.
3180 * java/io/ObjectInputStream.java: Namespace change.
3181 * java/io/ObjectOutputStream.java: Namespace change.
3182 * java/io/ObjectStreamClass.java: Namespace change.
3183 * java/io/ObjectStreamField.java: Namespace change.
3185 2000-04-21 Warren Levy <warrenl@cygnus.com>
3187 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3188 now that compiler patch is available.
3189 Removed unneeded System.loadLibrary.
3190 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3191 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3193 2000-04-19 Andrew Haley <aph@cygnus.com>
3195 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3196 and target classes have been initialized.
3198 2000-04-19 Andrew Haley <aph@cygnus.com>
3200 * java/lang/String.java: implement Serializable, Comparable.
3201 (compareTo (Object)): New method.
3203 2000-04-19 Warren Levy <warrenl@cygnus.com>
3205 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3206 instead of getField to retrieve non-public field.
3207 (getSerialPersistantFields): Ditto.
3209 2000-04-18 Warren Levy <warrenl@cygnus.com>
3211 * mauve-libgcj: Turned off object serialization tests temporarily
3212 due to compiler error.
3214 2000-04-17 Warren Levy <warrenl@cygnus.com>
3216 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3217 to avoid build problem.
3219 * mauve-libgcj: Turned on object serialization tests.
3221 2000-04-17 Tom Tromey <tromey@cygnus.com>
3223 * libgcj.spec.in (*lib): Added -lgcjawt.
3225 2000-04-17 Andrew Haley <aph@cygnus.com>
3227 * Makefile.am: Add new files:
3228 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3230 * Makefile.in: Rebuilt.
3232 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3233 interface that has no implementations.
3234 Check for an attempt to assign an abstract class to an interface.
3236 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3237 if we fail to find MessageDigest.getInstance ("SHA").
3239 * gnu/gcj/io/SimpleSHSStream.java: New file.
3240 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3241 * gnu/gcj/io/shs.cc: New file.
3242 * gnu/gcj/io/shs.h: new file.
3244 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3247 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3248 punctuation from the classname of an array element.
3250 * gcj/javaprims.h: Add SimpleDigestStream.
3252 2000-04-17 Andrew Haley <aph@cygnus.com>
3254 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3255 to getPrivateField for superclasses.
3257 2000-04-14 Andrew Haley <aph@cygnus.com>
3259 * Makefile.am: Add new files:
3260 java/io/ObjectOutputStream$PutField.h,
3261 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3262 java/io/natObjectOutputStream.cc
3263 * Makefile.in: Rebuilt.
3264 * gcj/Makefile.in: Rebuilt.
3265 * include/Makefile.in: Rebuilt.
3266 * java/lang/Class.h (getPrivateField): New method.
3267 (getPrivateMethod): Ditto.
3268 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3269 and java::io::ObjectStreamClass our friends.
3270 * java/lang/natClass.cc (getPrivateField): New method.
3271 (getPrivateMethod): Ditto.
3272 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3273 * gcj/javaprims.h: Add serialization classes.
3274 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3275 (setByteField): Ditto.
3276 (setCharField): Ditto.
3277 (setDoubleField): Ditto.
3278 (setFloatField): Ditto.
3279 (setIntField): Ditto.
3280 (setLongField): Ditto.
3281 (setShortField): Ditto.
3282 (setObjectField): Ditto.
3283 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3285 (getByteField): Ditto.
3286 (getCharField): Ditto.
3287 (getDoubleField): Ditto.
3288 (getFloatField): Ditto.
3289 (getIntField): Ditto.
3290 (getLongField): Ditto.
3291 (getShortField): Ditto.
3292 (getObjectField): Ditto.
3293 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3295 (getSerialPersistantFields): Ditto.
3296 (getDefinedSUID): Ditto.
3297 * java/io/natObjectOutputStream.cc: New file.
3298 * java/io/natObjectInputStream.cc: New file.
3300 2000-04-13 Warren Levy <warrenl@cygnus.com>
3302 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3303 problems. Revert to previous version to reproduce and when fixed.
3305 2000-04-13 Warren Levy <warrenl@cygnus.com>
3307 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3308 * gnu/gcj/io/NullOutputStream.java: New file.
3309 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3310 * java/io/BlockDataException.java: New file.
3311 * java/io/Externalizable.java: New file.
3312 * java/io/InvalidClassException.java: New file.
3313 * java/io/InvalidObjectException.java: New file.
3314 * java/io/NotActiveException.java: New file.
3315 * java/io/NotSerializableException.java: New file.
3316 * java/io/ObjectInput.java: New file.
3317 * java/io/ObjectInputStream.java: New file.
3318 * java/io/ObjectInputValidation.java: New file.
3319 * java/io/ObjectOutput.java: New file.
3320 * java/io/ObjectOutputStream.java: New file.
3321 * java/io/ObjectStreamClass.java: New file.
3322 * java/io/ObjectStreamConstants.java: New file.
3323 * java/io/ObjectStreamField.java: New file.
3324 * java/io/Replaceable.java: New file.
3325 * java/io/Resolvable.java: New file.
3326 * java/io/SerializablePermission.java: New file.
3327 * java/io/WriteAbortedException.java: New file.
3328 * java/security/BasicPermission.java: New file.
3329 * java/security/DigestOutputStream.java: New file.
3330 * java/security/Guard.java: New file.
3331 * java/security/Permission.java: New file.
3332 * java/security/PermissionCollection.java: New file.
3333 * Makefile.am: Added above files.
3334 * Makefile.in: Rebuilt.
3336 * java/beans/Beans.java (instantiate): Activated serialization code.
3337 * java/lang/SecurityManager.java (checkPermission): New method.
3339 2000-04-12 Warren Levy <warrenl@cygnus.com>
3341 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3342 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3343 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3344 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3345 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3346 * gnu/gcj/beans/editors/FontEditor.java: New file.
3347 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3348 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3349 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3350 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3351 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3352 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3353 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3354 * gnu/gcj/beans/editors/StringEditor.java: New file.
3355 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3356 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3357 * gnu/gcj/lang/ArrayHelper.java: New file.
3358 * gnu/gcj/lang/ClassHelper.java: New file.
3359 * java/beans/BeanDescriptor.java: New file.
3360 * java/beans/BeanInfo.java: New file.
3361 * java/beans/Beans.java: New file.
3362 * java/beans/Customizer.java: New file.
3363 * java/beans/DesignMode.java: New file.
3364 * java/beans/EventSetDescriptor.java: New file.
3365 * java/beans/FeatureDescriptor.java: New file.
3366 * java/beans/IndexedPropertyDescriptor.java: New file.
3367 * java/beans/IntrospectionException.java: New file.
3368 * java/beans/Introspector.java: New file.
3369 * java/beans/MethodDescriptor.java: New file.
3370 * java/beans/ParameterDescriptor.java: New file.
3371 * java/beans/PropertyChangeEvent.java: New file.
3372 * java/beans/PropertyChangeListener.java: New file.
3373 * java/beans/PropertyChangeSupport.java: New file.
3374 * java/beans/PropertyDescriptor.java: New file.
3375 * java/beans/PropertyEditor.java: New file.
3376 * java/beans/PropertyEditorManager.java: New file.
3377 * java/beans/PropertyEditorSupport.java: New file.
3378 * java/beans/PropertyVetoException.java: New file.
3379 * java/beans/SimpleBeanInfo.java: New file.
3380 * java/beans/VetoableChangeListener.java: New file.
3381 * java/beans/VetoableChangeSupport.java: New file.
3382 * java/beans/Visibility.java: New file.
3383 * java/beans/beancontext/BeanContext.java: New file.
3384 * java/beans/beancontext/BeanContextChild.java: New file.
3385 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3386 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3387 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3388 * java/beans/beancontext/BeanContextEvent.java: New file.
3389 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3390 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3391 * java/beans/beancontext/BeanContextProxy.java: New file.
3392 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3394 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3395 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3397 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3398 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3400 * java/beans/beancontext/BeanContextServices.java: New file.
3401 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3402 * java/util/AbstractCollection.java: New file.
3403 * java/util/AbstractList.java: New file.
3404 * java/util/Arrays.java: New file.
3405 * Makefile.am: Added above files.
3406 * Makefile.in: Rebuilt.
3408 2000-04-11 Warren Levy <warrenl@cygnus.com>
3410 * java/awt/AWTError.java: New file.
3411 * java/awt/AWTEvent.java: New file.
3412 * java/awt/AWTException.java: New file.
3413 * java/awt/ActiveEvent.java: New file.
3414 * java/awt/Adjustable.java: New file.
3415 * java/awt/BorderLayout.java: New file.
3416 * java/awt/Color.java: New file.
3417 * java/awt/Component.java: New file.
3418 * java/awt/Container.java: New file.
3419 * java/awt/Dimension.java: New file.
3420 * java/awt/Event.java: New file.
3421 * java/awt/Font.java: New file.
3422 * java/awt/Frame.java: New file.
3423 * java/awt/Graphics.java: New file.
3424 * java/awt/IllegalComponentStateException.java: New file.
3425 * java/awt/Image.java: New file.
3426 * java/awt/ItemSelectable.java: New file.
3427 * java/awt/LayoutManager.java: New file.
3428 * java/awt/LayoutManager2.java: New file.
3429 * java/awt/Menu.java: New file.
3430 * java/awt/MenuBar.java: New file.
3431 * java/awt/MenuComponent.java: New file.
3432 * java/awt/MenuContainer.java: New file.
3433 * java/awt/MenuItem.java: New file.
3434 * java/awt/Paint.java: New file.
3435 * java/awt/PaintContext.java: New file.
3436 * java/awt/Point.java: New file.
3437 * java/awt/Rectangle.java: New file.
3438 * java/awt/Shape.java: New file.
3439 * java/awt/TextArea.java: New file.
3440 * java/awt/TextComponent.java: New file.
3441 * java/awt/Toolkit.java: New file.
3442 * java/awt/Transparency.java: New file.
3443 * java/awt/Window.java: New file.
3444 * java/awt/natToolkit.cc: New file.
3445 * java/awt/event/AWTEventListener.java: New file.
3446 * java/awt/event/ActionEvent.java: New file.
3447 * java/awt/event/ActionListener.java: New file.
3448 * java/awt/event/AdjustmentEvent.java: New file.
3449 * java/awt/event/AdjustmentListener.java: New file.
3450 * java/awt/event/ComponentAdapter.java: New file.
3451 * java/awt/event/ComponentEvent.java: New file.
3452 * java/awt/event/ComponentListener.java: New file.
3453 * java/awt/event/ContainerAdapter.java: New file.
3454 * java/awt/event/ContainerEvent.java: New file.
3455 * java/awt/event/ContainerListener.java: New file.
3456 * java/awt/event/FocusAdapter.java: New file.
3457 * java/awt/event/FocusEvent.java: New file.
3458 * java/awt/event/FocusListener.java: New file.
3459 * java/awt/event/InputEvent.java: New file.
3460 * java/awt/event/InputMethodEvent.java: New file.
3461 * java/awt/event/InputMethodListener.java: New file.
3462 * java/awt/event/InvocationEvent.java: New file.
3463 * java/awt/event/ItemEvent.java: New file.
3464 * java/awt/event/ItemListener.java: New file.
3465 * java/awt/event/KeyAdapter.java: New file.
3466 * java/awt/event/KeyEvent.java: New file.
3467 * java/awt/event/KeyListener.java: New file.
3468 * java/awt/event/MouseAdapter.java: New file.
3469 * java/awt/event/MouseEvent.java: New file.
3470 * java/awt/event/MouseListener.java: New file.
3471 * java/awt/event/MouseMotionAdapter.java: New file.
3472 * java/awt/event/MouseMotionListener.java: New file.
3473 * java/awt/event/PaintEvent.java: New file.
3474 * java/awt/event/TextEvent.java: New file.
3475 * java/awt/event/TextListener.java: New file.
3476 * java/awt/event/WindowAdapter.java: New file.
3477 * java/awt/event/WindowEvent.java: New file.
3478 * java/awt/event/WindowListener.java: New file.
3479 * java/awt/geom/Dimension2D.java: New file.
3480 * java/awt/geom/Point2D.java: New file.
3481 * java/awt/peer/ComponentPeer.java: New file.
3482 * java/awt/peer/ContainerPeer.java: New file.
3483 * java/awt/peer/FramePeer.java: New file.
3484 * java/awt/peer/WindowPeer.java: New file.
3485 * java/util/Collection.java: New file.
3486 * java/util/Comparator.java: New file.
3487 * java/util/Iterator.java: New file.
3488 * java/util/List.java: New file.
3489 * java/util/ListIterator.java: New file.
3490 * Makefile.am: Added above files.
3491 * Makefile.in: Rebuilt.
3493 2000-04-10 Warren Levy <warrenl@cygnus.com>
3495 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3496 * java/lang/FirstThread.java: Ditto.
3497 * java/lang/StringBuffer.java: Ditto.
3498 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3500 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3501 Special case handled in java.math.BigInteger.
3502 * java/math/BigInteger.java (divide): Handle the special case when
3503 dividing by 1 and the high bit of the dividend is set.
3504 (setShiftRight): Handle case when count == 0.
3506 2000-04-05 Andrew Haley <aph@cygnus.com>
3508 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3511 2000-04-05 Andrew Haley <aph@cygnus.com>
3513 * sysdep/ia64.c (rse_address_add): Delete.
3514 (IS_NaT_COLLECTION_ADDR): Delete.
3515 (ia64_backtrace_helper): check for null unwind_info.
3517 * sysdep/ia64-frame.h: add calc_caller_bsp.
3519 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3522 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3523 (_Jv_remI): Likewise.
3524 (_Jv_divJ): Likewise.
3525 (_Jv_remJ): Likewise.
3527 * interpret.cc (continue1): Use divide subroutines to guarantee
3528 correct Java standard behaviour.
3529 Floating-point division should not abort; make it so.
3531 2000-03-29 Tom Tromey <tromey@cygnus.com>
3533 * configure: Rebuilt.
3534 * configure.in: Test against `libgcj_sjlj', not
3535 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3536 to be set even when using sjlj.
3538 2000-03-24 Andrew Haley <aph@cygnus.com>
3540 * Makefile.am: Add file addr2name.awk.
3541 * Makefile.in: Rebuilt.
3542 * addr2name.awk: New file.
3543 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3545 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3548 2000-03-22 Andrew Haley <aph@cygnus.com>
3550 * configure.host: Add -funwind-tables for IA64.
3551 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3552 * Makefile.in: Rebuilt.
3553 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3554 * sysdep/ia64.c: New file.
3555 * sysdep/ia64-frame.h: New file.
3556 * configure.in: Add sysdep/ia64.c for ia64.
3557 * configure: Rebuilt.
3559 2000-03-17 Andrew Haley <aph@cygnus.com>
3561 * java/lang/natString.cc: Remove `register' keyword.
3562 interpret.cc: ditto.
3564 2000-03-16 Andrew Haley <aph@cygnus.com>
3566 * configure.host (ia64): Enable interpreter.
3568 2000-03-14 Hans Boehm <boehm@acm.org>
3570 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3572 2000-03-14 Andrew Haley <aph@cygnus.com>
3574 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3577 2000-03-10 Andrew Haley <aph@cygnus.com>
3579 * java/lang/ieeefp.h: Import latest version from fdlibm.
3581 2000-03-14 Andrew Haley <aph@cygnus.com>
3583 * prims.cc (_Jv_ThrowSignal): New function.
3584 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3586 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3587 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3588 * include/ppc-signal.h: New file.
3590 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3592 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3593 * java/lang/natThread.java (initialize_native): Cast `data' to
3595 * gnu/gcj/RawData.java: Clarify documentation.
3597 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3598 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3599 `jarFile', not `jarFileURL'.
3601 2000-05-15 Andrew Haley <aph@cygnus.com>
3603 * include/ppc-signal.h: New file.
3605 2000-05-11 Tom Tromey <tromey@cygnus.com>
3607 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3608 file headers, don't include `size' in the skip call.
3610 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3612 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3613 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3615 (replace): Reimplemented. Fix javadoc.
3616 (reverse): Call ensureCapacity_unsynchronized().
3617 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3619 (replace): Calculate length for arraycopy() correctly.
3621 2000-05-09 Tom Tromey <tromey@cygnus.com>
3623 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3625 (insert(int,char[],int,int): New method.
3626 (delete): New method from Classpath.
3627 (deleteCharAt): Likewise.
3628 (substring): Likewise.
3629 (shared): No longer private.
3630 Added JavaDoc comments from Classpath.
3631 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3634 2000-05-07 Tom Tromey <tromey@cygnus.com>
3636 * Makefile.in: Rebuilt.
3637 * Makefile.am (LIBLINK): New macro.
3638 (libgcj_la_LINK): Use it.
3639 (libgcjawt_la_LINK): Likewise.
3641 2000-05-06 Tom Tromey <tromey@cygnus.com>
3643 * Makefile.in: Rebuilt.
3644 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3646 2000-05-05 Tom Tromey <tromey@cygnus.com>
3648 Fix for PR libgcj/220:
3649 * Makefile.in: Rebuilt.
3650 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3651 (jv_convert_LDFLAGS): Likewise.
3652 (libgcj_la_LDFLAGS): Likewise.
3653 (GCJLINK): New macro.
3654 (jv_convert_LINK): Use it.
3655 (gij_LINK): Likewise.
3656 (libgcj_la_LINK): New macro.
3657 (libgcjawt_la_LINK): Likewise.
3659 2000-05-04 Tom Tromey <tromey@cygnus.com>
3661 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3663 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3667 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3669 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3670 (_Jv_IsAssignableFrom): Ditto.
3671 (_Jv_IsInstanceOf): Ditto.
3672 (_Jv_CheckCast): Ditto.
3673 (_Jv_CheckArrayStore): Ditto.
3674 * java/lang/Class.h (_Jv_InitClass): Ditto.
3675 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3680 (_Jv_MonitorExit): Ditto.
3681 * boehm.cc (_Jv_MarkObj): Ditto.
3682 (_Jv_MarkObj): Ditto.
3683 (_Jv_MarkArray): Ditto.
3684 * prims.cc (_Jv_AllocObject): Ditto.
3685 (_Jv_NewObjectArray): Ditto.
3686 (_Jv_NewPrimArray): Ditto.
3687 (_Jv_Malloc): Ditto.
3688 (_Jv_Realloc): Ditto.
3689 (_Jv_MallocUnchecked): Ditto.
3695 2000-05-04 Tom Tromey <tromey@cygnus.com>
3697 * java/util/Locale.java (Locale): Don't explicitly check for
3699 * java/util/Hashtable.java (containsKey): Don't explicitly check
3702 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3704 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3706 * java/text/StringCharacterIterator.java
3707 (StringCharacterIterator): Don't check for null.
3708 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3710 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3711 check for null pointer.
3712 (leaveGroup): Likewise.
3713 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3715 (setData): Likewise.
3716 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3719 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3721 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3722 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3723 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3724 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3725 -rpath for in-gcc builds.
3726 * Makefile.in: Rebuilt.
3728 2000-04-28 Tom Tromey <tromey@cygnus.com>
3730 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3733 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3735 * libjava/java/lang/String.java (toString): Remove `final' hack.
3737 2000-04-05 Tom Tromey <tromey@cygnus.com>
3739 Runtime support for PR gcj/2:
3740 * prims.cc (_Jv_ThrowNullPointerException): New function.
3741 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3743 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3745 * prims.cc (_Jv_NewObjectArray): Fix typo.
3747 2000-04-26 Tom Tromey <tromey@cygnus.com>
3749 * Makefile.in: Rebuilt.
3750 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3752 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3754 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3757 2000-04-22 Anthony Green <green@cygnus.com>
3759 * include/jvm.h (__builtin_expect): Define as unused for now.
3760 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3764 (_Jv_MonitorExit): Ditto.
3765 * boehm.cc (_Jv_MarkObj): Ditto.
3766 (_Jv_MarkObj): Ditto.
3767 (_Jv_MarkArray): Ditto.
3768 (_Jv_AllocBytes): Ditto.
3769 * prims.cc (_Jv_AllocObject): Ditto.
3770 (_Jv_NewObjectArray): Ditto.
3771 (_Jv_NewPrimArray): Ditto.
3772 (_Jv_Malloc): Ditto.
3773 (_Jv_Realloc): Ditto.
3774 (_Jv_MallocUnchecked): Ditto.
3780 * include/Makefile.in: Rebuilt.
3781 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3783 2000-04-21 Tom Tromey <tromey@cygnus.com>
3785 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3786 Yet another new version from Classpath.
3788 Fix for PR libgcj/15:
3789 * java/util/natGregorianCalendar.cc (_REENTRANT,
3790 _POSIX_PTHREAD_SEMANTICS): Don't define.
3791 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3792 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3794 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3796 * configure: Rebuilt.
3797 * configure.in: If using POSIX threads, define _REENTRANT if
3798 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3799 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3801 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3802 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3803 version from Classpath.
3805 Fix for PR libgcj/213:
3806 * Makefile.in: Rebuilt.
3807 * Makefile.am (gij_SOURCES): Added gij.cc.
3808 (EXTRA_gij_SOURCES): Removed.
3809 (gij_LDADD): Removed gij.lo.
3810 (gij_DEPENDENCIES): Likewise.
3811 ($(gij_OBJECTS)): Depend on nat_headers.
3813 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3814 `setURL', not `url.set'.
3816 2000-04-20 Tom Tromey <tromey@cygnus.com>
3818 Fix for PR java.io/204:
3819 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3820 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3823 Fix for PR libgcj/212:
3824 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3825 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3826 * java/lang/Class.h (_Jv_word): Declare.
3828 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3830 2000-04-19 Tom Tromey <tromey@cygnus.com>
3832 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3833 doesn't have a loader.
3835 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3837 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3838 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3840 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3842 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3844 (available): Initialize `where' to prevent bogus compiler warning.
3846 2000-04-12 Tom Tromey <tromey@cygnus.com>
3848 * java/lang/natString.cc (intern): Temporarily disable finalizer
3851 * java/lang/natString.cc (unintern): Added `obj' argument.
3852 (intern): Register finalizer for string.
3853 * java/lang/String.java (unintern): Now static; added obj
3856 2000-04-11 Tom Tromey <tromey@cygnus.com>
3858 * java/util/Vector.java (VectorEnumeration): Now `final'.
3859 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3860 (HashtableEnumeration): Likewise.
3861 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3862 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3864 2000-04-10 Warren Levy <warrenl@cygnus.com>
3866 * java/io/ObjectStreamException.java: New file.
3867 * java/io/OptionalDataException.java: New file.
3868 * java/io/StreamCorruptedException.java: New file.
3869 * java/math/BigDecimal.java: New file.
3870 * java/sql/CallableStatement.java: New file.
3871 * java/sql/Connection.java: New file.
3872 * java/sql/DataTruncation.java: New file.
3873 * java/sql/DatabaseMetaData.java: New file.
3874 * java/sql/Date.java: New file.
3875 * java/sql/Driver.java: New file.
3876 * java/sql/DriverManager.java: New file.
3877 * java/sql/DriverPropertyInfo.java: New file.
3878 * java/sql/PreparedStatement.java: New file.
3879 * java/sql/ResultSet.java: New file.
3880 * java/sql/ResultSetMetaData.java: New file.
3881 * java/sql/SQLException.java: New file.
3882 * java/sql/SQLWarning.java: New file.
3883 * java/sql/Statement.java: New file.
3884 * java/sql/Time.java: New file.
3885 * java/sql/Timestamp.java: New file.
3886 * java/sql/Types.java: New file.
3887 * Makefile.am: Added above new files.
3888 * Makefile.in: Rebuilt.
3890 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3891 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3892 DatagramSocket constructor instead of null.
3894 2000-04-08 Anthony Green <green@cygnus.com>
3896 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3899 2000-04-08 Anthony Green <green@cygnus.com>
3901 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3902 (_Jv_MutexUnlock): Ditto.
3903 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3904 (_Jv_MutexUnlock): Ditto.
3906 2000-04-08 Anthony Green <green@cygnus.com>
3908 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3909 (ensureCapacity_unsynchronized): New private method.
3910 (append): Use ensureCapacity_unsynchronized.
3912 2000-04-08 Tom Tromey <tromey@cygnus.com>
3914 * Makefile.in: Rebuilt.
3915 * Makefile.am (awt_java_source_files): Added new files.
3916 * java/awt/IllegalComponentStateException.java: New file.
3917 * java/awt/ItemSelectable.java: New file.
3918 * java/awt/event/WindowEvent.java: Finished.
3919 * java/awt/event/TextEvent.java: Finished.
3920 * java/awt/event/ContainerEvent.java: New file.
3921 * java/awt/Component.java (getX, getY): New methods.
3922 * java/awt/event/PaintEvent.java: New file.
3923 * java/awt/event/MouseEvent.java: New file.
3924 * java/awt/ActiveEvent.java: New file.
3925 * java/awt/event/KeyEvent.java: Finished.
3926 * java/awt/event/ItemEvent.java: New file.
3927 * java/awt/Adjustable.java: New file.
3928 * java/awt/event/InputMethodEvent.java: New file.
3929 * java/awt/event/InputEvent.java: Finished.
3930 * java/awt/event/FocusEvent.java: New file.
3931 * java/awt/event/MouseMotionAdapter.java: New file.
3932 * java/awt/event/MouseAdapter.java: New file.
3933 * java/awt/event/KeyAdapter.java: New file.
3934 * java/awt/event/FocusAdapter.java: New file.
3935 * java/awt/event/ContainerAdapter.java: New file.
3936 * java/awt/event/ComponentEvent.java: Finished.
3937 * java/awt/event/AdjustmentEvent.java: New file.
3938 * java/awt/event/ComponentAdapter.java: New file.
3939 * java/awt/event/ActionEvent.java: Finished.
3940 * java/awt/event/MouseMotionListener.java: New file.
3941 * java/awt/event/MouseListener.java: New file.
3942 * java/awt/event/ItemListener.java: New file.
3943 * java/awt/event/InputMethodListener.java: New file.
3944 * java/awt/event/ContainerListener.java: New file.
3945 * java/awt/event/FocusListener.java: New file.
3946 * java/awt/event/ComponentListener.java: New file.
3947 * java/awt/event/AWTEventListener.java: New file.
3948 * java/awt/event/AdjustmentListener.java: New file.
3950 2000-04-08 Anthony Green <green@cygnus.com>
3952 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3953 check when we have to.
3955 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3958 * java/util/StringTokenizer.java: Minor optimization. Eliminates
3961 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3962 inline hasMoreElements.
3964 2000-04-05 Tom Tromey <tromey@cygnus.com>
3966 * configure: Rebuilt.
3967 * configure.in: Recognize --enable-java-awt.
3968 (AWT): New conditional.
3969 * Makefile.in: Rebuilt.
3970 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
3972 (libgcjawt_la_SOURCES): New macro.
3973 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3974 (libgcjawt_la_DEPENDENCIES): Likewise.
3975 (libgcjawt_la_LIBADD): Likewise.
3976 (libgcjawt_la_LDFLAGS): Likewise.
3977 (libgcj.zip): Depend on cond_java_awt_source_files
3978 (cond_awt_java_source_files): New macro.
3979 (MOSTLYCLEANFILES): Added awto_files.
3980 (awto_files): New macro. Use where javao_files used.
3981 (nat_headers): Use cond_awt_java_source_files.
3983 2000-04-04 Tom Tromey <tromey@cygnus.com>
3985 * Makefile.in: Rebuilt.
3986 * Makefile.am (awt_java_source_files): Added AWTException.java.
3987 * java/awt/AWTException.java: New file.
3989 2000-04-03 Tom Tromey <tromey@cygnus.com>
3991 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
3992 commentary from Alex.
3994 * Makefile.in: Rebuilt.
3995 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
3998 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4000 * configure: Rebuilt.
4001 * configure.in: Add --disable-jvmpi.
4002 * include/config.h.in: Rebuilt.
4003 * acconfig.h: Add ENABLE_JVMPI.
4005 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4006 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4007 (_Jv_JVMPI_Notify_THREAD_END): New define.
4008 (_Jv_JVMPI_Notify_THREAD_END): New define.
4009 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4010 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4011 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4013 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4016 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4017 (finish_): Generate JVMPI thread end events.
4018 (run_): Generate JVMPI thread start events.
4019 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4020 preloaded JNI library.
4021 Include JVMPI headers if necessary.
4022 (run): Generate JVMPI thread start events.
4024 * boehm.cc: Define GC_disable and GC_enable.
4025 (_Jv_DisableGC): New function.
4026 (_Jv_EnableGC): New function.
4027 (disable_gc_mutex): Declare.
4028 * nogc.cc (_Jv_DisableGC): New function.
4029 (_Jv_EnableGC): New function.
4031 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4032 (_Jv_JVMPI_Interface): Define.
4033 (jvmpiEnableEvent): New function.
4034 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4036 * include/jvmpi.h: New file.
4038 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4040 * Makefile.in: New #defines and friends for Thread.h.
4041 * Makefile.am: Ditto.
4042 * posix-threads.cc: (struct starter): Remove `object'.
4043 (_Jv_CondWait): Use interruptable condition variables and new
4044 recursive mutexes. New return codes on interrupt or non-ownership
4046 (_Jv_CondNotify): Ditto.
4047 (_Jv_CondNotifyAll): Ditto.
4048 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4049 the target thread by signaling its wait condition.
4050 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4051 not the starter struct. Initialize wait_mutex and wait_cond.
4052 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4054 (_Jv_MutexUnlock): Ditto.
4055 (really_start): Set info->data->thread from pthread_self() to work
4056 around a race condition. Destroy wait_mutex and wait_cond when run()
4058 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4059 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4061 startable_flag: New private field.
4062 (Thread): Initialize `startable_flag'.
4063 (toString): Check for null thread group.
4064 * java/lang/natThread.cc: (struct natThread): New fields
4065 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4066 (class locker): Removed.
4067 (initialize_native): Initialize `join_cond' and `join_mutex'.
4068 (interrupt): Now just calls _Jv_ThreadInterrupt().
4069 (join): Simplified. Just wait on the target thread's join condition.
4070 (finish_): Remove join list code. Unset thread group. Signal
4071 potential joiners by notifying the dying threads join_cond.
4072 (start): Check for illegal restarts.
4073 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4075 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4076 #defines and #ifdefs.
4077 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4078 `wait_mutex', `next'.
4079 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4080 directly mapping to pthread_cond_t.
4081 (struct _Jv_Mutex_t): New recursive implementation.
4082 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4083 _Jv_HaveCondDestroy: Never define this for posix-threads.
4084 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4085 (_Jv_CondNotifyAll): Ditto.
4086 (_Jv_MutexLock): Ditto.
4087 (_Jv_MutexUnlock): Ditto.
4088 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4089 (_Jv_MutexDestroy): Ditto.
4090 (_Jv_CondDestroy): Removed.
4091 (_Jv_PthreadGetMutex): Removed.
4092 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4093 error. Add a FIXME about this.
4094 (_Jv_CondNotifyAll): Ditto.
4095 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4096 _JV_NOT_OWNER on other errors. Add FIXME.
4098 2000-03-26 Tom Tromey <tromey@cygnus.com>
4100 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4102 (call): Don't throw exception here.
4104 2000-03-26 Tom Tromey <tromey@cygnus.com>
4106 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4107 * interpret.cc: Use SIZEOF_VOID_P.
4108 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4109 (_Jv_loadLong): Likewise.
4110 (_Jv_storeDouble): Likewise.
4111 * configure: Rebuilt.
4112 * configure.in: Check size of void*.
4114 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4116 2000-03-26 Hans Boehm <boehm@acm.org>
4118 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4119 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4121 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4122 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4123 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4124 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4126 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4127 (FFI_RAW_SIZE): Likewise.
4128 (_Jv_InterpMethod::ncode): Use them.
4129 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4130 STORED): Define differently on a 64 bit machine.
4131 (continue1): Use ffi_java_raw_call when appropriate.
4133 2000-03-24 Warren Levy <warrenl@cygnus.com>
4135 * java/math/BigInteger.java(divide): Handle the special case when
4136 dividing by 1 and the high bit of the dividend is set.
4137 (setShiftRight): Handle case when count == 0.
4139 2000-03-24 Warren Levy <warrenl@cygnus.com>
4141 * java/awt/Font.java(isBold): Fix syntax error.
4143 * java/awt/Frame.java(postEvent): ditto.
4144 * java/awt/Menu.java(postEvent): ditto.
4145 * java/awt/MenuBar.java(postEvent): ditto.
4146 * java/awt/Toolkit.java(init): Included a stub.
4148 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4150 * java/awt/Event.java: Add all the event type constants.
4151 (Event): Implemented constructors.
4152 (controlDown): Implemented.
4153 (metaDown): Implemented.
4154 (paramString): Stubbed.
4155 (shiftDown): Implemented.
4156 (toString): Implemented.
4157 (translate): Implemented.
4159 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4161 * java/lang/natClass.cc (isInstance): Initialize `this'.
4162 (isAssignableFrom): Initialize `this' and `klass'.
4163 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4164 implemented by any loaded class, so return false.
4165 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4166 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4168 2000-03-19 Warren Levy <warrenl@cygnus.com>
4170 * java/awt/Color.java: Specified java.io for Serializable.
4171 * java/awt/Toolkit.java: Imported java.net.URL.
4173 2000-03-19 Warren Levy <warrenl@cygnus.com>
4175 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4177 2000-03-16 Warren Levy <warrenl@cygnus.com>
4179 * java/awt/Color.java: New file.
4180 * java/awt/Graphics.java: New file.
4181 * java/awt/Image.java: New file.
4182 * java/awt/Paint.java: New file.
4183 * java/awt/PaintContext.java: New file.
4184 * java/awt/Transparency.java: New file.
4185 * java/util/Collection.java: New file.
4186 * java/util/Comparator.java: New file.
4187 * java/util/Iterator.java: New file.
4188 * java/util/List.java: New file.
4189 * java/util/ListIterator.java: New file.
4190 * Makefile.am: Added above new files.
4191 * Makefile.in: Rebuilt.
4193 * java/awt/Font.java (PLAIN): New field.
4195 (ITALIC): New field.
4196 (ROMAN_BASELINE): New field.
4197 (CENTER_BASELINE): New field.
4198 (HANGING_BASELINE): New field.
4202 (pointSize): New field.
4203 (Font): Implemented constructor.
4204 (isPlain): Implemented method.
4205 (isBold): Implemented method.
4206 (isItalic): Implemented method.
4207 (getName): Implemented method.
4208 (getStyle): Implemented method.
4209 (getSize): Implemented method.
4210 (getSize2D): Implemented method.
4212 * java/awt/Frame.java (getFont): Stubbed.
4213 (postEvent): Stubbed.
4215 * java/awt/Menu.java (postEvent): Stubbed.
4216 * java/awt/MenuBar.java (getFont): Stubbed.
4217 (postEvent): Stubbed.
4218 * java/awt/Toolkit.java (getImage): Added abstract method.
4220 2000-03-15 Tom Tromey <tromey@cygnus.com>
4222 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4224 * prims.cc (win32_exception_handler): Reformatted.
4226 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4227 (_Jv_HaveMutexDestroy): Likewise.
4229 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4231 * java/io/natFileDescriptorWin32.cc: New file.
4232 * java/io/natFileWin32.cc: New file.
4233 * java/net/natInetAddress.cc: Added conditional inclusion of
4234 Windows / Winsock headers.
4235 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4236 inclusion of Windows / Winsock headers.
4237 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4238 Windows / Winsock headers.
4239 * include/win32-signal.h: New file.
4240 * include/win32-threads.h: New file.
4241 * win32-threads.cc: New file.
4242 * exception.cc (win32_get_restart_frame): New function.
4243 * prims.cc (win32_exception_handler): New function.
4244 (main_init) Performs Winsock initialisation.
4245 (main_init) Installs exeception handler.
4247 2000-03-14 Tom Tromey <tromey@cygnus.com>
4249 * jni.cc (mangled_name): Fixed assertion.
4250 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4251 turned assert into actual failure.
4253 2000-03-09 Warren Levy <warrenl@cygnus.com>
4255 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4256 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4257 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4259 2000-03-09 Warren Levy <warrenl@cygnus.com>
4261 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4262 * java/security/DigestException.java: New file.
4263 * java/security/GeneralSecurityException.java: New file.
4264 * java/security/InvalidAlgorithmParameterException.java: New file.
4265 * java/security/InvalidKeyException.java: New file.
4266 * java/security/InvalidParameterException.java: New file.
4267 * java/security/Key.java: New file.
4268 * java/security/KeyException.java: New file.
4269 * java/security/KeyPair.java: New file.
4270 * java/security/KeyPairGenerator.java: New file.
4271 * java/security/KeyPairGeneratorSpi.java: New file.
4272 * java/security/NoSuchProviderException.java: New file.
4273 * java/security/PrivateKey.java: New file.
4274 * java/security/Provider.java: New file.
4275 * java/security/PublicKey.java: New file.
4276 * java/security/SecureRandom.java: New file.
4277 * java/security/Security.java: New file.
4278 * java/security/Signature.java: New file.
4279 * java/security/SignatureException.java: New file.
4280 * java/security/interfaces/DSAKey.java: New file.
4281 * java/security/interfaces/DSAParams.java: New file.
4282 * java/security/interfaces/DSAPrivateKey.java: New file.
4283 * java/security/interfaces/DSAPublicKey.java: New file.
4284 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4285 * java/security/interfaces/RSAPrivateKey.java: New file.
4286 * java/security/interfaces/RSAPublicKey.java: New file.
4287 * java/security/spec/AlgorithmParameterSpec.java: New file.
4288 * java/security/spec/InvalidKeySpecException.java: New file.
4289 * java/security/spec/InvalidParameterSpecException.java: New file.
4290 * java/security/spec/KeySpec.java: New file.
4291 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4292 * java/security/spec/RSAPrivateKeySpec.java: New file.
4293 * java/security/spec/RSAPublicKeySpec.java: New file.
4294 * Makefile.am: Added above java.security files.
4295 * Makefile.in: Rebuilt.
4297 * java/security/MessageDigest.java: Rewritten.
4298 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4300 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4304 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4306 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4307 _Jv_PrepareConstantTimeTables.
4308 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4309 classes should have an IDT, so don't return if klass is an array
4312 2000-03-08 Tom Tromey <tromey@cygnus.com>
4314 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4315 of `void' to be created.
4317 2000-03-08 Warren Levy <warrenl@cygnus.com>
4319 * java/math/BigInteger.java(signum): Handle zero properly.
4321 2000-03-07 Tom Tromey <tromey@cygnus.com>
4323 * All files: Updated copyright information.
4324 * COPYING: New file.
4325 * COPYING.LIB: Removed.
4326 * LIBGCJ_LICENSE: We now use GPL + special exception.
4328 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4330 * resolve.cc (_Jv_SearchMethodInClass): New function.
4331 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4332 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4334 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4336 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4337 (struct _Jv_ifaces): New declaration.
4338 JV_CLASS: New macro definition.
4339 (getComponentType): Relocate below isArray() for inlining.
4340 (getModifiers): Declare `inline'.
4341 (getSuperclass): Ditto.
4343 (isPrimitive): Ditto.
4344 (_Jv_IsAssignableFrom): New prototype.
4345 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4347 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4348 Check for JV_STATE_DONE before invoking initializeClass().
4349 (_Jv_PrepareConstantTimeTables): New prototype.
4350 (_Jv_GetInterfaces): Ditto.
4351 (_Jv_GenerateITable): Ditto.
4352 (_Jv_GetMethodString): Ditto.
4353 (_Jv_AppendPartialITable): Ditto.
4354 (_Jv_FindIIndex): Ditto.
4355 depth, ancestors, idt: New class fields.
4357 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4358 inline function `_Jv_IsAssignableFrom'. Use that function.
4359 (isInstance): Declare `inline'.
4360 (initializeClass): Get lock on class before checking `state'. Unlock
4361 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4363 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4364 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4365 class->depth and ancestor table.
4366 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4367 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4368 _Jv_IsAssignableFrom.
4369 (_Jv_CheckArrayStore): Ditto.
4370 (_Jv_LookupInterfaceMethodIdx): New function.
4371 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4372 (_Jv_PrepareConstantTimeTables): New function.
4373 (_Jv_IndexOf): Ditto.
4374 (_Jv_GetInterfaces): Ditto.
4375 (_Jv_GenerateITable): Ditto.
4376 (_Jv_GetMethodString): Ditto.
4377 (_Jv_AppendPartialITable): Ditto.
4378 iindex_mutex, iindex_mutex_initialized: New static fields.
4379 (_Jv_FindIIndex): New function.
4381 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4383 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4384 (_Jv_CheckArrayStore): Ditto.
4385 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4386 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4387 Moved to gcj/array.h.
4388 (_Jv_Realloc): New function.
4390 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4392 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4393 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4394 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4395 JvNewDoubleArray): Implementations moved from prims.cc and
4398 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4400 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4402 2000-03-06 Tom Tromey <tromey@cygnus.com>
4404 * jni.cc (MARK_NONE): New define.
4405 (MARK_USER): Likewise.
4406 (MARK_SYSTEM): Likewise.
4407 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4409 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4410 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4411 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4412 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4414 (call): Use MARK_SYSTEM.
4415 (_Jv_GetJNIEnvNewFrame): New function.
4416 (_Jv_LookupJNIMethod): New function.
4417 (_Jv_JNI_PopSystemFrame): New function.
4418 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4420 2000-03-05 Tom Tromey <tromey@cygnus.com>
4422 Fix for PR libgcj/43:
4423 * include/Makefile.in: Rebuilt.
4424 * include/Makefile.am (include_HEADERS): New define.
4426 2000-03-05 Anthony Green <green@redhat.com>
4428 * gcj/javaprims.h ("Java"): Remove FirstThread.
4430 * configure.host: Fix __NO_MATH_INLNES botch.
4432 * Makefile.in: Rebuilt.
4433 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4434 (gnu/gcj/runtime/FirstThread.h): Moved.
4435 (ordinary_java_source_files): Move FirstThread.java.
4436 * prims.cc: Deal with FirstThread movement.
4438 (_Jv_RunMain): Ditto.
4440 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4441 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4443 2000-03-05 Warren Levy <warrenl@cygnus.com>
4445 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4446 Handle null addresses.
4448 2000-03-04 Anthony Green <green@redhat.com>
4450 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4453 2000-03-04 Anthony Green <green@redhat.com>
4455 * configure: Rebuilt.
4456 * configure.in (ZLIBTESTSPEC): New macro.
4457 (GCTESTSPEC): New macro.
4458 (LIBGCJTESTSPEC): New macro.
4459 * libgcj-test.spec.in: New file.
4461 2000-03-02 Tom Tromey <tromey@cygnus.com>
4463 * include/java-interp.h: Don't include MethodInvocation.h.
4464 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4465 * Makefile.in: Rebuilt.
4466 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4467 (ordinary_java_source_files): Don't mention
4468 MethodInvocation.java.
4469 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4470 * interpret.cc (MethodInvocation::continue1): Removed.
4471 (run): Handle exceptions here.
4472 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4474 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4476 (defineClass2): Removed.
4478 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4480 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4482 (hack_call): Removed.
4484 * java/lang/Class.h (Class): Removed hackRunInitializers,
4486 * java/lang/natClass.cc (hackRunInitializers): Removed.
4487 (initializeClass): Catch exceptions here.
4488 Include ExceptionInInitializerError.h.
4489 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4492 * java/lang/Object.h (Object): Don't mention hack12_6.
4493 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4495 * java/lang/Object.java (hack12_6): Removed.
4497 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4498 (start): Use run_, not run__.
4499 * java/lang/Thread.java (run_): Renamed from run__; old run_
4502 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4503 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4504 (_Jv_JNI_DefineClass): Likewise.
4505 (_Jv_JNI_ThrowNew): Likewise.
4506 (_Jv_JNI_AllocObject): Likewise.
4507 (_Jv_JNI_GetAnyMethodID): Likewise.
4508 (_Jv_JNI_CallAnyMethodV): Likewise.
4509 (_Jv_JNI_CallAnyMethodA): Likewise.
4510 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4511 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4512 (_Jv_JNI_GetAnyFieldID): Likewise.
4513 (_Jv_JNI_NewString): Likewise.
4514 (_Jv_JNI_NewStringUTF): Likewise.
4515 (_Jv_JNI_GetStringUTFChars): Likewise.
4516 (_Jv_JNI_NewObjectArray): Likewise.
4517 (_Jv_JNI_NewPrimitiveArray): Likewise.
4518 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4519 (_Jv_JNI_GetStringRegion): Likewise.
4520 (_Jv_JNI_GetStringUTFRegion): Likewise.
4521 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4522 (_Jv_JNI_MonitorEnter): Likewise.
4523 (_Jv_JNI_MonitorExit): Likewise.
4524 (_Jv_JNI_ToReflectedField): Likewise.
4525 (_Jv_JNI_ToReflectedMethod): Likewise.
4526 (_Jv_JNI_RegisterNatives): Likewise.
4527 (_Jv_JNI_AttachCurrentThread): Likewise.
4528 (_Jv_JNI_DestroyJavaVM): Likewise.
4530 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4532 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4533 error caused by the incorrect casting of a long to an int.
4535 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4537 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4538 SIGSEV caused by use of the wrong instance variable.
4540 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4542 * java/io/File.java (File(String, String)): For dirPath, treat an
4543 empty String the same as `null'.
4545 2000-02-26 Anthony Green <green@cygnus.com>
4547 * gnu/gcj/io/MimeTypes.java: Test for null.
4549 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4550 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4552 * java/net/URLConnection.java: Update copyright notice.
4554 2000-02-25 Tom Tromey <tromey@cygnus.com>
4556 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4559 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4561 * java/net/URLConnection.java (initializeDateFormats): New
4563 (getHeaderFieldDate): Call initializeDateFormats if required.
4564 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4566 Fix for PR libgcj/38.
4568 2000-02-24 Warren Levy <warrenl@cygnus.com>
4570 * java/math/BigInteger.java(ival): Made private.
4574 2000-02-20 Anthony Green <green@cygnus.com>
4576 * Makefile.in: Rebuilt.
4577 * Makefile.am (ordinary_java_source_files): Add
4578 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4580 * scripts/MakeDefaultMimeTypes.java: New file.
4581 * scripts/mime.types: New file.
4582 * scripts/classes.pl: Moved from top level.
4583 * classes.pl: Moved to scripts directory.
4585 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4587 * gnu/gcj/io/MimeTypes.java: New file.
4588 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4590 2000-02-20 Tom Tromey <tromey@cygnus.com>
4592 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4594 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4596 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4599 2000-02-18 Tom Tromey <tromey@cygnus.com>
4601 * include/jvm.h (_Jv_GetJavaVM): Declare.
4602 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4603 (_Jv_MethodBase::get_method): New method.
4604 (_Jv_JNIMethod::set_function): New method.
4605 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4606 (_Jv_JNI_RegisterNatives): New function.
4607 (_Jv_JNIFunctions): Updated for new functions.
4608 (_Jv_GetJavaVM): New function.
4609 (_Jv_JNI_GetJavaVM): Use it. Now static.
4610 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4611 is already a Java thread but does not have a JNIEnv yet.
4613 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4616 2000-02-17 Tom Tromey <tromey@cygnus.com>
4618 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4621 2000-02-16 Tom Tromey <tromey@cygnus.com>
4623 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4625 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4626 (_Jv_JNI_NewObject): Likewise.
4627 (_Jv_JNI_NewObjectA): Likewise.
4628 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4629 as "return" type to _Jv_CallAnyMethodA.
4630 (_Jv_JNI_CallAnyMethodA): Likewise.
4631 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4633 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4636 2000-02-15 Tom Tromey <tromey@cygnus.com>
4638 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4640 (init_cif): Added `rtype_p' argument.
4641 * include/java-interp.h (class _Jv_MethodBase): Added
4643 (class _Jv_InterpMethod): Removed args_raw_size.
4644 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4645 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4646 class pointer as well as the ordinary arguments.
4648 * jni.cc (mangled_name): Skip leading `(' in signature.
4650 * jni.cc (add_char): Added missing `else'.
4652 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4655 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4659 * java/lang/natRuntime.cc (_load): Include library path with
4662 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4665 * java/lang/natThread.cc (dumpStack): Removed.
4666 * java/lang/Thread.java (dumpStack): Implemented.
4668 2000-02-15 Tom Tromey <tromey@cygnus.com>
4670 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4671 with `lib' for loadLibrary. Fixes PR gcj/150.
4673 2000-02-14 Warren Levy <warrenl@cygnus.com>
4675 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4677 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4681 (modPow): Rewritten to not use the naive, slow, brute force approach.
4682 (isProbablePrime): Implemented.
4683 (testBit): Implemented.
4684 (flipBit): Implemented.
4685 (getLowestSetBit): Implemented.
4687 2000-02-16 Anthony Green <green@redhat.com>
4689 * configure.host: Use the same options for i386 and i486 as we do
4692 2000-02-12 Tom Tromey <tromey@cygnus.com>
4694 * java/io/File.java (createTempFile): Use low bits from counter,
4697 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4699 * THANKS: More thanks.
4701 2000-02-11 Tom Tromey <tromey@cygnus.com>
4703 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4704 astore instruction. From Hans Boehm.
4706 2000-02-11 Warren Levy <warrenl@cygnus.com>
4708 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4709 (BigInteger(String)): New constructor.
4710 (not): Rewritten using version from Kawa's BitOps class.
4711 (valueOf): New private methods from Kawa's BitOps class.
4718 (andNot): Implemented.
4719 (clearBit): Implemented.
4720 (setBit): Implemented.
4721 (bitCount): Implemented.
4722 (toByteArray): Implemented.
4724 2000-02-11 Tom Tromey <tromey@cygnus.com>
4726 * java/io/File.java (nextValue): Now synchronized.
4728 2000-02-10 Tom Tromey <tromey@cygnus.com>
4730 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4731 * java/io/FileDescriptor.java (EXCL): New static field.
4732 * java/io/File.java (tmpdir): New static field.
4733 (createTempFile): New method.
4734 (nextValue): New method.
4735 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4738 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4739 (jboolean): Declare as an attributed int, not a bool.
4740 (_Jv_func): Declare differently for C.
4742 * gnu/gcj/jni/natNativeThread.cc: New file.
4743 * gnu/gcj/jni/NativeThread.java: New file.
4744 * java/lang/Thread.java (data): Now a RawData.
4745 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4747 * Makefile.in: Rebuilt.
4748 * Makefile.am (java/lang/Thread.h): New target.
4749 (ordinary_java_source_files): Added NativeThread.java.
4750 (nat_source_files): Added natNativeThread.cc.
4751 * java/lang/natThread.cc: Include <jni.h>
4752 (struct natThread): Added `jni_env' field.
4753 (_Jv_GetCurrentJNIEnv): New function.
4754 (_Jv_SetCurrentJNIEnv): Likewise.
4755 (initialize_native): Initialize jni_env.
4757 * jni.cc (ThreadGroupClass): New define.
4758 (_Jv_JNI_InvokeFunctions): New structure.
4759 (JNI_GetCreatedJavaVMs): New function.
4760 (the_vm): New global.
4761 (JNI_GetDefaultJavaVMInitArgs): New function.
4762 Include NativeThread.h.
4763 (NativeThreadClass): New define.
4764 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4765 (_Jv_JNI_DestroyJavaVM): New function.
4766 (_Jv_JNI_AttachCurrentThread): New function.
4767 (_Jv_JNI_DetachCurrentThread): New function.
4768 (_Jv_JNI_GetEnv): New function.
4769 (JNI_CreateJavaVM): New function.
4770 (_Jv_JNI_GetJavaVM): New function.
4771 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4772 * include/jni.h (JavaVMAttachArgs): New structure.
4773 (JNI_EDETACHED): New define.
4774 (JNI_EVERSION): Likewise.
4775 (JavaVM): Define properly.
4776 (struct JNIInvokeInterface): New structure.
4777 (class _Jv_JavaVM): New class.
4778 (JNI_OnLoad, JNI_OnUnload): Declare.
4779 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4780 JNI_GetCreatedJavaVMs): Declare.
4781 (JavaVMInitArgs): New typedef.
4782 (JavaVMOption): Likewise.
4783 (JNI_ERR): New define.
4786 2000-02-10 Andrew Haley <aph@cygnus.com>
4788 * interpret.cc: Don't include fdlibm.h.
4789 Replace #if with #ifdef throughout.
4790 Declare extern __ieee754_fmod.
4791 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4793 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4794 Search class hierarchy for superclass vtable.
4796 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4797 off the end of a pointer list.
4799 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4803 2000-02-09 Tom Tromey <tromey@cygnus.com>
4805 * java/lang/natRuntime.cc (_load): Call add_library.
4806 (loadLibraryInternal): Likewise.
4808 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4809 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4810 (Output_iconv::finalize): Likewise.
4812 2000-02-08 Tom Tromey <tromey@cygnus.com>
4814 * java/util/Properties.java (setProperty): New method.
4815 (store): New method.
4817 2000-02-07 Tom Tromey <tromey@cygnus.com>
4819 * java/lang/Runtime.java (_load): Declare.
4820 (load, loadLibrary): Wrote in terms of _load.
4821 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4823 (loadLibrary): Likewise.
4825 (_load): New method.
4826 (loadLibrary, load): Removed.
4828 * jni.cc (ThrowableClass): New define.
4829 (_Jv_JNI_Throw): Check argument.
4830 (_Jv_JNI_ThrowNew): Likewise.
4831 (wrap_value): Don't wrap object if it is NULL.
4832 (_Jv_JNI_DefineClass): Use wrap_value.
4833 (_Jv_JNI_FindClass): Likewise.
4834 (_Jv_JNI_GetSuperclass): Likewise.
4835 (_Jv_JNI_ExceptionOccurred): Likewise.
4836 (_Jv_JNI_AllocObject): Likewise.
4837 (_Jv_JNI_GetObjectClass): Likewise.
4838 (_Jv_JNI_NewString): Likewise.
4839 (_Jv_JNI_NewStringUTF): Likewise.
4840 (_Jv_JNI_NewObjectArray): Likewise.
4841 (_Jv_JNI_GetObjectArrayElement): Likewise.
4842 (_Jv_JNI_NewPrimitiveArray): Likewise.
4843 (_Jv_JNI_ToReflectedField): Likewise.
4844 (_Jv_JNI_ToReflectedMethod): Likewise.
4845 (_Jv_JNI_AllocObject): Check argument.
4846 (_Jv_JNI_NewObjectV): Likewise.
4847 (_Jv_JNI_NewObject): Likewise.
4848 (_Jv_JNI_NewObjectA): Likewise.
4849 (_Jv_JNI_GetObjectClass): Likewise.
4850 (_Jv_JNI_GetField): Likewise.
4851 (_Jv_JNI_SetField): Likewise.
4853 * interpret.cc (PUSHL): Don't use expression statement.
4858 * jni.cc (add_char): Conditional on INTERPRETER.
4859 (mangled_name): Likewise.
4861 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4863 (class _Jv_JNIMethod): Likewise.
4865 2000-02-04 Warren Levy <warrenl@cygnus.com>
4867 * Makefile.am: Added MPN.java and BigInteger.java.
4868 * Makefile.in: Rebuilt.
4869 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4871 * java/math/BigInteger.java: New file. Based primarily on
4872 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4874 2000-02-04 Tom Tromey <tromey@cygnus.com>
4876 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4878 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4879 if the method is native.
4880 * resolve.cc (ncode): Don't handle native methods.
4881 (_Jv_JNIMethod::ncode): New method.
4882 (_Jv_PrepareClass): Handle native methods.
4883 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4884 Include AbstractMethodError.h.
4885 (add_char): New function.
4886 (mangled_name): Likewise.
4887 * include/java-interp.h (class _Jv_JNIMethod): New class.
4888 (class _Jv_MethodBase): New class.
4889 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4890 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4893 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4894 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4895 libraries): New globals.
4896 (add_library): New function.
4897 (_Jv_FindSymbolInExecutable): New function.
4899 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4902 2000-02-04 Andrew Haley <aph@cygnus.com>
4904 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4905 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4906 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4907 printStackTrace to printRawStackTrace.
4909 2000-02-03 Tom Tromey <tromey@cygnus.com>
4911 * java/util/Calendar.java (toString): New method.
4912 * java/util/SimpleTimeZone.java (clone): New method.
4913 (toString): New method.
4914 * java/util/TimeZone.java (clone): New method.
4915 * java/text/SimpleDateFormat.java (clone): New method.
4916 * java/text/NumberFormat.java (clone): New method.
4917 (equals): New method.
4918 * java/text/Format.java (clone): New method.
4919 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4921 (clone): New method.
4922 * java/text/DateFormat.java (clone): New method.
4923 * java/text/Collator.java (clone): New method.
4925 2000-02-03 Tom Tromey <tromey@cygnus.com>
4927 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4930 2000-02-01 Tom Tromey <tromey@cygnus.com>
4932 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4933 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4934 constructing the closure if the function is native.
4935 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
4936 a template function, #if'd out, or static.
4937 Include <java-interp.h>.
4939 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4941 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4943 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4944 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4946 (wrap_value): New function.
4947 (_Jv_JNI_CallAnyMethodV): Use it.
4948 (_Jv_JNI_CallAnyMethodA): Likewise.
4949 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4950 (_Jv_JNI_GetStaticField): Likewise.
4952 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4953 (_Jv_JNI_GetStaticField): Likewise.
4955 2000-01-31 Tom Tromey <tromey@cygnus.com>
4957 * prims.cc (_Jv_MallocUnchecked): New function.
4958 (main_init): Call _Jv_JNI_Init.
4959 * include/jvm.h (_Jv_MallocUnchecked): Declare.
4960 (_Jv_JNI_Init): Declare.
4961 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4963 (_Jv_JNI_NewGlobalRef): New function.
4964 (_Jv_JNI_DeleteGlobalRef): New function.
4965 (_Jv_JNI_DeleteLocalRef): New function.
4966 (_Jv_JNI_conversion_call): Initialize and clear local reference
4968 (_Jv_JNI_NewLocalRef): New function.
4969 (struct _Jv_JNI_LocalFrame): New structure.
4970 (_Jv_JNI_PushLocalFrame): New function.
4971 (_Jv_JNI_EnsureLocalCapacity): New function.
4972 (FRAME_SIZE): New define.
4973 (_Jv_JNI_GetStringChars): Mark string, not characters.
4974 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
4975 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
4976 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
4978 (_Jv_JNI_DefineClass): Make return value a local ref.
4979 (_Jv_JNI_FindClass): Likewise.
4980 (_Jv_JNI_GetSuperclass): Likewise.
4981 (_Jv_JNI_ExceptionOccurred): Likewise.
4982 (_Jv_JNI_AllocObject): Likewise.
4983 (_Jv_JNI_GetObjectClass): Likewise.
4984 (_Jv_JNI_CallAnyMethodV): Likewise.
4985 (_Jv_JNI_NewString): Likewise.
4986 (_Jv_JNI_NewStringUTF): Likewise.
4987 (_Jv_JNI_NewObjectArray): Likewise.
4988 (_Jv_JNI_GetObjectArrayElement): Likewise.
4989 (_Jv_JNI_ToReflectedField): Likewise.
4990 (_Jv_JNI_ToReflectedMethod): Likewise.
4991 (_Jv_JNIFunctions): Updated table for new functions.
4992 (_Jv_JNI_Init): New function.
4993 (mark_for_gc): Wrote.
4994 (unmark_for_gc): Wrote.
4995 * include/jni.h (struct JNINativeInterface): Removed name from
4996 PopLocalFrame parameter.
4997 (class _Jv_JNIEnv): Added `locals' field.
4999 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5001 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5004 2000-01-30 Tom Tromey <tromey@cygnus.com>
5006 * include/config.h.in: Rebuilt.
5007 * acconfig.h (HAVE_ICONV): Define.
5008 * configure: Rebuilt.
5009 * configure.in: Check for `iconv' function.
5010 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5011 no specific encoder exists.
5012 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5013 no specific encoder exists.
5014 * Makefile.in: Rebuilt.
5015 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5017 (nat_source_files): Added natIconv.cc.
5018 * gnu/gcj/convert/natIconv.cc: New file.
5019 * gnu/gcj/convert/Input_iconv.java: New file.
5020 * gnu/gcj/convert/Output_iconv.java: New file.
5022 2000-01-28 Tom Tromey <tromey@cygnus.com>
5024 * Makefile.in: Rebuilt.
5025 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5027 2000-01-26 Tom Tromey <tromey@cygnus.com>
5029 * gcj/method.h (JvNumMethods): Moved from Class.h.
5030 (JvGetFirstMethod): Likewise.
5031 * java/lang/Class.h (Object): Updated decl of
5032 _Jv_JNI_ToReflectedField.
5033 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5034 * Makefile.in: Rebuilt.
5035 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5036 argument of _Jv_JNI_ToReflectedField.
5037 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5039 (java/lang/reflect/Method.h): Likewise.
5040 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5042 (jweak): New typedef.
5043 (struct JNINativeInterface): Correctly declare remaining entries.
5044 * jni.cc: Include Class.h, ClassLoader.h.
5045 (_Jv_JNI_FindClass): New function.
5046 (_Jv_JNI_DefineClass): New function.
5047 (_Jv_JNI_conversion_call): New function.
5048 (_Jv_JNI_FindClass): Use current class loader to find class.
5049 (_Jv_JNI_ExceptionCheck): New function.
5050 (_Jv_JNI_FromReflectedField): Now static.
5051 (MethodClass): New define.
5052 (_Jv_JNI_FromReflectedMethod): New function.
5053 (_Jv_JNI_ToReflectedMethod): Likewise.
5055 (_Jv_JNI_IsAssignableFrom): Renamed.
5056 (_Jv_JNI_GetStringRegion): New function.
5057 Include StringIndexOutOfBoundsException.h.
5058 (_Jv_JNI_GetStringUTFRegion): New function.
5059 (_Jv_JNIFunctions): Updated for new functions.
5060 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5061 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5062 (_Jv_JNI_GetStringCritical): New function.
5063 (_Jv_JNI_ReleaseStringCritical): Likewise.
5064 (get_throwable): Removed.
5065 (GCJ_JV_JNIENV_FRIEND): Removed.
5066 (__GCJ_JNI_IMPL__): Define.
5069 * resolve.cc (get_ffi_type_from_signature): Handle case where
5072 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5074 * interpret.cc (run): Don't call println.
5075 Don't include PrintStream.h.
5077 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5078 nameIndex. Use "jint" as type for boffset.
5079 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5081 (Class): Likewise. Also changed type of method_count,
5082 vtable_method_count, size_in_bytes, field_count,
5083 static_field_count, interface_count.
5084 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5087 2000-01-21 Tom Tromey <tromey@cygnus.com>
5089 * java/lang/reflect/natConstructor.cc (newInstance): Use
5091 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5092 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5093 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5096 (invoke): Use _Jv_CallAnyMethodA.
5098 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5099 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5101 (struct _Jv_Method): Added getNextMethod method.
5102 (JvNumMethods): New function.
5103 (JvGetFirstMethod): Likewise.
5104 * gcj/field.h (JvGetFirstStaticField): New function.
5105 (JvNumStaticFields): Likewise.
5106 (getNextField): Renamed from getNextInstanceField.
5107 (struct _Jv_Field): New method getClass.
5108 * jni.cc: Wrote many new functions.
5109 * include/jni.h (JNI_TRUE): Define.
5110 (JNI_FALSE): Likewise.
5111 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5112 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5113 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5114 (jfieldID, jmethodID): Likewise.
5115 (JNI_COMMIT, JNI_ABORT): New defines.
5116 (JNINativeMethod): New struct.
5117 (struct JNINativeInterface): Correctly declared more entries.
5118 (class _Jv_JNIEnv): Added `ex' member.
5119 (JNI_VERSION_1_1): New define.
5120 (JNI_VERSION_1_2): Likewise.
5122 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5123 getNextInstanceField.
5125 2000-01-20 Tom Tromey <tromey@cygnus.com>
5127 * resolve.cc (StringClass): Removed.
5128 * defineclass.cc (StringClass): Removed.
5130 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5134 2000-01-19 Tom Tromey <tromey@cygnus.com>
5136 * interpret.cc (PC_REGISTER_ASM): Removed.
5138 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5139 From Bryce McKinlay.
5141 * All files: Updated copyright to reflect Cygnus purchase.
5143 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5145 * configure: Rebuilt.
5146 * configure.in: Recognize --disable-interpreter.
5148 2000-01-18 Andrew Haley <aph@cygnus.com>
5150 * name-finder.cc (lookup): Check for dladdr function.
5151 acconfig.h (HAVE_DLADDR): Add.
5152 configure.in: Check for HAVE_DLADDR
5154 include/config.h.in: Rebuilt.
5156 2000-01-17 Andrew Haley <aph@cygnus.com>
5158 * prims.cc (_Jv_RunMain): Set the name of this executable.
5160 2000-01-17 Tom Tromey <tromey@cygnus.com>
5162 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5163 when backtrace can't be computed.
5165 * configure: Rebuilt.
5166 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5168 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5169 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5170 (_Jv_FindClassInCache): Likewise.
5171 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5172 (findSystemClass): Try to load class from compiled module.
5174 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5175 (loadLibrary): Likewise.
5176 (lt_preloaded_symbols): Define.
5177 (loadLibraryInternal): New method.
5178 * include/config.h.in: Rebuilt.
5179 * acconfig.h (USE_LTDL): Added.
5180 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5181 (INCLUDES): Added $(INCLTDL).
5182 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5183 (libgcj_la_LIBADD): Likewise.
5184 * aclocal.m4, configure: Rebuilt.
5185 * configure.in: Added libltdl support.
5187 2000-01-15 Tom Tromey <tromey@cygnus.com>
5189 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5191 2000-01-14 Andrew Haley <aph@cygnus.com>
5193 * java/lang/natThrowable.cc: New file.
5195 * java/lang/Throwable.java (fillInStackTrace): Make native.
5196 (printStackTrace): Call native method to do this.
5197 (Throwable): Call fillInStackTrace.
5198 (stackTrace): New variable.
5200 * include/jvm.h: Add _Jv_ThisExecutable functions.
5202 * prims.cc: (_Jv_execName): New variable.
5203 (catch_segv): Call fillInStackTrace.
5205 (_Jv_ThisExecutable): New functions.
5206 (JvRunMain): Set the name of this executable.
5208 * Makefile.am: Add java/lang/natThrowable.cc.
5210 * Makefile.in: Rebuilt.
5212 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5214 * configure.in: Force link with __frame_state_for in
5215 FORCELIBGCCSPEC. Add new checks for backtrace.
5216 * include/config.h.in: Rebuilt.
5218 * name-finder.cc: New file.
5219 * include/name-finder.h: New file.
5221 2000-01-16 Anthony Green <green@cygnus.com>
5223 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5226 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5228 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5230 2000-01-13 Tom Tromey <tromey@cygnus.com>
5232 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5233 not system loader, as initiating loader.
5235 2000-01-11 Tom Tromey <tromey@cygnus.com>
5237 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5238 HP/UX. From David Scott Urban.
5240 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5242 * java/lang/natMath.cc (pow): Cast args to `double', not
5245 (IEEEremainder): Likewise.
5246 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5247 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5249 2000-01-09 Anthony Green <green@cygnus.com>
5251 * java/lang/natString.cc (init): Test for overflow condition
5252 during out of bounds check.
5253 (getChars): Throw StringIndexOutOfBoundsException, not
5254 ArrayIndexOutOfBoundsException.
5256 (regionMatches): Obey case option during string comparison.
5258 * configure.host (ligcj_interpreter): New variable. Enable
5259 interpreter by default on IA-32.
5260 * configure.in: Examine libgcj_interpreter.
5261 * configure: Rebuilt.
5263 2000-01-07 Tom Tromey <tromey@cygnus.com>
5265 * mauve-libgcj: Don't disable ClassTest.
5267 * java/lang/natClass.cc (getClasses): Wrote.
5269 2000-01-06 Tom Tromey <tromey@cygnus.com>
5271 * java/lang/natClass.cc (_getConstructors): Correctly check
5272 whether method name is the init name.
5273 (getMethod): Look at accflags on method in `klass', not `this'.
5275 2000-01-05 Tom Tromey <tromey@cygnus.com>
5277 * java/lang/natClass.cc (getMethod): Compute offset relative to
5278 `klass's methods table, not `this's table.
5280 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5281 In unwrapping/widening case, check whether `k' is null, not
5282 whether it is primitive. Initialize `num' from `argelts', not
5283 `paramelts'. Correct create and pass arguments to ffi_call.
5284 Don't let presence of `this' argument affect index used to look in
5286 (COPY): Set appropriate element in `values' vector.
5288 * java/lang/natClass.cc: Include <gcj/method.h>.
5290 * java/lang/Class.h (_getMethods): Correctly declare as private,
5293 * java/lang/Class.h (_getMethods): Declare.
5294 * java/lang/Class.java (_getMethods): Declare.
5295 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5296 (getDeclaredClasses): Always return empty array.
5297 (_getMethods): New method.
5298 (getMethods): Wrote.
5299 (getDeclaredMethod): Return `rmethod'.
5300 (finit_name): New global.
5301 (getDeclaredMethods): Check for finit_name.
5302 (_getMethods): Likewise.
5303 (getMethod): Only return public methods.
5305 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5306 jboolean and select correct ffi type on that basis.
5307 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5308 Constructor call always has `void' return type.
5310 2000-01-04 Tom Tromey <tromey@cygnus.com>
5312 * java/lang/Class.h (getSignature): Updated.
5313 * java/lang/Class.java (getSignature): Updated.
5314 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5316 (getConstructor): Ensure constructor is public.
5317 (_getConstructors): Check for public-ness of constructor when
5318 `declared' is false, not when it is true.
5320 2000-01-04 Warren Levy <warrenl@cygnus.com>
5322 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5324 (receive): Set the sender's address in the DatagramPacket.
5326 2000-01-04 Tom Tromey <tromey@cygnus.com>
5328 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5329 declaring class as return_type argument to
5330 _Jv_CallNonvirtualMethodA.
5331 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5332 constructor case, create object and use it as `this' argument.
5333 * java/lang/Class.h (_getConstructors): Declare.
5334 (_getFields): Declare.
5335 * java/lang/Class.java (getConstructors): Wrote.
5336 (_getConstructors): New native method.
5337 (getDeclaredConstructors): Wrote.
5338 (_getFields): Declare new native method.
5339 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5341 (getMethod): Work correctly when class is primitive.
5342 (getDeclaredMethods): Likewise. Compute offset using `method',
5344 (getDeclaredMethod): Likewise.
5345 (getConstructor): Wrote.
5346 (ConstructorClass): New define.
5347 (getDeclaredConstructor): Wrote.
5348 (_getConstructors): New method.
5349 (_getFields): New method.
5352 * Makefile.in: Rebuilt.
5353 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5355 * prims.cc: Remove `#pragma implementation'.
5356 * gcj/array.h: Remove `#pragma interface'.
5358 * prims.cc (_Jv_equaln): New function.
5359 * java/lang/Class.java (getSignature): Declare.
5360 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5361 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5363 (getSignature): New method.
5364 (getDeclaredMethod): Wrote.
5366 Include StringBuffer.h.
5367 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5368 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5370 (getSignature): Declare.
5371 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5372 (_Jv_equaln): Declare.
5373 (_Jv_CallNonvirtualMethodA): Declare.
5374 * Makefile.in: Rebuilt.
5375 * Makefile.am (nat_source_files): Added natConstructor.cc.
5376 (java/lang/reflect/Constructor.h): New target.
5377 * java/lang/reflect/natConstructor.cc: New file.
5378 * java/lang/reflect/Constructor.java (newInstance): Now native.
5379 (declaringClass): Renamed from decl_class.
5380 (offset): Renamed from index.
5381 (getType): New native method.
5382 (getModifiers): Now native.
5383 (getParameterTypes): Call getType if required.
5384 (hashCode): Include hash code from declaring class.
5385 (modifiers): Removed.
5386 (toString): Call getType if required.
5387 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5388 * java/lang/reflect/natMethod.cc (hack_call): New method.
5389 Removed `#if 0' around FFI code.
5390 Include <gnu/gcj/RawData.h>.
5391 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5392 IllegalArgumentException when argument object and class disagree.
5393 (_Jv_GetTypesFromSignature): New function.
5395 (ObjectClass): New define.
5396 (_Jv_CallNonvirtualMethodA): New function.
5397 * java/lang/reflect/Method.java (hack_trampoline): New method.
5398 (hack_call): New native method.