1 2001-01-17 Mark Wielaard <mark@klomp.org>
3 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
5 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
7 * java/lang/Class.h (isInterface): Move implementation from
8 natClass.cc. Declare inline.
9 (Class): Add default constructor.
10 * java/lang/Object.h: Update comments.
11 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
12 initialize superclass, saving a call if super is already initialized.
14 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
16 * prims.cc (init_prim_class): Deleted.
17 (DECLARE_PRIM_TYPE): Rewritten.
18 * java/lang/Class.h (stdio.h): Include removed.
20 (java/lang/reflect/Modifier.h): Likewise.
21 (Class): Contructor now takes arguments, initializes fields.
22 (initializePrim): Prototype deleted.
23 * java/lang/natClass.cc (initializePrim): Deleted.
25 2001-01-16 Warren Levy <warrenl@redhat.com>
27 * java/math/BigInteger.java: Update Copyright year.
29 2001-01-16 Hans Boehm <hans_boehm@hp.com>
31 * java/math/BigInteger.java (setShiftRight): Only do negative shift
34 2001-01-14 Mark Wielaard <mark@klomp.org>
35 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
36 (decode): Merge comments with Classpath, don't throw Exception
38 2001-01-12 Tom Tromey <tromey@redhat.com>
40 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
44 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
45 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
46 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
47 * gnu/awt/gtk/GtkLabelPeer.java: New file.
48 * gnu/awt/gtk/GtkButtonPeer.java: New file.
50 * java/lang/natSystem.cc: Include locale.h if it exists.
52 * configure.in: Check for locale.h.
54 2001-01-11 Tom Tromey <tromey@redhat.com>
56 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
57 (Cursor(int), getPredefinedCursor): Throw exception if argument
60 2001-01-03 Tom Tromey <tromey@redhat.com>
62 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
63 (getLocationOnScreen): Wrote.
65 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
67 * Makefile.am: Re-enable dependencies.
68 * Makefile.in: Rebuilt.
70 2001-01-10 Warren Levy <warrenl@redhat.com>
72 * java/math/BigDecimal.java (divide): Fixed comment.
74 2001-01-10 Warren Levy <warrenl@redhat.com>
76 Fix for PR libgcj/1596:
77 * java/math/BigDecimal.java (divide): Check newScale for validity.
78 Ensure that BigInteger.pow() is called with a non-negative value.
79 (setScale (int)): New public method.
80 (setScale (int,int)): New public method.
82 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
84 Fix for PR libgcj/1338:
85 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
86 commentChar. Fixed typos in comments.
88 2001-01-08 Warren Levy <warrenl@redhat.com>
90 Fix for PR libgcj/1411:
91 * Makefile.am: Removed java/util/natTimeZone.cc.
92 * Makefile.in: Rebuilt.
93 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
94 missing localized timezone names.
95 * java/lang/System.java (getDefaultTimeZoneId): New private method.
96 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
97 (init_properties): Set user.timezone property.
98 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
99 default timezone names; removed non-standard ones. Use standard
101 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
103 * java/util/TimeZone.java: Add standard ID names per JCL; removed
105 (getDefaultTimeZoneId): Removed.
107 (getDefaultTimeZoneId): Removed.
108 * java/util/natTimeZone.cc: Removed.
110 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
112 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
113 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
114 (_Jv_GetArrayClass): New inline function.
115 (arrayclass): New field.
116 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
117 _Jv_GetArrayElementFromElementType.
118 (_Jv_NewPrimArray): Ditto.
119 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
120 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
121 Set Modifier::ABSTRACT.
122 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
123 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
124 Now synchronized. Array classes are now referenced from
125 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
126 Set array classes' accessibility flags correctly. Optimize so that
127 all array classes share the same IDT.
128 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
129 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
130 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
131 in superclasses from overwriting classes own fields.
132 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
133 Modifier::isAbstract().
134 (null_idt): New static field.
135 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
137 (_Jv_IndexOf): Made inline.
138 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
140 2001-01-08 Tom Tromey <tromey@redhat.com>
142 Fix for PR java/1586:
143 * Makefile.in: Rebuilt.
144 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
146 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
148 * Makefile.am: Use the new "-M -MF" option for generating dependencies
149 from the c++ compiler.
150 * Makefile.in: Rebuilt.
152 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
154 All files with updated copyright.
155 * prims.cc (class _Jv_PrimClass): Removed.
156 (init_prim_class): New function.
157 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
158 `_Jv_PrimClass' in primitive type declarations. Assign to the
159 value returned by `init_prim_class.'
160 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
161 primitive type declarations.
162 (JvPrimClass): Cast to `jclass' removed.
163 * java/lang/Class.h (Class): New constructor.
164 (Class): New copy constructor.
165 (initializePrim): New prototype.
166 (_Jv_PrimClass): Field removed.
167 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
168 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
169 (class java::lang::Object): `finalize' moved up front.
170 * java/lang/natClass.cc
171 (isAssignableFrom): Turned outline.
172 (isInstance): Likewise.
173 (isInterface): Likewise, fixed indentation.
174 (initializePrim): New function.
176 2001-01-07 Anthony Green <green@redhat.com>
178 * Makefile.am (texinfo): Add texinfo target for generating texinfo
180 * Makefile.in: Rebuilt.
182 * scripts/TexinfoDoclet.java: New file.
184 * doc/java-applet.texi, doc/java-lang-reflect.texi,
185 doc/java-awt-color.texi, doc/java-lang.texi,
186 doc/java-awt-datatransfer.texi, doc/java-math.texi,
187 doc/java-awt-event.texi, doc/java-net.texi,
188 doc/java-awt-geom.texi, doc/java-security-spec.texi,
189 doc/java-awt-image.texi, doc/java-security.texi,
190 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
191 doc/java-text.texi, doc/java-beans-beancontext.texi,
192 doc/java-util-jar.texi, doc/java-beans.texi,
193 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
194 doc/java-lang-ref.texi: New files.
196 2001-01-07 Anthony Green <green@redhat.com>
198 * java/net/URLConnection.java (setDoOutput): URLConnection's may
199 be used for both input and output, so don't clear doInput.
201 * java/lang/StringBuffer.java: Fix comments.
203 2001-01-06 Anthony Green <green@redhat.com>
205 * java/beans/PropertyDescriptor.java: Fix comment.
206 * java/io/PushbackReader.java: Fix comment.
207 * java/io/ObjectStreamClass.java: Fix comment.
208 * java/io/DataInputStream.java: Fix comment.
209 * java/io/PipedInputStream.java: Fix comments.
210 * java/io/PipedReader.java: Fix comments.
211 * java/sql/DatabaseMetaData.java: Fix comments.
213 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
215 * java/io/PipedReader: Synchronize on "lock" instead of this.
217 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
219 * java/lang/Thread.java: Update comment.
221 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
222 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
223 * java/io/PipedReader: New implementation based on new
225 * java/io/PipedWriter: Updated to match new PipedReader.
227 2001-01-03 Tom Tromey <tromey@redhat.com>
229 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
230 (getViewportSize): Insets include scrollbar size.
231 (doLayout): Finished.
232 (getScrollPosition): Wrote.
233 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
235 2001-01-02 Tom Tromey <tromey@redhat.com>
237 * java/awt/ScrollPane.java: Wrote.
238 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
241 * java/awt/Panel.java (Panel()): Fixed.
243 * java/awt/Component.java (isShowing): Return false if no peer
244 exists, and true if component is visible and no parent exists.
245 (getLocationOnScreen): Wrote.
246 (getPreferredSize): Removed FIXME comment.
247 (getMinimumSize): Likewise.
248 (getAlignmentX, getAlignmentY): Wrote.
250 (requestFocus): Wrote.
251 (transferFocus): Wrote.
252 (findNextFocusComponent): New method.
255 (enableEvents): Call setEventMask on the peer.
257 * java/awt/Container.java (list): Use super.list() to print self.
258 (findNextFocusComponent): New method.
259 (setLayout): Call invalidate.
260 (findComponentAt): Wrote.
262 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
264 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
265 the correct versions of various linuxthreads functions get linked.
266 * Makefile.in: Rebuilt.
267 * java/lang/natThread.cc (finalize_native): New static function. Call
268 _Jv_ThreadDestroyData.
269 (initialize_native): Register finalizer for "data".
270 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
271 (_Jv_ThreadDestroyData): New prototype.
272 * include/win32-threads.h: Ditto.
273 * include/no-threads.h: Ditto.
274 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
275 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
276 move mutex and condition variable destroy code from:
277 (really_start): ...here.
278 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
279 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
280 (_Jv_ThreadDestroyData): Implemented.
281 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
282 (_Jv_AllocArray): Ditto.
284 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
286 * java/sql/DriverManager.java (getConnection): Don't set user/password
289 2000-12-27 Warren Levy <warrenl@redhat.com>
291 Fix for PR libgcj/1358:
292 * java/lang/System.java: Update Copyright date properly.
293 * java/util/Calendar.java: Fix typo in comment.
294 (set): Set 24-hour clock hour instead of 12-hour clock hour.
295 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
296 initialize times. Spec says to set H:M:S values to zero only if
298 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
299 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
300 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
301 timezones and GMT offsets, being careful to account for units of
302 milliseconds vs. seconds.
304 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
306 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
307 not be assigned to Object.
309 Fix for PR libgcj/1516:
310 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
312 (can_widen): Declared inline. Remove redundant checks for void
313 arguments and char->short conversion. Add special case for boolean
315 (ffi_type): Declared inline.
316 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
318 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
320 * java/sql/SQLWarning.java: Fixed typo in comment.
322 2000-12-26 Tom Tromey <tromey@redhat.com>
324 * java/awt/MenuItem.java (paramString): Now protected.
326 * java/awt/MenuShortcut.java: Implements Serializable.
328 * java/awt/MenuBar.java: Rewrote from scratch.
330 * java/awt/MenuComponent.java (removeNotify): Wrote.
331 Implements Serializable.
333 * java/awt/GridBagConstraints.java (GridBagConstraints): New
336 * java/awt/CheckboxMenuItem.java: Wrote.
338 2000-12-25 Tom Tromey <tromey@redhat.com>
340 * java/awt/MenuContainer.java: Fixed typo.
342 * Makefile.in: Rebuilt.
343 * Makefile.am (awt_java_source_files): Added SystemColor.java.
344 * java/awt/SystemColor.java: New file.
346 * java/awt/Color.java (rgba): Now package-private.
348 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
350 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
353 * java/awt/MenuItem.java (addNotify): New method.
354 (MenuItem(String,MenuShortcut)): New constructor.
355 (setLabel): Notify peer of change.
356 (setEnabled): Likewise.
358 * java/awt/GridLayout.java (toString): New method.
360 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
361 (FlowLayout): Check for LEADING and TRAILING.
362 (setAlignment): Likewise.
363 (layoutContainer): Handle component orientation.
365 * java/awt/Component.java (orientatin): New field.
366 (setComponentOrientation): Wrote.
367 (getComponentOrientation): Wrote.
369 * java/awt/Event.java (Event): Implements Serializable.
370 (consumed): New field for serialization.
371 * java/awt/Dimension.java (Dimension): Implements Serializable.
372 * java/awt/Cursor.java (Cursor): Implements Serializable.
373 * java/awt/Container.java (Container): No longer abstract.
375 * java/awt/Choice.java: Wrote.
376 * java/awt/Checkbox.java: Wrote.
377 * java/awt/ItemSelectable.java: Documented.
378 * java/awt/CheckboxGroup.java: Wrote.
380 * java/awt/CardLayout.java (layoutContainer): Directly use fields
384 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
386 * java/io/FileDescriptor.java: Initialize fd to -1.
387 Remove default constructor.
389 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
391 * java/lang/mprec.h: Change C9X reference to refer to C99.
393 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
395 * java/lang/Throwable.java (trace_enabled): New static field.
396 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
397 trace_enabled not set.
398 * prims.cc (main_init): Turn off trace_enabled while creating
399 default exception objects.
401 2000-12-21 Tom Tromey <tromey@redhat.com>
403 * java/beans/PropertyChangeListener.java: Extends EventListener.
404 * java/beans/VetoableChangeListener.java: Extends EventListener.
406 * java/util/zip/Deflater.java (update, init): Now private.
408 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
410 * java/util/BasicMapEntry.java: Re-added.
411 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
412 (putAll): Test for BasicMapEntry.
413 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
414 (putAll): Test for BasicMapEntry.
415 Change references from `HashMap.Entry' to `Entry' in various places.
416 * Makefile.am: Add BasicMapEntry.java.
417 * Makefile.in: Rebuilt.
419 2000-12-18 Warren Levy <warrenl@redhat.com>
421 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
422 need to set timezone to a valid non-null value. Partial fix for
425 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
427 * java/awt/Window.java (addNotify): Remove peer casting hack now that
429 * java/awt/Button.java (addNotify): Likewise.
430 * java/awt/Label.java (addNotify): Likewise.
431 * java/awt/Panel.java (addNotify): Likewise.
432 * java/awt/Scrollbar.java (addNotify): Likewise.
433 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
434 Remove redundant null checks.
436 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
438 * COPYING: Update to current
439 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
440 to 19yy as example year in copyright notice).
442 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
444 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
445 end-of-stream if avail_in is 0.
447 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
449 * java/util/ArrayList.java (data): Declare transient.
450 (serialPersistantFields): Removed.
451 (readObject): Use defaultReadObject(), not readFields().
452 (writeObject): Use defaultWriteObject(), not writeFields().
454 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
456 * java/util/Hashtable.java (put): Remove `last' variable.
457 Link new entry to head of list.
458 * java/util/HashMap.java (put): Ditto.
460 2000-12-15 Tom Tromey <tromey@redhat.com>
462 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
463 loader to Class.forName.
465 2000-12-14 Tom Tromey <tromey@redhat.com>
467 * java/util/ResourceBundle.java
468 (getBundle(String,Locale,ClassLoader)): New method.
469 (trySomeGetBundle): Added `loader' argument.
470 (partialGetBundle): Likewise.
472 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
473 maximumFractionDigits, maximumIntegerDigits,
474 minimumFractionDigits, minimumIntegerDigits): Now
477 * java/lang/Thread.java (checkAccess): Now final.
479 * java/lang/RuntimePermission.java: Class now final.
481 * java/io/StringWriter.java (StringWriter(int)): Now public.
483 * java/io/SerializablePermission.java (legal_names): Now private.
485 * java/lang/Character.java: Updated UnicodeBlock constants.
486 * scripts/blocks.pl: Special case private use and surrogate
489 2000-12-12 Tom Tromey <tromey@redhat.com>
491 * Makefile.in: Rebuilt.
492 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
494 (GCJCOMPILE): Use it.
497 2000-12-11 Tom Tromey <tromey@redhat.com>
499 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
500 New static final fields.
502 * scripts/classes.pl (scan): Skip lines with leading `*'.
503 Fix for PR libgcj/378.
505 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
507 * configure.in: Remove check for -fuse-divide-subroutine.
508 * configure: Rebuilt.
510 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
512 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
514 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
516 * Makefile.am: Add HashSet.java and java/lang/ref classes.
517 Remove BasicMapEntry.java and Bucket.java.
518 * Makefile.in: Rebuilt.
519 * java/util/HashMap.java: Rewritten.
520 * java/util/HashSet.java: Imported from classpath.
521 * java/util/WeakHashMap.java: Imported from classpath.
522 * java/util/Hashtable.java: Rewritten based on new HashMap code.
523 * java/util/Bucket.java: Deleted.
524 * java/util/BasicMapEntry.java: Deleted.
525 * java/util/Collections.java (search): Use a for-loop, not iterator
527 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
528 of elements in source.
529 (max): Use a for-loop.
531 (reverse): Keep track of positions instead of using Iterator's
532 nextIndex() and previousIndex().
533 (shuffle(List)): Initialize defaultRandom if required using
534 double-check thread safety idiom. Call two-argument shuffle method
536 (defaultRandom): New field.
537 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
538 using previousIndex() and nextIndex().
539 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
540 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
541 * java/util/AbstractMap.java (toString): Use StringBuffer.
542 * java/lang/ref/PhantomReference.java: Imported from classpath.
543 * java/lang/ref/SoftReference.java: Ditto.
544 * java/lang/ref/Reference.java: Ditto.
545 * java/lang/ref/WeakReference.java: Ditto.
546 * java/lang/ref/ReferenceQueue.java: Ditto.
548 2000-12-10 Richard Henderson <rth@redhat.com>
550 * configure.host: Recognize alpha*-*, not alphaev6-*.
552 2000-12-09 Anthony Green <green@redhat.com>
554 * configure.host: Enable interpreter for Alpha.
556 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
558 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
559 (ZIP): Points at fastjar instead of zip.
560 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
561 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
562 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
563 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
564 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
565 ($(x_java_source_files:.java=.class):): Likewise.
566 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
568 (CLEANFILES): libgcj.jar replaces libgcj.zip.
569 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
570 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
571 java/lang/String.h:, java/lang/reflect/Constructor.h:,
572 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
573 gnu/gcj/runtime/VMClassLoader.h:,
574 java/io/ObjectInputStream$$GetField.h:,
575 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
576 (Makefile.in): Rebuilt.
578 2000-12-08 Tom Tromey <tromey@redhat.com>
581 * configure: Rebuilt.
582 * configure.in: Use echo, not `:', to create .d files.
584 2000-12-08 Warren Levy <warrenl@redhat.com>
586 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
587 NullPointerException so proper check of offset can be done.
589 2000-12-08 Warren Levy <warrenl@redhat.com>
591 * java/io/FileInputStream.java (close): Check if the fd is valid.
592 * java/io/RandomAccessFile.java (close): Ditto.
593 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
594 * java/net/PlainSocketImpl.java (close): Ditto.
596 2000-12-06 Tom Tromey <tromey@redhat.com>
598 * java/awt/GridBagConstraints.java: Filled in values for static
601 * java/util/BitSet.java: Updated copyright notice.
603 * Makefile.in: Rebuilt.
604 * Makefile.am (awt_java_source_files): Added new file.
605 * java/awt/GridBagConstraints.java: New file.
607 2000-12-05 Tom Tromey <tromey@redhat.com>
609 * java/text/Collator.java (decomposeCharacter, decmp, strength):
610 Now package-private, not protected.
611 * java/text/DateFormatSymbols.java (equals): Now private.
612 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
613 * java/util/BitSet.java: Class no longer final.
615 2000-12-04 Warren Levy <warrenl@redhat.com>
617 * java/util/TimeZone.java (getAvailableIDs): Activated commented
618 out code dependent on compiler and library changes.
620 2000-12-04 Warren Levy <warrenl@redhat.com>
622 * java/io/FilePermission.java: Made class final per spec.
623 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
624 method name to match spec (fixed typo).
625 * java/util/LinkedList.java: Implements List.
627 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
629 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
630 Edgar Villanueva <edgarvil@home.com>.
632 2000-12-03 Tom Tromey <tromey@redhat.com>
634 * java/awt/geom/Point2D.java: Added protected constructor.
635 (equals): New method.
636 (Float.setLocation(float,float)): New method.
637 * java/awt/geom/Dimension2D.java: Added protected constructor.
638 * java/awt/geom/AffineTransform.java: Made all constants public.
639 (concatenate): Fixed typo in name.
640 * java/awt/event/WindowAdapter.java: Class now abstract.
641 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
642 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
645 * java/awt/AWTError.java: Extend Error, not
646 IllegalStateException.
648 * Makefile.in: Rebuilt.
649 * Makefile.am (awt_java_source_files): Added new file.
650 * java/awt/geom/RoundRectangle2D.java: New file.
652 * Makefile.in: Rebuilt.
653 * Makefile.am (awt_java_source_files): Added new file.
654 * java/awt/FlowLayout.java: New file.
656 * Makefile.in: Rebuilt.
657 * Makefile.am (awt_java_source_files): Added new file.
658 * java/awt/GridLayout.java: New file.
660 2000-12-02 Tom Tromey <tromey@redhat.com>
662 * Makefile.in: Rebuilt.
663 * Makefile.am (awt_java_source_files): Added new files.
664 * java/awt/CardLayout.java: New file.
665 * java/awt/AWTPermission.java: New file.
667 2000-12-01 Tom Tromey <tromey@redhat.com>
669 * java/util/Vector.java (insertElementAt): Unconditionally
670 increment elementCount.
671 (removeRange): Clear unused slots in vector.
673 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
675 * java/lang/natMath.cc: Declare fabsf() function.
676 * java/lang/mprec.h: Don't include math.h.
677 * java/lang/dtoa.c: Include string.h.
678 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
681 From Adam Welc <welc@cs.purdue.edu>:
682 * java/util/LinkedList.java (removeFirst): Update `first' field.
683 Handle the last == first case.
684 (removeLast): Update `last' field. Handle the last == first case.
686 2000-12-01 Warren Levy <warrenl@cygnus.com>
688 * Makefile.am: Added entries for new java.sql modules.
689 * Makefile.in: Rebuilt.
691 2000-12-01 Warren Levy <warrenl@cygnus.com>
693 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
694 that aren't quite 1.2 compatible yet.
696 2000-11-30 Warren Levy <warrenl@cygnus.com>
698 * java/sql/Array.java: New file from classpath.
699 * java/sql/BatchUpdateException.java: Ditto.
700 * java/sql/Blob.java: Ditto.
701 * java/sql/Clob.java: Ditto.
702 * java/sql/Ref.java: Ditto.
703 * java/sql/SQLData.java: Ditto.
704 * java/sql/SQLInput.java: Ditto.
705 * java/sql/SQLOutput.java: Ditto.
706 * java/sql/Struct.java: Ditto.
707 * java/sql/CallableStatement.java: Merged file from claspath.
708 * java/sql/Connection.java: Ditto.
709 * java/sql/DataTruncation.java: Ditto.
710 * java/sql/DatabaseMetaData.java: Ditto.
711 * java/sql/DriverManager.java: Ditto.
712 * java/sql/PreparedStatement.java: Ditto.
713 * java/sql/ResultSet.java: Ditto.
714 * java/sql/ResultSetMetaData.java: Ditto.
715 * java/sql/SQLException.java: Ditto.
716 * java/sql/SQLWarning.java: Ditto.
717 * java/sql/Statement.java: Ditto.
718 * java/sql/Types.java: Ditto.
720 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
722 * java/lang/natSystem.cc (init_properties): Set user.language and
724 * configure.in: Check for setlocale.
725 * configure: Rebuilt.
726 * include/config.h.in: Rebuilt.
728 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
729 the infate() call didn't deliver any output. Throw a ZipException if
730 the needsDictionary() call returns true.
731 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
732 * java/io/InputStreamReader: Use the default buffer size for the
733 contained BufferedInputStream.
735 2000-11-28 Warren Levy <warrenl@cygnus.com>
737 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
738 more time zone entries.
739 * java/text/SimpleDateFormat.java (format): Added case for
742 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
744 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
745 directly rather than read() in all cases. Make primitive read
746 implementations more efficient, as defined in JDK online docs.
747 (skipBytes): Behave like the JDK's implementation.
748 * java/io/BufferedReader.java: Merge classpath docs. Check for a
749 closed stream with checkStatus() whenever an IOException can be
751 (checkStatus): New private method.
753 2000-11-27 Warren Levy <warrenl@cygnus.com>
755 * Makefile.am: Added natTimeZone.cc.
756 * Makefile.in: Rebuilt.
757 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
758 * java/text/DateFormatSymbols.java (ampms): Made package private.
759 (eras): Made package private.
760 (months): Made package private.
761 (shortMonths): Made package private.
762 (shortWeekdays): Made package private.
763 (weekdays): Made package private.
764 (formatPrefixes): New private field.
765 (localPatternCharsDefault): Made private.
766 (dateFormats): New package private field.
767 (timeFormats): New package private field.
768 (formatsForKey): New private method.
769 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
770 (DateFormatSymbols(DateFormatSymbols)): Ditto.
771 * java/text/SimpleDateFormat.java: Merged with Classpath.
772 * java/util/TimeZone.java: Merged with Classpath.
773 * java/util/natTimeZone.cc: New file.
775 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
777 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
778 (addElement): Don't increment elementCount twice. Doh.
779 * java/util/ArrayList.java (add): Only call ensureCapacity if the
780 array needs to be expanded.
782 * java/util/Collections.java (UnmodifiableCollection): Implement
784 (UnmodifiableList): Throw UnsupportedOperationException from
785 modification methods. Set `l' from the one-parameter constructor.
786 (UnmodifiableMap): Implement toString().
787 (SynchronizedCollection): Ditto.
788 (SynchronizedList): Set `l' from the one-parameter constructor.
789 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
790 (SynchronizedMap): Implement toString().
792 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
794 * javax/naming/NameParser.java,
795 javax/naming/directory/AttributeInUseException.java,
796 javax/naming/directory/AttributeModificationException.java,
797 javax/naming/directory/InvalidAttributeIdentifierException.java,
798 javax/naming/directory/InvalidAttributesException.java,
799 javax/naming/directory/InvalidAttributeValueException.java,
800 javax/naming/directory/InvalidSearchControlsException.java,
801 javax/naming/directory/InvalidSearchFilterException.java,
802 javax/naming/directory/NoSuchAttributeException.java,
803 javax/naming/directory/SchemaViolationException.java: New files.
805 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
807 * javax/naming/InitialContext.java (rebind): Implement.
811 (listBindings): Implement.
812 (destroySubcontext): Implement.
813 (createSubcontext): Implement.
814 (lookupLink): Implement.
815 (getNameParser): Implement.
816 (composeName): Implement.
817 (addToEnvironment): Implement.
819 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
821 * javax/naming/AuthenticationException.java,
822 javax/naming/AuthenticationNotSupportedException.java,
823 javax/naming/CannotProceedException.java,
824 javax/naming/CommunicationException.java,
825 javax/naming/ConfigurationException.java,
826 javax/naming/ContextNotEmptyException.java,
827 javax/naming/InsufficientResourcesException.java,
828 javax/naming/InterruptedNamingException.java,
829 javax/naming/InvalidNameException.java,
830 javax/naming/LimitExceededException.java,
831 javax/naming/LinkException.java,
832 javax/naming/LinkLoopException.java,
833 javax/naming/MalformedLinkException.java,
834 javax/naming/NameAlreadyBoundException.java,
835 javax/naming/NameNotFoundException.java,
836 javax/naming/NamingSecurityException.java,
837 javax/naming/NoPermissionException.java,
838 javax/naming/NotContextException.java,
839 javax/naming/PartialResultException.java,
840 javax/naming/ReferralException.java,
841 javax/naming/ServiceUnavailableException.java,
842 javax/naming/SizeLimitExceededException.java,
843 javax/naming/TimeLimitExceededException.java: New files.
845 * javax/naming/Name.java (clone): New method.
846 (compareTo): New method.
847 (isEmpty): New method.
848 (getAll): New method.
849 (getPrefix): New method.
850 (getSuffix): New method.
851 (startsWith): New method.
852 (endsWith): New method.
853 (addAll): New method.
854 (addAll): New method.
857 (remove): New method.
859 * javax/naming/Context.java (lookup): New method.
860 (rebind): New method.
861 (unbind): New method.
862 (rename): New method.
864 (listBindings): New method.
865 (destroySubcontext): New method.
866 (createSubcontext): New method.
867 (lookupLink): New method.
868 (getNameParser): New method.
869 (composeName): New method.
870 (addToEnvironment): New method.
871 (removeFromEnvironment): New method.
872 (getEnvironment): New method.
874 (getNameInNamespace): New method.
876 * javax/naming/InitialContext.java (lookup): New method.
877 (rebind): New method.
878 (unbind): New method.
879 (rename): New method.
881 (listBindings): New method.
882 (destroySubcontext): New method.
883 (createSubcontext): New method.
884 (lookupLink): New method.
885 (getNameParser): New method.
886 (composeName): New method.
887 (addToEnvironment): New method.
888 (removeFromEnvironment): New method.
889 (getEnvironment): New method.
891 (getNameInNamespace): New method.
893 2000-11-26 Tom Tromey <tromey@cygnus.com>
895 * Makefile.in: Rebuilt.
896 * Makefile.am (core_java_source_files): Added
897 RuntimePermission.java.
898 * java/lang/RuntimePermission.java: Imported from Classpath.
899 * java/lang/Thread.java (getContextClassLoader): Now
900 synchronized. Added security code.
901 (setContextClassLoader): Likewise.
903 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
904 length field of array.
905 (_Jv_NewPrimArray): Likewise.
906 * gcj/array.h (__JArray): `length' field now const. Added
909 2000-11-26 Anthony Green <green@redhat.com>
911 * javax/naming/spi/NamingManager.java,
912 javax/naming/spi/ObjectFactory.java,
913 javax/naming/spi/InitialContextFactory.java,
914 javax/naming/spi/InitialContextFactoryBuilder.java,
915 javax/naming/RefAddr.java, javax/naming/Reference.java,
916 javax/naming/NamingException.java, javax/naming/Context.java,
917 javax/naming/Referenceable.java,
918 javax/naming/directory/InitialDirContext.java,
919 javax/naming/directory/DirContext.java,
920 javax/naming/directory/Attributes.java,
921 javax/naming/directory/Attribute.java,
922 javax/naming/StringRefAddr.java,
923 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
924 javax/naming/InitialContext.java,
925 javax/naming/NoInitialContextException.java: New files.
927 2000-11-25 Anthony Green <green@redhat.com>
929 * prims.cc (_Jv_NewObjectArray): Undo placement change.
930 (_Jv_NewPrimArray): Likewise.
931 * gcj/array.h (__JArray): Undo const change. Removed constructor.
932 (class JArray): Removed constructor.
934 * java/lang/Thread.java (context_class_loader): New private data.
935 (getContextClassLoader): New method.
936 (setContextClassLoader): New method.
937 (Thread): Initialize context_class_loader.
939 * java/net/URLClassLoader.java: Import java.util.Enumeration.
940 (getResource): Rename to findResource.
941 (findResource): New method. Used to be getResource.
942 (getResourceAsStream): Deleted.
943 (jarFileize): Extracted logic from URLClassLoader constructor into
944 this new private method.
945 (addURL): New protected method.
946 (URLClassLoader): Call jarFileize. Use addElement instead of
948 (findResources): New method.
950 * java/lang/ClassLoader.java: Import java.util.Enumeration.
951 (getResource): Implement correct logic.
952 (findResource): New method.
953 (getResources): New method.
954 (findClass): Create a ClassNotFoundException with the name of the
955 class rather than nothing at all.
956 (defineClass) Only throw ClassFormatError.
958 * java/lang/Class.java (forName): New method.
959 * java/lang/Class.h (forName): New method.
960 * java/lang/natClass.cc (forName): New method.
962 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
964 * java/lang/System.java (setProperties): Only call init_properties()
965 if properties is null.
966 (getProperties): Ditto.
967 (getProperty): Ditto.
968 (setProperty): Call init_properties if properties are null.
969 (prop_init): Remove field.
970 * java/lang/natSystem.cc (init_properties): Synchronize the entire
971 method. Check for null properties after synchronizing instead of
972 prop_init flag. Set the properties field last for thread safety.
974 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
975 test for gcj.dumpobjects property and enable object stream dumping
977 (dumpElement): No longer native.
978 (dumpElementln): Ditto.
979 (setDump): Do not define.
980 * java/io/natObjectInputStream.cc (dumpElement): Removed.
981 (dumpElementln): Removed.
984 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
986 * configure: Rebuilt.
987 * Makefile.in: Rebuilt.
988 * Makefile.am (built_java_source_files): Add Configuration.java.
989 * configure.in: Add Configuration.java to CONFIG_FILES. Set
990 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
991 Create `gnu' directory in the build tree.
992 * gnu/classpath/Configuration.java.in: New file.
994 2000-11-24 Tom Tromey <tromey@cygnus.com>
996 * prims.cc (_Jv_NewObjectArray): Use placement new to create
998 (_Jv_NewPrimArray): Likewise.
1000 * gcj/array.h (__JArray): `length' field now const. Added
1002 (class JArray): Added constructor.
1004 2000-11-23 Mark Wielaard <mark@klomp.org>
1006 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1009 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1011 * java/util/Vector.java: Improve exception messages.
1012 (Vector): Check initialCapacity for IllegalArgumentException.
1013 (tromToSize): Don't check for elementCount == elementData.length
1015 (toArray): Don't try to set null marker if target array is the same
1016 length as the vector.
1018 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1020 * Makefile.in: Rebuilt.
1021 * Makefile.am (core_java_source_files): Added Collections.java.
1022 * java/util/List.java: Merged from classpath.
1023 * java/util/Vector.java: Ditto.
1024 * java/util/Collections.java: From classpath.
1025 * java/util/ArrayList.java (addAll(Collection)): Call
1026 addAll(int,Collection) instead of duplicating code.
1027 (indexOf): Clean up int initialization.
1028 (clear): Set cleared array entries to null, to allow garbage
1030 * java/util/List.java: Minor formatting fixes.
1031 * java/util/SimpleTimeZone.java: ditto.
1033 2000-11-18 Tom Tromey <tromey@cygnus.com>
1035 * Makefile.in: Rebuilt.
1036 * Makefile.am (core_java_source_files): Added new files.
1037 * java/lang/reflect/ReflectPermission.java: New class.
1038 * java/io/FileFilter.java: From Classpath
1039 * java/io/FilePermission.java: From Classpath.
1041 2000-11-17 Tom Tromey <tromey@cygnus.com>
1043 * java/lang/reflect/AccessibleObject.java (isAccessible,
1044 setAccessible): Now public.
1046 * java/lang/natString.cc: Include Locale.h.
1047 (toUpperCase): Added `locale' argument. Handle locale
1049 (toLowerCase): Added `locale' argument. Handle locale
1051 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1052 CAPITAL_I): New defines.
1053 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1056 (toUpperCase, toLowerCase): New methods. Variants which accept
1059 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1062 * java/util/PropertyPermission.java: Re-merged from Classpath.
1064 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1066 * java/text/StringCharacterIterator.java: Reindented.
1067 (setText): New method.
1069 2000-11-17 Mark Wielaard <mark@klomp.org>
1071 Merge with Classpath (changes by Bryce McKinlay)
1072 * java/util/jar/*.java: Reformat all to unofficial standard coding
1073 style. No changes of substance.
1075 2000-11-17 Mark Wielaard <mark@klomp.org>
1077 * java/util/zip/*.java: Javadoc updates.
1079 2000-11-17 Tom Tromey <tromey@cygnus.com>
1081 * java/text/CollationKey.java: Implement Comparable.
1082 (compareTo(Object)): New method.
1083 * java/text/Collator.java (compare(Object,Object)): New method.
1084 Implement Comparator.
1086 * java/util/zip/InflaterInputStream.java (available): New method.
1087 (close): New method.
1088 (read, available, skip, fill): Throw exception if stream closed.
1089 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1090 getNextEntry): Throw exception if closed.
1092 2000-11-16 Tom Tromey <tromey@cygnus.com>
1094 * java/io/PushbackReader.java: Merged with Classpath.
1095 * java/util/Arrays.java: Updated from Classpath.
1097 * scripts/blocks.pl: New file.
1098 * java/lang/Character.java (Subset): New class.
1099 (UnicodeBlock): New class.
1101 * java/lang/Math.java (toDegrees, toRadians): New methods.
1103 * java/lang/Float.java: Implement Comparable.
1104 (compareTo): New methods.
1105 * java/lang/Double.java: Implement Comparable.
1106 (compareTo): New methods.
1108 2000-11-16 Warren Levy <warrenl@cygnus.com>
1110 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1112 (listeners): Made transient.
1113 (source): Renamed from 'bean'.
1114 (children): New field for serialization.
1115 (propertyChangeSupportSerializedDataVersion): Ditto.
1116 (serialVersionUID): Ditto.
1117 (writeObject): New serialization method.
1118 (readObject): New serialization method.
1119 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1121 (listeners): Made transient.
1122 (source): Renamed from 'bean'.
1123 (children): New field for serialization.
1124 (vetoableChangeSupportSerializedDataVersion): Ditto.
1125 (serialVersionUID): Ditto.
1126 (writeObject): New serialization method.
1127 (readObject): New serialization method.
1128 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1129 to allow constructor to have a return type (i.e. the class that the
1130 constructor constructs).
1132 2000-11-14 Tom Tromey <tromey@cygnus.com>
1134 * Makefile.in: Rebuilt.
1135 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1138 2000-11-02 Warren Levy <warrenl@cygnus.com>
1140 * java/io/ObjectInputStream.java (readObject): Added code to
1141 conditionally dump out the serialized data.
1142 Handle ENDBLOCKDATA case a bit more gracefully since the current
1143 behavior doesn't seem to work as expected.
1144 (readStreamHeader): Added code for serialized data dumper.
1145 (readNextBlock): Ditto.
1146 (readFields): Ditto.
1147 (dump): New private static field for turning on/off dumper.
1148 (setDump): New native method.
1149 (dumpElement): New native method.
1150 (dumpElementln): New native method.
1151 * java/io/natObjectInputStream.cc (setDump): New method.
1152 (dumpElement): New method.
1153 (dumpElementln): New method.
1155 2000-11-02 Warren Levy <warrenl@cygnus.com>
1157 * java/net/InetAddress.java (addr): Renamed from 'address'.
1158 (address): New field to match Serialized Form doc.
1159 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1160 (family): New serialization field.
1161 (serialVersionUID): New field.
1162 (readObject): New method.
1163 (writeObject): New method.
1164 (getFamily): New native method.
1165 (InetAddress): Set family.
1166 * java/net/natInetAddress.cc (getFamily): New method.
1167 (addr): Renamed from 'address'.
1168 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1169 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1170 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1172 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1174 * java/util/AbstractList.java (SubList): Make it a top-level private
1176 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1178 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1179 * Makefile.in: Rebuilt.
1181 2000-11-02 Tom Tromey <tromey@cygnus.com>
1183 * Makefile.in: Rebuilt.
1184 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1187 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1189 * java/util/AbstractList.java (remove): Comment out modCount increment
1190 to work around compiler bug.
1193 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1195 * java/util/AbstractList.java: Throw messages with
1196 IndexOutOfBoundsExceptions.
1197 (listIterator()): Call listIterator(0).
1198 (size): New field. Initialize to size().
1199 (hasNext): Test position against size, not size().
1200 (remove): Increment knownMod by one instead of resetting it from
1203 (SubList.upMod): Removed.
1204 (SubList.set): Don't call upMod() or update knownMod.
1205 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1206 (SubList.remove): Ditto.
1207 (SubList.addAll): Don't call backingList.size(). Increment size from
1209 (SubList.iterator): New method. Call listIterator(0).
1210 (SubList.listIterator): New method. Restore code to return an anonymous
1211 listIterator implementation (with some changes).
1212 * java/util/AbstractSequentialList.java: Throw messages with
1213 IndexOutOfBoundsExceptions.
1214 (addAll): Add a specnote.
1215 * java/util/ArrayList.java (removeRange): Get the math right.
1216 (addAll): Increment modCount _before_ creating iterator.
1217 * java/util/LinkedList.java: Rewritten, mostly.
1219 2000-11-01 Tom Tromey <tromey@cygnus.com>
1221 * scripts/encodings.pl: Added `ASCII' alias.
1222 * Makefile.in: Rebuilt.
1223 * Makefile.am (convert_source_files): Added new files.
1224 * gnu/gcj/convert/Input_ASCII.java: New file.
1225 * gnu/gcj/convert/Output_ASCII.java: New file.
1226 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1227 out-of-range characters.
1228 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1229 (read): Swap bytes if required. Treat `count' as character count,
1231 (write): Likewise. Also, handle case where iconv fails on a given
1233 (init): Put encoding into exception.
1234 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1235 (static): Call iconv_init. Rebuilt alias list.
1236 (iconv_init): New private method.
1238 2000-11-01 Tom Tromey <tromey@cygnus.com>
1240 * Makefile.in: Rebuilt.
1241 * Makefile.am (install-exec-hook): Only make a single symlink, and
1242 remove the destination before making the link.
1243 * configure: Rebuilt.
1244 * configure.in: Call AC_PROG_LN_S.
1246 2000-10-31 Warren Levy <warrenl@cygnus.com>
1248 * jni.cc: Added include of java/lang/ThreadGroup.h.
1249 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1250 per change of 2000-10-05.
1252 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1254 * java/util/BitSet.java: Updated @specnote.
1256 * java/io/Reader.java: Merge docs from classpath.
1257 (skip): Synchronize on `lock'.
1258 * java/io/FileReader.java: Import correct implementation from
1260 * java/io/StringReader.java: Merge docs from classpath.
1261 (ready): Throw IOException if stream is closed.
1263 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1265 * java/util/AbstractCollection.java (addAll): Use size() instead of
1266 hasNext() in iterator loop.
1268 (contains): Ditto. Simplify loop.
1269 (containsAll): Ditto.
1274 (toString): Ditto. Use string concatenation operators, not
1276 * java/util/AbstractList.java (addAll): Use size() instead of
1277 hasNext() in iterator loop.
1280 (indexOf): Ditto. Don't take null check outside of the loop.
1281 (iterator): Return an AbstractListItr instead of anonymous class.
1282 (lastIndexOf): Use a for loop bounded by size() instead of
1283 hasPrevious() in iterator loop.
1284 (listIterator): Return an AbstractListItr.
1285 (removeRange): Remove bounds checking code and docs.
1286 (AbstractListItr): New inner class. Code moved here from
1288 (SubList.iterator): Removed. Use default implementation from
1289 AbstractList instead.
1290 (SubList.listIterator): As above.
1291 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1292 instead of hasNext() in iterator loop.
1293 (containsValue): Ditto.
1299 (toString): Ditto. Use string concatenation operators, not
1301 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1302 bounded by size() instead of hasNext() in iterator loop.
1303 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1304 part of normal execution flow. Do an explicit null check instead.
1305 * java/util/ArrayList.java (_iSize): Rename to `size'.
1306 (_arData): Rename to `data'.
1307 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1310 (removeRange): Make protected. Don't check bounds.
1311 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1313 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1315 (addAll (int, Collection)): Check lower bounds. Simplify exception
1317 (clone): Clone the data array too.
1318 (indexOf): Inline doesEqual().
1319 (lastIndexOf): Ditto.
1320 (clear): Don't set array data to null.
1321 (set): Check lower bounds. Simplify exception string.
1322 (toArray): Correct comment.
1323 (trimToSize): Don't update modCount, this is not a structural change.
1326 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1328 (toString): Declare `bit' as long, not int.
1329 (data): Made package-private, not private.
1331 2000-10-27 Warren Levy <warrenl@cygnus.com>
1333 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1334 array elements to true.
1336 2000-10-27 Warren Levy <warrenl@cygnus.com>
1338 * Makefile.am: Added locale files from Classpath.
1339 * Makefile.in: Rebuilt.
1340 * gnu/java/locale/Calendar.java: New file.
1341 * gnu/java/locale/Calendar_de.java: New file.
1342 * gnu/java/locale/Calendar_en.java: New file.
1343 * gnu/java/locale/Calendar_nl.java: New file.
1344 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1345 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1346 serialization compatibility.
1347 (scale): Made private.
1348 (serialVersionUID): New field.
1349 * java/math/BigInteger.java (ival): Made transient.
1350 (words): Made transient.
1351 (bitCount): New serialization field.
1353 (firstNonzeroByteNum): Ditto.
1354 (lowestSetBit): Ditto.
1357 (serialVersionUID): New field.
1358 (readObject): New method.
1359 (writeObject): New method.
1360 * java/util/BitSet.java (serialVersionUID): New field.
1361 * java/util/Calendar.java: Replaced with Classpath file.
1362 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1363 of getDefault() for TimeZone or Locale instead of passing nulls.
1364 * java/util/Locale.java (serialVersionUID): New field.
1365 (writeObject): New method.
1366 (readObject): New method.
1367 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1369 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1371 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1372 (core_java_source_files): Put java.lang, java.io, and java.util here.
1373 (ordinary_java_source_files): Order so that core_java_source_files are
1375 (java_source_files): Reorder so that special_java_source_files are
1377 * configure.in: Don't pass -I flag to gcj.
1378 * Makefile.in: Rebuilt.
1379 * configure: Rebuilt.
1381 2000-10-25 Tom Tromey <tromey@cygnus.com>
1383 * Makefile.in: Rebuilt.
1384 * Makefile.am (install-exec-hook): New target.
1386 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1388 * java/util/EventObject.java: Merged from classpath.
1390 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1393 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1395 * java/util/AbstractSet.java (equals): Re-installed original code.
1397 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1399 * Makefile.am: Added rules for libgcjx library.
1400 * Makefile.in: Rebuilt.
1401 * configure.in: Added check for X.
1402 * configure: Rebuilt.
1403 * gnu/awt/LightweightRedirector.java: New file.
1404 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1405 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1406 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1407 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1408 * gnu/awt/j2d/MappedRaster.java: New file.
1409 * gnu/awt/xlib/XCanvasPeer.java: New file.
1410 * gnu/awt/xlib/XEventLoop.java: New file.
1411 * gnu/awt/xlib/XEventQueue.java: New file.
1412 * gnu/awt/xlib/XFontMetrics.java: New file.
1413 * gnu/awt/xlib/XFramePeer.java: New file.
1414 * gnu/awt/xlib/XGraphics.java: New file.
1415 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1416 * gnu/awt/xlib/XPanelPeer.java: New file.
1417 * gnu/awt/xlib/XToolkit.java: New file.
1418 * gnu/gcj/xlib/Clip.java: New file.
1419 * gnu/gcj/xlib/Colormap.java: New file.
1420 * gnu/gcj/xlib/Display.java: New file.
1421 * gnu/gcj/xlib/Drawable.java: New file.
1422 * gnu/gcj/xlib/Font.java: New file.
1423 * gnu/gcj/xlib/GC.java: New file.
1424 * gnu/gcj/xlib/Pixmap.java: New file.
1425 * gnu/gcj/xlib/Screen.java: New file.
1426 * gnu/gcj/xlib/Visual.java: New file.
1427 * gnu/gcj/xlib/WMSizeHints.java: New file.
1428 * gnu/gcj/xlib/Window.java: New file.
1429 * gnu/gcj/xlib/WindowAttributes.java: New file.
1430 * gnu/gcj/xlib/XAnyEvent.java: New file.
1431 * gnu/gcj/xlib/XButtonEvent.java: New file.
1432 * gnu/gcj/xlib/XColor.java: New file.
1433 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1434 * gnu/gcj/xlib/XConnectException.java: New file.
1435 * gnu/gcj/xlib/XEvent.java: New file.
1436 * gnu/gcj/xlib/XException.java: New file.
1437 * gnu/gcj/xlib/XExposeEvent.java: New file.
1438 * gnu/gcj/xlib/XID.java: New file.
1439 * gnu/gcj/xlib/XImage.java: New file.
1440 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1441 * gnu/gcj/xlib/natClip.cc: New file.
1442 * gnu/gcj/xlib/natColormap.cc: New file.
1443 * gnu/gcj/xlib/natDisplay.cc: New file.
1444 * gnu/gcj/xlib/natDrawable.cc: New file.
1445 * gnu/gcj/xlib/natFont.cc: New file.
1446 * gnu/gcj/xlib/natGC.cc: New file.
1447 * gnu/gcj/xlib/natPixmap.cc: New file.
1448 * gnu/gcj/xlib/natScreen.cc: New file.
1449 * gnu/gcj/xlib/natVisual.cc: New file.
1450 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1451 * gnu/gcj/xlib/natWindow.cc: New file.
1452 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1453 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1454 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1455 * gnu/gcj/xlib/natXColor.cc: New file.
1456 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1457 * gnu/gcj/xlib/natXException.cc: New file.
1458 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1459 * gnu/gcj/xlib/natXImage.cc: New file.
1460 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1461 * java/awt/EventDispatchThread.java: Start thead on creation.
1463 2000-10-20 Tom Tromey <tromey@cygnus.com>
1465 From Arno J. Klaassen:
1466 * interpret.cc: Include <stdlib.h> for alloca.
1467 * defineclass.cc: Include <stdlib.h> for alloca.
1469 * Makefile.in: Rebuilt.
1470 * Makefile.am: Include deps.mk.
1471 (GCJCOMPILE): Added -MD, -MT, and -MF.
1472 ($(javao_files)): Don't depend on libgcj.zip.
1473 (all-recursive): New target.
1474 (%.lo:%.cc): Do dependency tracking.
1475 ($(nat_headers)): Don't depend on libgcj.zip.
1476 * configure: Rebuilt.
1477 * configure.in: Make .d files and deps.mk.
1479 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1481 * exception.cc: Don't #include "exception".
1482 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1484 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1485 * Makefile.in: Updated.
1487 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1489 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1490 * java/awt/peer/ComponentPeer.java (disable): Removed.
1493 (minimumSize): Removed.
1494 (preferredSize): Removed.
1497 * java/awt/peer/ListPeer.java (addItem): Removed.
1499 (minimumSize): Removed.
1500 (preferredSize): Removed.
1501 (setMultipleSelections): Removed.
1502 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1503 (remove): Renamed from removeMenu.
1504 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1506 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1507 (remove): Renamed from removeItem.
1508 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1509 (getMinimumSize): Removed.
1510 (getPreferredSize): Removed.
1511 (minimumSize): Removed.
1512 (preferredSize): Removed.
1513 (replaceText): Removed.
1514 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1515 (preferredSize): Removed.
1516 (getMinimumSize): Removed.
1517 (getPreferredSize): Removed.
1518 (setEchoCharacter): Removed.
1520 2000-10-10 Warren Levy <warrenl@cygnus.com>
1522 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1523 * java/sql/Date.java (serialVersionUID): New field.
1524 * java/sql/Time.java (serialVersionUID): New field.
1525 * java/sql/Timestamp.java (serialVersionUID): New field.
1526 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1527 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1528 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1529 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1530 (readObject): New serialization method.
1531 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1532 (serialVersionOnStream): New field.
1533 (readObject): New serialization method.
1534 (getMonetaryDecimalSeparator): New method.
1535 (setMonetaryDecimalSeparator): New method.
1536 * java/text/NumberFormat.java (maxFractionDigits): New field.
1537 (maxIntegerDigits): New field.
1538 (minFractionDigits): New field.
1539 (minIntegerDigits): New field.
1540 (serialVersionOnStream): New field.
1541 (serialVersionUID): New field.
1542 (readObject): New serialization method.
1543 (writeObject): New serialization method.
1544 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1545 (serialVersionOnStream): New field.
1546 (serialVersionUID): New field.
1547 (readObject): New serialization method.
1549 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1551 * configure.in (GCJ): Avoid bogus error message when looking for
1552 (and not finding) gcj in the build tree.
1553 * configure: Rebuilt.
1555 2000-10-09 Tom Tromey <tromey@cygnus.com>
1557 * configure: Rebuilt.
1558 * configure.in: Include sys/types.h when checking for socklen_t.
1559 From Arno J. Klaassen.
1561 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1563 * include/jvm.h: Enable __builtin_expect().
1565 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1566 the main program. Fix for PR libgcj/341.
1568 2000-10-07 Tom Tromey <tromey@cygnus.com>
1570 * java/util/Properties.java: Merged with Classpath version.
1572 2000-10-05 Tom Tromey <tromey@cygnus.com>
1574 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1575 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1576 * java/lang/Class.h (Object): Added `class$' field.
1577 * java/lang/Object.h (Object): Added `class$' field.
1578 * defineclass.cc (ClassClass): Use `class$' form.
1579 (ClassObject): Likewise.
1580 * resolve.cc (ClassObject): Use `class$' form.
1581 (ObjectClass): Likewise.
1582 * interpret.cc (ClassError): Removed.
1583 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1585 (IntegerClass): Likewise.
1586 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1588 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1589 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1590 SerializableClass): Likewise.
1591 Include Serializable.h, Cloneable.h.
1592 * java/lang/natSystem.cc (SystemClass): Removed.
1593 (init_properties): Use `class$' form.
1594 * java/lang/natObject.cc (CloneableClass): Removed.
1595 (clone): Use `class$' form.
1596 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1597 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1598 ConstructorClass): Likewise.
1599 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1600 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1601 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1602 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1604 (ClassClass): Likewise.
1605 * include/jvm.h (StringClass): Use `class$' form.
1606 * prims.cc (ObjectClass): Removed.
1607 (_Jv_RunMain): Use `class$' form.
1608 (_Jv_AllocObject): Likewise.
1609 * jni.cc (ClassClass): Use `class$' form.
1610 (ThrowableClass): Likewise.
1611 (ObjectClass): Likewise.
1612 (MethodClass): Likewise.
1613 (ThreadGroupClass): Likewise.
1614 (NativeThreadClass): Likewise.
1615 * boehm.cc (ObjectClass): Removed.
1616 (ClassClass): Removed.
1617 (_Jv_MarkObj): Use `class$' form.
1618 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1621 2000-10-05 Warren Levy <warrenl@cygnus.com>
1623 * Makefile.am: Removed java/io/Replaceable.java and
1624 java/io/Resolvable.java.
1625 * Makefile.in: Rebuilt.
1626 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1628 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1630 (processResolution): Handle readResolve method via reflection with
1631 removal of Resolvable interface.
1632 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1633 method via reflection with removal of Replaceable interface.
1634 * java/io/Replaceable.java: Removed.
1635 * java/io/Resolvable.java: Removed.
1636 * java/security/Key.java (serialVersionUID): New field.
1637 * java/security/Provider.java (serialVersionUID): New field.
1638 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1640 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1642 * java/sql/DataTruncation.java (serialVersionUID): New field.
1643 * java/sql/SQLException.java (serialVersionUID): New field.
1644 * java/sql/SQLWarning.java (serialVersionUID): New field.
1645 * java/util/Date.java (serialVersionUID): New field.
1646 (millis): Made transient.
1647 (readObject): New method.
1648 (writeObject): New method.
1650 2000-10-05 Tom Tromey <tromey@cygnus.com>
1652 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1654 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1656 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1657 (JvRunMain): Set _Jv_argv and _Jv_argc.
1658 * java/awt/Component.java: Minor fixes.
1659 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1660 * java/awt/Toolkit.java (systemEventQueue): Removed.
1661 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1662 * java/awt/Window.java (getToolkit): Don't call super.
1663 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1664 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1665 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1666 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1667 * gnu/awt/gtk/GtkFramePeer.java: New file.
1668 * gnu/awt/gtk/GtkMainThread.java: New file.
1669 * gnu/awt/gtk/GtkToolkit.java: New file.
1670 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1671 * gnu/awt/gtk/gtkcommon.cc: New file.
1672 * gnu/awt/gtk/gtkcommon.h: New file.
1673 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1674 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1675 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1676 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1677 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1678 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1680 2000-09-30 Tom Tromey <tromey@cygnus.com>
1682 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1683 interrupted before modifying the cv's wait set.
1686 2000-09-30 Hans Boehm <boehm@acm.org>
1687 Bryce McKinlay <bryce@albatross.co.nz>
1689 Implement bitmap descriptor based marking for Boehm GC.
1691 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1692 * configure: Rebuilt.
1693 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1694 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1695 method get_finalizer().
1696 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1697 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1698 (_Jv_AllocObj): Add new jclass parameter.
1699 (_Jv_AllocArray): Ditto.
1700 (_Jv_BuildGCDescr): New prototype.
1701 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1702 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1703 get_finalizer() instead of direct finalizer vtable offset.
1704 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1705 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1706 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1707 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1708 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1709 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1710 (_Jv_DetermineVTableIndex): Ditto.
1711 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1712 calculations to account for new gc_descr field.
1713 * boehm.cc: #include gc_gcj.h.
1714 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1715 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1716 New commentary from HB. Mark the classes vtable.
1717 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1718 (GC_DEFAULT_DESCR): New #define.
1719 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1720 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1721 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1722 scan conservativly if size is less than min_heap_addr. Set vtable
1723 pointer of new object before returning.
1724 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1725 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1726 allocation for obj_kind_x.
1727 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1728 (_Jv_AllocObj): Set vtable on returned object.
1729 (_Jv_AllocArray): Ditto.
1730 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1731 (_Jv_NewPrimArray): Ditto.
1732 (_Jv_AllocObj): Declare as a friend.
1733 (_Jv_AllocArray): Ditto.
1734 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1735 from &ObjectClass into new array class. Remove offset-by-one
1736 adjustments from `method' size calculations to account for gc_descr
1739 2000-09-26 Tom Tromey <tromey@cygnus.com>
1741 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1742 `remove', not `add'.
1744 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1746 * java/lang/natSystem.cc (file_encoding): Added return statement.
1748 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1750 * Makefile.am: Re-work shell commands that exceeded command-line
1752 * Makefile.in: Rebuilt.
1754 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1756 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1757 * java/lang/natDouble.cc: Likewise.
1758 * java/lang/reflect/natMethod.cc: Likewise.
1759 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1761 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1763 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1765 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1766 * acinclude.m4: Arrange for automake to not bring in a new
1767 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1768 * Makefile.am: Leave it up to automake to subst GCJ.
1769 * aclocal.m4, configure, Makefile.in: Rebuilt.
1771 2000-09-13 Tom Tromey <tromey@cygnus.com>
1773 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1774 (get): Ensure Boolean class is initialized.
1775 * java/lang/reflect/natField.cc (BooleanClass): New define.
1776 (get): Ensure Boolean class is initialized.
1778 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1780 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1781 Initialize with anonymous class.
1782 (compareToIgnoreCase): New method.
1784 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1785 (uncaughtException): Set had_uncaught_exception.
1786 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1787 exit with error status if set.
1788 (_Jv_RunMain): Ditto.
1790 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1792 * configure: Rebuilt with new ../libtool.m4.
1794 2000-09-11 Tom Tromey <tromey@cygnus.com>
1796 * java/lang/reflect/Field.java (toString): Don't rely on
1799 2000-09-08 Tom Tromey <tromey@cygnus.com>
1801 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1802 default decoder use iconv.
1803 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1804 Let default encoder use iconv.
1805 * configure: Rebuilt.
1806 * configure.in: Check for nl_langinfo and <langinfo.h>.
1807 * java/lang/natSystem.cc (file_encoding): New function.
1808 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1810 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1812 * acinclude.m4: Simplify the tests for CC and CXX.
1813 * aclocal.m4, configure: Rebuilt.
1815 * acinclude.m4: Include libtool macros from the source tree.
1816 * aclocal.m4, configure: Rebuilt.
1818 2000-09-08 Warren Levy <warrenl@cygnus.com>
1820 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1821 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1822 * java/io/File.java (writeObject): Added.
1823 (readObject): Added.
1824 (serialVersionUID): Added.
1825 * java/io/ObjectOutputStream.java (writeObject): Initialized
1826 fieldsAlreadyWritten before recursion rather than after.
1827 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1828 * java/io/OptionalDataException.java (serialVersionUID): Added.
1829 (OptionalDataException): Made package private.
1830 * java/io/SyncFailedException.java (SyncFailedException): Removed
1831 default constructor to match spec.
1832 * java/lang/Boolean.java (serialVersionUID): Added.
1833 * java/lang/Byte.java (serialVersionUID): Added.
1834 * java/lang/Character.java (serialVersionUID): Added.
1835 * java/lang/Double.java (serialVersionUID): Added.
1836 * java/lang/Float.java (serialVersionUID): Added.
1837 * java/lang/Integer.java (serialVersionUID): Added.
1838 * java/lang/Long.java (serialVersionUID): Added.
1839 * java/lang/Number.java (serialVersionUID): Added.
1840 * java/lang/Short.java (serialVersionUID): Added.
1841 * java/lang/String.java (serialVersionUID): Added.
1842 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1844 * java/lang/reflect/InvocationTargetException.java
1845 (serialVersionUID): Added.
1846 * java/net/URL.java (handler): Made transient.
1847 (hashCode): Added field for serialization, per spec. and use
1848 cached value if available.
1849 (serialVersionUID): Added.
1850 (URL): Initialize hashCode.
1851 (set): Adjust hashCode.
1852 (readObject): New Method to initialize the protocol handler when
1854 (writeObject): New method.
1855 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1856 * java/text/Collator.java: Removed 'implements Serializable'.
1857 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1858 * java/util/Properties.java (serialVersionUID): Added.
1859 * java/util/Random.java (serialVersionUID): Added.
1860 (seed): Made private.
1861 (nextNextGaussian): Made private.
1862 (haveNextNextGaussian): Made private.
1863 * java/util/Stack.java (serialVersionUID): Added.
1864 * java/util/TimeZone.java (serialVersionUID): Added.
1865 * java/util/Vector.java (serialVersionUID): Added.
1867 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
1869 * Makefile.am (Thread.h): Don't be friends with native threads
1871 * Makefile.in: Rebuilt.
1872 * java/lang/Thread.java (interrupt_flag): Make package-private.
1874 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
1876 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
1877 to avoid long long division.
1879 2000-09-06 Tom Tromey <tromey@cygnus.com>
1881 * java/lang/reflect/Constructor.java (toString): Use `getName' for
1883 * java/lang/reflect/Method.java (toString): Use `getName' for
1886 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
1887 `args' if method takes no parameters.
1889 Fix for PR java.lang/339:
1890 * java/lang/natPosixProcess.cc (fail): New function.
1891 (cleanup): New function.
1892 (startProcess): Use them. Create pipe so child can communicate
1893 exec failure back to parent.
1895 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1897 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
1899 (send): Undo last patch. Remove the label only.
1901 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
1903 * java/net/natInetAdress.cc: Ditto.
1905 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
1907 2000-09-05 Tom Tromey <tromey@cygnus.com>
1909 * doc/cni.sgml: Updated from master copy.
1911 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
1913 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
1915 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
1917 * java/lang/fdlibm.h: #undef __P if previously defined.
1918 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
1919 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
1923 2000-09-04 Tom Tromey <tromey@cygnus.com>
1925 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
1928 2000-09-04 Anthony Green <green@redhat.com>
1930 Fix for PR java.io/203:
1931 * java/io/File.java (createTempFile): Obey directory argument.
1932 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
1933 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
1934 variable to set java.io.tmpdir on non-WIN32 systems.
1936 2000-09-04 Anthony Green <green@redhat.com>
1938 * java/io/File.java (deleteOnExit): New method.
1939 * gnu/gcj/runtime/FileDeleter.java: New class.
1940 * java/lang/natRuntime.cc (exit): Call
1941 FileDeleter.deleteOnExitNow()
1942 * Makefile.am: Add FileDeleter.java.
1943 * Makefile.in: Rebuilt.
1945 2000-09-02 Tom Tromey <tromey@cygnus.com>
1947 * Makefile.in: Rebuilt.
1948 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
1949 environment variable.
1951 2000-09-01 Andrew Haley <aph@redhat.com>
1953 * java/io/StreamTokenizer.java: Don't throw a
1954 NumberFormatException if a field is numeric as far as the
1955 StreamTokenizer is concerned but not as far as Double.valueOf() is
1956 concerned: return a zero instead.
1958 2000-08-30 Tom Tromey <tromey@cygnus.com>
1960 * Makefile.in: Rebuilt.
1961 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
1963 2000-08-28 Tom Tromey <tromey@cygnus.com>
1965 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
1966 gnu/gcj/awt/ComponentDataBlitOp.java,
1967 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
1968 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
1969 java/awt/color/ICC_ColorSpace.java,
1970 java/awt/color/ICC_Profile.java,
1971 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
1972 java/awt/image/ComponentColorModel.java,
1973 java/awt/image/ComponentSampleModel.java,
1974 java/awt/image/DataBuffer.java,
1975 java/awt/image/DataBufferByte.java,
1976 java/awt/image/DataBufferInt.java,
1977 java/awt/image/DataBufferUShort.java,
1978 java/awt/image/DirectColorModel.java,
1979 java/awt/image/IndexColorModel.java,
1980 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
1981 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
1982 java/awt/image/SinglePixelPackedSampleModel.java,
1983 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
1984 Removed Latin-1 copyright symbols.
1985 * java/util/zip/ZipFile.java: Indentation fixes.
1987 2000-08-27 Mark Wielaard <mark@klomp.org>
1989 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
1990 constructor, close can delete the file, finalize calls close.
1991 * java/util/jar/JarFile.java: Constructor that takes mode now
1994 2000-08-27 Anthony Green <green@redhat.com>
1996 * java/util/ArrayList.java, java/util/Timer.java,
1997 java/util/LinkedList.java, java/util/TimerTask.java,
1998 java/util/HashMap.java, java/util/AbstractMap.java,
1999 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2000 java/util/SortedSet.java: Imported from GNU Classpath.
2001 * Makefile.in: Rebuilt.
2002 * Makefile.am: Added new files.
2004 2000-08-26 Anthony Green <green@redhat.com>
2006 * Makefile.in: Rebuilt.
2007 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2010 * prims.cc: Include ClassLoader.h.
2011 (_Jv_RunMain): When executing jar files, classpath must be the jar
2012 file only. Lose our reference to the system ClassLoader in order
2013 to get a new one with the correct classpath.
2014 * java/lang/natSystem.cc (init_properties): When executing a jar
2015 file, only use the jar file for java.class.path.
2017 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2018 for bytecode archives.
2020 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2021 exists, but not Main-Class.
2023 2000-08-23 Mark Wielaard <mark@klomp.org>
2025 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2026 return -1 when fill() has no more data for the Inflater.
2028 2000-08-23 Mark Wielaard <mark@klomp.org>
2030 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2031 write(String) already does.
2033 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2035 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2036 to `alive_flag', call `init'.
2037 (init): New native method.
2038 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2041 2000-08-21 Mark Wielaard <mark@klomp.org>
2043 * Makefile.in: Rebuilt.
2044 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2046 (java/lang/reflect/Field.h): Likewise.
2047 (java/lang/reflect/Method.h): Likewise.
2048 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2051 2000-08-21 Tom Tromey <tromey@cygnus.com>
2053 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2056 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2058 * java/lang/natSystem.cc (init_properties): Change sourceware
2059 reference to sources.redhat.com.
2061 * include/java-props.h: Add _Jv_Jar_Class_Path.
2062 * prims.cc: Ditto. Set it from `gij -jar file' option.
2064 * java/lang/natSystem.cc (init_properties): Set java.class.path
2066 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2068 * java/util/PropertyPermission.java: Import from GNU Classpath.
2069 * Makefile.in: Rebuilt.
2070 * Makefile.am: Add java/util/PropertyPermission.java.
2071 * java/lang/System.java: Add setProperty method.
2073 * gij.cc (main): Add -jar option to execute jar files.
2074 (help): Describe -jar option.
2075 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2076 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2077 * gnu/gcj/runtime/FirstThread.java (main): New method.
2079 * java/util/jar/Attributes.java: Correct comment spelling.
2081 2000-08-20 Mark Wielaard <mark@klomp.org>
2083 * java/util/zip/Adler32.java: Make private variables really private
2084 * java/util/zip/CRC32.java: Make private variables really private
2085 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2087 * java/util/zip/InflaterInputStream.java: skip() could skip to
2089 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2090 * java/util/zip/ZipFile.java: size() new 1.2 method
2091 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2092 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2095 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2097 * java/util/jar/JarFile.java: Don't call
2098 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2101 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2103 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2104 Read the entire contents of the class file, not just what is
2107 * java/net/JarURLConnection.java: getEntry doesn't take any
2108 arguments. Return null if element is null.
2110 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2111 size from the archive, not the inflated size.
2113 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2114 java.util.zip.ZipFile.getEntry.
2116 * gij.cc (help): Change sourceware reference to
2119 2000-08-19 Tom Tromey <tromey@cygnus.com>
2121 * java/util/zip/ZipInputStream.java (createZipEntry):
2124 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2126 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2127 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2128 java/util/jar/JarInputStream.java,
2129 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2130 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2131 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2132 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2133 java/security/cert/Certificate.java,
2134 java/security/cert/CertificateEncodingException.java,
2135 java/security/cert/CertificateException.java,
2136 java/security/cert/CertificateExpiredException.java,
2137 java/security/cert/CertificateFactory.java,
2138 java/security/cert/CertificateFactorySpi.java,
2139 java/security/cert/CertificateNotYetValidException.java,
2140 java/security/cert/CertificateParsingException.java,
2141 java/security/cert/X509CRL.java,
2142 java/security/cert/X509CRLEntry.java,
2143 java/security/cert/X509Certificate.java,
2144 java/security/cert/X509Extension.java: Imported from Classpath.
2145 * java/util/Hashtable.java: Imported from Classpath.
2147 * java/util/zip/ZipInputStream.java: Create stub for
2150 * gcj/javaprims.h: Updated class list.
2152 * Makefile.in, gcj/Makefile.in: Rebuilt.
2153 * Makefile.am (ordinary_java_source_files): Add these new classes.
2155 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2157 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2158 * gnu/gcj/awt/GLightweightPeer.java: New file.
2159 * java/awt/BorderLayout.java: Implemented all methods.
2160 * java/awt/Button.java (actionListener, actionCommand): Renamed
2161 and modifier change.
2162 (addNotify): Call super.
2163 (dispatchEventImpl): New method.
2164 (getListeners): New method.
2165 (label): Made package-private, not private.
2166 * java/awt/Canvas.java: Implemented class body.
2167 * java/awt/Color.java (brighter): New method.
2168 (darker): New method.
2169 (hashCode): New method.
2170 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2171 (getGraphicsConfiguration): Delegate to
2172 getGraphicsConfigurationImpl().
2173 (getGraphicsConfigurationImpl): New method.
2174 (getToolkit): Only return value from peer if not null.
2175 (isDisplayable): Check with parent.
2176 (isShowing): No parent implies not showing.
2177 (getForeground): Check parent property if local is null.
2178 (getBackground): Likewise.
2179 (getFont): Likewise.
2180 (setForeground): Inform peer.
2181 (setBackground): Likewise
2182 (setLocale): Invalidate component.
2183 (getColorModel): Implemented.
2184 (setLocation): Invalidate, or ignore if no change.
2185 (setSize): Invalidate, or ignore if no change.
2186 (setBounds): Invalidate, or ignore if no change.
2187 (isOpaque): By default, heavyweight implies opaque.
2188 (isLightweight): Implemented.
2189 (getMaximumSize): Implemented.
2190 (doLayout): Implemented, NOP.
2191 (validate): Implemented, NOP.
2192 (invalidate): Only propagate to parent if parent was valid.
2193 (getGraphics): Implemented.
2194 (getFontMetrics): Implemented.
2195 (update): Implemented.
2196 (paintAll): Implemented.
2197 (repaint): Implemented all repaint methods.
2198 (print): Implemented.
2199 (printAll): Implemented.
2200 (createImage): Implemented.
2201 (dispatchEvent): Give the peer a chance to handle the event.
2202 (dispatchEventImpl): Dispatch paint events.
2203 (enableEvents): Lightweights enable events on parent component.
2204 (coalesceEvents): Coalesce paint events, and select event type
2206 (coalescePaintEvents): New method.
2207 (processEvent): Fix unfortunate ordering of statements, and call
2208 correct method for MOUSE_CLICKED.
2209 (processPaintEvent): New method.
2210 (addNotify): Allow container to notify children before event
2211 mask is set in peer.
2212 (addNotifyContainerChildren): New method.
2213 (removeNotify): Visibility should not change on removeNotify.
2214 (paramString): Implemented.
2215 (list): Implemented two of the list methods.
2216 * Container (myInsets): Removed, insets are managed by peer.
2217 (getInsets): Query peer.
2218 (addImpl): Fix reparenting, enable events for lightweights,
2219 initialize component array.
2220 (validate): Call doLayout in validateTree() instead.
2221 (validateTree): Do nothing if already valid. Call beginValidate(),
2222 endValidate() on peer. Call validateTree() instead of validate()
2223 for children that are containers. Mark valid after validation of
2225 (setFont): Partial implementation.
2226 (paint): Implemented.
2227 (visitChildren): New method.
2228 (visitChild): New method.
2229 (update): Implemented.
2230 (print): Implemented.
2231 (paintComponents): Implemented.
2232 (printComponents): Consider translation and clipping.
2233 (getComponentAt): Ignore invisible children. Return this if no
2235 (addNotify): Call super.
2236 (addNotifyContainerChildren): New method.
2237 (paramString): Implemented.
2238 (list): Implemented.
2239 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2241 (invokeLater): Likewise.
2242 (isDispatchThread): Likewise.
2243 * java/awt/FontMetrics (getLeading): Formula change.
2244 (getDescent): Consider leading also.
2245 (getMaxAscent): Default to getAscent().
2246 (getMaxDescent): Default to getDescent.
2247 (getMaxAdvance): Return value signifying unknown.
2248 (charWidth): Both methods implemented.
2249 (charsWidth): Implemented.
2250 (bytesWidth): Implemented.
2251 (getWidths): Implemented.
2252 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2254 (Frame): Rearragend constuctor chaining to disallow null being
2255 passed as a graphics configuration.
2256 (getTitle): Return empty string if null.
2258 (getIconImage): New method.
2259 (setIconImage): New method.
2260 (finalize): New method.
2261 (setMenuBar): Notify peer.
2262 (isResizable): New method.
2263 (setResizable): New method.
2264 (getState): New method.
2266 (remove): Implemented.
2267 (removeNotify): New method.
2268 (getFrames): New method.
2269 * java/awt/Graphics.java: Implemented body of class.
2270 * java/awt/Graphics2D.java: New file.
2271 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2272 * java/awt/Image.java: Implemented body of class.
2273 * java/awt/Panel.java (Panel): Call correct super constructor.
2274 (addNotify): Implemented.
2275 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2276 * java/awt/RenderingHints.java: New file.
2277 * java/awt/Toolkit.java (createComponent): Implemented.
2278 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2279 * java/awt/Window.java (Window): Two new constructors. Reordered
2280 constructor chaining.
2281 (getGraphicsConfigurationImpl): New method.
2282 (finalize): Call super.
2283 (addNotify): Call super.
2284 (pack): Do layout stuff.
2285 (show): Ensure that peer exists and that component is valid.
2286 (dispose): Dispose owned children.
2287 (getOwner): Simplify code, casting null pointers is valid.
2288 (getGraphicsConfiguration): Ask peer if local value is null.
2289 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2291 * java/awt/image/BufferedImage.java: New file.
2292 * java/awt/image/RasterOp.java: New file.
2293 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2294 More powerfull replacement for getColorModel().
2295 (getColorModel) Removed.
2296 (setEventMask) New method.
2297 * Makefile.am: Added new files.
2298 * Makefile.in: Rebuilt.
2300 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2302 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2303 (finit_leg_name): New global.
2304 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2305 `$finit$'. This is a backward compatibility hack.
2306 (java::lang::Class::_getMethods): Likewise.
2308 2000-08-15 Andrew Haley <aph@cygnus.com>
2310 * include/jvm.h (_Jv_HashCode): New hash code.
2312 2000-08-15 Tom Tromey <tromey@cygnus.com>
2314 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2316 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2318 * THANKS: More thanks.
2320 2000-08-10 Tom Tromey <tromey@cygnus.com>
2322 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2324 (connect): Likewise.
2326 (getOption): Likewise.
2327 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2328 case when errno not set.
2331 (receive): Likewise.
2332 (mcastGrp): Likewise.
2333 (setOption): Likewise.
2334 (getOption): Likewise.
2336 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2337 John Stracke <francis@ecal.com>
2339 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2340 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2342 (disconnect): Don't unset connected flag.
2343 (getHeaderField (String)): Call connect() if not connected.
2344 (getHeaderField (int)): Ditto.
2345 (getHeaderFieldKey): Ditto.
2346 (getHttpHeaders): Don't call connect().
2347 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2348 gotResponseVals): New fields.
2349 (getResponseCode): Call getResponseVals() conditionally.
2350 (getResponseMessage): Ditto.
2351 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2353 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2355 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2356 * Makefile.in: Rebuilt.
2357 * java/awt/Color.java (getTransparency): New method.
2358 * java/awt/Component.java: Various updates.
2359 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2360 after dealing with children.
2361 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2362 * java/awt/Window.java: Various new methods and updates.
2363 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2365 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2366 * java/awt/event/WindowEvent.java (paramString): Ditto.
2367 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2369 * java/awt/geom/Point2D.java (clone): Ditto.
2370 * java/awt/geom/RectangularShape.java (clone): Ditto.
2371 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2372 isAlphaPremultiplied): Make package-private, not private.
2374 2000-08-08 Tom Tromey <tromey@cygnus.com>
2376 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2377 surrogate characters.
2378 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2380 (write): Correct handling of surrogate characters.
2382 2000-08-07 Tom Tromey <tromey@cygnus.com>
2384 * java/lang/reflect/Method.java (hashCode): Use getName().
2385 (toString): Likewise.
2386 * java/lang/reflect/natMethod.cc (getType): Initialize
2389 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2391 * java/lang/reflect/Field.java (toString): Correct formatting.
2394 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2396 (receive): Streamlined.
2398 2000-08-05 Tom Tromey <tromey@cygnus.com>
2400 * java/io/PrintWriter.java: Merged comments from Classpath.
2401 (printlnUnsynchronized): Removed.
2402 (println()): Print the separator.
2403 (println): Call println(), not printlnUnsynchronized.
2404 (out): Now protected, to match spec.
2406 2000-08-04 Tom Tromey <tromey@cygnus.com>
2408 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2409 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2412 2000-08-03 Warren Levy <warrenl@cygnus.com>
2414 * java/io/ObjectInputStream.java (readFields): Turn off
2415 readDataFromBlock while reading via GetField.
2416 (GetField$1.get(String, Object)): Pass Class of default value to
2418 (getField): Allow for null default values.
2420 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2421 (PutField$1.put): Fixed calls of checkType in most of the put
2422 methods to pass the correct parameter.
2423 (PutField$1.put(String, Object)): Allow for null value arg.
2424 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2427 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2428 typo in spec'ed field name.
2429 (getSerialPersistentFields): Changed spelling of method to match
2430 the correct spelling of the spec'ed field name.
2432 2000-08-03 Tom Tromey <tromey@cygnus.com>
2434 * Makefile.in: Rebuilt.
2435 * Makefile.am (awt_java_source_files): Added new files.
2437 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2439 * Makefile.am: Add new AWT stubs.
2440 * java/awt/Canvas.java: New placeholder class.
2441 * java/awt/Checkbox.java: Ditto.
2442 * java/awt/CheckboxMenuItem.java: Ditto.
2443 * java/awt/Choice.java: Ditto.
2444 * java/awt/Dialog.java: Ditto.
2445 * java/awt/FileDialog.java: Ditto.
2446 * java/awt/List.java: Ditto.
2447 * java/awt/ScrollPane.java: Ditto.
2448 * java/awt/TextField.java: Ditto.
2449 * java/awt/datatransfer/Clipboard.java: Ditto.
2450 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2451 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2452 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2453 Some commented out. Partially implemented.
2454 * java/awt/natToolkit.cc: Removed file.
2456 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2458 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2459 Fixes "make -j" builds.
2460 * Makefile.in: Rebuild.
2462 2000-08-02 Tom Tromey <tromey@cygnus.com>
2464 * Makefile.in: Rebuilt.
2465 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2466 * java/net/natPlainSocketImpl.cc: Include posix.h.
2467 (accept): Use _Jv_select.
2468 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2469 (receive): Use _Jv_select.
2470 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2471 (available): Use _Jv_select.
2472 * java/lang/natSystem.cc: Include posix.h.
2473 (currentTimeMillis): Use _Jv_gettimeofday.
2474 * include/posix.h: New file.
2475 * posix.cc: New file.
2477 * scripts/encodings.pl: New file.
2478 * Makefile.in: Rebuilt.
2479 * Makefile.am (convert_source_files): Added IOConverter.java.
2480 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2482 (getDefaultDecodingClass): Canonicalize default encoding name.
2483 (getEncoder): Likewise.
2484 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2486 (getDefaultDecodingClass): Canonicalize default encoding name.
2487 (getDecoder): Likewise.
2488 * gnu/gcj/convert/IOConverter.java: New file.
2490 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2492 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2493 to match C declaration in ffi.h.
2494 * Makefile.am: Add java/awt/Button.java.
2495 * Makefile.in: Rebuilt.
2497 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2499 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2500 cast of the second argument to `ffi_raw_call' changed to match
2503 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2505 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2506 argument to `ffi_raw_call' changed to match prototype.
2508 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2510 * java/awt/Component.java (toString): Implemented.
2511 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2512 dispatchEvent() to dispatch the event.
2513 (removeImpl): Ditto.
2515 2000-07-30 Anthony Green <green@redhat.com>
2517 * java/awt/Component.java: Add treeLock object.
2518 (getTreeLock): Implement.
2519 (isShowing): Implement.
2521 2000-07-30 Tom Tromey <tromey@cygnus.com>
2523 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2525 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2527 * java/awt/Window.java (addNotify): Wrote.
2528 (addWindowListener): Wrote.
2530 (getWarningString): Wrote.
2531 (processEvent): Wrote.
2532 (processWindowEvent): Wrote.
2533 (removeWindowListener): Wrote.
2534 (show): Call validate(), setVisible().
2538 * java/awt/Toolkit.java (createWindow): Declare.
2540 * java/awt/Frame.java (addNotify): Use getToolkit to find
2543 * java/awt/Component.java (invalidate): Wrote.
2545 (getToolkit): Wrote.
2547 * java/awt/Container.java (addContainerListener): Removed
2549 (removeContainerListener): Likewise.
2551 (add(Component)): Use it.
2552 (add(String,Component)): Likewise.
2553 (add(Component,int)): Likewise.
2554 (add(Component,Object)): Likewise.
2555 (add(Component,Object,int)): Likewise.
2557 (getAlignmentX): Wrote.
2558 (getAlignmentY): Wrote.
2559 (getComponentAt): Wrote.
2560 (getMaximumSize): Wrote.
2561 (invalidate): Wrote.
2562 (list(PrintStream,int)): Wrote.
2563 (list(PrintWriter,int)): Wrote.
2564 (getMinimumSize): Wrote.
2565 (getPreferredSize): Wrote.
2566 (printComponents): Wrote.
2567 (processContainerEvent): Look at containerListener, not
2569 (remove): Added event processing and peer destruction.
2570 (removeAll): Use remove.
2571 (removeNotify): Wrote.
2573 (validateTree): Wrote.
2575 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2576 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2577 * java/awt/Container.java (addNotify): Don't create Container
2579 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2581 2000-07-30 Tom Tromey <tromey@cygnus.com>
2583 * java/awt/Container.java (remove(int)): Wrote.
2584 (remove(Component)): Wrote.
2585 (add(Component)): Wrote.
2586 (add(Component,int)): Wrote.
2588 (addNotify): Set our own peer.
2589 * java/awt/Scrollbar.java (listeners): Changed type.
2590 (Scrollbar): Don't initialize listeners.
2592 (setValue): Call setValues.
2593 (setMinimum): Likewise.
2594 (setMaxPriority): Likewise.
2595 (setVisibleAmount): Likewise.
2597 (setUnitIncrement): Forward to peer.
2598 (setLineIncrement): Call setUnitIncrement.
2599 (setPageIncrement): Call setBlockIncrement.
2600 (setBlockIncrement): Forward to peer.
2601 (addAdjustmentListener): Rewrote.
2602 (removeAdjustmentListener): Rewrote.
2603 (processAdjustmentEvent): Rewrote.
2604 (paramString): Wrote.
2605 * Makefile.in: Rebuilt.
2606 * Makefile.am (awt_java_source_files): Added Button.java.
2607 * java/awt/Button.java: New file.
2608 * java/awt/Toolkit.java (createLabel): Declare.
2609 (createButton): Likewise.
2610 (createScrollbar): Likewise.
2611 (createContainer): Likewise.
2612 * java/awt/Label.java (addNotify): Wrote.
2613 (setAlignment): Call setAlignment in the peer.
2614 (setText): Call setText in the peer.
2616 2000-07-28 Warren Levy <warrenl@cygnus.com>
2618 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2619 NotSerializableException with just the class name.
2621 2000-07-26 Andrew Haley <aph@cygnus.com>
2623 * interpret.cc (continue1): Insert missing break into switch.
2625 2000-07-28 Warren Levy <warrenl@cygnus.com>
2627 * java/io/ObjectStreamException.java: Made constructors protected.
2629 2000-07-27 Tom Tromey <tromey@cygnus.com>
2631 * java/io/OutputStreamWriter.java (close): Only flush if not
2634 2000-07-27 Warren Levy <warrenl@cygnus.com>
2636 * mauve-libgcj: Activated serialization tests.
2637 * gcj/field.h (getModifiers): Mask off unknown flags.
2638 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2639 spurious bits don't cause discrepancies.
2640 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2641 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2642 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2643 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2644 * java/lang/Throwable.java (serialVersionUID): New field.
2645 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2646 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2648 * java/lang/reflect/natMethod.cc: Ditto.
2649 * java/security/Key.java (serialVersionUID): Removed field for now.
2650 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2651 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2653 2000-07-22 Tom Tromey <tromey@cygnus.com>
2655 * java/awt/geom/RectangularShape.java (getPathIterator):
2658 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2660 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2661 stub libjava/java/awt/ColorModel.java which was located in the
2663 * libjava/java/awt/image/ComponentColorModel.java: New file.
2664 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2665 * libjava/java/awt/image/DataBuffer.java: New file.
2666 * libjava/java/awt/image/DataBufferByte.java: New file.
2667 * libjava/java/awt/image/DataBufferInt.java: New file.
2668 * libjava/java/awt/image/DataBufferUShort.java: New file.
2669 * libjava/java/awt/image/DirectColorModel.java: New file.
2670 * libjava/java/awt/image/PackedColorModel.java: New file.
2671 * libjava/java/awt/image/Raster.java: New file.
2672 * libjava/java/awt/image/SampleModel.java: New file.
2673 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2675 * libjava/java/awt/image/IndexColorModel.java: New file.
2676 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2677 java.awt.ColorModel stub.
2679 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2680 * gnu/gcj/util/Buffers.java: New file, utility class.
2682 * libjava/Makefile.am: Updated to include new files.
2683 * libjava/Makefile.in: Rebuilt.
2685 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2687 * java/io/StreamTokenizer.java: Merged with classpath.
2689 2000-07-20 Tom Tromey <tromey@cygnus.com>
2691 * Makefile.in: Rebuilt.
2692 * Makefile.am (awt_java_source_files): Updated for new files.
2693 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2694 * java/awt/Label.java: New file.
2695 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2696 (createIntersection, createUnion, getBounds2D): New methods.
2697 * java/awt/Scrollbar.java: New file.
2698 * java/awt/Shape.java: Updated to 1.2.
2699 * java/awt/geom/AffineTransform.java: New file.
2700 * java/awt/geom/Ellipse2D.java: New file.
2701 * java/awt/geom/NoninvertibleTransformException.java: New file.
2702 * java/awt/geom/PathIterator.java: New file.
2703 * java/awt/geom/Rectangle2D.java: New file.
2704 * java/awt/geom/RectangularShape.java: New file.
2705 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2706 * java/awt/geom/IllegalPathStateException.java: New file.
2708 * scripts/showval.java: New file.
2710 * scripts/classes.pl (scan): Print inner classes properly.
2711 * gcj/javaprims.h: Updated class list.
2713 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2714 initialize String fields for interpreted classes. Fixes bug
2715 reported by Hans Boehm.
2717 * java/io/File.java (getParentFile): New method, from Classpath
2718 via Oskar Liljeblad.
2720 * java/util/Vector.java (remove(Object)): Implemented.
2722 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2724 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2725 zero return from backtrace().
2727 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2729 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2731 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2732 before calling notifyAll().
2734 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2736 Add missing files from last check-in:
2737 * java/awt/image/ImageConsumer.java: New file.
2738 * java/awt/image/ImageProducer.java: New file.
2739 * java/awt/image/ImageObserver.java: New file.
2741 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2743 Merged implementation of java.applet from classpath:
2744 * java/applet/Applet.java: New file.
2745 * java/applet/AppletContext.java: New file.
2746 * java/applet/AppletStub.java: New file.
2747 * java/applet/AudioClip.java: New file.
2749 * Makefile.am: Added new java.applet classes.
2750 * Makefile.in: Rebuilt.
2752 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2755 * java/util/ResourceBundle.java (getLocale): stub.
2756 * Makefile.am: Added new AWT classes.
2757 * Makefile.in: Rebuilt.
2758 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2759 constructors. Fix toString() and paramString().
2760 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2761 * java/awt/CheckboxGroup.java: New class.
2762 * java/awt/ColorModel.java: New class.
2763 * java/awt/Component.java: Added stubs for most methods. Implemented
2765 * java/awt/Container.java: ditto.
2766 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2767 * java/awt/Cursor.java: ditto.
2768 * java/awt/Event.java: Fix paramString().
2769 * java/awt/EventQueue.java: New class. Implemented.
2770 * java/awt/Font.java: Added additional stub methods. Implemented
2772 * java/awt/FontMetrics.java: New class. Stubbed.
2773 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2775 * java/awt/Insets.java: New class. Implemented.
2776 * java/awt/Menu.java: Add new methods. Partially implemented.
2777 * java/awt/MenuItem.java: Add new methods and fields. Partially
2779 * java/awt/MenuShortcut.java: New class. Implemented.
2780 * java/awt/Panel.java: New class. Placeholder.
2781 * java/awt/PopupMenu.java: New class. Stubbed.
2782 * java/awt/Rectangle.java: New class. Implemented.
2783 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2784 * java/awt/event/ActionEvent.java: Implement paramString().
2785 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2786 * java/awt/event/ComponentEvent.java: Implement paramString().
2787 * java/awt/event/ContainerEvent.java: Implement paramString().
2788 * java/awt/event/FocusEvent.java: Implement paramString().
2789 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2790 * java/awt/event/HierarchyBoundsListener.java: New class.
2791 * java/awt/event/HierarchyEvent.java: New class.
2792 * java/awt/event/HierarchyListener.java: New class.
2793 * java/awt/event/InputMethodEvent.java: Implement paramString().
2794 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2795 exception if !catchExceptions.
2796 * java/awt/event/ItemEvent.java: Implement paramString().
2797 * java/awt/event/KeyEvent.java: Implement paramString().
2798 * java/awt/event/MouseEvent.java: Implement paramString().
2799 * java/awt/event/PaintEvent.java: Implement paramString().
2800 * java/awt/event/TextEvent.java: Implement paramString().
2801 * java/awt/event/WindowEvent.java: Implement paramString().
2803 AWT Peer interfaces:
2804 * java/awt/peer/ButtonPeer.java: New file.
2805 * java/awt/peer/ListPeer.java: New file.
2806 * java/awt/peer/CanvasPeer.java: New file.
2807 * java/awt/peer/MenuBarPeer.java: New file.
2808 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2809 * java/awt/peer/MenuComponentPeer.java: New file.
2810 * java/awt/peer/CheckboxPeer.java: New file.
2811 * java/awt/peer/MenuItemPeer.java: New file.
2812 * java/awt/peer/ChoicePeer.java: New file.
2813 * java/awt/peer/MenuPeer.java: New file.
2814 * java/awt/peer/ComponentPeer.java: Implemented.
2815 * java/awt/peer/PanelPeer.java: New file.
2816 * java/awt/peer/ContainerPeer.java: Implemented.
2817 * java/awt/peer/PopupMenuPeer.java: New file.
2818 * java/awt/peer/DialogPeer.java: New file.
2819 * java/awt/peer/ScrollPanePeer.java: New file.
2820 * java/awt/peer/FileDialogPeer.java: New file.
2821 * java/awt/peer/ScrollbarPeer.java: New file.
2822 * java/awt/peer/FontPeer.java: New file.
2823 * java/awt/peer/TextAreaPeer.java: New file.
2824 * java/awt/peer/FramePeer.java: Implemented.
2825 * java/awt/peer/TextComponentPeer.java: New file.
2826 * java/awt/peer/LabelPeer.java: New file.
2827 * java/awt/peer/TextFieldPeer.java: New file.
2828 * java/awt/peer/LightweightPeer.java: New file.
2829 * java/awt/peer/WindowPeer.java: Implemented.
2831 2000-07-06 Tom Tromey <tromey@cygnus.com>
2833 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2834 Initialize static final String fields.
2836 2000-07-03 Tom Tromey <tromey@cygnus.com>
2838 * java/io/PrintWriter.java (print): Call write(String), not
2839 print(String). See PR libgcj/277.
2840 (print(String)): Use write, not out.write.
2842 2000-06-30 Tom Tromey <tromey@cygnus.com>
2844 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2846 2000-06-27 Andrew Haley <aph@cygnus.com>
2848 * java/io/File.java (createTempFile): Close the FileDescriptor
2849 used to create a temp file. Fixes some of PR 203.
2850 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2851 collection if we run out of file handles.
2853 2000-06-28 Warren Levy <warrenl@cygnus.com>
2855 * gnu/java/security/provider/Gnu.java: New file.
2856 * gnu/java/security/provider/SHA.java: New file.
2857 * gnu/java/security/provider/SHA1PRNG.java: New file.
2858 * Makefile.am: Added the above files.
2859 * Makefile.in: Rebuilt.
2861 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
2863 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
2865 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
2866 (destroyed_flag): Removed.
2867 (isDestroyed, removeGroup, removeThread): Test for parent == null.
2868 (activeCount): Added spec note.
2870 2000-06-27 Warren Levy <warrenl@cygnus.com>
2872 * java/security/Principal.java: New file.
2873 * Makefile.am: Added Principal.java.
2874 * Makefile.in: Rebuilt.
2876 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2878 * java/awt/event/MouseEvent.java: Fixed coordinate space
2881 2000-06-27 Tom Tromey <tromey@cygnus.com>
2883 * java/io/PushbackInputStream.java (read): If there are characters
2884 in the buffer, don't also call super.read().
2885 * java/io/PushbackReader.java (read): If there are characters in
2886 the buffer, don't also call super.read().
2888 * java/lang/Double.java (valueOf): Call parseDouble().
2890 2000-06-26 Warren Levy <warrenl@cygnus.com>
2892 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
2893 (newVal): Renamed to newValue.
2894 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
2895 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
2896 (revokeNow): Renamed to invalidateRefs.
2897 * java/io/OptionalDataException.java: Updated FIXME.
2898 (eof): New placeholder field.
2900 * java/io/WriteAbortedException.java (message): Made transient.
2901 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
2902 * java/lang/Throwable.java (stackTrace): Made transient.
2903 * java/net/InetAddress.java: Made Serializable.
2904 * java/security/KeyPair.java: Made Serializable.
2905 * java/security/Provider.java: Replaced with Classpath version that
2906 implements serialization and proper methods.
2907 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
2908 (limits): Renamed to choiceLimits.
2910 2000-06-24 Tom Tromey <tromey@cygnus.com>
2912 * java/lang/natDouble.cc (parseDouble): Renamed from
2914 * java/lang/Double.java (parseDouble): Renamed from
2915 doubleValueOf. Now public.
2917 2000-06-23 Andrew Haley <aph@cygnus.com>
2919 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
2920 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
2922 2000-06-23 Tom Tromey <tromey@cygnus.com>
2924 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
2925 * java/lang/natDouble.cc: Always include <alloca.h>.
2926 Fix for PR libgcj/267.
2928 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
2930 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
2931 comply with classpath VM spec.
2932 (add(Group)): Rename to addGroup().
2933 * java/lang/Thread.java (Thread): Use addThread().
2934 * java/lang/natThread.cc (finish_): Use removeThread().
2936 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
2938 * java/lang/ThreadGroup.java: Merged with classpath.
2939 * prims.cc (_Jv_RunMain): Don't use `main_group'.
2940 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
2942 * java/lang/Thread.java (Thread): Bootstrap initial thread from
2943 ThreadGroup.root if Thread.currentThread is null. Honour the
2944 ThreadGroup's max priority setting.
2946 2000-06-18 Tom Tromey <tromey@cygnus.com>
2948 * java/lang/natClass.cc (forName): Removed dead code. Initialize
2949 returned class. For PR gcj/260.
2951 2000-06-16 Tom Tromey <tromey@cygnus.com>
2953 Fix for PR libgcj/261:
2954 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
2956 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
2957 argument. (This is a patch from long ago that somehow went
2960 2000-06-15 Tom Tromey <tromey@cygnus.com>
2962 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
2966 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2968 Fix for PR java.lang/258:
2969 * prims.cc (_Jv_PrimClass): Set state of primitive class to
2970 JV_STATE_DONE, to prevent accidental initialization.
2971 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
2972 _Jv_InterfaceAssignableFrom if target is an interface and source is an
2973 interface or an abstract class. Remove redundant initializeClass calls.
2974 Remove duplicate if_idt test.
2975 (_Jv_InterfaceAssignableFrom): New function.
2976 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2978 2000-05-31 Tom Tromey <tromey@cygnus.com>
2980 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
2981 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
2982 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
2983 (NUM_OBJECT_METHODS): New define.
2984 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
2985 `array_vtable' parameter. Added assertion.
2986 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
2989 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
2991 * gcj/cni.h: Include <string.h>.
2992 * defineclass.cc: Include <alloca.h>.
2993 * interpret.cc: Ditto.
2994 * gij.cc: Include <stdlib.h>.
2996 2000-05-30 Tom Tromey <tromey@cygnus.com>
2998 * include/name-finder.h: Include <sys/wait.h>.
2999 (_Jv_name_finder::pid): Now of type `pid_t'.
3000 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3001 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3004 2000-05-24 Warren Levy <warrenl@cygnus.com>
3006 * java/io/ObjectOutputStream.java (writeObject): Use component type
3007 when writing arrays.
3010 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3012 Fix for PR libgcj/226:
3013 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3014 since this is an installed header.
3016 Fix for PR libgcj/228:
3017 * java/util/zip/ZipFile (getInputStream): Create inflater with
3020 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3021 with DataFormatException.
3023 2000-05-20 Tom Tromey <tromey@cygnus.com>
3025 * Makefile.in: Rebuilt.
3026 * Makefile.am (hack1): Removed.
3027 (awto_files): Likewise.
3028 (libgcjawt_la_SOURCES): Likewise.
3029 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3030 (libgcjawt_la_DEPENDENCIES): Likewise.
3031 (libgcjawt_la_LIBADD): Likewise.
3032 (libgcjawt_la_LDFLAGS): Likewise.
3033 (libgcjawt_la_LINK): Likewise.
3034 ($(awt_java_source_files:.java=.class)): Likewise.
3035 (libgcj.zip): Don't depend on AWT files.
3036 (MOSTLYCLEANFILES): Don't include AWT files.
3037 ($(awto_files)): Removed.
3038 (nat_headers): Removed AWT files.
3039 (cond_awt_java_source_files): Removed.
3040 (ordinary_java_source_files): Added awt_java_source_files.
3041 * libgcj.spec.in (*lib): Removed -lgcjawt.
3042 * configure: Rebuilt.
3043 * configure.in: Removed --enable-java-awt option.
3045 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3047 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3048 (ZipEntry): Copy the `name' field.
3049 (clone): Implement JDK1.2 method.
3050 (setCompressedSize): ditto.
3053 2000-05-19 Tom Tromey <tromey@cygnus.com>
3055 * java/io/BufferedWriter.java: Merged with Classpath.
3056 * java/io/BufferedOutputStream.java: Merged with Classpath.
3058 2000-05-16 Andrew Haley <aph@cygnus.com>
3060 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3061 build_ia64_frame_state.
3062 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3065 2000-05-15 Warren Levy <warrenl@cygnus.com>
3067 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3068 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3069 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3070 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3071 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3072 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3073 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3074 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3075 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3076 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3077 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3078 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3079 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3080 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3081 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3082 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3083 * gnu/gcj/io/NullOutputStream.java: Removed.
3084 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3085 * gnu/gcj/lang/ArrayHelper.java: Removed.
3086 * gnu/gcj/lang/ClassHelper.java: Removed.
3087 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3089 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3090 * gnu/java/beans/EmptyBeanInfo.java: New file.
3091 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3092 * gnu/java/beans/IntrospectionIncubator.java: New file.
3093 * gnu/java/beans/editors/ColorEditor.java: New file.
3094 * gnu/java/beans/editors/FontEditor.java: New file.
3095 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3096 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3097 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3098 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3099 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3100 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3101 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3102 * gnu/java/beans/editors/StringEditor.java: New file.
3103 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3104 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3105 * gnu/java/io/NullOutputStream.java: New file.
3106 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3107 * gnu/java/lang/ArrayHelper.java: New file.
3108 * gnu/java/lang/ClassHelper.java: New file.
3109 * gnu/java/lang/reflect/TypeSignature.java: New file.
3111 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3112 namespace back to the original Classpath gnu/java namespace.
3113 * Makefile.in: Rebuilt.
3115 * java/beans/Beans.java: Namespace change.
3116 * java/beans/EventSetDescriptor.java: Namespace change.
3117 * java/beans/Introspector.java: Namespace change.
3118 * java/beans/PropertyEditorManager.java: Namespace change.
3119 * java/io/ObjectInputStream.java: Namespace change.
3120 * java/io/ObjectOutputStream.java: Namespace change.
3121 * java/io/ObjectStreamClass.java: Namespace change.
3122 * java/io/ObjectStreamField.java: Namespace change.
3124 2000-04-21 Warren Levy <warrenl@cygnus.com>
3126 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3127 now that compiler patch is available.
3128 Removed unneeded System.loadLibrary.
3129 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3130 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3132 2000-04-19 Andrew Haley <aph@cygnus.com>
3134 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3135 and target classes have been initialized.
3137 2000-04-19 Andrew Haley <aph@cygnus.com>
3139 * java/lang/String.java: implement Serializable, Comparable.
3140 (compareTo (Object)): New method.
3142 2000-04-19 Warren Levy <warrenl@cygnus.com>
3144 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3145 instead of getField to retrieve non-public field.
3146 (getSerialPersistantFields): Ditto.
3148 2000-04-18 Warren Levy <warrenl@cygnus.com>
3150 * mauve-libgcj: Turned off object serialization tests temporarily
3151 due to compiler error.
3153 2000-04-17 Warren Levy <warrenl@cygnus.com>
3155 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3156 to avoid build problem.
3158 * mauve-libgcj: Turned on object serialization tests.
3160 2000-04-17 Tom Tromey <tromey@cygnus.com>
3162 * libgcj.spec.in (*lib): Added -lgcjawt.
3164 2000-04-17 Andrew Haley <aph@cygnus.com>
3166 * Makefile.am: Add new files:
3167 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3169 * Makefile.in: Rebuilt.
3171 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3172 interface that has no implementations.
3173 Check for an attempt to assign an abstract class to an interface.
3175 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3176 if we fail to find MessageDigest.getInstance ("SHA").
3178 * gnu/gcj/io/SimpleSHSStream.java: New file.
3179 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3180 * gnu/gcj/io/shs.cc: New file.
3181 * gnu/gcj/io/shs.h: new file.
3183 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3186 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3187 punctuation from the classname of an array element.
3189 * gcj/javaprims.h: Add SimpleDigestStream.
3191 2000-04-17 Andrew Haley <aph@cygnus.com>
3193 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3194 to getPrivateField for superclasses.
3196 2000-04-14 Andrew Haley <aph@cygnus.com>
3198 * Makefile.am: Add new files:
3199 java/io/ObjectOutputStream$PutField.h,
3200 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3201 java/io/natObjectOutputStream.cc
3202 * Makefile.in: Rebuilt.
3203 * gcj/Makefile.in: Rebuilt.
3204 * include/Makefile.in: Rebuilt.
3205 * java/lang/Class.h (getPrivateField): New method.
3206 (getPrivateMethod): Ditto.
3207 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3208 and java::io::ObjectStreamClass our friends.
3209 * java/lang/natClass.cc (getPrivateField): New method.
3210 (getPrivateMethod): Ditto.
3211 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3212 * gcj/javaprims.h: Add serialization classes.
3213 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3214 (setByteField): Ditto.
3215 (setCharField): Ditto.
3216 (setDoubleField): Ditto.
3217 (setFloatField): Ditto.
3218 (setIntField): Ditto.
3219 (setLongField): Ditto.
3220 (setShortField): Ditto.
3221 (setObjectField): Ditto.
3222 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3224 (getByteField): Ditto.
3225 (getCharField): Ditto.
3226 (getDoubleField): Ditto.
3227 (getFloatField): Ditto.
3228 (getIntField): Ditto.
3229 (getLongField): Ditto.
3230 (getShortField): Ditto.
3231 (getObjectField): Ditto.
3232 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3234 (getSerialPersistantFields): Ditto.
3235 (getDefinedSUID): Ditto.
3236 * java/io/natObjectOutputStream.cc: New file.
3237 * java/io/natObjectInputStream.cc: New file.
3239 2000-04-13 Warren Levy <warrenl@cygnus.com>
3241 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3242 problems. Revert to previous version to reproduce and when fixed.
3244 2000-04-13 Warren Levy <warrenl@cygnus.com>
3246 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3247 * gnu/gcj/io/NullOutputStream.java: New file.
3248 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3249 * java/io/BlockDataException.java: New file.
3250 * java/io/Externalizable.java: New file.
3251 * java/io/InvalidClassException.java: New file.
3252 * java/io/InvalidObjectException.java: New file.
3253 * java/io/NotActiveException.java: New file.
3254 * java/io/NotSerializableException.java: New file.
3255 * java/io/ObjectInput.java: New file.
3256 * java/io/ObjectInputStream.java: New file.
3257 * java/io/ObjectInputValidation.java: New file.
3258 * java/io/ObjectOutput.java: New file.
3259 * java/io/ObjectOutputStream.java: New file.
3260 * java/io/ObjectStreamClass.java: New file.
3261 * java/io/ObjectStreamConstants.java: New file.
3262 * java/io/ObjectStreamField.java: New file.
3263 * java/io/Replaceable.java: New file.
3264 * java/io/Resolvable.java: New file.
3265 * java/io/SerializablePermission.java: New file.
3266 * java/io/WriteAbortedException.java: New file.
3267 * java/security/BasicPermission.java: New file.
3268 * java/security/DigestOutputStream.java: New file.
3269 * java/security/Guard.java: New file.
3270 * java/security/Permission.java: New file.
3271 * java/security/PermissionCollection.java: New file.
3272 * Makefile.am: Added above files.
3273 * Makefile.in: Rebuilt.
3275 * java/beans/Beans.java (instantiate): Activated serialization code.
3276 * java/lang/SecurityManager.java (checkPermission): New method.
3278 2000-04-12 Warren Levy <warrenl@cygnus.com>
3280 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3281 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3282 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3283 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3284 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3285 * gnu/gcj/beans/editors/FontEditor.java: New file.
3286 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3287 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3288 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3289 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3290 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3291 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3292 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3293 * gnu/gcj/beans/editors/StringEditor.java: New file.
3294 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3295 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3296 * gnu/gcj/lang/ArrayHelper.java: New file.
3297 * gnu/gcj/lang/ClassHelper.java: New file.
3298 * java/beans/BeanDescriptor.java: New file.
3299 * java/beans/BeanInfo.java: New file.
3300 * java/beans/Beans.java: New file.
3301 * java/beans/Customizer.java: New file.
3302 * java/beans/DesignMode.java: New file.
3303 * java/beans/EventSetDescriptor.java: New file.
3304 * java/beans/FeatureDescriptor.java: New file.
3305 * java/beans/IndexedPropertyDescriptor.java: New file.
3306 * java/beans/IntrospectionException.java: New file.
3307 * java/beans/Introspector.java: New file.
3308 * java/beans/MethodDescriptor.java: New file.
3309 * java/beans/ParameterDescriptor.java: New file.
3310 * java/beans/PropertyChangeEvent.java: New file.
3311 * java/beans/PropertyChangeListener.java: New file.
3312 * java/beans/PropertyChangeSupport.java: New file.
3313 * java/beans/PropertyDescriptor.java: New file.
3314 * java/beans/PropertyEditor.java: New file.
3315 * java/beans/PropertyEditorManager.java: New file.
3316 * java/beans/PropertyEditorSupport.java: New file.
3317 * java/beans/PropertyVetoException.java: New file.
3318 * java/beans/SimpleBeanInfo.java: New file.
3319 * java/beans/VetoableChangeListener.java: New file.
3320 * java/beans/VetoableChangeSupport.java: New file.
3321 * java/beans/Visibility.java: New file.
3322 * java/beans/beancontext/BeanContext.java: New file.
3323 * java/beans/beancontext/BeanContextChild.java: New file.
3324 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3325 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3326 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3327 * java/beans/beancontext/BeanContextEvent.java: New file.
3328 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3329 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3330 * java/beans/beancontext/BeanContextProxy.java: New file.
3331 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3333 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3334 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3336 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3337 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3339 * java/beans/beancontext/BeanContextServices.java: New file.
3340 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3341 * java/util/AbstractCollection.java: New file.
3342 * java/util/AbstractList.java: New file.
3343 * java/util/Arrays.java: New file.
3344 * Makefile.am: Added above files.
3345 * Makefile.in: Rebuilt.
3347 2000-04-11 Warren Levy <warrenl@cygnus.com>
3349 * java/awt/AWTError.java: New file.
3350 * java/awt/AWTEvent.java: New file.
3351 * java/awt/AWTException.java: New file.
3352 * java/awt/ActiveEvent.java: New file.
3353 * java/awt/Adjustable.java: New file.
3354 * java/awt/BorderLayout.java: New file.
3355 * java/awt/Color.java: New file.
3356 * java/awt/Component.java: New file.
3357 * java/awt/Container.java: New file.
3358 * java/awt/Dimension.java: New file.
3359 * java/awt/Event.java: New file.
3360 * java/awt/Font.java: New file.
3361 * java/awt/Frame.java: New file.
3362 * java/awt/Graphics.java: New file.
3363 * java/awt/IllegalComponentStateException.java: New file.
3364 * java/awt/Image.java: New file.
3365 * java/awt/ItemSelectable.java: New file.
3366 * java/awt/LayoutManager.java: New file.
3367 * java/awt/LayoutManager2.java: New file.
3368 * java/awt/Menu.java: New file.
3369 * java/awt/MenuBar.java: New file.
3370 * java/awt/MenuComponent.java: New file.
3371 * java/awt/MenuContainer.java: New file.
3372 * java/awt/MenuItem.java: New file.
3373 * java/awt/Paint.java: New file.
3374 * java/awt/PaintContext.java: New file.
3375 * java/awt/Point.java: New file.
3376 * java/awt/Rectangle.java: New file.
3377 * java/awt/Shape.java: New file.
3378 * java/awt/TextArea.java: New file.
3379 * java/awt/TextComponent.java: New file.
3380 * java/awt/Toolkit.java: New file.
3381 * java/awt/Transparency.java: New file.
3382 * java/awt/Window.java: New file.
3383 * java/awt/natToolkit.cc: New file.
3384 * java/awt/event/AWTEventListener.java: New file.
3385 * java/awt/event/ActionEvent.java: New file.
3386 * java/awt/event/ActionListener.java: New file.
3387 * java/awt/event/AdjustmentEvent.java: New file.
3388 * java/awt/event/AdjustmentListener.java: New file.
3389 * java/awt/event/ComponentAdapter.java: New file.
3390 * java/awt/event/ComponentEvent.java: New file.
3391 * java/awt/event/ComponentListener.java: New file.
3392 * java/awt/event/ContainerAdapter.java: New file.
3393 * java/awt/event/ContainerEvent.java: New file.
3394 * java/awt/event/ContainerListener.java: New file.
3395 * java/awt/event/FocusAdapter.java: New file.
3396 * java/awt/event/FocusEvent.java: New file.
3397 * java/awt/event/FocusListener.java: New file.
3398 * java/awt/event/InputEvent.java: New file.
3399 * java/awt/event/InputMethodEvent.java: New file.
3400 * java/awt/event/InputMethodListener.java: New file.
3401 * java/awt/event/InvocationEvent.java: New file.
3402 * java/awt/event/ItemEvent.java: New file.
3403 * java/awt/event/ItemListener.java: New file.
3404 * java/awt/event/KeyAdapter.java: New file.
3405 * java/awt/event/KeyEvent.java: New file.
3406 * java/awt/event/KeyListener.java: New file.
3407 * java/awt/event/MouseAdapter.java: New file.
3408 * java/awt/event/MouseEvent.java: New file.
3409 * java/awt/event/MouseListener.java: New file.
3410 * java/awt/event/MouseMotionAdapter.java: New file.
3411 * java/awt/event/MouseMotionListener.java: New file.
3412 * java/awt/event/PaintEvent.java: New file.
3413 * java/awt/event/TextEvent.java: New file.
3414 * java/awt/event/TextListener.java: New file.
3415 * java/awt/event/WindowAdapter.java: New file.
3416 * java/awt/event/WindowEvent.java: New file.
3417 * java/awt/event/WindowListener.java: New file.
3418 * java/awt/geom/Dimension2D.java: New file.
3419 * java/awt/geom/Point2D.java: New file.
3420 * java/awt/peer/ComponentPeer.java: New file.
3421 * java/awt/peer/ContainerPeer.java: New file.
3422 * java/awt/peer/FramePeer.java: New file.
3423 * java/awt/peer/WindowPeer.java: New file.
3424 * java/util/Collection.java: New file.
3425 * java/util/Comparator.java: New file.
3426 * java/util/Iterator.java: New file.
3427 * java/util/List.java: New file.
3428 * java/util/ListIterator.java: New file.
3429 * Makefile.am: Added above files.
3430 * Makefile.in: Rebuilt.
3432 2000-04-10 Warren Levy <warrenl@cygnus.com>
3434 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3435 * java/lang/FirstThread.java: Ditto.
3436 * java/lang/StringBuffer.java: Ditto.
3437 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3439 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3440 Special case handled in java.math.BigInteger.
3441 * java/math/BigInteger.java (divide): Handle the special case when
3442 dividing by 1 and the high bit of the dividend is set.
3443 (setShiftRight): Handle case when count == 0.
3445 2000-04-05 Andrew Haley <aph@cygnus.com>
3447 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3450 2000-04-05 Andrew Haley <aph@cygnus.com>
3452 * sysdep/ia64.c (rse_address_add): Delete.
3453 (IS_NaT_COLLECTION_ADDR): Delete.
3454 (ia64_backtrace_helper): check for null unwind_info.
3456 * sysdep/ia64-frame.h: add calc_caller_bsp.
3458 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3461 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3462 (_Jv_remI): Likewise.
3463 (_Jv_divJ): Likewise.
3464 (_Jv_remJ): Likewise.
3466 * interpret.cc (continue1): Use divide subroutines to guarantee
3467 correct Java standard behaviour.
3468 Floating-point division should not abort; make it so.
3470 2000-03-29 Tom Tromey <tromey@cygnus.com>
3472 * configure: Rebuilt.
3473 * configure.in: Test against `libgcj_sjlj', not
3474 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3475 to be set even when using sjlj.
3477 2000-03-24 Andrew Haley <aph@cygnus.com>
3479 * Makefile.am: Add file addr2name.awk.
3480 * Makefile.in: Rebuilt.
3481 * addr2name.awk: New file.
3482 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3484 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3487 2000-03-22 Andrew Haley <aph@cygnus.com>
3489 * configure.host: Add -funwind-tables for IA64.
3490 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3491 * Makefile.in: Rebuilt.
3492 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3493 * sysdep/ia64.c: New file.
3494 * sysdep/ia64-frame.h: New file.
3495 * configure.in: Add sysdep/ia64.c for ia64.
3496 * configure: Rebuilt.
3498 2000-03-17 Andrew Haley <aph@cygnus.com>
3500 * java/lang/natString.cc: Remove `register' keyword.
3501 interpret.cc: ditto.
3503 2000-03-16 Andrew Haley <aph@cygnus.com>
3505 * configure.host (ia64): Enable interpreter.
3507 2000-03-14 Hans Boehm <boehm@acm.org>
3509 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3511 2000-03-14 Andrew Haley <aph@cygnus.com>
3513 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3516 2000-03-10 Andrew Haley <aph@cygnus.com>
3518 * java/lang/ieeefp.h: Import latest version from fdlibm.
3520 2000-03-14 Andrew Haley <aph@cygnus.com>
3522 * prims.cc (_Jv_ThrowSignal): New function.
3523 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3525 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3526 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3527 * include/ppc-signal.h: New file.
3529 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3531 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3532 * java/lang/natThread.java (initialize_native): Cast `data' to
3534 * gnu/gcj/RawData.java: Clarify documentation.
3536 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3537 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3538 `jarFile', not `jarFileURL'.
3540 2000-05-15 Andrew Haley <aph@cygnus.com>
3542 * include/ppc-signal.h: New file.
3544 2000-05-11 Tom Tromey <tromey@cygnus.com>
3546 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3547 file headers, don't include `size' in the skip call.
3549 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3551 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3552 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3554 (replace): Reimplemented. Fix javadoc.
3555 (reverse): Call ensureCapacity_unsynchronized().
3556 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3558 (replace): Calculate length for arraycopy() correctly.
3560 2000-05-09 Tom Tromey <tromey@cygnus.com>
3562 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3564 (insert(int,char[],int,int): New method.
3565 (delete): New method from Classpath.
3566 (deleteCharAt): Likewise.
3567 (substring): Likewise.
3568 (shared): No longer private.
3569 Added JavaDoc comments from Classpath.
3570 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3573 2000-05-07 Tom Tromey <tromey@cygnus.com>
3575 * Makefile.in: Rebuilt.
3576 * Makefile.am (LIBLINK): New macro.
3577 (libgcj_la_LINK): Use it.
3578 (libgcjawt_la_LINK): Likewise.
3580 2000-05-06 Tom Tromey <tromey@cygnus.com>
3582 * Makefile.in: Rebuilt.
3583 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3585 2000-05-05 Tom Tromey <tromey@cygnus.com>
3587 Fix for PR libgcj/220:
3588 * Makefile.in: Rebuilt.
3589 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3590 (jv_convert_LDFLAGS): Likewise.
3591 (libgcj_la_LDFLAGS): Likewise.
3592 (GCJLINK): New macro.
3593 (jv_convert_LINK): Use it.
3594 (gij_LINK): Likewise.
3595 (libgcj_la_LINK): New macro.
3596 (libgcjawt_la_LINK): Likewise.
3598 2000-05-04 Tom Tromey <tromey@cygnus.com>
3600 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3602 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3606 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3608 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3609 (_Jv_IsAssignableFrom): Ditto.
3610 (_Jv_IsInstanceOf): Ditto.
3611 (_Jv_CheckCast): Ditto.
3612 (_Jv_CheckArrayStore): Ditto.
3613 * java/lang/Class.h (_Jv_InitClass): Ditto.
3614 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3619 (_Jv_MonitorExit): Ditto.
3620 * boehm.cc (_Jv_MarkObj): Ditto.
3621 (_Jv_MarkObj): Ditto.
3622 (_Jv_MarkArray): Ditto.
3623 * prims.cc (_Jv_AllocObject): Ditto.
3624 (_Jv_NewObjectArray): Ditto.
3625 (_Jv_NewPrimArray): Ditto.
3626 (_Jv_Malloc): Ditto.
3627 (_Jv_Realloc): Ditto.
3628 (_Jv_MallocUnchecked): Ditto.
3634 2000-05-04 Tom Tromey <tromey@cygnus.com>
3636 * java/util/Locale.java (Locale): Don't explicitly check for
3638 * java/util/Hashtable.java (containsKey): Don't explicitly check
3641 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3643 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3645 * java/text/StringCharacterIterator.java
3646 (StringCharacterIterator): Don't check for null.
3647 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3649 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3650 check for null pointer.
3651 (leaveGroup): Likewise.
3652 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3654 (setData): Likewise.
3655 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3658 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3660 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3661 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3662 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3663 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3664 -rpath for in-gcc builds.
3665 * Makefile.in: Rebuilt.
3667 2000-04-28 Tom Tromey <tromey@cygnus.com>
3669 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3672 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3674 * libjava/java/lang/String.java (toString): Remove `final' hack.
3676 2000-04-05 Tom Tromey <tromey@cygnus.com>
3678 Runtime support for PR gcj/2:
3679 * prims.cc (_Jv_ThrowNullPointerException): New function.
3680 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3682 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3684 * prims.cc (_Jv_NewObjectArray): Fix typo.
3686 2000-04-26 Tom Tromey <tromey@cygnus.com>
3688 * Makefile.in: Rebuilt.
3689 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3691 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3693 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3696 2000-04-22 Anthony Green <green@cygnus.com>
3698 * include/jvm.h (__builtin_expect): Define as unused for now.
3699 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3703 (_Jv_MonitorExit): Ditto.
3704 * boehm.cc (_Jv_MarkObj): Ditto.
3705 (_Jv_MarkObj): Ditto.
3706 (_Jv_MarkArray): Ditto.
3707 (_Jv_AllocBytes): Ditto.
3708 * prims.cc (_Jv_AllocObject): Ditto.
3709 (_Jv_NewObjectArray): Ditto.
3710 (_Jv_NewPrimArray): Ditto.
3711 (_Jv_Malloc): Ditto.
3712 (_Jv_Realloc): Ditto.
3713 (_Jv_MallocUnchecked): Ditto.
3719 * include/Makefile.in: Rebuilt.
3720 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3722 2000-04-21 Tom Tromey <tromey@cygnus.com>
3724 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3725 Yet another new version from Classpath.
3727 Fix for PR libgcj/15:
3728 * java/util/natGregorianCalendar.cc (_REENTRANT,
3729 _POSIX_PTHREAD_SEMANTICS): Don't define.
3730 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3731 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3733 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3735 * configure: Rebuilt.
3736 * configure.in: If using POSIX threads, define _REENTRANT if
3737 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3738 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3740 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3741 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3742 version from Classpath.
3744 Fix for PR libgcj/213:
3745 * Makefile.in: Rebuilt.
3746 * Makefile.am (gij_SOURCES): Added gij.cc.
3747 (EXTRA_gij_SOURCES): Removed.
3748 (gij_LDADD): Removed gij.lo.
3749 (gij_DEPENDENCIES): Likewise.
3750 ($(gij_OBJECTS)): Depend on nat_headers.
3752 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3753 `setURL', not `url.set'.
3755 2000-04-20 Tom Tromey <tromey@cygnus.com>
3757 Fix for PR java.io/204:
3758 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3759 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3762 Fix for PR libgcj/212:
3763 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3764 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3765 * java/lang/Class.h (_Jv_word): Declare.
3767 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3769 2000-04-19 Tom Tromey <tromey@cygnus.com>
3771 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3772 doesn't have a loader.
3774 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3776 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3777 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3779 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3781 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3783 (available): Initialize `where' to prevent bogus compiler warning.
3785 2000-04-12 Tom Tromey <tromey@cygnus.com>
3787 * java/lang/natString.cc (intern): Temporarily disable finalizer
3790 * java/lang/natString.cc (unintern): Added `obj' argument.
3791 (intern): Register finalizer for string.
3792 * java/lang/String.java (unintern): Now static; added obj
3795 2000-04-11 Tom Tromey <tromey@cygnus.com>
3797 * java/util/Vector.java (VectorEnumeration): Now `final'.
3798 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3799 (HashtableEnumeration): Likewise.
3800 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3801 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3803 2000-04-10 Warren Levy <warrenl@cygnus.com>
3805 * java/io/ObjectStreamException.java: New file.
3806 * java/io/OptionalDataException.java: New file.
3807 * java/io/StreamCorruptedException.java: New file.
3808 * java/math/BigDecimal.java: New file.
3809 * java/sql/CallableStatement.java: New file.
3810 * java/sql/Connection.java: New file.
3811 * java/sql/DataTruncation.java: New file.
3812 * java/sql/DatabaseMetaData.java: New file.
3813 * java/sql/Date.java: New file.
3814 * java/sql/Driver.java: New file.
3815 * java/sql/DriverManager.java: New file.
3816 * java/sql/DriverPropertyInfo.java: New file.
3817 * java/sql/PreparedStatement.java: New file.
3818 * java/sql/ResultSet.java: New file.
3819 * java/sql/ResultSetMetaData.java: New file.
3820 * java/sql/SQLException.java: New file.
3821 * java/sql/SQLWarning.java: New file.
3822 * java/sql/Statement.java: New file.
3823 * java/sql/Time.java: New file.
3824 * java/sql/Timestamp.java: New file.
3825 * java/sql/Types.java: New file.
3826 * Makefile.am: Added above new files.
3827 * Makefile.in: Rebuilt.
3829 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3830 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3831 DatagramSocket constructor instead of null.
3833 2000-04-08 Anthony Green <green@cygnus.com>
3835 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3838 2000-04-08 Anthony Green <green@cygnus.com>
3840 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3841 (_Jv_MutexUnlock): Ditto.
3842 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3843 (_Jv_MutexUnlock): Ditto.
3845 2000-04-08 Anthony Green <green@cygnus.com>
3847 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3848 (ensureCapacity_unsynchronized): New private method.
3849 (append): Use ensureCapacity_unsynchronized.
3851 2000-04-08 Tom Tromey <tromey@cygnus.com>
3853 * Makefile.in: Rebuilt.
3854 * Makefile.am (awt_java_source_files): Added new files.
3855 * java/awt/IllegalComponentStateException.java: New file.
3856 * java/awt/ItemSelectable.java: New file.
3857 * java/awt/event/WindowEvent.java: Finished.
3858 * java/awt/event/TextEvent.java: Finished.
3859 * java/awt/event/ContainerEvent.java: New file.
3860 * java/awt/Component.java (getX, getY): New methods.
3861 * java/awt/event/PaintEvent.java: New file.
3862 * java/awt/event/MouseEvent.java: New file.
3863 * java/awt/ActiveEvent.java: New file.
3864 * java/awt/event/KeyEvent.java: Finished.
3865 * java/awt/event/ItemEvent.java: New file.
3866 * java/awt/Adjustable.java: New file.
3867 * java/awt/event/InputMethodEvent.java: New file.
3868 * java/awt/event/InputEvent.java: Finished.
3869 * java/awt/event/FocusEvent.java: New file.
3870 * java/awt/event/MouseMotionAdapter.java: New file.
3871 * java/awt/event/MouseAdapter.java: New file.
3872 * java/awt/event/KeyAdapter.java: New file.
3873 * java/awt/event/FocusAdapter.java: New file.
3874 * java/awt/event/ContainerAdapter.java: New file.
3875 * java/awt/event/ComponentEvent.java: Finished.
3876 * java/awt/event/AdjustmentEvent.java: New file.
3877 * java/awt/event/ComponentAdapter.java: New file.
3878 * java/awt/event/ActionEvent.java: Finished.
3879 * java/awt/event/MouseMotionListener.java: New file.
3880 * java/awt/event/MouseListener.java: New file.
3881 * java/awt/event/ItemListener.java: New file.
3882 * java/awt/event/InputMethodListener.java: New file.
3883 * java/awt/event/ContainerListener.java: New file.
3884 * java/awt/event/FocusListener.java: New file.
3885 * java/awt/event/ComponentListener.java: New file.
3886 * java/awt/event/AWTEventListener.java: New file.
3887 * java/awt/event/AdjustmentListener.java: New file.
3889 2000-04-08 Anthony Green <green@cygnus.com>
3891 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
3892 check when we have to.
3894 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
3897 * java/util/StringTokenizer.java: Minor optimization. Eliminates
3900 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
3901 inline hasMoreElements.
3903 2000-04-05 Tom Tromey <tromey@cygnus.com>
3905 * configure: Rebuilt.
3906 * configure.in: Recognize --enable-java-awt.
3907 (AWT): New conditional.
3908 * Makefile.in: Rebuilt.
3909 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
3911 (libgcjawt_la_SOURCES): New macro.
3912 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3913 (libgcjawt_la_DEPENDENCIES): Likewise.
3914 (libgcjawt_la_LIBADD): Likewise.
3915 (libgcjawt_la_LDFLAGS): Likewise.
3916 (libgcj.zip): Depend on cond_java_awt_source_files
3917 (cond_awt_java_source_files): New macro.
3918 (MOSTLYCLEANFILES): Added awto_files.
3919 (awto_files): New macro. Use where javao_files used.
3920 (nat_headers): Use cond_awt_java_source_files.
3922 2000-04-04 Tom Tromey <tromey@cygnus.com>
3924 * Makefile.in: Rebuilt.
3925 * Makefile.am (awt_java_source_files): Added AWTException.java.
3926 * java/awt/AWTException.java: New file.
3928 2000-04-03 Tom Tromey <tromey@cygnus.com>
3930 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
3931 commentary from Alex.
3933 * Makefile.in: Rebuilt.
3934 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
3937 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
3939 * configure: Rebuilt.
3940 * configure.in: Add --disable-jvmpi.
3941 * include/config.h.in: Rebuilt.
3942 * acconfig.h: Add ENABLE_JVMPI.
3944 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
3945 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
3946 (_Jv_JVMPI_Notify_THREAD_END): New define.
3947 (_Jv_JVMPI_Notify_THREAD_END): New define.
3948 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
3949 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3950 (_Jv_JVMPI_Notify_THREAD_END): Declare.
3952 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
3955 * java/lang/natThread.cc: Include JVMPI headers if necessary.
3956 (finish_): Generate JVMPI thread end events.
3957 (run_): Generate JVMPI thread start events.
3958 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
3959 preloaded JNI library.
3960 Include JVMPI headers if necessary.
3961 (run): Generate JVMPI thread start events.
3963 * boehm.cc: Define GC_disable and GC_enable.
3964 (_Jv_DisableGC): New function.
3965 (_Jv_EnableGC): New function.
3966 (disable_gc_mutex): Declare.
3967 * nogc.cc (_Jv_DisableGC): New function.
3968 (_Jv_EnableGC): New function.
3970 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
3971 (_Jv_JVMPI_Interface): Define.
3972 (jvmpiEnableEvent): New function.
3973 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
3975 * include/jvmpi.h: New file.
3977 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
3979 * Makefile.in: New #defines and friends for Thread.h.
3980 * Makefile.am: Ditto.
3981 * posix-threads.cc: (struct starter): Remove `object'.
3982 (_Jv_CondWait): Use interruptable condition variables and new
3983 recursive mutexes. New return codes on interrupt or non-ownership
3985 (_Jv_CondNotify): Ditto.
3986 (_Jv_CondNotifyAll): Ditto.
3987 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
3988 the target thread by signaling its wait condition.
3989 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
3990 not the starter struct. Initialize wait_mutex and wait_cond.
3991 (_Jv_MutexLock): New recursive mutex implementation. Moved from
3993 (_Jv_MutexUnlock): Ditto.
3994 (really_start): Set info->data->thread from pthread_self() to work
3995 around a race condition. Destroy wait_mutex and wait_cond when run()
3997 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
3998 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4000 startable_flag: New private field.
4001 (Thread): Initialize `startable_flag'.
4002 (toString): Check for null thread group.
4003 * java/lang/natThread.cc: (struct natThread): New fields
4004 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4005 (class locker): Removed.
4006 (initialize_native): Initialize `join_cond' and `join_mutex'.
4007 (interrupt): Now just calls _Jv_ThreadInterrupt().
4008 (join): Simplified. Just wait on the target thread's join condition.
4009 (finish_): Remove join list code. Unset thread group. Signal
4010 potential joiners by notifying the dying threads join_cond.
4011 (start): Check for illegal restarts.
4012 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4014 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4015 #defines and #ifdefs.
4016 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4017 `wait_mutex', `next'.
4018 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4019 directly mapping to pthread_cond_t.
4020 (struct _Jv_Mutex_t): New recursive implementation.
4021 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4022 _Jv_HaveCondDestroy: Never define this for posix-threads.
4023 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4024 (_Jv_CondNotifyAll): Ditto.
4025 (_Jv_MutexLock): Ditto.
4026 (_Jv_MutexUnlock): Ditto.
4027 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4028 (_Jv_MutexDestroy): Ditto.
4029 (_Jv_CondDestroy): Removed.
4030 (_Jv_PthreadGetMutex): Removed.
4031 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4032 error. Add a FIXME about this.
4033 (_Jv_CondNotifyAll): Ditto.
4034 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4035 _JV_NOT_OWNER on other errors. Add FIXME.
4037 2000-03-26 Tom Tromey <tromey@cygnus.com>
4039 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4041 (call): Don't throw exception here.
4043 2000-03-26 Tom Tromey <tromey@cygnus.com>
4045 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4046 * interpret.cc: Use SIZEOF_VOID_P.
4047 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4048 (_Jv_loadLong): Likewise.
4049 (_Jv_storeDouble): Likewise.
4050 * configure: Rebuilt.
4051 * configure.in: Check size of void*.
4053 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4055 2000-03-26 Hans Boehm <boehm@acm.org>
4057 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4058 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4060 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4061 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4062 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4063 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4065 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4066 (FFI_RAW_SIZE): Likewise.
4067 (_Jv_InterpMethod::ncode): Use them.
4068 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4069 STORED): Define differently on a 64 bit machine.
4070 (continue1): Use ffi_java_raw_call when appropriate.
4072 2000-03-24 Warren Levy <warrenl@cygnus.com>
4074 * java/math/BigInteger.java(divide): Handle the special case when
4075 dividing by 1 and the high bit of the dividend is set.
4076 (setShiftRight): Handle case when count == 0.
4078 2000-03-24 Warren Levy <warrenl@cygnus.com>
4080 * java/awt/Font.java(isBold): Fix syntax error.
4082 * java/awt/Frame.java(postEvent): ditto.
4083 * java/awt/Menu.java(postEvent): ditto.
4084 * java/awt/MenuBar.java(postEvent): ditto.
4085 * java/awt/Toolkit.java(init): Included a stub.
4087 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4089 * java/awt/Event.java: Add all the event type constants.
4090 (Event): Implemented constructors.
4091 (controlDown): Implemented.
4092 (metaDown): Implemented.
4093 (paramString): Stubbed.
4094 (shiftDown): Implemented.
4095 (toString): Implemented.
4096 (translate): Implemented.
4098 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4100 * java/lang/natClass.cc (isInstance): Initialize `this'.
4101 (isAssignableFrom): Initialize `this' and `klass'.
4102 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4103 implemented by any loaded class, so return false.
4104 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4105 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4107 2000-03-19 Warren Levy <warrenl@cygnus.com>
4109 * java/awt/Color.java: Specified java.io for Serializable.
4110 * java/awt/Toolkit.java: Imported java.net.URL.
4112 2000-03-19 Warren Levy <warrenl@cygnus.com>
4114 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4116 2000-03-16 Warren Levy <warrenl@cygnus.com>
4118 * java/awt/Color.java: New file.
4119 * java/awt/Graphics.java: New file.
4120 * java/awt/Image.java: New file.
4121 * java/awt/Paint.java: New file.
4122 * java/awt/PaintContext.java: New file.
4123 * java/awt/Transparency.java: New file.
4124 * java/util/Collection.java: New file.
4125 * java/util/Comparator.java: New file.
4126 * java/util/Iterator.java: New file.
4127 * java/util/List.java: New file.
4128 * java/util/ListIterator.java: New file.
4129 * Makefile.am: Added above new files.
4130 * Makefile.in: Rebuilt.
4132 * java/awt/Font.java (PLAIN): New field.
4134 (ITALIC): New field.
4135 (ROMAN_BASELINE): New field.
4136 (CENTER_BASELINE): New field.
4137 (HANGING_BASELINE): New field.
4141 (pointSize): New field.
4142 (Font): Implemented constructor.
4143 (isPlain): Implemented method.
4144 (isBold): Implemented method.
4145 (isItalic): Implemented method.
4146 (getName): Implemented method.
4147 (getStyle): Implemented method.
4148 (getSize): Implemented method.
4149 (getSize2D): Implemented method.
4151 * java/awt/Frame.java (getFont): Stubbed.
4152 (postEvent): Stubbed.
4154 * java/awt/Menu.java (postEvent): Stubbed.
4155 * java/awt/MenuBar.java (getFont): Stubbed.
4156 (postEvent): Stubbed.
4157 * java/awt/Toolkit.java (getImage): Added abstract method.
4159 2000-03-15 Tom Tromey <tromey@cygnus.com>
4161 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4163 * prims.cc (win32_exception_handler): Reformatted.
4165 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4166 (_Jv_HaveMutexDestroy): Likewise.
4168 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4170 * java/io/natFileDescriptorWin32.cc: New file.
4171 * java/io/natFileWin32.cc: New file.
4172 * java/net/natInetAddress.cc: Added conditional inclusion of
4173 Windows / Winsock headers.
4174 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4175 inclusion of Windows / Winsock headers.
4176 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4177 Windows / Winsock headers.
4178 * include/win32-signal.h: New file.
4179 * include/win32-threads.h: New file.
4180 * win32-threads.cc: New file.
4181 * exception.cc (win32_get_restart_frame): New function.
4182 * prims.cc (win32_exception_handler): New function.
4183 (main_init) Performs Winsock initialisation.
4184 (main_init) Installs exeception handler.
4186 2000-03-14 Tom Tromey <tromey@cygnus.com>
4188 * jni.cc (mangled_name): Fixed assertion.
4189 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4190 turned assert into actual failure.
4192 2000-03-09 Warren Levy <warrenl@cygnus.com>
4194 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4195 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4196 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4198 2000-03-09 Warren Levy <warrenl@cygnus.com>
4200 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4201 * java/security/DigestException.java: New file.
4202 * java/security/GeneralSecurityException.java: New file.
4203 * java/security/InvalidAlgorithmParameterException.java: New file.
4204 * java/security/InvalidKeyException.java: New file.
4205 * java/security/InvalidParameterException.java: New file.
4206 * java/security/Key.java: New file.
4207 * java/security/KeyException.java: New file.
4208 * java/security/KeyPair.java: New file.
4209 * java/security/KeyPairGenerator.java: New file.
4210 * java/security/KeyPairGeneratorSpi.java: New file.
4211 * java/security/NoSuchProviderException.java: New file.
4212 * java/security/PrivateKey.java: New file.
4213 * java/security/Provider.java: New file.
4214 * java/security/PublicKey.java: New file.
4215 * java/security/SecureRandom.java: New file.
4216 * java/security/Security.java: New file.
4217 * java/security/Signature.java: New file.
4218 * java/security/SignatureException.java: New file.
4219 * java/security/interfaces/DSAKey.java: New file.
4220 * java/security/interfaces/DSAParams.java: New file.
4221 * java/security/interfaces/DSAPrivateKey.java: New file.
4222 * java/security/interfaces/DSAPublicKey.java: New file.
4223 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4224 * java/security/interfaces/RSAPrivateKey.java: New file.
4225 * java/security/interfaces/RSAPublicKey.java: New file.
4226 * java/security/spec/AlgorithmParameterSpec.java: New file.
4227 * java/security/spec/InvalidKeySpecException.java: New file.
4228 * java/security/spec/InvalidParameterSpecException.java: New file.
4229 * java/security/spec/KeySpec.java: New file.
4230 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4231 * java/security/spec/RSAPrivateKeySpec.java: New file.
4232 * java/security/spec/RSAPublicKeySpec.java: New file.
4233 * Makefile.am: Added above java.security files.
4234 * Makefile.in: Rebuilt.
4236 * java/security/MessageDigest.java: Rewritten.
4237 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4239 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4243 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4245 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4246 _Jv_PrepareConstantTimeTables.
4247 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4248 classes should have an IDT, so don't return if klass is an array
4251 2000-03-08 Tom Tromey <tromey@cygnus.com>
4253 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4254 of `void' to be created.
4256 2000-03-08 Warren Levy <warrenl@cygnus.com>
4258 * java/math/BigInteger.java(signum): Handle zero properly.
4260 2000-03-07 Tom Tromey <tromey@cygnus.com>
4262 * All files: Updated copyright information.
4263 * COPYING: New file.
4264 * COPYING.LIB: Removed.
4265 * LIBGCJ_LICENSE: We now use GPL + special exception.
4267 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4269 * resolve.cc (_Jv_SearchMethodInClass): New function.
4270 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4271 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4273 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4275 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4276 (struct _Jv_ifaces): New declaration.
4277 JV_CLASS: New macro definition.
4278 (getComponentType): Relocate below isArray() for inlining.
4279 (getModifiers): Declare `inline'.
4280 (getSuperclass): Ditto.
4282 (isPrimitive): Ditto.
4283 (_Jv_IsAssignableFrom): New prototype.
4284 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4286 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4287 Check for JV_STATE_DONE before invoking initializeClass().
4288 (_Jv_PrepareConstantTimeTables): New prototype.
4289 (_Jv_GetInterfaces): Ditto.
4290 (_Jv_GenerateITable): Ditto.
4291 (_Jv_GetMethodString): Ditto.
4292 (_Jv_AppendPartialITable): Ditto.
4293 (_Jv_FindIIndex): Ditto.
4294 depth, ancestors, idt: New class fields.
4296 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4297 inline function `_Jv_IsAssignableFrom'. Use that function.
4298 (isInstance): Declare `inline'.
4299 (initializeClass): Get lock on class before checking `state'. Unlock
4300 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4302 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4303 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4304 class->depth and ancestor table.
4305 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4306 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4307 _Jv_IsAssignableFrom.
4308 (_Jv_CheckArrayStore): Ditto.
4309 (_Jv_LookupInterfaceMethodIdx): New function.
4310 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4311 (_Jv_PrepareConstantTimeTables): New function.
4312 (_Jv_IndexOf): Ditto.
4313 (_Jv_GetInterfaces): Ditto.
4314 (_Jv_GenerateITable): Ditto.
4315 (_Jv_GetMethodString): Ditto.
4316 (_Jv_AppendPartialITable): Ditto.
4317 iindex_mutex, iindex_mutex_initialized: New static fields.
4318 (_Jv_FindIIndex): New function.
4320 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4322 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4323 (_Jv_CheckArrayStore): Ditto.
4324 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4325 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4326 Moved to gcj/array.h.
4327 (_Jv_Realloc): New function.
4329 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4331 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4332 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4333 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4334 JvNewDoubleArray): Implementations moved from prims.cc and
4337 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4339 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4341 2000-03-06 Tom Tromey <tromey@cygnus.com>
4343 * jni.cc (MARK_NONE): New define.
4344 (MARK_USER): Likewise.
4345 (MARK_SYSTEM): Likewise.
4346 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4348 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4349 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4350 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4351 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4353 (call): Use MARK_SYSTEM.
4354 (_Jv_GetJNIEnvNewFrame): New function.
4355 (_Jv_LookupJNIMethod): New function.
4356 (_Jv_JNI_PopSystemFrame): New function.
4357 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4359 2000-03-05 Tom Tromey <tromey@cygnus.com>
4361 Fix for PR libgcj/43:
4362 * include/Makefile.in: Rebuilt.
4363 * include/Makefile.am (include_HEADERS): New define.
4365 2000-03-05 Anthony Green <green@redhat.com>
4367 * gcj/javaprims.h ("Java"): Remove FirstThread.
4369 * configure.host: Fix __NO_MATH_INLNES botch.
4371 * Makefile.in: Rebuilt.
4372 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4373 (gnu/gcj/runtime/FirstThread.h): Moved.
4374 (ordinary_java_source_files): Move FirstThread.java.
4375 * prims.cc: Deal with FirstThread movement.
4377 (_Jv_RunMain): Ditto.
4379 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4380 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4382 2000-03-05 Warren Levy <warrenl@cygnus.com>
4384 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4385 Handle null addresses.
4387 2000-03-04 Anthony Green <green@redhat.com>
4389 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4392 2000-03-04 Anthony Green <green@redhat.com>
4394 * configure: Rebuilt.
4395 * configure.in (ZLIBTESTSPEC): New macro.
4396 (GCTESTSPEC): New macro.
4397 (LIBGCJTESTSPEC): New macro.
4398 * libgcj-test.spec.in: New file.
4400 2000-03-02 Tom Tromey <tromey@cygnus.com>
4402 * include/java-interp.h: Don't include MethodInvocation.h.
4403 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4404 * Makefile.in: Rebuilt.
4405 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4406 (ordinary_java_source_files): Don't mention
4407 MethodInvocation.java.
4408 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4409 * interpret.cc (MethodInvocation::continue1): Removed.
4410 (run): Handle exceptions here.
4411 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4413 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4415 (defineClass2): Removed.
4417 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4419 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4421 (hack_call): Removed.
4423 * java/lang/Class.h (Class): Removed hackRunInitializers,
4425 * java/lang/natClass.cc (hackRunInitializers): Removed.
4426 (initializeClass): Catch exceptions here.
4427 Include ExceptionInInitializerError.h.
4428 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4431 * java/lang/Object.h (Object): Don't mention hack12_6.
4432 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4434 * java/lang/Object.java (hack12_6): Removed.
4436 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4437 (start): Use run_, not run__.
4438 * java/lang/Thread.java (run_): Renamed from run__; old run_
4441 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4442 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4443 (_Jv_JNI_DefineClass): Likewise.
4444 (_Jv_JNI_ThrowNew): Likewise.
4445 (_Jv_JNI_AllocObject): Likewise.
4446 (_Jv_JNI_GetAnyMethodID): Likewise.
4447 (_Jv_JNI_CallAnyMethodV): Likewise.
4448 (_Jv_JNI_CallAnyMethodA): Likewise.
4449 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4450 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4451 (_Jv_JNI_GetAnyFieldID): Likewise.
4452 (_Jv_JNI_NewString): Likewise.
4453 (_Jv_JNI_NewStringUTF): Likewise.
4454 (_Jv_JNI_GetStringUTFChars): Likewise.
4455 (_Jv_JNI_NewObjectArray): Likewise.
4456 (_Jv_JNI_NewPrimitiveArray): Likewise.
4457 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4458 (_Jv_JNI_GetStringRegion): Likewise.
4459 (_Jv_JNI_GetStringUTFRegion): Likewise.
4460 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4461 (_Jv_JNI_MonitorEnter): Likewise.
4462 (_Jv_JNI_MonitorExit): Likewise.
4463 (_Jv_JNI_ToReflectedField): Likewise.
4464 (_Jv_JNI_ToReflectedMethod): Likewise.
4465 (_Jv_JNI_RegisterNatives): Likewise.
4466 (_Jv_JNI_AttachCurrentThread): Likewise.
4467 (_Jv_JNI_DestroyJavaVM): Likewise.
4469 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4471 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4472 error caused by the incorrect casting of a long to an int.
4474 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4476 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4477 SIGSEV caused by use of the wrong instance variable.
4479 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4481 * java/io/File.java (File(String, String)): For dirPath, treat an
4482 empty String the same as `null'.
4484 2000-02-26 Anthony Green <green@cygnus.com>
4486 * gnu/gcj/io/MimeTypes.java: Test for null.
4488 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4489 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4491 * java/net/URLConnection.java: Update copyright notice.
4493 2000-02-25 Tom Tromey <tromey@cygnus.com>
4495 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4498 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4500 * java/net/URLConnection.java (initializeDateFormats): New
4502 (getHeaderFieldDate): Call initializeDateFormats if required.
4503 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4505 Fix for PR libgcj/38.
4507 2000-02-24 Warren Levy <warrenl@cygnus.com>
4509 * java/math/BigInteger.java(ival): Made private.
4513 2000-02-20 Anthony Green <green@cygnus.com>
4515 * Makefile.in: Rebuilt.
4516 * Makefile.am (ordinary_java_source_files): Add
4517 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4519 * scripts/MakeDefaultMimeTypes.java: New file.
4520 * scripts/mime.types: New file.
4521 * scripts/classes.pl: Moved from top level.
4522 * classes.pl: Moved to scripts directory.
4524 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4526 * gnu/gcj/io/MimeTypes.java: New file.
4527 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4529 2000-02-20 Tom Tromey <tromey@cygnus.com>
4531 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4533 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4535 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4538 2000-02-18 Tom Tromey <tromey@cygnus.com>
4540 * include/jvm.h (_Jv_GetJavaVM): Declare.
4541 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4542 (_Jv_MethodBase::get_method): New method.
4543 (_Jv_JNIMethod::set_function): New method.
4544 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4545 (_Jv_JNI_RegisterNatives): New function.
4546 (_Jv_JNIFunctions): Updated for new functions.
4547 (_Jv_GetJavaVM): New function.
4548 (_Jv_JNI_GetJavaVM): Use it. Now static.
4549 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4550 is already a Java thread but does not have a JNIEnv yet.
4552 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4555 2000-02-17 Tom Tromey <tromey@cygnus.com>
4557 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4560 2000-02-16 Tom Tromey <tromey@cygnus.com>
4562 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4564 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4565 (_Jv_JNI_NewObject): Likewise.
4566 (_Jv_JNI_NewObjectA): Likewise.
4567 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4568 as "return" type to _Jv_CallAnyMethodA.
4569 (_Jv_JNI_CallAnyMethodA): Likewise.
4570 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4572 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4575 2000-02-15 Tom Tromey <tromey@cygnus.com>
4577 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4579 (init_cif): Added `rtype_p' argument.
4580 * include/java-interp.h (class _Jv_MethodBase): Added
4582 (class _Jv_InterpMethod): Removed args_raw_size.
4583 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4584 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4585 class pointer as well as the ordinary arguments.
4587 * jni.cc (mangled_name): Skip leading `(' in signature.
4589 * jni.cc (add_char): Added missing `else'.
4591 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4594 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4598 * java/lang/natRuntime.cc (_load): Include library path with
4601 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4604 * java/lang/natThread.cc (dumpStack): Removed.
4605 * java/lang/Thread.java (dumpStack): Implemented.
4607 2000-02-15 Tom Tromey <tromey@cygnus.com>
4609 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4610 with `lib' for loadLibrary. Fixes PR gcj/150.
4612 2000-02-14 Warren Levy <warrenl@cygnus.com>
4614 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4616 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4620 (modPow): Rewritten to not use the naive, slow, brute force approach.
4621 (isProbablePrime): Implemented.
4622 (testBit): Implemented.
4623 (flipBit): Implemented.
4624 (getLowestSetBit): Implemented.
4626 2000-02-16 Anthony Green <green@redhat.com>
4628 * configure.host: Use the same options for i386 and i486 as we do
4631 2000-02-12 Tom Tromey <tromey@cygnus.com>
4633 * java/io/File.java (createTempFile): Use low bits from counter,
4636 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4638 * THANKS: More thanks.
4640 2000-02-11 Tom Tromey <tromey@cygnus.com>
4642 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4643 astore instruction. From Hans Boehm.
4645 2000-02-11 Warren Levy <warrenl@cygnus.com>
4647 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4648 (BigInteger(String)): New constructor.
4649 (not): Rewritten using version from Kawa's BitOps class.
4650 (valueOf): New private methods from Kawa's BitOps class.
4657 (andNot): Implemented.
4658 (clearBit): Implemented.
4659 (setBit): Implemented.
4660 (bitCount): Implemented.
4661 (toByteArray): Implemented.
4663 2000-02-11 Tom Tromey <tromey@cygnus.com>
4665 * java/io/File.java (nextValue): Now synchronized.
4667 2000-02-10 Tom Tromey <tromey@cygnus.com>
4669 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4670 * java/io/FileDescriptor.java (EXCL): New static field.
4671 * java/io/File.java (tmpdir): New static field.
4672 (createTempFile): New method.
4673 (nextValue): New method.
4674 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4677 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4678 (jboolean): Declare as an attributed int, not a bool.
4679 (_Jv_func): Declare differently for C.
4681 * gnu/gcj/jni/natNativeThread.cc: New file.
4682 * gnu/gcj/jni/NativeThread.java: New file.
4683 * java/lang/Thread.java (data): Now a RawData.
4684 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4686 * Makefile.in: Rebuilt.
4687 * Makefile.am (java/lang/Thread.h): New target.
4688 (ordinary_java_source_files): Added NativeThread.java.
4689 (nat_source_files): Added natNativeThread.cc.
4690 * java/lang/natThread.cc: Include <jni.h>
4691 (struct natThread): Added `jni_env' field.
4692 (_Jv_GetCurrentJNIEnv): New function.
4693 (_Jv_SetCurrentJNIEnv): Likewise.
4694 (initialize_native): Initialize jni_env.
4696 * jni.cc (ThreadGroupClass): New define.
4697 (_Jv_JNI_InvokeFunctions): New structure.
4698 (JNI_GetCreatedJavaVMs): New function.
4699 (the_vm): New global.
4700 (JNI_GetDefaultJavaVMInitArgs): New function.
4701 Include NativeThread.h.
4702 (NativeThreadClass): New define.
4703 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4704 (_Jv_JNI_DestroyJavaVM): New function.
4705 (_Jv_JNI_AttachCurrentThread): New function.
4706 (_Jv_JNI_DetachCurrentThread): New function.
4707 (_Jv_JNI_GetEnv): New function.
4708 (JNI_CreateJavaVM): New function.
4709 (_Jv_JNI_GetJavaVM): New function.
4710 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4711 * include/jni.h (JavaVMAttachArgs): New structure.
4712 (JNI_EDETACHED): New define.
4713 (JNI_EVERSION): Likewise.
4714 (JavaVM): Define properly.
4715 (struct JNIInvokeInterface): New structure.
4716 (class _Jv_JavaVM): New class.
4717 (JNI_OnLoad, JNI_OnUnload): Declare.
4718 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4719 JNI_GetCreatedJavaVMs): Declare.
4720 (JavaVMInitArgs): New typedef.
4721 (JavaVMOption): Likewise.
4722 (JNI_ERR): New define.
4725 2000-02-10 Andrew Haley <aph@cygnus.com>
4727 * interpret.cc: Don't include fdlibm.h.
4728 Replace #if with #ifdef throughout.
4729 Declare extern __ieee754_fmod.
4730 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4732 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4733 Search class hierarchy for superclass vtable.
4735 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4736 off the end of a pointer list.
4738 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4742 2000-02-09 Tom Tromey <tromey@cygnus.com>
4744 * java/lang/natRuntime.cc (_load): Call add_library.
4745 (loadLibraryInternal): Likewise.
4747 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4748 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4749 (Output_iconv::finalize): Likewise.
4751 2000-02-08 Tom Tromey <tromey@cygnus.com>
4753 * java/util/Properties.java (setProperty): New method.
4754 (store): New method.
4756 2000-02-07 Tom Tromey <tromey@cygnus.com>
4758 * java/lang/Runtime.java (_load): Declare.
4759 (load, loadLibrary): Wrote in terms of _load.
4760 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4762 (loadLibrary): Likewise.
4764 (_load): New method.
4765 (loadLibrary, load): Removed.
4767 * jni.cc (ThrowableClass): New define.
4768 (_Jv_JNI_Throw): Check argument.
4769 (_Jv_JNI_ThrowNew): Likewise.
4770 (wrap_value): Don't wrap object if it is NULL.
4771 (_Jv_JNI_DefineClass): Use wrap_value.
4772 (_Jv_JNI_FindClass): Likewise.
4773 (_Jv_JNI_GetSuperclass): Likewise.
4774 (_Jv_JNI_ExceptionOccurred): Likewise.
4775 (_Jv_JNI_AllocObject): Likewise.
4776 (_Jv_JNI_GetObjectClass): Likewise.
4777 (_Jv_JNI_NewString): Likewise.
4778 (_Jv_JNI_NewStringUTF): Likewise.
4779 (_Jv_JNI_NewObjectArray): Likewise.
4780 (_Jv_JNI_GetObjectArrayElement): Likewise.
4781 (_Jv_JNI_NewPrimitiveArray): Likewise.
4782 (_Jv_JNI_ToReflectedField): Likewise.
4783 (_Jv_JNI_ToReflectedMethod): Likewise.
4784 (_Jv_JNI_AllocObject): Check argument.
4785 (_Jv_JNI_NewObjectV): Likewise.
4786 (_Jv_JNI_NewObject): Likewise.
4787 (_Jv_JNI_NewObjectA): Likewise.
4788 (_Jv_JNI_GetObjectClass): Likewise.
4789 (_Jv_JNI_GetField): Likewise.
4790 (_Jv_JNI_SetField): Likewise.
4792 * interpret.cc (PUSHL): Don't use expression statement.
4797 * jni.cc (add_char): Conditional on INTERPRETER.
4798 (mangled_name): Likewise.
4800 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4802 (class _Jv_JNIMethod): Likewise.
4804 2000-02-04 Warren Levy <warrenl@cygnus.com>
4806 * Makefile.am: Added MPN.java and BigInteger.java.
4807 * Makefile.in: Rebuilt.
4808 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4810 * java/math/BigInteger.java: New file. Based primarily on
4811 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4813 2000-02-04 Tom Tromey <tromey@cygnus.com>
4815 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4817 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4818 if the method is native.
4819 * resolve.cc (ncode): Don't handle native methods.
4820 (_Jv_JNIMethod::ncode): New method.
4821 (_Jv_PrepareClass): Handle native methods.
4822 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4823 Include AbstractMethodError.h.
4824 (add_char): New function.
4825 (mangled_name): Likewise.
4826 * include/java-interp.h (class _Jv_JNIMethod): New class.
4827 (class _Jv_MethodBase): New class.
4828 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4829 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4832 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4833 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4834 libraries): New globals.
4835 (add_library): New function.
4836 (_Jv_FindSymbolInExecutable): New function.
4838 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4841 2000-02-04 Andrew Haley <aph@cygnus.com>
4843 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4844 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4845 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4846 printStackTrace to printRawStackTrace.
4848 2000-02-03 Tom Tromey <tromey@cygnus.com>
4850 * java/util/Calendar.java (toString): New method.
4851 * java/util/SimpleTimeZone.java (clone): New method.
4852 (toString): New method.
4853 * java/util/TimeZone.java (clone): New method.
4854 * java/text/SimpleDateFormat.java (clone): New method.
4855 * java/text/NumberFormat.java (clone): New method.
4856 (equals): New method.
4857 * java/text/Format.java (clone): New method.
4858 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4860 (clone): New method.
4861 * java/text/DateFormat.java (clone): New method.
4862 * java/text/Collator.java (clone): New method.
4864 2000-02-03 Tom Tromey <tromey@cygnus.com>
4866 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
4869 2000-02-01 Tom Tromey <tromey@cygnus.com>
4871 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4872 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
4873 constructing the closure if the function is native.
4874 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
4875 a template function, #if'd out, or static.
4876 Include <java-interp.h>.
4878 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4880 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
4882 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
4883 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
4885 (wrap_value): New function.
4886 (_Jv_JNI_CallAnyMethodV): Use it.
4887 (_Jv_JNI_CallAnyMethodA): Likewise.
4888 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
4889 (_Jv_JNI_GetStaticField): Likewise.
4891 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4892 (_Jv_JNI_GetStaticField): Likewise.
4894 2000-01-31 Tom Tromey <tromey@cygnus.com>
4896 * prims.cc (_Jv_MallocUnchecked): New function.
4897 (main_init): Call _Jv_JNI_Init.
4898 * include/jvm.h (_Jv_MallocUnchecked): Declare.
4899 (_Jv_JNI_Init): Declare.
4900 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
4902 (_Jv_JNI_NewGlobalRef): New function.
4903 (_Jv_JNI_DeleteGlobalRef): New function.
4904 (_Jv_JNI_DeleteLocalRef): New function.
4905 (_Jv_JNI_conversion_call): Initialize and clear local reference
4907 (_Jv_JNI_NewLocalRef): New function.
4908 (struct _Jv_JNI_LocalFrame): New structure.
4909 (_Jv_JNI_PushLocalFrame): New function.
4910 (_Jv_JNI_EnsureLocalCapacity): New function.
4911 (FRAME_SIZE): New define.
4912 (_Jv_JNI_GetStringChars): Mark string, not characters.
4913 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
4914 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
4915 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
4917 (_Jv_JNI_DefineClass): Make return value a local ref.
4918 (_Jv_JNI_FindClass): Likewise.
4919 (_Jv_JNI_GetSuperclass): Likewise.
4920 (_Jv_JNI_ExceptionOccurred): Likewise.
4921 (_Jv_JNI_AllocObject): Likewise.
4922 (_Jv_JNI_GetObjectClass): Likewise.
4923 (_Jv_JNI_CallAnyMethodV): Likewise.
4924 (_Jv_JNI_NewString): Likewise.
4925 (_Jv_JNI_NewStringUTF): Likewise.
4926 (_Jv_JNI_NewObjectArray): Likewise.
4927 (_Jv_JNI_GetObjectArrayElement): Likewise.
4928 (_Jv_JNI_ToReflectedField): Likewise.
4929 (_Jv_JNI_ToReflectedMethod): Likewise.
4930 (_Jv_JNIFunctions): Updated table for new functions.
4931 (_Jv_JNI_Init): New function.
4932 (mark_for_gc): Wrote.
4933 (unmark_for_gc): Wrote.
4934 * include/jni.h (struct JNINativeInterface): Removed name from
4935 PopLocalFrame parameter.
4936 (class _Jv_JNIEnv): Added `locals' field.
4938 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
4940 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
4943 2000-01-30 Tom Tromey <tromey@cygnus.com>
4945 * include/config.h.in: Rebuilt.
4946 * acconfig.h (HAVE_ICONV): Define.
4947 * configure: Rebuilt.
4948 * configure.in: Check for `iconv' function.
4949 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
4950 no specific encoder exists.
4951 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
4952 no specific encoder exists.
4953 * Makefile.in: Rebuilt.
4954 * Makefile.am (convert_source_files): Mention Input_iconv.java and
4956 (nat_source_files): Added natIconv.cc.
4957 * gnu/gcj/convert/natIconv.cc: New file.
4958 * gnu/gcj/convert/Input_iconv.java: New file.
4959 * gnu/gcj/convert/Output_iconv.java: New file.
4961 2000-01-28 Tom Tromey <tromey@cygnus.com>
4963 * Makefile.in: Rebuilt.
4964 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
4966 2000-01-26 Tom Tromey <tromey@cygnus.com>
4968 * gcj/method.h (JvNumMethods): Moved from Class.h.
4969 (JvGetFirstMethod): Likewise.
4970 * java/lang/Class.h (Object): Updated decl of
4971 _Jv_JNI_ToReflectedField.
4972 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
4973 * Makefile.in: Rebuilt.
4974 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
4975 argument of _Jv_JNI_ToReflectedField.
4976 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
4978 (java/lang/reflect/Method.h): Likewise.
4979 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
4981 (jweak): New typedef.
4982 (struct JNINativeInterface): Correctly declare remaining entries.
4983 * jni.cc: Include Class.h, ClassLoader.h.
4984 (_Jv_JNI_FindClass): New function.
4985 (_Jv_JNI_DefineClass): New function.
4986 (_Jv_JNI_conversion_call): New function.
4987 (_Jv_JNI_FindClass): Use current class loader to find class.
4988 (_Jv_JNI_ExceptionCheck): New function.
4989 (_Jv_JNI_FromReflectedField): Now static.
4990 (MethodClass): New define.
4991 (_Jv_JNI_FromReflectedMethod): New function.
4992 (_Jv_JNI_ToReflectedMethod): Likewise.
4994 (_Jv_JNI_IsAssignableFrom): Renamed.
4995 (_Jv_JNI_GetStringRegion): New function.
4996 Include StringIndexOutOfBoundsException.h.
4997 (_Jv_JNI_GetStringUTFRegion): New function.
4998 (_Jv_JNIFunctions): Updated for new functions.
4999 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5000 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5001 (_Jv_JNI_GetStringCritical): New function.
5002 (_Jv_JNI_ReleaseStringCritical): Likewise.
5003 (get_throwable): Removed.
5004 (GCJ_JV_JNIENV_FRIEND): Removed.
5005 (__GCJ_JNI_IMPL__): Define.
5008 * resolve.cc (get_ffi_type_from_signature): Handle case where
5011 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5013 * interpret.cc (run): Don't call println.
5014 Don't include PrintStream.h.
5016 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5017 nameIndex. Use "jint" as type for boffset.
5018 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5020 (Class): Likewise. Also changed type of method_count,
5021 vtable_method_count, size_in_bytes, field_count,
5022 static_field_count, interface_count.
5023 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5026 2000-01-21 Tom Tromey <tromey@cygnus.com>
5028 * java/lang/reflect/natConstructor.cc (newInstance): Use
5030 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5031 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5032 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5035 (invoke): Use _Jv_CallAnyMethodA.
5037 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5038 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5040 (struct _Jv_Method): Added getNextMethod method.
5041 (JvNumMethods): New function.
5042 (JvGetFirstMethod): Likewise.
5043 * gcj/field.h (JvGetFirstStaticField): New function.
5044 (JvNumStaticFields): Likewise.
5045 (getNextField): Renamed from getNextInstanceField.
5046 (struct _Jv_Field): New method getClass.
5047 * jni.cc: Wrote many new functions.
5048 * include/jni.h (JNI_TRUE): Define.
5049 (JNI_FALSE): Likewise.
5050 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5051 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5052 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5053 (jfieldID, jmethodID): Likewise.
5054 (JNI_COMMIT, JNI_ABORT): New defines.
5055 (JNINativeMethod): New struct.
5056 (struct JNINativeInterface): Correctly declared more entries.
5057 (class _Jv_JNIEnv): Added `ex' member.
5058 (JNI_VERSION_1_1): New define.
5059 (JNI_VERSION_1_2): Likewise.
5061 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5062 getNextInstanceField.
5064 2000-01-20 Tom Tromey <tromey@cygnus.com>
5066 * resolve.cc (StringClass): Removed.
5067 * defineclass.cc (StringClass): Removed.
5069 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5073 2000-01-19 Tom Tromey <tromey@cygnus.com>
5075 * interpret.cc (PC_REGISTER_ASM): Removed.
5077 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5078 From Bryce McKinlay.
5080 * All files: Updated copyright to reflect Cygnus purchase.
5082 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5084 * configure: Rebuilt.
5085 * configure.in: Recognize --disable-interpreter.
5087 2000-01-18 Andrew Haley <aph@cygnus.com>
5089 * name-finder.cc (lookup): Check for dladdr function.
5090 acconfig.h (HAVE_DLADDR): Add.
5091 configure.in: Check for HAVE_DLADDR
5093 include/config.h.in: Rebuilt.
5095 2000-01-17 Andrew Haley <aph@cygnus.com>
5097 * prims.cc (_Jv_RunMain): Set the name of this executable.
5099 2000-01-17 Tom Tromey <tromey@cygnus.com>
5101 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5102 when backtrace can't be computed.
5104 * configure: Rebuilt.
5105 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5107 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5108 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5109 (_Jv_FindClassInCache): Likewise.
5110 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5111 (findSystemClass): Try to load class from compiled module.
5113 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5114 (loadLibrary): Likewise.
5115 (lt_preloaded_symbols): Define.
5116 (loadLibraryInternal): New method.
5117 * include/config.h.in: Rebuilt.
5118 * acconfig.h (USE_LTDL): Added.
5119 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5120 (INCLUDES): Added $(INCLTDL).
5121 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5122 (libgcj_la_LIBADD): Likewise.
5123 * aclocal.m4, configure: Rebuilt.
5124 * configure.in: Added libltdl support.
5126 2000-01-15 Tom Tromey <tromey@cygnus.com>
5128 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5130 2000-01-14 Andrew Haley <aph@cygnus.com>
5132 * java/lang/natThrowable.cc: New file.
5134 * java/lang/Throwable.java (fillInStackTrace): Make native.
5135 (printStackTrace): Call native method to do this.
5136 (Throwable): Call fillInStackTrace.
5137 (stackTrace): New variable.
5139 * include/jvm.h: Add _Jv_ThisExecutable functions.
5141 * prims.cc: (_Jv_execName): New variable.
5142 (catch_segv): Call fillInStackTrace.
5144 (_Jv_ThisExecutable): New functions.
5145 (JvRunMain): Set the name of this executable.
5147 * Makefile.am: Add java/lang/natThrowable.cc.
5149 * Makefile.in: Rebuilt.
5151 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5153 * configure.in: Force link with __frame_state_for in
5154 FORCELIBGCCSPEC. Add new checks for backtrace.
5155 * include/config.h.in: Rebuilt.
5157 * name-finder.cc: New file.
5158 * include/name-finder.h: New file.
5160 2000-01-16 Anthony Green <green@cygnus.com>
5162 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5165 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5167 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5169 2000-01-13 Tom Tromey <tromey@cygnus.com>
5171 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5172 not system loader, as initiating loader.
5174 2000-01-11 Tom Tromey <tromey@cygnus.com>
5176 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5177 HP/UX. From David Scott Urban.
5179 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5181 * java/lang/natMath.cc (pow): Cast args to `double', not
5184 (IEEEremainder): Likewise.
5185 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5186 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5188 2000-01-09 Anthony Green <green@cygnus.com>
5190 * java/lang/natString.cc (init): Test for overflow condition
5191 during out of bounds check.
5192 (getChars): Throw StringIndexOutOfBoundsException, not
5193 ArrayIndexOutOfBoundsException.
5195 (regionMatches): Obey case option during string comparison.
5197 * configure.host (ligcj_interpreter): New variable. Enable
5198 interpreter by default on IA-32.
5199 * configure.in: Examine libgcj_interpreter.
5200 * configure: Rebuilt.
5202 2000-01-07 Tom Tromey <tromey@cygnus.com>
5204 * mauve-libgcj: Don't disable ClassTest.
5206 * java/lang/natClass.cc (getClasses): Wrote.
5208 2000-01-06 Tom Tromey <tromey@cygnus.com>
5210 * java/lang/natClass.cc (_getConstructors): Correctly check
5211 whether method name is the init name.
5212 (getMethod): Look at accflags on method in `klass', not `this'.
5214 2000-01-05 Tom Tromey <tromey@cygnus.com>
5216 * java/lang/natClass.cc (getMethod): Compute offset relative to
5217 `klass's methods table, not `this's table.
5219 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5220 In unwrapping/widening case, check whether `k' is null, not
5221 whether it is primitive. Initialize `num' from `argelts', not
5222 `paramelts'. Correct create and pass arguments to ffi_call.
5223 Don't let presence of `this' argument affect index used to look in
5225 (COPY): Set appropriate element in `values' vector.
5227 * java/lang/natClass.cc: Include <gcj/method.h>.
5229 * java/lang/Class.h (_getMethods): Correctly declare as private,
5232 * java/lang/Class.h (_getMethods): Declare.
5233 * java/lang/Class.java (_getMethods): Declare.
5234 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5235 (getDeclaredClasses): Always return empty array.
5236 (_getMethods): New method.
5237 (getMethods): Wrote.
5238 (getDeclaredMethod): Return `rmethod'.
5239 (finit_name): New global.
5240 (getDeclaredMethods): Check for finit_name.
5241 (_getMethods): Likewise.
5242 (getMethod): Only return public methods.
5244 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5245 jboolean and select correct ffi type on that basis.
5246 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5247 Constructor call always has `void' return type.
5249 2000-01-04 Tom Tromey <tromey@cygnus.com>
5251 * java/lang/Class.h (getSignature): Updated.
5252 * java/lang/Class.java (getSignature): Updated.
5253 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5255 (getConstructor): Ensure constructor is public.
5256 (_getConstructors): Check for public-ness of constructor when
5257 `declared' is false, not when it is true.
5259 2000-01-04 Warren Levy <warrenl@cygnus.com>
5261 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5263 (receive): Set the sender's address in the DatagramPacket.
5265 2000-01-04 Tom Tromey <tromey@cygnus.com>
5267 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5268 declaring class as return_type argument to
5269 _Jv_CallNonvirtualMethodA.
5270 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5271 constructor case, create object and use it as `this' argument.
5272 * java/lang/Class.h (_getConstructors): Declare.
5273 (_getFields): Declare.
5274 * java/lang/Class.java (getConstructors): Wrote.
5275 (_getConstructors): New native method.
5276 (getDeclaredConstructors): Wrote.
5277 (_getFields): Declare new native method.
5278 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5280 (getMethod): Work correctly when class is primitive.
5281 (getDeclaredMethods): Likewise. Compute offset using `method',
5283 (getDeclaredMethod): Likewise.
5284 (getConstructor): Wrote.
5285 (ConstructorClass): New define.
5286 (getDeclaredConstructor): Wrote.
5287 (_getConstructors): New method.
5288 (_getFields): New method.
5291 * Makefile.in: Rebuilt.
5292 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5294 * prims.cc: Remove `#pragma implementation'.
5295 * gcj/array.h: Remove `#pragma interface'.
5297 * prims.cc (_Jv_equaln): New function.
5298 * java/lang/Class.java (getSignature): Declare.
5299 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5300 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5302 (getSignature): New method.
5303 (getDeclaredMethod): Wrote.
5305 Include StringBuffer.h.
5306 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5307 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5309 (getSignature): Declare.
5310 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5311 (_Jv_equaln): Declare.
5312 (_Jv_CallNonvirtualMethodA): Declare.
5313 * Makefile.in: Rebuilt.
5314 * Makefile.am (nat_source_files): Added natConstructor.cc.
5315 (java/lang/reflect/Constructor.h): New target.
5316 * java/lang/reflect/natConstructor.cc: New file.
5317 * java/lang/reflect/Constructor.java (newInstance): Now native.
5318 (declaringClass): Renamed from decl_class.
5319 (offset): Renamed from index.
5320 (getType): New native method.
5321 (getModifiers): Now native.
5322 (getParameterTypes): Call getType if required.
5323 (hashCode): Include hash code from declaring class.
5324 (modifiers): Removed.
5325 (toString): Call getType if required.
5326 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5327 * java/lang/reflect/natMethod.cc (hack_call): New method.
5328 Removed `#if 0' around FFI code.
5329 Include <gnu/gcj/RawData.h>.
5330 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5331 IllegalArgumentException when argument object and class disagree.
5332 (_Jv_GetTypesFromSignature): New function.
5334 (ObjectClass): New define.
5335 (_Jv_CallNonvirtualMethodA): New function.
5336 * java/lang/reflect/Method.java (hack_trampoline): New method.
5337 (hack_call): New native method.