1 2001-01-16 Hans Boehm <hans_boehm@hp.com>
3 * java/math/BigInteger.java (setShiftRight): Only do negative shift
6 2001-01-14 Mark Wielaard <mark@klomp.org>
7 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
8 (decode): Merge comments with Classpath, don't throw Exception
10 2001-01-12 Tom Tromey <tromey@redhat.com>
12 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
16 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
17 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
18 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
19 * gnu/awt/gtk/GtkLabelPeer.java: New file.
20 * gnu/awt/gtk/GtkButtonPeer.java: New file.
22 * java/lang/natSystem.cc: Include locale.h if it exists.
24 * configure.in: Check for locale.h.
26 2001-01-11 Tom Tromey <tromey@redhat.com>
28 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
29 (Cursor(int), getPredefinedCursor): Throw exception if argument
32 2001-01-03 Tom Tromey <tromey@redhat.com>
34 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
35 (getLocationOnScreen): Wrote.
37 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
39 * Makefile.am: Re-enable dependencies.
40 * Makefile.in: Rebuilt.
42 2001-01-10 Warren Levy <warrenl@redhat.com>
44 * java/math/BigDecimal.java (divide): Fixed comment.
46 2001-01-10 Warren Levy <warrenl@redhat.com>
48 Fix for PR libgcj/1596:
49 * java/math/BigDecimal.java (divide): Check newScale for validity.
50 Ensure that BigInteger.pow() is called with a non-negative value.
51 (setScale (int)): New public method.
52 (setScale (int,int)): New public method.
54 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
56 Fix for PR libgcj/1338:
57 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
58 commentChar. Fixed typos in comments.
60 2001-01-08 Warren Levy <warrenl@redhat.com>
62 Fix for PR libgcj/1411:
63 * Makefile.am: Removed java/util/natTimeZone.cc.
64 * Makefile.in: Rebuilt.
65 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
66 missing localized timezone names.
67 * java/lang/System.java (getDefaultTimeZoneId): New private method.
68 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
69 (init_properties): Set user.timezone property.
70 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
71 default timezone names; removed non-standard ones. Use standard
73 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
75 * java/util/TimeZone.java: Add standard ID names per JCL; removed
77 (getDefaultTimeZoneId): Removed.
79 (getDefaultTimeZoneId): Removed.
80 * java/util/natTimeZone.cc: Removed.
82 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
84 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
85 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
86 (_Jv_GetArrayClass): New inline function.
87 (arrayclass): New field.
88 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
89 _Jv_GetArrayElementFromElementType.
90 (_Jv_NewPrimArray): Ditto.
91 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
92 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
93 Set Modifier::ABSTRACT.
94 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
95 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
96 Now synchronized. Array classes are now referenced from
97 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
98 Set array classes' accessibility flags correctly. Optimize so that
99 all array classes share the same IDT.
100 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
101 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
102 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
103 in superclasses from overwriting classes own fields.
104 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
105 Modifier::isAbstract().
106 (null_idt): New static field.
107 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
109 (_Jv_IndexOf): Made inline.
110 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
112 2001-01-08 Tom Tromey <tromey@redhat.com>
114 Fix for PR java/1586:
115 * Makefile.in: Rebuilt.
116 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
118 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
120 * Makefile.am: Use the new "-M -MF" option for generating dependencies
121 from the c++ compiler.
122 * Makefile.in: Rebuilt.
124 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
126 All files with updated copyright.
127 * prims.cc (class _Jv_PrimClass): Removed.
128 (init_prim_class): New function.
129 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
130 `_Jv_PrimClass' in primitive type declarations. Assign to the
131 value returned by `init_prim_class.'
132 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
133 primitive type declarations.
134 (JvPrimClass): Cast to `jclass' removed.
135 * java/lang/Class.h (Class): New constructor.
136 (Class): New copy constructor.
137 (initializePrim): New prototype.
138 (_Jv_PrimClass): Field removed.
139 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
140 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
141 (class java::lang::Object): `finalize' moved up front.
142 * java/lang/natClass.cc
143 (isAssignableFrom): Turned outline.
144 (isInstance): Likewise.
145 (isInterface): Likewise, fixed indentation.
146 (initializePrim): New function.
148 2001-01-07 Anthony Green <green@redhat.com>
150 * Makefile.am (texinfo): Add texinfo target for generating texinfo
152 * Makefile.in: Rebuilt.
154 * scripts/TexinfoDoclet.java: New file.
156 * doc/java-applet.texi, doc/java-lang-reflect.texi,
157 doc/java-awt-color.texi, doc/java-lang.texi,
158 doc/java-awt-datatransfer.texi, doc/java-math.texi,
159 doc/java-awt-event.texi, doc/java-net.texi,
160 doc/java-awt-geom.texi, doc/java-security-spec.texi,
161 doc/java-awt-image.texi, doc/java-security.texi,
162 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
163 doc/java-text.texi, doc/java-beans-beancontext.texi,
164 doc/java-util-jar.texi, doc/java-beans.texi,
165 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
166 doc/java-lang-ref.texi: New files.
168 2001-01-07 Anthony Green <green@redhat.com>
170 * java/net/URLConnection.java (setDoOutput): URLConnection's may
171 be used for both input and output, so don't clear doInput.
173 * java/lang/StringBuffer.java: Fix comments.
175 2001-01-06 Anthony Green <green@redhat.com>
177 * java/beans/PropertyDescriptor.java: Fix comment.
178 * java/io/PushbackReader.java: Fix comment.
179 * java/io/ObjectStreamClass.java: Fix comment.
180 * java/io/DataInputStream.java: Fix comment.
181 * java/io/PipedInputStream.java: Fix comments.
182 * java/io/PipedReader.java: Fix comments.
183 * java/sql/DatabaseMetaData.java: Fix comments.
185 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
187 * java/io/PipedReader: Synchronize on "lock" instead of this.
189 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
191 * java/lang/Thread.java: Update comment.
193 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
194 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
195 * java/io/PipedReader: New implementation based on new
197 * java/io/PipedWriter: Updated to match new PipedReader.
199 2001-01-03 Tom Tromey <tromey@redhat.com>
201 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
202 (getViewportSize): Insets include scrollbar size.
203 (doLayout): Finished.
204 (getScrollPosition): Wrote.
205 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
207 2001-01-02 Tom Tromey <tromey@redhat.com>
209 * java/awt/ScrollPane.java: Wrote.
210 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
213 * java/awt/Panel.java (Panel()): Fixed.
215 * java/awt/Component.java (isShowing): Return false if no peer
216 exists, and true if component is visible and no parent exists.
217 (getLocationOnScreen): Wrote.
218 (getPreferredSize): Removed FIXME comment.
219 (getMinimumSize): Likewise.
220 (getAlignmentX, getAlignmentY): Wrote.
222 (requestFocus): Wrote.
223 (transferFocus): Wrote.
224 (findNextFocusComponent): New method.
227 (enableEvents): Call setEventMask on the peer.
229 * java/awt/Container.java (list): Use super.list() to print self.
230 (findNextFocusComponent): New method.
231 (setLayout): Call invalidate.
232 (findComponentAt): Wrote.
234 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
236 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
237 the correct versions of various linuxthreads functions get linked.
238 * Makefile.in: Rebuilt.
239 * java/lang/natThread.cc (finalize_native): New static function. Call
240 _Jv_ThreadDestroyData.
241 (initialize_native): Register finalizer for "data".
242 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
243 (_Jv_ThreadDestroyData): New prototype.
244 * include/win32-threads.h: Ditto.
245 * include/no-threads.h: Ditto.
246 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
247 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
248 move mutex and condition variable destroy code from:
249 (really_start): ...here.
250 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
251 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
252 (_Jv_ThreadDestroyData): Implemented.
253 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
254 (_Jv_AllocArray): Ditto.
256 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
258 * java/sql/DriverManager.java (getConnection): Don't set user/password
261 2000-12-27 Warren Levy <warrenl@redhat.com>
263 Fix for PR libgcj/1358:
264 * java/lang/System.java: Update Copyright date properly.
265 * java/util/Calendar.java: Fix typo in comment.
266 (set): Set 24-hour clock hour instead of 12-hour clock hour.
267 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
268 initialize times. Spec says to set H:M:S values to zero only if
270 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
271 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
272 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
273 timezones and GMT offsets, being careful to account for units of
274 milliseconds vs. seconds.
276 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
278 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
279 not be assigned to Object.
281 Fix for PR libgcj/1516:
282 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
284 (can_widen): Declared inline. Remove redundant checks for void
285 arguments and char->short conversion. Add special case for boolean
287 (ffi_type): Declared inline.
288 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
290 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
292 * java/sql/SQLWarning.java: Fixed typo in comment.
294 2000-12-26 Tom Tromey <tromey@redhat.com>
296 * java/awt/MenuItem.java (paramString): Now protected.
298 * java/awt/MenuShortcut.java: Implements Serializable.
300 * java/awt/MenuBar.java: Rewrote from scratch.
302 * java/awt/MenuComponent.java (removeNotify): Wrote.
303 Implements Serializable.
305 * java/awt/GridBagConstraints.java (GridBagConstraints): New
308 * java/awt/CheckboxMenuItem.java: Wrote.
310 2000-12-25 Tom Tromey <tromey@redhat.com>
312 * java/awt/MenuContainer.java: Fixed typo.
314 * Makefile.in: Rebuilt.
315 * Makefile.am (awt_java_source_files): Added SystemColor.java.
316 * java/awt/SystemColor.java: New file.
318 * java/awt/Color.java (rgba): Now package-private.
320 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
322 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
325 * java/awt/MenuItem.java (addNotify): New method.
326 (MenuItem(String,MenuShortcut)): New constructor.
327 (setLabel): Notify peer of change.
328 (setEnabled): Likewise.
330 * java/awt/GridLayout.java (toString): New method.
332 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
333 (FlowLayout): Check for LEADING and TRAILING.
334 (setAlignment): Likewise.
335 (layoutContainer): Handle component orientation.
337 * java/awt/Component.java (orientatin): New field.
338 (setComponentOrientation): Wrote.
339 (getComponentOrientation): Wrote.
341 * java/awt/Event.java (Event): Implements Serializable.
342 (consumed): New field for serialization.
343 * java/awt/Dimension.java (Dimension): Implements Serializable.
344 * java/awt/Cursor.java (Cursor): Implements Serializable.
345 * java/awt/Container.java (Container): No longer abstract.
347 * java/awt/Choice.java: Wrote.
348 * java/awt/Checkbox.java: Wrote.
349 * java/awt/ItemSelectable.java: Documented.
350 * java/awt/CheckboxGroup.java: Wrote.
352 * java/awt/CardLayout.java (layoutContainer): Directly use fields
356 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
358 * java/io/FileDescriptor.java: Initialize fd to -1.
359 Remove default constructor.
361 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
363 * java/lang/mprec.h: Change C9X reference to refer to C99.
365 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
367 * java/lang/Throwable.java (trace_enabled): New static field.
368 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
369 trace_enabled not set.
370 * prims.cc (main_init): Turn off trace_enabled while creating
371 default exception objects.
373 2000-12-21 Tom Tromey <tromey@redhat.com>
375 * java/beans/PropertyChangeListener.java: Extends EventListener.
376 * java/beans/VetoableChangeListener.java: Extends EventListener.
378 * java/util/zip/Deflater.java (update, init): Now private.
380 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
382 * java/util/BasicMapEntry.java: Re-added.
383 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
384 (putAll): Test for BasicMapEntry.
385 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
386 (putAll): Test for BasicMapEntry.
387 Change references from `HashMap.Entry' to `Entry' in various places.
388 * Makefile.am: Add BasicMapEntry.java.
389 * Makefile.in: Rebuilt.
391 2000-12-18 Warren Levy <warrenl@redhat.com>
393 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
394 need to set timezone to a valid non-null value. Partial fix for
397 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
399 * java/awt/Window.java (addNotify): Remove peer casting hack now that
401 * java/awt/Button.java (addNotify): Likewise.
402 * java/awt/Label.java (addNotify): Likewise.
403 * java/awt/Panel.java (addNotify): Likewise.
404 * java/awt/Scrollbar.java (addNotify): Likewise.
405 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
406 Remove redundant null checks.
408 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
410 * COPYING: Update to current
411 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
412 to 19yy as example year in copyright notice).
414 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
416 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
417 end-of-stream if avail_in is 0.
419 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
421 * java/util/ArrayList.java (data): Declare transient.
422 (serialPersistantFields): Removed.
423 (readObject): Use defaultReadObject(), not readFields().
424 (writeObject): Use defaultWriteObject(), not writeFields().
426 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
428 * java/util/Hashtable.java (put): Remove `last' variable.
429 Link new entry to head of list.
430 * java/util/HashMap.java (put): Ditto.
432 2000-12-15 Tom Tromey <tromey@redhat.com>
434 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
435 loader to Class.forName.
437 2000-12-14 Tom Tromey <tromey@redhat.com>
439 * java/util/ResourceBundle.java
440 (getBundle(String,Locale,ClassLoader)): New method.
441 (trySomeGetBundle): Added `loader' argument.
442 (partialGetBundle): Likewise.
444 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
445 maximumFractionDigits, maximumIntegerDigits,
446 minimumFractionDigits, minimumIntegerDigits): Now
449 * java/lang/Thread.java (checkAccess): Now final.
451 * java/lang/RuntimePermission.java: Class now final.
453 * java/io/StringWriter.java (StringWriter(int)): Now public.
455 * java/io/SerializablePermission.java (legal_names): Now private.
457 * java/lang/Character.java: Updated UnicodeBlock constants.
458 * scripts/blocks.pl: Special case private use and surrogate
461 2000-12-12 Tom Tromey <tromey@redhat.com>
463 * Makefile.in: Rebuilt.
464 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
466 (GCJCOMPILE): Use it.
469 2000-12-11 Tom Tromey <tromey@redhat.com>
471 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
472 New static final fields.
474 * scripts/classes.pl (scan): Skip lines with leading `*'.
475 Fix for PR libgcj/378.
477 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
479 * configure.in: Remove check for -fuse-divide-subroutine.
480 * configure: Rebuilt.
482 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
484 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
486 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
488 * Makefile.am: Add HashSet.java and java/lang/ref classes.
489 Remove BasicMapEntry.java and Bucket.java.
490 * Makefile.in: Rebuilt.
491 * java/util/HashMap.java: Rewritten.
492 * java/util/HashSet.java: Imported from classpath.
493 * java/util/WeakHashMap.java: Imported from classpath.
494 * java/util/Hashtable.java: Rewritten based on new HashMap code.
495 * java/util/Bucket.java: Deleted.
496 * java/util/BasicMapEntry.java: Deleted.
497 * java/util/Collections.java (search): Use a for-loop, not iterator
499 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
500 of elements in source.
501 (max): Use a for-loop.
503 (reverse): Keep track of positions instead of using Iterator's
504 nextIndex() and previousIndex().
505 (shuffle(List)): Initialize defaultRandom if required using
506 double-check thread safety idiom. Call two-argument shuffle method
508 (defaultRandom): New field.
509 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
510 using previousIndex() and nextIndex().
511 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
512 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
513 * java/util/AbstractMap.java (toString): Use StringBuffer.
514 * java/lang/ref/PhantomReference.java: Imported from classpath.
515 * java/lang/ref/SoftReference.java: Ditto.
516 * java/lang/ref/Reference.java: Ditto.
517 * java/lang/ref/WeakReference.java: Ditto.
518 * java/lang/ref/ReferenceQueue.java: Ditto.
520 2000-12-10 Richard Henderson <rth@redhat.com>
522 * configure.host: Recognize alpha*-*, not alphaev6-*.
524 2000-12-09 Anthony Green <green@redhat.com>
526 * configure.host: Enable interpreter for Alpha.
528 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
530 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
531 (ZIP): Points at fastjar instead of zip.
532 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
533 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
534 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
535 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
536 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
537 ($(x_java_source_files:.java=.class):): Likewise.
538 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
540 (CLEANFILES): libgcj.jar replaces libgcj.zip.
541 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
542 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
543 java/lang/String.h:, java/lang/reflect/Constructor.h:,
544 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
545 gnu/gcj/runtime/VMClassLoader.h:,
546 java/io/ObjectInputStream$$GetField.h:,
547 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
548 (Makefile.in): Rebuilt.
550 2000-12-08 Tom Tromey <tromey@redhat.com>
553 * configure: Rebuilt.
554 * configure.in: Use echo, not `:', to create .d files.
556 2000-12-08 Warren Levy <warrenl@redhat.com>
558 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
559 NullPointerException so proper check of offset can be done.
561 2000-12-08 Warren Levy <warrenl@redhat.com>
563 * java/io/FileInputStream.java (close): Check if the fd is valid.
564 * java/io/RandomAccessFile.java (close): Ditto.
565 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
566 * java/net/PlainSocketImpl.java (close): Ditto.
568 2000-12-06 Tom Tromey <tromey@redhat.com>
570 * java/awt/GridBagConstraints.java: Filled in values for static
573 * java/util/BitSet.java: Updated copyright notice.
575 * Makefile.in: Rebuilt.
576 * Makefile.am (awt_java_source_files): Added new file.
577 * java/awt/GridBagConstraints.java: New file.
579 2000-12-05 Tom Tromey <tromey@redhat.com>
581 * java/text/Collator.java (decomposeCharacter, decmp, strength):
582 Now package-private, not protected.
583 * java/text/DateFormatSymbols.java (equals): Now private.
584 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
585 * java/util/BitSet.java: Class no longer final.
587 2000-12-04 Warren Levy <warrenl@redhat.com>
589 * java/util/TimeZone.java (getAvailableIDs): Activated commented
590 out code dependent on compiler and library changes.
592 2000-12-04 Warren Levy <warrenl@redhat.com>
594 * java/io/FilePermission.java: Made class final per spec.
595 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
596 method name to match spec (fixed typo).
597 * java/util/LinkedList.java: Implements List.
599 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
601 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
602 Edgar Villanueva <edgarvil@home.com>.
604 2000-12-03 Tom Tromey <tromey@redhat.com>
606 * java/awt/geom/Point2D.java: Added protected constructor.
607 (equals): New method.
608 (Float.setLocation(float,float)): New method.
609 * java/awt/geom/Dimension2D.java: Added protected constructor.
610 * java/awt/geom/AffineTransform.java: Made all constants public.
611 (concatenate): Fixed typo in name.
612 * java/awt/event/WindowAdapter.java: Class now abstract.
613 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
614 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
617 * java/awt/AWTError.java: Extend Error, not
618 IllegalStateException.
620 * Makefile.in: Rebuilt.
621 * Makefile.am (awt_java_source_files): Added new file.
622 * java/awt/geom/RoundRectangle2D.java: New file.
624 * Makefile.in: Rebuilt.
625 * Makefile.am (awt_java_source_files): Added new file.
626 * java/awt/FlowLayout.java: New file.
628 * Makefile.in: Rebuilt.
629 * Makefile.am (awt_java_source_files): Added new file.
630 * java/awt/GridLayout.java: New file.
632 2000-12-02 Tom Tromey <tromey@redhat.com>
634 * Makefile.in: Rebuilt.
635 * Makefile.am (awt_java_source_files): Added new files.
636 * java/awt/CardLayout.java: New file.
637 * java/awt/AWTPermission.java: New file.
639 2000-12-01 Tom Tromey <tromey@redhat.com>
641 * java/util/Vector.java (insertElementAt): Unconditionally
642 increment elementCount.
643 (removeRange): Clear unused slots in vector.
645 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
647 * java/lang/natMath.cc: Declare fabsf() function.
648 * java/lang/mprec.h: Don't include math.h.
649 * java/lang/dtoa.c: Include string.h.
650 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
653 From Adam Welc <welc@cs.purdue.edu>:
654 * java/util/LinkedList.java (removeFirst): Update `first' field.
655 Handle the last == first case.
656 (removeLast): Update `last' field. Handle the last == first case.
658 2000-12-01 Warren Levy <warrenl@cygnus.com>
660 * Makefile.am: Added entries for new java.sql modules.
661 * Makefile.in: Rebuilt.
663 2000-12-01 Warren Levy <warrenl@cygnus.com>
665 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
666 that aren't quite 1.2 compatible yet.
668 2000-11-30 Warren Levy <warrenl@cygnus.com>
670 * java/sql/Array.java: New file from classpath.
671 * java/sql/BatchUpdateException.java: Ditto.
672 * java/sql/Blob.java: Ditto.
673 * java/sql/Clob.java: Ditto.
674 * java/sql/Ref.java: Ditto.
675 * java/sql/SQLData.java: Ditto.
676 * java/sql/SQLInput.java: Ditto.
677 * java/sql/SQLOutput.java: Ditto.
678 * java/sql/Struct.java: Ditto.
679 * java/sql/CallableStatement.java: Merged file from claspath.
680 * java/sql/Connection.java: Ditto.
681 * java/sql/DataTruncation.java: Ditto.
682 * java/sql/DatabaseMetaData.java: Ditto.
683 * java/sql/DriverManager.java: Ditto.
684 * java/sql/PreparedStatement.java: Ditto.
685 * java/sql/ResultSet.java: Ditto.
686 * java/sql/ResultSetMetaData.java: Ditto.
687 * java/sql/SQLException.java: Ditto.
688 * java/sql/SQLWarning.java: Ditto.
689 * java/sql/Statement.java: Ditto.
690 * java/sql/Types.java: Ditto.
692 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
694 * java/lang/natSystem.cc (init_properties): Set user.language and
696 * configure.in: Check for setlocale.
697 * configure: Rebuilt.
698 * include/config.h.in: Rebuilt.
700 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
701 the infate() call didn't deliver any output. Throw a ZipException if
702 the needsDictionary() call returns true.
703 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
704 * java/io/InputStreamReader: Use the default buffer size for the
705 contained BufferedInputStream.
707 2000-11-28 Warren Levy <warrenl@cygnus.com>
709 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
710 more time zone entries.
711 * java/text/SimpleDateFormat.java (format): Added case for
714 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
716 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
717 directly rather than read() in all cases. Make primitive read
718 implementations more efficient, as defined in JDK online docs.
719 (skipBytes): Behave like the JDK's implementation.
720 * java/io/BufferedReader.java: Merge classpath docs. Check for a
721 closed stream with checkStatus() whenever an IOException can be
723 (checkStatus): New private method.
725 2000-11-27 Warren Levy <warrenl@cygnus.com>
727 * Makefile.am: Added natTimeZone.cc.
728 * Makefile.in: Rebuilt.
729 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
730 * java/text/DateFormatSymbols.java (ampms): Made package private.
731 (eras): Made package private.
732 (months): Made package private.
733 (shortMonths): Made package private.
734 (shortWeekdays): Made package private.
735 (weekdays): Made package private.
736 (formatPrefixes): New private field.
737 (localPatternCharsDefault): Made private.
738 (dateFormats): New package private field.
739 (timeFormats): New package private field.
740 (formatsForKey): New private method.
741 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
742 (DateFormatSymbols(DateFormatSymbols)): Ditto.
743 * java/text/SimpleDateFormat.java: Merged with Classpath.
744 * java/util/TimeZone.java: Merged with Classpath.
745 * java/util/natTimeZone.cc: New file.
747 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
749 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
750 (addElement): Don't increment elementCount twice. Doh.
751 * java/util/ArrayList.java (add): Only call ensureCapacity if the
752 array needs to be expanded.
754 * java/util/Collections.java (UnmodifiableCollection): Implement
756 (UnmodifiableList): Throw UnsupportedOperationException from
757 modification methods. Set `l' from the one-parameter constructor.
758 (UnmodifiableMap): Implement toString().
759 (SynchronizedCollection): Ditto.
760 (SynchronizedList): Set `l' from the one-parameter constructor.
761 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
762 (SynchronizedMap): Implement toString().
764 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
766 * javax/naming/NameParser.java,
767 javax/naming/directory/AttributeInUseException.java,
768 javax/naming/directory/AttributeModificationException.java,
769 javax/naming/directory/InvalidAttributeIdentifierException.java,
770 javax/naming/directory/InvalidAttributesException.java,
771 javax/naming/directory/InvalidAttributeValueException.java,
772 javax/naming/directory/InvalidSearchControlsException.java,
773 javax/naming/directory/InvalidSearchFilterException.java,
774 javax/naming/directory/NoSuchAttributeException.java,
775 javax/naming/directory/SchemaViolationException.java: New files.
777 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
779 * javax/naming/InitialContext.java (rebind): Implement.
783 (listBindings): Implement.
784 (destroySubcontext): Implement.
785 (createSubcontext): Implement.
786 (lookupLink): Implement.
787 (getNameParser): Implement.
788 (composeName): Implement.
789 (addToEnvironment): Implement.
791 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
793 * javax/naming/AuthenticationException.java,
794 javax/naming/AuthenticationNotSupportedException.java,
795 javax/naming/CannotProceedException.java,
796 javax/naming/CommunicationException.java,
797 javax/naming/ConfigurationException.java,
798 javax/naming/ContextNotEmptyException.java,
799 javax/naming/InsufficientResourcesException.java,
800 javax/naming/InterruptedNamingException.java,
801 javax/naming/InvalidNameException.java,
802 javax/naming/LimitExceededException.java,
803 javax/naming/LinkException.java,
804 javax/naming/LinkLoopException.java,
805 javax/naming/MalformedLinkException.java,
806 javax/naming/NameAlreadyBoundException.java,
807 javax/naming/NameNotFoundException.java,
808 javax/naming/NamingSecurityException.java,
809 javax/naming/NoPermissionException.java,
810 javax/naming/NotContextException.java,
811 javax/naming/PartialResultException.java,
812 javax/naming/ReferralException.java,
813 javax/naming/ServiceUnavailableException.java,
814 javax/naming/SizeLimitExceededException.java,
815 javax/naming/TimeLimitExceededException.java: New files.
817 * javax/naming/Name.java (clone): New method.
818 (compareTo): New method.
819 (isEmpty): New method.
820 (getAll): New method.
821 (getPrefix): New method.
822 (getSuffix): New method.
823 (startsWith): New method.
824 (endsWith): New method.
825 (addAll): New method.
826 (addAll): New method.
829 (remove): New method.
831 * javax/naming/Context.java (lookup): New method.
832 (rebind): New method.
833 (unbind): New method.
834 (rename): New method.
836 (listBindings): New method.
837 (destroySubcontext): New method.
838 (createSubcontext): New method.
839 (lookupLink): New method.
840 (getNameParser): New method.
841 (composeName): New method.
842 (addToEnvironment): New method.
843 (removeFromEnvironment): New method.
844 (getEnvironment): New method.
846 (getNameInNamespace): New method.
848 * javax/naming/InitialContext.java (lookup): New method.
849 (rebind): New method.
850 (unbind): New method.
851 (rename): New method.
853 (listBindings): New method.
854 (destroySubcontext): New method.
855 (createSubcontext): New method.
856 (lookupLink): New method.
857 (getNameParser): New method.
858 (composeName): New method.
859 (addToEnvironment): New method.
860 (removeFromEnvironment): New method.
861 (getEnvironment): New method.
863 (getNameInNamespace): New method.
865 2000-11-26 Tom Tromey <tromey@cygnus.com>
867 * Makefile.in: Rebuilt.
868 * Makefile.am (core_java_source_files): Added
869 RuntimePermission.java.
870 * java/lang/RuntimePermission.java: Imported from Classpath.
871 * java/lang/Thread.java (getContextClassLoader): Now
872 synchronized. Added security code.
873 (setContextClassLoader): Likewise.
875 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
876 length field of array.
877 (_Jv_NewPrimArray): Likewise.
878 * gcj/array.h (__JArray): `length' field now const. Added
881 2000-11-26 Anthony Green <green@redhat.com>
883 * javax/naming/spi/NamingManager.java,
884 javax/naming/spi/ObjectFactory.java,
885 javax/naming/spi/InitialContextFactory.java,
886 javax/naming/spi/InitialContextFactoryBuilder.java,
887 javax/naming/RefAddr.java, javax/naming/Reference.java,
888 javax/naming/NamingException.java, javax/naming/Context.java,
889 javax/naming/Referenceable.java,
890 javax/naming/directory/InitialDirContext.java,
891 javax/naming/directory/DirContext.java,
892 javax/naming/directory/Attributes.java,
893 javax/naming/directory/Attribute.java,
894 javax/naming/StringRefAddr.java,
895 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
896 javax/naming/InitialContext.java,
897 javax/naming/NoInitialContextException.java: New files.
899 2000-11-25 Anthony Green <green@redhat.com>
901 * prims.cc (_Jv_NewObjectArray): Undo placement change.
902 (_Jv_NewPrimArray): Likewise.
903 * gcj/array.h (__JArray): Undo const change. Removed constructor.
904 (class JArray): Removed constructor.
906 * java/lang/Thread.java (context_class_loader): New private data.
907 (getContextClassLoader): New method.
908 (setContextClassLoader): New method.
909 (Thread): Initialize context_class_loader.
911 * java/net/URLClassLoader.java: Import java.util.Enumeration.
912 (getResource): Rename to findResource.
913 (findResource): New method. Used to be getResource.
914 (getResourceAsStream): Deleted.
915 (jarFileize): Extracted logic from URLClassLoader constructor into
916 this new private method.
917 (addURL): New protected method.
918 (URLClassLoader): Call jarFileize. Use addElement instead of
920 (findResources): New method.
922 * java/lang/ClassLoader.java: Import java.util.Enumeration.
923 (getResource): Implement correct logic.
924 (findResource): New method.
925 (getResources): New method.
926 (findClass): Create a ClassNotFoundException with the name of the
927 class rather than nothing at all.
928 (defineClass) Only throw ClassFormatError.
930 * java/lang/Class.java (forName): New method.
931 * java/lang/Class.h (forName): New method.
932 * java/lang/natClass.cc (forName): New method.
934 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
936 * java/lang/System.java (setProperties): Only call init_properties()
937 if properties is null.
938 (getProperties): Ditto.
939 (getProperty): Ditto.
940 (setProperty): Call init_properties if properties are null.
941 (prop_init): Remove field.
942 * java/lang/natSystem.cc (init_properties): Synchronize the entire
943 method. Check for null properties after synchronizing instead of
944 prop_init flag. Set the properties field last for thread safety.
946 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
947 test for gcj.dumpobjects property and enable object stream dumping
949 (dumpElement): No longer native.
950 (dumpElementln): Ditto.
951 (setDump): Do not define.
952 * java/io/natObjectInputStream.cc (dumpElement): Removed.
953 (dumpElementln): Removed.
956 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
958 * configure: Rebuilt.
959 * Makefile.in: Rebuilt.
960 * Makefile.am (built_java_source_files): Add Configuration.java.
961 * configure.in: Add Configuration.java to CONFIG_FILES. Set
962 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
963 Create `gnu' directory in the build tree.
964 * gnu/classpath/Configuration.java.in: New file.
966 2000-11-24 Tom Tromey <tromey@cygnus.com>
968 * prims.cc (_Jv_NewObjectArray): Use placement new to create
970 (_Jv_NewPrimArray): Likewise.
972 * gcj/array.h (__JArray): `length' field now const. Added
974 (class JArray): Added constructor.
976 2000-11-23 Mark Wielaard <mark@klomp.org>
978 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
981 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
983 * java/util/Vector.java: Improve exception messages.
984 (Vector): Check initialCapacity for IllegalArgumentException.
985 (tromToSize): Don't check for elementCount == elementData.length
987 (toArray): Don't try to set null marker if target array is the same
988 length as the vector.
990 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
992 * Makefile.in: Rebuilt.
993 * Makefile.am (core_java_source_files): Added Collections.java.
994 * java/util/List.java: Merged from classpath.
995 * java/util/Vector.java: Ditto.
996 * java/util/Collections.java: From classpath.
997 * java/util/ArrayList.java (addAll(Collection)): Call
998 addAll(int,Collection) instead of duplicating code.
999 (indexOf): Clean up int initialization.
1000 (clear): Set cleared array entries to null, to allow garbage
1002 * java/util/List.java: Minor formatting fixes.
1003 * java/util/SimpleTimeZone.java: ditto.
1005 2000-11-18 Tom Tromey <tromey@cygnus.com>
1007 * Makefile.in: Rebuilt.
1008 * Makefile.am (core_java_source_files): Added new files.
1009 * java/lang/reflect/ReflectPermission.java: New class.
1010 * java/io/FileFilter.java: From Classpath
1011 * java/io/FilePermission.java: From Classpath.
1013 2000-11-17 Tom Tromey <tromey@cygnus.com>
1015 * java/lang/reflect/AccessibleObject.java (isAccessible,
1016 setAccessible): Now public.
1018 * java/lang/natString.cc: Include Locale.h.
1019 (toUpperCase): Added `locale' argument. Handle locale
1021 (toLowerCase): Added `locale' argument. Handle locale
1023 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1024 CAPITAL_I): New defines.
1025 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1028 (toUpperCase, toLowerCase): New methods. Variants which accept
1031 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1034 * java/util/PropertyPermission.java: Re-merged from Classpath.
1036 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1038 * java/text/StringCharacterIterator.java: Reindented.
1039 (setText): New method.
1041 2000-11-17 Mark Wielaard <mark@klomp.org>
1043 Merge with Classpath (changes by Bryce McKinlay)
1044 * java/util/jar/*.java: Reformat all to unofficial standard coding
1045 style. No changes of substance.
1047 2000-11-17 Mark Wielaard <mark@klomp.org>
1049 * java/util/zip/*.java: Javadoc updates.
1051 2000-11-17 Tom Tromey <tromey@cygnus.com>
1053 * java/text/CollationKey.java: Implement Comparable.
1054 (compareTo(Object)): New method.
1055 * java/text/Collator.java (compare(Object,Object)): New method.
1056 Implement Comparator.
1058 * java/util/zip/InflaterInputStream.java (available): New method.
1059 (close): New method.
1060 (read, available, skip, fill): Throw exception if stream closed.
1061 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1062 getNextEntry): Throw exception if closed.
1064 2000-11-16 Tom Tromey <tromey@cygnus.com>
1066 * java/io/PushbackReader.java: Merged with Classpath.
1067 * java/util/Arrays.java: Updated from Classpath.
1069 * scripts/blocks.pl: New file.
1070 * java/lang/Character.java (Subset): New class.
1071 (UnicodeBlock): New class.
1073 * java/lang/Math.java (toDegrees, toRadians): New methods.
1075 * java/lang/Float.java: Implement Comparable.
1076 (compareTo): New methods.
1077 * java/lang/Double.java: Implement Comparable.
1078 (compareTo): New methods.
1080 2000-11-16 Warren Levy <warrenl@cygnus.com>
1082 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1084 (listeners): Made transient.
1085 (source): Renamed from 'bean'.
1086 (children): New field for serialization.
1087 (propertyChangeSupportSerializedDataVersion): Ditto.
1088 (serialVersionUID): Ditto.
1089 (writeObject): New serialization method.
1090 (readObject): New serialization method.
1091 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1093 (listeners): Made transient.
1094 (source): Renamed from 'bean'.
1095 (children): New field for serialization.
1096 (vetoableChangeSupportSerializedDataVersion): Ditto.
1097 (serialVersionUID): Ditto.
1098 (writeObject): New serialization method.
1099 (readObject): New serialization method.
1100 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1101 to allow constructor to have a return type (i.e. the class that the
1102 constructor constructs).
1104 2000-11-14 Tom Tromey <tromey@cygnus.com>
1106 * Makefile.in: Rebuilt.
1107 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1110 2000-11-02 Warren Levy <warrenl@cygnus.com>
1112 * java/io/ObjectInputStream.java (readObject): Added code to
1113 conditionally dump out the serialized data.
1114 Handle ENDBLOCKDATA case a bit more gracefully since the current
1115 behavior doesn't seem to work as expected.
1116 (readStreamHeader): Added code for serialized data dumper.
1117 (readNextBlock): Ditto.
1118 (readFields): Ditto.
1119 (dump): New private static field for turning on/off dumper.
1120 (setDump): New native method.
1121 (dumpElement): New native method.
1122 (dumpElementln): New native method.
1123 * java/io/natObjectInputStream.cc (setDump): New method.
1124 (dumpElement): New method.
1125 (dumpElementln): New method.
1127 2000-11-02 Warren Levy <warrenl@cygnus.com>
1129 * java/net/InetAddress.java (addr): Renamed from 'address'.
1130 (address): New field to match Serialized Form doc.
1131 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1132 (family): New serialization field.
1133 (serialVersionUID): New field.
1134 (readObject): New method.
1135 (writeObject): New method.
1136 (getFamily): New native method.
1137 (InetAddress): Set family.
1138 * java/net/natInetAddress.cc (getFamily): New method.
1139 (addr): Renamed from 'address'.
1140 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1141 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1142 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1144 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1146 * java/util/AbstractList.java (SubList): Make it a top-level private
1148 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1150 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1151 * Makefile.in: Rebuilt.
1153 2000-11-02 Tom Tromey <tromey@cygnus.com>
1155 * Makefile.in: Rebuilt.
1156 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1159 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1161 * java/util/AbstractList.java (remove): Comment out modCount increment
1162 to work around compiler bug.
1165 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1167 * java/util/AbstractList.java: Throw messages with
1168 IndexOutOfBoundsExceptions.
1169 (listIterator()): Call listIterator(0).
1170 (size): New field. Initialize to size().
1171 (hasNext): Test position against size, not size().
1172 (remove): Increment knownMod by one instead of resetting it from
1175 (SubList.upMod): Removed.
1176 (SubList.set): Don't call upMod() or update knownMod.
1177 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1178 (SubList.remove): Ditto.
1179 (SubList.addAll): Don't call backingList.size(). Increment size from
1181 (SubList.iterator): New method. Call listIterator(0).
1182 (SubList.listIterator): New method. Restore code to return an anonymous
1183 listIterator implementation (with some changes).
1184 * java/util/AbstractSequentialList.java: Throw messages with
1185 IndexOutOfBoundsExceptions.
1186 (addAll): Add a specnote.
1187 * java/util/ArrayList.java (removeRange): Get the math right.
1188 (addAll): Increment modCount _before_ creating iterator.
1189 * java/util/LinkedList.java: Rewritten, mostly.
1191 2000-11-01 Tom Tromey <tromey@cygnus.com>
1193 * scripts/encodings.pl: Added `ASCII' alias.
1194 * Makefile.in: Rebuilt.
1195 * Makefile.am (convert_source_files): Added new files.
1196 * gnu/gcj/convert/Input_ASCII.java: New file.
1197 * gnu/gcj/convert/Output_ASCII.java: New file.
1198 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1199 out-of-range characters.
1200 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1201 (read): Swap bytes if required. Treat `count' as character count,
1203 (write): Likewise. Also, handle case where iconv fails on a given
1205 (init): Put encoding into exception.
1206 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1207 (static): Call iconv_init. Rebuilt alias list.
1208 (iconv_init): New private method.
1210 2000-11-01 Tom Tromey <tromey@cygnus.com>
1212 * Makefile.in: Rebuilt.
1213 * Makefile.am (install-exec-hook): Only make a single symlink, and
1214 remove the destination before making the link.
1215 * configure: Rebuilt.
1216 * configure.in: Call AC_PROG_LN_S.
1218 2000-10-31 Warren Levy <warrenl@cygnus.com>
1220 * jni.cc: Added include of java/lang/ThreadGroup.h.
1221 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1222 per change of 2000-10-05.
1224 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1226 * java/util/BitSet.java: Updated @specnote.
1228 * java/io/Reader.java: Merge docs from classpath.
1229 (skip): Synchronize on `lock'.
1230 * java/io/FileReader.java: Import correct implementation from
1232 * java/io/StringReader.java: Merge docs from classpath.
1233 (ready): Throw IOException if stream is closed.
1235 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1237 * java/util/AbstractCollection.java (addAll): Use size() instead of
1238 hasNext() in iterator loop.
1240 (contains): Ditto. Simplify loop.
1241 (containsAll): Ditto.
1246 (toString): Ditto. Use string concatenation operators, not
1248 * java/util/AbstractList.java (addAll): Use size() instead of
1249 hasNext() in iterator loop.
1252 (indexOf): Ditto. Don't take null check outside of the loop.
1253 (iterator): Return an AbstractListItr instead of anonymous class.
1254 (lastIndexOf): Use a for loop bounded by size() instead of
1255 hasPrevious() in iterator loop.
1256 (listIterator): Return an AbstractListItr.
1257 (removeRange): Remove bounds checking code and docs.
1258 (AbstractListItr): New inner class. Code moved here from
1260 (SubList.iterator): Removed. Use default implementation from
1261 AbstractList instead.
1262 (SubList.listIterator): As above.
1263 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1264 instead of hasNext() in iterator loop.
1265 (containsValue): Ditto.
1271 (toString): Ditto. Use string concatenation operators, not
1273 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1274 bounded by size() instead of hasNext() in iterator loop.
1275 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1276 part of normal execution flow. Do an explicit null check instead.
1277 * java/util/ArrayList.java (_iSize): Rename to `size'.
1278 (_arData): Rename to `data'.
1279 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1282 (removeRange): Make protected. Don't check bounds.
1283 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1285 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1287 (addAll (int, Collection)): Check lower bounds. Simplify exception
1289 (clone): Clone the data array too.
1290 (indexOf): Inline doesEqual().
1291 (lastIndexOf): Ditto.
1292 (clear): Don't set array data to null.
1293 (set): Check lower bounds. Simplify exception string.
1294 (toArray): Correct comment.
1295 (trimToSize): Don't update modCount, this is not a structural change.
1298 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1300 (toString): Declare `bit' as long, not int.
1301 (data): Made package-private, not private.
1303 2000-10-27 Warren Levy <warrenl@cygnus.com>
1305 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1306 array elements to true.
1308 2000-10-27 Warren Levy <warrenl@cygnus.com>
1310 * Makefile.am: Added locale files from Classpath.
1311 * Makefile.in: Rebuilt.
1312 * gnu/java/locale/Calendar.java: New file.
1313 * gnu/java/locale/Calendar_de.java: New file.
1314 * gnu/java/locale/Calendar_en.java: New file.
1315 * gnu/java/locale/Calendar_nl.java: New file.
1316 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1317 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1318 serialization compatibility.
1319 (scale): Made private.
1320 (serialVersionUID): New field.
1321 * java/math/BigInteger.java (ival): Made transient.
1322 (words): Made transient.
1323 (bitCount): New serialization field.
1325 (firstNonzeroByteNum): Ditto.
1326 (lowestSetBit): Ditto.
1329 (serialVersionUID): New field.
1330 (readObject): New method.
1331 (writeObject): New method.
1332 * java/util/BitSet.java (serialVersionUID): New field.
1333 * java/util/Calendar.java: Replaced with Classpath file.
1334 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1335 of getDefault() for TimeZone or Locale instead of passing nulls.
1336 * java/util/Locale.java (serialVersionUID): New field.
1337 (writeObject): New method.
1338 (readObject): New method.
1339 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1341 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1343 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1344 (core_java_source_files): Put java.lang, java.io, and java.util here.
1345 (ordinary_java_source_files): Order so that core_java_source_files are
1347 (java_source_files): Reorder so that special_java_source_files are
1349 * configure.in: Don't pass -I flag to gcj.
1350 * Makefile.in: Rebuilt.
1351 * configure: Rebuilt.
1353 2000-10-25 Tom Tromey <tromey@cygnus.com>
1355 * Makefile.in: Rebuilt.
1356 * Makefile.am (install-exec-hook): New target.
1358 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1360 * java/util/EventObject.java: Merged from classpath.
1362 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1365 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1367 * java/util/AbstractSet.java (equals): Re-installed original code.
1369 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1371 * Makefile.am: Added rules for libgcjx library.
1372 * Makefile.in: Rebuilt.
1373 * configure.in: Added check for X.
1374 * configure: Rebuilt.
1375 * gnu/awt/LightweightRedirector.java: New file.
1376 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1377 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1378 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1379 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1380 * gnu/awt/j2d/MappedRaster.java: New file.
1381 * gnu/awt/xlib/XCanvasPeer.java: New file.
1382 * gnu/awt/xlib/XEventLoop.java: New file.
1383 * gnu/awt/xlib/XEventQueue.java: New file.
1384 * gnu/awt/xlib/XFontMetrics.java: New file.
1385 * gnu/awt/xlib/XFramePeer.java: New file.
1386 * gnu/awt/xlib/XGraphics.java: New file.
1387 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1388 * gnu/awt/xlib/XPanelPeer.java: New file.
1389 * gnu/awt/xlib/XToolkit.java: New file.
1390 * gnu/gcj/xlib/Clip.java: New file.
1391 * gnu/gcj/xlib/Colormap.java: New file.
1392 * gnu/gcj/xlib/Display.java: New file.
1393 * gnu/gcj/xlib/Drawable.java: New file.
1394 * gnu/gcj/xlib/Font.java: New file.
1395 * gnu/gcj/xlib/GC.java: New file.
1396 * gnu/gcj/xlib/Pixmap.java: New file.
1397 * gnu/gcj/xlib/Screen.java: New file.
1398 * gnu/gcj/xlib/Visual.java: New file.
1399 * gnu/gcj/xlib/WMSizeHints.java: New file.
1400 * gnu/gcj/xlib/Window.java: New file.
1401 * gnu/gcj/xlib/WindowAttributes.java: New file.
1402 * gnu/gcj/xlib/XAnyEvent.java: New file.
1403 * gnu/gcj/xlib/XButtonEvent.java: New file.
1404 * gnu/gcj/xlib/XColor.java: New file.
1405 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1406 * gnu/gcj/xlib/XConnectException.java: New file.
1407 * gnu/gcj/xlib/XEvent.java: New file.
1408 * gnu/gcj/xlib/XException.java: New file.
1409 * gnu/gcj/xlib/XExposeEvent.java: New file.
1410 * gnu/gcj/xlib/XID.java: New file.
1411 * gnu/gcj/xlib/XImage.java: New file.
1412 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1413 * gnu/gcj/xlib/natClip.cc: New file.
1414 * gnu/gcj/xlib/natColormap.cc: New file.
1415 * gnu/gcj/xlib/natDisplay.cc: New file.
1416 * gnu/gcj/xlib/natDrawable.cc: New file.
1417 * gnu/gcj/xlib/natFont.cc: New file.
1418 * gnu/gcj/xlib/natGC.cc: New file.
1419 * gnu/gcj/xlib/natPixmap.cc: New file.
1420 * gnu/gcj/xlib/natScreen.cc: New file.
1421 * gnu/gcj/xlib/natVisual.cc: New file.
1422 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1423 * gnu/gcj/xlib/natWindow.cc: New file.
1424 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1425 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1426 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1427 * gnu/gcj/xlib/natXColor.cc: New file.
1428 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1429 * gnu/gcj/xlib/natXException.cc: New file.
1430 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1431 * gnu/gcj/xlib/natXImage.cc: New file.
1432 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1433 * java/awt/EventDispatchThread.java: Start thead on creation.
1435 2000-10-20 Tom Tromey <tromey@cygnus.com>
1437 From Arno J. Klaassen:
1438 * interpret.cc: Include <stdlib.h> for alloca.
1439 * defineclass.cc: Include <stdlib.h> for alloca.
1441 * Makefile.in: Rebuilt.
1442 * Makefile.am: Include deps.mk.
1443 (GCJCOMPILE): Added -MD, -MT, and -MF.
1444 ($(javao_files)): Don't depend on libgcj.zip.
1445 (all-recursive): New target.
1446 (%.lo:%.cc): Do dependency tracking.
1447 ($(nat_headers)): Don't depend on libgcj.zip.
1448 * configure: Rebuilt.
1449 * configure.in: Make .d files and deps.mk.
1451 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1453 * exception.cc: Don't #include "exception".
1454 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1456 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1457 * Makefile.in: Updated.
1459 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1461 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1462 * java/awt/peer/ComponentPeer.java (disable): Removed.
1465 (minimumSize): Removed.
1466 (preferredSize): Removed.
1469 * java/awt/peer/ListPeer.java (addItem): Removed.
1471 (minimumSize): Removed.
1472 (preferredSize): Removed.
1473 (setMultipleSelections): Removed.
1474 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1475 (remove): Renamed from removeMenu.
1476 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1478 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1479 (remove): Renamed from removeItem.
1480 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1481 (getMinimumSize): Removed.
1482 (getPreferredSize): Removed.
1483 (minimumSize): Removed.
1484 (preferredSize): Removed.
1485 (replaceText): Removed.
1486 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1487 (preferredSize): Removed.
1488 (getMinimumSize): Removed.
1489 (getPreferredSize): Removed.
1490 (setEchoCharacter): Removed.
1492 2000-10-10 Warren Levy <warrenl@cygnus.com>
1494 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1495 * java/sql/Date.java (serialVersionUID): New field.
1496 * java/sql/Time.java (serialVersionUID): New field.
1497 * java/sql/Timestamp.java (serialVersionUID): New field.
1498 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1499 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1500 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1501 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1502 (readObject): New serialization method.
1503 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1504 (serialVersionOnStream): New field.
1505 (readObject): New serialization method.
1506 (getMonetaryDecimalSeparator): New method.
1507 (setMonetaryDecimalSeparator): New method.
1508 * java/text/NumberFormat.java (maxFractionDigits): New field.
1509 (maxIntegerDigits): New field.
1510 (minFractionDigits): New field.
1511 (minIntegerDigits): New field.
1512 (serialVersionOnStream): New field.
1513 (serialVersionUID): New field.
1514 (readObject): New serialization method.
1515 (writeObject): New serialization method.
1516 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1517 (serialVersionOnStream): New field.
1518 (serialVersionUID): New field.
1519 (readObject): New serialization method.
1521 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1523 * configure.in (GCJ): Avoid bogus error message when looking for
1524 (and not finding) gcj in the build tree.
1525 * configure: Rebuilt.
1527 2000-10-09 Tom Tromey <tromey@cygnus.com>
1529 * configure: Rebuilt.
1530 * configure.in: Include sys/types.h when checking for socklen_t.
1531 From Arno J. Klaassen.
1533 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1535 * include/jvm.h: Enable __builtin_expect().
1537 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1538 the main program. Fix for PR libgcj/341.
1540 2000-10-07 Tom Tromey <tromey@cygnus.com>
1542 * java/util/Properties.java: Merged with Classpath version.
1544 2000-10-05 Tom Tromey <tromey@cygnus.com>
1546 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1547 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1548 * java/lang/Class.h (Object): Added `class$' field.
1549 * java/lang/Object.h (Object): Added `class$' field.
1550 * defineclass.cc (ClassClass): Use `class$' form.
1551 (ClassObject): Likewise.
1552 * resolve.cc (ClassObject): Use `class$' form.
1553 (ObjectClass): Likewise.
1554 * interpret.cc (ClassError): Removed.
1555 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1557 (IntegerClass): Likewise.
1558 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1560 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1561 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1562 SerializableClass): Likewise.
1563 Include Serializable.h, Cloneable.h.
1564 * java/lang/natSystem.cc (SystemClass): Removed.
1565 (init_properties): Use `class$' form.
1566 * java/lang/natObject.cc (CloneableClass): Removed.
1567 (clone): Use `class$' form.
1568 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1569 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1570 ConstructorClass): Likewise.
1571 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1572 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1573 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1574 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1576 (ClassClass): Likewise.
1577 * include/jvm.h (StringClass): Use `class$' form.
1578 * prims.cc (ObjectClass): Removed.
1579 (_Jv_RunMain): Use `class$' form.
1580 (_Jv_AllocObject): Likewise.
1581 * jni.cc (ClassClass): Use `class$' form.
1582 (ThrowableClass): Likewise.
1583 (ObjectClass): Likewise.
1584 (MethodClass): Likewise.
1585 (ThreadGroupClass): Likewise.
1586 (NativeThreadClass): Likewise.
1587 * boehm.cc (ObjectClass): Removed.
1588 (ClassClass): Removed.
1589 (_Jv_MarkObj): Use `class$' form.
1590 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1593 2000-10-05 Warren Levy <warrenl@cygnus.com>
1595 * Makefile.am: Removed java/io/Replaceable.java and
1596 java/io/Resolvable.java.
1597 * Makefile.in: Rebuilt.
1598 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1600 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1602 (processResolution): Handle readResolve method via reflection with
1603 removal of Resolvable interface.
1604 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1605 method via reflection with removal of Replaceable interface.
1606 * java/io/Replaceable.java: Removed.
1607 * java/io/Resolvable.java: Removed.
1608 * java/security/Key.java (serialVersionUID): New field.
1609 * java/security/Provider.java (serialVersionUID): New field.
1610 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1612 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1614 * java/sql/DataTruncation.java (serialVersionUID): New field.
1615 * java/sql/SQLException.java (serialVersionUID): New field.
1616 * java/sql/SQLWarning.java (serialVersionUID): New field.
1617 * java/util/Date.java (serialVersionUID): New field.
1618 (millis): Made transient.
1619 (readObject): New method.
1620 (writeObject): New method.
1622 2000-10-05 Tom Tromey <tromey@cygnus.com>
1624 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1626 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1628 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1629 (JvRunMain): Set _Jv_argv and _Jv_argc.
1630 * java/awt/Component.java: Minor fixes.
1631 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1632 * java/awt/Toolkit.java (systemEventQueue): Removed.
1633 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1634 * java/awt/Window.java (getToolkit): Don't call super.
1635 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1636 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1637 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1638 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1639 * gnu/awt/gtk/GtkFramePeer.java: New file.
1640 * gnu/awt/gtk/GtkMainThread.java: New file.
1641 * gnu/awt/gtk/GtkToolkit.java: New file.
1642 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1643 * gnu/awt/gtk/gtkcommon.cc: New file.
1644 * gnu/awt/gtk/gtkcommon.h: New file.
1645 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1646 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1647 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1648 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1649 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1650 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1652 2000-09-30 Tom Tromey <tromey@cygnus.com>
1654 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1655 interrupted before modifying the cv's wait set.
1658 2000-09-30 Hans Boehm <boehm@acm.org>
1659 Bryce McKinlay <bryce@albatross.co.nz>
1661 Implement bitmap descriptor based marking for Boehm GC.
1663 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1664 * configure: Rebuilt.
1665 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1666 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1667 method get_finalizer().
1668 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1669 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1670 (_Jv_AllocObj): Add new jclass parameter.
1671 (_Jv_AllocArray): Ditto.
1672 (_Jv_BuildGCDescr): New prototype.
1673 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1674 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1675 get_finalizer() instead of direct finalizer vtable offset.
1676 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1677 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1678 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1679 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1680 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1681 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1682 (_Jv_DetermineVTableIndex): Ditto.
1683 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1684 calculations to account for new gc_descr field.
1685 * boehm.cc: #include gc_gcj.h.
1686 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1687 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1688 New commentary from HB. Mark the classes vtable.
1689 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1690 (GC_DEFAULT_DESCR): New #define.
1691 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1692 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1693 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1694 scan conservativly if size is less than min_heap_addr. Set vtable
1695 pointer of new object before returning.
1696 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1697 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1698 allocation for obj_kind_x.
1699 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1700 (_Jv_AllocObj): Set vtable on returned object.
1701 (_Jv_AllocArray): Ditto.
1702 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1703 (_Jv_NewPrimArray): Ditto.
1704 (_Jv_AllocObj): Declare as a friend.
1705 (_Jv_AllocArray): Ditto.
1706 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1707 from &ObjectClass into new array class. Remove offset-by-one
1708 adjustments from `method' size calculations to account for gc_descr
1711 2000-09-26 Tom Tromey <tromey@cygnus.com>
1713 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1714 `remove', not `add'.
1716 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1718 * java/lang/natSystem.cc (file_encoding): Added return statement.
1720 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1722 * Makefile.am: Re-work shell commands that exceeded command-line
1724 * Makefile.in: Rebuilt.
1726 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1728 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1729 * java/lang/natDouble.cc: Likewise.
1730 * java/lang/reflect/natMethod.cc: Likewise.
1731 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1733 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1735 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1737 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1738 * acinclude.m4: Arrange for automake to not bring in a new
1739 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1740 * Makefile.am: Leave it up to automake to subst GCJ.
1741 * aclocal.m4, configure, Makefile.in: Rebuilt.
1743 2000-09-13 Tom Tromey <tromey@cygnus.com>
1745 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1746 (get): Ensure Boolean class is initialized.
1747 * java/lang/reflect/natField.cc (BooleanClass): New define.
1748 (get): Ensure Boolean class is initialized.
1750 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1752 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1753 Initialize with anonymous class.
1754 (compareToIgnoreCase): New method.
1756 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1757 (uncaughtException): Set had_uncaught_exception.
1758 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1759 exit with error status if set.
1760 (_Jv_RunMain): Ditto.
1762 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1764 * configure: Rebuilt with new ../libtool.m4.
1766 2000-09-11 Tom Tromey <tromey@cygnus.com>
1768 * java/lang/reflect/Field.java (toString): Don't rely on
1771 2000-09-08 Tom Tromey <tromey@cygnus.com>
1773 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1774 default decoder use iconv.
1775 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1776 Let default encoder use iconv.
1777 * configure: Rebuilt.
1778 * configure.in: Check for nl_langinfo and <langinfo.h>.
1779 * java/lang/natSystem.cc (file_encoding): New function.
1780 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1782 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1784 * acinclude.m4: Simplify the tests for CC and CXX.
1785 * aclocal.m4, configure: Rebuilt.
1787 * acinclude.m4: Include libtool macros from the source tree.
1788 * aclocal.m4, configure: Rebuilt.
1790 2000-09-08 Warren Levy <warrenl@cygnus.com>
1792 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1793 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1794 * java/io/File.java (writeObject): Added.
1795 (readObject): Added.
1796 (serialVersionUID): Added.
1797 * java/io/ObjectOutputStream.java (writeObject): Initialized
1798 fieldsAlreadyWritten before recursion rather than after.
1799 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1800 * java/io/OptionalDataException.java (serialVersionUID): Added.
1801 (OptionalDataException): Made package private.
1802 * java/io/SyncFailedException.java (SyncFailedException): Removed
1803 default constructor to match spec.
1804 * java/lang/Boolean.java (serialVersionUID): Added.
1805 * java/lang/Byte.java (serialVersionUID): Added.
1806 * java/lang/Character.java (serialVersionUID): Added.
1807 * java/lang/Double.java (serialVersionUID): Added.
1808 * java/lang/Float.java (serialVersionUID): Added.
1809 * java/lang/Integer.java (serialVersionUID): Added.
1810 * java/lang/Long.java (serialVersionUID): Added.
1811 * java/lang/Number.java (serialVersionUID): Added.
1812 * java/lang/Short.java (serialVersionUID): Added.
1813 * java/lang/String.java (serialVersionUID): Added.
1814 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1816 * java/lang/reflect/InvocationTargetException.java
1817 (serialVersionUID): Added.
1818 * java/net/URL.java (handler): Made transient.
1819 (hashCode): Added field for serialization, per spec. and use
1820 cached value if available.
1821 (serialVersionUID): Added.
1822 (URL): Initialize hashCode.
1823 (set): Adjust hashCode.
1824 (readObject): New Method to initialize the protocol handler when
1826 (writeObject): New method.
1827 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1828 * java/text/Collator.java: Removed 'implements Serializable'.
1829 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1830 * java/util/Properties.java (serialVersionUID): Added.
1831 * java/util/Random.java (serialVersionUID): Added.
1832 (seed): Made private.
1833 (nextNextGaussian): Made private.
1834 (haveNextNextGaussian): Made private.
1835 * java/util/Stack.java (serialVersionUID): Added.
1836 * java/util/TimeZone.java (serialVersionUID): Added.
1837 * java/util/Vector.java (serialVersionUID): Added.
1839 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1841 * Makefile.am (Thread.h): Don't be friends with native threads
1843 * Makefile.in: Rebuilt.
1844 * java/lang/Thread.java (interrupt_flag): Make package-private.
1846 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
1848 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1849 to avoid long long division.
1851 2000-09-06 Tom Tromey <tromey@cygnus.com>
1853 * java/lang/reflect/Constructor.java (toString): Use `getName' for
1855 * java/lang/reflect/Method.java (toString): Use `getName' for
1858 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1859 `args' if method takes no parameters.
1861 Fix for PR java.lang/339:
1862 * java/lang/natPosixProcess.cc (fail): New function.
1863 (cleanup): New function.
1864 (startProcess): Use them. Create pipe so child can communicate
1865 exec failure back to parent.
1867 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1869 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1871 (send): Undo last patch. Remove the label only.
1873 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
1875 * java/net/natInetAdress.cc: Ditto.
1877 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1879 2000-09-05 Tom Tromey <tromey@cygnus.com>
1881 * doc/cni.sgml: Updated from master copy.
1883 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1885 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
1887 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
1889 * java/lang/fdlibm.h: #undef __P if previously defined.
1890 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
1891 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
1895 2000-09-04 Tom Tromey <tromey@cygnus.com>
1897 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
1900 2000-09-04 Anthony Green <green@redhat.com>
1902 Fix for PR java.io/203:
1903 * java/io/File.java (createTempFile): Obey directory argument.
1904 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
1905 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
1906 variable to set java.io.tmpdir on non-WIN32 systems.
1908 2000-09-04 Anthony Green <green@redhat.com>
1910 * java/io/File.java (deleteOnExit): New method.
1911 * gnu/gcj/runtime/FileDeleter.java: New class.
1912 * java/lang/natRuntime.cc (exit): Call
1913 FileDeleter.deleteOnExitNow()
1914 * Makefile.am: Add FileDeleter.java.
1915 * Makefile.in: Rebuilt.
1917 2000-09-02 Tom Tromey <tromey@cygnus.com>
1919 * Makefile.in: Rebuilt.
1920 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
1921 environment variable.
1923 2000-09-01 Andrew Haley <aph@redhat.com>
1925 * java/io/StreamTokenizer.java: Don't throw a
1926 NumberFormatException if a field is numeric as far as the
1927 StreamTokenizer is concerned but not as far as Double.valueOf() is
1928 concerned: return a zero instead.
1930 2000-08-30 Tom Tromey <tromey@cygnus.com>
1932 * Makefile.in: Rebuilt.
1933 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
1935 2000-08-28 Tom Tromey <tromey@cygnus.com>
1937 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
1938 gnu/gcj/awt/ComponentDataBlitOp.java,
1939 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
1940 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
1941 java/awt/color/ICC_ColorSpace.java,
1942 java/awt/color/ICC_Profile.java,
1943 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
1944 java/awt/image/ComponentColorModel.java,
1945 java/awt/image/ComponentSampleModel.java,
1946 java/awt/image/DataBuffer.java,
1947 java/awt/image/DataBufferByte.java,
1948 java/awt/image/DataBufferInt.java,
1949 java/awt/image/DataBufferUShort.java,
1950 java/awt/image/DirectColorModel.java,
1951 java/awt/image/IndexColorModel.java,
1952 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
1953 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
1954 java/awt/image/SinglePixelPackedSampleModel.java,
1955 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
1956 Removed Latin-1 copyright symbols.
1957 * java/util/zip/ZipFile.java: Indentation fixes.
1959 2000-08-27 Mark Wielaard <mark@klomp.org>
1961 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
1962 constructor, close can delete the file, finalize calls close.
1963 * java/util/jar/JarFile.java: Constructor that takes mode now
1966 2000-08-27 Anthony Green <green@redhat.com>
1968 * java/util/ArrayList.java, java/util/Timer.java,
1969 java/util/LinkedList.java, java/util/TimerTask.java,
1970 java/util/HashMap.java, java/util/AbstractMap.java,
1971 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
1972 java/util/SortedSet.java: Imported from GNU Classpath.
1973 * Makefile.in: Rebuilt.
1974 * Makefile.am: Added new files.
1976 2000-08-26 Anthony Green <green@redhat.com>
1978 * Makefile.in: Rebuilt.
1979 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
1982 * prims.cc: Include ClassLoader.h.
1983 (_Jv_RunMain): When executing jar files, classpath must be the jar
1984 file only. Lose our reference to the system ClassLoader in order
1985 to get a new one with the correct classpath.
1986 * java/lang/natSystem.cc (init_properties): When executing a jar
1987 file, only use the jar file for java.class.path.
1989 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
1990 for bytecode archives.
1992 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
1993 exists, but not Main-Class.
1995 2000-08-23 Mark Wielaard <mark@klomp.org>
1997 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
1998 return -1 when fill() has no more data for the Inflater.
2000 2000-08-23 Mark Wielaard <mark@klomp.org>
2002 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2003 write(String) already does.
2005 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2007 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2008 to `alive_flag', call `init'.
2009 (init): New native method.
2010 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2013 2000-08-21 Mark Wielaard <mark@klomp.org>
2015 * Makefile.in: Rebuilt.
2016 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2018 (java/lang/reflect/Field.h): Likewise.
2019 (java/lang/reflect/Method.h): Likewise.
2020 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2023 2000-08-21 Tom Tromey <tromey@cygnus.com>
2025 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2028 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2030 * java/lang/natSystem.cc (init_properties): Change sourceware
2031 reference to sources.redhat.com.
2033 * include/java-props.h: Add _Jv_Jar_Class_Path.
2034 * prims.cc: Ditto. Set it from `gij -jar file' option.
2036 * java/lang/natSystem.cc (init_properties): Set java.class.path
2038 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2040 * java/util/PropertyPermission.java: Import from GNU Classpath.
2041 * Makefile.in: Rebuilt.
2042 * Makefile.am: Add java/util/PropertyPermission.java.
2043 * java/lang/System.java: Add setProperty method.
2045 * gij.cc (main): Add -jar option to execute jar files.
2046 (help): Describe -jar option.
2047 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2048 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2049 * gnu/gcj/runtime/FirstThread.java (main): New method.
2051 * java/util/jar/Attributes.java: Correct comment spelling.
2053 2000-08-20 Mark Wielaard <mark@klomp.org>
2055 * java/util/zip/Adler32.java: Make private variables really private
2056 * java/util/zip/CRC32.java: Make private variables really private
2057 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2059 * java/util/zip/InflaterInputStream.java: skip() could skip to
2061 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2062 * java/util/zip/ZipFile.java: size() new 1.2 method
2063 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2064 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2067 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2069 * java/util/jar/JarFile.java: Don't call
2070 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2073 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2075 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2076 Read the entire contents of the class file, not just what is
2079 * java/net/JarURLConnection.java: getEntry doesn't take any
2080 arguments. Return null if element is null.
2082 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2083 size from the archive, not the inflated size.
2085 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2086 java.util.zip.ZipFile.getEntry.
2088 * gij.cc (help): Change sourceware reference to
2091 2000-08-19 Tom Tromey <tromey@cygnus.com>
2093 * java/util/zip/ZipInputStream.java (createZipEntry):
2096 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2098 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2099 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2100 java/util/jar/JarInputStream.java,
2101 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2102 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2103 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2104 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2105 java/security/cert/Certificate.java,
2106 java/security/cert/CertificateEncodingException.java,
2107 java/security/cert/CertificateException.java,
2108 java/security/cert/CertificateExpiredException.java,
2109 java/security/cert/CertificateFactory.java,
2110 java/security/cert/CertificateFactorySpi.java,
2111 java/security/cert/CertificateNotYetValidException.java,
2112 java/security/cert/CertificateParsingException.java,
2113 java/security/cert/X509CRL.java,
2114 java/security/cert/X509CRLEntry.java,
2115 java/security/cert/X509Certificate.java,
2116 java/security/cert/X509Extension.java: Imported from Classpath.
2117 * java/util/Hashtable.java: Imported from Classpath.
2119 * java/util/zip/ZipInputStream.java: Create stub for
2122 * gcj/javaprims.h: Updated class list.
2124 * Makefile.in, gcj/Makefile.in: Rebuilt.
2125 * Makefile.am (ordinary_java_source_files): Add these new classes.
2127 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2129 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2130 * gnu/gcj/awt/GLightweightPeer.java: New file.
2131 * java/awt/BorderLayout.java: Implemented all methods.
2132 * java/awt/Button.java (actionListener, actionCommand): Renamed
2133 and modifier change.
2134 (addNotify): Call super.
2135 (dispatchEventImpl): New method.
2136 (getListeners): New method.
2137 (label): Made package-private, not private.
2138 * java/awt/Canvas.java: Implemented class body.
2139 * java/awt/Color.java (brighter): New method.
2140 (darker): New method.
2141 (hashCode): New method.
2142 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2143 (getGraphicsConfiguration): Delegate to
2144 getGraphicsConfigurationImpl().
2145 (getGraphicsConfigurationImpl): New method.
2146 (getToolkit): Only return value from peer if not null.
2147 (isDisplayable): Check with parent.
2148 (isShowing): No parent implies not showing.
2149 (getForeground): Check parent property if local is null.
2150 (getBackground): Likewise.
2151 (getFont): Likewise.
2152 (setForeground): Inform peer.
2153 (setBackground): Likewise
2154 (setLocale): Invalidate component.
2155 (getColorModel): Implemented.
2156 (setLocation): Invalidate, or ignore if no change.
2157 (setSize): Invalidate, or ignore if no change.
2158 (setBounds): Invalidate, or ignore if no change.
2159 (isOpaque): By default, heavyweight implies opaque.
2160 (isLightweight): Implemented.
2161 (getMaximumSize): Implemented.
2162 (doLayout): Implemented, NOP.
2163 (validate): Implemented, NOP.
2164 (invalidate): Only propagate to parent if parent was valid.
2165 (getGraphics): Implemented.
2166 (getFontMetrics): Implemented.
2167 (update): Implemented.
2168 (paintAll): Implemented.
2169 (repaint): Implemented all repaint methods.
2170 (print): Implemented.
2171 (printAll): Implemented.
2172 (createImage): Implemented.
2173 (dispatchEvent): Give the peer a chance to handle the event.
2174 (dispatchEventImpl): Dispatch paint events.
2175 (enableEvents): Lightweights enable events on parent component.
2176 (coalesceEvents): Coalesce paint events, and select event type
2178 (coalescePaintEvents): New method.
2179 (processEvent): Fix unfortunate ordering of statements, and call
2180 correct method for MOUSE_CLICKED.
2181 (processPaintEvent): New method.
2182 (addNotify): Allow container to notify children before event
2183 mask is set in peer.
2184 (addNotifyContainerChildren): New method.
2185 (removeNotify): Visibility should not change on removeNotify.
2186 (paramString): Implemented.
2187 (list): Implemented two of the list methods.
2188 * Container (myInsets): Removed, insets are managed by peer.
2189 (getInsets): Query peer.
2190 (addImpl): Fix reparenting, enable events for lightweights,
2191 initialize component array.
2192 (validate): Call doLayout in validateTree() instead.
2193 (validateTree): Do nothing if already valid. Call beginValidate(),
2194 endValidate() on peer. Call validateTree() instead of validate()
2195 for children that are containers. Mark valid after validation of
2197 (setFont): Partial implementation.
2198 (paint): Implemented.
2199 (visitChildren): New method.
2200 (visitChild): New method.
2201 (update): Implemented.
2202 (print): Implemented.
2203 (paintComponents): Implemented.
2204 (printComponents): Consider translation and clipping.
2205 (getComponentAt): Ignore invisible children. Return this if no
2207 (addNotify): Call super.
2208 (addNotifyContainerChildren): New method.
2209 (paramString): Implemented.
2210 (list): Implemented.
2211 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2213 (invokeLater): Likewise.
2214 (isDispatchThread): Likewise.
2215 * java/awt/FontMetrics (getLeading): Formula change.
2216 (getDescent): Consider leading also.
2217 (getMaxAscent): Default to getAscent().
2218 (getMaxDescent): Default to getDescent.
2219 (getMaxAdvance): Return value signifying unknown.
2220 (charWidth): Both methods implemented.
2221 (charsWidth): Implemented.
2222 (bytesWidth): Implemented.
2223 (getWidths): Implemented.
2224 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2226 (Frame): Rearragend constuctor chaining to disallow null being
2227 passed as a graphics configuration.
2228 (getTitle): Return empty string if null.
2230 (getIconImage): New method.
2231 (setIconImage): New method.
2232 (finalize): New method.
2233 (setMenuBar): Notify peer.
2234 (isResizable): New method.
2235 (setResizable): New method.
2236 (getState): New method.
2238 (remove): Implemented.
2239 (removeNotify): New method.
2240 (getFrames): New method.
2241 * java/awt/Graphics.java: Implemented body of class.
2242 * java/awt/Graphics2D.java: New file.
2243 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2244 * java/awt/Image.java: Implemented body of class.
2245 * java/awt/Panel.java (Panel): Call correct super constructor.
2246 (addNotify): Implemented.
2247 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2248 * java/awt/RenderingHints.java: New file.
2249 * java/awt/Toolkit.java (createComponent): Implemented.
2250 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2251 * java/awt/Window.java (Window): Two new constructors. Reordered
2252 constructor chaining.
2253 (getGraphicsConfigurationImpl): New method.
2254 (finalize): Call super.
2255 (addNotify): Call super.
2256 (pack): Do layout stuff.
2257 (show): Ensure that peer exists and that component is valid.
2258 (dispose): Dispose owned children.
2259 (getOwner): Simplify code, casting null pointers is valid.
2260 (getGraphicsConfiguration): Ask peer if local value is null.
2261 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2263 * java/awt/image/BufferedImage.java: New file.
2264 * java/awt/image/RasterOp.java: New file.
2265 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2266 More powerfull replacement for getColorModel().
2267 (getColorModel) Removed.
2268 (setEventMask) New method.
2269 * Makefile.am: Added new files.
2270 * Makefile.in: Rebuilt.
2272 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2274 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2275 (finit_leg_name): New global.
2276 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2277 `$finit$'. This is a backward compatibility hack.
2278 (java::lang::Class::_getMethods): Likewise.
2280 2000-08-15 Andrew Haley <aph@cygnus.com>
2282 * include/jvm.h (_Jv_HashCode): New hash code.
2284 2000-08-15 Tom Tromey <tromey@cygnus.com>
2286 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2288 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2290 * THANKS: More thanks.
2292 2000-08-10 Tom Tromey <tromey@cygnus.com>
2294 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2296 (connect): Likewise.
2298 (getOption): Likewise.
2299 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2300 case when errno not set.
2303 (receive): Likewise.
2304 (mcastGrp): Likewise.
2305 (setOption): Likewise.
2306 (getOption): Likewise.
2308 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2309 John Stracke <francis@ecal.com>
2311 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2312 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2314 (disconnect): Don't unset connected flag.
2315 (getHeaderField (String)): Call connect() if not connected.
2316 (getHeaderField (int)): Ditto.
2317 (getHeaderFieldKey): Ditto.
2318 (getHttpHeaders): Don't call connect().
2319 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2320 gotResponseVals): New fields.
2321 (getResponseCode): Call getResponseVals() conditionally.
2322 (getResponseMessage): Ditto.
2323 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2325 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2327 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2328 * Makefile.in: Rebuilt.
2329 * java/awt/Color.java (getTransparency): New method.
2330 * java/awt/Component.java: Various updates.
2331 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2332 after dealing with children.
2333 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2334 * java/awt/Window.java: Various new methods and updates.
2335 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2337 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2338 * java/awt/event/WindowEvent.java (paramString): Ditto.
2339 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2341 * java/awt/geom/Point2D.java (clone): Ditto.
2342 * java/awt/geom/RectangularShape.java (clone): Ditto.
2343 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2344 isAlphaPremultiplied): Make package-private, not private.
2346 2000-08-08 Tom Tromey <tromey@cygnus.com>
2348 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2349 surrogate characters.
2350 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2352 (write): Correct handling of surrogate characters.
2354 2000-08-07 Tom Tromey <tromey@cygnus.com>
2356 * java/lang/reflect/Method.java (hashCode): Use getName().
2357 (toString): Likewise.
2358 * java/lang/reflect/natMethod.cc (getType): Initialize
2361 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2363 * java/lang/reflect/Field.java (toString): Correct formatting.
2366 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2368 (receive): Streamlined.
2370 2000-08-05 Tom Tromey <tromey@cygnus.com>
2372 * java/io/PrintWriter.java: Merged comments from Classpath.
2373 (printlnUnsynchronized): Removed.
2374 (println()): Print the separator.
2375 (println): Call println(), not printlnUnsynchronized.
2376 (out): Now protected, to match spec.
2378 2000-08-04 Tom Tromey <tromey@cygnus.com>
2380 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2381 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2384 2000-08-03 Warren Levy <warrenl@cygnus.com>
2386 * java/io/ObjectInputStream.java (readFields): Turn off
2387 readDataFromBlock while reading via GetField.
2388 (GetField$1.get(String, Object)): Pass Class of default value to
2390 (getField): Allow for null default values.
2392 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2393 (PutField$1.put): Fixed calls of checkType in most of the put
2394 methods to pass the correct parameter.
2395 (PutField$1.put(String, Object)): Allow for null value arg.
2396 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2399 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2400 typo in spec'ed field name.
2401 (getSerialPersistentFields): Changed spelling of method to match
2402 the correct spelling of the spec'ed field name.
2404 2000-08-03 Tom Tromey <tromey@cygnus.com>
2406 * Makefile.in: Rebuilt.
2407 * Makefile.am (awt_java_source_files): Added new files.
2409 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2411 * Makefile.am: Add new AWT stubs.
2412 * java/awt/Canvas.java: New placeholder class.
2413 * java/awt/Checkbox.java: Ditto.
2414 * java/awt/CheckboxMenuItem.java: Ditto.
2415 * java/awt/Choice.java: Ditto.
2416 * java/awt/Dialog.java: Ditto.
2417 * java/awt/FileDialog.java: Ditto.
2418 * java/awt/List.java: Ditto.
2419 * java/awt/ScrollPane.java: Ditto.
2420 * java/awt/TextField.java: Ditto.
2421 * java/awt/datatransfer/Clipboard.java: Ditto.
2422 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2423 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2424 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2425 Some commented out. Partially implemented.
2426 * java/awt/natToolkit.cc: Removed file.
2428 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2430 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2431 Fixes "make -j" builds.
2432 * Makefile.in: Rebuild.
2434 2000-08-02 Tom Tromey <tromey@cygnus.com>
2436 * Makefile.in: Rebuilt.
2437 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2438 * java/net/natPlainSocketImpl.cc: Include posix.h.
2439 (accept): Use _Jv_select.
2440 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2441 (receive): Use _Jv_select.
2442 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2443 (available): Use _Jv_select.
2444 * java/lang/natSystem.cc: Include posix.h.
2445 (currentTimeMillis): Use _Jv_gettimeofday.
2446 * include/posix.h: New file.
2447 * posix.cc: New file.
2449 * scripts/encodings.pl: New file.
2450 * Makefile.in: Rebuilt.
2451 * Makefile.am (convert_source_files): Added IOConverter.java.
2452 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2454 (getDefaultDecodingClass): Canonicalize default encoding name.
2455 (getEncoder): Likewise.
2456 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2458 (getDefaultDecodingClass): Canonicalize default encoding name.
2459 (getDecoder): Likewise.
2460 * gnu/gcj/convert/IOConverter.java: New file.
2462 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2464 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2465 to match C declaration in ffi.h.
2466 * Makefile.am: Add java/awt/Button.java.
2467 * Makefile.in: Rebuilt.
2469 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2471 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2472 cast of the second argument to `ffi_raw_call' changed to match
2475 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2477 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2478 argument to `ffi_raw_call' changed to match prototype.
2480 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2482 * java/awt/Component.java (toString): Implemented.
2483 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2484 dispatchEvent() to dispatch the event.
2485 (removeImpl): Ditto.
2487 2000-07-30 Anthony Green <green@redhat.com>
2489 * java/awt/Component.java: Add treeLock object.
2490 (getTreeLock): Implement.
2491 (isShowing): Implement.
2493 2000-07-30 Tom Tromey <tromey@cygnus.com>
2495 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2497 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2499 * java/awt/Window.java (addNotify): Wrote.
2500 (addWindowListener): Wrote.
2502 (getWarningString): Wrote.
2503 (processEvent): Wrote.
2504 (processWindowEvent): Wrote.
2505 (removeWindowListener): Wrote.
2506 (show): Call validate(), setVisible().
2510 * java/awt/Toolkit.java (createWindow): Declare.
2512 * java/awt/Frame.java (addNotify): Use getToolkit to find
2515 * java/awt/Component.java (invalidate): Wrote.
2517 (getToolkit): Wrote.
2519 * java/awt/Container.java (addContainerListener): Removed
2521 (removeContainerListener): Likewise.
2523 (add(Component)): Use it.
2524 (add(String,Component)): Likewise.
2525 (add(Component,int)): Likewise.
2526 (add(Component,Object)): Likewise.
2527 (add(Component,Object,int)): Likewise.
2529 (getAlignmentX): Wrote.
2530 (getAlignmentY): Wrote.
2531 (getComponentAt): Wrote.
2532 (getMaximumSize): Wrote.
2533 (invalidate): Wrote.
2534 (list(PrintStream,int)): Wrote.
2535 (list(PrintWriter,int)): Wrote.
2536 (getMinimumSize): Wrote.
2537 (getPreferredSize): Wrote.
2538 (printComponents): Wrote.
2539 (processContainerEvent): Look at containerListener, not
2541 (remove): Added event processing and peer destruction.
2542 (removeAll): Use remove.
2543 (removeNotify): Wrote.
2545 (validateTree): Wrote.
2547 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2548 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2549 * java/awt/Container.java (addNotify): Don't create Container
2551 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2553 2000-07-30 Tom Tromey <tromey@cygnus.com>
2555 * java/awt/Container.java (remove(int)): Wrote.
2556 (remove(Component)): Wrote.
2557 (add(Component)): Wrote.
2558 (add(Component,int)): Wrote.
2560 (addNotify): Set our own peer.
2561 * java/awt/Scrollbar.java (listeners): Changed type.
2562 (Scrollbar): Don't initialize listeners.
2564 (setValue): Call setValues.
2565 (setMinimum): Likewise.
2566 (setMaxPriority): Likewise.
2567 (setVisibleAmount): Likewise.
2569 (setUnitIncrement): Forward to peer.
2570 (setLineIncrement): Call setUnitIncrement.
2571 (setPageIncrement): Call setBlockIncrement.
2572 (setBlockIncrement): Forward to peer.
2573 (addAdjustmentListener): Rewrote.
2574 (removeAdjustmentListener): Rewrote.
2575 (processAdjustmentEvent): Rewrote.
2576 (paramString): Wrote.
2577 * Makefile.in: Rebuilt.
2578 * Makefile.am (awt_java_source_files): Added Button.java.
2579 * java/awt/Button.java: New file.
2580 * java/awt/Toolkit.java (createLabel): Declare.
2581 (createButton): Likewise.
2582 (createScrollbar): Likewise.
2583 (createContainer): Likewise.
2584 * java/awt/Label.java (addNotify): Wrote.
2585 (setAlignment): Call setAlignment in the peer.
2586 (setText): Call setText in the peer.
2588 2000-07-28 Warren Levy <warrenl@cygnus.com>
2590 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2591 NotSerializableException with just the class name.
2593 2000-07-26 Andrew Haley <aph@cygnus.com>
2595 * interpret.cc (continue1): Insert missing break into switch.
2597 2000-07-28 Warren Levy <warrenl@cygnus.com>
2599 * java/io/ObjectStreamException.java: Made constructors protected.
2601 2000-07-27 Tom Tromey <tromey@cygnus.com>
2603 * java/io/OutputStreamWriter.java (close): Only flush if not
2606 2000-07-27 Warren Levy <warrenl@cygnus.com>
2608 * mauve-libgcj: Activated serialization tests.
2609 * gcj/field.h (getModifiers): Mask off unknown flags.
2610 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2611 spurious bits don't cause discrepancies.
2612 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2613 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2614 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2615 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2616 * java/lang/Throwable.java (serialVersionUID): New field.
2617 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2618 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2620 * java/lang/reflect/natMethod.cc: Ditto.
2621 * java/security/Key.java (serialVersionUID): Removed field for now.
2622 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2623 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2625 2000-07-22 Tom Tromey <tromey@cygnus.com>
2627 * java/awt/geom/RectangularShape.java (getPathIterator):
2630 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2632 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2633 stub libjava/java/awt/ColorModel.java which was located in the
2635 * libjava/java/awt/image/ComponentColorModel.java: New file.
2636 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2637 * libjava/java/awt/image/DataBuffer.java: New file.
2638 * libjava/java/awt/image/DataBufferByte.java: New file.
2639 * libjava/java/awt/image/DataBufferInt.java: New file.
2640 * libjava/java/awt/image/DataBufferUShort.java: New file.
2641 * libjava/java/awt/image/DirectColorModel.java: New file.
2642 * libjava/java/awt/image/PackedColorModel.java: New file.
2643 * libjava/java/awt/image/Raster.java: New file.
2644 * libjava/java/awt/image/SampleModel.java: New file.
2645 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2647 * libjava/java/awt/image/IndexColorModel.java: New file.
2648 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2649 java.awt.ColorModel stub.
2651 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2652 * gnu/gcj/util/Buffers.java: New file, utility class.
2654 * libjava/Makefile.am: Updated to include new files.
2655 * libjava/Makefile.in: Rebuilt.
2657 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2659 * java/io/StreamTokenizer.java: Merged with classpath.
2661 2000-07-20 Tom Tromey <tromey@cygnus.com>
2663 * Makefile.in: Rebuilt.
2664 * Makefile.am (awt_java_source_files): Updated for new files.
2665 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2666 * java/awt/Label.java: New file.
2667 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2668 (createIntersection, createUnion, getBounds2D): New methods.
2669 * java/awt/Scrollbar.java: New file.
2670 * java/awt/Shape.java: Updated to 1.2.
2671 * java/awt/geom/AffineTransform.java: New file.
2672 * java/awt/geom/Ellipse2D.java: New file.
2673 * java/awt/geom/NoninvertibleTransformException.java: New file.
2674 * java/awt/geom/PathIterator.java: New file.
2675 * java/awt/geom/Rectangle2D.java: New file.
2676 * java/awt/geom/RectangularShape.java: New file.
2677 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2678 * java/awt/geom/IllegalPathStateException.java: New file.
2680 * scripts/showval.java: New file.
2682 * scripts/classes.pl (scan): Print inner classes properly.
2683 * gcj/javaprims.h: Updated class list.
2685 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2686 initialize String fields for interpreted classes. Fixes bug
2687 reported by Hans Boehm.
2689 * java/io/File.java (getParentFile): New method, from Classpath
2690 via Oskar Liljeblad.
2692 * java/util/Vector.java (remove(Object)): Implemented.
2694 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2696 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2697 zero return from backtrace().
2699 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2701 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2703 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2704 before calling notifyAll().
2706 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2708 Add missing files from last check-in:
2709 * java/awt/image/ImageConsumer.java: New file.
2710 * java/awt/image/ImageProducer.java: New file.
2711 * java/awt/image/ImageObserver.java: New file.
2713 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2715 Merged implementation of java.applet from classpath:
2716 * java/applet/Applet.java: New file.
2717 * java/applet/AppletContext.java: New file.
2718 * java/applet/AppletStub.java: New file.
2719 * java/applet/AudioClip.java: New file.
2721 * Makefile.am: Added new java.applet classes.
2722 * Makefile.in: Rebuilt.
2724 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2727 * java/util/ResourceBundle.java (getLocale): stub.
2728 * Makefile.am: Added new AWT classes.
2729 * Makefile.in: Rebuilt.
2730 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2731 constructors. Fix toString() and paramString().
2732 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2733 * java/awt/CheckboxGroup.java: New class.
2734 * java/awt/ColorModel.java: New class.
2735 * java/awt/Component.java: Added stubs for most methods. Implemented
2737 * java/awt/Container.java: ditto.
2738 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2739 * java/awt/Cursor.java: ditto.
2740 * java/awt/Event.java: Fix paramString().
2741 * java/awt/EventQueue.java: New class. Implemented.
2742 * java/awt/Font.java: Added additional stub methods. Implemented
2744 * java/awt/FontMetrics.java: New class. Stubbed.
2745 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2747 * java/awt/Insets.java: New class. Implemented.
2748 * java/awt/Menu.java: Add new methods. Partially implemented.
2749 * java/awt/MenuItem.java: Add new methods and fields. Partially
2751 * java/awt/MenuShortcut.java: New class. Implemented.
2752 * java/awt/Panel.java: New class. Placeholder.
2753 * java/awt/PopupMenu.java: New class. Stubbed.
2754 * java/awt/Rectangle.java: New class. Implemented.
2755 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2756 * java/awt/event/ActionEvent.java: Implement paramString().
2757 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2758 * java/awt/event/ComponentEvent.java: Implement paramString().
2759 * java/awt/event/ContainerEvent.java: Implement paramString().
2760 * java/awt/event/FocusEvent.java: Implement paramString().
2761 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2762 * java/awt/event/HierarchyBoundsListener.java: New class.
2763 * java/awt/event/HierarchyEvent.java: New class.
2764 * java/awt/event/HierarchyListener.java: New class.
2765 * java/awt/event/InputMethodEvent.java: Implement paramString().
2766 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2767 exception if !catchExceptions.
2768 * java/awt/event/ItemEvent.java: Implement paramString().
2769 * java/awt/event/KeyEvent.java: Implement paramString().
2770 * java/awt/event/MouseEvent.java: Implement paramString().
2771 * java/awt/event/PaintEvent.java: Implement paramString().
2772 * java/awt/event/TextEvent.java: Implement paramString().
2773 * java/awt/event/WindowEvent.java: Implement paramString().
2775 AWT Peer interfaces:
2776 * java/awt/peer/ButtonPeer.java: New file.
2777 * java/awt/peer/ListPeer.java: New file.
2778 * java/awt/peer/CanvasPeer.java: New file.
2779 * java/awt/peer/MenuBarPeer.java: New file.
2780 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2781 * java/awt/peer/MenuComponentPeer.java: New file.
2782 * java/awt/peer/CheckboxPeer.java: New file.
2783 * java/awt/peer/MenuItemPeer.java: New file.
2784 * java/awt/peer/ChoicePeer.java: New file.
2785 * java/awt/peer/MenuPeer.java: New file.
2786 * java/awt/peer/ComponentPeer.java: Implemented.
2787 * java/awt/peer/PanelPeer.java: New file.
2788 * java/awt/peer/ContainerPeer.java: Implemented.
2789 * java/awt/peer/PopupMenuPeer.java: New file.
2790 * java/awt/peer/DialogPeer.java: New file.
2791 * java/awt/peer/ScrollPanePeer.java: New file.
2792 * java/awt/peer/FileDialogPeer.java: New file.
2793 * java/awt/peer/ScrollbarPeer.java: New file.
2794 * java/awt/peer/FontPeer.java: New file.
2795 * java/awt/peer/TextAreaPeer.java: New file.
2796 * java/awt/peer/FramePeer.java: Implemented.
2797 * java/awt/peer/TextComponentPeer.java: New file.
2798 * java/awt/peer/LabelPeer.java: New file.
2799 * java/awt/peer/TextFieldPeer.java: New file.
2800 * java/awt/peer/LightweightPeer.java: New file.
2801 * java/awt/peer/WindowPeer.java: Implemented.
2803 2000-07-06 Tom Tromey <tromey@cygnus.com>
2805 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2806 Initialize static final String fields.
2808 2000-07-03 Tom Tromey <tromey@cygnus.com>
2810 * java/io/PrintWriter.java (print): Call write(String), not
2811 print(String). See PR libgcj/277.
2812 (print(String)): Use write, not out.write.
2814 2000-06-30 Tom Tromey <tromey@cygnus.com>
2816 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2818 2000-06-27 Andrew Haley <aph@cygnus.com>
2820 * java/io/File.java (createTempFile): Close the FileDescriptor
2821 used to create a temp file. Fixes some of PR 203.
2822 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2823 collection if we run out of file handles.
2825 2000-06-28 Warren Levy <warrenl@cygnus.com>
2827 * gnu/java/security/provider/Gnu.java: New file.
2828 * gnu/java/security/provider/SHA.java: New file.
2829 * gnu/java/security/provider/SHA1PRNG.java: New file.
2830 * Makefile.am: Added the above files.
2831 * Makefile.in: Rebuilt.
2833 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2835 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2837 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2838 (destroyed_flag): Removed.
2839 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2840 (activeCount): Added spec note.
2842 2000-06-27 Warren Levy <warrenl@cygnus.com>
2844 * java/security/Principal.java: New file.
2845 * Makefile.am: Added Principal.java.
2846 * Makefile.in: Rebuilt.
2848 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2850 * java/awt/event/MouseEvent.java: Fixed coordinate space
2853 2000-06-27 Tom Tromey <tromey@cygnus.com>
2855 * java/io/PushbackInputStream.java (read): If there are characters
2856 in the buffer, don't also call super.read().
2857 * java/io/PushbackReader.java (read): If there are characters in
2858 the buffer, don't also call super.read().
2860 * java/lang/Double.java (valueOf): Call parseDouble().
2862 2000-06-26 Warren Levy <warrenl@cygnus.com>
2864 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2865 (newVal): Renamed to newValue.
2866 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2867 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2868 (revokeNow): Renamed to invalidateRefs.
2869 * java/io/OptionalDataException.java: Updated FIXME.
2870 (eof): New placeholder field.
2872 * java/io/WriteAbortedException.java (message): Made transient.
2873 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2874 * java/lang/Throwable.java (stackTrace): Made transient.
2875 * java/net/InetAddress.java: Made Serializable.
2876 * java/security/KeyPair.java: Made Serializable.
2877 * java/security/Provider.java: Replaced with Classpath version that
2878 implements serialization and proper methods.
2879 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2880 (limits): Renamed to choiceLimits.
2882 2000-06-24 Tom Tromey <tromey@cygnus.com>
2884 * java/lang/natDouble.cc (parseDouble): Renamed from
2886 * java/lang/Double.java (parseDouble): Renamed from
2887 doubleValueOf. Now public.
2889 2000-06-23 Andrew Haley <aph@cygnus.com>
2891 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
2892 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
2894 2000-06-23 Tom Tromey <tromey@cygnus.com>
2896 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
2897 * java/lang/natDouble.cc: Always include <alloca.h>.
2898 Fix for PR libgcj/267.
2900 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
2902 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
2903 comply with classpath VM spec.
2904 (add(Group)): Rename to addGroup().
2905 * java/lang/Thread.java (Thread): Use addThread().
2906 * java/lang/natThread.cc (finish_): Use removeThread().
2908 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
2910 * java/lang/ThreadGroup.java: Merged with classpath.
2911 * prims.cc (_Jv_RunMain): Don't use `main_group'.
2912 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
2914 * java/lang/Thread.java (Thread): Bootstrap initial thread from
2915 ThreadGroup.root if Thread.currentThread is null. Honour the
2916 ThreadGroup's max priority setting.
2918 2000-06-18 Tom Tromey <tromey@cygnus.com>
2920 * java/lang/natClass.cc (forName): Removed dead code. Initialize
2921 returned class. For PR gcj/260.
2923 2000-06-16 Tom Tromey <tromey@cygnus.com>
2925 Fix for PR libgcj/261:
2926 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
2928 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
2929 argument. (This is a patch from long ago that somehow went
2932 2000-06-15 Tom Tromey <tromey@cygnus.com>
2934 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
2938 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2940 Fix for PR java.lang/258:
2941 * prims.cc (_Jv_PrimClass): Set state of primitive class to
2942 JV_STATE_DONE, to prevent accidental initialization.
2943 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
2944 _Jv_InterfaceAssignableFrom if target is an interface and source is an
2945 interface or an abstract class. Remove redundant initializeClass calls.
2946 Remove duplicate if_idt test.
2947 (_Jv_InterfaceAssignableFrom): New function.
2948 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2950 2000-05-31 Tom Tromey <tromey@cygnus.com>
2952 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
2953 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
2954 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
2955 (NUM_OBJECT_METHODS): New define.
2956 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
2957 `array_vtable' parameter. Added assertion.
2958 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
2961 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
2963 * gcj/cni.h: Include <string.h>.
2964 * defineclass.cc: Include <alloca.h>.
2965 * interpret.cc: Ditto.
2966 * gij.cc: Include <stdlib.h>.
2968 2000-05-30 Tom Tromey <tromey@cygnus.com>
2970 * include/name-finder.h: Include <sys/wait.h>.
2971 (_Jv_name_finder::pid): Now of type `pid_t'.
2972 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
2973 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
2976 2000-05-24 Warren Levy <warrenl@cygnus.com>
2978 * java/io/ObjectOutputStream.java (writeObject): Use component type
2979 when writing arrays.
2982 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
2984 Fix for PR libgcj/226:
2985 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
2986 since this is an installed header.
2988 Fix for PR libgcj/228:
2989 * java/util/zip/ZipFile (getInputStream): Create inflater with
2992 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
2993 with DataFormatException.
2995 2000-05-20 Tom Tromey <tromey@cygnus.com>
2997 * Makefile.in: Rebuilt.
2998 * Makefile.am (hack1): Removed.
2999 (awto_files): Likewise.
3000 (libgcjawt_la_SOURCES): Likewise.
3001 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3002 (libgcjawt_la_DEPENDENCIES): Likewise.
3003 (libgcjawt_la_LIBADD): Likewise.
3004 (libgcjawt_la_LDFLAGS): Likewise.
3005 (libgcjawt_la_LINK): Likewise.
3006 ($(awt_java_source_files:.java=.class)): Likewise.
3007 (libgcj.zip): Don't depend on AWT files.
3008 (MOSTLYCLEANFILES): Don't include AWT files.
3009 ($(awto_files)): Removed.
3010 (nat_headers): Removed AWT files.
3011 (cond_awt_java_source_files): Removed.
3012 (ordinary_java_source_files): Added awt_java_source_files.
3013 * libgcj.spec.in (*lib): Removed -lgcjawt.
3014 * configure: Rebuilt.
3015 * configure.in: Removed --enable-java-awt option.
3017 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3019 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3020 (ZipEntry): Copy the `name' field.
3021 (clone): Implement JDK1.2 method.
3022 (setCompressedSize): ditto.
3025 2000-05-19 Tom Tromey <tromey@cygnus.com>
3027 * java/io/BufferedWriter.java: Merged with Classpath.
3028 * java/io/BufferedOutputStream.java: Merged with Classpath.
3030 2000-05-16 Andrew Haley <aph@cygnus.com>
3032 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3033 build_ia64_frame_state.
3034 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3037 2000-05-15 Warren Levy <warrenl@cygnus.com>
3039 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3040 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3041 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3042 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3043 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3044 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3045 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3046 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3047 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3048 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3049 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3050 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3051 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3052 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3053 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3054 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3055 * gnu/gcj/io/NullOutputStream.java: Removed.
3056 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3057 * gnu/gcj/lang/ArrayHelper.java: Removed.
3058 * gnu/gcj/lang/ClassHelper.java: Removed.
3059 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3061 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3062 * gnu/java/beans/EmptyBeanInfo.java: New file.
3063 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3064 * gnu/java/beans/IntrospectionIncubator.java: New file.
3065 * gnu/java/beans/editors/ColorEditor.java: New file.
3066 * gnu/java/beans/editors/FontEditor.java: New file.
3067 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3068 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3069 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3070 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3071 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3072 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3073 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3074 * gnu/java/beans/editors/StringEditor.java: New file.
3075 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3076 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3077 * gnu/java/io/NullOutputStream.java: New file.
3078 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3079 * gnu/java/lang/ArrayHelper.java: New file.
3080 * gnu/java/lang/ClassHelper.java: New file.
3081 * gnu/java/lang/reflect/TypeSignature.java: New file.
3083 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3084 namespace back to the original Classpath gnu/java namespace.
3085 * Makefile.in: Rebuilt.
3087 * java/beans/Beans.java: Namespace change.
3088 * java/beans/EventSetDescriptor.java: Namespace change.
3089 * java/beans/Introspector.java: Namespace change.
3090 * java/beans/PropertyEditorManager.java: Namespace change.
3091 * java/io/ObjectInputStream.java: Namespace change.
3092 * java/io/ObjectOutputStream.java: Namespace change.
3093 * java/io/ObjectStreamClass.java: Namespace change.
3094 * java/io/ObjectStreamField.java: Namespace change.
3096 2000-04-21 Warren Levy <warrenl@cygnus.com>
3098 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3099 now that compiler patch is available.
3100 Removed unneeded System.loadLibrary.
3101 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3102 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3104 2000-04-19 Andrew Haley <aph@cygnus.com>
3106 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3107 and target classes have been initialized.
3109 2000-04-19 Andrew Haley <aph@cygnus.com>
3111 * java/lang/String.java: implement Serializable, Comparable.
3112 (compareTo (Object)): New method.
3114 2000-04-19 Warren Levy <warrenl@cygnus.com>
3116 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3117 instead of getField to retrieve non-public field.
3118 (getSerialPersistantFields): Ditto.
3120 2000-04-18 Warren Levy <warrenl@cygnus.com>
3122 * mauve-libgcj: Turned off object serialization tests temporarily
3123 due to compiler error.
3125 2000-04-17 Warren Levy <warrenl@cygnus.com>
3127 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3128 to avoid build problem.
3130 * mauve-libgcj: Turned on object serialization tests.
3132 2000-04-17 Tom Tromey <tromey@cygnus.com>
3134 * libgcj.spec.in (*lib): Added -lgcjawt.
3136 2000-04-17 Andrew Haley <aph@cygnus.com>
3138 * Makefile.am: Add new files:
3139 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3141 * Makefile.in: Rebuilt.
3143 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3144 interface that has no implementations.
3145 Check for an attempt to assign an abstract class to an interface.
3147 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3148 if we fail to find MessageDigest.getInstance ("SHA").
3150 * gnu/gcj/io/SimpleSHSStream.java: New file.
3151 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3152 * gnu/gcj/io/shs.cc: New file.
3153 * gnu/gcj/io/shs.h: new file.
3155 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3158 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3159 punctuation from the classname of an array element.
3161 * gcj/javaprims.h: Add SimpleDigestStream.
3163 2000-04-17 Andrew Haley <aph@cygnus.com>
3165 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3166 to getPrivateField for superclasses.
3168 2000-04-14 Andrew Haley <aph@cygnus.com>
3170 * Makefile.am: Add new files:
3171 java/io/ObjectOutputStream$PutField.h,
3172 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3173 java/io/natObjectOutputStream.cc
3174 * Makefile.in: Rebuilt.
3175 * gcj/Makefile.in: Rebuilt.
3176 * include/Makefile.in: Rebuilt.
3177 * java/lang/Class.h (getPrivateField): New method.
3178 (getPrivateMethod): Ditto.
3179 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3180 and java::io::ObjectStreamClass our friends.
3181 * java/lang/natClass.cc (getPrivateField): New method.
3182 (getPrivateMethod): Ditto.
3183 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3184 * gcj/javaprims.h: Add serialization classes.
3185 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3186 (setByteField): Ditto.
3187 (setCharField): Ditto.
3188 (setDoubleField): Ditto.
3189 (setFloatField): Ditto.
3190 (setIntField): Ditto.
3191 (setLongField): Ditto.
3192 (setShortField): Ditto.
3193 (setObjectField): Ditto.
3194 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3196 (getByteField): Ditto.
3197 (getCharField): Ditto.
3198 (getDoubleField): Ditto.
3199 (getFloatField): Ditto.
3200 (getIntField): Ditto.
3201 (getLongField): Ditto.
3202 (getShortField): Ditto.
3203 (getObjectField): Ditto.
3204 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3206 (getSerialPersistantFields): Ditto.
3207 (getDefinedSUID): Ditto.
3208 * java/io/natObjectOutputStream.cc: New file.
3209 * java/io/natObjectInputStream.cc: New file.
3211 2000-04-13 Warren Levy <warrenl@cygnus.com>
3213 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3214 problems. Revert to previous version to reproduce and when fixed.
3216 2000-04-13 Warren Levy <warrenl@cygnus.com>
3218 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3219 * gnu/gcj/io/NullOutputStream.java: New file.
3220 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3221 * java/io/BlockDataException.java: New file.
3222 * java/io/Externalizable.java: New file.
3223 * java/io/InvalidClassException.java: New file.
3224 * java/io/InvalidObjectException.java: New file.
3225 * java/io/NotActiveException.java: New file.
3226 * java/io/NotSerializableException.java: New file.
3227 * java/io/ObjectInput.java: New file.
3228 * java/io/ObjectInputStream.java: New file.
3229 * java/io/ObjectInputValidation.java: New file.
3230 * java/io/ObjectOutput.java: New file.
3231 * java/io/ObjectOutputStream.java: New file.
3232 * java/io/ObjectStreamClass.java: New file.
3233 * java/io/ObjectStreamConstants.java: New file.
3234 * java/io/ObjectStreamField.java: New file.
3235 * java/io/Replaceable.java: New file.
3236 * java/io/Resolvable.java: New file.
3237 * java/io/SerializablePermission.java: New file.
3238 * java/io/WriteAbortedException.java: New file.
3239 * java/security/BasicPermission.java: New file.
3240 * java/security/DigestOutputStream.java: New file.
3241 * java/security/Guard.java: New file.
3242 * java/security/Permission.java: New file.
3243 * java/security/PermissionCollection.java: New file.
3244 * Makefile.am: Added above files.
3245 * Makefile.in: Rebuilt.
3247 * java/beans/Beans.java (instantiate): Activated serialization code.
3248 * java/lang/SecurityManager.java (checkPermission): New method.
3250 2000-04-12 Warren Levy <warrenl@cygnus.com>
3252 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3253 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3254 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3255 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3256 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3257 * gnu/gcj/beans/editors/FontEditor.java: New file.
3258 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3259 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3260 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3261 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3262 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3263 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3264 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3265 * gnu/gcj/beans/editors/StringEditor.java: New file.
3266 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3267 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3268 * gnu/gcj/lang/ArrayHelper.java: New file.
3269 * gnu/gcj/lang/ClassHelper.java: New file.
3270 * java/beans/BeanDescriptor.java: New file.
3271 * java/beans/BeanInfo.java: New file.
3272 * java/beans/Beans.java: New file.
3273 * java/beans/Customizer.java: New file.
3274 * java/beans/DesignMode.java: New file.
3275 * java/beans/EventSetDescriptor.java: New file.
3276 * java/beans/FeatureDescriptor.java: New file.
3277 * java/beans/IndexedPropertyDescriptor.java: New file.
3278 * java/beans/IntrospectionException.java: New file.
3279 * java/beans/Introspector.java: New file.
3280 * java/beans/MethodDescriptor.java: New file.
3281 * java/beans/ParameterDescriptor.java: New file.
3282 * java/beans/PropertyChangeEvent.java: New file.
3283 * java/beans/PropertyChangeListener.java: New file.
3284 * java/beans/PropertyChangeSupport.java: New file.
3285 * java/beans/PropertyDescriptor.java: New file.
3286 * java/beans/PropertyEditor.java: New file.
3287 * java/beans/PropertyEditorManager.java: New file.
3288 * java/beans/PropertyEditorSupport.java: New file.
3289 * java/beans/PropertyVetoException.java: New file.
3290 * java/beans/SimpleBeanInfo.java: New file.
3291 * java/beans/VetoableChangeListener.java: New file.
3292 * java/beans/VetoableChangeSupport.java: New file.
3293 * java/beans/Visibility.java: New file.
3294 * java/beans/beancontext/BeanContext.java: New file.
3295 * java/beans/beancontext/BeanContextChild.java: New file.
3296 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3297 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3298 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3299 * java/beans/beancontext/BeanContextEvent.java: New file.
3300 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3301 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3302 * java/beans/beancontext/BeanContextProxy.java: New file.
3303 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3305 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3306 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3308 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3309 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3311 * java/beans/beancontext/BeanContextServices.java: New file.
3312 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3313 * java/util/AbstractCollection.java: New file.
3314 * java/util/AbstractList.java: New file.
3315 * java/util/Arrays.java: New file.
3316 * Makefile.am: Added above files.
3317 * Makefile.in: Rebuilt.
3319 2000-04-11 Warren Levy <warrenl@cygnus.com>
3321 * java/awt/AWTError.java: New file.
3322 * java/awt/AWTEvent.java: New file.
3323 * java/awt/AWTException.java: New file.
3324 * java/awt/ActiveEvent.java: New file.
3325 * java/awt/Adjustable.java: New file.
3326 * java/awt/BorderLayout.java: New file.
3327 * java/awt/Color.java: New file.
3328 * java/awt/Component.java: New file.
3329 * java/awt/Container.java: New file.
3330 * java/awt/Dimension.java: New file.
3331 * java/awt/Event.java: New file.
3332 * java/awt/Font.java: New file.
3333 * java/awt/Frame.java: New file.
3334 * java/awt/Graphics.java: New file.
3335 * java/awt/IllegalComponentStateException.java: New file.
3336 * java/awt/Image.java: New file.
3337 * java/awt/ItemSelectable.java: New file.
3338 * java/awt/LayoutManager.java: New file.
3339 * java/awt/LayoutManager2.java: New file.
3340 * java/awt/Menu.java: New file.
3341 * java/awt/MenuBar.java: New file.
3342 * java/awt/MenuComponent.java: New file.
3343 * java/awt/MenuContainer.java: New file.
3344 * java/awt/MenuItem.java: New file.
3345 * java/awt/Paint.java: New file.
3346 * java/awt/PaintContext.java: New file.
3347 * java/awt/Point.java: New file.
3348 * java/awt/Rectangle.java: New file.
3349 * java/awt/Shape.java: New file.
3350 * java/awt/TextArea.java: New file.
3351 * java/awt/TextComponent.java: New file.
3352 * java/awt/Toolkit.java: New file.
3353 * java/awt/Transparency.java: New file.
3354 * java/awt/Window.java: New file.
3355 * java/awt/natToolkit.cc: New file.
3356 * java/awt/event/AWTEventListener.java: New file.
3357 * java/awt/event/ActionEvent.java: New file.
3358 * java/awt/event/ActionListener.java: New file.
3359 * java/awt/event/AdjustmentEvent.java: New file.
3360 * java/awt/event/AdjustmentListener.java: New file.
3361 * java/awt/event/ComponentAdapter.java: New file.
3362 * java/awt/event/ComponentEvent.java: New file.
3363 * java/awt/event/ComponentListener.java: New file.
3364 * java/awt/event/ContainerAdapter.java: New file.
3365 * java/awt/event/ContainerEvent.java: New file.
3366 * java/awt/event/ContainerListener.java: New file.
3367 * java/awt/event/FocusAdapter.java: New file.
3368 * java/awt/event/FocusEvent.java: New file.
3369 * java/awt/event/FocusListener.java: New file.
3370 * java/awt/event/InputEvent.java: New file.
3371 * java/awt/event/InputMethodEvent.java: New file.
3372 * java/awt/event/InputMethodListener.java: New file.
3373 * java/awt/event/InvocationEvent.java: New file.
3374 * java/awt/event/ItemEvent.java: New file.
3375 * java/awt/event/ItemListener.java: New file.
3376 * java/awt/event/KeyAdapter.java: New file.
3377 * java/awt/event/KeyEvent.java: New file.
3378 * java/awt/event/KeyListener.java: New file.
3379 * java/awt/event/MouseAdapter.java: New file.
3380 * java/awt/event/MouseEvent.java: New file.
3381 * java/awt/event/MouseListener.java: New file.
3382 * java/awt/event/MouseMotionAdapter.java: New file.
3383 * java/awt/event/MouseMotionListener.java: New file.
3384 * java/awt/event/PaintEvent.java: New file.
3385 * java/awt/event/TextEvent.java: New file.
3386 * java/awt/event/TextListener.java: New file.
3387 * java/awt/event/WindowAdapter.java: New file.
3388 * java/awt/event/WindowEvent.java: New file.
3389 * java/awt/event/WindowListener.java: New file.
3390 * java/awt/geom/Dimension2D.java: New file.
3391 * java/awt/geom/Point2D.java: New file.
3392 * java/awt/peer/ComponentPeer.java: New file.
3393 * java/awt/peer/ContainerPeer.java: New file.
3394 * java/awt/peer/FramePeer.java: New file.
3395 * java/awt/peer/WindowPeer.java: New file.
3396 * java/util/Collection.java: New file.
3397 * java/util/Comparator.java: New file.
3398 * java/util/Iterator.java: New file.
3399 * java/util/List.java: New file.
3400 * java/util/ListIterator.java: New file.
3401 * Makefile.am: Added above files.
3402 * Makefile.in: Rebuilt.
3404 2000-04-10 Warren Levy <warrenl@cygnus.com>
3406 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3407 * java/lang/FirstThread.java: Ditto.
3408 * java/lang/StringBuffer.java: Ditto.
3409 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3411 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3412 Special case handled in java.math.BigInteger.
3413 * java/math/BigInteger.java (divide): Handle the special case when
3414 dividing by 1 and the high bit of the dividend is set.
3415 (setShiftRight): Handle case when count == 0.
3417 2000-04-05 Andrew Haley <aph@cygnus.com>
3419 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3422 2000-04-05 Andrew Haley <aph@cygnus.com>
3424 * sysdep/ia64.c (rse_address_add): Delete.
3425 (IS_NaT_COLLECTION_ADDR): Delete.
3426 (ia64_backtrace_helper): check for null unwind_info.
3428 * sysdep/ia64-frame.h: add calc_caller_bsp.
3430 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3433 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3434 (_Jv_remI): Likewise.
3435 (_Jv_divJ): Likewise.
3436 (_Jv_remJ): Likewise.
3438 * interpret.cc (continue1): Use divide subroutines to guarantee
3439 correct Java standard behaviour.
3440 Floating-point division should not abort; make it so.
3442 2000-03-29 Tom Tromey <tromey@cygnus.com>
3444 * configure: Rebuilt.
3445 * configure.in: Test against `libgcj_sjlj', not
3446 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3447 to be set even when using sjlj.
3449 2000-03-24 Andrew Haley <aph@cygnus.com>
3451 * Makefile.am: Add file addr2name.awk.
3452 * Makefile.in: Rebuilt.
3453 * addr2name.awk: New file.
3454 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3456 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3459 2000-03-22 Andrew Haley <aph@cygnus.com>
3461 * configure.host: Add -funwind-tables for IA64.
3462 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3463 * Makefile.in: Rebuilt.
3464 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3465 * sysdep/ia64.c: New file.
3466 * sysdep/ia64-frame.h: New file.
3467 * configure.in: Add sysdep/ia64.c for ia64.
3468 * configure: Rebuilt.
3470 2000-03-17 Andrew Haley <aph@cygnus.com>
3472 * java/lang/natString.cc: Remove `register' keyword.
3473 interpret.cc: ditto.
3475 2000-03-16 Andrew Haley <aph@cygnus.com>
3477 * configure.host (ia64): Enable interpreter.
3479 2000-03-14 Hans Boehm <boehm@acm.org>
3481 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3483 2000-03-14 Andrew Haley <aph@cygnus.com>
3485 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3488 2000-03-10 Andrew Haley <aph@cygnus.com>
3490 * java/lang/ieeefp.h: Import latest version from fdlibm.
3492 2000-03-14 Andrew Haley <aph@cygnus.com>
3494 * prims.cc (_Jv_ThrowSignal): New function.
3495 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3497 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3498 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3499 * include/ppc-signal.h: New file.
3501 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3503 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3504 * java/lang/natThread.java (initialize_native): Cast `data' to
3506 * gnu/gcj/RawData.java: Clarify documentation.
3508 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3509 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3510 `jarFile', not `jarFileURL'.
3512 2000-05-15 Andrew Haley <aph@cygnus.com>
3514 * include/ppc-signal.h: New file.
3516 2000-05-11 Tom Tromey <tromey@cygnus.com>
3518 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3519 file headers, don't include `size' in the skip call.
3521 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3523 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3524 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3526 (replace): Reimplemented. Fix javadoc.
3527 (reverse): Call ensureCapacity_unsynchronized().
3528 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3530 (replace): Calculate length for arraycopy() correctly.
3532 2000-05-09 Tom Tromey <tromey@cygnus.com>
3534 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3536 (insert(int,char[],int,int): New method.
3537 (delete): New method from Classpath.
3538 (deleteCharAt): Likewise.
3539 (substring): Likewise.
3540 (shared): No longer private.
3541 Added JavaDoc comments from Classpath.
3542 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3545 2000-05-07 Tom Tromey <tromey@cygnus.com>
3547 * Makefile.in: Rebuilt.
3548 * Makefile.am (LIBLINK): New macro.
3549 (libgcj_la_LINK): Use it.
3550 (libgcjawt_la_LINK): Likewise.
3552 2000-05-06 Tom Tromey <tromey@cygnus.com>
3554 * Makefile.in: Rebuilt.
3555 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3557 2000-05-05 Tom Tromey <tromey@cygnus.com>
3559 Fix for PR libgcj/220:
3560 * Makefile.in: Rebuilt.
3561 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3562 (jv_convert_LDFLAGS): Likewise.
3563 (libgcj_la_LDFLAGS): Likewise.
3564 (GCJLINK): New macro.
3565 (jv_convert_LINK): Use it.
3566 (gij_LINK): Likewise.
3567 (libgcj_la_LINK): New macro.
3568 (libgcjawt_la_LINK): Likewise.
3570 2000-05-04 Tom Tromey <tromey@cygnus.com>
3572 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3574 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3578 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3580 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3581 (_Jv_IsAssignableFrom): Ditto.
3582 (_Jv_IsInstanceOf): Ditto.
3583 (_Jv_CheckCast): Ditto.
3584 (_Jv_CheckArrayStore): Ditto.
3585 * java/lang/Class.h (_Jv_InitClass): Ditto.
3586 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3591 (_Jv_MonitorExit): Ditto.
3592 * boehm.cc (_Jv_MarkObj): Ditto.
3593 (_Jv_MarkObj): Ditto.
3594 (_Jv_MarkArray): Ditto.
3595 * prims.cc (_Jv_AllocObject): Ditto.
3596 (_Jv_NewObjectArray): Ditto.
3597 (_Jv_NewPrimArray): Ditto.
3598 (_Jv_Malloc): Ditto.
3599 (_Jv_Realloc): Ditto.
3600 (_Jv_MallocUnchecked): Ditto.
3606 2000-05-04 Tom Tromey <tromey@cygnus.com>
3608 * java/util/Locale.java (Locale): Don't explicitly check for
3610 * java/util/Hashtable.java (containsKey): Don't explicitly check
3613 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3615 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3617 * java/text/StringCharacterIterator.java
3618 (StringCharacterIterator): Don't check for null.
3619 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3621 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3622 check for null pointer.
3623 (leaveGroup): Likewise.
3624 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3626 (setData): Likewise.
3627 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3630 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3632 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3633 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3634 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3635 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3636 -rpath for in-gcc builds.
3637 * Makefile.in: Rebuilt.
3639 2000-04-28 Tom Tromey <tromey@cygnus.com>
3641 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3644 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3646 * libjava/java/lang/String.java (toString): Remove `final' hack.
3648 2000-04-05 Tom Tromey <tromey@cygnus.com>
3650 Runtime support for PR gcj/2:
3651 * prims.cc (_Jv_ThrowNullPointerException): New function.
3652 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3654 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3656 * prims.cc (_Jv_NewObjectArray): Fix typo.
3658 2000-04-26 Tom Tromey <tromey@cygnus.com>
3660 * Makefile.in: Rebuilt.
3661 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3663 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3665 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3668 2000-04-22 Anthony Green <green@cygnus.com>
3670 * include/jvm.h (__builtin_expect): Define as unused for now.
3671 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3675 (_Jv_MonitorExit): Ditto.
3676 * boehm.cc (_Jv_MarkObj): Ditto.
3677 (_Jv_MarkObj): Ditto.
3678 (_Jv_MarkArray): Ditto.
3679 (_Jv_AllocBytes): Ditto.
3680 * prims.cc (_Jv_AllocObject): Ditto.
3681 (_Jv_NewObjectArray): Ditto.
3682 (_Jv_NewPrimArray): Ditto.
3683 (_Jv_Malloc): Ditto.
3684 (_Jv_Realloc): Ditto.
3685 (_Jv_MallocUnchecked): Ditto.
3691 * include/Makefile.in: Rebuilt.
3692 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3694 2000-04-21 Tom Tromey <tromey@cygnus.com>
3696 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3697 Yet another new version from Classpath.
3699 Fix for PR libgcj/15:
3700 * java/util/natGregorianCalendar.cc (_REENTRANT,
3701 _POSIX_PTHREAD_SEMANTICS): Don't define.
3702 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3703 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3705 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3707 * configure: Rebuilt.
3708 * configure.in: If using POSIX threads, define _REENTRANT if
3709 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3710 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3712 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3713 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3714 version from Classpath.
3716 Fix for PR libgcj/213:
3717 * Makefile.in: Rebuilt.
3718 * Makefile.am (gij_SOURCES): Added gij.cc.
3719 (EXTRA_gij_SOURCES): Removed.
3720 (gij_LDADD): Removed gij.lo.
3721 (gij_DEPENDENCIES): Likewise.
3722 ($(gij_OBJECTS)): Depend on nat_headers.
3724 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3725 `setURL', not `url.set'.
3727 2000-04-20 Tom Tromey <tromey@cygnus.com>
3729 Fix for PR java.io/204:
3730 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3731 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3734 Fix for PR libgcj/212:
3735 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3736 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3737 * java/lang/Class.h (_Jv_word): Declare.
3739 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3741 2000-04-19 Tom Tromey <tromey@cygnus.com>
3743 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3744 doesn't have a loader.
3746 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3748 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3749 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3751 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3753 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3755 (available): Initialize `where' to prevent bogus compiler warning.
3757 2000-04-12 Tom Tromey <tromey@cygnus.com>
3759 * java/lang/natString.cc (intern): Temporarily disable finalizer
3762 * java/lang/natString.cc (unintern): Added `obj' argument.
3763 (intern): Register finalizer for string.
3764 * java/lang/String.java (unintern): Now static; added obj
3767 2000-04-11 Tom Tromey <tromey@cygnus.com>
3769 * java/util/Vector.java (VectorEnumeration): Now `final'.
3770 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3771 (HashtableEnumeration): Likewise.
3772 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3773 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3775 2000-04-10 Warren Levy <warrenl@cygnus.com>
3777 * java/io/ObjectStreamException.java: New file.
3778 * java/io/OptionalDataException.java: New file.
3779 * java/io/StreamCorruptedException.java: New file.
3780 * java/math/BigDecimal.java: New file.
3781 * java/sql/CallableStatement.java: New file.
3782 * java/sql/Connection.java: New file.
3783 * java/sql/DataTruncation.java: New file.
3784 * java/sql/DatabaseMetaData.java: New file.
3785 * java/sql/Date.java: New file.
3786 * java/sql/Driver.java: New file.
3787 * java/sql/DriverManager.java: New file.
3788 * java/sql/DriverPropertyInfo.java: New file.
3789 * java/sql/PreparedStatement.java: New file.
3790 * java/sql/ResultSet.java: New file.
3791 * java/sql/ResultSetMetaData.java: New file.
3792 * java/sql/SQLException.java: New file.
3793 * java/sql/SQLWarning.java: New file.
3794 * java/sql/Statement.java: New file.
3795 * java/sql/Time.java: New file.
3796 * java/sql/Timestamp.java: New file.
3797 * java/sql/Types.java: New file.
3798 * Makefile.am: Added above new files.
3799 * Makefile.in: Rebuilt.
3801 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3802 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3803 DatagramSocket constructor instead of null.
3805 2000-04-08 Anthony Green <green@cygnus.com>
3807 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3810 2000-04-08 Anthony Green <green@cygnus.com>
3812 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3813 (_Jv_MutexUnlock): Ditto.
3814 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3815 (_Jv_MutexUnlock): Ditto.
3817 2000-04-08 Anthony Green <green@cygnus.com>
3819 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3820 (ensureCapacity_unsynchronized): New private method.
3821 (append): Use ensureCapacity_unsynchronized.
3823 2000-04-08 Tom Tromey <tromey@cygnus.com>
3825 * Makefile.in: Rebuilt.
3826 * Makefile.am (awt_java_source_files): Added new files.
3827 * java/awt/IllegalComponentStateException.java: New file.
3828 * java/awt/ItemSelectable.java: New file.
3829 * java/awt/event/WindowEvent.java: Finished.
3830 * java/awt/event/TextEvent.java: Finished.
3831 * java/awt/event/ContainerEvent.java: New file.
3832 * java/awt/Component.java (getX, getY): New methods.
3833 * java/awt/event/PaintEvent.java: New file.
3834 * java/awt/event/MouseEvent.java: New file.
3835 * java/awt/ActiveEvent.java: New file.
3836 * java/awt/event/KeyEvent.java: Finished.
3837 * java/awt/event/ItemEvent.java: New file.
3838 * java/awt/Adjustable.java: New file.
3839 * java/awt/event/InputMethodEvent.java: New file.
3840 * java/awt/event/InputEvent.java: Finished.
3841 * java/awt/event/FocusEvent.java: New file.
3842 * java/awt/event/MouseMotionAdapter.java: New file.
3843 * java/awt/event/MouseAdapter.java: New file.
3844 * java/awt/event/KeyAdapter.java: New file.
3845 * java/awt/event/FocusAdapter.java: New file.
3846 * java/awt/event/ContainerAdapter.java: New file.
3847 * java/awt/event/ComponentEvent.java: Finished.
3848 * java/awt/event/AdjustmentEvent.java: New file.
3849 * java/awt/event/ComponentAdapter.java: New file.
3850 * java/awt/event/ActionEvent.java: Finished.
3851 * java/awt/event/MouseMotionListener.java: New file.
3852 * java/awt/event/MouseListener.java: New file.
3853 * java/awt/event/ItemListener.java: New file.
3854 * java/awt/event/InputMethodListener.java: New file.
3855 * java/awt/event/ContainerListener.java: New file.
3856 * java/awt/event/FocusListener.java: New file.
3857 * java/awt/event/ComponentListener.java: New file.
3858 * java/awt/event/AWTEventListener.java: New file.
3859 * java/awt/event/AdjustmentListener.java: New file.
3861 2000-04-08 Anthony Green <green@cygnus.com>
3863 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3864 check when we have to.
3866 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3869 * java/util/StringTokenizer.java: Minor optimization. Eliminates
3872 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3873 inline hasMoreElements.
3875 2000-04-05 Tom Tromey <tromey@cygnus.com>
3877 * configure: Rebuilt.
3878 * configure.in: Recognize --enable-java-awt.
3879 (AWT): New conditional.
3880 * Makefile.in: Rebuilt.
3881 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
3883 (libgcjawt_la_SOURCES): New macro.
3884 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3885 (libgcjawt_la_DEPENDENCIES): Likewise.
3886 (libgcjawt_la_LIBADD): Likewise.
3887 (libgcjawt_la_LDFLAGS): Likewise.
3888 (libgcj.zip): Depend on cond_java_awt_source_files
3889 (cond_awt_java_source_files): New macro.
3890 (MOSTLYCLEANFILES): Added awto_files.
3891 (awto_files): New macro. Use where javao_files used.
3892 (nat_headers): Use cond_awt_java_source_files.
3894 2000-04-04 Tom Tromey <tromey@cygnus.com>
3896 * Makefile.in: Rebuilt.
3897 * Makefile.am (awt_java_source_files): Added AWTException.java.
3898 * java/awt/AWTException.java: New file.
3900 2000-04-03 Tom Tromey <tromey@cygnus.com>
3902 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
3903 commentary from Alex.
3905 * Makefile.in: Rebuilt.
3906 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
3909 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
3911 * configure: Rebuilt.
3912 * configure.in: Add --disable-jvmpi.
3913 * include/config.h.in: Rebuilt.
3914 * acconfig.h: Add ENABLE_JVMPI.
3916 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
3917 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
3918 (_Jv_JVMPI_Notify_THREAD_END): New define.
3919 (_Jv_JVMPI_Notify_THREAD_END): New define.
3920 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
3921 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3922 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3924 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
3927 * java/lang/natThread.cc: Include JVMPI headers if necessary.
3928 (finish_): Generate JVMPI thread end events.
3929 (run_): Generate JVMPI thread start events.
3930 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
3931 preloaded JNI library.
3932 Include JVMPI headers if necessary.
3933 (run): Generate JVMPI thread start events.
3935 * boehm.cc: Define GC_disable and GC_enable.
3936 (_Jv_DisableGC): New function.
3937 (_Jv_EnableGC): New function.
3938 (disable_gc_mutex): Declare.
3939 * nogc.cc (_Jv_DisableGC): New function.
3940 (_Jv_EnableGC): New function.
3942 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
3943 (_Jv_JVMPI_Interface): Define.
3944 (jvmpiEnableEvent): New function.
3945 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
3947 * include/jvmpi.h: New file.
3949 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
3951 * Makefile.in: New #defines and friends for Thread.h.
3952 * Makefile.am: Ditto.
3953 * posix-threads.cc: (struct starter): Remove `object'.
3954 (_Jv_CondWait): Use interruptable condition variables and new
3955 recursive mutexes. New return codes on interrupt or non-ownership
3957 (_Jv_CondNotify): Ditto.
3958 (_Jv_CondNotifyAll): Ditto.
3959 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
3960 the target thread by signaling its wait condition.
3961 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
3962 not the starter struct. Initialize wait_mutex and wait_cond.
3963 (_Jv_MutexLock): New recursive mutex implementation. Moved from
3965 (_Jv_MutexUnlock): Ditto.
3966 (really_start): Set info->data->thread from pthread_self() to work
3967 around a race condition. Destroy wait_mutex and wait_cond when run()
3969 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
3970 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
3972 startable_flag: New private field.
3973 (Thread): Initialize `startable_flag'.
3974 (toString): Check for null thread group.
3975 * java/lang/natThread.cc: (struct natThread): New fields
3976 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
3977 (class locker): Removed.
3978 (initialize_native): Initialize `join_cond' and `join_mutex'.
3979 (interrupt): Now just calls _Jv_ThreadInterrupt().
3980 (join): Simplified. Just wait on the target thread's join condition.
3981 (finish_): Remove join list code. Unset thread group. Signal
3982 potential joiners by notifying the dying threads join_cond.
3983 (start): Check for illegal restarts.
3984 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
3986 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
3987 #defines and #ifdefs.
3988 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
3989 `wait_mutex', `next'.
3990 (struct _Jv_ConditionVariable_t): Define as a struct instead of
3991 directly mapping to pthread_cond_t.
3992 (struct _Jv_Mutex_t): New recursive implementation.
3993 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
3994 _Jv_HaveCondDestroy: Never define this for posix-threads.
3995 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
3996 (_Jv_CondNotifyAll): Ditto.
3997 (_Jv_MutexLock): Ditto.
3998 (_Jv_MutexUnlock): Ditto.
3999 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4000 (_Jv_MutexDestroy): Ditto.
4001 (_Jv_CondDestroy): Removed.
4002 (_Jv_PthreadGetMutex): Removed.
4003 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4004 error. Add a FIXME about this.
4005 (_Jv_CondNotifyAll): Ditto.
4006 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4007 _JV_NOT_OWNER on other errors. Add FIXME.
4009 2000-03-26 Tom Tromey <tromey@cygnus.com>
4011 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4013 (call): Don't throw exception here.
4015 2000-03-26 Tom Tromey <tromey@cygnus.com>
4017 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4018 * interpret.cc: Use SIZEOF_VOID_P.
4019 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4020 (_Jv_loadLong): Likewise.
4021 (_Jv_storeDouble): Likewise.
4022 * configure: Rebuilt.
4023 * configure.in: Check size of void*.
4025 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4027 2000-03-26 Hans Boehm <boehm@acm.org>
4029 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4030 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4032 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4033 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4034 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4035 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4037 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4038 (FFI_RAW_SIZE): Likewise.
4039 (_Jv_InterpMethod::ncode): Use them.
4040 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4041 STORED): Define differently on a 64 bit machine.
4042 (continue1): Use ffi_java_raw_call when appropriate.
4044 2000-03-24 Warren Levy <warrenl@cygnus.com>
4046 * java/math/BigInteger.java(divide): Handle the special case when
4047 dividing by 1 and the high bit of the dividend is set.
4048 (setShiftRight): Handle case when count == 0.
4050 2000-03-24 Warren Levy <warrenl@cygnus.com>
4052 * java/awt/Font.java(isBold): Fix syntax error.
4054 * java/awt/Frame.java(postEvent): ditto.
4055 * java/awt/Menu.java(postEvent): ditto.
4056 * java/awt/MenuBar.java(postEvent): ditto.
4057 * java/awt/Toolkit.java(init): Included a stub.
4059 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4061 * java/awt/Event.java: Add all the event type constants.
4062 (Event): Implemented constructors.
4063 (controlDown): Implemented.
4064 (metaDown): Implemented.
4065 (paramString): Stubbed.
4066 (shiftDown): Implemented.
4067 (toString): Implemented.
4068 (translate): Implemented.
4070 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4072 * java/lang/natClass.cc (isInstance): Initialize `this'.
4073 (isAssignableFrom): Initialize `this' and `klass'.
4074 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4075 implemented by any loaded class, so return false.
4076 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4077 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4079 2000-03-19 Warren Levy <warrenl@cygnus.com>
4081 * java/awt/Color.java: Specified java.io for Serializable.
4082 * java/awt/Toolkit.java: Imported java.net.URL.
4084 2000-03-19 Warren Levy <warrenl@cygnus.com>
4086 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4088 2000-03-16 Warren Levy <warrenl@cygnus.com>
4090 * java/awt/Color.java: New file.
4091 * java/awt/Graphics.java: New file.
4092 * java/awt/Image.java: New file.
4093 * java/awt/Paint.java: New file.
4094 * java/awt/PaintContext.java: New file.
4095 * java/awt/Transparency.java: New file.
4096 * java/util/Collection.java: New file.
4097 * java/util/Comparator.java: New file.
4098 * java/util/Iterator.java: New file.
4099 * java/util/List.java: New file.
4100 * java/util/ListIterator.java: New file.
4101 * Makefile.am: Added above new files.
4102 * Makefile.in: Rebuilt.
4104 * java/awt/Font.java (PLAIN): New field.
4106 (ITALIC): New field.
4107 (ROMAN_BASELINE): New field.
4108 (CENTER_BASELINE): New field.
4109 (HANGING_BASELINE): New field.
4113 (pointSize): New field.
4114 (Font): Implemented constructor.
4115 (isPlain): Implemented method.
4116 (isBold): Implemented method.
4117 (isItalic): Implemented method.
4118 (getName): Implemented method.
4119 (getStyle): Implemented method.
4120 (getSize): Implemented method.
4121 (getSize2D): Implemented method.
4123 * java/awt/Frame.java (getFont): Stubbed.
4124 (postEvent): Stubbed.
4126 * java/awt/Menu.java (postEvent): Stubbed.
4127 * java/awt/MenuBar.java (getFont): Stubbed.
4128 (postEvent): Stubbed.
4129 * java/awt/Toolkit.java (getImage): Added abstract method.
4131 2000-03-15 Tom Tromey <tromey@cygnus.com>
4133 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4135 * prims.cc (win32_exception_handler): Reformatted.
4137 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4138 (_Jv_HaveMutexDestroy): Likewise.
4140 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4142 * java/io/natFileDescriptorWin32.cc: New file.
4143 * java/io/natFileWin32.cc: New file.
4144 * java/net/natInetAddress.cc: Added conditional inclusion of
4145 Windows / Winsock headers.
4146 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4147 inclusion of Windows / Winsock headers.
4148 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4149 Windows / Winsock headers.
4150 * include/win32-signal.h: New file.
4151 * include/win32-threads.h: New file.
4152 * win32-threads.cc: New file.
4153 * exception.cc (win32_get_restart_frame): New function.
4154 * prims.cc (win32_exception_handler): New function.
4155 (main_init) Performs Winsock initialisation.
4156 (main_init) Installs exeception handler.
4158 2000-03-14 Tom Tromey <tromey@cygnus.com>
4160 * jni.cc (mangled_name): Fixed assertion.
4161 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4162 turned assert into actual failure.
4164 2000-03-09 Warren Levy <warrenl@cygnus.com>
4166 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4167 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4168 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4170 2000-03-09 Warren Levy <warrenl@cygnus.com>
4172 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4173 * java/security/DigestException.java: New file.
4174 * java/security/GeneralSecurityException.java: New file.
4175 * java/security/InvalidAlgorithmParameterException.java: New file.
4176 * java/security/InvalidKeyException.java: New file.
4177 * java/security/InvalidParameterException.java: New file.
4178 * java/security/Key.java: New file.
4179 * java/security/KeyException.java: New file.
4180 * java/security/KeyPair.java: New file.
4181 * java/security/KeyPairGenerator.java: New file.
4182 * java/security/KeyPairGeneratorSpi.java: New file.
4183 * java/security/NoSuchProviderException.java: New file.
4184 * java/security/PrivateKey.java: New file.
4185 * java/security/Provider.java: New file.
4186 * java/security/PublicKey.java: New file.
4187 * java/security/SecureRandom.java: New file.
4188 * java/security/Security.java: New file.
4189 * java/security/Signature.java: New file.
4190 * java/security/SignatureException.java: New file.
4191 * java/security/interfaces/DSAKey.java: New file.
4192 * java/security/interfaces/DSAParams.java: New file.
4193 * java/security/interfaces/DSAPrivateKey.java: New file.
4194 * java/security/interfaces/DSAPublicKey.java: New file.
4195 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4196 * java/security/interfaces/RSAPrivateKey.java: New file.
4197 * java/security/interfaces/RSAPublicKey.java: New file.
4198 * java/security/spec/AlgorithmParameterSpec.java: New file.
4199 * java/security/spec/InvalidKeySpecException.java: New file.
4200 * java/security/spec/InvalidParameterSpecException.java: New file.
4201 * java/security/spec/KeySpec.java: New file.
4202 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4203 * java/security/spec/RSAPrivateKeySpec.java: New file.
4204 * java/security/spec/RSAPublicKeySpec.java: New file.
4205 * Makefile.am: Added above java.security files.
4206 * Makefile.in: Rebuilt.
4208 * java/security/MessageDigest.java: Rewritten.
4209 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4211 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4215 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4217 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4218 _Jv_PrepareConstantTimeTables.
4219 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4220 classes should have an IDT, so don't return if klass is an array
4223 2000-03-08 Tom Tromey <tromey@cygnus.com>
4225 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4226 of `void' to be created.
4228 2000-03-08 Warren Levy <warrenl@cygnus.com>
4230 * java/math/BigInteger.java(signum): Handle zero properly.
4232 2000-03-07 Tom Tromey <tromey@cygnus.com>
4234 * All files: Updated copyright information.
4235 * COPYING: New file.
4236 * COPYING.LIB: Removed.
4237 * LIBGCJ_LICENSE: We now use GPL + special exception.
4239 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4241 * resolve.cc (_Jv_SearchMethodInClass): New function.
4242 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4243 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4245 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4247 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4248 (struct _Jv_ifaces): New declaration.
4249 JV_CLASS: New macro definition.
4250 (getComponentType): Relocate below isArray() for inlining.
4251 (getModifiers): Declare `inline'.
4252 (getSuperclass): Ditto.
4254 (isPrimitive): Ditto.
4255 (_Jv_IsAssignableFrom): New prototype.
4256 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4258 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4259 Check for JV_STATE_DONE before invoking initializeClass().
4260 (_Jv_PrepareConstantTimeTables): New prototype.
4261 (_Jv_GetInterfaces): Ditto.
4262 (_Jv_GenerateITable): Ditto.
4263 (_Jv_GetMethodString): Ditto.
4264 (_Jv_AppendPartialITable): Ditto.
4265 (_Jv_FindIIndex): Ditto.
4266 depth, ancestors, idt: New class fields.
4268 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4269 inline function `_Jv_IsAssignableFrom'. Use that function.
4270 (isInstance): Declare `inline'.
4271 (initializeClass): Get lock on class before checking `state'. Unlock
4272 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4274 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4275 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4276 class->depth and ancestor table.
4277 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4278 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4279 _Jv_IsAssignableFrom.
4280 (_Jv_CheckArrayStore): Ditto.
4281 (_Jv_LookupInterfaceMethodIdx): New function.
4282 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4283 (_Jv_PrepareConstantTimeTables): New function.
4284 (_Jv_IndexOf): Ditto.
4285 (_Jv_GetInterfaces): Ditto.
4286 (_Jv_GenerateITable): Ditto.
4287 (_Jv_GetMethodString): Ditto.
4288 (_Jv_AppendPartialITable): Ditto.
4289 iindex_mutex, iindex_mutex_initialized: New static fields.
4290 (_Jv_FindIIndex): New function.
4292 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4294 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4295 (_Jv_CheckArrayStore): Ditto.
4296 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4297 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4298 Moved to gcj/array.h.
4299 (_Jv_Realloc): New function.
4301 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4303 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4304 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4305 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4306 JvNewDoubleArray): Implementations moved from prims.cc and
4309 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4311 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4313 2000-03-06 Tom Tromey <tromey@cygnus.com>
4315 * jni.cc (MARK_NONE): New define.
4316 (MARK_USER): Likewise.
4317 (MARK_SYSTEM): Likewise.
4318 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4320 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4321 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4322 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4323 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4325 (call): Use MARK_SYSTEM.
4326 (_Jv_GetJNIEnvNewFrame): New function.
4327 (_Jv_LookupJNIMethod): New function.
4328 (_Jv_JNI_PopSystemFrame): New function.
4329 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4331 2000-03-05 Tom Tromey <tromey@cygnus.com>
4333 Fix for PR libgcj/43:
4334 * include/Makefile.in: Rebuilt.
4335 * include/Makefile.am (include_HEADERS): New define.
4337 2000-03-05 Anthony Green <green@redhat.com>
4339 * gcj/javaprims.h ("Java"): Remove FirstThread.
4341 * configure.host: Fix __NO_MATH_INLNES botch.
4343 * Makefile.in: Rebuilt.
4344 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4345 (gnu/gcj/runtime/FirstThread.h): Moved.
4346 (ordinary_java_source_files): Move FirstThread.java.
4347 * prims.cc: Deal with FirstThread movement.
4349 (_Jv_RunMain): Ditto.
4351 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4352 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4354 2000-03-05 Warren Levy <warrenl@cygnus.com>
4356 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4357 Handle null addresses.
4359 2000-03-04 Anthony Green <green@redhat.com>
4361 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4364 2000-03-04 Anthony Green <green@redhat.com>
4366 * configure: Rebuilt.
4367 * configure.in (ZLIBTESTSPEC): New macro.
4368 (GCTESTSPEC): New macro.
4369 (LIBGCJTESTSPEC): New macro.
4370 * libgcj-test.spec.in: New file.
4372 2000-03-02 Tom Tromey <tromey@cygnus.com>
4374 * include/java-interp.h: Don't include MethodInvocation.h.
4375 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4376 * Makefile.in: Rebuilt.
4377 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4378 (ordinary_java_source_files): Don't mention
4379 MethodInvocation.java.
4380 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4381 * interpret.cc (MethodInvocation::continue1): Removed.
4382 (run): Handle exceptions here.
4383 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4385 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4387 (defineClass2): Removed.
4389 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4391 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4393 (hack_call): Removed.
4395 * java/lang/Class.h (Class): Removed hackRunInitializers,
4397 * java/lang/natClass.cc (hackRunInitializers): Removed.
4398 (initializeClass): Catch exceptions here.
4399 Include ExceptionInInitializerError.h.
4400 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4403 * java/lang/Object.h (Object): Don't mention hack12_6.
4404 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4406 * java/lang/Object.java (hack12_6): Removed.
4408 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4409 (start): Use run_, not run__.
4410 * java/lang/Thread.java (run_): Renamed from run__; old run_
4413 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4414 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4415 (_Jv_JNI_DefineClass): Likewise.
4416 (_Jv_JNI_ThrowNew): Likewise.
4417 (_Jv_JNI_AllocObject): Likewise.
4418 (_Jv_JNI_GetAnyMethodID): Likewise.
4419 (_Jv_JNI_CallAnyMethodV): Likewise.
4420 (_Jv_JNI_CallAnyMethodA): Likewise.
4421 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4422 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4423 (_Jv_JNI_GetAnyFieldID): Likewise.
4424 (_Jv_JNI_NewString): Likewise.
4425 (_Jv_JNI_NewStringUTF): Likewise.
4426 (_Jv_JNI_GetStringUTFChars): Likewise.
4427 (_Jv_JNI_NewObjectArray): Likewise.
4428 (_Jv_JNI_NewPrimitiveArray): Likewise.
4429 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4430 (_Jv_JNI_GetStringRegion): Likewise.
4431 (_Jv_JNI_GetStringUTFRegion): Likewise.
4432 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4433 (_Jv_JNI_MonitorEnter): Likewise.
4434 (_Jv_JNI_MonitorExit): Likewise.
4435 (_Jv_JNI_ToReflectedField): Likewise.
4436 (_Jv_JNI_ToReflectedMethod): Likewise.
4437 (_Jv_JNI_RegisterNatives): Likewise.
4438 (_Jv_JNI_AttachCurrentThread): Likewise.
4439 (_Jv_JNI_DestroyJavaVM): Likewise.
4441 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4443 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4444 error caused by the incorrect casting of a long to an int.
4446 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4448 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4449 SIGSEV caused by use of the wrong instance variable.
4451 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4453 * java/io/File.java (File(String, String)): For dirPath, treat an
4454 empty String the same as `null'.
4456 2000-02-26 Anthony Green <green@cygnus.com>
4458 * gnu/gcj/io/MimeTypes.java: Test for null.
4460 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4461 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4463 * java/net/URLConnection.java: Update copyright notice.
4465 2000-02-25 Tom Tromey <tromey@cygnus.com>
4467 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4470 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4472 * java/net/URLConnection.java (initializeDateFormats): New
4474 (getHeaderFieldDate): Call initializeDateFormats if required.
4475 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4477 Fix for PR libgcj/38.
4479 2000-02-24 Warren Levy <warrenl@cygnus.com>
4481 * java/math/BigInteger.java(ival): Made private.
4485 2000-02-20 Anthony Green <green@cygnus.com>
4487 * Makefile.in: Rebuilt.
4488 * Makefile.am (ordinary_java_source_files): Add
4489 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4491 * scripts/MakeDefaultMimeTypes.java: New file.
4492 * scripts/mime.types: New file.
4493 * scripts/classes.pl: Moved from top level.
4494 * classes.pl: Moved to scripts directory.
4496 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4498 * gnu/gcj/io/MimeTypes.java: New file.
4499 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4501 2000-02-20 Tom Tromey <tromey@cygnus.com>
4503 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4505 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4507 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4510 2000-02-18 Tom Tromey <tromey@cygnus.com>
4512 * include/jvm.h (_Jv_GetJavaVM): Declare.
4513 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4514 (_Jv_MethodBase::get_method): New method.
4515 (_Jv_JNIMethod::set_function): New method.
4516 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4517 (_Jv_JNI_RegisterNatives): New function.
4518 (_Jv_JNIFunctions): Updated for new functions.
4519 (_Jv_GetJavaVM): New function.
4520 (_Jv_JNI_GetJavaVM): Use it. Now static.
4521 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4522 is already a Java thread but does not have a JNIEnv yet.
4524 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4527 2000-02-17 Tom Tromey <tromey@cygnus.com>
4529 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4532 2000-02-16 Tom Tromey <tromey@cygnus.com>
4534 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4536 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4537 (_Jv_JNI_NewObject): Likewise.
4538 (_Jv_JNI_NewObjectA): Likewise.
4539 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4540 as "return" type to _Jv_CallAnyMethodA.
4541 (_Jv_JNI_CallAnyMethodA): Likewise.
4542 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4544 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4547 2000-02-15 Tom Tromey <tromey@cygnus.com>
4549 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4551 (init_cif): Added `rtype_p' argument.
4552 * include/java-interp.h (class _Jv_MethodBase): Added
4554 (class _Jv_InterpMethod): Removed args_raw_size.
4555 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4556 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4557 class pointer as well as the ordinary arguments.
4559 * jni.cc (mangled_name): Skip leading `(' in signature.
4561 * jni.cc (add_char): Added missing `else'.
4563 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4566 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4570 * java/lang/natRuntime.cc (_load): Include library path with
4573 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4576 * java/lang/natThread.cc (dumpStack): Removed.
4577 * java/lang/Thread.java (dumpStack): Implemented.
4579 2000-02-15 Tom Tromey <tromey@cygnus.com>
4581 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4582 with `lib' for loadLibrary. Fixes PR gcj/150.
4584 2000-02-14 Warren Levy <warrenl@cygnus.com>
4586 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4588 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4592 (modPow): Rewritten to not use the naive, slow, brute force approach.
4593 (isProbablePrime): Implemented.
4594 (testBit): Implemented.
4595 (flipBit): Implemented.
4596 (getLowestSetBit): Implemented.
4598 2000-02-16 Anthony Green <green@redhat.com>
4600 * configure.host: Use the same options for i386 and i486 as we do
4603 2000-02-12 Tom Tromey <tromey@cygnus.com>
4605 * java/io/File.java (createTempFile): Use low bits from counter,
4608 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4610 * THANKS: More thanks.
4612 2000-02-11 Tom Tromey <tromey@cygnus.com>
4614 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4615 astore instruction. From Hans Boehm.
4617 2000-02-11 Warren Levy <warrenl@cygnus.com>
4619 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4620 (BigInteger(String)): New constructor.
4621 (not): Rewritten using version from Kawa's BitOps class.
4622 (valueOf): New private methods from Kawa's BitOps class.
4629 (andNot): Implemented.
4630 (clearBit): Implemented.
4631 (setBit): Implemented.
4632 (bitCount): Implemented.
4633 (toByteArray): Implemented.
4635 2000-02-11 Tom Tromey <tromey@cygnus.com>
4637 * java/io/File.java (nextValue): Now synchronized.
4639 2000-02-10 Tom Tromey <tromey@cygnus.com>
4641 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4642 * java/io/FileDescriptor.java (EXCL): New static field.
4643 * java/io/File.java (tmpdir): New static field.
4644 (createTempFile): New method.
4645 (nextValue): New method.
4646 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4649 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4650 (jboolean): Declare as an attributed int, not a bool.
4651 (_Jv_func): Declare differently for C.
4653 * gnu/gcj/jni/natNativeThread.cc: New file.
4654 * gnu/gcj/jni/NativeThread.java: New file.
4655 * java/lang/Thread.java (data): Now a RawData.
4656 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4658 * Makefile.in: Rebuilt.
4659 * Makefile.am (java/lang/Thread.h): New target.
4660 (ordinary_java_source_files): Added NativeThread.java.
4661 (nat_source_files): Added natNativeThread.cc.
4662 * java/lang/natThread.cc: Include <jni.h>
4663 (struct natThread): Added `jni_env' field.
4664 (_Jv_GetCurrentJNIEnv): New function.
4665 (_Jv_SetCurrentJNIEnv): Likewise.
4666 (initialize_native): Initialize jni_env.
4668 * jni.cc (ThreadGroupClass): New define.
4669 (_Jv_JNI_InvokeFunctions): New structure.
4670 (JNI_GetCreatedJavaVMs): New function.
4671 (the_vm): New global.
4672 (JNI_GetDefaultJavaVMInitArgs): New function.
4673 Include NativeThread.h.
4674 (NativeThreadClass): New define.
4675 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4676 (_Jv_JNI_DestroyJavaVM): New function.
4677 (_Jv_JNI_AttachCurrentThread): New function.
4678 (_Jv_JNI_DetachCurrentThread): New function.
4679 (_Jv_JNI_GetEnv): New function.
4680 (JNI_CreateJavaVM): New function.
4681 (_Jv_JNI_GetJavaVM): New function.
4682 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4683 * include/jni.h (JavaVMAttachArgs): New structure.
4684 (JNI_EDETACHED): New define.
4685 (JNI_EVERSION): Likewise.
4686 (JavaVM): Define properly.
4687 (struct JNIInvokeInterface): New structure.
4688 (class _Jv_JavaVM): New class.
4689 (JNI_OnLoad, JNI_OnUnload): Declare.
4690 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4691 JNI_GetCreatedJavaVMs): Declare.
4692 (JavaVMInitArgs): New typedef.
4693 (JavaVMOption): Likewise.
4694 (JNI_ERR): New define.
4697 2000-02-10 Andrew Haley <aph@cygnus.com>
4699 * interpret.cc: Don't include fdlibm.h.
4700 Replace #if with #ifdef throughout.
4701 Declare extern __ieee754_fmod.
4702 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4704 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4705 Search class hierarchy for superclass vtable.
4707 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4708 off the end of a pointer list.
4710 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4714 2000-02-09 Tom Tromey <tromey@cygnus.com>
4716 * java/lang/natRuntime.cc (_load): Call add_library.
4717 (loadLibraryInternal): Likewise.
4719 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4720 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4721 (Output_iconv::finalize): Likewise.
4723 2000-02-08 Tom Tromey <tromey@cygnus.com>
4725 * java/util/Properties.java (setProperty): New method.
4726 (store): New method.
4728 2000-02-07 Tom Tromey <tromey@cygnus.com>
4730 * java/lang/Runtime.java (_load): Declare.
4731 (load, loadLibrary): Wrote in terms of _load.
4732 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4734 (loadLibrary): Likewise.
4736 (_load): New method.
4737 (loadLibrary, load): Removed.
4739 * jni.cc (ThrowableClass): New define.
4740 (_Jv_JNI_Throw): Check argument.
4741 (_Jv_JNI_ThrowNew): Likewise.
4742 (wrap_value): Don't wrap object if it is NULL.
4743 (_Jv_JNI_DefineClass): Use wrap_value.
4744 (_Jv_JNI_FindClass): Likewise.
4745 (_Jv_JNI_GetSuperclass): Likewise.
4746 (_Jv_JNI_ExceptionOccurred): Likewise.
4747 (_Jv_JNI_AllocObject): Likewise.
4748 (_Jv_JNI_GetObjectClass): Likewise.
4749 (_Jv_JNI_NewString): Likewise.
4750 (_Jv_JNI_NewStringUTF): Likewise.
4751 (_Jv_JNI_NewObjectArray): Likewise.
4752 (_Jv_JNI_GetObjectArrayElement): Likewise.
4753 (_Jv_JNI_NewPrimitiveArray): Likewise.
4754 (_Jv_JNI_ToReflectedField): Likewise.
4755 (_Jv_JNI_ToReflectedMethod): Likewise.
4756 (_Jv_JNI_AllocObject): Check argument.
4757 (_Jv_JNI_NewObjectV): Likewise.
4758 (_Jv_JNI_NewObject): Likewise.
4759 (_Jv_JNI_NewObjectA): Likewise.
4760 (_Jv_JNI_GetObjectClass): Likewise.
4761 (_Jv_JNI_GetField): Likewise.
4762 (_Jv_JNI_SetField): Likewise.
4764 * interpret.cc (PUSHL): Don't use expression statement.
4769 * jni.cc (add_char): Conditional on INTERPRETER.
4770 (mangled_name): Likewise.
4772 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4774 (class _Jv_JNIMethod): Likewise.
4776 2000-02-04 Warren Levy <warrenl@cygnus.com>
4778 * Makefile.am: Added MPN.java and BigInteger.java.
4779 * Makefile.in: Rebuilt.
4780 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4782 * java/math/BigInteger.java: New file. Based primarily on
4783 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4785 2000-02-04 Tom Tromey <tromey@cygnus.com>
4787 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4789 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4790 if the method is native.
4791 * resolve.cc (ncode): Don't handle native methods.
4792 (_Jv_JNIMethod::ncode): New method.
4793 (_Jv_PrepareClass): Handle native methods.
4794 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4795 Include AbstractMethodError.h.
4796 (add_char): New function.
4797 (mangled_name): Likewise.
4798 * include/java-interp.h (class _Jv_JNIMethod): New class.
4799 (class _Jv_MethodBase): New class.
4800 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4801 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4804 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4805 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4806 libraries): New globals.
4807 (add_library): New function.
4808 (_Jv_FindSymbolInExecutable): New function.
4810 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4813 2000-02-04 Andrew Haley <aph@cygnus.com>
4815 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4816 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4817 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4818 printStackTrace to printRawStackTrace.
4820 2000-02-03 Tom Tromey <tromey@cygnus.com>
4822 * java/util/Calendar.java (toString): New method.
4823 * java/util/SimpleTimeZone.java (clone): New method.
4824 (toString): New method.
4825 * java/util/TimeZone.java (clone): New method.
4826 * java/text/SimpleDateFormat.java (clone): New method.
4827 * java/text/NumberFormat.java (clone): New method.
4828 (equals): New method.
4829 * java/text/Format.java (clone): New method.
4830 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4832 (clone): New method.
4833 * java/text/DateFormat.java (clone): New method.
4834 * java/text/Collator.java (clone): New method.
4836 2000-02-03 Tom Tromey <tromey@cygnus.com>
4838 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4841 2000-02-01 Tom Tromey <tromey@cygnus.com>
4843 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4844 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4845 constructing the closure if the function is native.
4846 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
4847 a template function, #if'd out, or static.
4848 Include <java-interp.h>.
4850 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4852 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4854 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4855 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4857 (wrap_value): New function.
4858 (_Jv_JNI_CallAnyMethodV): Use it.
4859 (_Jv_JNI_CallAnyMethodA): Likewise.
4860 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4861 (_Jv_JNI_GetStaticField): Likewise.
4863 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4864 (_Jv_JNI_GetStaticField): Likewise.
4866 2000-01-31 Tom Tromey <tromey@cygnus.com>
4868 * prims.cc (_Jv_MallocUnchecked): New function.
4869 (main_init): Call _Jv_JNI_Init.
4870 * include/jvm.h (_Jv_MallocUnchecked): Declare.
4871 (_Jv_JNI_Init): Declare.
4872 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4874 (_Jv_JNI_NewGlobalRef): New function.
4875 (_Jv_JNI_DeleteGlobalRef): New function.
4876 (_Jv_JNI_DeleteLocalRef): New function.
4877 (_Jv_JNI_conversion_call): Initialize and clear local reference
4879 (_Jv_JNI_NewLocalRef): New function.
4880 (struct _Jv_JNI_LocalFrame): New structure.
4881 (_Jv_JNI_PushLocalFrame): New function.
4882 (_Jv_JNI_EnsureLocalCapacity): New function.
4883 (FRAME_SIZE): New define.
4884 (_Jv_JNI_GetStringChars): Mark string, not characters.
4885 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
4886 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
4887 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
4889 (_Jv_JNI_DefineClass): Make return value a local ref.
4890 (_Jv_JNI_FindClass): Likewise.
4891 (_Jv_JNI_GetSuperclass): Likewise.
4892 (_Jv_JNI_ExceptionOccurred): Likewise.
4893 (_Jv_JNI_AllocObject): Likewise.
4894 (_Jv_JNI_GetObjectClass): Likewise.
4895 (_Jv_JNI_CallAnyMethodV): Likewise.
4896 (_Jv_JNI_NewString): Likewise.
4897 (_Jv_JNI_NewStringUTF): Likewise.
4898 (_Jv_JNI_NewObjectArray): Likewise.
4899 (_Jv_JNI_GetObjectArrayElement): Likewise.
4900 (_Jv_JNI_ToReflectedField): Likewise.
4901 (_Jv_JNI_ToReflectedMethod): Likewise.
4902 (_Jv_JNIFunctions): Updated table for new functions.
4903 (_Jv_JNI_Init): New function.
4904 (mark_for_gc): Wrote.
4905 (unmark_for_gc): Wrote.
4906 * include/jni.h (struct JNINativeInterface): Removed name from
4907 PopLocalFrame parameter.
4908 (class _Jv_JNIEnv): Added `locals' field.
4910 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
4912 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
4915 2000-01-30 Tom Tromey <tromey@cygnus.com>
4917 * include/config.h.in: Rebuilt.
4918 * acconfig.h (HAVE_ICONV): Define.
4919 * configure: Rebuilt.
4920 * configure.in: Check for `iconv' function.
4921 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
4922 no specific encoder exists.
4923 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
4924 no specific encoder exists.
4925 * Makefile.in: Rebuilt.
4926 * Makefile.am (convert_source_files): Mention Input_iconv.java and
4928 (nat_source_files): Added natIconv.cc.
4929 * gnu/gcj/convert/natIconv.cc: New file.
4930 * gnu/gcj/convert/Input_iconv.java: New file.
4931 * gnu/gcj/convert/Output_iconv.java: New file.
4933 2000-01-28 Tom Tromey <tromey@cygnus.com>
4935 * Makefile.in: Rebuilt.
4936 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
4938 2000-01-26 Tom Tromey <tromey@cygnus.com>
4940 * gcj/method.h (JvNumMethods): Moved from Class.h.
4941 (JvGetFirstMethod): Likewise.
4942 * java/lang/Class.h (Object): Updated decl of
4943 _Jv_JNI_ToReflectedField.
4944 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
4945 * Makefile.in: Rebuilt.
4946 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
4947 argument of _Jv_JNI_ToReflectedField.
4948 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
4950 (java/lang/reflect/Method.h): Likewise.
4951 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
4953 (jweak): New typedef.
4954 (struct JNINativeInterface): Correctly declare remaining entries.
4955 * jni.cc: Include Class.h, ClassLoader.h.
4956 (_Jv_JNI_FindClass): New function.
4957 (_Jv_JNI_DefineClass): New function.
4958 (_Jv_JNI_conversion_call): New function.
4959 (_Jv_JNI_FindClass): Use current class loader to find class.
4960 (_Jv_JNI_ExceptionCheck): New function.
4961 (_Jv_JNI_FromReflectedField): Now static.
4962 (MethodClass): New define.
4963 (_Jv_JNI_FromReflectedMethod): New function.
4964 (_Jv_JNI_ToReflectedMethod): Likewise.
4966 (_Jv_JNI_IsAssignableFrom): Renamed.
4967 (_Jv_JNI_GetStringRegion): New function.
4968 Include StringIndexOutOfBoundsException.h.
4969 (_Jv_JNI_GetStringUTFRegion): New function.
4970 (_Jv_JNIFunctions): Updated for new functions.
4971 (_Jv_JNI_GetPrimitiveArrayCritical): New function
4972 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
4973 (_Jv_JNI_GetStringCritical): New function.
4974 (_Jv_JNI_ReleaseStringCritical): Likewise.
4975 (get_throwable): Removed.
4976 (GCJ_JV_JNIENV_FRIEND): Removed.
4977 (__GCJ_JNI_IMPL__): Define.
4980 * resolve.cc (get_ffi_type_from_signature): Handle case where
4983 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
4985 * interpret.cc (run): Don't call println.
4986 Don't include PrintStream.h.
4988 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
4989 nameIndex. Use "jint" as type for boffset.
4990 * java/lang/Class.h (struct _Jv_Method): Made accflags a
4992 (Class): Likewise. Also changed type of method_count,
4993 vtable_method_count, size_in_bytes, field_count,
4994 static_field_count, interface_count.
4995 * gcj/array.h (__JArray): Made `length' a const jsize, not an
4998 2000-01-21 Tom Tromey <tromey@cygnus.com>
5000 * java/lang/reflect/natConstructor.cc (newInstance): Use
5002 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5003 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5004 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5007 (invoke): Use _Jv_CallAnyMethodA.
5009 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5010 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5012 (struct _Jv_Method): Added getNextMethod method.
5013 (JvNumMethods): New function.
5014 (JvGetFirstMethod): Likewise.
5015 * gcj/field.h (JvGetFirstStaticField): New function.
5016 (JvNumStaticFields): Likewise.
5017 (getNextField): Renamed from getNextInstanceField.
5018 (struct _Jv_Field): New method getClass.
5019 * jni.cc: Wrote many new functions.
5020 * include/jni.h (JNI_TRUE): Define.
5021 (JNI_FALSE): Likewise.
5022 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5023 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5024 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5025 (jfieldID, jmethodID): Likewise.
5026 (JNI_COMMIT, JNI_ABORT): New defines.
5027 (JNINativeMethod): New struct.
5028 (struct JNINativeInterface): Correctly declared more entries.
5029 (class _Jv_JNIEnv): Added `ex' member.
5030 (JNI_VERSION_1_1): New define.
5031 (JNI_VERSION_1_2): Likewise.
5033 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5034 getNextInstanceField.
5036 2000-01-20 Tom Tromey <tromey@cygnus.com>
5038 * resolve.cc (StringClass): Removed.
5039 * defineclass.cc (StringClass): Removed.
5041 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5045 2000-01-19 Tom Tromey <tromey@cygnus.com>
5047 * interpret.cc (PC_REGISTER_ASM): Removed.
5049 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5050 From Bryce McKinlay.
5052 * All files: Updated copyright to reflect Cygnus purchase.
5054 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5056 * configure: Rebuilt.
5057 * configure.in: Recognize --disable-interpreter.
5059 2000-01-18 Andrew Haley <aph@cygnus.com>
5061 * name-finder.cc (lookup): Check for dladdr function.
5062 acconfig.h (HAVE_DLADDR): Add.
5063 configure.in: Check for HAVE_DLADDR
5065 include/config.h.in: Rebuilt.
5067 2000-01-17 Andrew Haley <aph@cygnus.com>
5069 * prims.cc (_Jv_RunMain): Set the name of this executable.
5071 2000-01-17 Tom Tromey <tromey@cygnus.com>
5073 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5074 when backtrace can't be computed.
5076 * configure: Rebuilt.
5077 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5079 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5080 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5081 (_Jv_FindClassInCache): Likewise.
5082 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5083 (findSystemClass): Try to load class from compiled module.
5085 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5086 (loadLibrary): Likewise.
5087 (lt_preloaded_symbols): Define.
5088 (loadLibraryInternal): New method.
5089 * include/config.h.in: Rebuilt.
5090 * acconfig.h (USE_LTDL): Added.
5091 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5092 (INCLUDES): Added $(INCLTDL).
5093 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5094 (libgcj_la_LIBADD): Likewise.
5095 * aclocal.m4, configure: Rebuilt.
5096 * configure.in: Added libltdl support.
5098 2000-01-15 Tom Tromey <tromey@cygnus.com>
5100 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5102 2000-01-14 Andrew Haley <aph@cygnus.com>
5104 * java/lang/natThrowable.cc: New file.
5106 * java/lang/Throwable.java (fillInStackTrace): Make native.
5107 (printStackTrace): Call native method to do this.
5108 (Throwable): Call fillInStackTrace.
5109 (stackTrace): New variable.
5111 * include/jvm.h: Add _Jv_ThisExecutable functions.
5113 * prims.cc: (_Jv_execName): New variable.
5114 (catch_segv): Call fillInStackTrace.
5116 (_Jv_ThisExecutable): New functions.
5117 (JvRunMain): Set the name of this executable.
5119 * Makefile.am: Add java/lang/natThrowable.cc.
5121 * Makefile.in: Rebuilt.
5123 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5125 * configure.in: Force link with __frame_state_for in
5126 FORCELIBGCCSPEC. Add new checks for backtrace.
5127 * include/config.h.in: Rebuilt.
5129 * name-finder.cc: New file.
5130 * include/name-finder.h: New file.
5132 2000-01-16 Anthony Green <green@cygnus.com>
5134 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5137 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5139 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5141 2000-01-13 Tom Tromey <tromey@cygnus.com>
5143 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5144 not system loader, as initiating loader.
5146 2000-01-11 Tom Tromey <tromey@cygnus.com>
5148 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5149 HP/UX. From David Scott Urban.
5151 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5153 * java/lang/natMath.cc (pow): Cast args to `double', not
5156 (IEEEremainder): Likewise.
5157 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5158 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5160 2000-01-09 Anthony Green <green@cygnus.com>
5162 * java/lang/natString.cc (init): Test for overflow condition
5163 during out of bounds check.
5164 (getChars): Throw StringIndexOutOfBoundsException, not
5165 ArrayIndexOutOfBoundsException.
5167 (regionMatches): Obey case option during string comparison.
5169 * configure.host (ligcj_interpreter): New variable. Enable
5170 interpreter by default on IA-32.
5171 * configure.in: Examine libgcj_interpreter.
5172 * configure: Rebuilt.
5174 2000-01-07 Tom Tromey <tromey@cygnus.com>
5176 * mauve-libgcj: Don't disable ClassTest.
5178 * java/lang/natClass.cc (getClasses): Wrote.
5180 2000-01-06 Tom Tromey <tromey@cygnus.com>
5182 * java/lang/natClass.cc (_getConstructors): Correctly check
5183 whether method name is the init name.
5184 (getMethod): Look at accflags on method in `klass', not `this'.
5186 2000-01-05 Tom Tromey <tromey@cygnus.com>
5188 * java/lang/natClass.cc (getMethod): Compute offset relative to
5189 `klass's methods table, not `this's table.
5191 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5192 In unwrapping/widening case, check whether `k' is null, not
5193 whether it is primitive. Initialize `num' from `argelts', not
5194 `paramelts'. Correct create and pass arguments to ffi_call.
5195 Don't let presence of `this' argument affect index used to look in
5197 (COPY): Set appropriate element in `values' vector.
5199 * java/lang/natClass.cc: Include <gcj/method.h>.
5201 * java/lang/Class.h (_getMethods): Correctly declare as private,
5204 * java/lang/Class.h (_getMethods): Declare.
5205 * java/lang/Class.java (_getMethods): Declare.
5206 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5207 (getDeclaredClasses): Always return empty array.
5208 (_getMethods): New method.
5209 (getMethods): Wrote.
5210 (getDeclaredMethod): Return `rmethod'.
5211 (finit_name): New global.
5212 (getDeclaredMethods): Check for finit_name.
5213 (_getMethods): Likewise.
5214 (getMethod): Only return public methods.
5216 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5217 jboolean and select correct ffi type on that basis.
5218 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5219 Constructor call always has `void' return type.
5221 2000-01-04 Tom Tromey <tromey@cygnus.com>
5223 * java/lang/Class.h (getSignature): Updated.
5224 * java/lang/Class.java (getSignature): Updated.
5225 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5227 (getConstructor): Ensure constructor is public.
5228 (_getConstructors): Check for public-ness of constructor when
5229 `declared' is false, not when it is true.
5231 2000-01-04 Warren Levy <warrenl@cygnus.com>
5233 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5235 (receive): Set the sender's address in the DatagramPacket.
5237 2000-01-04 Tom Tromey <tromey@cygnus.com>
5239 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5240 declaring class as return_type argument to
5241 _Jv_CallNonvirtualMethodA.
5242 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5243 constructor case, create object and use it as `this' argument.
5244 * java/lang/Class.h (_getConstructors): Declare.
5245 (_getFields): Declare.
5246 * java/lang/Class.java (getConstructors): Wrote.
5247 (_getConstructors): New native method.
5248 (getDeclaredConstructors): Wrote.
5249 (_getFields): Declare new native method.
5250 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5252 (getMethod): Work correctly when class is primitive.
5253 (getDeclaredMethods): Likewise. Compute offset using `method',
5255 (getDeclaredMethod): Likewise.
5256 (getConstructor): Wrote.
5257 (ConstructorClass): New define.
5258 (getDeclaredConstructor): Wrote.
5259 (_getConstructors): New method.
5260 (_getFields): New method.
5263 * Makefile.in: Rebuilt.
5264 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5266 * prims.cc: Remove `#pragma implementation'.
5267 * gcj/array.h: Remove `#pragma interface'.
5269 * prims.cc (_Jv_equaln): New function.
5270 * java/lang/Class.java (getSignature): Declare.
5271 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5272 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5274 (getSignature): New method.
5275 (getDeclaredMethod): Wrote.
5277 Include StringBuffer.h.
5278 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5279 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5281 (getSignature): Declare.
5282 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5283 (_Jv_equaln): Declare.
5284 (_Jv_CallNonvirtualMethodA): Declare.
5285 * Makefile.in: Rebuilt.
5286 * Makefile.am (nat_source_files): Added natConstructor.cc.
5287 (java/lang/reflect/Constructor.h): New target.
5288 * java/lang/reflect/natConstructor.cc: New file.
5289 * java/lang/reflect/Constructor.java (newInstance): Now native.
5290 (declaringClass): Renamed from decl_class.
5291 (offset): Renamed from index.
5292 (getType): New native method.
5293 (getModifiers): Now native.
5294 (getParameterTypes): Call getType if required.
5295 (hashCode): Include hash code from declaring class.
5296 (modifiers): Removed.
5297 (toString): Call getType if required.
5298 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5299 * java/lang/reflect/natMethod.cc (hack_call): New method.
5300 Removed `#if 0' around FFI code.
5301 Include <gnu/gcj/RawData.h>.
5302 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5303 IllegalArgumentException when argument object and class disagree.
5304 (_Jv_GetTypesFromSignature): New function.
5306 (ObjectClass): New define.
5307 (_Jv_CallNonvirtualMethodA): New function.
5308 * java/lang/reflect/Method.java (hack_trampoline): New method.
5309 (hack_call): New native method.