1 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2 Tom Tromey <tromey@redhat.com>
4 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
7 2001-02-09 Tom Tromey <tromey@redhat.com>
9 * java/util/Timer.java: New version from Classpath.
11 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
13 * java/lang/Double.java (doubleToRawLongBits): Now native.
14 * java/lang/Float.java (floatToRawIntBits): Likewise.
15 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
16 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
18 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
20 * java/io/File.java (java.net): Imported.
21 (getAbsoluteFile): Added.
22 (getCanonicalPath): Likewise.
25 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
27 * java/lang/Byte.java: Remove redundant instanceof and null checks.
28 * java/lang/Integer.java: Likewise.
29 * java/lang/Long.java: Likewise.
30 * java/lang/Short.java: Likewise.
31 * java/lang/Double.java: Likewise.
32 (doubleToRawLongBits): New method.
33 * java/lang/Float.java: As above.
34 (floatToRawIntBits): New method.
36 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
37 IOException if stream closed.
39 2001-02-08 Tom Tromey <tromey@redhat.com>
41 * java/lang/Float.java (parseFloat): New method.
43 2001-02-08 Tom Tromey <tromey@redhat.com>
45 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
46 * java/io/InputStreamReader.java (ready, read): Throw IOException
47 if stream has been closed.
49 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
51 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
52 Change sources.redhat.com and sourceware.cygnus.com references to
55 2001-02-07 Tom Tromey <tromey@redhat.com>
57 Fix for PR libgcj/1906:
58 * java/text/MessageFormat.java (setLocale): Use named class
61 (format(Object,StringBuffer,FieldPosition)): Special case if
62 argument is an Object[].
64 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
66 * java/util/Arrays.java: Removed "cmp" methods.
67 (qsort): Don't use "cmp".
70 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
72 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
73 sort. Fix for PR java/1895.
75 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
77 * configure.host: Use sjlj-exceptions for Alpha.
79 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
81 * libgcj.spec.in: Don't force static libgcc into the executable.
82 * configure.in (FORCELIBGCCSPEC): Removed.
85 2001-01-31 Tom Tromey <tromey@redhat.com>
87 * Makefile.in: Rebuilt.
88 * Makefile.am (LTCXXCOMPILE): New macro.
90 2001-01-26 Andrew Haley <aph@redhat.com>
92 (INIT_FPE): Use a direct system call to set the handler.
94 2001-01-27 Richard Henderson <rth@redhat.com>
96 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
98 2001-01-27 Tom Tromey <tromey@redhat.com>
100 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
101 native interface structure.
103 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
105 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
107 (read (byte[], int, int)): Only call readNextBlock() if the block
108 buffer would actually be overrun. Increment blockDataPosition.
109 (callReadMethod): Propagate exceptions from invocation target.
110 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
111 exceptions from invocation target.
113 2001-01-26 Tom Tromey <tromey@redhat.com>
115 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
116 to internal representation.
117 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
118 _Jv_FindClassFromSignature.
120 2001-01-26 Warren Levy <warrenl@redhat.com>
122 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
123 and timezone if they are available on the system.
125 2001-01-24 Tom Tromey <tromey@redhat.com>
127 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
129 2001-01-24 Tom Tromey <tromey@redhat.com>
131 * Makefile.in: Rebuilt.
132 * Makefile.am (c_source_files): Added sf_fabs.c.
133 * java/lang/sf_fabs.c: New file.
135 2001-01-19 Warren Levy <warrenl@redhat.com>
137 * java/text/SimpleDateFormat.java (format): Compute hour for cases
138 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
139 correctly. Adjust properly from 0-23 clock hour.
141 2001-01-17 Mark Wielaard <mark@klomp.org>
143 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
145 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
147 * java/lang/Class.h (isInterface): Move implementation from
148 natClass.cc. Declare inline.
149 (Class): Add default constructor.
150 * java/lang/Object.h: Update comments.
151 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
152 initialize superclass, saving a call if super is already initialized.
154 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
156 * prims.cc (init_prim_class): Deleted.
157 (DECLARE_PRIM_TYPE): Rewritten.
158 * java/lang/Class.h (stdio.h): Include removed.
159 (stddef.h): Included.
160 (java/lang/reflect/Modifier.h): Likewise.
161 (Class): Contructor now takes arguments, initializes fields.
162 (initializePrim): Prototype deleted.
163 * java/lang/natClass.cc (initializePrim): Deleted.
165 2001-01-16 Warren Levy <warrenl@redhat.com>
167 * java/math/BigInteger.java: Update Copyright year.
169 2001-01-16 Hans Boehm <hans_boehm@hp.com>
171 * java/math/BigInteger.java (setShiftRight): Only do negative shift
174 2001-01-14 Mark Wielaard <mark@klomp.org>
175 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
176 (decode): Merge comments with Classpath, don't throw Exception
178 2001-01-12 Tom Tromey <tromey@redhat.com>
180 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
184 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
185 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
186 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
187 * gnu/awt/gtk/GtkLabelPeer.java: New file.
188 * gnu/awt/gtk/GtkButtonPeer.java: New file.
190 * java/lang/natSystem.cc: Include locale.h if it exists.
191 * configure: Rebuilt.
192 * configure.in: Check for locale.h.
194 2001-01-11 Tom Tromey <tromey@redhat.com>
196 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
197 (Cursor(int), getPredefinedCursor): Throw exception if argument
200 2001-01-03 Tom Tromey <tromey@redhat.com>
202 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
203 (getLocationOnScreen): Wrote.
205 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
207 * Makefile.am: Re-enable dependencies.
208 * Makefile.in: Rebuilt.
210 2001-01-10 Warren Levy <warrenl@redhat.com>
212 * java/math/BigDecimal.java (divide): Fixed comment.
214 2001-01-10 Warren Levy <warrenl@redhat.com>
216 Fix for PR libgcj/1596:
217 * java/math/BigDecimal.java (divide): Check newScale for validity.
218 Ensure that BigInteger.pow() is called with a non-negative value.
219 (setScale (int)): New public method.
220 (setScale (int,int)): New public method.
222 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
224 Fix for PR libgcj/1338:
225 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
226 commentChar. Fixed typos in comments.
228 2001-01-08 Warren Levy <warrenl@redhat.com>
230 Fix for PR libgcj/1411:
231 * Makefile.am: Removed java/util/natTimeZone.cc.
232 * Makefile.in: Rebuilt.
233 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
234 missing localized timezone names.
235 * java/lang/System.java (getDefaultTimeZoneId): New private method.
236 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
237 (init_properties): Set user.timezone property.
238 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
239 default timezone names; removed non-standard ones. Use standard
241 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
243 * java/util/TimeZone.java: Add standard ID names per JCL; removed
245 (getDefaultTimeZoneId): Removed.
247 * java/util/natTimeZone.cc: Removed.
249 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
251 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
252 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
253 (_Jv_GetArrayClass): New inline function.
254 (arrayclass): New field.
255 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
256 _Jv_GetArrayElementFromElementType.
257 (_Jv_NewPrimArray): Ditto.
258 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
259 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
260 Set Modifier::ABSTRACT.
261 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
262 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
263 Now synchronized. Array classes are now referenced from
264 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
265 Set array classes' accessibility flags correctly. Optimize so that
266 all array classes share the same IDT.
267 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
268 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
269 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
270 in superclasses from overwriting classes own fields.
271 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
272 Modifier::isAbstract().
273 (null_idt): New static field.
274 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
276 (_Jv_IndexOf): Made inline.
277 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
279 2001-01-08 Tom Tromey <tromey@redhat.com>
281 Fix for PR java/1586:
282 * Makefile.in: Rebuilt.
283 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
285 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
287 * Makefile.am: Use the new "-M -MF" option for generating dependencies
288 from the c++ compiler.
289 * Makefile.in: Rebuilt.
291 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
293 All files with updated copyright.
294 * prims.cc (class _Jv_PrimClass): Removed.
295 (init_prim_class): New function.
296 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
297 `_Jv_PrimClass' in primitive type declarations. Assign to the
298 value returned by `init_prim_class.'
299 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
300 primitive type declarations.
301 (JvPrimClass): Cast to `jclass' removed.
302 * java/lang/Class.h (Class): New constructor.
303 (Class): New copy constructor.
304 (initializePrim): New prototype.
305 (_Jv_PrimClass): Field removed.
306 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
307 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
308 (class java::lang::Object): `finalize' moved up front.
309 * java/lang/natClass.cc
310 (isAssignableFrom): Turned outline.
311 (isInstance): Likewise.
312 (isInterface): Likewise, fixed indentation.
313 (initializePrim): New function.
315 2001-01-07 Anthony Green <green@redhat.com>
317 * Makefile.am (texinfo): Add texinfo target for generating texinfo
319 * Makefile.in: Rebuilt.
321 * scripts/TexinfoDoclet.java: New file.
323 * doc/java-applet.texi, doc/java-lang-reflect.texi,
324 doc/java-awt-color.texi, doc/java-lang.texi,
325 doc/java-awt-datatransfer.texi, doc/java-math.texi,
326 doc/java-awt-event.texi, doc/java-net.texi,
327 doc/java-awt-geom.texi, doc/java-security-spec.texi,
328 doc/java-awt-image.texi, doc/java-security.texi,
329 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
330 doc/java-text.texi, doc/java-beans-beancontext.texi,
331 doc/java-util-jar.texi, doc/java-beans.texi,
332 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
333 doc/java-lang-ref.texi: New files.
335 2001-01-07 Anthony Green <green@redhat.com>
337 * java/net/URLConnection.java (setDoOutput): URLConnection's may
338 be used for both input and output, so don't clear doInput.
340 * java/lang/StringBuffer.java: Fix comments.
342 2001-01-06 Anthony Green <green@redhat.com>
344 * java/beans/PropertyDescriptor.java: Fix comment.
345 * java/io/PushbackReader.java: Fix comment.
346 * java/io/ObjectStreamClass.java: Fix comment.
347 * java/io/DataInputStream.java: Fix comment.
348 * java/io/PipedInputStream.java: Fix comments.
349 * java/io/PipedReader.java: Fix comments.
350 * java/sql/DatabaseMetaData.java: Fix comments.
352 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
354 * java/io/PipedReader: Synchronize on "lock" instead of this.
356 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
358 * java/lang/Thread.java: Update comment.
360 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
361 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
362 * java/io/PipedReader: New implementation based on new
364 * java/io/PipedWriter: Updated to match new PipedReader.
366 2001-01-03 Tom Tromey <tromey@redhat.com>
368 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
369 (getViewportSize): Insets include scrollbar size.
370 (doLayout): Finished.
371 (getScrollPosition): Wrote.
372 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
374 2001-01-02 Tom Tromey <tromey@redhat.com>
376 * java/awt/ScrollPane.java: Wrote.
377 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
380 * java/awt/Panel.java (Panel()): Fixed.
382 * java/awt/Component.java (isShowing): Return false if no peer
383 exists, and true if component is visible and no parent exists.
384 (getLocationOnScreen): Wrote.
385 (getPreferredSize): Removed FIXME comment.
386 (getMinimumSize): Likewise.
387 (getAlignmentX, getAlignmentY): Wrote.
389 (requestFocus): Wrote.
390 (transferFocus): Wrote.
391 (findNextFocusComponent): New method.
394 (enableEvents): Call setEventMask on the peer.
396 * java/awt/Container.java (list): Use super.list() to print self.
397 (findNextFocusComponent): New method.
398 (setLayout): Call invalidate.
399 (findComponentAt): Wrote.
401 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
403 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
404 the correct versions of various linuxthreads functions get linked.
405 * Makefile.in: Rebuilt.
406 * java/lang/natThread.cc (finalize_native): New static function. Call
407 _Jv_ThreadDestroyData.
408 (initialize_native): Register finalizer for "data".
409 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
410 (_Jv_ThreadDestroyData): New prototype.
411 * include/win32-threads.h: Ditto.
412 * include/no-threads.h: Ditto.
413 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
414 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
415 move mutex and condition variable destroy code from:
416 (really_start): ...here.
417 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
418 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
419 (_Jv_ThreadDestroyData): Implemented.
420 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
421 (_Jv_AllocArray): Ditto.
423 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
425 * java/sql/DriverManager.java (getConnection): Don't set user/password
428 2000-12-27 Warren Levy <warrenl@redhat.com>
430 Fix for PR libgcj/1358:
431 * java/lang/System.java: Update Copyright date properly.
432 * java/util/Calendar.java: Fix typo in comment.
433 (set): Set 24-hour clock hour instead of 12-hour clock hour.
434 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
435 initialize times. Spec says to set H:M:S values to zero only if
437 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
438 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
439 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
440 timezones and GMT offsets, being careful to account for units of
441 milliseconds vs. seconds.
443 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
445 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
446 not be assigned to Object.
448 Fix for PR libgcj/1516:
449 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
451 (can_widen): Declared inline. Remove redundant checks for void
452 arguments and char->short conversion. Add special case for boolean
454 (ffi_type): Declared inline.
455 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
457 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
459 * java/sql/SQLWarning.java: Fixed typo in comment.
461 2000-12-26 Tom Tromey <tromey@redhat.com>
463 * java/awt/MenuItem.java (paramString): Now protected.
465 * java/awt/MenuShortcut.java: Implements Serializable.
467 * java/awt/MenuBar.java: Rewrote from scratch.
469 * java/awt/MenuComponent.java (removeNotify): Wrote.
470 Implements Serializable.
472 * java/awt/GridBagConstraints.java (GridBagConstraints): New
475 * java/awt/CheckboxMenuItem.java: Wrote.
477 2000-12-25 Tom Tromey <tromey@redhat.com>
479 * java/awt/MenuContainer.java: Fixed typo.
481 * Makefile.in: Rebuilt.
482 * Makefile.am (awt_java_source_files): Added SystemColor.java.
483 * java/awt/SystemColor.java: New file.
485 * java/awt/Color.java (rgba): Now package-private.
487 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
489 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
492 * java/awt/MenuItem.java (addNotify): New method.
493 (MenuItem(String,MenuShortcut)): New constructor.
494 (setLabel): Notify peer of change.
495 (setEnabled): Likewise.
497 * java/awt/GridLayout.java (toString): New method.
499 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
500 (FlowLayout): Check for LEADING and TRAILING.
501 (setAlignment): Likewise.
502 (layoutContainer): Handle component orientation.
504 * java/awt/Component.java (orientatin): New field.
505 (setComponentOrientation): Wrote.
506 (getComponentOrientation): Wrote.
508 * java/awt/Event.java (Event): Implements Serializable.
509 (consumed): New field for serialization.
510 * java/awt/Dimension.java (Dimension): Implements Serializable.
511 * java/awt/Cursor.java (Cursor): Implements Serializable.
512 * java/awt/Container.java (Container): No longer abstract.
514 * java/awt/Choice.java: Wrote.
515 * java/awt/Checkbox.java: Wrote.
516 * java/awt/ItemSelectable.java: Documented.
517 * java/awt/CheckboxGroup.java: Wrote.
519 * java/awt/CardLayout.java (layoutContainer): Directly use fields
523 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
525 * java/io/FileDescriptor.java: Initialize fd to -1.
526 Remove default constructor.
528 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
530 * java/lang/mprec.h: Change C9X reference to refer to C99.
532 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
534 * java/lang/Throwable.java (trace_enabled): New static field.
535 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
536 trace_enabled not set.
537 * prims.cc (main_init): Turn off trace_enabled while creating
538 default exception objects.
540 2000-12-21 Tom Tromey <tromey@redhat.com>
542 * java/beans/PropertyChangeListener.java: Extends EventListener.
543 * java/beans/VetoableChangeListener.java: Extends EventListener.
545 * java/util/zip/Deflater.java (update, init): Now private.
547 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
549 * java/util/BasicMapEntry.java: Re-added.
550 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
551 (putAll): Test for BasicMapEntry.
552 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
553 (putAll): Test for BasicMapEntry.
554 Change references from `HashMap.Entry' to `Entry' in various places.
555 * Makefile.am: Add BasicMapEntry.java.
556 * Makefile.in: Rebuilt.
558 2000-12-18 Warren Levy <warrenl@redhat.com>
560 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
561 need to set timezone to a valid non-null value. Partial fix for
564 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
566 * java/awt/Window.java (addNotify): Remove peer casting hack now that
568 * java/awt/Button.java (addNotify): Likewise.
569 * java/awt/Label.java (addNotify): Likewise.
570 * java/awt/Panel.java (addNotify): Likewise.
571 * java/awt/Scrollbar.java (addNotify): Likewise.
572 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
573 Remove redundant null checks.
575 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
577 * COPYING: Update to current
578 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
579 to 19yy as example year in copyright notice).
581 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
583 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
584 end-of-stream if avail_in is 0.
586 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
588 * java/util/ArrayList.java (data): Declare transient.
589 (serialPersistantFields): Removed.
590 (readObject): Use defaultReadObject(), not readFields().
591 (writeObject): Use defaultWriteObject(), not writeFields().
593 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
595 * java/util/Hashtable.java (put): Remove `last' variable.
596 Link new entry to head of list.
597 * java/util/HashMap.java (put): Ditto.
599 2000-12-15 Tom Tromey <tromey@redhat.com>
601 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
602 loader to Class.forName.
604 2000-12-14 Tom Tromey <tromey@redhat.com>
606 * java/util/ResourceBundle.java
607 (getBundle(String,Locale,ClassLoader)): New method.
608 (trySomeGetBundle): Added `loader' argument.
609 (partialGetBundle): Likewise.
611 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
612 maximumFractionDigits, maximumIntegerDigits,
613 minimumFractionDigits, minimumIntegerDigits): Now
616 * java/lang/Thread.java (checkAccess): Now final.
618 * java/lang/RuntimePermission.java: Class now final.
620 * java/io/StringWriter.java (StringWriter(int)): Now public.
622 * java/io/SerializablePermission.java (legal_names): Now private.
624 * java/lang/Character.java: Updated UnicodeBlock constants.
625 * scripts/blocks.pl: Special case private use and surrogate
628 2000-12-12 Tom Tromey <tromey@redhat.com>
630 * Makefile.in: Rebuilt.
631 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
633 (GCJCOMPILE): Use it.
636 2000-12-11 Tom Tromey <tromey@redhat.com>
638 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
639 New static final fields.
641 * scripts/classes.pl (scan): Skip lines with leading `*'.
642 Fix for PR libgcj/378.
644 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
646 * configure.in: Remove check for -fuse-divide-subroutine.
647 * configure: Rebuilt.
649 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
651 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
653 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
655 * Makefile.am: Add HashSet.java and java/lang/ref classes.
656 Remove BasicMapEntry.java and Bucket.java.
657 * Makefile.in: Rebuilt.
658 * java/util/HashMap.java: Rewritten.
659 * java/util/HashSet.java: Imported from classpath.
660 * java/util/WeakHashMap.java: Imported from classpath.
661 * java/util/Hashtable.java: Rewritten based on new HashMap code.
662 * java/util/Bucket.java: Deleted.
663 * java/util/BasicMapEntry.java: Deleted.
664 * java/util/Collections.java (search): Use a for-loop, not iterator
666 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
667 of elements in source.
668 (max): Use a for-loop.
670 (reverse): Keep track of positions instead of using Iterator's
671 nextIndex() and previousIndex().
672 (shuffle(List)): Initialize defaultRandom if required using
673 double-check thread safety idiom. Call two-argument shuffle method
675 (defaultRandom): New field.
676 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
677 using previousIndex() and nextIndex().
678 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
679 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
680 * java/util/AbstractMap.java (toString): Use StringBuffer.
681 * java/lang/ref/PhantomReference.java: Imported from classpath.
682 * java/lang/ref/SoftReference.java: Ditto.
683 * java/lang/ref/Reference.java: Ditto.
684 * java/lang/ref/WeakReference.java: Ditto.
685 * java/lang/ref/ReferenceQueue.java: Ditto.
687 2000-12-10 Richard Henderson <rth@redhat.com>
689 * configure.host: Recognize alpha*-*, not alphaev6-*.
691 2000-12-09 Anthony Green <green@redhat.com>
693 * configure.host: Enable interpreter for Alpha.
695 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
697 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
698 (ZIP): Points at fastjar instead of zip.
699 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
700 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
701 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
702 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
703 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
704 ($(x_java_source_files:.java=.class):): Likewise.
705 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
707 (CLEANFILES): libgcj.jar replaces libgcj.zip.
708 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
709 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
710 java/lang/String.h:, java/lang/reflect/Constructor.h:,
711 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
712 gnu/gcj/runtime/VMClassLoader.h:,
713 java/io/ObjectInputStream$$GetField.h:,
714 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
715 (Makefile.in): Rebuilt.
717 2000-12-08 Tom Tromey <tromey@redhat.com>
720 * configure: Rebuilt.
721 * configure.in: Use echo, not `:', to create .d files.
723 2000-12-08 Warren Levy <warrenl@redhat.com>
725 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
726 NullPointerException so proper check of offset can be done.
728 2000-12-08 Warren Levy <warrenl@redhat.com>
730 * java/io/FileInputStream.java (close): Check if the fd is valid.
731 * java/io/RandomAccessFile.java (close): Ditto.
732 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
733 * java/net/PlainSocketImpl.java (close): Ditto.
735 2000-12-06 Tom Tromey <tromey@redhat.com>
737 * java/awt/GridBagConstraints.java: Filled in values for static
740 * java/util/BitSet.java: Updated copyright notice.
742 * Makefile.in: Rebuilt.
743 * Makefile.am (awt_java_source_files): Added new file.
744 * java/awt/GridBagConstraints.java: New file.
746 2000-12-05 Tom Tromey <tromey@redhat.com>
748 * java/text/Collator.java (decomposeCharacter, decmp, strength):
749 Now package-private, not protected.
750 * java/text/DateFormatSymbols.java (equals): Now private.
751 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
752 * java/util/BitSet.java: Class no longer final.
754 2000-12-04 Warren Levy <warrenl@redhat.com>
756 * java/util/TimeZone.java (getAvailableIDs): Activated commented
757 out code dependent on compiler and library changes.
759 2000-12-04 Warren Levy <warrenl@redhat.com>
761 * java/io/FilePermission.java: Made class final per spec.
762 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
763 method name to match spec (fixed typo).
764 * java/util/LinkedList.java: Implements List.
766 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
768 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
769 Edgar Villanueva <edgarvil@home.com>.
771 2000-12-03 Tom Tromey <tromey@redhat.com>
773 * java/awt/geom/Point2D.java: Added protected constructor.
774 (equals): New method.
775 (Float.setLocation(float,float)): New method.
776 * java/awt/geom/Dimension2D.java: Added protected constructor.
777 * java/awt/geom/AffineTransform.java: Made all constants public.
778 (concatenate): Fixed typo in name.
779 * java/awt/event/WindowAdapter.java: Class now abstract.
780 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
781 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
784 * java/awt/AWTError.java: Extend Error, not
785 IllegalStateException.
787 * Makefile.in: Rebuilt.
788 * Makefile.am (awt_java_source_files): Added new file.
789 * java/awt/geom/RoundRectangle2D.java: New file.
791 * Makefile.in: Rebuilt.
792 * Makefile.am (awt_java_source_files): Added new file.
793 * java/awt/FlowLayout.java: New file.
795 * Makefile.in: Rebuilt.
796 * Makefile.am (awt_java_source_files): Added new file.
797 * java/awt/GridLayout.java: New file.
799 2000-12-02 Tom Tromey <tromey@redhat.com>
801 * Makefile.in: Rebuilt.
802 * Makefile.am (awt_java_source_files): Added new files.
803 * java/awt/CardLayout.java: New file.
804 * java/awt/AWTPermission.java: New file.
806 2000-12-01 Tom Tromey <tromey@redhat.com>
808 * java/util/Vector.java (insertElementAt): Unconditionally
809 increment elementCount.
810 (removeRange): Clear unused slots in vector.
812 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
814 * java/lang/natMath.cc: Declare fabsf() function.
815 * java/lang/mprec.h: Don't include math.h.
816 * java/lang/dtoa.c: Include string.h.
817 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
820 From Adam Welc <welc@cs.purdue.edu>:
821 * java/util/LinkedList.java (removeFirst): Update `first' field.
822 Handle the last == first case.
823 (removeLast): Update `last' field. Handle the last == first case.
825 2000-12-01 Warren Levy <warrenl@cygnus.com>
827 * Makefile.am: Added entries for new java.sql modules.
828 * Makefile.in: Rebuilt.
830 2000-12-01 Warren Levy <warrenl@cygnus.com>
832 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
833 that aren't quite 1.2 compatible yet.
835 2000-11-30 Warren Levy <warrenl@cygnus.com>
837 * java/sql/Array.java: New file from classpath.
838 * java/sql/BatchUpdateException.java: Ditto.
839 * java/sql/Blob.java: Ditto.
840 * java/sql/Clob.java: Ditto.
841 * java/sql/Ref.java: Ditto.
842 * java/sql/SQLData.java: Ditto.
843 * java/sql/SQLInput.java: Ditto.
844 * java/sql/SQLOutput.java: Ditto.
845 * java/sql/Struct.java: Ditto.
846 * java/sql/CallableStatement.java: Merged file from claspath.
847 * java/sql/Connection.java: Ditto.
848 * java/sql/DataTruncation.java: Ditto.
849 * java/sql/DatabaseMetaData.java: Ditto.
850 * java/sql/DriverManager.java: Ditto.
851 * java/sql/PreparedStatement.java: Ditto.
852 * java/sql/ResultSet.java: Ditto.
853 * java/sql/ResultSetMetaData.java: Ditto.
854 * java/sql/SQLException.java: Ditto.
855 * java/sql/SQLWarning.java: Ditto.
856 * java/sql/Statement.java: Ditto.
857 * java/sql/Types.java: Ditto.
859 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
861 * java/lang/natSystem.cc (init_properties): Set user.language and
863 * configure.in: Check for setlocale.
864 * configure: Rebuilt.
865 * include/config.h.in: Rebuilt.
867 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
868 the infate() call didn't deliver any output. Throw a ZipException if
869 the needsDictionary() call returns true.
870 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
871 * java/io/InputStreamReader: Use the default buffer size for the
872 contained BufferedInputStream.
874 2000-11-28 Warren Levy <warrenl@cygnus.com>
876 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
877 more time zone entries.
878 * java/text/SimpleDateFormat.java (format): Added case for
881 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
883 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
884 directly rather than read() in all cases. Make primitive read
885 implementations more efficient, as defined in JDK online docs.
886 (skipBytes): Behave like the JDK's implementation.
887 * java/io/BufferedReader.java: Merge classpath docs. Check for a
888 closed stream with checkStatus() whenever an IOException can be
890 (checkStatus): New private method.
892 2000-11-27 Warren Levy <warrenl@cygnus.com>
894 * Makefile.am: Added natTimeZone.cc.
895 * Makefile.in: Rebuilt.
896 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
897 * java/text/DateFormatSymbols.java (ampms): Made package private.
898 (eras): Made package private.
899 (months): Made package private.
900 (shortMonths): Made package private.
901 (shortWeekdays): Made package private.
902 (weekdays): Made package private.
903 (formatPrefixes): New private field.
904 (localPatternCharsDefault): Made private.
905 (dateFormats): New package private field.
906 (timeFormats): New package private field.
907 (formatsForKey): New private method.
908 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
909 (DateFormatSymbols(DateFormatSymbols)): Ditto.
910 * java/text/SimpleDateFormat.java: Merged with Classpath.
911 * java/util/TimeZone.java: Merged with Classpath.
912 * java/util/natTimeZone.cc: New file.
914 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
916 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
917 (addElement): Don't increment elementCount twice. Doh.
918 * java/util/ArrayList.java (add): Only call ensureCapacity if the
919 array needs to be expanded.
921 * java/util/Collections.java (UnmodifiableCollection): Implement
923 (UnmodifiableList): Throw UnsupportedOperationException from
924 modification methods. Set `l' from the one-parameter constructor.
925 (UnmodifiableMap): Implement toString().
926 (SynchronizedCollection): Ditto.
927 (SynchronizedList): Set `l' from the one-parameter constructor.
928 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
929 (SynchronizedMap): Implement toString().
931 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
933 * javax/naming/NameParser.java,
934 javax/naming/directory/AttributeInUseException.java,
935 javax/naming/directory/AttributeModificationException.java,
936 javax/naming/directory/InvalidAttributeIdentifierException.java,
937 javax/naming/directory/InvalidAttributesException.java,
938 javax/naming/directory/InvalidAttributeValueException.java,
939 javax/naming/directory/InvalidSearchControlsException.java,
940 javax/naming/directory/InvalidSearchFilterException.java,
941 javax/naming/directory/NoSuchAttributeException.java,
942 javax/naming/directory/SchemaViolationException.java: New files.
944 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
946 * javax/naming/InitialContext.java (rebind): Implement.
950 (listBindings): Implement.
951 (destroySubcontext): Implement.
952 (createSubcontext): Implement.
953 (lookupLink): Implement.
954 (getNameParser): Implement.
955 (composeName): Implement.
956 (addToEnvironment): Implement.
958 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
960 * javax/naming/AuthenticationException.java,
961 javax/naming/AuthenticationNotSupportedException.java,
962 javax/naming/CannotProceedException.java,
963 javax/naming/CommunicationException.java,
964 javax/naming/ConfigurationException.java,
965 javax/naming/ContextNotEmptyException.java,
966 javax/naming/InsufficientResourcesException.java,
967 javax/naming/InterruptedNamingException.java,
968 javax/naming/InvalidNameException.java,
969 javax/naming/LimitExceededException.java,
970 javax/naming/LinkException.java,
971 javax/naming/LinkLoopException.java,
972 javax/naming/MalformedLinkException.java,
973 javax/naming/NameAlreadyBoundException.java,
974 javax/naming/NameNotFoundException.java,
975 javax/naming/NamingSecurityException.java,
976 javax/naming/NoPermissionException.java,
977 javax/naming/NotContextException.java,
978 javax/naming/PartialResultException.java,
979 javax/naming/ReferralException.java,
980 javax/naming/ServiceUnavailableException.java,
981 javax/naming/SizeLimitExceededException.java,
982 javax/naming/TimeLimitExceededException.java: New files.
984 * javax/naming/Name.java (clone): New method.
985 (compareTo): New method.
986 (isEmpty): New method.
987 (getAll): New method.
988 (getPrefix): New method.
989 (getSuffix): New method.
990 (startsWith): New method.
991 (endsWith): New method.
992 (addAll): New method.
993 (addAll): New method.
996 (remove): New method.
998 * javax/naming/Context.java (lookup): New method.
999 (rebind): New method.
1000 (unbind): New method.
1001 (rename): New method.
1003 (listBindings): New method.
1004 (destroySubcontext): New method.
1005 (createSubcontext): New method.
1006 (lookupLink): New method.
1007 (getNameParser): New method.
1008 (composeName): New method.
1009 (addToEnvironment): New method.
1010 (removeFromEnvironment): New method.
1011 (getEnvironment): New method.
1012 (close): New method.
1013 (getNameInNamespace): New method.
1015 * javax/naming/InitialContext.java (lookup): New method.
1016 (rebind): New method.
1017 (unbind): New method.
1018 (rename): New method.
1020 (listBindings): New method.
1021 (destroySubcontext): New method.
1022 (createSubcontext): New method.
1023 (lookupLink): New method.
1024 (getNameParser): New method.
1025 (composeName): New method.
1026 (addToEnvironment): New method.
1027 (removeFromEnvironment): New method.
1028 (getEnvironment): New method.
1029 (close): New method.
1030 (getNameInNamespace): New method.
1032 2000-11-26 Tom Tromey <tromey@cygnus.com>
1034 * Makefile.in: Rebuilt.
1035 * Makefile.am (core_java_source_files): Added
1036 RuntimePermission.java.
1037 * java/lang/RuntimePermission.java: Imported from Classpath.
1038 * java/lang/Thread.java (getContextClassLoader): Now
1039 synchronized. Added security code.
1040 (setContextClassLoader): Likewise.
1042 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1043 length field of array.
1044 (_Jv_NewPrimArray): Likewise.
1045 * gcj/array.h (__JArray): `length' field now const. Added
1048 2000-11-26 Anthony Green <green@redhat.com>
1050 * javax/naming/spi/NamingManager.java,
1051 javax/naming/spi/ObjectFactory.java,
1052 javax/naming/spi/InitialContextFactory.java,
1053 javax/naming/spi/InitialContextFactoryBuilder.java,
1054 javax/naming/RefAddr.java, javax/naming/Reference.java,
1055 javax/naming/NamingException.java, javax/naming/Context.java,
1056 javax/naming/Referenceable.java,
1057 javax/naming/directory/InitialDirContext.java,
1058 javax/naming/directory/DirContext.java,
1059 javax/naming/directory/Attributes.java,
1060 javax/naming/directory/Attribute.java,
1061 javax/naming/StringRefAddr.java,
1062 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1063 javax/naming/InitialContext.java,
1064 javax/naming/NoInitialContextException.java: New files.
1066 2000-11-25 Anthony Green <green@redhat.com>
1068 * prims.cc (_Jv_NewObjectArray): Undo placement change.
1069 (_Jv_NewPrimArray): Likewise.
1070 * gcj/array.h (__JArray): Undo const change. Removed constructor.
1071 (class JArray): Removed constructor.
1073 * java/lang/Thread.java (context_class_loader): New private data.
1074 (getContextClassLoader): New method.
1075 (setContextClassLoader): New method.
1076 (Thread): Initialize context_class_loader.
1078 * java/net/URLClassLoader.java: Import java.util.Enumeration.
1079 (getResource): Rename to findResource.
1080 (findResource): New method. Used to be getResource.
1081 (getResourceAsStream): Deleted.
1082 (jarFileize): Extracted logic from URLClassLoader constructor into
1083 this new private method.
1084 (addURL): New protected method.
1085 (URLClassLoader): Call jarFileize. Use addElement instead of
1087 (findResources): New method.
1089 * java/lang/ClassLoader.java: Import java.util.Enumeration.
1090 (getResource): Implement correct logic.
1091 (findResource): New method.
1092 (getResources): New method.
1093 (findClass): Create a ClassNotFoundException with the name of the
1094 class rather than nothing at all.
1095 (defineClass) Only throw ClassFormatError.
1097 * java/lang/Class.java (forName): New method.
1098 * java/lang/Class.h (forName): New method.
1099 * java/lang/natClass.cc (forName): New method.
1101 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1103 * java/lang/System.java (setProperties): Only call init_properties()
1104 if properties is null.
1105 (getProperties): Ditto.
1106 (getProperty): Ditto.
1107 (setProperty): Call init_properties if properties are null.
1108 (prop_init): Remove field.
1109 * java/lang/natSystem.cc (init_properties): Synchronize the entire
1110 method. Check for null properties after synchronizing instead of
1111 prop_init flag. Set the properties field last for thread safety.
1113 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1114 test for gcj.dumpobjects property and enable object stream dumping
1116 (dumpElement): No longer native.
1117 (dumpElementln): Ditto.
1118 (setDump): Do not define.
1119 * java/io/natObjectInputStream.cc (dumpElement): Removed.
1120 (dumpElementln): Removed.
1123 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
1125 * configure: Rebuilt.
1126 * Makefile.in: Rebuilt.
1127 * Makefile.am (built_java_source_files): Add Configuration.java.
1128 * configure.in: Add Configuration.java to CONFIG_FILES. Set
1129 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
1130 Create `gnu' directory in the build tree.
1131 * gnu/classpath/Configuration.java.in: New file.
1133 2000-11-24 Tom Tromey <tromey@cygnus.com>
1135 * prims.cc (_Jv_NewObjectArray): Use placement new to create
1137 (_Jv_NewPrimArray): Likewise.
1139 * gcj/array.h (__JArray): `length' field now const. Added
1141 (class JArray): Added constructor.
1143 2000-11-23 Mark Wielaard <mark@klomp.org>
1145 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1148 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
1150 * java/util/Vector.java: Improve exception messages.
1151 (Vector): Check initialCapacity for IllegalArgumentException.
1152 (tromToSize): Don't check for elementCount == elementData.length
1154 (toArray): Don't try to set null marker if target array is the same
1155 length as the vector.
1157 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
1159 * Makefile.in: Rebuilt.
1160 * Makefile.am (core_java_source_files): Added Collections.java.
1161 * java/util/List.java: Merged from classpath.
1162 * java/util/Vector.java: Ditto.
1163 * java/util/Collections.java: From classpath.
1164 * java/util/ArrayList.java (addAll(Collection)): Call
1165 addAll(int,Collection) instead of duplicating code.
1166 (indexOf): Clean up int initialization.
1167 (clear): Set cleared array entries to null, to allow garbage
1169 * java/util/List.java: Minor formatting fixes.
1170 * java/util/SimpleTimeZone.java: ditto.
1172 2000-11-18 Tom Tromey <tromey@cygnus.com>
1174 * Makefile.in: Rebuilt.
1175 * Makefile.am (core_java_source_files): Added new files.
1176 * java/lang/reflect/ReflectPermission.java: New class.
1177 * java/io/FileFilter.java: From Classpath
1178 * java/io/FilePermission.java: From Classpath.
1180 2000-11-17 Tom Tromey <tromey@cygnus.com>
1182 * java/lang/reflect/AccessibleObject.java (isAccessible,
1183 setAccessible): Now public.
1185 * java/lang/natString.cc: Include Locale.h.
1186 (toUpperCase): Added `locale' argument. Handle locale
1188 (toLowerCase): Added `locale' argument. Handle locale
1190 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1191 CAPITAL_I): New defines.
1192 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1195 (toUpperCase, toLowerCase): New methods. Variants which accept
1198 * java/lang/ExceptionInInitializerError.java (printStackTrace):
1201 * java/util/PropertyPermission.java: Re-merged from Classpath.
1203 * java/text/RuleBasedCollator.java (getCollationElementIterator):
1205 * java/text/StringCharacterIterator.java: Reindented.
1206 (setText): New method.
1208 2000-11-17 Mark Wielaard <mark@klomp.org>
1210 Merge with Classpath (changes by Bryce McKinlay)
1211 * java/util/jar/*.java: Reformat all to unofficial standard coding
1212 style. No changes of substance.
1214 2000-11-17 Mark Wielaard <mark@klomp.org>
1216 * java/util/zip/*.java: Javadoc updates.
1218 2000-11-17 Tom Tromey <tromey@cygnus.com>
1220 * java/text/CollationKey.java: Implement Comparable.
1221 (compareTo(Object)): New method.
1222 * java/text/Collator.java (compare(Object,Object)): New method.
1223 Implement Comparator.
1225 * java/util/zip/InflaterInputStream.java (available): New method.
1226 (close): New method.
1227 (read, available, skip, fill): Throw exception if stream closed.
1228 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1229 getNextEntry): Throw exception if closed.
1231 2000-11-16 Tom Tromey <tromey@cygnus.com>
1233 * java/io/PushbackReader.java: Merged with Classpath.
1234 * java/util/Arrays.java: Updated from Classpath.
1236 * scripts/blocks.pl: New file.
1237 * java/lang/Character.java (Subset): New class.
1238 (UnicodeBlock): New class.
1240 * java/lang/Math.java (toDegrees, toRadians): New methods.
1242 * java/lang/Float.java: Implement Comparable.
1243 (compareTo): New methods.
1244 * java/lang/Double.java: Implement Comparable.
1245 (compareTo): New methods.
1247 2000-11-16 Warren Levy <warrenl@cygnus.com>
1249 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1251 (listeners): Made transient.
1252 (source): Renamed from 'bean'.
1253 (children): New field for serialization.
1254 (propertyChangeSupportSerializedDataVersion): Ditto.
1255 (serialVersionUID): Ditto.
1256 (writeObject): New serialization method.
1257 (readObject): New serialization method.
1258 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1260 (listeners): Made transient.
1261 (source): Renamed from 'bean'.
1262 (children): New field for serialization.
1263 (vetoableChangeSupportSerializedDataVersion): Ditto.
1264 (serialVersionUID): Ditto.
1265 (writeObject): New serialization method.
1266 (readObject): New serialization method.
1267 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1268 to allow constructor to have a return type (i.e. the class that the
1269 constructor constructs).
1271 2000-11-14 Tom Tromey <tromey@cygnus.com>
1273 * Makefile.in: Rebuilt.
1274 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1277 2000-11-02 Warren Levy <warrenl@cygnus.com>
1279 * java/io/ObjectInputStream.java (readObject): Added code to
1280 conditionally dump out the serialized data.
1281 Handle ENDBLOCKDATA case a bit more gracefully since the current
1282 behavior doesn't seem to work as expected.
1283 (readStreamHeader): Added code for serialized data dumper.
1284 (readNextBlock): Ditto.
1285 (readFields): Ditto.
1286 (dump): New private static field for turning on/off dumper.
1287 (setDump): New native method.
1288 (dumpElement): New native method.
1289 (dumpElementln): New native method.
1290 * java/io/natObjectInputStream.cc (setDump): New method.
1291 (dumpElement): New method.
1292 (dumpElementln): New method.
1294 2000-11-02 Warren Levy <warrenl@cygnus.com>
1296 * java/net/InetAddress.java (addr): Renamed from 'address'.
1297 (address): New field to match Serialized Form doc.
1298 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1299 (family): New serialization field.
1300 (serialVersionUID): New field.
1301 (readObject): New method.
1302 (writeObject): New method.
1303 (getFamily): New native method.
1304 (InetAddress): Set family.
1305 * java/net/natInetAddress.cc (getFamily): New method.
1306 (addr): Renamed from 'address'.
1307 (hostName): Renamed from 'hostname' to match Serialized Form doc.
1308 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1309 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1311 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
1313 * java/util/AbstractList.java (SubList): Make it a top-level private
1315 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1317 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1318 * Makefile.in: Rebuilt.
1320 2000-11-02 Tom Tromey <tromey@cygnus.com>
1322 * Makefile.in: Rebuilt.
1323 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1326 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1328 * java/util/AbstractList.java (remove): Comment out modCount increment
1329 to work around compiler bug.
1332 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
1334 * java/util/AbstractList.java: Throw messages with
1335 IndexOutOfBoundsExceptions.
1336 (listIterator()): Call listIterator(0).
1337 (size): New field. Initialize to size().
1338 (hasNext): Test position against size, not size().
1339 (remove): Increment knownMod by one instead of resetting it from
1342 (SubList.upMod): Removed.
1343 (SubList.set): Don't call upMod() or update knownMod.
1344 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1345 (SubList.remove): Ditto.
1346 (SubList.addAll): Don't call backingList.size(). Increment size from
1348 (SubList.iterator): New method. Call listIterator(0).
1349 (SubList.listIterator): New method. Restore code to return an anonymous
1350 listIterator implementation (with some changes).
1351 * java/util/AbstractSequentialList.java: Throw messages with
1352 IndexOutOfBoundsExceptions.
1353 (addAll): Add a specnote.
1354 * java/util/ArrayList.java (removeRange): Get the math right.
1355 (addAll): Increment modCount _before_ creating iterator.
1356 * java/util/LinkedList.java: Rewritten, mostly.
1358 2000-11-01 Tom Tromey <tromey@cygnus.com>
1360 * scripts/encodings.pl: Added `ASCII' alias.
1361 * Makefile.in: Rebuilt.
1362 * Makefile.am (convert_source_files): Added new files.
1363 * gnu/gcj/convert/Input_ASCII.java: New file.
1364 * gnu/gcj/convert/Output_ASCII.java: New file.
1365 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1366 out-of-range characters.
1367 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1368 (read): Swap bytes if required. Treat `count' as character count,
1370 (write): Likewise. Also, handle case where iconv fails on a given
1372 (init): Put encoding into exception.
1373 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1374 (static): Call iconv_init. Rebuilt alias list.
1375 (iconv_init): New private method.
1377 2000-11-01 Tom Tromey <tromey@cygnus.com>
1379 * Makefile.in: Rebuilt.
1380 * Makefile.am (install-exec-hook): Only make a single symlink, and
1381 remove the destination before making the link.
1382 * configure: Rebuilt.
1383 * configure.in: Call AC_PROG_LN_S.
1385 2000-10-31 Warren Levy <warrenl@cygnus.com>
1387 * jni.cc: Added include of java/lang/ThreadGroup.h.
1388 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1389 per change of 2000-10-05.
1391 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
1393 * java/util/BitSet.java: Updated @specnote.
1395 * java/io/Reader.java: Merge docs from classpath.
1396 (skip): Synchronize on `lock'.
1397 * java/io/FileReader.java: Import correct implementation from
1399 * java/io/StringReader.java: Merge docs from classpath.
1400 (ready): Throw IOException if stream is closed.
1402 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
1404 * java/util/AbstractCollection.java (addAll): Use size() instead of
1405 hasNext() in iterator loop.
1407 (contains): Ditto. Simplify loop.
1408 (containsAll): Ditto.
1413 (toString): Ditto. Use string concatenation operators, not
1415 * java/util/AbstractList.java (addAll): Use size() instead of
1416 hasNext() in iterator loop.
1419 (indexOf): Ditto. Don't take null check outside of the loop.
1420 (iterator): Return an AbstractListItr instead of anonymous class.
1421 (lastIndexOf): Use a for loop bounded by size() instead of
1422 hasPrevious() in iterator loop.
1423 (listIterator): Return an AbstractListItr.
1424 (removeRange): Remove bounds checking code and docs.
1425 (AbstractListItr): New inner class. Code moved here from
1427 (SubList.iterator): Removed. Use default implementation from
1428 AbstractList instead.
1429 (SubList.listIterator): As above.
1430 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
1431 instead of hasNext() in iterator loop.
1432 (containsValue): Ditto.
1438 (toString): Ditto. Use string concatenation operators, not
1440 * java/util/AbstractSequentialList.java (addAll): Use a for loop
1441 bounded by size() instead of hasNext() in iterator loop.
1442 * java/util/AbstractSet.java (hashCode): Don't catch exception as
1443 part of normal execution flow. Do an explicit null check instead.
1444 * java/util/ArrayList.java (_iSize): Rename to `size'.
1445 (_arData): Rename to `data'.
1446 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1449 (removeRange): Make protected. Don't check bounds.
1450 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1452 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
1454 (addAll (int, Collection)): Check lower bounds. Simplify exception
1456 (clone): Clone the data array too.
1457 (indexOf): Inline doesEqual().
1458 (lastIndexOf): Ditto.
1459 (clear): Don't set array data to null.
1460 (set): Check lower bounds. Simplify exception string.
1461 (toArray): Correct comment.
1462 (trimToSize): Don't update modCount, this is not a structural change.
1465 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1467 (toString): Declare `bit' as long, not int.
1468 (data): Made package-private, not private.
1470 2000-10-27 Warren Levy <warrenl@cygnus.com>
1472 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1473 array elements to true.
1475 2000-10-27 Warren Levy <warrenl@cygnus.com>
1477 * Makefile.am: Added locale files from Classpath.
1478 * Makefile.in: Rebuilt.
1479 * gnu/java/locale/Calendar.java: New file.
1480 * gnu/java/locale/Calendar_de.java: New file.
1481 * gnu/java/locale/Calendar_en.java: New file.
1482 * gnu/java/locale/Calendar_nl.java: New file.
1483 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1484 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1485 serialization compatibility.
1486 (scale): Made private.
1487 (serialVersionUID): New field.
1488 * java/math/BigInteger.java (ival): Made transient.
1489 (words): Made transient.
1490 (bitCount): New serialization field.
1492 (firstNonzeroByteNum): Ditto.
1493 (lowestSetBit): Ditto.
1496 (serialVersionUID): New field.
1497 (readObject): New method.
1498 (writeObject): New method.
1499 * java/util/BitSet.java (serialVersionUID): New field.
1500 * java/util/Calendar.java: Replaced with Classpath file.
1501 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1502 of getDefault() for TimeZone or Locale instead of passing nulls.
1503 * java/util/Locale.java (serialVersionUID): New field.
1504 (writeObject): New method.
1505 (readObject): New method.
1506 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1508 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
1510 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1511 (core_java_source_files): Put java.lang, java.io, and java.util here.
1512 (ordinary_java_source_files): Order so that core_java_source_files are
1514 (java_source_files): Reorder so that special_java_source_files are
1516 * configure.in: Don't pass -I flag to gcj.
1517 * Makefile.in: Rebuilt.
1518 * configure: Rebuilt.
1520 2000-10-25 Tom Tromey <tromey@cygnus.com>
1522 * Makefile.in: Rebuilt.
1523 * Makefile.am (install-exec-hook): New target.
1525 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
1527 * java/util/EventObject.java: Merged from classpath.
1529 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1532 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
1534 * java/util/AbstractSet.java (equals): Re-installed original code.
1536 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
1538 * Makefile.am: Added rules for libgcjx library.
1539 * Makefile.in: Rebuilt.
1540 * configure.in: Added check for X.
1541 * configure: Rebuilt.
1542 * gnu/awt/LightweightRedirector.java: New file.
1543 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1544 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1545 * gnu/awt/j2d/Graphics2DImpl.java: New file.
1546 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1547 * gnu/awt/j2d/MappedRaster.java: New file.
1548 * gnu/awt/xlib/XCanvasPeer.java: New file.
1549 * gnu/awt/xlib/XEventLoop.java: New file.
1550 * gnu/awt/xlib/XEventQueue.java: New file.
1551 * gnu/awt/xlib/XFontMetrics.java: New file.
1552 * gnu/awt/xlib/XFramePeer.java: New file.
1553 * gnu/awt/xlib/XGraphics.java: New file.
1554 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1555 * gnu/awt/xlib/XPanelPeer.java: New file.
1556 * gnu/awt/xlib/XToolkit.java: New file.
1557 * gnu/gcj/xlib/Clip.java: New file.
1558 * gnu/gcj/xlib/Colormap.java: New file.
1559 * gnu/gcj/xlib/Display.java: New file.
1560 * gnu/gcj/xlib/Drawable.java: New file.
1561 * gnu/gcj/xlib/Font.java: New file.
1562 * gnu/gcj/xlib/GC.java: New file.
1563 * gnu/gcj/xlib/Pixmap.java: New file.
1564 * gnu/gcj/xlib/Screen.java: New file.
1565 * gnu/gcj/xlib/Visual.java: New file.
1566 * gnu/gcj/xlib/WMSizeHints.java: New file.
1567 * gnu/gcj/xlib/Window.java: New file.
1568 * gnu/gcj/xlib/WindowAttributes.java: New file.
1569 * gnu/gcj/xlib/XAnyEvent.java: New file.
1570 * gnu/gcj/xlib/XButtonEvent.java: New file.
1571 * gnu/gcj/xlib/XColor.java: New file.
1572 * gnu/gcj/xlib/XConfigureEvent.java: New file.
1573 * gnu/gcj/xlib/XConnectException.java: New file.
1574 * gnu/gcj/xlib/XEvent.java: New file.
1575 * gnu/gcj/xlib/XException.java: New file.
1576 * gnu/gcj/xlib/XExposeEvent.java: New file.
1577 * gnu/gcj/xlib/XID.java: New file.
1578 * gnu/gcj/xlib/XImage.java: New file.
1579 * gnu/gcj/xlib/XUnmapEvent.java: New file.
1580 * gnu/gcj/xlib/natClip.cc: New file.
1581 * gnu/gcj/xlib/natColormap.cc: New file.
1582 * gnu/gcj/xlib/natDisplay.cc: New file.
1583 * gnu/gcj/xlib/natDrawable.cc: New file.
1584 * gnu/gcj/xlib/natFont.cc: New file.
1585 * gnu/gcj/xlib/natGC.cc: New file.
1586 * gnu/gcj/xlib/natPixmap.cc: New file.
1587 * gnu/gcj/xlib/natScreen.cc: New file.
1588 * gnu/gcj/xlib/natVisual.cc: New file.
1589 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1590 * gnu/gcj/xlib/natWindow.cc: New file.
1591 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1592 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1593 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1594 * gnu/gcj/xlib/natXColor.cc: New file.
1595 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1596 * gnu/gcj/xlib/natXException.cc: New file.
1597 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1598 * gnu/gcj/xlib/natXImage.cc: New file.
1599 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1600 * java/awt/EventDispatchThread.java: Start thead on creation.
1602 2000-10-20 Tom Tromey <tromey@cygnus.com>
1604 From Arno J. Klaassen:
1605 * interpret.cc: Include <stdlib.h> for alloca.
1606 * defineclass.cc: Include <stdlib.h> for alloca.
1608 * Makefile.in: Rebuilt.
1609 * Makefile.am: Include deps.mk.
1610 (GCJCOMPILE): Added -MD, -MT, and -MF.
1611 ($(javao_files)): Don't depend on libgcj.zip.
1612 (all-recursive): New target.
1613 (%.lo:%.cc): Do dependency tracking.
1614 ($(nat_headers)): Don't depend on libgcj.zip.
1615 * configure: Rebuilt.
1616 * configure.in: Make .d files and deps.mk.
1618 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
1620 * exception.cc: Don't #include "exception".
1621 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1623 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1624 * Makefile.in: Updated.
1626 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
1628 * java/awt/peer/ChoicePeer.java (addItem): Removed.
1629 * java/awt/peer/ComponentPeer.java (disable): Removed.
1632 (minimumSize): Removed.
1633 (preferredSize): Removed.
1636 * java/awt/peer/ListPeer.java (addItem): Removed.
1638 (minimumSize): Removed.
1639 (preferredSize): Removed.
1640 (setMultipleSelections): Removed.
1641 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1642 (remove): Renamed from removeMenu.
1643 * java/awt/peer/MenuItemPeer.java (disable): Removed.
1645 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1646 (remove): Renamed from removeItem.
1647 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1648 (getMinimumSize): Removed.
1649 (getPreferredSize): Removed.
1650 (minimumSize): Removed.
1651 (preferredSize): Removed.
1652 (replaceText): Removed.
1653 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1654 (preferredSize): Removed.
1655 (getMinimumSize): Removed.
1656 (getPreferredSize): Removed.
1657 (setEchoCharacter): Removed.
1659 2000-10-10 Warren Levy <warrenl@cygnus.com>
1661 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1662 * java/sql/Date.java (serialVersionUID): New field.
1663 * java/sql/Time.java (serialVersionUID): New field.
1664 * java/sql/Timestamp.java (serialVersionUID): New field.
1665 * java/text/ChoiceFormat.java (serialVersionUID): New field.
1666 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1667 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1668 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1669 (readObject): New serialization method.
1670 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1671 (serialVersionOnStream): New field.
1672 (readObject): New serialization method.
1673 (getMonetaryDecimalSeparator): New method.
1674 (setMonetaryDecimalSeparator): New method.
1675 * java/text/NumberFormat.java (maxFractionDigits): New field.
1676 (maxIntegerDigits): New field.
1677 (minFractionDigits): New field.
1678 (minIntegerDigits): New field.
1679 (serialVersionOnStream): New field.
1680 (serialVersionUID): New field.
1681 (readObject): New serialization method.
1682 (writeObject): New serialization method.
1683 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1684 (serialVersionOnStream): New field.
1685 (serialVersionUID): New field.
1686 (readObject): New serialization method.
1688 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
1690 * configure.in (GCJ): Avoid bogus error message when looking for
1691 (and not finding) gcj in the build tree.
1692 * configure: Rebuilt.
1694 2000-10-09 Tom Tromey <tromey@cygnus.com>
1696 * configure: Rebuilt.
1697 * configure.in: Include sys/types.h when checking for socklen_t.
1698 From Arno J. Klaassen.
1700 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
1702 * include/jvm.h: Enable __builtin_expect().
1704 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
1705 the main program. Fix for PR libgcj/341.
1707 2000-10-07 Tom Tromey <tromey@cygnus.com>
1709 * java/util/Properties.java: Merged with Classpath version.
1711 2000-10-05 Tom Tromey <tromey@cygnus.com>
1713 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1714 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1715 * java/lang/Class.h (Object): Added `class$' field.
1716 * java/lang/Object.h (Object): Added `class$' field.
1717 * defineclass.cc (ClassClass): Use `class$' form.
1718 (ClassObject): Likewise.
1719 * resolve.cc (ClassObject): Use `class$' form.
1720 (ObjectClass): Likewise.
1721 * interpret.cc (ClassError): Removed.
1722 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1724 (IntegerClass): Likewise.
1725 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1727 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1728 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1729 SerializableClass): Likewise.
1730 Include Serializable.h, Cloneable.h.
1731 * java/lang/natSystem.cc (SystemClass): Removed.
1732 (init_properties): Use `class$' form.
1733 * java/lang/natObject.cc (CloneableClass): Removed.
1734 (clone): Use `class$' form.
1735 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1736 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1737 ConstructorClass): Likewise.
1738 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1739 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1740 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1741 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1743 (ClassClass): Likewise.
1744 * include/jvm.h (StringClass): Use `class$' form.
1745 * prims.cc (ObjectClass): Removed.
1746 (_Jv_RunMain): Use `class$' form.
1747 (_Jv_AllocObject): Likewise.
1748 * jni.cc (ClassClass): Use `class$' form.
1749 (ThrowableClass): Likewise.
1750 (ObjectClass): Likewise.
1751 (MethodClass): Likewise.
1752 (ThreadGroupClass): Likewise.
1753 (NativeThreadClass): Likewise.
1754 * boehm.cc (ObjectClass): Removed.
1755 (ClassClass): Removed.
1756 (_Jv_MarkObj): Use `class$' form.
1757 * gcj/field.h (JvFieldIsRef): Use `class$' form.
1760 2000-10-05 Warren Levy <warrenl@cygnus.com>
1762 * Makefile.am: Removed java/io/Replaceable.java and
1763 java/io/Resolvable.java.
1764 * Makefile.in: Rebuilt.
1765 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
1767 * java/io/ObjectInputStream.java (processResolution): Fixed typo
1769 (processResolution): Handle readResolve method via reflection with
1770 removal of Resolvable interface.
1771 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
1772 method via reflection with removal of Replaceable interface.
1773 * java/io/Replaceable.java: Removed.
1774 * java/io/Resolvable.java: Removed.
1775 * java/security/Key.java (serialVersionUID): New field.
1776 * java/security/Provider.java (serialVersionUID): New field.
1777 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
1779 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
1781 * java/sql/DataTruncation.java (serialVersionUID): New field.
1782 * java/sql/SQLException.java (serialVersionUID): New field.
1783 * java/sql/SQLWarning.java (serialVersionUID): New field.
1784 * java/util/Date.java (serialVersionUID): New field.
1785 (millis): Made transient.
1786 (readObject): New method.
1787 (writeObject): New method.
1789 2000-10-05 Tom Tromey <tromey@cygnus.com>
1791 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
1793 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
1795 * prims.cc (_Jv_argv, _Jv_argc): New fields.
1796 (JvRunMain): Set _Jv_argv and _Jv_argc.
1797 * java/awt/Component.java: Minor fixes.
1798 * java/awt/Image.java (UndefinedProperty): Initialize final field.
1799 * java/awt/Toolkit.java (systemEventQueue): Removed.
1800 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
1801 * java/awt/Window.java (getToolkit): Don't call super.
1802 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
1803 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
1804 * gnu/awt/gtk/GtkComponentPeer.java: New file.
1805 * gnu/awt/gtk/GtkContainerPeer.java: New file.
1806 * gnu/awt/gtk/GtkFramePeer.java: New file.
1807 * gnu/awt/gtk/GtkMainThread.java: New file.
1808 * gnu/awt/gtk/GtkToolkit.java: New file.
1809 * gnu/awt/gtk/GtkWindowPeer.java: New file.
1810 * gnu/awt/gtk/gtkcommon.cc: New file.
1811 * gnu/awt/gtk/gtkcommon.h: New file.
1812 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
1813 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
1814 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
1815 * gnu/awt/gtk/natGtkMainThread.cc: New file.
1816 * gnu/awt/gtk/natGtkToolkit.cc: New file.
1817 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
1819 2000-09-30 Tom Tromey <tromey@cygnus.com>
1821 * posix-threads.cc (_Jv_CondWait): Check to see if we are
1822 interrupted before modifying the cv's wait set.
1825 2000-09-30 Hans Boehm <boehm@acm.org>
1826 Bryce McKinlay <bryce@albatross.co.nz>
1828 Implement bitmap descriptor based marking for Boehm GC.
1830 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
1831 * configure: Rebuilt.
1832 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
1833 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
1834 method get_finalizer().
1835 (struct _Jv_ArrayVTable): Ditto. Declare method array with
1836 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
1837 (_Jv_AllocObj): Add new jclass parameter.
1838 (_Jv_AllocArray): Ditto.
1839 (_Jv_BuildGCDescr): New prototype.
1840 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
1841 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
1842 get_finalizer() instead of direct finalizer vtable offset.
1843 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
1844 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
1845 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
1846 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
1847 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
1848 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
1849 (_Jv_DetermineVTableIndex): Ditto.
1850 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
1851 calculations to account for new gc_descr field.
1852 * boehm.cc: #include gc_gcj.h.
1853 (obj_kind_x, obj_free_list): `#if 0'-ed away.
1854 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
1855 New commentary from HB. Mark the classes vtable.
1856 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
1857 (GC_DEFAULT_DESCR): New #define.
1858 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
1859 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
1860 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
1861 scan conservativly if size is less than min_heap_addr. Set vtable
1862 pointer of new object before returning.
1863 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
1864 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
1865 allocation for obj_kind_x.
1866 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
1867 (_Jv_AllocObj): Set vtable on returned object.
1868 (_Jv_AllocArray): Ditto.
1869 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
1870 (_Jv_NewPrimArray): Ditto.
1871 (_Jv_AllocObj): Declare as a friend.
1872 (_Jv_AllocArray): Ditto.
1873 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
1874 from &ObjectClass into new array class. Remove offset-by-one
1875 adjustments from `method' size calculations to account for gc_descr
1878 2000-09-26 Tom Tromey <tromey@cygnus.com>
1880 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
1881 `remove', not `add'.
1883 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
1885 * java/lang/natSystem.cc (file_encoding): Added return statement.
1887 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1889 * Makefile.am: Re-work shell commands that exceeded command-line
1891 * Makefile.in: Rebuilt.
1893 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
1895 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
1896 * java/lang/natDouble.cc: Likewise.
1897 * java/lang/reflect/natMethod.cc: Likewise.
1898 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
1900 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
1902 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
1904 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
1905 * acinclude.m4: Arrange for automake to not bring in a new
1906 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
1907 * Makefile.am: Leave it up to automake to subst GCJ.
1908 * aclocal.m4, configure, Makefile.in: Rebuilt.
1910 2000-09-13 Tom Tromey <tromey@cygnus.com>
1912 * java/lang/reflect/natArray.cc (BooleanClass): New define.
1913 (get): Ensure Boolean class is initialized.
1914 * java/lang/reflect/natField.cc (BooleanClass): New define.
1915 (get): Ensure Boolean class is initialized.
1917 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
1919 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
1920 Initialize with anonymous class.
1921 (compareToIgnoreCase): New method.
1923 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
1924 (uncaughtException): Set had_uncaught_exception.
1925 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
1926 exit with error status if set.
1927 (_Jv_RunMain): Ditto.
1929 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
1931 * configure: Rebuilt with new ../libtool.m4.
1933 2000-09-11 Tom Tromey <tromey@cygnus.com>
1935 * java/lang/reflect/Field.java (toString): Don't rely on
1938 2000-09-08 Tom Tromey <tromey@cygnus.com>
1940 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
1941 default decoder use iconv.
1942 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
1943 Let default encoder use iconv.
1944 * configure: Rebuilt.
1945 * configure.in: Check for nl_langinfo and <langinfo.h>.
1946 * java/lang/natSystem.cc (file_encoding): New function.
1947 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
1949 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
1951 * acinclude.m4: Simplify the tests for CC and CXX.
1952 * aclocal.m4, configure: Rebuilt.
1954 * acinclude.m4: Include libtool macros from the source tree.
1955 * aclocal.m4, configure: Rebuilt.
1957 2000-09-08 Warren Levy <warrenl@cygnus.com>
1959 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
1960 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
1961 * java/io/File.java (writeObject): Added.
1962 (readObject): Added.
1963 (serialVersionUID): Added.
1964 * java/io/ObjectOutputStream.java (writeObject): Initialized
1965 fieldsAlreadyWritten before recursion rather than after.
1966 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
1967 * java/io/OptionalDataException.java (serialVersionUID): Added.
1968 (OptionalDataException): Made package private.
1969 * java/io/SyncFailedException.java (SyncFailedException): Removed
1970 default constructor to match spec.
1971 * java/lang/Boolean.java (serialVersionUID): Added.
1972 * java/lang/Byte.java (serialVersionUID): Added.
1973 * java/lang/Character.java (serialVersionUID): Added.
1974 * java/lang/Double.java (serialVersionUID): Added.
1975 * java/lang/Float.java (serialVersionUID): Added.
1976 * java/lang/Integer.java (serialVersionUID): Added.
1977 * java/lang/Long.java (serialVersionUID): Added.
1978 * java/lang/Number.java (serialVersionUID): Added.
1979 * java/lang/Short.java (serialVersionUID): Added.
1980 * java/lang/String.java (serialVersionUID): Added.
1981 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
1983 * java/lang/reflect/InvocationTargetException.java
1984 (serialVersionUID): Added.
1985 * java/net/URL.java (handler): Made transient.
1986 (hashCode): Added field for serialization, per spec. and use
1987 cached value if available.
1988 (serialVersionUID): Added.
1989 (URL): Initialize hashCode.
1990 (set): Adjust hashCode.
1991 (readObject): New Method to initialize the protocol handler when
1993 (writeObject): New method.
1994 * java/text/BreakIterator.java: Removed 'implements Serializable'.
1995 * java/text/Collator.java: Removed 'implements Serializable'.
1996 * java/util/GregorianCalendar.java (serialVersionUID): Added.
1997 * java/util/Properties.java (serialVersionUID): Added.
1998 * java/util/Random.java (serialVersionUID): Added.
1999 (seed): Made private.
2000 (nextNextGaussian): Made private.
2001 (haveNextNextGaussian): Made private.
2002 * java/util/Stack.java (serialVersionUID): Added.
2003 * java/util/TimeZone.java (serialVersionUID): Added.
2004 * java/util/Vector.java (serialVersionUID): Added.
2006 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
2008 * Makefile.am (Thread.h): Don't be friends with native threads
2010 * Makefile.in: Rebuilt.
2011 * java/lang/Thread.java (interrupt_flag): Make package-private.
2013 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
2015 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2016 to avoid long long division.
2018 2000-09-06 Tom Tromey <tromey@cygnus.com>
2020 * java/lang/reflect/Constructor.java (toString): Use `getName' for
2022 * java/lang/reflect/Method.java (toString): Use `getName' for
2025 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2026 `args' if method takes no parameters.
2028 Fix for PR java.lang/339:
2029 * java/lang/natPosixProcess.cc (fail): New function.
2030 (cleanup): New function.
2031 (startProcess): Use them. Create pipe so child can communicate
2032 exec failure back to parent.
2034 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2036 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2038 (send): Undo last patch. Remove the label only.
2040 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
2042 * java/net/natInetAdress.cc: Ditto.
2044 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2046 2000-09-05 Tom Tromey <tromey@cygnus.com>
2048 * doc/cni.sgml: Updated from master copy.
2050 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
2052 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2054 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2056 * java/lang/fdlibm.h: #undef __P if previously defined.
2057 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2058 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
2062 2000-09-04 Tom Tromey <tromey@cygnus.com>
2064 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2067 2000-09-04 Anthony Green <green@redhat.com>
2069 Fix for PR java.io/203:
2070 * java/io/File.java (createTempFile): Obey directory argument.
2071 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
2072 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2073 variable to set java.io.tmpdir on non-WIN32 systems.
2075 2000-09-04 Anthony Green <green@redhat.com>
2077 * java/io/File.java (deleteOnExit): New method.
2078 * gnu/gcj/runtime/FileDeleter.java: New class.
2079 * java/lang/natRuntime.cc (exit): Call
2080 FileDeleter.deleteOnExitNow()
2081 * Makefile.am: Add FileDeleter.java.
2082 * Makefile.in: Rebuilt.
2084 2000-09-02 Tom Tromey <tromey@cygnus.com>
2086 * Makefile.in: Rebuilt.
2087 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2088 environment variable.
2090 2000-09-01 Andrew Haley <aph@redhat.com>
2092 * java/io/StreamTokenizer.java: Don't throw a
2093 NumberFormatException if a field is numeric as far as the
2094 StreamTokenizer is concerned but not as far as Double.valueOf() is
2095 concerned: return a zero instead.
2097 2000-08-30 Tom Tromey <tromey@cygnus.com>
2099 * Makefile.in: Rebuilt.
2100 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2102 2000-08-28 Tom Tromey <tromey@cygnus.com>
2104 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2105 gnu/gcj/awt/ComponentDataBlitOp.java,
2106 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2107 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2108 java/awt/color/ICC_ColorSpace.java,
2109 java/awt/color/ICC_Profile.java,
2110 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2111 java/awt/image/ComponentColorModel.java,
2112 java/awt/image/ComponentSampleModel.java,
2113 java/awt/image/DataBuffer.java,
2114 java/awt/image/DataBufferByte.java,
2115 java/awt/image/DataBufferInt.java,
2116 java/awt/image/DataBufferUShort.java,
2117 java/awt/image/DirectColorModel.java,
2118 java/awt/image/IndexColorModel.java,
2119 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2120 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2121 java/awt/image/SinglePixelPackedSampleModel.java,
2122 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2123 Removed Latin-1 copyright symbols.
2124 * java/util/zip/ZipFile.java: Indentation fixes.
2126 2000-08-27 Mark Wielaard <mark@klomp.org>
2128 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2129 constructor, close can delete the file, finalize calls close.
2130 * java/util/jar/JarFile.java: Constructor that takes mode now
2133 2000-08-27 Anthony Green <green@redhat.com>
2135 * java/util/ArrayList.java, java/util/Timer.java,
2136 java/util/LinkedList.java, java/util/TimerTask.java,
2137 java/util/HashMap.java, java/util/AbstractMap.java,
2138 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2139 java/util/SortedSet.java: Imported from GNU Classpath.
2140 * Makefile.in: Rebuilt.
2141 * Makefile.am: Added new files.
2143 2000-08-26 Anthony Green <green@redhat.com>
2145 * Makefile.in: Rebuilt.
2146 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2149 * prims.cc: Include ClassLoader.h.
2150 (_Jv_RunMain): When executing jar files, classpath must be the jar
2151 file only. Lose our reference to the system ClassLoader in order
2152 to get a new one with the correct classpath.
2153 * java/lang/natSystem.cc (init_properties): When executing a jar
2154 file, only use the jar file for java.class.path.
2156 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2157 for bytecode archives.
2159 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2160 exists, but not Main-Class.
2162 2000-08-23 Mark Wielaard <mark@klomp.org>
2164 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2165 return -1 when fill() has no more data for the Inflater.
2167 2000-08-23 Mark Wielaard <mark@klomp.org>
2169 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2170 write(String) already does.
2172 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
2174 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2175 to `alive_flag', call `init'.
2176 (init): New native method.
2177 * gnu/gcj/jni/natNativeThread.cc (init): New native method
2180 2000-08-21 Mark Wielaard <mark@klomp.org>
2182 * Makefile.in: Rebuilt.
2183 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2185 (java/lang/reflect/Field.h): Likewise.
2186 (java/lang/reflect/Method.h): Likewise.
2187 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2190 2000-08-21 Tom Tromey <tromey@cygnus.com>
2192 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2195 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
2197 * java/lang/natSystem.cc (init_properties): Change sourceware
2198 reference to sources.redhat.com.
2200 * include/java-props.h: Add _Jv_Jar_Class_Path.
2201 * prims.cc: Ditto. Set it from `gij -jar file' option.
2203 * java/lang/natSystem.cc (init_properties): Set java.class.path
2205 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2207 * java/util/PropertyPermission.java: Import from GNU Classpath.
2208 * Makefile.in: Rebuilt.
2209 * Makefile.am: Add java/util/PropertyPermission.java.
2210 * java/lang/System.java: Add setProperty method.
2212 * gij.cc (main): Add -jar option to execute jar files.
2213 (help): Describe -jar option.
2214 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2215 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2216 * gnu/gcj/runtime/FirstThread.java (main): New method.
2218 * java/util/jar/Attributes.java: Correct comment spelling.
2220 2000-08-20 Mark Wielaard <mark@klomp.org>
2222 * java/util/zip/Adler32.java: Make private variables really private
2223 * java/util/zip/CRC32.java: Make private variables really private
2224 * java/util/zip/CheckedInputStream.java: skip() could skip to much
2226 * java/util/zip/InflaterInputStream.java: skip() could skip to
2228 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2229 * java/util/zip/ZipFile.java: size() new 1.2 method
2230 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2231 ZipEntry. since 1.2 available() always returns just 1 or 0 when
2234 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
2236 * java/util/jar/JarFile.java: Don't call
2237 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
2240 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
2242 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2243 Read the entire contents of the class file, not just what is
2246 * java/net/JarURLConnection.java: getEntry doesn't take any
2247 arguments. Return null if element is null.
2249 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2250 size from the archive, not the inflated size.
2252 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
2253 java.util.zip.ZipFile.getEntry.
2255 * gij.cc (help): Change sourceware reference to
2258 2000-08-19 Tom Tromey <tromey@cygnus.com>
2260 * java/util/zip/ZipInputStream.java (createZipEntry):
2263 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
2265 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2266 java/util/jar/JarException.java, java/util/jar/JarFile.java,
2267 java/util/jar/JarInputStream.java,
2268 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2269 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2270 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2271 java/security/cert/CRL.java, java/security/cert/CRLException.java,
2272 java/security/cert/Certificate.java,
2273 java/security/cert/CertificateEncodingException.java,
2274 java/security/cert/CertificateException.java,
2275 java/security/cert/CertificateExpiredException.java,
2276 java/security/cert/CertificateFactory.java,
2277 java/security/cert/CertificateFactorySpi.java,
2278 java/security/cert/CertificateNotYetValidException.java,
2279 java/security/cert/CertificateParsingException.java,
2280 java/security/cert/X509CRL.java,
2281 java/security/cert/X509CRLEntry.java,
2282 java/security/cert/X509Certificate.java,
2283 java/security/cert/X509Extension.java: Imported from Classpath.
2284 * java/util/Hashtable.java: Imported from Classpath.
2286 * java/util/zip/ZipInputStream.java: Create stub for
2289 * gcj/javaprims.h: Updated class list.
2291 * Makefile.in, gcj/Makefile.in: Rebuilt.
2292 * Makefile.am (ordinary_java_source_files): Add these new classes.
2294 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2296 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2297 * gnu/gcj/awt/GLightweightPeer.java: New file.
2298 * java/awt/BorderLayout.java: Implemented all methods.
2299 * java/awt/Button.java (actionListener, actionCommand): Renamed
2300 and modifier change.
2301 (addNotify): Call super.
2302 (dispatchEventImpl): New method.
2303 (getListeners): New method.
2304 (label): Made package-private, not private.
2305 * java/awt/Canvas.java: Implemented class body.
2306 * java/awt/Color.java (brighter): New method.
2307 (darker): New method.
2308 (hashCode): New method.
2309 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2310 (getGraphicsConfiguration): Delegate to
2311 getGraphicsConfigurationImpl().
2312 (getGraphicsConfigurationImpl): New method.
2313 (getToolkit): Only return value from peer if not null.
2314 (isDisplayable): Check with parent.
2315 (isShowing): No parent implies not showing.
2316 (getForeground): Check parent property if local is null.
2317 (getBackground): Likewise.
2318 (getFont): Likewise.
2319 (setForeground): Inform peer.
2320 (setBackground): Likewise
2321 (setLocale): Invalidate component.
2322 (getColorModel): Implemented.
2323 (setLocation): Invalidate, or ignore if no change.
2324 (setSize): Invalidate, or ignore if no change.
2325 (setBounds): Invalidate, or ignore if no change.
2326 (isOpaque): By default, heavyweight implies opaque.
2327 (isLightweight): Implemented.
2328 (getMaximumSize): Implemented.
2329 (doLayout): Implemented, NOP.
2330 (validate): Implemented, NOP.
2331 (invalidate): Only propagate to parent if parent was valid.
2332 (getGraphics): Implemented.
2333 (getFontMetrics): Implemented.
2334 (update): Implemented.
2335 (paintAll): Implemented.
2336 (repaint): Implemented all repaint methods.
2337 (print): Implemented.
2338 (printAll): Implemented.
2339 (createImage): Implemented.
2340 (dispatchEvent): Give the peer a chance to handle the event.
2341 (dispatchEventImpl): Dispatch paint events.
2342 (enableEvents): Lightweights enable events on parent component.
2343 (coalesceEvents): Coalesce paint events, and select event type
2345 (coalescePaintEvents): New method.
2346 (processEvent): Fix unfortunate ordering of statements, and call
2347 correct method for MOUSE_CLICKED.
2348 (processPaintEvent): New method.
2349 (addNotify): Allow container to notify children before event
2350 mask is set in peer.
2351 (addNotifyContainerChildren): New method.
2352 (removeNotify): Visibility should not change on removeNotify.
2353 (paramString): Implemented.
2354 (list): Implemented two of the list methods.
2355 * Container (myInsets): Removed, insets are managed by peer.
2356 (getInsets): Query peer.
2357 (addImpl): Fix reparenting, enable events for lightweights,
2358 initialize component array.
2359 (validate): Call doLayout in validateTree() instead.
2360 (validateTree): Do nothing if already valid. Call beginValidate(),
2361 endValidate() on peer. Call validateTree() instead of validate()
2362 for children that are containers. Mark valid after validation of
2364 (setFont): Partial implementation.
2365 (paint): Implemented.
2366 (visitChildren): New method.
2367 (visitChild): New method.
2368 (update): Implemented.
2369 (print): Implemented.
2370 (paintComponents): Implemented.
2371 (printComponents): Consider translation and clipping.
2372 (getComponentAt): Ignore invisible children. Return this if no
2374 (addNotify): Call super.
2375 (addNotifyContainerChildren): New method.
2376 (paramString): Implemented.
2377 (list): Implemented.
2378 * java/awt/EventQueue (invokeAndWait): Get system event queue the
2380 (invokeLater): Likewise.
2381 (isDispatchThread): Likewise.
2382 * java/awt/FontMetrics (getLeading): Formula change.
2383 (getDescent): Consider leading also.
2384 (getMaxAscent): Default to getAscent().
2385 (getMaxDescent): Default to getDescent.
2386 (getMaxAdvance): Return value signifying unknown.
2387 (charWidth): Both methods implemented.
2388 (charsWidth): Implemented.
2389 (bytesWidth): Implemented.
2390 (getWidths): Implemented.
2391 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2393 (Frame): Rearragend constuctor chaining to disallow null being
2394 passed as a graphics configuration.
2395 (getTitle): Return empty string if null.
2397 (getIconImage): New method.
2398 (setIconImage): New method.
2399 (finalize): New method.
2400 (setMenuBar): Notify peer.
2401 (isResizable): New method.
2402 (setResizable): New method.
2403 (getState): New method.
2405 (remove): Implemented.
2406 (removeNotify): New method.
2407 (getFrames): New method.
2408 * java/awt/Graphics.java: Implemented body of class.
2409 * java/awt/Graphics2D.java: New file.
2410 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2411 * java/awt/Image.java: Implemented body of class.
2412 * java/awt/Panel.java (Panel): Call correct super constructor.
2413 (addNotify): Implemented.
2414 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2415 * java/awt/RenderingHints.java: New file.
2416 * java/awt/Toolkit.java (createComponent): Implemented.
2417 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2418 * java/awt/Window.java (Window): Two new constructors. Reordered
2419 constructor chaining.
2420 (getGraphicsConfigurationImpl): New method.
2421 (finalize): Call super.
2422 (addNotify): Call super.
2423 (pack): Do layout stuff.
2424 (show): Ensure that peer exists and that component is valid.
2425 (dispose): Dispose owned children.
2426 (getOwner): Simplify code, casting null pointers is valid.
2427 (getGraphicsConfiguration): Ask peer if local value is null.
2428 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2430 * java/awt/image/BufferedImage.java: New file.
2431 * java/awt/image/RasterOp.java: New file.
2432 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2433 More powerfull replacement for getColorModel().
2434 (getColorModel) Removed.
2435 (setEventMask) New method.
2436 * Makefile.am: Added new files.
2437 * Makefile.in: Rebuilt.
2439 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
2441 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2442 (finit_leg_name): New global.
2443 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2444 `$finit$'. This is a backward compatibility hack.
2445 (java::lang::Class::_getMethods): Likewise.
2447 2000-08-15 Andrew Haley <aph@cygnus.com>
2449 * include/jvm.h (_Jv_HashCode): New hash code.
2451 2000-08-15 Tom Tromey <tromey@cygnus.com>
2453 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2455 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
2457 * THANKS: More thanks.
2459 2000-08-10 Tom Tromey <tromey@cygnus.com>
2461 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2463 (connect): Likewise.
2465 (getOption): Likewise.
2466 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2467 case when errno not set.
2470 (receive): Likewise.
2471 (mcastGrp): Likewise.
2472 (setOption): Likewise.
2473 (getOption): Likewise.
2475 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
2476 John Stracke <francis@ecal.com>
2478 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2479 (connect): Don't falsely claim HTTP/1.1 compliance. Call
2481 (disconnect): Don't unset connected flag.
2482 (getHeaderField (String)): Call connect() if not connected.
2483 (getHeaderField (int)): Ditto.
2484 (getHeaderFieldKey): Ditto.
2485 (getHttpHeaders): Don't call connect().
2486 * java/net/HttpURLConnection.java (instanceFollowRedirects,
2487 gotResponseVals): New fields.
2488 (getResponseCode): Call getResponseVals() conditionally.
2489 (getResponseMessage): Ditto.
2490 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
2492 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
2494 * Makefile.am: Move beans and applet classes to awt_java_source_files.
2495 * Makefile.in: Rebuilt.
2496 * java/awt/Color.java (getTransparency): New method.
2497 * java/awt/Component.java: Various updates.
2498 * java/awt/Container.java (removeNotify): Call super.removeNotify()
2499 after dealing with children.
2500 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2501 * java/awt/Window.java: Various new methods and updates.
2502 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2504 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2505 * java/awt/event/WindowEvent.java (paramString): Ditto.
2506 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2508 * java/awt/geom/Point2D.java (clone): Ditto.
2509 * java/awt/geom/RectangularShape.java (clone): Ditto.
2510 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2511 isAlphaPremultiplied): Make package-private, not private.
2513 2000-08-08 Tom Tromey <tromey@cygnus.com>
2515 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2516 surrogate characters.
2517 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2519 (write): Correct handling of surrogate characters.
2521 2000-08-07 Tom Tromey <tromey@cygnus.com>
2523 * java/lang/reflect/Method.java (hashCode): Use getName().
2524 (toString): Likewise.
2525 * java/lang/reflect/natMethod.cc (getType): Initialize
2528 * java/lang/reflect/Method.java (toString): Use Class.getName, not
2530 * java/lang/reflect/Field.java (toString): Correct formatting.
2533 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2535 (receive): Streamlined.
2537 2000-08-05 Tom Tromey <tromey@cygnus.com>
2539 * java/io/PrintWriter.java: Merged comments from Classpath.
2540 (printlnUnsynchronized): Removed.
2541 (println()): Print the separator.
2542 (println): Call println(), not printlnUnsynchronized.
2543 (out): Now protected, to match spec.
2545 2000-08-04 Tom Tromey <tromey@cygnus.com>
2547 * java/io/StreamTokenizer.java (TT_NONE): Now private.
2548 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
2551 2000-08-03 Warren Levy <warrenl@cygnus.com>
2553 * java/io/ObjectInputStream.java (readFields): Turn off
2554 readDataFromBlock while reading via GetField.
2555 (GetField$1.get(String, Object)): Pass Class of default value to
2557 (getField): Allow for null default values.
2559 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2560 (PutField$1.put): Fixed calls of checkType in most of the put
2561 methods to pass the correct parameter.
2562 (PutField$1.put(String, Object)): Allow for null value arg.
2563 (PutField$1.write): Turn off writeDataAsBlocks while writing via
2566 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2567 typo in spec'ed field name.
2568 (getSerialPersistentFields): Changed spelling of method to match
2569 the correct spelling of the spec'ed field name.
2571 2000-08-03 Tom Tromey <tromey@cygnus.com>
2573 * Makefile.in: Rebuilt.
2574 * Makefile.am (awt_java_source_files): Added new files.
2576 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2578 * Makefile.am: Add new AWT stubs.
2579 * java/awt/Canvas.java: New placeholder class.
2580 * java/awt/Checkbox.java: Ditto.
2581 * java/awt/CheckboxMenuItem.java: Ditto.
2582 * java/awt/Choice.java: Ditto.
2583 * java/awt/Dialog.java: Ditto.
2584 * java/awt/FileDialog.java: Ditto.
2585 * java/awt/List.java: Ditto.
2586 * java/awt/ScrollPane.java: Ditto.
2587 * java/awt/TextField.java: Ditto.
2588 * java/awt/datatransfer/Clipboard.java: Ditto.
2589 * java/awt/Component.java (treeLock): Now a static String. Add comment.
2590 * java/awt/MenuItem.java (MenuItem): Add default constructor.
2591 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
2592 Some commented out. Partially implemented.
2593 * java/awt/natToolkit.cc: Removed file.
2595 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
2597 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2598 Fixes "make -j" builds.
2599 * Makefile.in: Rebuild.
2601 2000-08-02 Tom Tromey <tromey@cygnus.com>
2603 * Makefile.in: Rebuilt.
2604 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2605 * java/net/natPlainSocketImpl.cc: Include posix.h.
2606 (accept): Use _Jv_select.
2607 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2608 (receive): Use _Jv_select.
2609 * java/io/natFileDescriptorPosix.cc: Include posix.h.
2610 (available): Use _Jv_select.
2611 * java/lang/natSystem.cc: Include posix.h.
2612 (currentTimeMillis): Use _Jv_gettimeofday.
2613 * include/posix.h: New file.
2614 * posix.cc: New file.
2616 * scripts/encodings.pl: New file.
2617 * Makefile.in: Rebuilt.
2618 * Makefile.am (convert_source_files): Added IOConverter.java.
2619 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2621 (getDefaultDecodingClass): Canonicalize default encoding name.
2622 (getEncoder): Likewise.
2623 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2625 (getDefaultDecodingClass): Canonicalize default encoding name.
2626 (getDecoder): Likewise.
2627 * gnu/gcj/convert/IOConverter.java: New file.
2629 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
2631 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2632 to match C declaration in ffi.h.
2633 * Makefile.am: Add java/awt/Button.java.
2634 * Makefile.in: Rebuilt.
2636 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
2638 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2639 cast of the second argument to `ffi_raw_call' changed to match
2642 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
2644 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2645 argument to `ffi_raw_call' changed to match prototype.
2647 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
2649 * java/awt/Component.java (toString): Implemented.
2650 * java/awt/Container.java (addImpl): Remove FIXME. Only call
2651 dispatchEvent() to dispatch the event.
2652 (removeImpl): Ditto.
2654 2000-07-30 Anthony Green <green@redhat.com>
2656 * java/awt/Component.java: Add treeLock object.
2657 (getTreeLock): Implement.
2658 (isShowing): Implement.
2660 2000-07-30 Tom Tromey <tromey@cygnus.com>
2662 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2664 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2666 * java/awt/Window.java (addNotify): Wrote.
2667 (addWindowListener): Wrote.
2669 (getWarningString): Wrote.
2670 (processEvent): Wrote.
2671 (processWindowEvent): Wrote.
2672 (removeWindowListener): Wrote.
2673 (show): Call validate(), setVisible().
2677 * java/awt/Toolkit.java (createWindow): Declare.
2679 * java/awt/Frame.java (addNotify): Use getToolkit to find
2682 * java/awt/Component.java (invalidate): Wrote.
2684 (getToolkit): Wrote.
2686 * java/awt/Container.java (addContainerListener): Removed
2688 (removeContainerListener): Likewise.
2690 (add(Component)): Use it.
2691 (add(String,Component)): Likewise.
2692 (add(Component,int)): Likewise.
2693 (add(Component,Object)): Likewise.
2694 (add(Component,Object,int)): Likewise.
2696 (getAlignmentX): Wrote.
2697 (getAlignmentY): Wrote.
2698 (getComponentAt): Wrote.
2699 (getMaximumSize): Wrote.
2700 (invalidate): Wrote.
2701 (list(PrintStream,int)): Wrote.
2702 (list(PrintWriter,int)): Wrote.
2703 (getMinimumSize): Wrote.
2704 (getPreferredSize): Wrote.
2705 (printComponents): Wrote.
2706 (processContainerEvent): Look at containerListener, not
2708 (remove): Added event processing and peer destruction.
2709 (removeAll): Use remove.
2710 (removeNotify): Wrote.
2712 (validateTree): Wrote.
2714 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2715 * java/awt/Label.java (addNotify): Do nothing if peer exists.
2716 * java/awt/Container.java (addNotify): Don't create Container
2718 * java/awt/Button.java (addNotify): Do nothing if peer exists.
2720 2000-07-30 Tom Tromey <tromey@cygnus.com>
2722 * java/awt/Container.java (remove(int)): Wrote.
2723 (remove(Component)): Wrote.
2724 (add(Component)): Wrote.
2725 (add(Component,int)): Wrote.
2727 (addNotify): Set our own peer.
2728 * java/awt/Scrollbar.java (listeners): Changed type.
2729 (Scrollbar): Don't initialize listeners.
2731 (setValue): Call setValues.
2732 (setMinimum): Likewise.
2733 (setMaxPriority): Likewise.
2734 (setVisibleAmount): Likewise.
2736 (setUnitIncrement): Forward to peer.
2737 (setLineIncrement): Call setUnitIncrement.
2738 (setPageIncrement): Call setBlockIncrement.
2739 (setBlockIncrement): Forward to peer.
2740 (addAdjustmentListener): Rewrote.
2741 (removeAdjustmentListener): Rewrote.
2742 (processAdjustmentEvent): Rewrote.
2743 (paramString): Wrote.
2744 * Makefile.in: Rebuilt.
2745 * Makefile.am (awt_java_source_files): Added Button.java.
2746 * java/awt/Button.java: New file.
2747 * java/awt/Toolkit.java (createLabel): Declare.
2748 (createButton): Likewise.
2749 (createScrollbar): Likewise.
2750 (createContainer): Likewise.
2751 * java/awt/Label.java (addNotify): Wrote.
2752 (setAlignment): Call setAlignment in the peer.
2753 (setText): Call setText in the peer.
2755 2000-07-28 Warren Levy <warrenl@cygnus.com>
2757 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
2758 NotSerializableException with just the class name.
2760 2000-07-26 Andrew Haley <aph@cygnus.com>
2762 * interpret.cc (continue1): Insert missing break into switch.
2764 2000-07-28 Warren Levy <warrenl@cygnus.com>
2766 * java/io/ObjectStreamException.java: Made constructors protected.
2768 2000-07-27 Tom Tromey <tromey@cygnus.com>
2770 * java/io/OutputStreamWriter.java (close): Only flush if not
2773 2000-07-27 Warren Levy <warrenl@cygnus.com>
2775 * mauve-libgcj: Activated serialization tests.
2776 * gcj/field.h (getModifiers): Mask off unknown flags.
2777 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
2778 spurious bits don't cause discrepancies.
2779 * java/io/ObjectOutputStream.java: Fixed typo in comment.
2780 * java/io/ObjectStreamClass.java: Fixed typos in comments.
2781 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
2782 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
2783 * java/lang/Throwable.java (serialVersionUID): New field.
2784 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
2785 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
2787 * java/lang/reflect/natMethod.cc: Ditto.
2788 * java/security/Key.java (serialVersionUID): Removed field for now.
2789 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
2790 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
2792 2000-07-22 Tom Tromey <tromey@cygnus.com>
2794 * java/awt/geom/RectangularShape.java (getPathIterator):
2797 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
2799 * libjava/java/awt/image/ColorModel.java: New file, replaces the
2800 stub libjava/java/awt/ColorModel.java which was located in the
2802 * libjava/java/awt/image/ComponentColorModel.java: New file.
2803 * libjava/java/awt/image/ComponentSampleModel.java: New file.
2804 * libjava/java/awt/image/DataBuffer.java: New file.
2805 * libjava/java/awt/image/DataBufferByte.java: New file.
2806 * libjava/java/awt/image/DataBufferInt.java: New file.
2807 * libjava/java/awt/image/DataBufferUShort.java: New file.
2808 * libjava/java/awt/image/DirectColorModel.java: New file.
2809 * libjava/java/awt/image/PackedColorModel.java: New file.
2810 * libjava/java/awt/image/Raster.java: New file.
2811 * libjava/java/awt/image/SampleModel.java: New file.
2812 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
2814 * libjava/java/awt/image/IndexColorModel.java: New file.
2815 * libjava/java/awt/image/ImageConsumer.java: Removed import of
2816 java.awt.ColorModel stub.
2818 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
2819 * gnu/gcj/util/Buffers.java: New file, utility class.
2821 * libjava/Makefile.am: Updated to include new files.
2822 * libjava/Makefile.in: Rebuilt.
2824 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
2826 * java/io/StreamTokenizer.java: Merged with classpath.
2828 2000-07-20 Tom Tromey <tromey@cygnus.com>
2830 * Makefile.in: Rebuilt.
2831 * Makefile.am (awt_java_source_files): Updated for new files.
2832 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
2833 * java/awt/Label.java: New file.
2834 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
2835 (createIntersection, createUnion, getBounds2D): New methods.
2836 * java/awt/Scrollbar.java: New file.
2837 * java/awt/Shape.java: Updated to 1.2.
2838 * java/awt/geom/AffineTransform.java: New file.
2839 * java/awt/geom/Ellipse2D.java: New file.
2840 * java/awt/geom/NoninvertibleTransformException.java: New file.
2841 * java/awt/geom/PathIterator.java: New file.
2842 * java/awt/geom/Rectangle2D.java: New file.
2843 * java/awt/geom/RectangularShape.java: New file.
2844 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
2845 * java/awt/geom/IllegalPathStateException.java: New file.
2847 * scripts/showval.java: New file.
2849 * scripts/classes.pl (scan): Print inner classes properly.
2850 * gcj/javaprims.h: Updated class list.
2852 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
2853 initialize String fields for interpreted classes. Fixes bug
2854 reported by Hans Boehm.
2856 * java/io/File.java (getParentFile): New method, from Classpath
2857 via Oskar Liljeblad.
2859 * java/util/Vector.java (remove(Object)): Implemented.
2861 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2863 * java/lang/natThrowable.cc (fillInStackTrace): Check for
2864 zero return from backtrace().
2866 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
2868 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
2870 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
2871 before calling notifyAll().
2873 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
2875 Add missing files from last check-in:
2876 * java/awt/image/ImageConsumer.java: New file.
2877 * java/awt/image/ImageProducer.java: New file.
2878 * java/awt/image/ImageObserver.java: New file.
2880 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2882 Merged implementation of java.applet from classpath:
2883 * java/applet/Applet.java: New file.
2884 * java/applet/AppletContext.java: New file.
2885 * java/applet/AppletStub.java: New file.
2886 * java/applet/AudioClip.java: New file.
2888 * Makefile.am: Added new java.applet classes.
2889 * Makefile.in: Rebuilt.
2891 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
2894 * java/util/ResourceBundle.java (getLocale): stub.
2895 * Makefile.am: Added new AWT classes.
2896 * Makefile.in: Rebuilt.
2897 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
2898 constructors. Fix toString() and paramString().
2899 * java/awt/AWTEventMulticaster.java: New class. Implemented.
2900 * java/awt/CheckboxGroup.java: New class.
2901 * java/awt/ColorModel.java: New class.
2902 * java/awt/Component.java: Added stubs for most methods. Implemented
2904 * java/awt/Container.java: ditto.
2905 * java/awt/ComponentOrientation.java: New class. Partly implemented.
2906 * java/awt/Cursor.java: ditto.
2907 * java/awt/Event.java: Fix paramString().
2908 * java/awt/EventQueue.java: New class. Implemented.
2909 * java/awt/Font.java: Added additional stub methods. Implemented
2911 * java/awt/FontMetrics.java: New class. Stubbed.
2912 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
2914 * java/awt/Insets.java: New class. Implemented.
2915 * java/awt/Menu.java: Add new methods. Partially implemented.
2916 * java/awt/MenuItem.java: Add new methods and fields. Partially
2918 * java/awt/MenuShortcut.java: New class. Implemented.
2919 * java/awt/Panel.java: New class. Placeholder.
2920 * java/awt/PopupMenu.java: New class. Stubbed.
2921 * java/awt/Rectangle.java: New class. Implemented.
2922 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
2923 * java/awt/event/ActionEvent.java: Implement paramString().
2924 * java/awt/event/AdjustmentEvent.java: Implement paramString().
2925 * java/awt/event/ComponentEvent.java: Implement paramString().
2926 * java/awt/event/ContainerEvent.java: Implement paramString().
2927 * java/awt/event/FocusEvent.java: Implement paramString().
2928 * java/awt/event/HierarchyBoundsAdapter.java: New class.
2929 * java/awt/event/HierarchyBoundsListener.java: New class.
2930 * java/awt/event/HierarchyEvent.java: New class.
2931 * java/awt/event/HierarchyListener.java: New class.
2932 * java/awt/event/InputMethodEvent.java: Implement paramString().
2933 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
2934 exception if !catchExceptions.
2935 * java/awt/event/ItemEvent.java: Implement paramString().
2936 * java/awt/event/KeyEvent.java: Implement paramString().
2937 * java/awt/event/MouseEvent.java: Implement paramString().
2938 * java/awt/event/PaintEvent.java: Implement paramString().
2939 * java/awt/event/TextEvent.java: Implement paramString().
2940 * java/awt/event/WindowEvent.java: Implement paramString().
2942 AWT Peer interfaces:
2943 * java/awt/peer/ButtonPeer.java: New file.
2944 * java/awt/peer/ListPeer.java: New file.
2945 * java/awt/peer/CanvasPeer.java: New file.
2946 * java/awt/peer/MenuBarPeer.java: New file.
2947 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
2948 * java/awt/peer/MenuComponentPeer.java: New file.
2949 * java/awt/peer/CheckboxPeer.java: New file.
2950 * java/awt/peer/MenuItemPeer.java: New file.
2951 * java/awt/peer/ChoicePeer.java: New file.
2952 * java/awt/peer/MenuPeer.java: New file.
2953 * java/awt/peer/ComponentPeer.java: Implemented.
2954 * java/awt/peer/PanelPeer.java: New file.
2955 * java/awt/peer/ContainerPeer.java: Implemented.
2956 * java/awt/peer/PopupMenuPeer.java: New file.
2957 * java/awt/peer/DialogPeer.java: New file.
2958 * java/awt/peer/ScrollPanePeer.java: New file.
2959 * java/awt/peer/FileDialogPeer.java: New file.
2960 * java/awt/peer/ScrollbarPeer.java: New file.
2961 * java/awt/peer/FontPeer.java: New file.
2962 * java/awt/peer/TextAreaPeer.java: New file.
2963 * java/awt/peer/FramePeer.java: Implemented.
2964 * java/awt/peer/TextComponentPeer.java: New file.
2965 * java/awt/peer/LabelPeer.java: New file.
2966 * java/awt/peer/TextFieldPeer.java: New file.
2967 * java/awt/peer/LightweightPeer.java: New file.
2968 * java/awt/peer/WindowPeer.java: Implemented.
2970 2000-07-06 Tom Tromey <tromey@cygnus.com>
2972 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
2973 Initialize static final String fields.
2975 2000-07-03 Tom Tromey <tromey@cygnus.com>
2977 * java/io/PrintWriter.java (print): Call write(String), not
2978 print(String). See PR libgcj/277.
2979 (print(String)): Use write, not out.write.
2981 2000-06-30 Tom Tromey <tromey@cygnus.com>
2983 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
2985 2000-06-27 Andrew Haley <aph@cygnus.com>
2987 * java/io/File.java (createTempFile): Close the FileDescriptor
2988 used to create a temp file. Fixes some of PR 203.
2989 * java/io/natFileDescriptorPosix.cc (open): Call garbage
2990 collection if we run out of file handles.
2992 2000-06-28 Warren Levy <warrenl@cygnus.com>
2994 * gnu/java/security/provider/Gnu.java: New file.
2995 * gnu/java/security/provider/SHA.java: New file.
2996 * gnu/java/security/provider/SHA1PRNG.java: New file.
2997 * Makefile.am: Added the above files.
2998 * Makefile.in: Rebuilt.
3000 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3002 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
3004 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3005 (destroyed_flag): Removed.
3006 (isDestroyed, removeGroup, removeThread): Test for parent == null.
3007 (activeCount): Added spec note.
3009 2000-06-27 Warren Levy <warrenl@cygnus.com>
3011 * java/security/Principal.java: New file.
3012 * Makefile.am: Added Principal.java.
3013 * Makefile.in: Rebuilt.
3015 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
3017 * java/awt/event/MouseEvent.java: Fixed coordinate space
3020 2000-06-27 Tom Tromey <tromey@cygnus.com>
3022 * java/io/PushbackInputStream.java (read): If there are characters
3023 in the buffer, don't also call super.read().
3024 * java/io/PushbackReader.java (read): If there are characters in
3025 the buffer, don't also call super.read().
3027 * java/lang/Double.java (valueOf): Call parseDouble().
3029 2000-06-26 Warren Levy <warrenl@cygnus.com>
3031 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3032 (newVal): Renamed to newValue.
3033 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3034 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3035 (revokeNow): Renamed to invalidateRefs.
3036 * java/io/OptionalDataException.java: Updated FIXME.
3037 (eof): New placeholder field.
3039 * java/io/WriteAbortedException.java (message): Made transient.
3040 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3041 * java/lang/Throwable.java (stackTrace): Made transient.
3042 * java/net/InetAddress.java: Made Serializable.
3043 * java/security/KeyPair.java: Made Serializable.
3044 * java/security/Provider.java: Replaced with Classpath version that
3045 implements serialization and proper methods.
3046 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3047 (limits): Renamed to choiceLimits.
3049 2000-06-24 Tom Tromey <tromey@cygnus.com>
3051 * java/lang/natDouble.cc (parseDouble): Renamed from
3053 * java/lang/Double.java (parseDouble): Renamed from
3054 doubleValueOf. Now public.
3056 2000-06-23 Andrew Haley <aph@cygnus.com>
3058 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3059 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3061 2000-06-23 Tom Tromey <tromey@cygnus.com>
3063 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3064 * java/lang/natDouble.cc: Always include <alloca.h>.
3065 Fix for PR libgcj/267.
3067 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
3069 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3070 comply with classpath VM spec.
3071 (add(Group)): Rename to addGroup().
3072 * java/lang/Thread.java (Thread): Use addThread().
3073 * java/lang/natThread.cc (finish_): Use removeThread().
3075 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
3077 * java/lang/ThreadGroup.java: Merged with classpath.
3078 * prims.cc (_Jv_RunMain): Don't use `main_group'.
3079 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3081 * java/lang/Thread.java (Thread): Bootstrap initial thread from
3082 ThreadGroup.root if Thread.currentThread is null. Honour the
3083 ThreadGroup's max priority setting.
3085 2000-06-18 Tom Tromey <tromey@cygnus.com>
3087 * java/lang/natClass.cc (forName): Removed dead code. Initialize
3088 returned class. For PR gcj/260.
3090 2000-06-16 Tom Tromey <tromey@cygnus.com>
3092 Fix for PR libgcj/261:
3093 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3095 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3096 argument. (This is a patch from long ago that somehow went
3099 2000-06-15 Tom Tromey <tromey@cygnus.com>
3101 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3105 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
3107 Fix for PR java.lang/258:
3108 * prims.cc (_Jv_PrimClass): Set state of primitive class to
3109 JV_STATE_DONE, to prevent accidental initialization.
3110 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
3111 _Jv_InterfaceAssignableFrom if target is an interface and source is an
3112 interface or an abstract class. Remove redundant initializeClass calls.
3113 Remove duplicate if_idt test.
3114 (_Jv_InterfaceAssignableFrom): New function.
3115 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3117 2000-05-31 Tom Tromey <tromey@cygnus.com>
3119 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3120 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3121 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3122 (NUM_OBJECT_METHODS): New define.
3123 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3124 `array_vtable' parameter. Added assertion.
3125 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3128 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
3130 * gcj/cni.h: Include <string.h>.
3131 * defineclass.cc: Include <alloca.h>.
3132 * interpret.cc: Ditto.
3133 * gij.cc: Include <stdlib.h>.
3135 2000-05-30 Tom Tromey <tromey@cygnus.com>
3137 * include/name-finder.h: Include <sys/wait.h>.
3138 (_Jv_name_finder::pid): Now of type `pid_t'.
3139 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3140 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3143 2000-05-24 Warren Levy <warrenl@cygnus.com>
3145 * java/io/ObjectOutputStream.java (writeObject): Use component type
3146 when writing arrays.
3149 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3151 Fix for PR libgcj/226:
3152 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3153 since this is an installed header.
3155 Fix for PR libgcj/228:
3156 * java/util/zip/ZipFile (getInputStream): Create inflater with
3159 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3160 with DataFormatException.
3162 2000-05-20 Tom Tromey <tromey@cygnus.com>
3164 * Makefile.in: Rebuilt.
3165 * Makefile.am (hack1): Removed.
3166 (awto_files): Likewise.
3167 (libgcjawt_la_SOURCES): Likewise.
3168 (EXTRA_libgcjawt_la_SOURCES): Likewise.
3169 (libgcjawt_la_DEPENDENCIES): Likewise.
3170 (libgcjawt_la_LIBADD): Likewise.
3171 (libgcjawt_la_LDFLAGS): Likewise.
3172 (libgcjawt_la_LINK): Likewise.
3173 ($(awt_java_source_files:.java=.class)): Likewise.
3174 (libgcj.zip): Don't depend on AWT files.
3175 (MOSTLYCLEANFILES): Don't include AWT files.
3176 ($(awto_files)): Removed.
3177 (nat_headers): Removed AWT files.
3178 (cond_awt_java_source_files): Removed.
3179 (ordinary_java_source_files): Added awt_java_source_files.
3180 * libgcj.spec.in (*lib): Removed -lgcjawt.
3181 * configure: Rebuilt.
3182 * configure.in: Removed --enable-java-awt option.
3184 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
3186 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3187 (ZipEntry): Copy the `name' field.
3188 (clone): Implement JDK1.2 method.
3189 (setCompressedSize): ditto.
3192 2000-05-19 Tom Tromey <tromey@cygnus.com>
3194 * java/io/BufferedWriter.java: Merged with Classpath.
3195 * java/io/BufferedOutputStream.java: Merged with Classpath.
3197 2000-05-16 Andrew Haley <aph@cygnus.com>
3199 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3200 build_ia64_frame_state.
3201 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3204 2000-05-15 Warren Levy <warrenl@cygnus.com>
3206 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3207 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3208 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3209 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3210 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3211 * gnu/gcj/beans/editors/FontEditor.java: Removed.
3212 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3213 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3214 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3215 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3216 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3217 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3218 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3219 * gnu/gcj/beans/editors/StringEditor.java: Removed.
3220 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3221 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3222 * gnu/gcj/io/NullOutputStream.java: Removed.
3223 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3224 * gnu/gcj/lang/ArrayHelper.java: Removed.
3225 * gnu/gcj/lang/ClassHelper.java: Removed.
3226 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3228 * gnu/java/beans/BeanInfoEmbryo.java: New file.
3229 * gnu/java/beans/EmptyBeanInfo.java: New file.
3230 * gnu/java/beans/ExplicitBeanInfo.java: New file.
3231 * gnu/java/beans/IntrospectionIncubator.java: New file.
3232 * gnu/java/beans/editors/ColorEditor.java: New file.
3233 * gnu/java/beans/editors/FontEditor.java: New file.
3234 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3235 * gnu/java/beans/editors/NativeByteEditor.java: New file.
3236 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3237 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3238 * gnu/java/beans/editors/NativeIntEditor.java: New file.
3239 * gnu/java/beans/editors/NativeLongEditor.java: New file.
3240 * gnu/java/beans/editors/NativeShortEditor.java: New file.
3241 * gnu/java/beans/editors/StringEditor.java: New file.
3242 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3243 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3244 * gnu/java/io/NullOutputStream.java: New file.
3245 * gnu/java/io/ObjectIdentityWrapper.java: New file.
3246 * gnu/java/lang/ArrayHelper.java: New file.
3247 * gnu/java/lang/ClassHelper.java: New file.
3248 * gnu/java/lang/reflect/TypeSignature.java: New file.
3250 * Makefile.am: Updated for moving Classpath files from gnu/gcj
3251 namespace back to the original Classpath gnu/java namespace.
3252 * Makefile.in: Rebuilt.
3254 * java/beans/Beans.java: Namespace change.
3255 * java/beans/EventSetDescriptor.java: Namespace change.
3256 * java/beans/Introspector.java: Namespace change.
3257 * java/beans/PropertyEditorManager.java: Namespace change.
3258 * java/io/ObjectInputStream.java: Namespace change.
3259 * java/io/ObjectOutputStream.java: Namespace change.
3260 * java/io/ObjectStreamClass.java: Namespace change.
3261 * java/io/ObjectStreamField.java: Namespace change.
3263 2000-04-21 Warren Levy <warrenl@cygnus.com>
3265 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3266 now that compiler patch is available.
3267 Removed unneeded System.loadLibrary.
3268 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3269 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3271 2000-04-19 Andrew Haley <aph@cygnus.com>
3273 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3274 and target classes have been initialized.
3276 2000-04-19 Andrew Haley <aph@cygnus.com>
3278 * java/lang/String.java: implement Serializable, Comparable.
3279 (compareTo (Object)): New method.
3281 2000-04-19 Warren Levy <warrenl@cygnus.com>
3283 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3284 instead of getField to retrieve non-public field.
3285 (getSerialPersistantFields): Ditto.
3287 2000-04-18 Warren Levy <warrenl@cygnus.com>
3289 * mauve-libgcj: Turned off object serialization tests temporarily
3290 due to compiler error.
3292 2000-04-17 Warren Levy <warrenl@cygnus.com>
3294 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3295 to avoid build problem.
3297 * mauve-libgcj: Turned on object serialization tests.
3299 2000-04-17 Tom Tromey <tromey@cygnus.com>
3301 * libgcj.spec.in (*lib): Added -lgcjawt.
3303 2000-04-17 Andrew Haley <aph@cygnus.com>
3305 * Makefile.am: Add new files:
3306 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3308 * Makefile.in: Rebuilt.
3310 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3311 interface that has no implementations.
3312 Check for an attempt to assign an abstract class to an interface.
3314 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3315 if we fail to find MessageDigest.getInstance ("SHA").
3317 * gnu/gcj/io/SimpleSHSStream.java: New file.
3318 * gnu/gcj/io/natSimpleSHSStream.java: New file.
3319 * gnu/gcj/io/shs.cc: New file.
3320 * gnu/gcj/io/shs.h: new file.
3322 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3325 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3326 punctuation from the classname of an array element.
3328 * gcj/javaprims.h: Add SimpleDigestStream.
3330 2000-04-17 Andrew Haley <aph@cygnus.com>
3332 * java/lang/natClass.cc (getPrivateField): Make recursive calls
3333 to getPrivateField for superclasses.
3335 2000-04-14 Andrew Haley <aph@cygnus.com>
3337 * Makefile.am: Add new files:
3338 java/io/ObjectOutputStream$PutField.h,
3339 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3340 java/io/natObjectOutputStream.cc
3341 * Makefile.in: Rebuilt.
3342 * gcj/Makefile.in: Rebuilt.
3343 * include/Makefile.in: Rebuilt.
3344 * java/lang/Class.h (getPrivateField): New method.
3345 (getPrivateMethod): Ditto.
3346 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3347 and java::io::ObjectStreamClass our friends.
3348 * java/lang/natClass.cc (getPrivateField): New method.
3349 (getPrivateMethod): Ditto.
3350 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3351 * gcj/javaprims.h: Add serialization classes.
3352 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3353 (setByteField): Ditto.
3354 (setCharField): Ditto.
3355 (setDoubleField): Ditto.
3356 (setFloatField): Ditto.
3357 (setIntField): Ditto.
3358 (setLongField): Ditto.
3359 (setShortField): Ditto.
3360 (setObjectField): Ditto.
3361 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3363 (getByteField): Ditto.
3364 (getCharField): Ditto.
3365 (getDoubleField): Ditto.
3366 (getFloatField): Ditto.
3367 (getIntField): Ditto.
3368 (getLongField): Ditto.
3369 (getShortField): Ditto.
3370 (getObjectField): Ditto.
3371 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3373 (getSerialPersistantFields): Ditto.
3374 (getDefinedSUID): Ditto.
3375 * java/io/natObjectOutputStream.cc: New file.
3376 * java/io/natObjectInputStream.cc: New file.
3378 2000-04-13 Warren Levy <warrenl@cygnus.com>
3380 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3381 problems. Revert to previous version to reproduce and when fixed.
3383 2000-04-13 Warren Levy <warrenl@cygnus.com>
3385 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3386 * gnu/gcj/io/NullOutputStream.java: New file.
3387 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3388 * java/io/BlockDataException.java: New file.
3389 * java/io/Externalizable.java: New file.
3390 * java/io/InvalidClassException.java: New file.
3391 * java/io/InvalidObjectException.java: New file.
3392 * java/io/NotActiveException.java: New file.
3393 * java/io/NotSerializableException.java: New file.
3394 * java/io/ObjectInput.java: New file.
3395 * java/io/ObjectInputStream.java: New file.
3396 * java/io/ObjectInputValidation.java: New file.
3397 * java/io/ObjectOutput.java: New file.
3398 * java/io/ObjectOutputStream.java: New file.
3399 * java/io/ObjectStreamClass.java: New file.
3400 * java/io/ObjectStreamConstants.java: New file.
3401 * java/io/ObjectStreamField.java: New file.
3402 * java/io/Replaceable.java: New file.
3403 * java/io/Resolvable.java: New file.
3404 * java/io/SerializablePermission.java: New file.
3405 * java/io/WriteAbortedException.java: New file.
3406 * java/security/BasicPermission.java: New file.
3407 * java/security/DigestOutputStream.java: New file.
3408 * java/security/Guard.java: New file.
3409 * java/security/Permission.java: New file.
3410 * java/security/PermissionCollection.java: New file.
3411 * Makefile.am: Added above files.
3412 * Makefile.in: Rebuilt.
3414 * java/beans/Beans.java (instantiate): Activated serialization code.
3415 * java/lang/SecurityManager.java (checkPermission): New method.
3417 2000-04-12 Warren Levy <warrenl@cygnus.com>
3419 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3420 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3421 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3422 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3423 * gnu/gcj/beans/editors/ColorEditor.java: New file.
3424 * gnu/gcj/beans/editors/FontEditor.java: New file.
3425 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3426 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3427 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3428 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3429 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3430 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3431 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3432 * gnu/gcj/beans/editors/StringEditor.java: New file.
3433 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3434 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3435 * gnu/gcj/lang/ArrayHelper.java: New file.
3436 * gnu/gcj/lang/ClassHelper.java: New file.
3437 * java/beans/BeanDescriptor.java: New file.
3438 * java/beans/BeanInfo.java: New file.
3439 * java/beans/Beans.java: New file.
3440 * java/beans/Customizer.java: New file.
3441 * java/beans/DesignMode.java: New file.
3442 * java/beans/EventSetDescriptor.java: New file.
3443 * java/beans/FeatureDescriptor.java: New file.
3444 * java/beans/IndexedPropertyDescriptor.java: New file.
3445 * java/beans/IntrospectionException.java: New file.
3446 * java/beans/Introspector.java: New file.
3447 * java/beans/MethodDescriptor.java: New file.
3448 * java/beans/ParameterDescriptor.java: New file.
3449 * java/beans/PropertyChangeEvent.java: New file.
3450 * java/beans/PropertyChangeListener.java: New file.
3451 * java/beans/PropertyChangeSupport.java: New file.
3452 * java/beans/PropertyDescriptor.java: New file.
3453 * java/beans/PropertyEditor.java: New file.
3454 * java/beans/PropertyEditorManager.java: New file.
3455 * java/beans/PropertyEditorSupport.java: New file.
3456 * java/beans/PropertyVetoException.java: New file.
3457 * java/beans/SimpleBeanInfo.java: New file.
3458 * java/beans/VetoableChangeListener.java: New file.
3459 * java/beans/VetoableChangeSupport.java: New file.
3460 * java/beans/Visibility.java: New file.
3461 * java/beans/beancontext/BeanContext.java: New file.
3462 * java/beans/beancontext/BeanContextChild.java: New file.
3463 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3464 * java/beans/beancontext/BeanContextChildSupport.java: New file.
3465 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3466 * java/beans/beancontext/BeanContextEvent.java: New file.
3467 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3468 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3469 * java/beans/beancontext/BeanContextProxy.java: New file.
3470 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3472 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3473 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3475 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3476 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3478 * java/beans/beancontext/BeanContextServices.java: New file.
3479 * java/beans/beancontext/BeanContextServicesListener.java: New file.
3480 * java/util/AbstractCollection.java: New file.
3481 * java/util/AbstractList.java: New file.
3482 * java/util/Arrays.java: New file.
3483 * Makefile.am: Added above files.
3484 * Makefile.in: Rebuilt.
3486 2000-04-11 Warren Levy <warrenl@cygnus.com>
3488 * java/awt/AWTError.java: New file.
3489 * java/awt/AWTEvent.java: New file.
3490 * java/awt/AWTException.java: New file.
3491 * java/awt/ActiveEvent.java: New file.
3492 * java/awt/Adjustable.java: New file.
3493 * java/awt/BorderLayout.java: New file.
3494 * java/awt/Color.java: New file.
3495 * java/awt/Component.java: New file.
3496 * java/awt/Container.java: New file.
3497 * java/awt/Dimension.java: New file.
3498 * java/awt/Event.java: New file.
3499 * java/awt/Font.java: New file.
3500 * java/awt/Frame.java: New file.
3501 * java/awt/Graphics.java: New file.
3502 * java/awt/IllegalComponentStateException.java: New file.
3503 * java/awt/Image.java: New file.
3504 * java/awt/ItemSelectable.java: New file.
3505 * java/awt/LayoutManager.java: New file.
3506 * java/awt/LayoutManager2.java: New file.
3507 * java/awt/Menu.java: New file.
3508 * java/awt/MenuBar.java: New file.
3509 * java/awt/MenuComponent.java: New file.
3510 * java/awt/MenuContainer.java: New file.
3511 * java/awt/MenuItem.java: New file.
3512 * java/awt/Paint.java: New file.
3513 * java/awt/PaintContext.java: New file.
3514 * java/awt/Point.java: New file.
3515 * java/awt/Rectangle.java: New file.
3516 * java/awt/Shape.java: New file.
3517 * java/awt/TextArea.java: New file.
3518 * java/awt/TextComponent.java: New file.
3519 * java/awt/Toolkit.java: New file.
3520 * java/awt/Transparency.java: New file.
3521 * java/awt/Window.java: New file.
3522 * java/awt/natToolkit.cc: New file.
3523 * java/awt/event/AWTEventListener.java: New file.
3524 * java/awt/event/ActionEvent.java: New file.
3525 * java/awt/event/ActionListener.java: New file.
3526 * java/awt/event/AdjustmentEvent.java: New file.
3527 * java/awt/event/AdjustmentListener.java: New file.
3528 * java/awt/event/ComponentAdapter.java: New file.
3529 * java/awt/event/ComponentEvent.java: New file.
3530 * java/awt/event/ComponentListener.java: New file.
3531 * java/awt/event/ContainerAdapter.java: New file.
3532 * java/awt/event/ContainerEvent.java: New file.
3533 * java/awt/event/ContainerListener.java: New file.
3534 * java/awt/event/FocusAdapter.java: New file.
3535 * java/awt/event/FocusEvent.java: New file.
3536 * java/awt/event/FocusListener.java: New file.
3537 * java/awt/event/InputEvent.java: New file.
3538 * java/awt/event/InputMethodEvent.java: New file.
3539 * java/awt/event/InputMethodListener.java: New file.
3540 * java/awt/event/InvocationEvent.java: New file.
3541 * java/awt/event/ItemEvent.java: New file.
3542 * java/awt/event/ItemListener.java: New file.
3543 * java/awt/event/KeyAdapter.java: New file.
3544 * java/awt/event/KeyEvent.java: New file.
3545 * java/awt/event/KeyListener.java: New file.
3546 * java/awt/event/MouseAdapter.java: New file.
3547 * java/awt/event/MouseEvent.java: New file.
3548 * java/awt/event/MouseListener.java: New file.
3549 * java/awt/event/MouseMotionAdapter.java: New file.
3550 * java/awt/event/MouseMotionListener.java: New file.
3551 * java/awt/event/PaintEvent.java: New file.
3552 * java/awt/event/TextEvent.java: New file.
3553 * java/awt/event/TextListener.java: New file.
3554 * java/awt/event/WindowAdapter.java: New file.
3555 * java/awt/event/WindowEvent.java: New file.
3556 * java/awt/event/WindowListener.java: New file.
3557 * java/awt/geom/Dimension2D.java: New file.
3558 * java/awt/geom/Point2D.java: New file.
3559 * java/awt/peer/ComponentPeer.java: New file.
3560 * java/awt/peer/ContainerPeer.java: New file.
3561 * java/awt/peer/FramePeer.java: New file.
3562 * java/awt/peer/WindowPeer.java: New file.
3563 * java/util/Collection.java: New file.
3564 * java/util/Comparator.java: New file.
3565 * java/util/Iterator.java: New file.
3566 * java/util/List.java: New file.
3567 * java/util/ListIterator.java: New file.
3568 * Makefile.am: Added above files.
3569 * Makefile.in: Rebuilt.
3571 2000-04-10 Warren Levy <warrenl@cygnus.com>
3573 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3574 * java/lang/FirstThread.java: Ditto.
3575 * java/lang/StringBuffer.java: Ditto.
3576 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3578 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3579 Special case handled in java.math.BigInteger.
3580 * java/math/BigInteger.java (divide): Handle the special case when
3581 dividing by 1 and the high bit of the dividend is set.
3582 (setShiftRight): Handle case when count == 0.
3584 2000-04-05 Andrew Haley <aph@cygnus.com>
3586 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3589 2000-04-05 Andrew Haley <aph@cygnus.com>
3591 * sysdep/ia64.c (rse_address_add): Delete.
3592 (IS_NaT_COLLECTION_ADDR): Delete.
3593 (ia64_backtrace_helper): check for null unwind_info.
3595 * sysdep/ia64-frame.h: add calc_caller_bsp.
3597 * java/lang/natThrowable.cc (printRawStackTrace): Flush
3600 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3601 (_Jv_remI): Likewise.
3602 (_Jv_divJ): Likewise.
3603 (_Jv_remJ): Likewise.
3605 * interpret.cc (continue1): Use divide subroutines to guarantee
3606 correct Java standard behaviour.
3607 Floating-point division should not abort; make it so.
3609 2000-03-29 Tom Tromey <tromey@cygnus.com>
3611 * configure: Rebuilt.
3612 * configure.in: Test against `libgcj_sjlj', not
3613 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
3614 to be set even when using sjlj.
3616 2000-03-24 Andrew Haley <aph@cygnus.com>
3618 * Makefile.am: Add file addr2name.awk.
3619 * Makefile.in: Rebuilt.
3620 * addr2name.awk: New file.
3621 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3623 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3626 2000-03-22 Andrew Haley <aph@cygnus.com>
3628 * configure.host: Add -funwind-tables for IA64.
3629 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3630 * Makefile.in: Rebuilt.
3631 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3632 * sysdep/ia64.c: New file.
3633 * sysdep/ia64-frame.h: New file.
3634 * configure.in: Add sysdep/ia64.c for ia64.
3635 * configure: Rebuilt.
3637 2000-03-17 Andrew Haley <aph@cygnus.com>
3639 * java/lang/natString.cc: Remove `register' keyword.
3640 interpret.cc: ditto.
3642 2000-03-16 Andrew Haley <aph@cygnus.com>
3644 * configure.host (ia64): Enable interpreter.
3646 2000-03-14 Hans Boehm <boehm@acm.org>
3648 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3650 2000-03-14 Andrew Haley <aph@cygnus.com>
3652 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3655 2000-03-10 Andrew Haley <aph@cygnus.com>
3657 * java/lang/ieeefp.h: Import latest version from fdlibm.
3659 2000-03-14 Andrew Haley <aph@cygnus.com>
3661 * prims.cc (_Jv_ThrowSignal): New function.
3662 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3664 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3665 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3666 * include/ppc-signal.h: New file.
3668 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
3670 * java/lang/Thread.java: Declare `data' as Object, not RawData.
3671 * java/lang/natThread.java (initialize_native): Cast `data' to
3673 * gnu/gcj/RawData.java: Clarify documentation.
3675 From Gregory R. Warnes <warnes@biostat.washington.edu>:
3676 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3677 `jarFile', not `jarFileURL'.
3679 2000-05-15 Andrew Haley <aph@cygnus.com>
3681 * include/ppc-signal.h: New file.
3683 2000-05-11 Tom Tromey <tromey@cygnus.com>
3685 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3686 file headers, don't include `size' in the skip call.
3688 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
3690 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3691 Avoid arrayCopy() call where possible. Update `count' _after_ calling
3693 (replace): Reimplemented. Fix javadoc.
3694 (reverse): Call ensureCapacity_unsynchronized().
3695 (StringBuffer (String)): Use DEFAULT_CAPACITY.
3697 (replace): Calculate length for arraycopy() correctly.
3699 2000-05-09 Tom Tromey <tromey@cygnus.com>
3701 * java/lang/StringBuffer.java (toString): Don't mark buffer as
3703 (insert(int,char[],int,int): New method.
3704 (delete): New method from Classpath.
3705 (deleteCharAt): Likewise.
3706 (substring): Likewise.
3707 (shared): No longer private.
3708 Added JavaDoc comments from Classpath.
3709 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3712 2000-05-07 Tom Tromey <tromey@cygnus.com>
3714 * Makefile.in: Rebuilt.
3715 * Makefile.am (LIBLINK): New macro.
3716 (libgcj_la_LINK): Use it.
3717 (libgcjawt_la_LINK): Likewise.
3719 2000-05-06 Tom Tromey <tromey@cygnus.com>
3721 * Makefile.in: Rebuilt.
3722 * Makefile.am (libgcj.zip): Don't pass -L to javac.
3724 2000-05-05 Tom Tromey <tromey@cygnus.com>
3726 Fix for PR libgcj/220:
3727 * Makefile.in: Rebuilt.
3728 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3729 (jv_convert_LDFLAGS): Likewise.
3730 (libgcj_la_LDFLAGS): Likewise.
3731 (GCJLINK): New macro.
3732 (jv_convert_LINK): Use it.
3733 (gij_LINK): Likewise.
3734 (libgcj_la_LINK): New macro.
3735 (libgcjawt_la_LINK): Likewise.
3737 2000-05-04 Tom Tromey <tromey@cygnus.com>
3739 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3741 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
3745 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
3747 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3748 (_Jv_IsAssignableFrom): Ditto.
3749 (_Jv_IsInstanceOf): Ditto.
3750 (_Jv_CheckCast): Ditto.
3751 (_Jv_CheckArrayStore): Ditto.
3752 * java/lang/Class.h (_Jv_InitClass): Ditto.
3753 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3758 (_Jv_MonitorExit): Ditto.
3759 * boehm.cc (_Jv_MarkObj): Ditto.
3760 (_Jv_MarkObj): Ditto.
3761 (_Jv_MarkArray): Ditto.
3762 * prims.cc (_Jv_AllocObject): Ditto.
3763 (_Jv_NewObjectArray): Ditto.
3764 (_Jv_NewPrimArray): Ditto.
3765 (_Jv_Malloc): Ditto.
3766 (_Jv_Realloc): Ditto.
3767 (_Jv_MallocUnchecked): Ditto.
3773 2000-05-04 Tom Tromey <tromey@cygnus.com>
3775 * java/util/Locale.java (Locale): Don't explicitly check for
3777 * java/util/Hashtable.java (containsKey): Don't explicitly check
3780 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
3782 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
3784 * java/text/StringCharacterIterator.java
3785 (StringCharacterIterator): Don't check for null.
3786 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
3788 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
3789 check for null pointer.
3790 (leaveGroup): Likewise.
3791 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
3793 (setData): Likewise.
3794 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
3797 2000-04-28 Jakub Jelinek <jakub@redhat.com>
3799 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
3800 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
3801 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
3802 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
3803 -rpath for in-gcc builds.
3804 * Makefile.in: Rebuilt.
3806 2000-04-28 Tom Tromey <tromey@cygnus.com>
3808 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
3811 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
3813 * libjava/java/lang/String.java (toString): Remove `final' hack.
3815 2000-04-05 Tom Tromey <tromey@cygnus.com>
3817 Runtime support for PR gcj/2:
3818 * prims.cc (_Jv_ThrowNullPointerException): New function.
3819 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
3821 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
3823 * prims.cc (_Jv_NewObjectArray): Fix typo.
3825 2000-04-26 Tom Tromey <tromey@cygnus.com>
3827 * Makefile.in: Rebuilt.
3828 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
3830 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
3832 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
3835 2000-04-22 Anthony Green <green@cygnus.com>
3837 * include/jvm.h (__builtin_expect): Define as unused for now.
3838 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
3842 (_Jv_MonitorExit): Ditto.
3843 * boehm.cc (_Jv_MarkObj): Ditto.
3844 (_Jv_MarkObj): Ditto.
3845 (_Jv_MarkArray): Ditto.
3846 (_Jv_AllocBytes): Ditto.
3847 * prims.cc (_Jv_AllocObject): Ditto.
3848 (_Jv_NewObjectArray): Ditto.
3849 (_Jv_NewPrimArray): Ditto.
3850 (_Jv_Malloc): Ditto.
3851 (_Jv_Realloc): Ditto.
3852 (_Jv_MallocUnchecked): Ditto.
3858 * include/Makefile.in: Rebuilt.
3859 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
3861 2000-04-21 Tom Tromey <tromey@cygnus.com>
3863 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
3864 Yet another new version from Classpath.
3866 Fix for PR libgcj/15:
3867 * java/util/natGregorianCalendar.cc (_REENTRANT,
3868 _POSIX_PTHREAD_SEMANTICS): Don't define.
3869 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
3870 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
3872 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
3874 * configure: Rebuilt.
3875 * configure.in: If using POSIX threads, define _REENTRANT if
3876 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
3877 GETHOSTBYNAME_R_NEEDS_REENTRANT.
3879 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3880 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
3881 version from Classpath.
3883 Fix for PR libgcj/213:
3884 * Makefile.in: Rebuilt.
3885 * Makefile.am (gij_SOURCES): Added gij.cc.
3886 (EXTRA_gij_SOURCES): Removed.
3887 (gij_LDADD): Removed gij.lo.
3888 (gij_DEPENDENCIES): Likewise.
3889 ($(gij_OBJECTS)): Depend on nat_headers.
3891 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
3892 `setURL', not `url.set'.
3894 2000-04-20 Tom Tromey <tromey@cygnus.com>
3896 Fix for PR java.io/204:
3897 * java/io/PipedInputStream.java, java/io/PipedReader.java,
3898 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
3901 Fix for PR libgcj/212:
3902 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
3903 * include/jvm.h (_Jv_word, _Jv_word2): Define.
3904 * java/lang/Class.h (_Jv_word): Declare.
3906 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
3908 2000-04-19 Tom Tromey <tromey@cygnus.com>
3910 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
3911 doesn't have a loader.
3913 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
3915 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
3916 MAYBE_MARK to ptr_t, for compatibility with new GC version.
3918 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
3920 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
3922 (available): Initialize `where' to prevent bogus compiler warning.
3924 2000-04-12 Tom Tromey <tromey@cygnus.com>
3926 * java/lang/natString.cc (intern): Temporarily disable finalizer
3929 * java/lang/natString.cc (unintern): Added `obj' argument.
3930 (intern): Register finalizer for string.
3931 * java/lang/String.java (unintern): Now static; added obj
3934 2000-04-11 Tom Tromey <tromey@cygnus.com>
3936 * java/util/Vector.java (VectorEnumeration): Now `final'.
3937 * java/util/Hashtable.java (HashtableEntry): Now `final'.
3938 (HashtableEnumeration): Likewise.
3939 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
3940 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
3942 2000-04-10 Warren Levy <warrenl@cygnus.com>
3944 * java/io/ObjectStreamException.java: New file.
3945 * java/io/OptionalDataException.java: New file.
3946 * java/io/StreamCorruptedException.java: New file.
3947 * java/math/BigDecimal.java: New file.
3948 * java/sql/CallableStatement.java: New file.
3949 * java/sql/Connection.java: New file.
3950 * java/sql/DataTruncation.java: New file.
3951 * java/sql/DatabaseMetaData.java: New file.
3952 * java/sql/Date.java: New file.
3953 * java/sql/Driver.java: New file.
3954 * java/sql/DriverManager.java: New file.
3955 * java/sql/DriverPropertyInfo.java: New file.
3956 * java/sql/PreparedStatement.java: New file.
3957 * java/sql/ResultSet.java: New file.
3958 * java/sql/ResultSetMetaData.java: New file.
3959 * java/sql/SQLException.java: New file.
3960 * java/sql/SQLWarning.java: New file.
3961 * java/sql/Statement.java: New file.
3962 * java/sql/Time.java: New file.
3963 * java/sql/Timestamp.java: New file.
3964 * java/sql/Types.java: New file.
3965 * Makefile.am: Added above new files.
3966 * Makefile.in: Rebuilt.
3968 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3969 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
3970 DatagramSocket constructor instead of null.
3972 2000-04-08 Anthony Green <green@cygnus.com>
3974 * include/posix-threads.h (_Jv_MutexUnlock): Replace
3977 2000-04-08 Anthony Green <green@cygnus.com>
3979 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
3980 (_Jv_MutexUnlock): Ditto.
3981 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
3982 (_Jv_MutexUnlock): Ditto.
3984 2000-04-08 Anthony Green <green@cygnus.com>
3986 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
3987 (ensureCapacity_unsynchronized): New private method.
3988 (append): Use ensureCapacity_unsynchronized.
3990 2000-04-08 Tom Tromey <tromey@cygnus.com>
3992 * Makefile.in: Rebuilt.
3993 * Makefile.am (awt_java_source_files): Added new files.
3994 * java/awt/IllegalComponentStateException.java: New file.
3995 * java/awt/ItemSelectable.java: New file.
3996 * java/awt/event/WindowEvent.java: Finished.
3997 * java/awt/event/TextEvent.java: Finished.
3998 * java/awt/event/ContainerEvent.java: New file.
3999 * java/awt/Component.java (getX, getY): New methods.
4000 * java/awt/event/PaintEvent.java: New file.
4001 * java/awt/event/MouseEvent.java: New file.
4002 * java/awt/ActiveEvent.java: New file.
4003 * java/awt/event/KeyEvent.java: Finished.
4004 * java/awt/event/ItemEvent.java: New file.
4005 * java/awt/Adjustable.java: New file.
4006 * java/awt/event/InputMethodEvent.java: New file.
4007 * java/awt/event/InputEvent.java: Finished.
4008 * java/awt/event/FocusEvent.java: New file.
4009 * java/awt/event/MouseMotionAdapter.java: New file.
4010 * java/awt/event/MouseAdapter.java: New file.
4011 * java/awt/event/KeyAdapter.java: New file.
4012 * java/awt/event/FocusAdapter.java: New file.
4013 * java/awt/event/ContainerAdapter.java: New file.
4014 * java/awt/event/ComponentEvent.java: Finished.
4015 * java/awt/event/AdjustmentEvent.java: New file.
4016 * java/awt/event/ComponentAdapter.java: New file.
4017 * java/awt/event/ActionEvent.java: Finished.
4018 * java/awt/event/MouseMotionListener.java: New file.
4019 * java/awt/event/MouseListener.java: New file.
4020 * java/awt/event/ItemListener.java: New file.
4021 * java/awt/event/InputMethodListener.java: New file.
4022 * java/awt/event/ContainerListener.java: New file.
4023 * java/awt/event/FocusListener.java: New file.
4024 * java/awt/event/ComponentListener.java: New file.
4025 * java/awt/event/AWTEventListener.java: New file.
4026 * java/awt/event/AdjustmentListener.java: New file.
4028 2000-04-08 Anthony Green <green@cygnus.com>
4030 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4031 check when we have to.
4033 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4036 * java/util/StringTokenizer.java: Minor optimization. Eliminates
4039 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4040 inline hasMoreElements.
4042 2000-04-05 Tom Tromey <tromey@cygnus.com>
4044 * configure: Rebuilt.
4045 * configure.in: Recognize --enable-java-awt.
4046 (AWT): New conditional.
4047 * Makefile.in: Rebuilt.
4048 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4050 (libgcjawt_la_SOURCES): New macro.
4051 (EXTRA_libgcjawt_la_SOURCES): Likewise.
4052 (libgcjawt_la_DEPENDENCIES): Likewise.
4053 (libgcjawt_la_LIBADD): Likewise.
4054 (libgcjawt_la_LDFLAGS): Likewise.
4055 (libgcj.zip): Depend on cond_java_awt_source_files
4056 (cond_awt_java_source_files): New macro.
4057 (MOSTLYCLEANFILES): Added awto_files.
4058 (awto_files): New macro. Use where javao_files used.
4059 (nat_headers): Use cond_awt_java_source_files.
4061 2000-04-04 Tom Tromey <tromey@cygnus.com>
4063 * Makefile.in: Rebuilt.
4064 * Makefile.am (awt_java_source_files): Added AWTException.java.
4065 * java/awt/AWTException.java: New file.
4067 2000-04-03 Tom Tromey <tromey@cygnus.com>
4069 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4070 commentary from Alex.
4072 * Makefile.in: Rebuilt.
4073 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4076 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
4078 * configure: Rebuilt.
4079 * configure.in: Add --disable-jvmpi.
4080 * include/config.h.in: Rebuilt.
4081 * acconfig.h: Add ENABLE_JVMPI.
4083 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4084 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4085 (_Jv_JVMPI_Notify_THREAD_END): New define.
4086 (_Jv_JVMPI_Notify_THREAD_END): New define.
4087 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4088 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4089 (_Jv_JVMPI_Notify_THREAD_END): Declare.
4091 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4094 * java/lang/natThread.cc: Include JVMPI headers if necessary.
4095 (finish_): Generate JVMPI thread end events.
4096 (run_): Generate JVMPI thread start events.
4097 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4098 preloaded JNI library.
4099 Include JVMPI headers if necessary.
4100 (run): Generate JVMPI thread start events.
4102 * boehm.cc: Define GC_disable and GC_enable.
4103 (_Jv_DisableGC): New function.
4104 (_Jv_EnableGC): New function.
4105 (disable_gc_mutex): Declare.
4106 * nogc.cc (_Jv_DisableGC): New function.
4107 (_Jv_EnableGC): New function.
4109 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4110 (_Jv_JVMPI_Interface): Define.
4111 (jvmpiEnableEvent): New function.
4112 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4114 * include/jvmpi.h: New file.
4116 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
4118 * Makefile.in: New #defines and friends for Thread.h.
4119 * Makefile.am: Ditto.
4120 * posix-threads.cc: (struct starter): Remove `object'.
4121 (_Jv_CondWait): Use interruptable condition variables and new
4122 recursive mutexes. New return codes on interrupt or non-ownership
4124 (_Jv_CondNotify): Ditto.
4125 (_Jv_CondNotifyAll): Ditto.
4126 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4127 the target thread by signaling its wait condition.
4128 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4129 not the starter struct. Initialize wait_mutex and wait_cond.
4130 (_Jv_MutexLock): New recursive mutex implementation. Moved from
4132 (_Jv_MutexUnlock): Ditto.
4133 (really_start): Set info->data->thread from pthread_self() to work
4134 around a race condition. Destroy wait_mutex and wait_cond when run()
4136 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4137 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4139 startable_flag: New private field.
4140 (Thread): Initialize `startable_flag'.
4141 (toString): Check for null thread group.
4142 * java/lang/natThread.cc: (struct natThread): New fields
4143 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4144 (class locker): Removed.
4145 (initialize_native): Initialize `join_cond' and `join_mutex'.
4146 (interrupt): Now just calls _Jv_ThreadInterrupt().
4147 (join): Simplified. Just wait on the target thread's join condition.
4148 (finish_): Remove join list code. Unset thread group. Signal
4149 potential joiners by notifying the dying threads join_cond.
4150 (start): Check for illegal restarts.
4151 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4153 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4154 #defines and #ifdefs.
4155 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4156 `wait_mutex', `next'.
4157 (struct _Jv_ConditionVariable_t): Define as a struct instead of
4158 directly mapping to pthread_cond_t.
4159 (struct _Jv_Mutex_t): New recursive implementation.
4160 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4161 _Jv_HaveCondDestroy: Never define this for posix-threads.
4162 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4163 (_Jv_CondNotifyAll): Ditto.
4164 (_Jv_MutexLock): Ditto.
4165 (_Jv_MutexUnlock): Ditto.
4166 (_Jv_MutexInit): Changed to reflect new mutex implementation.
4167 (_Jv_MutexDestroy): Ditto.
4168 (_Jv_CondDestroy): Removed.
4169 (_Jv_PthreadGetMutex): Removed.
4170 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
4171 error. Add a FIXME about this.
4172 (_Jv_CondNotifyAll): Ditto.
4173 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
4174 _JV_NOT_OWNER on other errors. Add FIXME.
4176 2000-03-26 Tom Tromey <tromey@cygnus.com>
4178 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4180 (call): Don't throw exception here.
4182 2000-03-26 Tom Tromey <tromey@cygnus.com>
4184 * java/lang/mprec.h: Use SIZEOF_VOID_P.
4185 * interpret.cc: Use SIZEOF_VOID_P.
4186 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4187 (_Jv_loadLong): Likewise.
4188 (_Jv_storeDouble): Likewise.
4189 * configure: Rebuilt.
4190 * configure.in: Check size of void*.
4192 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4194 2000-03-26 Hans Boehm <boehm@acm.org>
4196 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4197 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4199 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4200 __IEEE_LITTLE_ENDIAN appropriately on IA64.
4201 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4202 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4204 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4205 (FFI_RAW_SIZE): Likewise.
4206 (_Jv_InterpMethod::ncode): Use them.
4207 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4208 STORED): Define differently on a 64 bit machine.
4209 (continue1): Use ffi_java_raw_call when appropriate.
4211 2000-03-24 Warren Levy <warrenl@cygnus.com>
4213 * java/math/BigInteger.java(divide): Handle the special case when
4214 dividing by 1 and the high bit of the dividend is set.
4215 (setShiftRight): Handle case when count == 0.
4217 2000-03-24 Warren Levy <warrenl@cygnus.com>
4219 * java/awt/Font.java(isBold): Fix syntax error.
4221 * java/awt/Frame.java(postEvent): ditto.
4222 * java/awt/Menu.java(postEvent): ditto.
4223 * java/awt/MenuBar.java(postEvent): ditto.
4224 * java/awt/Toolkit.java(init): Included a stub.
4226 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4228 * java/awt/Event.java: Add all the event type constants.
4229 (Event): Implemented constructors.
4230 (controlDown): Implemented.
4231 (metaDown): Implemented.
4232 (paramString): Stubbed.
4233 (shiftDown): Implemented.
4234 (toString): Implemented.
4235 (translate): Implemented.
4237 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
4239 * java/lang/natClass.cc (isInstance): Initialize `this'.
4240 (isAssignableFrom): Initialize `this' and `klass'.
4241 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
4242 implemented by any loaded class, so return false.
4243 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
4244 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4246 2000-03-19 Warren Levy <warrenl@cygnus.com>
4248 * java/awt/Color.java: Specified java.io for Serializable.
4249 * java/awt/Toolkit.java: Imported java.net.URL.
4251 2000-03-19 Warren Levy <warrenl@cygnus.com>
4253 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4255 2000-03-16 Warren Levy <warrenl@cygnus.com>
4257 * java/awt/Color.java: New file.
4258 * java/awt/Graphics.java: New file.
4259 * java/awt/Image.java: New file.
4260 * java/awt/Paint.java: New file.
4261 * java/awt/PaintContext.java: New file.
4262 * java/awt/Transparency.java: New file.
4263 * java/util/Collection.java: New file.
4264 * java/util/Comparator.java: New file.
4265 * java/util/Iterator.java: New file.
4266 * java/util/List.java: New file.
4267 * java/util/ListIterator.java: New file.
4268 * Makefile.am: Added above new files.
4269 * Makefile.in: Rebuilt.
4271 * java/awt/Font.java (PLAIN): New field.
4273 (ITALIC): New field.
4274 (ROMAN_BASELINE): New field.
4275 (CENTER_BASELINE): New field.
4276 (HANGING_BASELINE): New field.
4280 (pointSize): New field.
4281 (Font): Implemented constructor.
4282 (isPlain): Implemented method.
4283 (isBold): Implemented method.
4284 (isItalic): Implemented method.
4285 (getName): Implemented method.
4286 (getStyle): Implemented method.
4287 (getSize): Implemented method.
4288 (getSize2D): Implemented method.
4290 * java/awt/Frame.java (getFont): Stubbed.
4291 (postEvent): Stubbed.
4293 * java/awt/Menu.java (postEvent): Stubbed.
4294 * java/awt/MenuBar.java (getFont): Stubbed.
4295 (postEvent): Stubbed.
4296 * java/awt/Toolkit.java (getImage): Added abstract method.
4298 2000-03-15 Tom Tromey <tromey@cygnus.com>
4300 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4302 * prims.cc (win32_exception_handler): Reformatted.
4304 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4305 (_Jv_HaveMutexDestroy): Likewise.
4307 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4309 * java/io/natFileDescriptorWin32.cc: New file.
4310 * java/io/natFileWin32.cc: New file.
4311 * java/net/natInetAddress.cc: Added conditional inclusion of
4312 Windows / Winsock headers.
4313 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4314 inclusion of Windows / Winsock headers.
4315 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4316 Windows / Winsock headers.
4317 * include/win32-signal.h: New file.
4318 * include/win32-threads.h: New file.
4319 * win32-threads.cc: New file.
4320 * exception.cc (win32_get_restart_frame): New function.
4321 * prims.cc (win32_exception_handler): New function.
4322 (main_init) Performs Winsock initialisation.
4323 (main_init) Installs exeception handler.
4325 2000-03-14 Tom Tromey <tromey@cygnus.com>
4327 * jni.cc (mangled_name): Fixed assertion.
4328 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4329 turned assert into actual failure.
4331 2000-03-09 Warren Levy <warrenl@cygnus.com>
4333 * java/security/Key.java(serialVersionUID): Set to 0 for now.
4334 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4335 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4337 2000-03-09 Warren Levy <warrenl@cygnus.com>
4339 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4340 * java/security/DigestException.java: New file.
4341 * java/security/GeneralSecurityException.java: New file.
4342 * java/security/InvalidAlgorithmParameterException.java: New file.
4343 * java/security/InvalidKeyException.java: New file.
4344 * java/security/InvalidParameterException.java: New file.
4345 * java/security/Key.java: New file.
4346 * java/security/KeyException.java: New file.
4347 * java/security/KeyPair.java: New file.
4348 * java/security/KeyPairGenerator.java: New file.
4349 * java/security/KeyPairGeneratorSpi.java: New file.
4350 * java/security/NoSuchProviderException.java: New file.
4351 * java/security/PrivateKey.java: New file.
4352 * java/security/Provider.java: New file.
4353 * java/security/PublicKey.java: New file.
4354 * java/security/SecureRandom.java: New file.
4355 * java/security/Security.java: New file.
4356 * java/security/Signature.java: New file.
4357 * java/security/SignatureException.java: New file.
4358 * java/security/interfaces/DSAKey.java: New file.
4359 * java/security/interfaces/DSAParams.java: New file.
4360 * java/security/interfaces/DSAPrivateKey.java: New file.
4361 * java/security/interfaces/DSAPublicKey.java: New file.
4362 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4363 * java/security/interfaces/RSAPrivateKey.java: New file.
4364 * java/security/interfaces/RSAPublicKey.java: New file.
4365 * java/security/spec/AlgorithmParameterSpec.java: New file.
4366 * java/security/spec/InvalidKeySpecException.java: New file.
4367 * java/security/spec/InvalidParameterSpecException.java: New file.
4368 * java/security/spec/KeySpec.java: New file.
4369 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4370 * java/security/spec/RSAPrivateKeySpec.java: New file.
4371 * java/security/spec/RSAPublicKeySpec.java: New file.
4372 * Makefile.am: Added above java.security files.
4373 * Makefile.in: Rebuilt.
4375 * java/security/MessageDigest.java: Rewritten.
4376 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4378 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4382 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
4384 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4385 _Jv_PrepareConstantTimeTables.
4386 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4387 classes should have an IDT, so don't return if klass is an array
4390 2000-03-08 Tom Tromey <tromey@cygnus.com>
4392 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4393 of `void' to be created.
4395 2000-03-08 Warren Levy <warrenl@cygnus.com>
4397 * java/math/BigInteger.java(signum): Handle zero properly.
4399 2000-03-07 Tom Tromey <tromey@cygnus.com>
4401 * All files: Updated copyright information.
4402 * COPYING: New file.
4403 * COPYING.LIB: Removed.
4404 * LIBGCJ_LICENSE: We now use GPL + special exception.
4406 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4408 * resolve.cc (_Jv_SearchMethodInClass): New function.
4409 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4410 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4412 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
4414 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4415 (struct _Jv_ifaces): New declaration.
4416 JV_CLASS: New macro definition.
4417 (getComponentType): Relocate below isArray() for inlining.
4418 (getModifiers): Declare `inline'.
4419 (getSuperclass): Ditto.
4421 (isPrimitive): Ditto.
4422 (_Jv_IsAssignableFrom): New prototype.
4423 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4425 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4426 Check for JV_STATE_DONE before invoking initializeClass().
4427 (_Jv_PrepareConstantTimeTables): New prototype.
4428 (_Jv_GetInterfaces): Ditto.
4429 (_Jv_GenerateITable): Ditto.
4430 (_Jv_GetMethodString): Ditto.
4431 (_Jv_AppendPartialITable): Ditto.
4432 (_Jv_FindIIndex): Ditto.
4433 depth, ancestors, idt: New class fields.
4435 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4436 inline function `_Jv_IsAssignableFrom'. Use that function.
4437 (isInstance): Declare `inline'.
4438 (initializeClass): Get lock on class before checking `state'. Unlock
4439 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
4441 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4442 (_Jv_IsAssignableFrom): New inline function. Test assignability using
4443 class->depth and ancestor table.
4444 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4445 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4446 _Jv_IsAssignableFrom.
4447 (_Jv_CheckArrayStore): Ditto.
4448 (_Jv_LookupInterfaceMethodIdx): New function.
4449 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4450 (_Jv_PrepareConstantTimeTables): New function.
4451 (_Jv_IndexOf): Ditto.
4452 (_Jv_GetInterfaces): Ditto.
4453 (_Jv_GenerateITable): Ditto.
4454 (_Jv_GetMethodString): Ditto.
4455 (_Jv_AppendPartialITable): Ditto.
4456 iindex_mutex, iindex_mutex_initialized: New static fields.
4457 (_Jv_FindIIndex): New function.
4459 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4461 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4462 (_Jv_CheckArrayStore): Ditto.
4463 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4464 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4465 Moved to gcj/array.h.
4466 (_Jv_Realloc): New function.
4468 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4470 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4471 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4472 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4473 JvNewDoubleArray): Implementations moved from prims.cc and
4476 * gcj/javaprims.h (_Jv_Realloc): Prototype.
4478 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4480 2000-03-06 Tom Tromey <tromey@cygnus.com>
4482 * jni.cc (MARK_NONE): New define.
4483 (MARK_USER): Likewise.
4484 (MARK_SYSTEM): Likewise.
4485 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4487 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4488 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4489 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4490 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4492 (call): Use MARK_SYSTEM.
4493 (_Jv_GetJNIEnvNewFrame): New function.
4494 (_Jv_LookupJNIMethod): New function.
4495 (_Jv_JNI_PopSystemFrame): New function.
4496 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4498 2000-03-05 Tom Tromey <tromey@cygnus.com>
4500 Fix for PR libgcj/43:
4501 * include/Makefile.in: Rebuilt.
4502 * include/Makefile.am (include_HEADERS): New define.
4504 2000-03-05 Anthony Green <green@redhat.com>
4506 * gcj/javaprims.h ("Java"): Remove FirstThread.
4508 * configure.host: Fix __NO_MATH_INLNES botch.
4510 * Makefile.in: Rebuilt.
4511 * Makefile.am (nat_source_files): Move natFirstThread.cc.
4512 (gnu/gcj/runtime/FirstThread.h): Moved.
4513 (ordinary_java_source_files): Move FirstThread.java.
4514 * prims.cc: Deal with FirstThread movement.
4516 (_Jv_RunMain): Ditto.
4518 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4519 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4521 2000-03-05 Warren Levy <warrenl@cygnus.com>
4523 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4524 Handle null addresses.
4526 2000-03-04 Anthony Green <green@redhat.com>
4528 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4531 2000-03-04 Anthony Green <green@redhat.com>
4533 * configure: Rebuilt.
4534 * configure.in (ZLIBTESTSPEC): New macro.
4535 (GCTESTSPEC): New macro.
4536 (LIBGCJTESTSPEC): New macro.
4537 * libgcj-test.spec.in: New file.
4539 2000-03-02 Tom Tromey <tromey@cygnus.com>
4541 * include/java-interp.h: Don't include MethodInvocation.h.
4542 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4543 * Makefile.in: Rebuilt.
4544 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4545 (ordinary_java_source_files): Don't mention
4546 MethodInvocation.java.
4547 * gnu/gcj/runtime/MethodInvocation.java: Removed.
4548 * interpret.cc (MethodInvocation::continue1): Removed.
4549 (run): Handle exceptions here.
4550 * java/lang/ClassLoader.java (defineClass1, defineClass2):
4552 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4554 (defineClass2): Removed.
4556 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4558 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4560 (hack_call): Removed.
4562 * java/lang/Class.h (Class): Removed hackRunInitializers,
4564 * java/lang/natClass.cc (hackRunInitializers): Removed.
4565 (initializeClass): Catch exceptions here.
4566 Include ExceptionInInitializerError.h.
4567 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4570 * java/lang/Object.h (Object): Don't mention hack12_6.
4571 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4573 * java/lang/Object.java (hack12_6): Removed.
4575 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
4576 (start): Use run_, not run__.
4577 * java/lang/Thread.java (run_): Renamed from run__; old run_
4580 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4581 (_Jv_JNI_EnsureLocalCapacity): Likewise.
4582 (_Jv_JNI_DefineClass): Likewise.
4583 (_Jv_JNI_ThrowNew): Likewise.
4584 (_Jv_JNI_AllocObject): Likewise.
4585 (_Jv_JNI_GetAnyMethodID): Likewise.
4586 (_Jv_JNI_CallAnyMethodV): Likewise.
4587 (_Jv_JNI_CallAnyMethodA): Likewise.
4588 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4589 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4590 (_Jv_JNI_GetAnyFieldID): Likewise.
4591 (_Jv_JNI_NewString): Likewise.
4592 (_Jv_JNI_NewStringUTF): Likewise.
4593 (_Jv_JNI_GetStringUTFChars): Likewise.
4594 (_Jv_JNI_NewObjectArray): Likewise.
4595 (_Jv_JNI_NewPrimitiveArray): Likewise.
4596 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4597 (_Jv_JNI_GetStringRegion): Likewise.
4598 (_Jv_JNI_GetStringUTFRegion): Likewise.
4599 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4600 (_Jv_JNI_MonitorEnter): Likewise.
4601 (_Jv_JNI_MonitorExit): Likewise.
4602 (_Jv_JNI_ToReflectedField): Likewise.
4603 (_Jv_JNI_ToReflectedMethod): Likewise.
4604 (_Jv_JNI_RegisterNatives): Likewise.
4605 (_Jv_JNI_AttachCurrentThread): Likewise.
4606 (_Jv_JNI_DestroyJavaVM): Likewise.
4608 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4610 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4611 error caused by the incorrect casting of a long to an int.
4613 2000-02-28 Mo DeJong <mdejong@cygnus.com>
4615 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4616 SIGSEV caused by use of the wrong instance variable.
4618 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
4620 * java/io/File.java (File(String, String)): For dirPath, treat an
4621 empty String the same as `null'.
4623 2000-02-26 Anthony Green <green@cygnus.com>
4625 * gnu/gcj/io/MimeTypes.java: Test for null.
4627 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4628 (JNI_GetCreatedJavaVMs): Remove compiler warning.
4630 * java/net/URLConnection.java: Update copyright notice.
4632 2000-02-25 Tom Tromey <tromey@cygnus.com>
4634 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4637 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
4639 * java/net/URLConnection.java (initializeDateFormats): New
4641 (getHeaderFieldDate): Call initializeDateFormats if required.
4642 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4644 Fix for PR libgcj/38.
4646 2000-02-24 Warren Levy <warrenl@cygnus.com>
4648 * java/math/BigInteger.java(ival): Made private.
4652 2000-02-20 Anthony Green <green@cygnus.com>
4654 * Makefile.in: Rebuilt.
4655 * Makefile.am (ordinary_java_source_files): Add
4656 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4658 * scripts/MakeDefaultMimeTypes.java: New file.
4659 * scripts/mime.types: New file.
4660 * scripts/classes.pl: Moved from top level.
4661 * classes.pl: Moved to scripts directory.
4663 * java/net/URLConnection.java: Implement guessContentTypeFromName.
4665 * gnu/gcj/io/MimeTypes.java: New file.
4666 * gnu/gcj/io/DefaultMimeTypes.java: New file.
4668 2000-02-20 Tom Tromey <tromey@cygnus.com>
4670 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4672 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
4674 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4677 2000-02-18 Tom Tromey <tromey@cygnus.com>
4679 * include/jvm.h (_Jv_GetJavaVM): Declare.
4680 * include/java-interp.h (_Jv_GetFirstMethod): New function.
4681 (_Jv_MethodBase::get_method): New method.
4682 (_Jv_JNIMethod::set_function): New method.
4683 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4684 (_Jv_JNI_RegisterNatives): New function.
4685 (_Jv_JNIFunctions): Updated for new functions.
4686 (_Jv_GetJavaVM): New function.
4687 (_Jv_JNI_GetJavaVM): Use it. Now static.
4688 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4689 is already a Java thread but does not have a JNIEnv yet.
4691 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4694 2000-02-17 Tom Tromey <tromey@cygnus.com>
4696 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4699 2000-02-16 Tom Tromey <tromey@cygnus.com>
4701 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4703 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4704 (_Jv_JNI_NewObject): Likewise.
4705 (_Jv_JNI_NewObjectA): Likewise.
4706 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4707 as "return" type to _Jv_CallAnyMethodA.
4708 (_Jv_JNI_CallAnyMethodA): Likewise.
4709 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4711 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4714 2000-02-15 Tom Tromey <tromey@cygnus.com>
4716 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
4718 (init_cif): Added `rtype_p' argument.
4719 * include/java-interp.h (class _Jv_MethodBase): Added
4721 (class _Jv_InterpMethod): Removed args_raw_size.
4722 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4723 * jni.cc (call): Pass JNIEnv and (for static methods only) the
4724 class pointer as well as the ordinary arguments.
4726 * jni.cc (mangled_name): Skip leading `(' in signature.
4728 * jni.cc (add_char): Added missing `else'.
4730 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4733 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
4737 * java/lang/natRuntime.cc (_load): Include library path with
4740 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
4743 * java/lang/natThread.cc (dumpStack): Removed.
4744 * java/lang/Thread.java (dumpStack): Implemented.
4746 2000-02-15 Tom Tromey <tromey@cygnus.com>
4748 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4749 with `lib' for loadLibrary. Fixes PR gcj/150.
4751 2000-02-14 Warren Levy <warrenl@cygnus.com>
4753 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4755 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4759 (modPow): Rewritten to not use the naive, slow, brute force approach.
4760 (isProbablePrime): Implemented.
4761 (testBit): Implemented.
4762 (flipBit): Implemented.
4763 (getLowestSetBit): Implemented.
4765 2000-02-16 Anthony Green <green@redhat.com>
4767 * configure.host: Use the same options for i386 and i486 as we do
4770 2000-02-12 Tom Tromey <tromey@cygnus.com>
4772 * java/io/File.java (createTempFile): Use low bits from counter,
4775 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
4777 * THANKS: More thanks.
4779 2000-02-11 Tom Tromey <tromey@cygnus.com>
4781 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
4782 astore instruction. From Hans Boehm.
4784 2000-02-11 Warren Levy <warrenl@cygnus.com>
4786 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
4787 (BigInteger(String)): New constructor.
4788 (not): Rewritten using version from Kawa's BitOps class.
4789 (valueOf): New private methods from Kawa's BitOps class.
4796 (andNot): Implemented.
4797 (clearBit): Implemented.
4798 (setBit): Implemented.
4799 (bitCount): Implemented.
4800 (toByteArray): Implemented.
4802 2000-02-11 Tom Tromey <tromey@cygnus.com>
4804 * java/io/File.java (nextValue): Now synchronized.
4806 2000-02-10 Tom Tromey <tromey@cygnus.com>
4808 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4809 * java/io/FileDescriptor.java (EXCL): New static field.
4810 * java/io/File.java (tmpdir): New static field.
4811 (createTempFile): New method.
4812 (nextValue): New method.
4813 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
4816 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4817 (jboolean): Declare as an attributed int, not a bool.
4818 (_Jv_func): Declare differently for C.
4820 * gnu/gcj/jni/natNativeThread.cc: New file.
4821 * gnu/gcj/jni/NativeThread.java: New file.
4822 * java/lang/Thread.java (data): Now a RawData.
4823 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
4825 * Makefile.in: Rebuilt.
4826 * Makefile.am (java/lang/Thread.h): New target.
4827 (ordinary_java_source_files): Added NativeThread.java.
4828 (nat_source_files): Added natNativeThread.cc.
4829 * java/lang/natThread.cc: Include <jni.h>
4830 (struct natThread): Added `jni_env' field.
4831 (_Jv_GetCurrentJNIEnv): New function.
4832 (_Jv_SetCurrentJNIEnv): Likewise.
4833 (initialize_native): Initialize jni_env.
4835 * jni.cc (ThreadGroupClass): New define.
4836 (_Jv_JNI_InvokeFunctions): New structure.
4837 (JNI_GetCreatedJavaVMs): New function.
4838 (the_vm): New global.
4839 (JNI_GetDefaultJavaVMInitArgs): New function.
4840 Include NativeThread.h.
4841 (NativeThreadClass): New define.
4842 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
4843 (_Jv_JNI_DestroyJavaVM): New function.
4844 (_Jv_JNI_AttachCurrentThread): New function.
4845 (_Jv_JNI_DetachCurrentThread): New function.
4846 (_Jv_JNI_GetEnv): New function.
4847 (JNI_CreateJavaVM): New function.
4848 (_Jv_JNI_GetJavaVM): New function.
4849 (_Jv_JNIFunctions): Added entry for GetJavaVM.
4850 * include/jni.h (JavaVMAttachArgs): New structure.
4851 (JNI_EDETACHED): New define.
4852 (JNI_EVERSION): Likewise.
4853 (JavaVM): Define properly.
4854 (struct JNIInvokeInterface): New structure.
4855 (class _Jv_JavaVM): New class.
4856 (JNI_OnLoad, JNI_OnUnload): Declare.
4857 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
4858 JNI_GetCreatedJavaVMs): Declare.
4859 (JavaVMInitArgs): New typedef.
4860 (JavaVMOption): Likewise.
4861 (JNI_ERR): New define.
4864 2000-02-10 Andrew Haley <aph@cygnus.com>
4866 * interpret.cc: Don't include fdlibm.h.
4867 Replace #if with #ifdef throughout.
4868 Declare extern __ieee754_fmod.
4869 (continue1): Remove op_getfield, op_getstatic, op_putfield,
4871 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
4872 Search class hierarchy for superclass vtable.
4874 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
4875 off the end of a pointer list.
4877 * java/lang/natThread.cc (stop): Don't abort, throw an exception
4881 2000-02-09 Tom Tromey <tromey@cygnus.com>
4883 * java/lang/natRuntime.cc (_load): Call add_library.
4884 (loadLibraryInternal): Likewise.
4886 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
4887 iconv_close when handle is not NULL. Thanks to Andrew Haley.
4888 (Output_iconv::finalize): Likewise.
4890 2000-02-08 Tom Tromey <tromey@cygnus.com>
4892 * java/util/Properties.java (setProperty): New method.
4893 (store): New method.
4895 2000-02-07 Tom Tromey <tromey@cygnus.com>
4897 * java/lang/Runtime.java (_load): Declare.
4898 (load, loadLibrary): Wrote in terms of _load.
4899 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
4901 (loadLibrary): Likewise.
4903 (_load): New method.
4904 (loadLibrary, load): Removed.
4906 * jni.cc (ThrowableClass): New define.
4907 (_Jv_JNI_Throw): Check argument.
4908 (_Jv_JNI_ThrowNew): Likewise.
4909 (wrap_value): Don't wrap object if it is NULL.
4910 (_Jv_JNI_DefineClass): Use wrap_value.
4911 (_Jv_JNI_FindClass): Likewise.
4912 (_Jv_JNI_GetSuperclass): Likewise.
4913 (_Jv_JNI_ExceptionOccurred): Likewise.
4914 (_Jv_JNI_AllocObject): Likewise.
4915 (_Jv_JNI_GetObjectClass): Likewise.
4916 (_Jv_JNI_NewString): Likewise.
4917 (_Jv_JNI_NewStringUTF): Likewise.
4918 (_Jv_JNI_NewObjectArray): Likewise.
4919 (_Jv_JNI_GetObjectArrayElement): Likewise.
4920 (_Jv_JNI_NewPrimitiveArray): Likewise.
4921 (_Jv_JNI_ToReflectedField): Likewise.
4922 (_Jv_JNI_ToReflectedMethod): Likewise.
4923 (_Jv_JNI_AllocObject): Check argument.
4924 (_Jv_JNI_NewObjectV): Likewise.
4925 (_Jv_JNI_NewObject): Likewise.
4926 (_Jv_JNI_NewObjectA): Likewise.
4927 (_Jv_JNI_GetObjectClass): Likewise.
4928 (_Jv_JNI_GetField): Likewise.
4929 (_Jv_JNI_SetField): Likewise.
4931 * interpret.cc (PUSHL): Don't use expression statement.
4936 * jni.cc (add_char): Conditional on INTERPRETER.
4937 (mangled_name): Likewise.
4939 * include/java-interp.h (class _Jv_MethodBase): Conditional on
4941 (class _Jv_JNIMethod): Likewise.
4943 2000-02-04 Warren Levy <warrenl@cygnus.com>
4945 * Makefile.am: Added MPN.java and BigInteger.java.
4946 * Makefile.in: Rebuilt.
4947 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
4949 * java/math/BigInteger.java: New file. Based primarily on
4950 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
4952 2000-02-04 Tom Tromey <tromey@cygnus.com>
4954 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
4956 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
4957 if the method is native.
4958 * resolve.cc (ncode): Don't handle native methods.
4959 (_Jv_JNIMethod::ncode): New method.
4960 (_Jv_PrepareClass): Handle native methods.
4961 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
4962 Include AbstractMethodError.h.
4963 (add_char): New function.
4964 (mangled_name): Likewise.
4965 * include/java-interp.h (class _Jv_JNIMethod): New class.
4966 (class _Jv_MethodBase): New class.
4967 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
4968 (_Jv_InterpClass): Changed `interpreted_methods' field to type
4971 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
4972 * java/lang/natRuntime.cc (libraries_size, libraries_count,
4973 libraries): New globals.
4974 (add_library): New function.
4975 (_Jv_FindSymbolInExecutable): New function.
4977 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
4980 2000-02-04 Andrew Haley <aph@cygnus.com>
4982 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4983 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
4984 * java/lang/natThrowable.cc (printRawStackTrace): Rename
4985 printStackTrace to printRawStackTrace.
4987 2000-02-03 Tom Tromey <tromey@cygnus.com>
4989 * java/util/Calendar.java (toString): New method.
4990 * java/util/SimpleTimeZone.java (clone): New method.
4991 (toString): New method.
4992 * java/util/TimeZone.java (clone): New method.
4993 * java/text/SimpleDateFormat.java (clone): New method.
4994 * java/text/NumberFormat.java (clone): New method.
4995 (equals): New method.
4996 * java/text/Format.java (clone): New method.
4997 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
4999 (clone): New method.
5000 * java/text/DateFormat.java (clone): New method.
5001 * java/text/Collator.java (clone): New method.
5003 2000-02-03 Tom Tromey <tromey@cygnus.com>
5005 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5008 2000-02-01 Tom Tromey <tromey@cygnus.com>
5010 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5011 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5012 constructing the closure if the function is native.
5013 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
5014 a template function, #if'd out, or static.
5015 Include <java-interp.h>.
5017 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5019 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5021 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5022 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5024 (wrap_value): New function.
5025 (_Jv_JNI_CallAnyMethodV): Use it.
5026 (_Jv_JNI_CallAnyMethodA): Likewise.
5027 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5028 (_Jv_JNI_GetStaticField): Likewise.
5030 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5031 (_Jv_JNI_GetStaticField): Likewise.
5033 2000-01-31 Tom Tromey <tromey@cygnus.com>
5035 * prims.cc (_Jv_MallocUnchecked): New function.
5036 (main_init): Call _Jv_JNI_Init.
5037 * include/jvm.h (_Jv_MallocUnchecked): Declare.
5038 (_Jv_JNI_Init): Declare.
5039 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5041 (_Jv_JNI_NewGlobalRef): New function.
5042 (_Jv_JNI_DeleteGlobalRef): New function.
5043 (_Jv_JNI_DeleteLocalRef): New function.
5044 (_Jv_JNI_conversion_call): Initialize and clear local reference
5046 (_Jv_JNI_NewLocalRef): New function.
5047 (struct _Jv_JNI_LocalFrame): New structure.
5048 (_Jv_JNI_PushLocalFrame): New function.
5049 (_Jv_JNI_EnsureLocalCapacity): New function.
5050 (FRAME_SIZE): New define.
5051 (_Jv_JNI_GetStringChars): Mark string, not characters.
5052 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5053 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5054 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5056 (_Jv_JNI_DefineClass): Make return value a local ref.
5057 (_Jv_JNI_FindClass): Likewise.
5058 (_Jv_JNI_GetSuperclass): Likewise.
5059 (_Jv_JNI_ExceptionOccurred): Likewise.
5060 (_Jv_JNI_AllocObject): Likewise.
5061 (_Jv_JNI_GetObjectClass): Likewise.
5062 (_Jv_JNI_CallAnyMethodV): Likewise.
5063 (_Jv_JNI_NewString): Likewise.
5064 (_Jv_JNI_NewStringUTF): Likewise.
5065 (_Jv_JNI_NewObjectArray): Likewise.
5066 (_Jv_JNI_GetObjectArrayElement): Likewise.
5067 (_Jv_JNI_ToReflectedField): Likewise.
5068 (_Jv_JNI_ToReflectedMethod): Likewise.
5069 (_Jv_JNIFunctions): Updated table for new functions.
5070 (_Jv_JNI_Init): New function.
5071 (mark_for_gc): Wrote.
5072 (unmark_for_gc): Wrote.
5073 * include/jni.h (struct JNINativeInterface): Removed name from
5074 PopLocalFrame parameter.
5075 (class _Jv_JNIEnv): Added `locals' field.
5077 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
5079 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5082 2000-01-30 Tom Tromey <tromey@cygnus.com>
5084 * include/config.h.in: Rebuilt.
5085 * acconfig.h (HAVE_ICONV): Define.
5086 * configure: Rebuilt.
5087 * configure.in: Check for `iconv' function.
5088 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5089 no specific encoder exists.
5090 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5091 no specific encoder exists.
5092 * Makefile.in: Rebuilt.
5093 * Makefile.am (convert_source_files): Mention Input_iconv.java and
5095 (nat_source_files): Added natIconv.cc.
5096 * gnu/gcj/convert/natIconv.cc: New file.
5097 * gnu/gcj/convert/Input_iconv.java: New file.
5098 * gnu/gcj/convert/Output_iconv.java: New file.
5100 2000-01-28 Tom Tromey <tromey@cygnus.com>
5102 * Makefile.in: Rebuilt.
5103 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5105 2000-01-26 Tom Tromey <tromey@cygnus.com>
5107 * gcj/method.h (JvNumMethods): Moved from Class.h.
5108 (JvGetFirstMethod): Likewise.
5109 * java/lang/Class.h (Object): Updated decl of
5110 _Jv_JNI_ToReflectedField.
5111 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5112 * Makefile.in: Rebuilt.
5113 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5114 argument of _Jv_JNI_ToReflectedField.
5115 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5117 (java/lang/reflect/Method.h): Likewise.
5118 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
5120 (jweak): New typedef.
5121 (struct JNINativeInterface): Correctly declare remaining entries.
5122 * jni.cc: Include Class.h, ClassLoader.h.
5123 (_Jv_JNI_FindClass): New function.
5124 (_Jv_JNI_DefineClass): New function.
5125 (_Jv_JNI_conversion_call): New function.
5126 (_Jv_JNI_FindClass): Use current class loader to find class.
5127 (_Jv_JNI_ExceptionCheck): New function.
5128 (_Jv_JNI_FromReflectedField): Now static.
5129 (MethodClass): New define.
5130 (_Jv_JNI_FromReflectedMethod): New function.
5131 (_Jv_JNI_ToReflectedMethod): Likewise.
5133 (_Jv_JNI_IsAssignableFrom): Renamed.
5134 (_Jv_JNI_GetStringRegion): New function.
5135 Include StringIndexOutOfBoundsException.h.
5136 (_Jv_JNI_GetStringUTFRegion): New function.
5137 (_Jv_JNIFunctions): Updated for new functions.
5138 (_Jv_JNI_GetPrimitiveArrayCritical): New function
5139 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5140 (_Jv_JNI_GetStringCritical): New function.
5141 (_Jv_JNI_ReleaseStringCritical): Likewise.
5142 (get_throwable): Removed.
5143 (GCJ_JV_JNIENV_FRIEND): Removed.
5144 (__GCJ_JNI_IMPL__): Define.
5147 * resolve.cc (get_ffi_type_from_signature): Handle case where
5150 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
5152 * interpret.cc (run): Don't call println.
5153 Don't include PrintStream.h.
5155 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5156 nameIndex. Use "jint" as type for boffset.
5157 * java/lang/Class.h (struct _Jv_Method): Made accflags a
5159 (Class): Likewise. Also changed type of method_count,
5160 vtable_method_count, size_in_bytes, field_count,
5161 static_field_count, interface_count.
5162 * gcj/array.h (__JArray): Made `length' a const jsize, not an
5165 2000-01-21 Tom Tromey <tromey@cygnus.com>
5167 * java/lang/reflect/natConstructor.cc (newInstance): Use
5169 * include/jvm.h: Declare _Jv_CallAnyMethodA.
5170 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5171 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
5174 (invoke): Use _Jv_CallAnyMethodA.
5176 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5177 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5179 (struct _Jv_Method): Added getNextMethod method.
5180 (JvNumMethods): New function.
5181 (JvGetFirstMethod): Likewise.
5182 * gcj/field.h (JvGetFirstStaticField): New function.
5183 (JvNumStaticFields): Likewise.
5184 (getNextField): Renamed from getNextInstanceField.
5185 (struct _Jv_Field): New method getClass.
5186 * jni.cc: Wrote many new functions.
5187 * include/jni.h (JNI_TRUE): Define.
5188 (JNI_FALSE): Likewise.
5189 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5190 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5191 jcharArray, jfloatArray, jdoubleArray): New typedefs.
5192 (jfieldID, jmethodID): Likewise.
5193 (JNI_COMMIT, JNI_ABORT): New defines.
5194 (JNINativeMethod): New struct.
5195 (struct JNINativeInterface): Correctly declared more entries.
5196 (class _Jv_JNIEnv): Added `ex' member.
5197 (JNI_VERSION_1_1): New define.
5198 (JNI_VERSION_1_2): Likewise.
5200 * boehm.cc (_Jv_MarkObj): Use getNextField, not
5201 getNextInstanceField.
5203 2000-01-20 Tom Tromey <tromey@cygnus.com>
5205 * resolve.cc (StringClass): Removed.
5206 * defineclass.cc (StringClass): Removed.
5208 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
5212 2000-01-19 Tom Tromey <tromey@cygnus.com>
5214 * interpret.cc (PC_REGISTER_ASM): Removed.
5216 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5217 From Bryce McKinlay.
5219 * All files: Updated copyright to reflect Cygnus purchase.
5221 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
5223 * configure: Rebuilt.
5224 * configure.in: Recognize --disable-interpreter.
5226 2000-01-18 Andrew Haley <aph@cygnus.com>
5228 * name-finder.cc (lookup): Check for dladdr function.
5229 acconfig.h (HAVE_DLADDR): Add.
5230 configure.in: Check for HAVE_DLADDR
5232 include/config.h.in: Rebuilt.
5234 2000-01-17 Andrew Haley <aph@cygnus.com>
5236 * prims.cc (_Jv_RunMain): Set the name of this executable.
5238 2000-01-17 Tom Tromey <tromey@cygnus.com>
5240 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5241 when backtrace can't be computed.
5243 * configure: Rebuilt.
5244 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5246 * java/lang/Runtime.java (loadLibraryInternal): Declare.
5247 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5248 (_Jv_FindClassInCache): Likewise.
5249 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5250 (findSystemClass): Try to load class from compiled module.
5252 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5253 (loadLibrary): Likewise.
5254 (lt_preloaded_symbols): Define.
5255 (loadLibraryInternal): New method.
5256 * include/config.h.in: Rebuilt.
5257 * acconfig.h (USE_LTDL): Added.
5258 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5259 (INCLUDES): Added $(INCLTDL).
5260 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5261 (libgcj_la_LIBADD): Likewise.
5262 * aclocal.m4, configure: Rebuilt.
5263 * configure.in: Added libltdl support.
5265 2000-01-15 Tom Tromey <tromey@cygnus.com>
5267 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5269 2000-01-14 Andrew Haley <aph@cygnus.com>
5271 * java/lang/natThrowable.cc: New file.
5273 * java/lang/Throwable.java (fillInStackTrace): Make native.
5274 (printStackTrace): Call native method to do this.
5275 (Throwable): Call fillInStackTrace.
5276 (stackTrace): New variable.
5278 * include/jvm.h: Add _Jv_ThisExecutable functions.
5280 * prims.cc: (_Jv_execName): New variable.
5281 (catch_segv): Call fillInStackTrace.
5283 (_Jv_ThisExecutable): New functions.
5284 (JvRunMain): Set the name of this executable.
5286 * Makefile.am: Add java/lang/natThrowable.cc.
5288 * Makefile.in: Rebuilt.
5290 * acconfig.h: Add HAVE_PROC_SELF_EXE.
5292 * configure.in: Force link with __frame_state_for in
5293 FORCELIBGCCSPEC. Add new checks for backtrace.
5294 * include/config.h.in: Rebuilt.
5296 * name-finder.cc: New file.
5297 * include/name-finder.h: New file.
5299 2000-01-16 Anthony Green <green@cygnus.com>
5301 * java/lang/StringBuffer.java (StringBuffer): Don't special case
5304 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
5306 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5308 2000-01-13 Tom Tromey <tromey@cygnus.com>
5310 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5311 not system loader, as initiating loader.
5313 2000-01-11 Tom Tromey <tromey@cygnus.com>
5315 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5316 HP/UX. From David Scott Urban.
5318 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
5320 * java/lang/natMath.cc (pow): Cast args to `double', not
5323 (IEEEremainder): Likewise.
5324 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5325 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5327 2000-01-09 Anthony Green <green@cygnus.com>
5329 * java/lang/natString.cc (init): Test for overflow condition
5330 during out of bounds check.
5331 (getChars): Throw StringIndexOutOfBoundsException, not
5332 ArrayIndexOutOfBoundsException.
5334 (regionMatches): Obey case option during string comparison.
5336 * configure.host (ligcj_interpreter): New variable. Enable
5337 interpreter by default on IA-32.
5338 * configure.in: Examine libgcj_interpreter.
5339 * configure: Rebuilt.
5341 2000-01-07 Tom Tromey <tromey@cygnus.com>
5343 * mauve-libgcj: Don't disable ClassTest.
5345 * java/lang/natClass.cc (getClasses): Wrote.
5347 2000-01-06 Tom Tromey <tromey@cygnus.com>
5349 * java/lang/natClass.cc (_getConstructors): Correctly check
5350 whether method name is the init name.
5351 (getMethod): Look at accflags on method in `klass', not `this'.
5353 2000-01-05 Tom Tromey <tromey@cygnus.com>
5355 * java/lang/natClass.cc (getMethod): Compute offset relative to
5356 `klass's methods table, not `this's table.
5358 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5359 In unwrapping/widening case, check whether `k' is null, not
5360 whether it is primitive. Initialize `num' from `argelts', not
5361 `paramelts'. Correct create and pass arguments to ffi_call.
5362 Don't let presence of `this' argument affect index used to look in
5364 (COPY): Set appropriate element in `values' vector.
5366 * java/lang/natClass.cc: Include <gcj/method.h>.
5368 * java/lang/Class.h (_getMethods): Correctly declare as private,
5371 * java/lang/Class.h (_getMethods): Declare.
5372 * java/lang/Class.java (_getMethods): Declare.
5373 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5374 (getDeclaredClasses): Always return empty array.
5375 (_getMethods): New method.
5376 (getMethods): Wrote.
5377 (getDeclaredMethod): Return `rmethod'.
5378 (finit_name): New global.
5379 (getDeclaredMethods): Check for finit_name.
5380 (_getMethods): Likewise.
5381 (getMethod): Only return public methods.
5383 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5384 jboolean and select correct ffi type on that basis.
5385 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5386 Constructor call always has `void' return type.
5388 2000-01-04 Tom Tromey <tromey@cygnus.com>
5390 * java/lang/Class.h (getSignature): Updated.
5391 * java/lang/Class.java (getSignature): Updated.
5392 * java/lang/natClass.cc (getSignature): Added `is_constructor'
5394 (getConstructor): Ensure constructor is public.
5395 (_getConstructors): Check for public-ness of constructor when
5396 `declared' is false, not when it is true.
5398 2000-01-04 Warren Levy <warrenl@cygnus.com>
5400 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5402 (receive): Set the sender's address in the DatagramPacket.
5404 2000-01-04 Tom Tromey <tromey@cygnus.com>
5406 * java/lang/reflect/natConstructor.cc (newInstance): Pass
5407 declaring class as return_type argument to
5408 _Jv_CallNonvirtualMethodA.
5409 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5410 constructor case, create object and use it as `this' argument.
5411 * java/lang/Class.h (_getConstructors): Declare.
5412 (_getFields): Declare.
5413 * java/lang/Class.java (getConstructors): Wrote.
5414 (_getConstructors): New native method.
5415 (getDeclaredConstructors): Wrote.
5416 (_getFields): Declare new native method.
5417 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5419 (getMethod): Work correctly when class is primitive.
5420 (getDeclaredMethods): Likewise. Compute offset using `method',
5422 (getDeclaredMethod): Likewise.
5423 (getConstructor): Wrote.
5424 (ConstructorClass): New define.
5425 (getDeclaredConstructor): Wrote.
5426 (_getConstructors): New method.
5427 (_getFields): New method.
5430 * Makefile.in: Rebuilt.
5431 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5433 * prims.cc: Remove `#pragma implementation'.
5434 * gcj/array.h: Remove `#pragma interface'.
5436 * prims.cc (_Jv_equaln): New function.
5437 * java/lang/Class.java (getSignature): Declare.
5438 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5439 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5441 (getSignature): New method.
5442 (getDeclaredMethod): Wrote.
5444 Include StringBuffer.h.
5445 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5446 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
5448 (getSignature): Declare.
5449 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5450 (_Jv_equaln): Declare.
5451 (_Jv_CallNonvirtualMethodA): Declare.
5452 * Makefile.in: Rebuilt.
5453 * Makefile.am (nat_source_files): Added natConstructor.cc.
5454 (java/lang/reflect/Constructor.h): New target.
5455 * java/lang/reflect/natConstructor.cc: New file.
5456 * java/lang/reflect/Constructor.java (newInstance): Now native.
5457 (declaringClass): Renamed from decl_class.
5458 (offset): Renamed from index.
5459 (getType): New native method.
5460 (getModifiers): Now native.
5461 (getParameterTypes): Call getType if required.
5462 (hashCode): Include hash code from declaring class.
5463 (modifiers): Removed.
5464 (toString): Call getType if required.
5465 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5466 * java/lang/reflect/natMethod.cc (hack_call): New method.
5467 Removed `#if 0' around FFI code.
5468 Include <gnu/gcj/RawData.h>.
5469 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
5470 IllegalArgumentException when argument object and class disagree.
5471 (_Jv_GetTypesFromSignature): New function.
5473 (ObjectClass): New define.
5474 (_Jv_CallNonvirtualMethodA): New function.
5475 * java/lang/reflect/Method.java (hack_trampoline): New method.
5476 (hack_call): New native method.